1 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3 * function.c (expand_function_start): Initialize stack_check_probe_note
4 only if the generic stack checking mechanism is used.
6 2011-05-11 Richard Guenther <rguenther@suse.de>
8 PR tree-optimization/15256
9 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
10 (A & B) | C, combine (A op CST1) op CST2.
11 (tree_ssa_forward_propagate_single_use_vars): Only bother to
12 visit assigns that have uses.
14 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
16 * ggc-page.c (extra_order_size_table): Use struct
18 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
19 (unpack_ts_type_common_value_fields): ...this. Update comment.
20 (unpack_value_fields): Adjust for renaming.
21 (lto_input_ts_type_tree_pointers): Split into...
22 (lto_input_ts_type_common_tree_pointer): ...this and...
23 (lto_input_ts_type_non_common_tree_pointers): ...this.
24 (lto_input_tree_pointers): Adjust for above split.
25 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
26 (pack_ts_type_common_value_fields): ...this. Update comment.
27 (lto_output_ts_type_tree_pointers): Split into...
28 (lto_output_ts_type_common_tree_pointers): ...this and...
29 (lto_output_ts_type_non_common_tree_pointers): ...this.
30 (lto_output_tree_pointers): Adjust for above split.
31 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
32 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
33 * stor-layout.c (vector_type_mode): Adjust location of mode field.
34 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
36 (struct tree_type): Split into...
37 (struct tree_type_common: ...this and...
38 (struct tree_type_with_lang_specific): ...this and...
39 (struct tree_type_non_common): ...this. Adjust accessor macros
41 (TYPE_VALUES_RAW): Define.
42 (union tree_node): Update for above changes.
43 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
45 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
46 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
47 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
48 * treestructu.def (TS_TYPE): Remove.
49 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
52 2011-05-11 Jakub Jelinek <jakub@redhat.com>
55 * tree-ssa.c (reset_debug_uses): New function.
56 * tree-flow.h (reset_debug_uses): New prototype.
57 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
58 * tree-loop-distribution.c (generate_loops_for_partition): Call
59 reset_debug_uses on the stmts that will be removed. Keep around
60 all debug stmts, don't count them as bits in partition bitmap.
61 (generate_builtin): Don't count debug stmts or labels as bits in
64 2011-05-11 Richard Guenther <rguenther@suse.de>
66 * gimple.c (gimple_type_hash_1): Merge with ...
67 (gimple_type_hash): ... this.
68 (gtc_visit): Remove mode parameter and simplify accordingly.
69 (gimple_types_compatible_p_1): Likewise.
70 (gimple_types_compatible_p): Likewise.
71 (iterative_hash_gimple_type): Likewise.
73 (gimple_type_eq): Adjust.
75 2011-05-11 Revital Eres <revital.eres@linaro.org>
77 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
78 enters the branch create an anti edge in the opposite direction
79 to prevent the creation of reg-moves.
80 * modulo-sched.c: Adjust comment to reflect the fact we are
81 scheduling closing branch.
82 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
83 (stage_count): New field in struct partial_schedule.
84 (calculate_stage_count): New function.
85 (normalize_sched_times): Rename to reset_sched_times and handle
86 incrementing the sched time of the nodes by a constant value
88 (duplicate_insns_of_cycles): Skip closing branch.
89 (sms_schedule_by_order): Schedule closing branch.
90 (ps_insn_find_column): Handle closing branch.
91 (sms_schedule): Call reset_sched_times and adjust the code to
92 support scheduling of the closing branch.
93 (ps_insert_empty_row): Update calls to normalize_sched_times
94 and rotate_partial_schedule functions.
96 2011-05-11 Richard Guenther <rguenther@suse.de>
99 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
101 2011-05-11 Joseph Myers <joseph@codesourcery.com>
103 * opts.c (finish_options): Move warning settings from
105 * toplev.c (process_options): Move warning settings to
108 2011-05-11 Richard Guenther <rguenther@suse.de>
110 PR tree-optimization/18041
111 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
112 (simplify_bitwise_binary): ... this. Handle operand conversions
113 by applying them to the result instead.
114 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
116 2011-05-11 Richard Guenther <rguenther@suse.de>
118 * gimple.c (gimple_canonical_types_compatible_p): Split out
119 from gimple_types_compatible_p and friends. Do not recurse
121 (gimple_canonical_type_eq): Use it.
122 (iterative_hash_canonical_type): Split out from
123 iterative_hash_gimple_type and friends. Do not recurse
125 (gimple_canonical_type_hash): Use it, allocate the hash here.
127 2011-05-11 Revital Eres <revital.eres@linaro.org>
129 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
132 2011-05-11 Revital Eres <revital.eres@linaro.org>
134 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
135 instead of PREV_INSN.
137 2011-05-11 Revital Eres <revital.eres@linaro.org>
139 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
140 * loop-doloop.c (doloop_condition_get): Likewise.
141 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
143 * config/arm/arm.md (*addsi3_compare0): Remove "*".
145 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
147 * tree.def (CASE_LABEL_EXPR): Add an operand.
148 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
150 2011-05-10 Joseph Myers <joseph@codesourcery.com>
152 * c-decl.c (c_override_global_bindings_to_false): Remove.
153 (global_bindings_p): Don't check
154 c_override_global_bindings_to_false.
155 * c-tree.h (c_override_global_bindings_to_false): Remove.
156 * c-typeck.c (composite_type): Don't set
157 c_override_global_bindings_to_false.
159 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
161 PR target/48857, 48495
162 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
164 (VSX_MOVE_MODE): Ditto.
165 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
166 VSX vector types. Add V2DImode.
167 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
168 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
169 (MODES_TIEABLE_P): Ditto.
171 * config/rs6000/rs6000.c (rs6000_emit_move): Use
172 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
174 (init_cumulative_args): Ditto.
175 (rs6000_function_arg_boundary): Ditto.
176 (rs6000_function_arg_advance_1): Ditto.
177 (rs6000_function_arg): Ditto.
178 (rs6000_function_ok_for_sibcall): Ditto.
179 (emit_frame_save): Ditto.
180 (rs6000_function_value): Ditto.
181 (rs6000_libcall_value): Ditto.
183 2011-05-10 Joseph Myers <joseph@codesourcery.com>
185 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
186 i386/darwin-lib.h to $libgcc_tm_file.
187 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
189 2011-05-10 Joseph Myers <joseph@codesourcery.com>
191 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
193 2011-05-10 Joseph Myers <joseph@codesourcery.com>
195 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New
197 * config/rs6000/rs6000-tables.opt: New file (generated).
198 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
199 rs6000/rs6000-tables.opt to extra_options.
200 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
201 * config/rs6000/rs6000.c (rs6000_select): Remove.
202 (processor_target_table): Move contents to rs6000-cpus.def.
203 (darwin_rs6000_override_options): Check
204 global_options_set.x_rs6000_cpu_index instead of
205 rs6000_select[1].string.
206 (rs6000_option_override_internal): Likewise.
207 (rs6000_handle_option): Don't assert that global structures are in
208 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
209 (rs6000_default_cpu): New variable.
210 (rs6000_file_start): Set it instead of local default_cpu. Check
211 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
212 global_options_set.x_rs6000_tune_index instead of rs6000_select.
213 (rs6000_darwin_file_start): Check rs6000_default_cpu and
214 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
215 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
216 rs6000_select): Remove.
217 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
219 (mcpu=, mtune=): Use Var, Init, Enum and Save.
220 * config/rs6000/t-rs6000
221 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
222 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
223 global_options_set.x_rs6000_cpu_index instead of
224 rs6000_select[1].string.
225 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
226 global_options_set.x_rs6000_cpu_index instead of
227 rs6000_select[1].string.
229 2011-05-10 Joseph Myers <joseph@codesourcery.com>
231 * config.gcc (libgcc_tm_file): Define instead of including files
232 from ../../libgcc/config/ in tm_file.
233 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list):
235 * configure: Regenerate.
236 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
237 libgcc_tm.h, cs-libgcc_tm.h): New.
238 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
239 (clean): Remove libgcc_tm.h.
240 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
241 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
242 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
244 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
247 * config/avr/avr.c (avr_ret_register): Return unsigned int
249 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
250 it to avr_libcall_value.
251 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
253 (avr_expand_binop_builtin): Ditto.
254 (avr_expand_unop_builtin): Ditto.
256 2011-05-10 DJ Delorie <dj@redhat.com>
258 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
259 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
260 * config/rx/rx.c (rx_align_for_label): Add label and
261 uses_threshold parameters. Do not align when the label is not
263 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
265 2011-05-10 Richard Guenther <rguenther@suse.de>
267 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
268 a series of conversions and apply foldings similar to what
270 (tree_ssa_forward_propagate_single_use_vars): Call it.
272 2011-05-10 Jakub Jelinek <jakub@redhat.com>
274 PR tree-optimization/48611
275 PR tree-optimization/48794
276 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
277 referenced from RESX or EH_DISPATCH arguments.
280 * dfp.c (decimal_to_decnumber): Handle conversion from
283 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
285 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
286 for !flag_prefer_avx128.
287 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
289 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
291 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
292 (fold_ternary_loc): Use expr_location_or.
294 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
297 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
298 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
299 Pmode and mem_mode is not VOIDmode.
301 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
303 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
304 TYPE_QUAL_RESTRICT): Convert to enum.
306 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
308 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
309 (const_pow2_1_to_8_operand): Ditto.
310 (const_pow2_1_to_128_operand): Ditto.
311 (const_pow2_1_to_32768_operand): Ditto.
312 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
313 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
314 in insn constraint to check integer value of operand 3.
315 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
317 (PINSR_MODE): New mode iterator.
318 (sse2p4_1): New mode attribute.
319 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
320 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
321 iterator. Use const_int_operand instead of
322 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
323 exact_log2 in insn constraint to check integer value of operand 3.
325 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
327 * config/i386/sse.md (blendbits): Remove mode attribute.
328 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
329 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
330 Check integer value of operand 3 in insn constraint.
332 2011-05-09 Richard Guenther <rguenther@suse.de>
334 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
336 (lto_symtab_merge): Likewise. Do not register types here.
337 (lto_symtab_merge_decls_2): Likewise.
338 (lto_symtab_merge_decls_1): Likewise.
339 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
340 * gimple.c (enum gtc_mode): Declare.
341 (gimple_types_compatible_p): Make static.
343 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
345 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
346 temporary register to match Pmode.
348 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
350 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
351 and *vec_concatv4si_1_avx.
353 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
355 PR rtl-optimization/48927
356 * ira-conflicts.c (commutative_constraint_p): Use
357 recog_data.alternative_enabled_p to disable alternatives where
358 "enabled" attribute is false.
359 (get_dup_num): Ditto.
360 * ira-lives.c (single_reg_class): Ditto.
361 (ira_implicitly_set_insn_hard_regs): Ditto.
363 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
365 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
366 (dataflow_set_preserve_mem_locs): Likewise.
368 2011-05-09 Philipp Thomas <pth@suse.de>
370 * config/mep/mep.c (mep_validate_vliw): Syntax description
371 should not be translated.
373 2011-05-09 Joseph Myers <joseph@codesourcery.com>
375 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
376 * config/mips/mips-tables.opt: New file (generated).
377 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
378 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
379 MIPS_ARCH_OPTION_NATIVE): Define.
380 * config/mips/mips.c (mips_cpu_info_table): Move contents to
382 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
383 mips_parse_cpu): Remove.
384 (mips_cpu_info_from_opt, mips_default_arch): New.
385 (mips_handle_option): Don't assert that global structures are in
386 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
387 (mips_option_override): Use new variables and functions to set
388 state of these options. Use strcmp to check for individual CPU names.
389 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
391 * config/mips/mips.opt (march=): Use ToLower and Enum.
392 (mips): Use ToLower, Enum and Var.
393 (mtune=): Use ToLower and Enum.
394 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
396 2011-05-08 Jan Hubicka <jh@suse.cz>
398 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
399 Arrange type pairs to be UID ordered.
400 (gimple_lookup_type_leader): Make inline.
402 2011-05-09 Nick Clifton <nickc@redhat.com>
405 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
409 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
412 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
414 * combine.c (simplify_comparison): Abstract out parts into...
415 (simplify_compare_const): ... new function.
416 (try_combine): Generalize parallel arithmetic/compare combining
417 to call simplify_compare_const() and CANONICALIZE_COMPARE().
419 2011-05-08 Jan Hubicka <jh@suse.cz>
421 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
422 (cgraph_create_virtual_clone): Call hooks once virtual clone
424 * cgraph.h (cgraph_clone_node): Update prototype.
425 * ipa-cp.c (ipcp_estimate_growth): Use
426 estimate_ipcp_clone_size_and_time.
427 * ipa-inline-transform.c (clone_inlined_nodes): Update.
428 * lto-cgraph.c (input_node): Update.
429 * ipa-inline.c (recursive_inlining): Update.
430 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
431 (evaluate_conditions_for_known_args): Break out from ...
432 (evaluate_conditions_for_edge): ... here.
433 (evaluate_conditions_for_ipcp_clone): New function.
434 (inline_node_duplication_hook): Update clone summary based
436 (estimate_callee_size_and_time): Rename to ...
437 (estimate_node_size_and_time): take NODE instead of EDGE;
438 take POSSIBLE_TRUTHS as argument.
439 (estimate_callee_size_and_time): Update.
440 (estimate_ipcp_clone_size_and_time): New function.
441 (do_estimate_edge_time): Update.
443 2011-05-08 Richard Guenther <rguenther@suse.de>
447 * expmed.c (expand_shift_1): Compute adjusted constant shift
450 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
452 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
454 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
456 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
458 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
460 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
462 2011-05-07 Jan Hubicka <jh@suse.cz>
464 * ipa-inline-transform.c (inline_call): Account when program size
466 * ipa-inline.c (relative_time_benefit): New function.
467 (edge_badness): Reorganize to be power 2 based; fix thinko when
468 computing badness for negative growth; update comments to match
469 reality; better dumps.
471 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
473 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
474 type to bool and adjust comment.
475 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
476 (fold_mathfn_compare): Remove calls to global_bindings_p.
477 (fold_inf_compare): Likewise.
478 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
479 * c-tree.h (global_bindings_p): Adjust prototype.
480 * c-decl.c (global_bindings_p): Return bool and simplify.
482 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
484 PR tree-optimization/48837
485 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
486 when accumulator transformation is performed.
488 2011-05-06 Jan Hubicka <jh@suse.cz>
490 * i386.h (ix86_tune_indices): Add
491 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
492 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
493 * i386.c (initial_ix86_tune_features): Add
494 X86_SOFTARE_PREFETCHING_BENEFICIAL.
495 (software_prefetching_beneficial_p): Remove predicate.
496 (ix86_option_override_internal): Use new macro.
498 2011-05-06 Jan Hubicka <jh@suse.cz>
500 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
502 2011-05-06 Jan Hubicka <jh@suse.cz>
504 * cgraph.c (cgraph_add_thunk): Create real function node instead
505 of alias node; finalize it and mark needed/reachale; arrange visibility
506 to be right and add it into the corresponding same comdat group list.
507 (dump_cgraph_node): Dump thunks.
508 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
509 cgraph_function_with_gimple_body_p,
510 cgraph_first_function_with_gimple_body,
511 cgraph_next_function_with_gimple_body): New functions.
512 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
514 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
515 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
516 * cgraphunit.c (cgraph_finalize_function): Only look into possible
517 devirtualization when optimizing.
518 (verify_cgraph_node): Verify thunks.
519 (cgraph_analyze_function): Analyze thunks.
520 (cgraph_mark_functions_to_output): Output thunks only in combination
521 with function they are assigned to.
522 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
523 alias into normal node.
524 (assemble_thunks): New functoin.
525 (cgraph_expand_function): Use it.
526 * lto-cgraph.c (lto_output_node): Stream thunks.
527 (input_overwrite_node): Stream in thunks.
528 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
529 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
530 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
531 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
532 (inline_analyze_function): Do not care about thunk jump functions.
533 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
534 * ipa-prop.c (ipa_prop_write_jump_functions): Use
535 cgraph_function_with_gimple_body_p.
536 * passes.c (do_per_function_toporder): Use
537 cgraph_function_with_gimple_body_p.
538 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
539 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
540 (function_called_by_processed_nodes_p): Likewise.
542 2011-05-06 Joseph Myers <joseph@codesourcery.com>
544 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
545 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
547 (mabi=): Replace with separate entries for mabi=altivec,
548 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
549 mabi=ieeelongdouble and mabi=ibmlongdouble.
550 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
551 check for -mabi=spe without SPE ABI support here.
552 (rs6000_handle_option): Replace OPT_mabi_ handling with
553 OPT_mabi_altivec and OPT_mabi_spe handling.
555 2011-05-06 Cary Coutant <ccoutant@google.com>
557 * dwarf2out.c (contains_subprogram_definition): New function.
558 (should_move_die_to_comdat): Call it.
560 2011-05-06 Jeff Law <law@redhat.com>
562 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
563 remove_ctrl_stmt_and_useless_edges.
564 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
565 (fixup_template_block, thread_single_edge): Likewise.
566 (mark_threaded_blocks): Use THREAD_TARGET.
568 2011-05-06 Alan Modra <amodra@gmail.com>
571 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
572 const0_rtx as the arg to the dummy __tls_get_addr libcall.
574 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
576 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
577 constraint modifier to "r".
579 2011-05-06 Joseph Myers <joseph@codesourcery.com>
581 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
582 fall through for OPT_mcmodel_.
584 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
586 * config/s390/s390.c (s390_asm_trampoline_template): Comment
588 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
590 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
593 * config/arm/arm.opt (marm): Document it.
594 (mthumb): Reject negative variant.
596 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
599 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
600 Fix typo in "ccvt" variable name.
602 2011-05-06 Tristan Gingold <gingold@adacore.com>
605 * config/vms/vms-ar.c (main): Remove cwd variable.
607 2011-05-06 Jakub Jelinek <jakub@redhat.com>
610 * var-tracking.c (prepare_call_arguments): Move else before #endif.
612 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
614 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
615 * gimplify.c (gimplify_switch_expr): Likewise.
616 * omp-low.c (expand_omp_sections): Likewise.
617 * tree-eh.c (lower_try_finally_switch): Likewise.
618 (lower_eh_dispatch): Likewise.
619 * tree.h (build_case_label): Declare.
620 * tree.c (build_case_label): Define.
622 2011-05-05 Jason Merrill <jason@redhat.com>
625 * tree-inline.c (copy_tree_r): Use copy_statement_list.
626 (copy_statement_list): Don't recurse.
627 * stor-layout.c (copy_self_referential_tree_r): Don't allow
630 2011-05-05 Joseph Myers <joseph@codesourcery.com>
632 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
633 through from -mfpu= handling.
634 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
636 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
638 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
641 2011-05-05 Steve Ellcey <sje@cup.hp.com>
643 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
645 (hppa[12]*-*-hpux11*): Ditto.
646 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
647 * config/ia64/hpux-unix2003.h: New.
648 * config/pa/pa-hpux1131.opt: New.
649 * config/pa/pa-hpux1131.h: New.
650 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
651 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
652 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
654 2011-05-05 Jakub Jelinek <jakub@redhat.com>
657 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
658 instead of mode as 3rd argument to recursive call.
659 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
660 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
662 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
663 don't give up if mode is Pmode and mem_mode is not VOIDmode.
664 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
665 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
667 2011-05-05 Julian Brown <julian@codesourcery.com>
669 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
670 parenthesis in D-register case.
672 2011-05-05 Joseph Myers <joseph@codesourcery.com>
674 * opt-functions.awk (var_type_struct): Handle Enum options.
675 * optc-gen.awk: Don't check range of variables of character type.
676 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
677 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
678 rs6000_sdata_name, rs6000_explicit_options): Remove.
679 (rs6000_option_override_internal): Check for -malign-power here.
680 Use global_options_set instead of rs6000_explicit_options.
681 (rs6000_parse_fpu_option): Remove.
682 (rs6000_handle_option): Access variables via opts and opts_set
683 pointers. Use error_at and warning_at. Add fall-through
684 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
685 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
686 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
687 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
688 here. Don't use rs6000_parse_fpu_option.
689 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
690 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
691 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
693 (mspe): Use Var and Save.
694 (mtraceback=): Use Enum and Var.
695 (rs6000_traceback_type): New Enum and EnumValue entries.
696 (mfloat-gprs=): Use Enum, Var and Save.
697 (rs6000_float_gprs): New Enum and EnumValue entries.
698 (mlong-double-): use Var and Save.
699 (msched-costly-dep=, minsert-sched-nops=): Use Var.
700 (malign-): Use Enum and Var.
701 (rs6000_alignment_flags): New Enum and EnumValue entries.
703 (fpu_type_t): New Enum and EnumValue entries.
704 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
705 global_options_set instead of rs6000_explicit_options.
706 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
707 global_options_set instead of rs6000_explicit_options.
708 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
709 global_options_set instead of rs6000_explicit_options.
710 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
711 global_options_set instead of rs6000_explicit_options.
712 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
713 global_options_set instead of rs6000_explicit_options.
714 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
715 global_options_set instead of rs6000_explicit_options.
716 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
718 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
719 global_options_set instead of rs6000_explicit_options.
720 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
721 (rs6000_cmodel): New Enum and EnumValue entries.
722 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
723 global_options_set instead of rs6000_explicit_options.
724 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
725 (mtls-size=): Use Enum and Var.
726 (rs6000_tls_size): New Enum and EnumValue entries.
728 2011-05-05 Michael Matz <matz@suse.de>
730 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
731 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
732 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
733 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
734 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
735 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
736 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
737 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
738 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
739 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
740 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
741 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
742 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
743 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
744 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
745 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
747 2011-05-05 Richard Guenther <rguenther@suse.de>
749 * expmed.c (expand_variable_shift): Rename to ...
750 (expand_shift_1): ... this. Take an expanded shift amount.
751 For rotates recurse directly not building trees for the shift amount.
752 (expand_variable_shift): Wrap around expand_shift_1.
753 (expand_shift): Adjust.
755 2011-05-05 Jakub Jelinek <jakub@redhat.com>
757 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
759 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
761 * tree.h (get_pending_sizes): Remove prototype.
762 (put_pending_size): Likewise.
763 (put_pending_sizes): Likewise.
764 * stor-layout.c (pending_sizes): Delete.
765 (get_pending_sizes): Likewise.
766 (put_pending_size): Likewise.
767 (put_pending_sizes): Likewise.
768 (variable_size): Do not call put_pending_size and tidy up.
769 * function.h (struct function): Remove dont_save_pending_sizes_p.
770 * lto-streamer-in.c (input_function): Do not stream it.
771 * lto-streamer-out.c (output_function): Likewise.
772 * tree-inline.c (initialize_cfun): Do not copy it.
773 * c-decl.c (store_parm_decls): Do not set it.
774 * omp-low.c (create_task_copyfn): Likewise.
775 * tree-optimize.c (tree_rest_of_compilation): Likewise.
777 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
779 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
781 (*movdf_internal): Ditto.
782 (*movdf_internal_nointeger): Ditto.
783 (*movsf_internal): Ditto.
785 2011-05-05 Joseph Myers <joseph@codesourcery.com>
787 * c-decl.c (finish_decl): Don't call get_pending_sizes.
788 (grokparm): Add parameter expr. Pass it to grokdeclarator.
789 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
790 (c_variable_size): Remove.
791 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
792 call put_pending_sizes.
793 (get_parm_info): Add parameter expr. Use it to set
794 arg_info->pending_sizes.
795 (store_parm_decls): Use arg_info->pending_sizes instead or calling
797 * c-parser.c (c_parser_parms_declarator): Update call to
798 c_parser_parms_list_declarator.
799 (c_parser_parms_list_declarator): Take parameter expr. Update
800 call to push_parm_decl. Update recursive call. Don't call
801 get_pending_sizes. Update calls to get_parm_info.
802 (c_parser_objc_method_definition): Update calls to
803 c_parser_objc_method_decl and objc_start_method_definition.
804 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
805 (c_parser_objc_method_decl): Add parameter expr. Update call to
807 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
808 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
809 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
811 2011-05-05 Michael Hope <michael.hope@linaro.org>
814 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
817 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
819 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
820 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
821 (spu_output_mi_thunk): New function.
823 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
825 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
826 targetm.asm_out.print_operand.
827 * config/sol2.c: Include target.h.
829 2011-05-04 Jan Hubicka <jh@suse.cz>
831 * ipa-inline.c (reset_edge_caches): New function.
832 (update_caller_keys): Add check_inlinablity_for; do not
833 reset edge caches; remove now unnecesary loop.
834 (update_callee_keys): Add comments; reset node_growth_cache of callee.
835 (update_all_callee_keys): Likewise.
836 (inline_small_functions): Sanity check cache; update code
839 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
841 PR rtl-optimization/47612
842 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
843 as the last insn of the sequence to be moved.
845 2011-05-04 Tobias Burnus <burnus@net-b.de>
848 * doc/invoke.texi (Ofast): Document that it
849 enables Fortran's -fno-protect-parens.
851 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
853 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
855 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
857 * stor-layout.c (variable_size): Do not issue errors.
859 2011-05-04 Richard Guenther <rguenther@suse.de>
861 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
862 for array-ref indices.
863 (tree_coverage_counter_addr): Likewise.
864 (build_fn_info_type): Use size_int for index types.
865 (build_gcov_info): Likewise.
867 2011-05-04 Richard Guenther <rguenther@suse.de>
869 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
871 * c-typeck.c (really_start_incremental_init): Use bitsize_int
872 for constructor indices.
873 (push_init_level): Likewise.
875 2011-05-04 Richard Guenther <rguenther@suse.de>
877 * explow.c (promote_mode): Move variable declarations before code.
879 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
881 * tree.h (build_function_type_array): Declare.
882 (build_varargs_function_type_array): Declare.
883 (build_function_type_vec, build_varargs_function_type_vec): Define.
884 * tree.c (build_function_type_array_1): New function.
885 (build_function_type_array): New function.
886 (build_varargs_function_type_array): New function.
888 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
890 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
891 before setting STMT_VINFO_TYPE.
893 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
895 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
896 instead of spu_pass_by_reference.
898 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
900 * calls.c (emit_library_call_value_1): Invoke
901 promote_function_mode hook on libcall arguments.
902 * explow.c (promote_function_mode, promote_mode): Handle TYPE
904 * targhooks.c (default_promote_function_mode): Lisewise.
905 * config/s390/s390.c (s390_promote_function_mode): Likewise.
906 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
908 * doc/tm.texi: Document that TYPE argument might be NULL.
910 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
912 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
914 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
917 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
919 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
921 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
922 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
924 * mips-tfile.c: ... here.
925 Don't include coretypes.h, tm.h, filenames.h.
926 (saber_stop): Remove definition and all calls.
928 (__LINE__): Remove default.
929 (Size_t, Ptrdiff_t): Remove definitions.
930 Replace by size_t, ptrdiff_t.
931 [!MIPS_DEBUGGING_INFO]: Remove.
932 (SHASH_SIZE, THASH_SIZE): Remove defaults.
933 (progname): Add const.
935 Replace all uses by static.
936 (ALIGN_SYMTABLE_OFFSET): Remove default.
937 * mips-tdump.c: Don't include coretypes.h, tm.h.
938 Remove !MIPS_IS_STAB guard.
939 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
940 $(TM_H), filenames.h dependencies.
941 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
943 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
946 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
947 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
949 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
952 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
953 account and save/restore RETS.
954 (PROFILE_BEFORE_PROLOGUE): Define.
955 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
956 the push insn to use predecrement.
958 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
961 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
963 2011-05-04 Nick Clifton <nickc@redhat.com>
965 * config/mn10300/mn10300.c: Include cfgloop.h.
967 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
968 Lcc or a FLcc insn into the instruction stream.
969 (mn10300_block_contains_call): New function. Returns true if the
970 given basic block contains a CALL insn.
971 (mn10300_loop_contains_call_insn): New function. Returns true if
972 the given loop contains a CALL insn.
973 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
974 to use the SETLB and Lcc or FLcc insns.
975 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
976 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
977 * config/mn10300/mn10300.opt (msetlb): New option. Used to
978 disable the SETLB optimization.
979 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
980 __SETLB__ or __NO_SETLB__.
981 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
982 (movsf_internal): Handle MDR register.
983 (cmpsi): Make visible.
984 (setlb): New pattern.
988 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
991 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
993 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
994 (vec_concatv2di_rex64_sse): Ditto.
995 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
996 (*vec_extractv2di_1_rex64): Ditto.
999 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1001 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1003 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1005 2011-05-04 Richard Guenther <rguenther@suse.de>
1007 * tree.h (int_const_binop): Remove notrunc argument.
1008 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1009 create integer constants that are properly truncated.
1010 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1011 (const_binop): Remove zero notrunc argument to int_const_binop.
1012 (size_binop_loc): Likewise.
1013 (fold_div_compare): Likewise.
1014 (maybe_canonicalize_comparison_1): Likewise.
1015 (fold_comparison): Likewise.
1016 (fold_binary_loc): Likewise.
1017 (multiple_of_p): Likewise.
1018 * expr.c (store_constructor): Likewise.
1019 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1020 (maybe_fold_stmt_addition): Likewise.
1021 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1022 * stor-layout.c (layout_type): Likewise.
1023 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1024 * tree-sra.c (build_ref_for_offset): Likewise.
1025 (build_user_friendly_ref_for_offset): Likewise.
1026 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1027 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1028 * tree-ssa-loop-niter.c (inverse): Likewise.
1029 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1030 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1031 * tree-switch-conversion.c (check_range): Likewise.
1032 (build_constructors): Likewise.
1033 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1034 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1035 (extract_range_from_assert): Likewise.
1036 (vrp_int_const_binop): Likewise.
1037 (extract_range_from_binary_expr): Likewise.
1038 (extract_range_from_unary_expr): Likewise.
1039 (check_array_ref): Likewise.
1040 (find_case_label_range): Likewise.
1041 (simplify_div_or_mod_using_ranges): Likewise.
1042 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1043 comparing case labels for merging.
1045 2011-05-03 Mark Wielaard <mjw@redhat.com>
1047 * dwarf2out.c (debug_str_hash_forced): Removed.
1048 (gen_label_for_indirect_string): Removed.
1049 (get_debug_string_label): Removed.
1050 (AT_string_form): Generate label directly.
1051 (output_indirect_string): Test indirect_string_node for
1052 DW_FORM_strp instead of checking label and refcount.
1053 (prune_indirect_string): Removed.
1054 (prune_unused_types): Don't check debug_str_hash_forced or
1055 call prune_indirect_string.
1057 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1060 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1062 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1066 * combine.c (try_combine): Skip debug insns at m_split tests.
1068 2011-04-26 Mark Wielaard <mjw@redhat.com>
1071 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1072 when info_section_emitted.
1074 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1076 * config/mips/mips-opts.h: New.
1077 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1079 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1080 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1081 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1083 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1085 (mips_abi, mips_code_readable): Don't declare.
1086 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1087 (mabi=): Use Enum and Var.
1088 (mips_abi): New Enum and EnumValue entries.
1089 (mcode-readable=): Use Enum and Var.
1090 (mips_code_readable_setting): New Enum and EnumValue entries.
1091 (mr10k-cache-barrier=): Use Enum and Var.
1092 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1094 2011-05-03 Jan Hubicka <jh@suse.cz>
1096 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1097 replace hash by pointer map.
1098 (cgraph_node_set_element_def, cgraph_node_set_element,
1099 const_cgraph_node_set_element, varpool_node_set_element_def,
1100 varpool_node_set_element, const_varpool_node_set_element): Remove.
1101 (free_cgraph_node_set, free_varpool_node_set): New function.
1102 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1103 * tree-emutls.c: Free varpool node set.
1104 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1105 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1106 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1107 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1108 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1109 Move here from ipa.c; implement using pointer_map
1110 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1111 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1112 debug_cgraph_node_set, varpool_node_set_new,
1113 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1114 dump_varpool_node_set, debug_varpool_node_set):
1115 Move to ipa-uitls.c.
1116 * passes.c (ipa_write_summaries): Update.
1118 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1120 From Mike Frysinger:
1121 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1122 bf542/bf544/bf547/bf548/bf549.
1124 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1126 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1128 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1131 * config/bfin/bfin.md (MOVCC): New mode_macro.
1132 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1133 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1134 comments from generated assembly.
1136 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1139 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1140 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1141 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1142 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1143 * config/bfin/lib1funcs.asm (___muldi3): New function.
1145 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1147 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1148 build_function_type_list instead of build_function_type.
1149 Rearrange initialization of `args' to do so.
1151 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1153 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1154 instead of build_function_type.
1156 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1158 * config/rs6000/rs6000.c (spe_init_builtins): Call
1159 build_function_type_list instead of build_function_type.
1160 (paired_init_builtins, altivec_init_builtins): Likewise.
1161 (builtin_function_type): Likewise.
1163 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1165 * config/sh/sh.c (sh_media_init_builtins): Call
1166 build_function_type_list instead of build_function_type.
1168 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1170 * config/sparc/sparc.c (sparc_file_end): Call
1171 build_function_type_list instead of build_function_type.
1173 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1175 * config/alpha/alpha.c (alpha_init_builtins): Call
1176 build_function_type_list instead of build_function_type.
1178 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1180 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1181 build_function_type_list instead of build_function_type.
1183 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1185 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1186 build_function_type_list instead of build_function_type.
1187 Delete `endlink' variable.
1189 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1191 * config/avr/avr.c (avr_init_builtins): Call
1192 build_function_type_list instead of build_function_type.
1194 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1196 * config/picochip/picochip.c (picochip_init_builtins): Call
1197 build_function_type_list instead of build_function_type.
1198 Delete `endlink' variable.
1200 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1202 * config/bfin/bfin.c (bfin_init_builtins): Call
1203 build_function_type_list instead of build_function_type.
1205 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1208 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1209 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1211 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1214 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1215 libbffastfp overrides libgcc when -mfast-fp.
1217 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1219 Originally from Bernd Schmidt
1220 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1221 * config/bfin/bfin.c (override_options): Test it and error if
1224 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1226 Originally From Bernd Schmidt
1227 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1230 2011-05-03 Jeff Law <law@redhat.com>
1232 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1233 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1234 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1235 than accessing AUX field directly. Free the AUX field before
1237 (thread_block, thread_through_loop_header): Likewise.
1238 (thread_single_edge, mark_threaded_blocks): Likewise.
1239 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1240 (register_jump_thread): Do not attempt to thread to a NULL edge.
1242 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1244 * function.c (init_function_start): Call decide_function_section.
1245 * varasm.c (decide_function_section): New function.
1246 (assemble_start_function): When not using
1247 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1248 or first_function_block_is_cold.
1249 * rtl.h (decide_function_section): Declare.
1251 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1252 Jakub Jelinek <jakub@redhat.com>
1255 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1256 only succeed if req_mode is the same as set_mode.
1258 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1260 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1261 * genemit.c (gen_exp): Handle RETURN.
1262 * emit-rtl.c (verify_rtx_sharing): Likewise.
1263 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1264 * rtl.c (copy_rtx): RETURN is shared.
1265 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1267 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1268 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1269 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1270 * config/cris/cris.c (cris_expand_return): Likewise.
1271 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1272 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1273 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1274 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1275 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1277 * config/v850/v850.c (expand_epilogue): Likewise.
1278 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1279 * config/arm/arm.md (epilogue): Likewise.
1280 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1281 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1282 variable to ret_reg.
1284 2011-05-03 Richard Guenther <rguenther@suse.de>
1287 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1288 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1289 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1291 2011-05-03 Richard Guenther <rguenther@suse.de>
1293 * c-decl.c (grokdeclarator): Instead of looking at
1294 TREE_OVERFLOW check if the constant fits in the index type.
1296 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1298 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1299 (vec_store_lanes<mode><mode>): Likewise.
1301 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1303 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1304 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1305 convert_optab_index values.
1306 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1307 * genopinit.c (optabs): Initialize the new optabs.
1308 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1309 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1310 (expand_STORE_LANES): New functions.
1311 * tree.h (build_array_type_nelts): Declare.
1312 * tree.c (build_array_type_nelts): New function.
1313 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1314 (vect_model_load_cost): Likewise.
1315 (vect_store_lanes_supported, vect_load_lanes_supported)
1316 (vect_record_strided_load_vectors): Declare.
1317 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1318 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1319 (vect_transform_strided_load): Split out statement recording into...
1320 (vect_record_strided_load_vectors): ...this new function.
1321 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1322 (write_vector_array, create_array_ref): New functions.
1323 (vect_model_store_cost): Add store_lanes_p argument.
1324 (vect_model_load_cost): Add load_lanes_p argument.
1325 (vectorizable_store): Try to use store-lanes functions for
1327 (vectorizable_load): Likewise load-lanes and loads.
1328 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1329 to vect_model_store_cost.
1330 (vect_build_slp_tree): Likewise vect_model_load_cost.
1332 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1334 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1335 * hooks.c (hook_bool_mode_uhwi_false): New function.
1336 * target.def (array_mode_supported_p): New hook.
1337 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1338 * doc/tm.texi: Regenerate.
1339 * stor-layout.c (mode_for_array): New function.
1340 (layout_type): Use it.
1341 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1342 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1344 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1347 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1348 for -fstack-check if the size to allocate is negative.
1350 2011-05-02 Lawrence Crowl <crowl@google.com>
1352 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1353 (timevar_cond_start): New for starting a timer only when it is not
1355 (timevar_cond_stop): New for stopping a timer when it was not already
1358 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1359 (timevar_cond_start): New as above.
1360 (timevar_cond_stop): New as above.
1362 * timevar.def: Add start/stop timers for compiler phases,
1363 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1364 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1365 and TV_PHASE_FINALIZE.
1366 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1367 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1368 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1369 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1370 Make unused TV_OVERLOAD into a start/stop timer.
1372 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1373 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1374 to indicate that they are start/stop timers.
1376 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1377 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1378 Move initialization to do_compile.
1379 (do_compile): Add initialization from above.
1380 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1382 * c-decl.c (c_write_global_declarations): Add start/stop of
1383 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1385 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1386 or TV_PARSE_INLINE, as appropriate.
1387 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1388 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1390 2011-05-02 Jason Merrill <jason@redhat.com>
1393 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1395 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1398 * c-decl.c (finish_decl): Only create a composite if the types are
1401 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1403 * config/fr30/fr30-protos.h (Mmode): Don't define.
1404 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1405 definition where used.
1406 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1407 define. Expand definitions where used.
1408 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1409 Expand definitions where used.
1410 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1411 rx_function_arg, rx_function_arg_advance,
1412 rx_function_arg_boundary): Expand definitions of those macros.
1413 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1414 definition where used.
1416 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1418 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1420 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1421 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1422 with *movv2sf_internal_rex64_avx.
1423 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1424 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1425 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1426 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1427 "vex" in "prefix" attribute calculation.
1428 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1430 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1433 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1434 inputs match the output.
1436 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1439 * config/m68k/m68k.c (m68k_expand_prologue): Set
1440 current_function_static_stack_size.
1442 2011-05-02 Jan Hubicka <jh@suse.cz>
1444 * lto-streamer.c (lto_streamer_cache_insert_1,
1445 lto_streamer_cache_lookup, lto_streamer_cache_create,
1446 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1447 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1449 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1451 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1452 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1453 config/m68k/t-opts: New files.
1454 * config/m68k/m68k-tables.opt: New file (generated).
1455 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1456 extra_options and m68k/t-opts to tmake_file.
1457 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1458 (all_isas): Initialize using m68k-isas.def.
1459 (all_microarchs): Initialize using m68k-microarchs.def.
1460 (m68k_find_selection): Remove.
1461 (m68k_handle_option): Don't assert that global structures are in
1462 use. Use error_at. Access variables via opts pointer. Don't
1463 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1464 directly for -m68020-40 and -m68020-60.
1465 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1466 m68k_tune_entry here.
1467 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1469 (m68k_library_id_string): Remove declaration.
1470 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1471 (m68k_library_id_string): New Variable.
1472 (march=, mcpu=, mtune=): Use Enum and Var.
1474 2011-05-02 Richard Guenther <rguenther@suse.de>
1476 * varasm.c (output_constructor_regular_field): Compute zero-based
1477 index with double-ints. Make sure to ICE instead of producing
1479 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1480 in asserts. Properly use a signed type.
1482 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1484 * config/i386/sse.md (V): New mode iterator.
1485 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1487 (V_256): Rename from AVX256MODE.
1488 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1489 condition to all users.
1491 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1492 condition to all users.
1493 (VF_128): Make V4SF mode unconditional.
1494 (VF_256): Rename from AVX256MODEF2P.
1495 (VI4F_128): Rename from SSEMODE4S.
1496 (VI8F_128): Rename from SSEMODE2D.
1497 (VI4F_256): Rename from AVX256MODE8P.
1498 (VI8F_256): Rename from AVX256MODE4P.
1499 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1500 (ssescalarmodesuffix): Remove SF and DF modes.
1501 (SSEMODE124): Remove.
1502 (SSEMODE1248): Ditto.
1503 (SSEMODEF2P): Ditto.
1504 (AVXMODEF2P): Ditto.
1505 (AVXMODEFDP): Ditto.
1506 (AVXMODEFSP): Ditto.
1507 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1509 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1511 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1512 xop_pcmov_<mode>256. Use V mode iterator.
1514 Adjust RTX patterns globally for renamed mode attributes.
1516 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1518 * haifa-sched.c (sched_emit_insn): Emit insn before first
1519 non-scheduled insn. Inform back-end about new insn. Add
1520 new insn to scheduled_insns list.
1522 2011-05-02 Richard Guenther <rguenther@suse.de>
1524 PR tree-optimization/48822
1525 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1526 (process_scc): Indicate which iteration we start.
1528 2011-05-02 Jan Hubicka <jh@suse.cz>
1530 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1531 (lto_section_overrun): New.
1532 * lto-section-out.c (append_block): Rename to ...
1533 (lto_append_block): ... this one; export.
1534 (lto_output_1_stream): Move lto lto-streamer.h
1535 (lto_output_data_stream): Update.
1536 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1537 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1540 2011-05-02 Richard Guenther <rguenther@suse.de>
1542 * tree.c (tree_code_counts): New global array.
1543 (record_node_allocation_statistics): Count individual tree codes.
1544 (dump_tree_statistics): Dump individual code stats.
1546 2011-05-01 Jan Hubicka <jh@suse.cz>
1548 * ipa-inline.c (caller_growth_limits): Fix thinko when
1549 looking for largest stack frame.
1550 * ipa-inline.h (dump_inline_summary): Declare.
1551 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1553 (dump_inline_summary): Export.
1554 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1556 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1558 * reginfo.c (memory_move_cost): Change rclass argument type form
1559 'enum reg_class' to reg_class_t.
1560 * reload.h (memory_move_cost): Update prototype.
1561 * postreload.c reload_cse_simplify_set): Change type dclass var to
1563 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1565 (ira_allocate_and_set_costs): Change aclass argument type form
1566 'enum reg_class' to reg_class_t.
1567 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1568 Change aclass argument type to reg_class_t.
1569 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1571 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1572 memory_move_cost call.
1574 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1575 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1576 Change type tmp var to reg_class_t.
1578 2011-04-30 Jan Hubicka <jh@suse.cz>
1580 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1581 inlining into function with flatten attribute.
1582 (want_inline_small_function_p): Be more realistic about inlining
1583 cold calls where callee size grows.
1585 2011-04-30 Jan Hubicka <jh@suse.cz>
1587 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1590 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1592 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1593 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1594 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1595 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1596 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1597 (print_operand): Rename to...
1598 (sparc_print_operand): ...this. Make static. Adjust
1599 sparc_print_operand function call.
1600 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1603 2011-04-30 Jan Hubicka <jh@suse.cz>
1606 * ipa-inline.c (early_inliner): Disable when doing late
1607 addition of function.
1609 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1611 * dwarf2out.c (get_address_mode): New inline.
1612 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1613 if not dwarf_strict emit
1614 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1615 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1616 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1617 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1618 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1619 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1620 mem_loc_descriptor callers.
1621 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1622 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1623 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1624 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1625 (base_types): New variable.
1626 (get_base_type_offset, calc_base_type_die_sizes,
1627 base_type_for_mode, mark_base_types, base_type_cmp,
1628 move_marked_base_types): New functions.
1629 (calc_die_sizes): Assert that die_offset is 0 or equal to
1631 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1632 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1633 callers. If not dwarf_strict, call mem_loc_descriptor even for
1634 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1635 (gen_subprogram_die): Don't give up on call site parameters
1636 with non-integral or large integral modes. Adjust
1637 mem_loc_descriptor callers.
1638 (prune_unused_types): Call prune_unused_types_mark on base_types
1640 (resolve_addr): Call mark_base_types.
1641 (dwarf2out_finish): Call move_marked_base_types.
1643 PR tree-optimization/48809
1644 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1646 (gen_inbound_check): Don't compute index_expr - range_min in utype
1647 again, instead reuse SSA_NAME initialized in build_arrays.
1648 Remove two useless gsi_for_stmt calls.
1650 2011-04-29 Jeff Law <law@redhat.com>
1652 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1654 2011-04-29 Martin Jambor <mjambor@suse.cz>
1656 * cgraph.h (cgraph_postorder): Remove declaration.
1657 * ipa-utils.h (ipa_free_postorder_info): Declare.
1658 (ipa_reverse_postorder): Likewise.
1659 * cgraphunit.c: Include ipa-utils.h.
1660 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1661 * ipa-inline.c: Include ipa-utils.h.
1662 (ipa_inline): Update call to ipa_reverse_postorder.
1663 * ipa-pure-const.c (propagate_pure_const): Update call to
1664 ipa_reduced_postorder and ipa_print_order. Call
1665 ipa_free_postorder_info to clean up.
1666 (propagate_nothrow): Likewise.
1667 * ipa-reference.c (propagate): Removed a useless call to
1668 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1669 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1670 * ipa.c: Include ipa-utils.h.
1671 (ipa_profile): Update call to ipa_reverse_postorder.
1672 (cgraph_postorder): Moved to...
1673 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1674 (ipa_utils_print_order): Renamed to ipa_print_order.
1675 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1677 (ipa_free_postorder_info): New function.
1678 * passes.c: Include ipa-utils.h.
1679 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1680 (ipa_write_summaries): Likewise.
1681 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1682 (cgraphunit.o): Likewise.
1684 (ipa-inline.o): Likewise.
1686 2011-04-29 Jan Hubicka <jh@suse.cz>
1688 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1689 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1690 * ipa-inline.h (clause_t): Turn into unsigned int.
1691 * ipa-inline-analysis.c (add_clause): Do more simplification.
1692 (and_predicates): Shortcut more cases.
1693 (predicates_equal_p): Move forward; check that clauses are properly
1695 (or_predicates): Shortcut more cases.
1696 (edge_execution_predicate): Rewrite as...
1697 (set_cond_stmt_execution_predicate): ... this function; handle
1698 __builtin_constant_p.
1699 (set_switch_stmt_execution_predicate): New .
1700 (compute_bb_predicates): New.
1701 (will_be_nonconstant_predicate): Update TODO.
1702 (estimate_function_body_sizes): Use compute_bb_predicates
1703 and free them later, always try to estimate if stmt is constant.
1704 (estimate_time_after_inlining, estimate_size_after_inlining):
1705 Gracefully handle optimized out edges.
1706 (read_predicate): Fix off by one error.
1708 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1710 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1712 2011-04-27 Xinliang David Li <davidxl@google.com>
1714 * tree-profile.c (init_ic_make_global_vars): Set
1715 tls attribute on ic vars.
1716 * coverage.c (coverage_end_function): Initialize
1717 function_list with zero.
1719 2011-04-29 Richard Guenther <rguenther@suse.de>
1721 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1722 for the type of the result.
1723 (fold_builtin_isascii): Likewise.
1724 (fold_builtin_toascii): Use integer_type_node where appropriate.
1725 (fold_builtin_logb): Likewise.
1726 (fold_builtin_frexp): Likewise.
1727 (fold_builtin_strstr): Likewise.
1728 (fold_builtin_strpbrk): Likewise.
1729 (fold_builtin_fputs): Likewise.
1730 (fold_builtin_sprintf): Likewise.
1731 (fold_builtin_snprintf): Likewise.
1732 (fold_builtin_printf): Likewise.
1733 (do_mpfr_remquo): Use a proper type for the assigned constant.
1734 (do_mpfr_lgamma_r): Likewise.
1735 * dwarf2out.c (resolve_one_addr): Use size_int.
1736 * except.c (init_eh): Likewise.
1737 (assign_filter_values): Use integer_type_node for filter values.
1738 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1740 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1741 for EH region numbers.
1742 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1743 for the shift amount.
1745 2011-04-29 Richard Guenther <rguenther@suse.de>
1747 * expr.h (expand_shift): Rename to ...
1748 (expand_variable_shift): ... this.
1749 (expand_shift): Take a constant shift amount.
1750 * expmed.c (expand_shift): Rename to ...
1751 (expand_variable_shift): ... this.
1752 (expand_shift): New wrapper around expand_variable_shift.
1753 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1754 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1755 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1756 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1757 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1758 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1759 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1760 emit_store_flag_1, emit_store_flag): Likewise.
1761 * builtins.c (expand_builtin_signbit): Likewise.
1762 * calls.c (load_register_parameters): Likewise.
1763 * function.c (assign_parm_setup_block): Likewise.
1764 * lower-subreg.c (resolve_shift_zext): Likewise.
1765 * optabs.c (widen_bswap, expand_abs_nojump,
1766 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1767 * spu/spu.c (spu_expand_extv): Likewise.
1768 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1770 2011-04-29 Richard Guenther <rguenther@suse.de>
1772 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1773 for the remapped region number.
1774 * predict.c (build_predict_expr): Use integer_type_node for the
1776 * fold-const.c (fold_binary_loc): Use integer_type_node for
1777 the shift amount. Use a proper type for the PLUS_EXPR operand.
1779 2011-04-29 Michael Matz <matz@suse.de>
1781 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1782 other trees that just builtins.
1783 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1785 2011-04-29 Richard Guenther <rguenther@suse.de>
1787 * tree-nested.c (get_trampoline_type): Use size_int.
1788 (get_nl_goto_field): Likewise.
1789 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1791 (lower_eh_constructs_2): Likewise.
1792 (lower_resx): Likewise.
1793 (lower_eh_dispatch): Likewise.
1794 * tree-mudflap.c (mf_build_string): Use size_int.
1795 (mudflap_register_call): Use integer_type_node for the flag.
1796 (mudflap_enqueue_constant): Use size_int.
1797 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1798 instead of rebuilding it.
1800 2011-04-29 Richard Guenther <rguenther@suse.de>
1802 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1803 Handle OBJ_TYPE_REF.
1804 (find_func_aliases_for_call): Use it more consistently.
1806 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1808 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1809 (rank_for_schedule): Use it.
1810 (schedule_block): Set it.
1812 2011-04-28 David Li <davidxl@google.com>
1814 * tree.c (crc32_string): Use crc32_byte.
1815 (crc32_byte): New function.
1816 * tree.h (crc32_byte): New function.
1817 * gcov.c (read_graph_file): Handle new cfg_cksum.
1818 (read_count_file): Ditto.
1819 * profile.c (instrument_values): Ditto.
1820 (get_exec_counts): Ditto.
1821 (read_profile_edge_counts): Ditto.
1822 (compute_branch_probabilities): Ditto.
1823 (compute_value_histograms): Ditto.
1824 (branch_prob): Ditto.
1825 (end_branch_prob): Ditto.
1826 * coverage.c (read_counts_file): Ditto.
1827 (get_coverage_counts): Ditto.
1828 (tree_coverage_counter_addr): Ditto.
1829 (coverage_checksum_string): Ditto.
1830 (coverage_begin_output): Ditto.
1831 (coverage_end_function): Ditto.
1832 (build_fn_info_type): Ditto.
1833 (build_fn_info_value): Ditto.
1834 * libgcov.c (gcov_exit): Ditto.
1835 * gcov-dump.c (tag_function): Ditto.
1836 (compute_checksum): Remove.
1838 2011-04-29 Alan Modra <amodra@gmail.com>
1840 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1841 unspec plus offset. Tidy macho code.
1843 2011-04-29 Martin Jambor <mjambor@suse.cz>
1845 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1846 node instead of a decl. Update all callers.
1847 * cgraph.h: Update declaration.
1849 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1851 PR tree-optimization/48765
1852 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1853 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1854 to indicate if loop aware SLP is being used. Scan the statements
1855 and update the vectorization factor according to the type of
1856 vectorization before statement analysis.
1857 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1858 pass it to vect_analyze_loop_operations.
1859 (vectorizable_reduction): Set number of copies to 1 in case of pure
1861 * tree-vect-stmts.c (vectorizable_conversion,
1862 vectorizable_assignment, vectorizable_shift,
1863 vectorizable_operation, vectorizable_type_demotion,
1864 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1866 (vectorizable_condition): Move the check that it is not SLP
1867 vectorization before the number of copies check.
1868 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1869 to vectorize the loop using SLP.
1871 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1874 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1877 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1879 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1880 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1881 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1882 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1883 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1885 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1886 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1887 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1888 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1889 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1890 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1892 * config/i386/linux.h (REG_NAME): Don't define.
1893 * config/i386/linux64.h (REG_NAME): Don't define.
1894 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1895 Undefine before defining.
1897 2011-04-28 Jan Hubicka <jh@suse.cz>
1899 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1900 nonconstant_names array.
1901 (estimate_function_body_sizes): Build nonconstant_names array; handle
1902 BUILT_IN_CONSTANT_P.
1904 2011-04-28 Richard Guenther <rguenther@suse.de>
1908 2011-04-28 Richard Guenther <rguenther@suse.de>
1910 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1911 as late as possible.
1913 2011-04-28 Richard Guenther <rguenther@suse.de>
1915 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1916 (debug_constraint): Do it here.
1917 (dump_constraints): And here.
1918 (rewrite_constraints): And here.
1919 (dump_constraint_edge): Remove.
1920 (dump_constraint_graph): Rewrite to produce DOT output.
1921 (solve_constraints): Build succ graph as late as possible.
1922 Dump constraint graphs before and after solving.
1924 2011-04-28 Richard Guenther <rguenther@suse.de>
1926 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1927 New function split out from ...
1928 (find_func_aliases): ... here. Call it.
1929 (find_func_aliases_for_call): Likewise.
1931 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1933 * internal-fn.h (internal_fn_name_array): Declare.
1934 (internal_fn_flags_array): Likewise.
1936 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1938 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1939 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1941 (ssemodefsuffix): Remove.
1942 (ssevecmodesuffix): New mode attribute.
1943 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1944 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1945 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1946 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1947 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1948 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1949 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1950 ssemodesuffix mode attribute.
1951 (float splitters): Use ssevecmodesuffix mode attribute.
1952 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1953 (sseinsmode): Rename from avxvecmode.
1954 (avxsizesuffix): Rename from avxmodesuffix.
1955 (sseintvecmode): Rename from avxpermvecmode.
1956 (ssedoublevecmode): Rename from ssedoublesizemode.
1957 (ssehalfvecmode): Rename from avxhalfvecmode.
1958 (ssescalarmode): Rename from avxscalarmode.
1959 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1960 templates for ssemodesuffix mode attribute.
1961 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1964 Adjust RTX patterns globally for renamed mode attributes.
1966 2011-04-27 Jan Hubcika <jh@suse.cz>
1968 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1969 * ipa-inline-analysis.c: Include alloc-pool.h.
1970 (edge_predicate_pool): New.
1971 (trye_predicate_p): New function
1972 (false_predicate_p): New function.
1973 (add_clause): Sanity check that false clauses are "optimized";
1974 never add clauses to predicate that is already known to be false.
1975 (and_predicate): Use flase_predicate_p.
1976 (evaulate_predicate): Rename to ...
1977 (evaluate_predicate): ... this one; update all callers; assert
1978 that false is not listed among possible truths.
1979 (dump_predicate): Use true_predicate_p.
1980 (account_size_time): Use false_predicate_p.
1981 (evaulate_conditions_for_edge): Rename to ...
1982 (evaluate_conditions_for_edge) ... this one.
1983 (edge_set_predicate): New function.
1984 (inline_edge_duplication_hook): Duplicate edge predicates.
1985 (inline_edge_removal_hook): Free edge predicates.
1986 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1987 (dump_inline_summary): Update.
1988 (estimate_function_body_sizes): Set edge predicates.
1989 (estimate_calls_size_and_time): Handle predicates.
1990 (estimate_callee_size_and_time): Update.
1991 (remap_predicate): Add toplev_predicate; update comment.
1992 (remap_edge_predicates): New function.
1993 (inline_merge_summary): Compute toplev predicate; update.
1994 (read_predicate): New function.
1995 (read_inline_edge_summary): Use it.
1996 (inline_read_section): Likewise.
1997 (write_predicate): New function.
1998 (write_inline_edge_summary): Use it.
1999 (inline_write_summary): Likewise.
2000 (inline_free_summary): Free alloc pool and edge summary vec.
2002 2011-04-27 Richard Guenther <rguenther@suse.de>
2004 * tree-ssa-structalias.c (changed_count): Remove.
2005 (changed): Use a bitmap.
2006 (unify_nodes): Adjust.
2007 (do_sd_constraint): Likewise.
2008 (do_ds_constraint): Likewise.
2009 (do_complex_constraint): Likewise.
2010 (solve_graph): Likewise.
2012 2011-04-27 Jan Hubicka <jh@suse.cz>
2014 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2016 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2018 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2019 (avx_vperm2f128_*_operand): Ditto.
2020 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2021 Use avx_vpermilp_parallel in insn condition.
2022 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2023 Use avx_vperm2f128_parallel in insn condition.
2025 2011-04-27 Richard Guenther <rguenther@suse.de>
2027 * Makefile.in (tree-ssa-structalias.o): Remove
2028 gt-tree-ssa-structalias.h dependency.
2029 (GTFILES): Remove tree-ssa-structalias.c.
2030 * tree.c (allocate_decl_uid): New function.
2031 (make_node_stat): Use it.
2032 (copy_node_stat): Likewise.
2033 * tree.h (allocate_decl_uid): Declare.
2034 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2035 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2036 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2037 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2038 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2039 (struct heapvar_map): Likewise.
2040 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2041 heapvar_insert): Likewise.
2042 (make_heapvar_for): Rename to ...
2043 (make_heapvar): ... this. Simplify.
2044 (fake_var_decl_obstack): New global var.
2045 (build_fake_var_decl): New function.
2046 (make_constraint_from_heapvar): Adjust.
2047 (handle_lhs_call): Likewise.
2048 (create_function_info_for): Likewise.
2049 (intra_create_variable_infos): Likewise.
2050 (init_alias_vars): Allocate fake_var_decl_obstack.
2051 (init_alias_heapvars, delete_alias_heapvars): Remove.
2052 (compute_points_to_sets): Do not call init_alias_heapvars.
2053 (ipa_pta_execute): Likewise.
2054 (delete_points_to_sets): Free fake_var_decl_obstack.
2056 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2058 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2059 (si_from_UTItype, si_to_UTItype): New functions.
2060 (__udivmodti4): Use them to implement type-punning.
2061 * config/spu/multi3.c (union qword_TItype): New data type.
2062 (si_from_TItype, si_to_TItype): New functions.
2063 (__multi3): Use them to implement type-punning.
2065 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2067 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2069 2011-04-27 Jan Hubicka <jh@suse.cz>
2071 * ipa-prop.c (function_insertion_hook_holder): New holder.
2072 (ipa_add_new_function): New function.
2073 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2074 Register/deregister holder.
2076 2011-04-27 Richard Guenther <rguenther@suse.de>
2078 PR tree-optimization/48772
2079 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2081 2011-04-27 Richard Guenther <rguenther@suse.de>
2083 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2084 TARGET_MEM_REF handling.
2086 2011-04-27 Nick Clifton <nickc@redhat.com>
2088 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2089 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2090 (REG_CLASS_NAMES): Likewise.
2091 (REG_CLASS_CONTENTS): Likewise.
2092 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2093 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2094 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2095 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2096 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2097 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2098 duplicate register classes.
2099 (frv_class_likely_spilled_p): Likewise.
2100 (frv_register_move_cost): Likewise.
2102 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2103 end of the regno_reg_class array.
2105 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2108 * c-typeck.c (build_binary_op): Don't wrap arguments if
2109 int_operands is true.
2111 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2114 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2115 targetm.calls.must_pass_in_stack for void type.
2117 2011-04-26 Jan Hubicka <jh@suse.cz>
2119 * cgraphbuild.c (build_cgraph_edges): Update call
2120 of cgraph_create_edge and cgraph_create_indirect_edge.
2121 * cgraph.c (cgraph_create_edge_including_clones,
2122 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2123 cgraph_update_edges_for_call_stmt_node): Do not take nest
2124 argument; do not initialize call_stmt_size/time.
2125 (dump_cgraph_node): Do not dump nest.
2126 (cgraph_clone_edge): Do not take loop_nest argument;
2127 do not propagate it; do not clone call_stmt_size/time.
2128 (cgraph_clone_node): Likewise.
2129 (cgraph_create_virtual_clone): Update.
2130 * cgraph.h (struct cgraph_edge): Remove
2131 call_stmt_size/call_stmt_time/loop_nest.
2132 (cgraph_create_edge, cgraph_create_indirect_edge,
2133 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2135 * tree-emutls.c (gen_emutls_addr): Update.
2136 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2137 loop_nest; handle indirect calls, too.
2138 (clone_inlined_nodes): Do not care about updating inline summaries.
2139 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2140 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2141 stream call_stmt_size/call_stmt_time/loop_nest.
2142 * ipa-inline.c (edge_badness): Update.
2143 (ipa_inline): dump summaries after inlining.
2144 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2146 (inline_edge_summary): New function.
2147 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2148 (inline_edge_removal_hook): Handle edge summaries.
2149 (inline_edge_duplication_hook): New hook.
2150 (inline_summary_alloc): Alloc hooks.
2151 (initialize_growth_caches): Do not register removal hooks.
2152 (free_growth_caches); Do not free removal hook.
2153 (dump_inline_edge_summary): New function.
2154 (dump_inline_summary): Use it.
2155 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2156 (inline_update_callee_summaries): New function.
2157 (inline_merge_summary): Use it.
2158 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2159 (read_inline_edge_summary): New function.
2160 (inline_read_section): Use it.
2161 (write_inline_edge_summary): New function.
2162 (inline_write_summary): Use it.
2163 (inline_free_summary): Free edge new holders.
2164 * tree-inline.c (copy_bb): Update.
2166 2011-04-26 Jason Merrill <jason@redhat.com>
2168 * tree-eh.c (lower_try_finally_switch): Create the label along with
2169 the CASE_LABEL_EXPR.
2171 2011-04-26 David S. Miller <davem@davemloft.net>
2172 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2174 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2175 * configure: Regenerate.
2177 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2180 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2182 (VEC_reduc): New code iterator and splitters for vector reduction.
2183 (VEC_reduc_name): Ditto.
2184 (VEC_reduc_rtx): Ditto.
2185 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2186 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2188 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2189 support for extracting SF on VSX.
2191 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2192 generating xscvspdp.
2193 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2194 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2195 double add, minimum, maximum vector reduction.
2196 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2197 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2198 optimize double vector reduction.
2199 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2201 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2203 * config/fr30/fr30.h (inhibit_libc): Don't define.
2204 * config/m32r/m32r-protos.h: Correct comment.
2205 * config/v850/v850.h (GHS_default_section_names,
2206 GHS_current_section_names): Use tree, not union tree_node *.
2208 2011-04-26 Xinliang David Li <davidxl@google.com>
2210 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2211 * c-family/c-opts.c (c_common_handle_option): Set
2212 warn_maybe_uninitialized.
2213 * opts.c (common_handle_option): Ditto.
2214 * common.opt: New option.
2215 * tree-ssa.c (warn_uninit): Add one more parameter.
2216 (warn_uninitialized_var): Pass warning code.
2217 * tree-flow.h: Interface change.
2220 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2222 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2223 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2224 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2226 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2228 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2229 * config/mips/mips.opt (mmips-tfile): Remove.
2231 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2232 mips-tdump reference to ...
2233 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2234 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2235 reference by Tru64 UNIX.
2237 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2240 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2241 is error_mark_node, set value to NULL.
2243 PR tree-optimization/48734
2244 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2245 if return value from maybe_fold_*_comparsions isn't something
2246 the code is prepared to handle.
2248 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2250 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2252 (ext_QIreg_nomode_operands): Remove.
2253 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2257 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2259 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2261 2011-04-26 Richard Guenther <rguenther@suse.de>
2263 * c-typeck.c (build_unary_op): Do not expand array-refs via
2264 pointer arithmetic. Only adjust qualifiers for function types.
2266 2011-04-26 Richard Guenther <rguenther@suse.de>
2269 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2270 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2271 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2272 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2274 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2276 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2277 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2278 * doc/extend.texi: Document __underlying_type.
2280 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2282 * config/rs6000/titan.md (automata_option "progress"): Remove.
2284 2011-04-25 Jeff Law <law@redhat.com>
2286 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2288 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2290 * system.h (ENUM_BITFIELD): Remove.
2292 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2293 Eric Botcazou <ebotcazou@adacore.com>
2295 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2296 for STORE_FLAG_VALUE==-1 case.
2298 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2301 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2302 LEGITIMATE_PIC_OPERAND_P.
2304 2011-04-24 Jan Hubicka <jh@suse.cz>
2306 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2308 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2309 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2310 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2311 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2312 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2313 Sanity check predicate length.
2314 (remap_predicate): Likewise; sanity check jump functions.
2315 (inline_read_section, inline_write_summary): Sanity check
2318 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2321 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2322 __is_literal_type, and __is_trivial; update throughout about
2323 possibly cv-qualified void types.
2325 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2327 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2328 testsuite and make it version agnostic.
2330 2011-04-22 Jan Hubicka <jh@suse.cz>
2332 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2334 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2337 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2338 to VOID_TYPE even around MODIFY_EXPR.
2340 2011-04-22 Mike Stump <mikestump@comcast.net>
2342 * gensupport.c (read_md_rtx): Fix typo in comment.
2343 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2346 2011-04-22 Jan Hubicka <jh@suse.cz>
2348 * gengtype.c (open_base_files): Add ipa-inline.h include.
2349 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2350 ipa-prop.c; update all uses.
2351 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2352 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2353 merge summary of inlined function into former caller.
2354 * ipa-inline.c (max_benefit): Remove.
2355 (edge_badness): Compensate for removal of benefits.
2356 (update_caller_keys): Use
2357 reset_node_growth_cache/reset_edge_growth_cache.
2358 (update_callee_keys): Likewise.
2359 (update_all_callee_keys): Likewise.
2360 (inline_small_functions): Do not collect max_benefit; do not reset
2361 estimated_growth; call free_growth_caches and initialize_growth_caches.
2362 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2363 struct size_time_entry): New structures.
2364 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2365 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2366 and estimated_growth.
2367 (edge_growth_cache_entry): New structure.
2368 (node_growth_cache, edge_growth_cache): New global vars.
2369 (estimate_growth): Turn into inline.
2370 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2371 initialize_growth_caches, free_growth_caches): Declare.
2372 (estimate_edge_growth): Rewrite.
2373 (estimate_edge_time): Implement as inline cache lookup.
2374 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2376 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2377 (NUM_CONDITIONS): New constant.
2378 (predicate_conditions): New enum.
2379 (IS_NOT_CONSTANT): New constant.
2380 (edge_removal_hook_holder): New var.
2381 (node_growth_cache, edge_growth_cache): New global vars.
2382 (true_predicate, single_cond_predicate, false_predicate,
2383 not_inlined_predicate, add_condition, add_clause, and_predicates,
2384 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2385 dump_clause, dump_predicate, account_size_time,
2386 evaulate_conditions_for_edge): New functions.
2387 (inline_summary_alloc): Move to heap.
2388 (inline_node_removal_hook): Clear condition and entry vectors.
2389 (inline_edge_removal_hook): New function.
2390 (initialize_growth_caches, free_growth_caches): New function.
2391 (dump_inline_summary): Update.
2392 (edge_execution_predicate): New function.
2393 (will_be_nonconstant_predicate): New function.
2394 (estimate_function_body_sizes): Compute BB and constantness predicates.
2395 (compute_inline_parameters): Do not clear estimated_growth.
2396 (estimate_edge_size_and_time): New function.
2397 (estimate_calls_size_and_time): New function.
2398 (estimate_callee_size_and_time): New function.
2399 (remap_predicate): New function.
2400 (inline_merge_summary): New function.
2401 (do_estimate_edge_time): New function based on...
2402 (estimate_edge_time): ... this one.
2403 (do_estimate_edge_growth): New function.
2404 (do_estimate_growth): New function based on....
2405 (estimate_growth): ... this one.
2406 (inline_analyze_function): Analyze after deciding on jump functions.
2407 (inline_read_section): New function.
2408 (inline_read_summary): Use it.
2409 (inline_write_summary): Write all the new data.
2410 * ipa-prop.c (ipa_get_param_decl_index): Export.
2411 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2412 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2414 (ipa_get_lattice): Move here from ipa-cp.c
2415 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2416 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2417 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2418 cgraph_edge_inlinable_p): Remove.
2419 * cgraphunit.c: Include ipainline.h
2420 (cgraph_process_new_functions): Update call of
2421 compute_inline_parameters.
2423 2011-04-22 Richard Guenther <rguenther@suse.de>
2425 * tree.c (build_int_cst): Properly create canonicalized integer
2427 (build_int_cst_type): Remove scary comments.
2429 2011-04-22 Xinliang David Li <davidxl@google.com>
2431 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2432 by default when -Wno-error is not specified.
2433 * opts-global.c (decode_options): Remove call to
2434 control_warning_options.
2436 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2438 PR tree-optimization/48717
2439 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2440 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2442 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2444 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2445 definition where used.
2447 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2450 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2451 TREE_STATIC variables declared inside of some OpenMP construct.
2453 2011-04-22 Martin Jambor <mjambor@suse.cz>
2456 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2458 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2461 * c-typeck.c (pop_init_level): Do not warn about initializing
2464 2011-04-22 Alan Modra <amodra@gmail.com>
2466 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2467 when returning call_cookie.
2468 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2469 pointers, to functions with no more vector args than the current
2470 function, and some non-local calls for ABI_V4.
2471 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2472 sibcall_nonlocal_aix64): Combine to ..
2473 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2474 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2475 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2476 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2477 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2479 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2480 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2481 sibcall_value_symbolic_64): Delete.
2483 2011-04-21 Xinliang David Li <davidxl@google.com>
2485 * cgraph.h: Remove pid.
2486 * cgraph.c: Remove pid.
2487 * value-prof.c (init_node_map): New function.
2488 (del_node_map): New function.
2489 (find_func_by_funcdef_no): New function.
2490 (gimple_ic_transform): Call new function.
2491 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2492 * function.c (get_last_funcdef_no): New function.
2493 * function.h (get_last_funcdef_no): New function.
2494 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2495 to libgcov function.
2496 (tree-profiling): Call node map init and delete function.
2498 2011-04-21 Ian Lance Taylor <iant@google.com>
2500 * godump.c (go_format_type): Use exported Go name for anonymous
2503 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2505 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2506 Call builtin_function_type_list instead of builtin_function_type.
2507 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2509 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2511 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2512 build_function_type_list instead of build_function_type.
2513 Delete variable `endlink'.
2515 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2517 * config/s390/s390.c (s390_init_builtins): Call
2518 build_function_type_list instead of build_function_type.
2520 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2522 * config/ia64/ia64.c (ia64_init_builtins): Call
2523 build_function_type_list instead of builtin_function_type.
2525 2011-04-21 Easwaran Raman <eraman@google.com>
2527 * cfgexpand.c (stack_var): Remove OFFSET...
2528 (add_stack_var): ...and its reference here...
2529 (expand_stack_vars): ...and here.
2530 (stack_var_cmp): Sort by descending order of size.
2531 (partition_stack_vars): Change heuristic.
2532 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2533 (dump_stack_var_partition): Add newline after each partition.
2535 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2536 Jeff Law <law@redhat.com>
2538 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2539 * gengtype.c (matching_file_name_substitute): Likewise.
2541 2011-04-21 Richard Guenther <rguenther@suse.de>
2544 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2546 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2548 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2550 2011-04-21 Richard Guenther <rguenther@suse.de>
2552 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2555 2011-04-21 Richard Guenther <rguenther@suse.de>
2557 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2558 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2559 Use DECL_P, not SSA_VAR_P.
2560 (ptr_derefs_may_alias_p): Likewise.
2561 (ptr_deref_may_alias_ref_p_1): Likewise.
2562 (decl_refs_may_alias_p): Likewise.
2563 (refs_may_alias_p_1): Likewise.
2564 (ref_maybe_used_by_call_p_1): Likewise.
2565 (call_may_clobber_ref_p_1): Likewise.
2566 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2567 are either MEM_REF or TARGET_MEM_REF.
2568 (indirect_refs_may_alias_p): Likewise.
2569 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2570 for MEM_EXPR of indirect calls.
2572 2011-04-21 Tristan Gingold <gingold@adacore.com>
2574 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2575 (dst_file_info_struct): Remove flen field.
2576 (lookup_filename): Remove code that set flen field.
2578 2011-04-21 Tristan Gingold <gingold@adacore.com>
2580 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2582 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2585 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2586 vec_extract and vec_concat for non-SSE4_1 targets.
2588 2011-04-21 Richard Guenther <rguenther@suse.de>
2590 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2593 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2595 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2597 (FILE): Don't undefine.
2599 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2601 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2603 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2605 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2606 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2607 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2609 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2610 definitions where used.
2611 * config/microblaze/microblaze.h (struct microblaze_args): Use
2612 rtx, not struct rtx_def *.
2613 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2615 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2616 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2617 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2618 not struct rtx_def *.
2619 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2621 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2623 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2625 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2627 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2628 operand_equal_p to compare DR_BASE_ADDRESSes.
2629 (vect_check_interleaving): Likewise.
2631 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2634 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2635 for all Neon struct constants.
2637 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2639 * target.def (legitimate_constant_p): New hook.
2640 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2641 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2642 * doc/tm.texi: Regenerate.
2643 * hooks.h (hook_bool_mode_rtx_true): Declare.
2644 * hooks.c (hook_bool_mode_rtx_true): Define.
2645 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2646 * calls.c (precompute_register_parameters): Replace uses of
2647 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2648 (emit_library_call_value_1): Likewise.
2649 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2650 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2651 * ira-costs.c (scan_one_insn): Likewise.
2652 * recog.c (general_operand, immediate_operand): Likewise.
2653 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2654 * reload1.c (init_eliminable_invariants): Likewise.
2656 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2658 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2659 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2661 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2662 * config/alpha/predicates.md (input_operand): Update call to
2663 alpha_legitimate_constant_p.
2665 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2666 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2667 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2668 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2669 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2670 (arm_legitimate_constant_p): New functions.
2671 (arm_cannot_force_const_mem): Make static.
2673 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2675 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2676 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2677 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2678 instead of bfin_legitimate_constant_p.
2679 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2680 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2682 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2684 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2686 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2687 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2688 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2689 (frv_legitimate_constant_p): Make static. Add a mode argument.
2691 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2692 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2693 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2695 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2696 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2697 * config/i386/i386.c (legitimate_constant_p): Rename to...
2698 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2700 (ix86_cannot_force_const_mem): Update accordingly.
2701 (ix86_legitimate_address_p): Likewise.
2702 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2703 * config/i386/i386.md: Update commentary.
2705 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2706 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2707 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2708 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2710 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2712 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2713 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2714 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2715 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2717 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2718 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2719 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2721 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2722 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2723 (m32r_legitimate_constant_p): New function.
2725 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2726 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2727 LEGITIMATE_CONSTANT_P.
2728 (LEGITIMATE_CONSTANT_P): Delete.
2729 * config/m68k/m68k.c (m68k_expand_prologue): Call
2730 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2731 (m68k_legitimate_constant_p): New function.
2732 * config/m68k/m68k.md: Update comments.
2734 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2735 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2736 (mcore_legitimate_constant_p): New function.
2738 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2739 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2740 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2741 Add a mode argument.
2742 (mep_legitimate_address): Update accordingly.
2743 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2745 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2747 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2748 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2749 static. Check OP's mode for VOIDmode.
2750 (microblaze_legitimate_constant_p): New function.
2751 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2753 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2754 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2755 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2756 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2757 * config/mips/predicates.md: Update comments.
2759 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2760 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2761 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2762 (mmix_legitimate_constant_p): Make static, return a bool, and take
2764 (mmix_print_operand_address): Update accordingly.
2766 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2768 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2769 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2770 static. Add a mode argument.
2771 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2773 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2775 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2776 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2777 (pa_legitimate_constant_p): New function.
2779 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2781 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2782 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2783 (pdp11_legitimate_constant_p): New function.
2785 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2786 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2787 (rs6000_legitimate_constant_p): New function.
2789 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2790 (rx_legitimate_constant_p): ...this.
2791 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2792 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2793 (rx_legitimate_constant_p): ...this.
2794 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2795 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2797 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2798 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2799 * config/s390/s390.c (legitimate_constant_p): Rename to...
2800 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2801 and add a mode argument.
2802 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2804 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2806 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2807 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2808 (sh_legitimate_constant_p): New function.
2810 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2811 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2812 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2813 (legitimate_constant_p): Rename to...
2814 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2816 (constant_address_p): Update accordingly.
2818 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2819 argument and return a bool.
2820 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2821 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2822 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2823 (spu_rtx_costs): Update accordingly.
2824 * config/spu/predicates.md (vec_imm_operand): Likewise.
2826 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2828 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2829 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2830 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2832 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2833 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2834 * config/vax/vax.c (legitimate_constant_p): Likewise.
2836 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2837 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2838 (xtensa_legitimate_constant_p): New function.
2840 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2842 * target.def (cannot_force_const_mem): Add a mode argument.
2843 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2844 * doc/tm.texi: Regenerate.
2845 * hooks.h (hook_bool_mode_rtx_false): Declare.
2846 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2847 (hook_bool_mode_const_rtx_true): Likewise.
2848 (hook_bool_mode_rtx_false): New function.
2849 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2850 to be non-VOID. Update call to cannot_force_const_mem.
2851 (find_reloads): Update accordingly.
2852 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2853 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2855 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2856 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2857 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2858 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2859 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2860 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2861 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2862 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2863 (m68k_cannot_force_const_mem): ...this new function.
2864 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2866 (mips_const_insns, mips_legitimize_const_move): Update calls.
2867 (mips_secondary_reload_class): Likewise.
2868 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2869 (pa_cannot_force_const_mem): ...this new function.
2870 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2871 (rs6000_cannot_force_const_mem): ...this new function.
2872 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2874 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2875 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2877 (xtensa_cannot_force_const_mem): ...this new function.
2879 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2881 * config/mips/mips.c (mips16_build_function_stub): Call
2882 build_function_type_list instead of build_function_type.
2883 (mips16_build_call_stub): Likewise.
2885 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2887 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2888 instead of build_function_type.
2890 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2892 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2893 instead of build_function_type.
2895 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2898 * config/i386/i386.md (insv): Change operand 0 constraint to
2899 "register_operand". Change operand 1 and 2 constraint to
2900 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2901 * config/i386/sse.md (sse4_1_pinsrb): Export.
2902 (sse2_pinsrw): Ditto.
2903 (sse4_1_pinsrd): Ditto.
2904 (sse4_1_pinsrq): Ditto.
2905 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2906 * config/i386/i386.c (ix86_expand_pinsr): New.
2908 2011-04-20 Easwaran Raman <eraman@google.com>
2910 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2911 containing union type only with -fstrict-aliasing.
2913 2011-04-20 Jim Meyering <meyering@redhat.com>
2915 Remove useless if-before-free tests.
2916 * calls.c (expand_call, save_area): Likewise.
2917 * cfgcleanup.c (try_forward_edges): Likewise.
2918 * collect2.c (collect_execute): Likewise.
2919 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2920 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2921 * coverage.c (coverage_checksum_string): Likewise.
2922 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2923 * cselib.c (cselib_init): Likewise.
2924 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2925 (df_set_clean_cfg): Likewise.
2926 * function.c (free_after_compilation): Likewise.
2927 * gcc.c (do_spec_1, main): Likewise.
2928 * gcov.c (create_file_names): Likewise.
2929 * gensupport.c (identify_predicable_attribute): Likewise.
2930 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2931 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2932 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2933 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2934 * ipa-pure-const.c (local_pure_const): Likewise.
2935 * ipa-reference.c (propagate): Likewise.
2936 * ira-costs.c (free_ira_costs): Likewise.
2937 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2938 * matrix-reorg.c (mat_free): Likewise.
2939 * prefix.c (get_key_value): Likewise.
2940 * profile.c (compute_value_histograms): Likewise.
2941 * reload1.c (free_reg_equiv): Likewise.
2942 * sched-deps.c (free_deps): Likewise.
2943 * sel-sched-ir.c (fence_clear): Likewise.
2944 * sese.c (set_rename, if_region_set_false_region): Likewise.
2945 * tree-data-ref.c (free_rdg): Likewise.
2946 * tree-eh.c (lower_try_finally): Likewise.
2947 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2948 * tree-ssa-live.c (delete_var_map): Likewise.
2949 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2950 * tree-ssa-pre.c (phi_trans_add): Likewise.
2952 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2954 PR tree-optimization/48611
2955 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2956 beyond ERT_MUST_NOT_THROW region.
2958 2011-04-20 Catherine Moore <clm@codesourcery.com>
2960 * config/mips/mips.opt (mfix-24k): New.
2961 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2962 * config/mips/mips.md (length): Increase by 4 for stores if
2964 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2965 all noreorder if fixing 24K errata.
2966 * doc/invoke.texi: Document mfix-24k.
2968 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2970 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2971 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2973 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2975 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2976 (const_ok_for_op): ... to here.
2978 2011-04-20 Kai Tietz <ktietz@redhat.com>
2980 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2981 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2983 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2985 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2987 2011-04-20 Richard Guenther <rguenther@suse.de>
2989 PR tree-optimization/47892
2990 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2993 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2995 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2997 2011-04-20 Tristan Gingold <gingold@adacore.com>
2999 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3001 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
3005 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3006 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3007 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3008 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3009 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3011 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3014 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3015 (avr_asm_named_section, avr_asm_output_aligned_common,
3016 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3017 New functions to update...
3018 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3019 (avr_asm_init_sections): Overwrite section callbacks for
3020 data_section, bss_section.
3021 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3023 (avr_file_end): ...here.
3025 2011-04-20 Richard Guenther <rguenther@suse.de>
3028 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3029 objects and types here. Adjust for their offset before comparing.
3031 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3033 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3036 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3038 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3039 (GIMPLE_H): Include $(INTERNAL_FN_H).
3040 (OBJS-common): Add internal-fn.o.
3041 (internal-fn.o): New rule.
3042 * internal-fn.def: New file.
3043 * internal-fn.h: Likewise.
3044 * internal-fn.c: Likewise.
3045 * gimple.h: Include internal-fn.h.
3046 (GF_CALL_INTERNAL): New gf_mask.
3047 (gimple_statement_call): Put fntype into a union with a new
3049 (gimple_build_call_internal): Declare.
3050 (gimple_build_call_internal_vec): Likewise.
3051 (gimple_call_same_target_p): Likewise.
3052 (gimple_call_internal_p): New function.
3053 (gimple_call_internal_fn): Likewise.
3054 (gimple_call_fntype): Return null for internal calls.
3055 (gimple_call_set_fntype): Assert that the function is not internal.
3056 (gimple_call_set_fn): Likewise.
3057 (gimple_call_set_fndecl): Likewise.
3058 (gimple_call_set_internal_fn): New function.
3059 (gimple_call_addr_fndecl): Handle null functions.
3060 (gimple_call_return_type): Likewise null types.
3061 * gimple.c (gimple_build_call_internal_1): New function.
3062 (gimple_build_call_internal): Likewise.
3063 (gimple_build_call_internal_vec): Likewise.
3064 (gimple_call_same_target_p): Likewise.
3065 (gimple_call_flags): Handle calls to internal functions.
3066 (gimple_call_fnspec): New function.
3067 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3068 (gimple_has_side_effects): Handle null functions.
3069 (gimple_rhs_has_side_effects): Likewise.
3070 (gimple_call_copy_skip_args): Handle calls to internal functions.
3071 * cfgexpand.c (expand_call_stmt): Likewise.
3072 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3073 * gimple-fold.c (gimple_fold_call): Handle null functions.
3074 (gimple_fold_stmt_to_constant_1): Don't fold
3075 calls to internal functions.
3076 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3078 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3079 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3080 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3081 (do_warn_unused_result): Likewise.
3082 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3083 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3084 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3085 the target of a call.
3086 (initialize_hash_element): Update accordingly.
3087 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3088 (iterative_hash_hashable_expr): Handle calls to internal functions.
3089 (print_expr_hash_elt): Likewise.
3090 * tree-ssa-pre.c (can_value_number_call): Likewise.
3091 (eliminate): Handle null functions.
3092 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3093 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3094 (find_func_aliases): Likewise.
3095 * value-prof.c (gimple_ic_transform): Likewise.
3096 (gimple_indirect_call_to_profile): Likewise.
3097 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3098 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3100 2011-04-19 Jan Hubicka <jh@suse.cz>
3102 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3103 * ipa-inline.c (inline_small_functions): Compute summaries first,
3104 populate heap later.
3106 2011-04-19 Jan Hubicka <jh@suse.cz>
3108 * cgraph.h (save_inline_function_body): Remove.
3109 * ipa-inline-transform.c: New file, broke out of...
3110 * ipa-inline.c: ... this one; Update toplevel comment.
3111 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3113 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3114 (cgraph_mark_inline_edge): Rename to inline_call; move to
3115 ipa-inline-transform.c.
3116 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3117 move to ipa-inline-transform.c
3118 (recursive_inlining, inline_small_functions, flatten_function,
3119 ipa_inline, inline_always_inline_functions,
3120 early_inline_small_functions): Update.
3121 (inline_transform): Move to ipa-inline-transform.c.
3122 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3124 * Makefile.in (ipa-inline-transform.o): New file.
3125 * cgraphunit.c (save_inline_function_body): Move to
3126 ipa-inline-transform.c
3128 2011-04-19 DJ Delorie <dj@redhat.com>
3130 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3131 registers if we already know there aren't any.
3132 (m32c_emit_epilogue): Don't emit a barrier here.
3133 (m32c_emit_eh_epilogue): Likewise.
3134 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3135 operands at expand time.
3136 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3138 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3139 duplicates. Provide aliases instead.
3140 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3141 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3144 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3146 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3147 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3148 (general_or_i64_p, sparc_register_move_cost): New function.
3150 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3152 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3153 Add lynx, mipssde. Sort table.
3155 2011-04-19 Xinliang David Li <davidxl@google.com>
3157 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3160 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3163 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3164 is a SUBREG with non-MODE_INT mode inside of it.
3166 2011-04-19 Martin Jambor <mjambor@suse.cz>
3168 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3169 also according to actual contants.
3170 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3171 (gimple_fold_call): Use it.
3172 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3174 2011-04-19 Martin Jambor <mjambor@suse.cz>
3176 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3177 non-pointer assignments.
3179 2011-04-19 Martin Jambor <mjambor@suse.cz>
3181 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3182 account anc_offset and otr_type from the indirect edge info.
3183 * ipa-prop.c (get_ancestor_addr_info): New function.
3184 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3185 get_ancestor_addr_info, call it.
3186 (ipa_note_param_call): Do not initialize information about polymorphic
3187 calls, return the indirect call graph edge. Remove the last
3188 parameter, adjust all callers.
3189 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3190 parameters. Initialize polymorphic information in the indirect edge.
3192 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3195 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3196 the types if they have different enumeration identifiers.
3198 2011-04-19 Jan Hubicka <jh@suse.cz>
3200 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3201 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3202 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3203 (optimize_function_for_size_p) ... here.
3205 2011-04-19 Richard Guenther <rguenther@suse.de>
3208 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3211 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3213 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3214 if DECL_NO_INLINE_WARNING_P is set on the function.
3216 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3219 * reload1.c (inc_for_reload): Return void. All callers changed.
3220 (emit_input_reload_insns): Don't try to delete previous output
3221 reloads to a register, or record spill_reg_store for autoincs.
3223 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3225 * gengtype.h: Updated copyright year.
3226 (struct input_file_st): Add inpisplugin field.
3227 (type_fileloc): New function.
3229 (write_typed_struct_alloc_def): Add gcc_assert.
3230 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3231 (write_typed_alloc_defns): Don't output for plugin files.
3232 (input_file_by_name): Clear inpisplugin field.
3233 (main): Set inpisplugin field for plugin files.
3235 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3237 * gengtype-state.c (string_eq): New.
3238 (read_state): Use string_eq instead of strcmp when creating the
3241 2011-04-19 Wei Guozhi <carrot@google.com>
3244 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3245 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3247 * config/arm/constraints.md (Uu): New constraint.
3248 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3250 2011-04-19 Tristan Gingold <gingold@adacore.com>
3252 * config.gcc (-*-*-*vms): Added.
3253 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3255 * config/vms/vms-ld.c: New file.
3256 * config/vms/vms-ar.c: New file.
3257 * config/vms/t-vmsnative: New file.
3259 2011-04-18 Xinliang David Li <davidxl@google.com>
3261 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3263 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3266 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3267 if TREE_TYPE (v) is non-NULL.
3269 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3270 gimple_get_virt_mehtod_for_binfo.
3271 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3272 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3274 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3276 2011-04-18 Michael Matz <matz@suse.de>
3277 Steve Ellcey <sje@cup.hp.com>
3279 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3280 use its mode as source mode if it isn't VOIDmode.
3282 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3284 * doc/passes.texi: Fill crossref nodes.
3286 2011-04-18 Jim Meyering <meyering@redhat.com>
3288 Fix doubled-word typos in comments and strings
3289 * config/alpha/vms-unwind.h: s/for for/for/
3290 * config/arm/unwind-arm.h: Likewise.
3291 * config/microblaze/microblaze.c: Likewise.
3292 * config/sh/constraints.md: s/in in/in/
3293 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3295 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3297 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3298 (AVX_FLOAT_MODE_P): Ditto.
3299 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3300 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3301 (AVX_VEC_FLOAT_MODE_P): Ditto.
3302 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3303 (UNSPEC_MASKSTORE): Ditto.
3304 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3305 Merge from <sse>_movmsk<ssemodesuffix> and
3306 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3307 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3309 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3310 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3311 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3313 2011-04-18 Jan Hubicka <jh@suse.cz>
3315 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3317 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3318 (want_inline_function_called_once_p): Break out the logic from
3320 (edge_badness): Ensure that profile is not misupdated.
3321 (lookup_recursive_calls): Prioritize by call frequencies.
3322 (inline_small_functions): Move program size estimates here;
3323 actually process whole queue even when unit growth has been
3324 met. (to properly compute inline_failed reasons and for the
3325 case unit size decrease.) Revisit comments on recursive inlining.
3326 (ipa_inline): Remove unit summary code; first inline hot calls
3327 of functions called once, cold calls next.
3328 (order, nnodes): Remove unused variables.
3329 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3330 (GTFILES): Remove ipa-inline.c
3331 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3333 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3335 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3337 2011-04-18 Jie Zhang <jie@codesourcery.com>
3338 Richard Earnshaw <rearnsha@arm.com>
3340 * arm.c (neon_builtin_type_bits): Remove.
3341 (typedef enum neon_builtin_mode): New.
3342 (T_MAX): Don't define.
3343 (typedef enum neon_builtin_datum): Remove bits, codes[],
3344 num_vars and base_fcode. Add mode, code and fcode.
3345 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3346 VAR10): Change accordingly.
3347 (neon_builtin_data[]): Change accordingly
3348 (arm_init_neon_builtins): Change accordingly.
3349 (neon_builtin_compare): Remove.
3350 (locate_neon_builtin_icode): Remove.
3351 (arm_expand_neon_builtin): Change accordingly.
3353 * arm.h (enum arm_builtins): Move to ...
3354 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3356 * arm.c (arm_builtin_decl): Declare.
3357 (TARGET_BUILTIN_DECL): Define.
3358 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3359 (arm_builtin_decls[]): New.
3360 (arm_init_neon_builtins): Store builtin declarations in
3361 arm_builtin_decls[].
3362 (arm_init_tls_builtins): Likewise.
3363 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3364 (arm_builtin_decl): New.
3366 2011-04-18 Richard Guenther <rguenther@suse.de>
3368 * tree.c (upper_bound_in_type): Build properly canonicalized
3370 (lower_bound_in_type): Likewise.
3372 2011-04-18 Richard Guenther <rguenther@suse.de>
3374 * gimple.h (gimple_call_addr_fndecl): New function.
3375 (gimple_call_fndecl): Use it.
3376 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3378 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3379 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3381 2011-04-18 Richard Guenther <rguenther@suse.de>
3384 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3386 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3389 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3390 DECL_IN_CONSTANT_POOL without RTL.
3392 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3393 Ira Rosen <ira.rosen@linaro.org>
3396 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3397 to match neon_vzip/vuzp/vtrn_internal.
3398 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3399 outputs explicitly dependent on both inputs.
3400 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3402 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3404 PR tree-optimization/48616
3405 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3406 whether the shift is by scalar or vector based on whether all SLP
3407 scalar stmts have the same rhs.
3409 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3411 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3414 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3416 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3419 2011-04-17 Jan Hubicka <jh@suse.cz>
3421 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3422 * cgrpahunit.c (cgraph_finalize_function): Do not set
3423 finalized_by_frontend.
3424 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3425 finalized_by_frontend.
3427 2011-04-17 Jan Hubicka <jh@suse.cz>
3429 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3430 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3431 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3432 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3434 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3436 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3438 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3441 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3442 is non-null before accessing it.
3443 (input_cgraph): Remove trailing spaces.
3445 2011-04-17 Revital Eres <revital.eres@linaro.org>
3447 * params.def (sms-min-sc): New param flag.
3448 * modulo-sched.c (sms_schedule): Use it.
3449 * doc/invoke.texi (sms-min-sc): Document it.
3451 2011-04-17 Jan Hubicka <jh@suse.cz>
3453 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3454 present, also set gimple_call_set_cannot_inline.
3455 * ipa-inline.c: Update toplevel comment.
3457 (cgraph_clone_inlined_nodes): Fix linebreaks.
3458 (cgraph_check_inline_limits): Restructure to ...
3459 (caller_growth_limits): ... this one; be more tolerant
3460 on growth in nested inline chains; add explanatory comment;
3461 fix stack accounting thinko introduced by previous patch.
3462 (cgraph_default_inline_p): Remove.
3463 (report_inline_failed_reason): New function.
3464 (can_inline_edge_p): New function.
3465 (can_early_inline_edge_p): New function.
3466 (leaf_node_p): Move upwards in file.
3467 (want_early_inline_function_p): New function.
3468 (want_inline_small_function_p): New function.
3469 (want_inline_self_recursive_call_p): New function.
3470 (cgraph_edge_badness): Rename to ...
3471 (edge_badness) ... this one; fix linebreaks.
3472 (update_edge_key): Update call of edge_baddness; add
3473 detailed dump about queue updates.
3474 (update_caller_keys): Use can_inline_edge_p and
3475 want_inline_small_function_p.
3476 (cgraph_decide_recursive_inlining): Rename to...
3477 (recursive_inlining): Use can_inline_edge_p and
3478 want_inline_self_recursive_call_p; simplify and remove no longer
3480 (cgraph_set_inline_failed): Remove.
3481 (add_new_edges_to_heap): Use can_inline_edge_p and
3482 want_inline_small_function_p.
3483 (cgraph_decide_inlining_of_small_functions): Rename to ...
3484 (inline_small_functions): ... this one; cleanup; use
3485 can/want predicates; cleanup debug ouput; work edges till fibheap
3486 is exhausted and do not stop once unit growth is reached; remove
3487 later loop processing remaining edges.
3488 (cgraph_flatten): Rename to ...
3489 (flatten_function): ... this one; use can_inline_edge_p
3490 and can_early_inline_edge_p predicates.
3491 (cgraph_decide_inlining): Rename to ...
3492 (ipa_inline): ... this one; remove unreachable nodes before
3493 inlining functions called once; simplify the pass.
3494 (cgraph_perform_always_inlining): Rename to ...
3495 (inline_always_inline_functions): ... this one; use
3496 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3497 (cgraph_decide_inlining_incrementally): Rename to ...
3498 (early_inline_small_functions): ... this one; simplify
3499 using new predicates; cleanup; make dumps prettier.
3500 (cgraph_early_inlining): Rename to ...
3501 (early_inliner): newer inline regular functions into always-inlines;
3502 fix updating of call stmt summaries.
3503 (pass_early_inline): Update for new names.
3504 (inline_transform): Fix formating.
3505 (gate_cgraph_decide_inlining): Rename to ...
3506 (pass_ipa_inline): ... this one.
3507 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3508 * ipa-inline-analysis.c (dump_inline_summary): Update.
3509 (compute_inline_parameters): Do not compute disregard_inline_limits;
3510 look for mismatching arguments.
3511 (estimate_growth): Fix handlig of non-trivial self recursion.
3512 (inline_read_summary): Do not read info->disregard_inline_limits.
3513 (inline_write_summary): Do not write info->disregard_inline_limits.
3514 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3515 and move all checks into can_inline_edge_p predicate; re-enable code
3516 comparing optimization levels.
3517 (expand_call_inline): Do not test inline_forbidden_into_p.
3518 * Makefile.in (ipa-inline.o): Update arguments.
3520 2011-04-17 Revital Eres <revital.eres@linaro.org>
3522 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3524 2011-04-17 Revital Eres <revital.eres@linaro.org>
3526 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3528 2011-04-17 Michael Matz <matz@suse.de>
3530 PR tree-optimization/48622
3532 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3533 in same order as they're written.
3535 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3537 * config/pa/predicates.md: Reorganize and simplify predicates.
3538 Eliminate duplicate code checks.
3539 (arith_operand): Rename to arith14_operand
3540 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3541 * config/pa/pa.md: Use renamed operands.
3542 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3543 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3544 arith11_operand, adddi3_operand, indexed_memory_operand,
3545 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3546 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3547 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3548 move_dest_operand, move_src_operand, prefetch_cc_operand,
3549 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3550 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3551 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3552 div_operand, int5_operand, movb_comparison_operator,
3553 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3554 arith_double_operand, ireg_operand, lhs_lshift_operand,
3555 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3556 integer_store_memory_operand): Likewise.
3557 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3558 (integer_store_memory_operand, read_only_operand,
3559 function_label_operand, borx_reg_operand,
3560 non_hard_reg_operand): Likewise.
3561 (eq_neq_comparison_operator): Delete unused operator.
3562 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3563 function_label_operand.
3564 (emit_move_sequence): Likewise.
3566 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3568 * config/i386/sse.md (sseunpackmode): New mode attribute.
3569 (ssepackmode): Ditto.
3570 (vec_pack_trunc_<mode>): Macroize expander from
3571 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3572 (vec_unpacks_lo_<mode>): Macroize expander from
3573 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3574 (vec_unpacks_hi_<mode>): Macroize expander from
3575 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3576 (vec_unpacku_lo_<mode>): Macroize expander from
3577 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3578 (vec_unpacku_hi_<mode>): Macroize expander from
3579 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3580 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3581 ix86_expand_sse4_unpack.
3582 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3584 2011-04-16 Jan Hubicka <jh@suse.cz>
3586 * cgraphbuild.c: Include ipa-inline.h.
3587 (reset_inline_failed): Use initialize_inline_failed.
3588 * cgraph.c: Include ipa-inline.h.
3589 (cgraph_create_node_1): Do not initialize estimated_growth.
3590 (initialize_inline_failed): More to ipa-inline-analysis.c
3591 (dump_cgraph_node): Do not dump inline flags.
3592 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3593 and disregard_inline_limits flags.
3594 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3595 time, size, estimated_growth.
3596 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3598 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3599 DECL_DISREGARD_INLINE_LIMITS.
3600 (cgraph_analyze_function): Do not initialize
3601 node->local.disregard_inline_limits.
3602 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3603 inlinable, versionable and disregard_inline_limits.
3604 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3605 cgraph_check_inline_limits, cgraph_default_inline_p,
3606 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3607 add_new_edges_to_heap): Update.
3608 (cgraph_decide_inlining_of_small_function): Update; set
3609 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3610 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3611 cgraph_decide_inlining_incrementally): Update.
3612 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3613 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3614 time, size and estimated_growth parameters.
3615 (estimate_edge_growth): Update.
3616 (initialize_inline_failed): Declare.
3617 * ipa-split.c: Include ipa-inline.h
3618 (execute_split_functions): Update.
3619 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3620 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3621 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3622 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3623 estimated_growth to INT_MIN.
3624 (inline_node_duplication_hook): Likewise.
3625 (dump_inline_summary): Dump new fields.
3626 (compute_inline_parameters): Update.
3627 (estimate_edge_time, estimate_time_after_inlining,
3628 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3629 inline_write_summary):
3630 (initialize_inline_failed): Move here from cgraph.c.
3631 * tree-sra.c: Include ipa-inline.h.
3632 (ipa_sra_preliminary_function_checks): Update.
3633 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3636 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3638 * config/i386/sse.md (V16): New mode iterator.
3640 (AVXMODEQI, AVXMODEDI): Remove.
3641 (sse2, sse3): New mode attribute.
3642 (mov<mode>): Use V16 mode iterator.
3643 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3644 (push<mode>1): Use V16 mode iterator.
3645 (movmisalign<mode>): Ditto.
3646 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3647 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3648 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3649 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3650 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3651 avx_movdqu<avxmodesuffix>.
3652 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3653 *avx_movdqu<avxmodesuffix>.
3654 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3655 avx_lddqu<avxmodesuffix>.
3656 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3657 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3658 avx_movnt<AVXMODEDI:mode>.
3659 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3660 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3662 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3665 * haifa-sched.c (prune_ready_list, schedule_block): Use
3666 sched_pressure_p rather than flag_sched_pressure.
3668 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3670 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3671 cgraph_get_node instead of cgraph_get_create_node.
3673 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3675 * cfgexpand.c (expand_debug_expr): Use
3676 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3678 2011-04-15 Michael Matz <matz@suse.de>
3680 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3681 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3682 * function.c (gimplify_parameters): Ditto.
3683 * gimplify.c (gimplify_vla_decl): Ditto.
3685 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3686 (gimple_call_set_alloca_for_var): New inline function.
3687 (gimple_call_alloca_for_var_p): Ditto.
3688 * gimple.c (gimple_build_call_from_tree): Remember
3689 CALL_ALLOCA_FOR_VAR_P state.
3690 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3692 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3693 calls if they were for VLA objects.
3695 2011-04-15 Martin Jambor <mjambor@suse.cz>
3697 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3700 2011-04-15 Martin Jambor <mjambor@suse.cz>
3703 * tree-emutls.c (lower_emutls_function_body): Call
3704 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3707 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3709 * c-decl.c (detect_field_duplicates): Call
3710 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3712 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3714 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3715 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3716 * ipa-pure-const.c (check_stmt): Call it.
3717 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3719 2011-04-15 Richard Guenther <rguenther@suse.de>
3721 PR tree-optimization/48290
3722 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3723 Properly decide inhibiting propagation based on the valueized
3724 operand. Do loop-closed SSA form preserving here ...
3725 (init_copy_prop): ... not here.
3727 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3730 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3731 (*ieee_smax<mode>3): Likewise.
3733 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3735 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3736 Replace match_operand with match_dup for the third operand in
3739 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3741 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3742 to track processing of conditionals. Update all callers.
3743 (try_combine, simplify_if_then_else): Update.
3745 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3747 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3750 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3752 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3753 instead of match_operand for operand 3.
3755 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3757 * recog.h (insn_operand_data): Add an "allows_mem" field.
3758 * genoutput.c (output_operand_data): Initialize it.
3759 * optabs.c (maybe_legitimize_operand_same_code): New function.
3760 (maybe_legitimize_operand): Use it when matching the original
3763 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3765 * gimplify.c: Fix issues in comments throughout.
3766 (voidify_wrapper_expr): Fix long line.
3767 (build_stack_save_restore): Likewise.
3768 (gimplify_loop_expr): Likewise.
3769 (gimplify_compound_lval): Likewise.
3770 (gimplify_init_ctor_eval): Likewise.
3771 (gimplify_modify_expr_rhs): Likewise.
3772 (omp_notice_threadprivate_variable): Likewise.
3774 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3776 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3777 original one if this is not a builtin function.
3779 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3782 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3783 offset it as needed based on top 2 bits in operands[3], change
3784 MEM mode to SFmode and mask those 2 bits away from operands[3].
3786 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3788 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3789 change from objc_declare_protocols() to objc_declare_protocol().
3791 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3793 * config/i386/sse.md (sse4_1): New mode attribute.
3794 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3795 avx_blend<ssemodesuffix><avxmodesuffix> and
3796 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3797 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3798 avx_blendv<ssemodesuffix><avxmodesuffix> and
3799 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3800 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3801 avx_dp<ssemodesuffix><avxmodesuffix> and
3802 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3803 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3804 (sse4_1_packusdw): Merge with *avx_packusdw.
3805 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3806 (sse4_1_pblendw): Merge with *avx_pblendw.
3807 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3808 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3809 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3811 (sse4_1_round<ssescalarmodesuffix>): Merge with
3812 *avx_round<ssescalarmodesuffix>.
3813 (aesenc): Merge with *avx_aesenc.
3814 (aesenclast): Merge with *avx_aesenclast.
3815 (aesdec): Merge with *avx_aesdec.
3816 (aesdeclast): Merge with *avx_aesdeclast.
3817 (pclmulqdq): Merge with *pclmulqdq.
3818 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3820 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3822 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3825 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3826 (align_local_variable): This. Update DECL_ALIGN.
3827 (add_stack_var): Updated.
3828 (expand_one_stack_var): Likewise.
3830 2011-04-14 Richard Guenther <rguenther@suse.de>
3832 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3834 (dse_initialize_block_local_data, dse_leave_block,
3835 record_voperand_set, get_stmt_uid): Likewise.
3836 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3837 (dse_optimize_stmt): Remove voperand set handling code.
3838 Simplify and improve to handle any kind of killing stmt.
3839 (dse_record_phi): Remove.
3840 (dse_enter_block): Simplify.
3841 (tree_ssa_dse): Likewise.
3842 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3844 2011-04-14 Jan Hubicka <jh@suse.cz>
3846 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3847 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3848 (cgraph_local_info): Remove inline_summary.
3849 * ipa-cp.c: Include ipa-inline.h.
3850 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3851 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3853 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3854 (input_overwrite_node): Do not set inline summary.
3855 (input_node): Do not stream inline summary.
3856 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3857 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3858 growth; we do not have inline parameters computed for that anyway.
3859 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3860 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3861 (inline_summary_t): New type and VECtor.
3862 (debug_inline_summary, dump_inline_summaries): Declare.
3863 (inline_summary): Use VOCtor.
3864 (estimate_edge_growth): Kill hack computing call stmt size directly.
3865 * lto-section-in.c (lto_section_name): Add inline section.
3866 * ipa-inline-analysis.c: Include lto-streamer.h
3867 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3868 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3869 (inline_summary_vec): Define.
3870 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3871 dump_inline_summaries): New functions.
3872 (estimate_function_body_sizes): Properly compute size/time of outgoing
3874 (compute_inline_parameters): Alloc inline_summary; do not compute
3875 size/time of incomming calls.
3876 (estimate_edge_time): Avoid missing time summary hack.
3877 (inline_read_summary): Read inline summary info.
3878 (inline_write_summary): Write inline summary info.
3879 (inline_free_summary): Free all hooks and inline summary vector.
3880 * lto-streamer.h: Add LTO_section_inline_summary section.
3881 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3882 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3884 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3886 * tree-vectorizer.h (vect_strided_store_supported): Add a
3887 HOST_WIDE_INT argument.
3888 (vect_strided_load_supported): Likewise.
3889 (vect_permute_store_chain): Return void.
3890 (vect_transform_strided_load): Likewise.
3891 (vect_permute_load_chain): Delete.
3892 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3893 count argument. Check that the count is a power of two.
3894 (vect_strided_load_supported): Likewise.
3895 (vect_permute_store_chain): Return void. Update after above changes.
3896 Assert that the access is supported.
3897 (vect_permute_load_chain): Likewise.
3898 (vect_transform_strided_load): Return void.
3899 * tree-vect-stmts.c (vectorizable_store): Update calls after
3900 above interface changes.
3901 (vectorizable_load): Likewise.
3902 (vect_analyze_stmt): Don't check for strided powers of two here.
3904 2011-04-14 Richard Guenther <rguenther@suse.de>
3906 PR tree-optimization/48590
3907 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3908 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3909 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3910 BUILT_IN_STACK_SAVE.
3911 * tree-ssa-dce.c (propagate_necessity): Handle
3912 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3914 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3916 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3919 2011-04-14 Richard Guenther <rguenther@suse.de>
3921 * tree.h (get_object_alignment_1): Declare.
3922 * builtins.c (get_object_alignment_1): Split out worker from ...
3923 (get_object_alignment): ... here.
3924 * fold-const.c (get_pointer_modulus_and_residue): Use
3925 get_object_alignment_1.
3927 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3929 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3931 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3932 parameter. Generalise code to handle arrays as well as vectors.
3933 (vect_setup_realignment): Update accordingly.
3934 * tree-vect-stmts.c (vectorizable_store): Likewise.
3935 (vectorizable_load): Likewise.
3937 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3939 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3940 within the per-copy loop.
3942 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3944 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3947 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3949 * doc/options.texi (Negative): Explicitly mention that the
3950 Negative chain must be circular.
3952 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3954 * function.h (block_chainon): Declare.
3955 * function.c (block_chainon): Define.
3957 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3958 Eric Weddington <eric.weddington@atmel.com>
3959 Georg-Johann Lay <avr@gjlay.de>
3961 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3963 (avr_init_builtins, avr_expand_builtin,
3964 avr_expand_delay_cycles, avr_expand_unop_builtin,
3965 avr_expand_binop_builtin ): New functions.
3966 (avr_builtin_id): New enum
3967 (struct avr_builtin_description): New struct
3968 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3969 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3971 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3972 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3973 UNSPECV_DELAY_CYCLES): new enumeration values
3974 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3975 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3976 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3977 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3978 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3979 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3980 "fmulsu"): New insns
3982 * config/avr/avr-c.c: fix line endings
3983 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3984 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3985 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3986 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3987 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3989 * doc/extend.texi (AVR Built-in Functions): New node
3990 (Target Builtins): Add documentation of AVR
3993 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3996 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3997 alone. Error if non-const data has attribute progmem.
3999 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4001 * tree.h (struct tree_constructor): Include tree_typed instead of
4003 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4004 TS_TYPED instead of TS_COMMON.
4006 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4008 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4009 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4010 (sse2_psadbw): Merge with *avx_psadbw.
4011 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4012 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4013 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4014 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4015 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4016 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4017 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4018 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4019 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4020 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4021 (ssse3_palignrti): Merge with *avx_palignrti.
4023 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4025 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4026 * tree-ssanames.c (fini_ssanames): VEC_free it.
4027 (make_ssa_name_fn): Update for VECness of free_ssanames.
4028 (release_ssa_name, release_dead_ssa_names): Likewise.
4029 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4031 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4032 TS_TYPED instead of TS_COMMON.
4034 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4036 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4037 statistics_counter_event.
4038 * tree-ssa-copyrename.c (stats): Define.
4039 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4040 statistics_counter_event.
4041 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4042 (bswap_stats, widen_mul_stats): Define.
4043 (insert_reciprocals): Increment rdivs_inserted.
4044 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4045 rfuncs_inserted. Add calls to statistics_counter_event.
4046 (execute_cse_sincos_1): Increment inserted.
4047 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4048 statistics_counter_event.
4049 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4050 of bswap_stats. Add calls to statistics_counter_event.
4051 (convert_mult_to_widen): Increment widen_mults_inserted.
4052 (convert_plusminus_to_widen): Increment maccs_inserted.
4053 (convert_mult_to_fma): Increment fmas_inserted.
4054 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4055 calls to statistics_counter_event.
4057 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4059 PR rtl-optimization/48455
4060 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4061 `temp_costs->mem_cost'.
4063 2011-04-13 Jan Hubicka <jh@suse.cz>
4065 * ipa-inline.h: New file.
4066 * ipa-inline-analysis.c: New file. Broken out of ...
4067 * ipa-inline.c: ... this file; update toplevel comment;
4068 include ipa-inline.h
4069 (inline_summary): Move to ipa-inline.h
4070 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4071 ipa-inline-analysis.c.
4072 (cgraph_estimate_time_after_inlining): Rename to
4073 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4074 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4075 to estimate_edge_growth.
4076 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4077 rename to estimate_size_after_inlining.
4078 (cgraph_mark_inline_edge): Update for new naming convention.
4079 (cgraph_check_inline_limits): Likewise.
4080 (cgraph_edge_badness): Likewise.
4081 (cgraph_decide_recursive_inlining): Likewise.
4082 (cgraph_decide_inlining_of_small_functions): Likewise.
4083 (cgraph_decide_inlining_incrementally): Likewise.
4084 (cgraph_estimate_growth): Rename to estimate_growth; move to
4085 ipa-inline-analysis.c.
4086 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4087 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4088 (compute_inline_parameters): Likewise.
4089 (compute_inline_parameters_for_current): Likewise.
4090 (pass_inline_parameters): Likewise.
4091 (inline_indirect_intraprocedural_analysis): Likewise.
4092 (analyze_function): Rename to inline_analyze_function; likewise.
4093 (add_new_function): Move to ipa-inline-analysis.c.
4094 (inline_generate_summary): Likewise.
4095 (inline_read_summary): Likewise.
4096 (inline_write_summary): Likewise.
4097 * Makefile.in (ipa-inline-analysis.c): New file.
4099 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4101 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4102 * configure: Regenerate.
4104 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4106 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4107 instead of tree_common.
4108 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4110 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4111 TS_TYPED rather than TS_COMMON.
4112 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4114 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4117 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4118 r20 around calls of __tablejump_elpm__
4120 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4123 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4125 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4127 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4129 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4130 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4131 (cfi_vec): New typedef.
4132 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4133 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4134 (cie_cfi_vec): New static variable.
4135 (cie_cfi_head): Delete.
4136 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4137 declaration changed. Use vector rather than list operations.
4138 (new_cfi): Don't initialize the dw_cfi_next field.
4139 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4140 rather than list operations.
4141 (lookup_cfa): Use vector rather than list operations.
4142 (output_cfis): New argument upto. Accept a cfi_vec rather than
4143 a dw_cfi_ref list head as argument. All callers changed.
4144 Iterate over the vector using upto as a maximum index.
4145 (output_all_cfis): New static function.
4146 (output_fde): Use vector rather than list operations. Use the
4147 new upto argument for output_cfis rather than manipulating a
4149 (dwarf2out_begin_prologue): Change initializations to match
4151 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4152 from the vector length rather than searching for the end of a list.
4153 Use output_all_cfis.
4154 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4156 2011-04-13 Nick Clifton <nickc@redhat.com>
4158 * config/rx/rx.md (movmemsi): Do not use this pattern when
4159 volatile pointers are involved.
4161 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4163 * config/i386/sse.md (pinsrbits): Remove.
4164 (sse2_packsswb): Merge with *avx_packsswb.
4165 (sse2_packssdw): Merge with *avx_packssdw.
4166 (sse2_packuswb): Merge with *avx_packuswb.
4167 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4168 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4169 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4170 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4171 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4172 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4173 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4174 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4175 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4176 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4177 (sse2_loadld): Merge with *avx_loadld.
4178 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4179 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4180 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4181 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4182 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4184 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4186 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4188 * print-tree.c (print_node): Likewise.
4189 * tree-inline.c (copy_tree_r): Likewise.
4190 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4191 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4192 instead of TS_COMMON.
4193 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4194 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4195 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4196 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4197 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4199 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4201 (TREE_CHAIN): Check for a TS_COMMON structure.
4202 (TREE_TYPE): Check for a TS_TYPED structure.
4204 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4206 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4207 cgraph_get_create_node instead of cgraph_node.
4209 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4211 * c-parser.c (c_parser_initelt): Updated call to
4212 objc_build_message_expr.
4213 (c_parser_postfix_expression): Likewise.
4215 2011-04-12 Kai Tietz <ktietz@redhat.com>
4217 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4218 MASK_MS_BITFIELD_LAYOUT bit.
4220 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4222 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4223 assert it is always true.
4224 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4227 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4229 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4230 compiling Objective-C to be more efficient.
4232 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4234 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4237 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4239 * recog.h, genoutput.c, optabs.c: Revert last patch.
4241 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4244 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4246 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4248 * recog.h (insn_operand_data): Add an "allows_mem" field.
4249 * genoutput.c (output_operand_data): Initialize it.
4250 * optabs.c (maybe_legitimize_operand_same_code): New function.
4251 (maybe_legitimize_operand): Use it when matching the original
4254 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4256 * genpreds.c (process_define_predicate): Move most processing
4257 to gensupport.c. Continue to validate the expression.
4258 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4259 (process_define_predicate): Move processing to gensupport.c.
4260 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4261 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4262 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4264 (valid_predicate_name_p): New function, split out from old
4265 genpreds.c:process_define_predicate.
4266 (process_define_predicate): New function, combining code from
4267 old genpreds.c and genrecog.c functions.
4268 (process_rtx): Call it for DEFINE_PREDICATE and
4269 DEFINE_SPECIAL_PREDICATE.
4271 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4273 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4274 size of a '%A' memory reference.
4275 (T_DREG, T_QREG): New neon_builtin_type_bits.
4276 (arm_init_neon_builtins): Assert that the load and store operands
4277 are neon_struct_operands.
4278 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4279 (NEON_ARG_MEMORY): New builtin_arg.
4280 (neon_dereference_pointer): New function.
4281 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4282 Handle NEON_ARG_MEMORY.
4283 (arm_expand_neon_builtin): Update after above interface changes.
4284 Use NEON_ARG_MEMORY for loads and stores.
4285 * config/arm/predicates.md (neon_struct_operand): New predicate.
4286 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4287 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4288 (V_four_elem): Tweak formatting.
4289 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4290 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4291 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4292 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4293 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4294 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4295 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4296 Use %A in the output template.
4297 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4298 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4299 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4300 the width of the memory access. Remove post-increment.
4301 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4303 2011-04-12 Nick Clifton <nickc@redhat.com>
4305 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4306 instruction for interrupt handlers if the target is the basic V850
4308 (expand_epilogue): Likewise.
4310 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4312 PR rtl-optimization/48549
4313 * combine.c (propagate_for_debug): Also stop after BB_END of
4314 this_basic_block. Process LAST and just stop processing after it.
4315 (combine_instructions): If last_combined_insn has been deleted,
4316 set last_combined_insn to its PREV_INSN.
4318 2011-04-12 Richard Guenther <rguenther@suse.de>
4320 PR tree-optimization/46076
4321 * gimple.h (struct gimple_statement_call): Add fntype field.
4322 (gimple_call_fntype): Adjust.
4323 (gimple_call_set_fntype): New function.
4324 * gimple.c (gimple_build_call_1): Set the call function type.
4325 * gimplify.c (gimplify_call_expr): Preserve the function
4326 type the frontend used for the call.
4327 (gimplify_modify_expr): Likewise.
4328 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4330 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4332 * tree-ssa.c (useless_type_conversion_p): Function pointer
4333 conversions are useless.
4335 2011-04-12 Martin Jambor <mjambor@suse.cz>
4337 * cgraph.h (cgraph_node): Remove function declaration.
4338 (cgraph_create_node): Declare.
4339 (cgraph_get_create_node): Likewise.
4340 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4341 Updated all callers.
4342 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4343 the decl does not already exist. Call cgraph_get_create_node instead
4345 (cgraph_get_create_node): New function.
4346 (cgraph_same_body_alias): Update comment.
4347 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4348 assert it does not return NULL.
4349 (cgraph_update_edges_for_call_stmt): Likewise.
4350 (cgraph_clone_edge): Likewise.
4351 (cgraph_create_virtual_clone): Likewise.
4352 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4353 instead of cgraph_node.
4354 (cgraph_add_new_function): Call cgraph_create_node or
4355 cgraph_get_create_node instead of cgraph_node.
4356 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4357 instead of cgraph_node.
4358 (record_eh_tables): Likewise.
4359 (mark_address): Likewise.
4360 (mark_load): Likewise.
4361 (build_cgraph_edges): Call cgraph_get_create_node instead
4363 (rebuild_cgraph_edges): Likewise.
4364 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4365 instead of cgraph_node.
4366 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4368 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4369 cgraph_create_node instead of cgraph_node.
4370 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4372 * lto-cgraph.c (input_node): Likewise.
4373 * lto-streamer-in.c (input_function): Likewise.
4374 * varasm.c (mark_decl_referenced): Likewise.
4375 (assemble_alias): Likewise.
4377 2011-04-12 Martin Jambor <mjambor@suse.cz>
4379 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4380 instead of cgraph_node and assert it does not return NULL.
4381 * lto-streamer-in.c (lto_read_body): Likewise.
4382 * omp-low.c (new_omp_context): Likewise.
4383 (create_task_copyfn): Likewise.
4384 * tree-emutls.c (lower_emutls_function_body): Likewise.
4385 * matrix-reorg.c (transform_allocation_sites): Likewise.
4387 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4390 * c-typeck.c (build_asm_expr): Error out on attempts to use
4391 void type outputs or inputs for constraints that allow reg or
4394 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4395 Richard Earnshaw <rearnsha@arm.com>
4398 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4399 to use sign-magnitude offsets. Reject unsupported unaligned
4400 cases. Add detailed description in comments.
4401 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4402 condition from TARGET_32BIT to TARGET_ARM.
4404 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4406 * tree.h (struct typed_tree): New.
4407 (struct tree_common): Include it instead of tree_base.
4408 (TREE_TYPE): Update for new location of type field.
4409 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4410 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4411 (union tree_node): Add typed field.
4412 * treestruct.def (TS_TYPED): New.
4413 * lto-streamer.c (check_handled_ts_structures): Handle it.
4414 * tree.c (MARK_TS_TYPED): New macro.
4415 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4417 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4419 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4420 (force_nonfallthru): Do not alter the loop nest if no basic block
4423 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4425 * config/i386/sse.md (VI): New mode iterator.
4427 (AVX256MODEI): Ditto.
4428 (AVXMODEF4P): Ditto.
4429 (avxvecpsmode): Ditto.
4430 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4431 (sse2_andnot<mode>3): New expander.
4432 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4433 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4434 (<any_logic:code><mode>3): Use VI mode iterator.
4435 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4436 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4437 (*andnottf3): Handle AVX three-operand constraints.
4438 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4440 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4441 Robert Millan <rmh@gnu.org>
4443 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4444 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4445 GNU_USER_DYNAMIC_LINKER64): Define.
4446 (REG_NAME): Don't undefine.
4447 (MD_UNWIND_SUPPORT): Undefine.
4448 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4449 (REG_NAME): Don't undefine.
4450 (MD_UNWIND_SUPPORT): Undefine.
4451 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4453 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4455 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4456 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4458 2011-04-11 Xinliang David Li <davidxl@google.com>
4460 * value-profile.c (check_ic_target): New function.
4461 (gimple_ic_transform): Sanity check indirect call target.
4462 * gimple-low.c (gimple_check_call_args): Interface change.
4463 (gimple_check_call_matching_types): New function.
4464 * tree-inline.c (tree_can_inline_p): Call new function.
4466 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4468 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4469 tree-pretty-print.h & realmpfr.h.
4471 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4474 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4475 (setup_allocno_and_important_classes): Ditto.
4477 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4479 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4480 GNU_USER_DYNAMIC_LINKER.
4481 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4482 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4483 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4484 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4485 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4486 GNU_USER_TARGET_OS_CPP_BUILTINS.
4487 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4488 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4489 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4490 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4491 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4492 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4493 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4494 GNU_USER_TARGET_OS_CPP_BUILTINS.
4495 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4496 GNU_USER_DYNAMIC_LINKER.
4497 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4498 GNU_USER_TARGET_OS_CPP_BUILTINS.
4499 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4500 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4501 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4502 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4503 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4504 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4505 GNU_USER_DYNAMIC_LINKER64): Remove.
4506 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4507 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4508 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4509 GNU_USER_DYNAMIC_LINKER.
4510 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4511 GNU_USER_TARGET_OS_CPP_BUILTINS.
4512 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4513 GNU_USER_TARGET_OS_CPP_BUILTINS.
4514 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4515 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4516 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4517 GNU_USER_TARGET_OS_CPP_BUILTINS.
4518 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4519 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4520 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4521 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4522 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4523 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4524 GNU_USER_DYNAMIC_LINKER.
4525 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4526 GNU_USER_TARGET_OS_CPP_BUILTINS.
4527 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4528 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4529 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4530 GNU_USER_DYNAMIC_LINKER.
4531 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4532 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4533 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4534 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4535 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4536 GNU_USER_DYNAMIC_LINKER.
4537 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4538 GNU_USER_DYNAMIC_LINKERN32.
4539 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4540 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4541 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4542 GNU_USER_DYNAMIC_LINKER32.
4543 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4544 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4545 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4546 GNU_USER_DYNAMIC_LINKER.
4547 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4548 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4549 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4550 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4551 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4552 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4553 GNU_USER_DYNAMIC_LINKER32.
4554 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4555 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4556 GNU_USER_DYNAMIC_LINKER.
4557 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4558 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4559 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4560 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4561 GNU_USER_DYNAMIC_LINKER64.
4562 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4563 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4564 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4565 GNU_USER_DYNAMIC_LINKER.
4566 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4567 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4568 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4569 GNU_USER_DYNAMIC_LINKER.
4570 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4571 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4572 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4573 GNU_USER_DYNAMIC_LINKER32.
4574 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4575 GNU_USER_DYNAMIC_LINKER64.
4576 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4577 GNU_USER_DYNAMIC_LINKER64.
4578 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4579 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4580 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4581 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4582 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4584 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4586 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4587 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4588 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4589 GNU_USER_DYNAMIC_LINKER.
4590 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4591 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4592 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4593 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4594 GNU_USER_DYNAMIC_LINKER64.
4595 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4596 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4597 GNU_USER_LINK_EMULATION.
4598 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4599 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4600 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4601 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4602 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4603 CPP_SPEC, CC1_SPEC): Remove.
4604 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4605 (GNU_USER_DYNAMIC_LINKER): Define.
4606 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4607 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4608 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4609 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4610 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4611 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4612 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4613 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4614 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4615 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4616 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4617 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4618 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4619 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4620 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4621 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4622 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4623 GNU_USER_DYNAMIC_LINKER.
4624 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4625 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4626 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4627 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4628 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4629 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4630 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4631 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4632 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4633 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4635 2011-04-11 Kai Tietz <ktietz@redhat.com>
4639 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4640 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4642 (ix86_is_msabi_thiscall): Removed.
4643 (ix86_is_type_thiscall): Likewise.
4644 (ix86_get_callcvt): New function.
4645 (ix86_comp_type_attributes): Simplify check.
4646 (ix86_function_regparm): Use ix86_get_callcvt for calling
4647 convention attribute checks.
4648 (ix86_return_pops_args): Likewise.
4649 (ix86_static_chain): Likewise.
4650 (x86_this_parameter): Likewise.
4651 (x86_output_mi_thunk): Likewise.
4652 (ix86_function_type_abi): Optimize check for types without attributes.
4653 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4654 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4655 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4657 (IX86_BASE_CALLCVT): Helper macro.
4658 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4659 Use ix86_get_callcvt for calling convention attribute checks and avoid
4660 symbol-decoration for stdcall in TARGET_RTD case.
4661 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4663 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4666 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4668 * config/i386/sse.md (VI_128): New mode iterator.
4669 (VI12_128): Rename from SSEMODE12.
4670 (VI14_128): Rename from SSEMODE14.
4671 (VI124_128): New mode iterator.
4672 (VI24_128): Rename from SSEMODE248.
4673 (VI248_128): Rename from SSEMODE248.
4674 (SSEMODE124C8): Remove.
4675 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4676 (*sse2_<plusminus_insn><mode>3): Merge with
4677 *avx_<plusminus_insn><mode>3.
4678 (*mulv8hi3): Merge with *avx_mulv8hi3.
4679 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4680 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4681 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4682 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4683 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4684 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4685 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4686 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4687 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4688 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4689 (*<smaxmin:code>v8hi3): Ditto.
4690 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4691 (*<smaxmin:code>v16qi3): Ditto.
4692 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4693 (*sse2_eq<mode>3): Ditto.
4694 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4695 (*sse2_gt<mode>3): Ditto.
4696 (vcondv2di): Split out of vcond<mode>.
4697 (vconduv2di): Split out of vcondu<mode>.
4699 2011-04-11 Richard Guenther <rguenther@suse.de>
4701 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4702 before calling tree_low_cst.
4704 2011-04-11 Richard Guenther <rguenther@suse.de>
4706 * stor-layout.c (layout_type): Compute all array index size operations
4707 in the original type.
4708 (initialize_sizetypes): Add comment.
4709 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4711 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4713 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4715 2011-04-11 Martin Jambor <mjambor@suse.cz>
4717 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4718 of cgraph_node, handle NULL return value.
4719 (cgraph_global_info): Likewise.
4720 (cgraph_rtl_info): Likewise.
4721 * tree-inline.c (estimate_num_insns): Likewise.
4722 * gimplify.c (unshare_body): Likewise.
4723 (unvisit_body): Likewise.
4724 (gimplify_body): Likewise.
4725 * predict.c (optimize_function_for_size_p): Likewise.
4726 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4727 (call_may_clobber_ref_p_1): Likewise.
4728 * varasm.c (function_section_1): Likewise.
4729 (assemble_start_function): Likewise.
4731 2011-04-11 Martin Jambor <mjambor@suse.cz>
4733 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4735 * final.c (rest_of_clean_state): Likewise.
4736 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4737 * passes.c (pass_init_dump_file): Likewise.
4738 (execute_all_ipa_transforms): Likewise.
4739 (function_called_by_processed_nodes_p): Likewise.
4740 * predict.c (maybe_hot_frequency_p): Likewise.
4741 (probably_never_executed_bb_p): Likewise.
4742 (compute_function_frequency): Likewise.
4743 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4744 (unnest_nesting_tree_1): Likewise.
4745 (lower_nested_functions): Likewise.
4746 * tree-optimize.c (execute_fixup_cfg): Likewise.
4747 (tree_rest_of_compilation): Likewise.
4748 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4749 * tree-sra.c (ipa_early_sra): Likewise.
4750 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4751 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4752 * ipa.c (record_cdtor_fn): Likewise.
4753 * ipa-inline.c (cgraph_early_inlining): Likewise.
4754 (compute_inline_parameters_for_current): Likewise.
4755 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4756 * ipa-pure-const.c (local_pure_const): Likewise.
4757 * ipa-split.c (split_function): Likewise.
4758 (execute_split_functions): Likewise.
4759 * cgraphbuild.c (build_cgraph_edges): Likewise.
4760 (rebuild_cgraph_edges): Likewise.
4761 (cgraph_rebuild_references): Likewise.
4762 (remove_cgraph_callee_edges): Likewise.
4763 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4764 (verify_cgraph_node): Likewise.
4765 (cgraph_analyze_functions): Likewise.
4766 (cgraph_preserve_function_body_p): Likewise.
4767 (save_inline_function_body): Likewise.
4768 (save_inline_function_body): Likewise.
4769 * tree-inline.c (copy_bb): Likewise.
4770 (optimize_inline_calls): Likewise.
4772 2011-04-11 Martin Jambor <mjambor@suse.cz>
4774 PR tree-optimization/48195
4775 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4776 ipa_check_create_edge_args.
4777 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4778 ipa_check_create_edge_args.
4779 * ipa-inline.c (inline_generate_summary): Do not call
4780 ipa_check_create_node_params and ipa_check_create_edge_args.
4781 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4782 ipa_check_create_edge_args.
4784 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4786 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4788 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4789 * function.c (record_hard_reg_sets): Likewise.
4790 * ira.c (compute_regs_asm_clobbered): Likewise.
4791 * sched-deps.c (sched_analyze_1): Likewise.
4792 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4794 2011-04-09 Xinliang David Li <davidxl@google.com>
4796 PR tree-optimization/PR48484
4797 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4798 has_valid_pred lazily
4800 2011-04-09 Duncan Sands <baldrick@free.fr>
4802 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4804 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4806 * combine.c (combine_validate_cost): Adjust comments. Set registered
4807 cost of I0 to zero at the end, if any.
4809 2011-04-08 Xinliang David Li <davidxl@google.com>
4811 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4812 to insane profile data.
4814 2011-04-08 Xinliang David Li <davidxl@google.com>
4816 * ipa-cp.c (ipcp_update_profiling): Correct
4817 negative scale factor due to insane profile data.
4819 2011-04-08 Xinliang David Li <davidxl@google.com>
4821 * final.c (dump_basic_block_info): New function.
4822 (final): Dump basic block.
4823 (final_scan_insn): Remove old dump.
4825 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4828 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4831 2011-04-08 Michael Matz <matz@suse.de>
4834 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4836 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4837 * rtl.h (rebuild_jump_labels_chain): Declare.
4838 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4839 insns inserted on edges.
4841 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4843 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4844 * config/arm/arm-arches.def: New.
4845 * config/arm/arm-opts.h: New.
4846 * config/arm/genopt.sh: New.
4847 * config/arm/arm-tables.opt: New (generated).
4848 * config/arm/arm.c (arm_handle_option, arm_target_help,
4849 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4850 (all_architectures): Get most table contents from arm-arches.def.
4851 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4852 arm_selected_tune here.
4853 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4854 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4855 (march=, mcpu=, mtune=): Use Enum and Var.
4856 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4857 (arm.o): Update dependencies.
4859 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4861 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4863 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4864 (write_typed_alloc_defns): Likewise.
4865 (main): Calls write_typed_alloc_defns with output_header.
4867 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4870 * ira-color.c (setup_profitable_hard_regs): Add comments.
4871 Don't take prohibited hard regs into account.
4872 (setup_conflict_profitable_regs): Rename to
4873 get_conflict_profitable_regs.
4874 (check_hard_reg_p): Check prohibited hard regs.
4876 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4878 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4879 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4880 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4882 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4885 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4886 move from floating point to shift amount register.
4887 (emit_move_sequence): Remove secondary reload support for floating
4888 point to shift amount amount register copies.
4889 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4890 amount register copies.
4891 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4892 register, return false if mode isn't a scalar integer mode.
4893 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4895 2011-04-08 Richard Guenther <rguenther@suse.de>
4897 * gimple.c (gimple_call_flags): Remove kludge.
4899 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4901 * sel-sched.c (sel_region_init): Move call to
4902 sel_setup_region_sched_flags after setup_current_loop_nest.
4904 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4906 PR rtl-optimization/48272
4907 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4908 init_insn_reg_pressure_info. Adjust a caller.
4909 * sched-int.h (init_insn_reg_pressure_info): Declare.
4910 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4911 when sched-pressure is enabled.
4913 2011-04-08 Richard Guenther <rguenther@suse.de>
4915 * gimple.c (gimple_set_modified): Do not queue calls to
4916 MODIFIED_NORETURN_CALLS here ...
4917 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4919 2011-04-08 Richard Guenther <rguenther@suse.de>
4922 * toplev.c (lang_dependent_init): Do not open asm_out_file
4923 in WPA mode, nor perform debug machinery initialization.
4924 (finalize): Do not unlink asm_out_file in WPA mode.
4926 2011-04-08 Richard Guenther <rguenther@suse.de>
4928 * gimple.h (gimple_call_fntype): New function.
4929 (gimple_call_return_type): Use it.
4930 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4931 * gimple-low.c (gimple_check_call_args): Likewise.
4932 * gimple.c (gimple_call_flags): Likewise.
4933 (gimple_call_arg_flags): Likewise.
4934 (gimple_call_return_flags): Likewise.
4935 * tree-cfg.c (verify_gimple_call): Likewise.
4936 (do_warn_unused_result): Likewise.
4937 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4938 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4940 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4942 PR rtl-optimization/48235
4943 * sel-sched.c (code_motion_process_successors): Recompute the last
4944 insn in basic block if control flow changed.
4945 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4946 Update condition for ilist_remove.
4948 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4950 PR rtl-optimization/48302
4951 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4952 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4953 it to record added preheader blocks.
4954 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4955 on to sel_add_loop_preheaders.
4956 (sel_region_init): Move call to setup_current_loop_nest after
4959 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4962 * cfgloop.h (loop_has_exit_edges): New helper.
4963 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4965 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4966 that have no exit edges.
4968 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4970 PR rtl-optimization/48442
4971 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4972 all callers. Adjust assert.
4974 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4976 PR tree-optimization/48377
4977 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4978 is_packed to true even for types with smaller TYPE_ALIGN than
4981 2011-04-08 Richard Guenther <rguenther@suse.de>
4984 * doc/tm.texi: Re-generate.
4986 2011-04-08 Wei Guozhi <carrot@google.com>
4989 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4990 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4991 * config/arm/arm.md (*push_multi): Change the length computation to
4994 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4996 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4997 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4998 * doc/tm.texi: Regenerate.
4999 * system.h (ASM_OUTPUT_BSS): Poison.
5000 * varasm.c (asm_output_bss): Remove function.
5001 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5003 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5004 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5005 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5006 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5008 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5010 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5012 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5014 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5016 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5019 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5021 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5022 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5023 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5025 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5026 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5027 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5028 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5029 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5030 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5031 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5032 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5033 options. Don't map other m68k options manually. Don't handle
5034 old-style options as canonical.
5035 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5036 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5038 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5040 * basic-block.h (force_nonfallthru): Move to...
5041 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5042 (force_nonfallthru): ...here.
5043 * cfghooks.c (force_nonfallthru): New function.
5044 * cfgrtl.c (force_nonfallthru): Rename into...
5045 (rtl_force_nonfallthru): ...this.
5046 (commit_one_edge_insertion): Do not set AUX field.
5047 (commit_edge_insertions): Do not discover new basic blocks.
5048 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5049 (cfg_layout_rtl_cfg_hooks): Likewise.
5050 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5051 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5052 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5054 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5056 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5059 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5061 * config/i386/sse.md: Update copyright year.
5062 (avxcvtvecmode): Remove.
5063 (sse_movhlps): Merge with *avx_movhlps.
5064 (sse_movlhps): Merge with *avx_movlhps.
5065 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5066 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5067 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5068 (sse_loadhps): Merge with *avx_loadhps.
5069 (sse_storelps): Merge with *avx_storelps.
5070 (sse_loadlps): Merge with *avx_loadlps.
5071 (sse_movss): Merge with *avx_movss.
5072 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5073 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5074 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5075 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5076 (vec_set<mode>_0): Ditto.
5077 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5078 (sse4_1_insertps): Merge with *avx_insertps.
5079 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5080 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5081 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5082 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5083 (sse2_storehpd): Merge with *avx_storehpd.
5084 (sse2_loadhpd): Merge with *avx_loadhpd.
5085 (sse2_loadlpd): Merge with *avx_loadlpd.
5086 (sse2_movsd): Merge with *avx_movsd.
5087 (*vec_concatv2df): Merge with *vec_concatv2df.
5089 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5092 * combine.c (combine_instructions): Add last_combined_insn,
5093 update it if insn is after it, pass it to all try_combine calls.
5094 (try_combine): Add last_combined_insn parameter, pass it instead of
5095 i3 to propagate_for_debug.
5097 2011-04-07 Nick Clifton <nickc@redhat.com>
5099 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5100 to handle MDR <-> data register transfers.
5101 (movhi_internal): Likewise.
5103 2011-04-07 Alan Modra <amodra@gmail.com>
5105 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5106 previous stack info.
5108 2011-04-07 Tom de Vries <tom@codesourcery.com>
5111 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5112 flow_find_cross_jump. Swap variables to implement backward replacement.
5113 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5115 2011-04-07 Tom de Vries <tom@codesourcery.com>
5118 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5119 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5121 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5122 src1 or src2. Redirect edges to the last basic block. Update
5123 frequency and count on multiple basic blocks in case of fallthru.
5125 2011-04-07 Tom de Vries <tom@codesourcery.com>
5128 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5130 (old_insns_match_p): Change return type. Replace return false/true
5131 with return dir_none/dir_both. Use can_replace_by.
5132 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5133 direction from dir_p. Register replacement direction in dir, last_dir
5134 and afterlast_dir. Handle new return type of old_insns_match_p using
5135 merge_dir. Return replacement direction in dir_p.
5136 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5137 return type of old_insns_match_p.
5138 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5139 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5140 flow_find_cross_jump.
5141 * basic-block.h (enum replace_direction): New type.
5142 (flow_find_cross_jump): Add parameter to declaration.
5144 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5146 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5147 (AVXMODEDCVTPS2DQ): Ditto.
5148 (VEC_FLOAT_MODE): Ditto.
5149 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5150 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5151 (<any_logic:code><mode>3): Use VF mode iterator.
5152 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5153 Use VF mode iterator.
5154 (copysign<mode>3): Use VF mode iterator.
5155 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5156 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5157 (*<any_logic:code><MODEF:mode>3): Merge with
5158 *avx_<any_logic:code><MODEF:mode>3.
5159 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5160 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5161 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5162 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5163 (sse2_cvtdq2ps): Use %v modifier.
5164 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5165 (avx_cvtps2dq<avxmodesuffix>): Remove.
5166 (sse2_cvtps2dq): Use %v modifier.
5167 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5168 (avx_cvttps2dq<avxmodesuffix>): Remove.
5169 (sse2_cvttps2dq): Use %v modifier.
5170 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5171 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5172 (sse2_cvtsd2siq): Fix insn template.
5173 (sse2_cvtsd2siq_2): Ditto.
5174 (sse2_cvttsd2siq): Ditto.
5175 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5176 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5178 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5180 * gcov-io.c: Use GCC Runtime Library Exception.
5182 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5185 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5186 as base_reg whatever register reg has been eliminated to, instead
5187 of hardcoding STACK_POINTER_REGNUM.
5189 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5191 * doc/tm.texi.in: Document C target hooks as separate from general
5193 * doc/tm.texi: Regenerate.
5194 * genhooks.c (struct hook_desc): Add docname field.
5195 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5197 (hook_array): Include c-target.def.
5198 (emit_documentation): Use docname field in output.
5199 (emit_init_macros): Take docname argument. Only emit definitions
5200 for hooks matching docname.
5201 (main): Expect additional arguments in all cases. Pass argument
5202 to emit_init_macros.
5203 * target.def: Move initial macro definitions and comments to
5204 target-hooks-macros.h.
5205 (gcc_targetcm): Move to c-family/c-target.def.
5206 * target.h (targetcm): Move declaration to c-family/c-target.h.
5207 * targhooks.c (default_handle_c_option): Move to
5209 * targhooks.h (default_handle_c_option): Move declaration to
5210 c-family/c-common.h.
5211 * target-hooks-macros.h: New file.
5212 * config.gcc (target_has_targetcm): Define and use to add to
5213 c_target_objs and cxx_target_objs.
5214 * config/default-c.c: New file.
5215 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5216 of target.h and target-def.h.
5217 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5218 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5219 darwin_check_cfstring_format_arg): Make static.
5220 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5221 TARGET_STRING_OBJECT_REF_TYPE_P,
5222 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5223 * config/darwin-protos.h (darwin_objc_construct_string,
5224 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5226 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5227 TARGET_STRING_OBJECT_REF_TYPE_P,
5228 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5229 * config/t-darwin (darwin-c.o): Update dependencies.
5230 * system.h (TARGET_HAS_TARGETCM): Poison.
5231 * Makefile.in (TARGET_H): Update.
5232 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5233 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5234 (default-c.o): New target.
5235 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5236 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5237 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5239 (build/genhooks.o): Update dependencies.
5241 2011-04-06 Richard Guenther <rguenther@suse.de>
5243 * ipa-inline.c (enum inlining_mode): Remove.
5244 (cgraph_flatten): Use some other token.
5245 (cgraph_edge_early_inlinable_p): New function, split out from ...
5246 (cgraph_perform_always_inlining): New function, split out from ...
5247 (cgraph_decide_inlining_incrementally): ... here.
5248 (cgraph_mark_inline_edge): Adjust.
5249 (cgraph_early_inlining): Re-structure.
5250 (pass_early_inline): Require SSA form.
5252 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5253 Julian Brown <julian@codesourcery.com>
5254 Mark Shinwell <shinwell@codesourcery.com>
5256 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5257 LO_REGS only for Thumb-1.
5258 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5259 be used in short instructions when optimising for size on Thumb-2.
5261 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5263 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5264 associated with user returns to be preserved.
5266 2011-04-06 Tristan Gingold <gingold@adacore.com>
5268 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5269 symbol_queue_size, DBXOUT_DECR_NESTING,
5270 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5271 if XCOFF_DEBUGGING_INFO.
5273 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5275 * config/i386/i386.md (attribute isa): New.
5276 (attribute enabled): New.
5277 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5278 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5279 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5280 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5281 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5282 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5283 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5284 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5286 * config/i386/sse.md (VF): New mode iterator.
5290 (SSEMODEF4): Remove.
5291 (attribute sse): Handle V8SF and V4DF modes.
5292 (<absneg:code><mode>2): Use VF mode iterator.
5293 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5295 (<plusminus_insn><mode>3): Use VF mode iterator.
5296 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5297 Use VF mode iterator.
5298 (<sse>_vm<plusminus_insn><mode>3): Merge with
5299 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5300 (mul<mode>3): Use VF mode iterator.
5301 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5302 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5304 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5305 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5306 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5307 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5309 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5310 Use VF1 mode iterator.
5311 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5312 (sqrt<VF2:mode>2): New expander.
5313 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5314 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5315 and sqrtv2df2. Use VF mode iterator.
5316 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5318 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5319 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5320 Use VF1 mode iterator.
5321 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5322 (<smaxmin:code><mode>3): Use VF mode iterator.
5323 (*<smaxmin:code><mode>3_finite): Merge with
5324 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5325 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5326 (<sse>_vm<smaxmin:code><mode>2): Merge with
5327 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5328 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5330 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5332 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5333 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5334 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5335 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5336 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5338 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5339 Use VF_128 mode iterator.
5340 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5342 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5343 VF_128 mode iterator.
5344 (vcond<mode>): Use VF mode iterator.
5345 * config/i386/predicates.md (sse_comparison_operator): Merge with
5346 avx_comparison_float_operator. Do not declare as special_predicate.
5347 * config/i386/i386.c (struct builtin_description): Update for renamed
5349 (ix86_expand_args_builtin): Ditto.
5350 (ix86_expand_sse_compare_mask): Ditto.
5352 2011-04-06 Richard Guenther <rguenther@suse.de>
5354 * tree-inline.c (estimate_num_insns): For calls simply account
5355 for all passed arguments and a used return value.
5357 2011-04-06 Richard Guenther <rguenther@suse.de>
5359 PR tree-optimization/47663
5360 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5361 call_stmt_time fields.
5362 (cgraph_edge_inlinable_p): Declare.
5363 (cgraph_edge_recursive_p): New inline function.
5364 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5365 (cgraph_clone_edge): Copy it.
5366 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5367 Account for call stmt time.
5368 (cgraph_estimate_time_after_inlining): Take edge argument.
5369 (cgraph_estimate_edge_growth): Account call stmt size.
5370 (cgraph_estimate_size_after_inlining): Take edge argument.
5371 (cgraph_mark_inline_edge): Adjust.
5372 (cgraph_check_inline_limits): Likewise.
5373 (cgraph_recursive_inlining_p): Remove.
5374 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5375 (cgraph_decide_recursive_inlining): Take edge argument and
5377 (cgraph_decide_inlining_of_small_functions): Do not avoid
5378 diags for recursive inlining here.
5379 (cgraph_flatten): Adjust.
5380 (cgraph_decide_inlining_incrementally): Likewise.
5381 (estimate_function_body_sizes): Remove call cost handling.
5382 (compute_inline_parameters): Initialize caller edge call costs.
5383 (cgraph_estimate_edge_growth): New function.
5384 (cgraph_estimate_growth): Use it.
5385 (cgraph_edge_badness): Likewise.
5386 (cgraph_check_inline_limits): Take an edge argument.
5387 (cgraph_decide_inlining_of_small_functions): Adjust.
5388 (cgraph_decide_inlining): Likewise.
5389 * tree-inline.c (estimate_num_insns): Only account for call
5390 return value if it is used.
5391 (expand_call_inline): Avoid diagnostics on recursive inline
5393 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5394 (input_edge): Input edge call costs.
5396 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5398 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5400 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5402 * doc/invoke.texi (Spec Files): Fix typo.
5404 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5406 * profile.c (branch_prob): Move declaration of local variable. Remove
5407 obsolete ??? comment. Expand the location explicitly instead of using
5408 the LOCATION_FILE and LOCATION_LINE macros.
5410 2011-04-06 Wei Guozhi <carrot@google.com>
5413 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5414 (arm_cond_branch): Likewise.
5415 (arm_cond_branch_reversed): Likewise.
5416 (arm_jump): Likewise.
5417 (push_multi): Likewise.
5418 * config/arm/constraints.md (Py): New constraint.
5420 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5423 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5425 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5426 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5427 #ifdef DBX_DEBUGGING_INFO.
5429 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5432 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5433 if old and new states differ.
5435 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5437 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5438 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5439 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5440 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5441 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5443 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5444 ColdFire options to -mcpu= options.
5446 2011-04-05 Jeff Law <law@redhat.com>
5448 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5449 check if BB is a successor of LOOP->header and return
5450 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5452 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5454 * cprop.c (struct reg_use): Remove.
5455 (reg_use_table): Make an array of RTX.
5456 (find_used_regs, constprop_register, local_cprop_pass,
5457 bypass_block): Simplify users of reg_use_table.
5458 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5459 on one of the uses found by find_used_regs.
5461 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5464 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5467 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5469 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5471 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5473 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5476 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5478 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5480 * combine.c: Include obstack.h.
5481 (struct insn_link): Define.
5482 (uid_log_links): Adjust type.
5483 (FOR_EACH_LOG_LINK): New macro.
5484 (insn_link_obstack): Declare.
5485 (alloc_insn_link): Define.
5486 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5487 type of link variables.
5488 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5489 (try_combine, record_promoted_values, distribute_notes): Likewise.
5490 (distribute_links): Likewise. Tweak prototype.
5491 (clear_log_links): Delete.
5492 (adjust_for_new_dest): Call alloc_insn_link.
5493 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5495 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5497 * gcse.c (modify_mem_list): Convert to an array of VECs.
5498 (canon_modify_mem_list, compute_transp): Tweak formatting.
5499 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5500 (load_killed_in_block_p): Likewise.
5501 (record_last_mem_set_info): Likewise.
5502 (clear_modify_mem_tables): Likewise.
5504 2011-04-05 Tom de Vries <tom@codesourcery.com>
5507 * function.c (emit_use_return_register_into_block): Only define if
5510 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5512 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5514 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5516 * config/rx/rx-opts.h: New.
5517 * config/rx/rx.c (rx_cpu_type): Remove.
5518 (rx_handle_option): Don't assert that global structures are in
5519 use. Access variables via opts pointer. Defer most handling of
5520 OPT_mint_register_. Use error_at.
5521 (rx_option_override): Handle deferred OPT_mint_register_ here.
5522 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5523 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5524 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5525 (rx_cpu_types): New Enum and EnumValue entries.
5526 (mint-register=): Use Defer and use Var accordingly.
5528 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5530 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5531 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5532 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5534 (debug_free_queue, debug_nesting, symbol_queue_index):
5536 * dbxout.c: ...to here. Make static.
5538 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5540 * gcse.c (modify_pair): Define. Define a VEC of it.
5541 (canon_modify_mem_list): Convert to an array of VECs.
5542 (free_insn_expr_list_list): Delete.
5543 (clear_modify_mem_tables): Call VEC_free instead.
5544 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5545 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5546 (canon_list_insert, compute_transp): Likewise.
5548 2011-04-05 Tom de Vries <tom@codesourcery.com>
5551 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5554 2011-04-05 Tom de Vries <tom@codesourcery.com>
5557 * function.c (emit_use_return_register_into_block): New function.
5558 (thread_prologue_and_epilogue_insns): Use
5559 emit_use_return_register_into_block.
5561 2011-04-05 Tom de Vries <tom@codesourcery.com>
5564 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5567 2011-04-05 Tom de Vries <tom@codesourcery.com>
5569 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5571 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5573 * config/arm/arm.md (define_constants for unspec): Replace with
5575 (define_constants for unspecv): Replace with define_c_enum.
5576 * config/arm/neon.md (define_constants for unspec): Replace with
5579 2011-04-04 Richard Henderson <rth@redhat.com>
5582 * dwarf2out.c (output_line_info): Always emit line info from
5583 at least one section.
5584 (dwarf2out_init): Create text_section_line_info here ...
5585 (set_cur_line_info_table): ... not here.
5587 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5590 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5593 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5595 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5597 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5598 (expr_equiv_p): Remove.
5599 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5600 (hash_scan_set): Update call to insert_set_in_table.
5601 (dump_hash_table): Dump <dest, src> pair.
5602 (lookup_set): Simplify. Lookup <dest, src> pair.
5603 (compute_transp): Remove, fold heavily simplified code into...
5604 (compute_local_properties): ...here. Expect COMP and TRANSP
5606 (find_avail_set): Take set directly from struct expr.
5607 (find_bypass-set): Likewise.
5608 (bypass_block): Likewise.
5609 (cprop_insn): Likewise. Remove redundant INSN_P test.
5611 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5612 checks on form of COND from find_implicit_sets to here.
5613 (find_implicit_sets): Cleanup control flow. Split critical edges
5614 if it exposes implicit sets. Allocate/resize implicit_sets as
5616 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5617 changed something. Run df_analyze after find_implicit_sets if any
5618 edges were split. Do not allocate implicit_sets here.
5620 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5621 (gcse_obstack): Renamed to cprop_obstack.
5622 (GNEW, GNEWVEC, GNEWVAR): Remove.
5624 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5625 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5626 (gcse_alloc): Likewise, and rename to cprop_alloc.
5627 (alloc_gcse_men, free_gcse_mem): Remove.
5628 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5629 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5630 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5632 * cprop.c (oprs_not_set_p): Remove.
5633 (mark_set, mark_clobber): Remove.
5634 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5635 (reg_not_set_p): New function.
5636 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5637 (cprop_insn): Likewise.
5638 (cprop_jump): Use FOR_EACH_EDGE.
5640 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5643 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5644 (rank_for_schedule): Use scheduled_insns vector instead of
5645 last_scheduled_insn.
5646 (ok_for_early_queue_removal): Likewise.
5647 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5649 (choose_ready): Likewise.
5650 (commit_schedule): Use VEC_iterate.
5651 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5652 a dbg_cnt, use it and ensure the first insn is in the ready list.
5653 (haifa_sched_init): Allocate scheduled_insns.
5654 (sched_extend_ready_list): Don't allocate it; reserve space.
5655 (haifa_sched_finish): Free it.
5657 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5659 * optc-gen.awk: Always remove type from Variable entry before
5660 recording in var_seen.
5662 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5664 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5665 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5666 call to tidy_fallthru_edges.
5668 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5670 * doc/options.texi (ToLower): Document.
5671 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5672 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5673 * opts.h (cl_option): Add cl_tolower field.
5674 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5675 arguments with lowercase strings.
5676 * config/rx/rx.opt (mcpu=): Add ToLower.
5677 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5680 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5682 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5684 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5686 * config/vax/vax.c: Include reload.h.
5688 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5690 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5691 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5692 (sparc_preferred_reload_class): New function.
5694 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5697 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5698 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5700 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5702 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5703 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5705 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5707 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5708 (ASM_OUTPUT_ALIGNED_BSS): Define.
5710 2011-04-03 Michael Matz <matz@suse.de>
5712 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5713 and next_slot members.
5714 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5715 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5716 (lto_streamer_cache_append): Declare.
5717 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5718 unsigned index, remove offset parameter, ensure that we append
5719 or update existing entries.
5720 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5721 parameter, update next_slot for append.
5722 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5724 (lto_streamer_cache_insert_at): Likewise.
5725 (lto_streamer_cache_append): New function.
5726 (lto_streamer_cache_lookup): Use unsigned index.
5727 (lto_streamer_cache_get): Likewise.
5728 (lto_record_common_node): Don't test tree_node_can_be_shared.
5729 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5730 (lto_streamer_cache_delete): Don't free offsets member.
5731 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5732 (lto_output_string_with_length): Use lto_output_data_stream.
5733 (lto_output_tree_header): Remove ix parameter, don't write it.
5734 (lto_output_builtin_tree): Likewise.
5735 (lto_write_tree): Adjust callers to above, don't track and write
5736 offset, write unsigned index.
5737 (output_unreferenced_globals): Don't emit all global vars.
5738 (write_global_references): Use unsigned indices.
5739 (lto_output_decl_state_refs): Likewise.
5740 (write_symbol): Likewise.
5741 * lto-streamer-in.c (lto_input_chain): Move earlier.
5742 (input_function): Use unsigned index.
5743 (input_alias_pairs): Don't read and then ignore all global vars.
5744 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5745 don't pass it back, use lto_streamer_cache_append.
5746 (lto_register_var_decl_in_symtab): Use unsigned index.
5747 (lto_register_function_decl_in_symtab): Likewise.
5748 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5750 (lto_get_builtin_tree): Don't read index, use
5751 lto_streamer_cache_append.
5752 (lto_read_tree): Adjust call to lto_materialize_tree.
5754 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5755 don't use function calls in arguments to MIN.
5757 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5760 * gimple.c (gimple_type_leader_entry): Mark deletable.
5762 2011-04-03 Alan Modra <amodra@gmail.com>
5764 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5766 2011-04-03 Michael Matz <matz@suse.de>
5768 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5770 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5772 2011-04-03 Michael Matz <matz@suse.de>
5774 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5775 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5776 without function context.
5777 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5778 current_function_decl and cfun.
5780 2011-04-03 Michael Matz <matz@suse.de>
5782 * tree.c (decl_init_priority_insert): Don't create entry for
5784 (decl_fini_priority_insert): Ditto.
5785 (fields_compatible_p, find_compatible_field): Remove.
5786 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5787 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5789 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5791 * combine.c (try_combine): Remove useless local variable.
5793 2011-04-03 Richard Guenther <rguenther@suse.de>
5794 Ira Rosen <ira.rosen@linaro.org>
5796 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5797 non-variable offsets and compare the remaining bases of the two
5798 accesses instead of looking for exact same data-ref.
5800 2011-04-02 Kai Tietz <ktietz@redhat.com>
5803 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5805 * i386.c (ix86_is_msabi_thiscall): New helper function.
5806 (ix86_is_type_thiscall): New helper function.
5807 (ix86_comp_type_attributes): Handle thiscall for method-functions
5809 (init_cumulative_args): Likewise.
5810 (find_drap_reg): Likewise.
5811 (ix86_static_chain): Likewise.
5812 (x86_this_parameter): Likewise.
5813 (x86_output_mi_thunk): Likewise.
5815 2011-04-01 Olivier Hainque <hainque@adacore.com>
5816 Nicolas Setton <setton@adacore.com>
5817 Eric Botcazou <ebotcazou@adacore.com>
5819 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5820 (add_gnat_descriptive_type_attribute): New function.
5821 (gen_array_type_die): Call it.
5822 (gen_enumeration_type_die): Likewise.
5823 (gen_struct_or_union_type_die): Likewise.
5824 (modified_type_die): Likewise.
5825 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5826 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5827 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5829 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5832 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5833 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5836 2011-03-17 Richard Guenther <rguenther@suse.de>
5839 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5840 origin for decls in other ltrans units.
5841 (input_varpool_node): Likewise.
5843 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5846 * expr.c (expand_assignment): Handle all possibilities
5847 if TO_RTX is CONCAT.
5848 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5849 (store_split_bit_field): If SUBREG_REG (op0) or
5850 op0 itself has smaller mode than word, return it
5851 for offset 0 and const0_rtx for out-of-bounds stores.
5852 If word is const0_rtx, skip it.
5854 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5856 * config/h8300/h8300.c (print_operand_address): Rename to...
5857 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5858 Call h8300_print_operand and h8300_print_operand_address instead of
5859 print_operand and print_operand_address. Declare.
5860 (print_operand): Renake to...
5861 (h8300_print_operand): ...this. Make static. Adjust comments.
5862 Call h8300_print_operand instead of print_operand. Declare.
5863 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5864 (h8300_register_move_cost): Likewise.
5865 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5866 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5867 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5868 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5869 * config/h8300/h8300-protos.h (print_operand): Delete.
5870 (print_operand_address): Delete.
5872 2011-04-01 Richard Henderson <rth@redhat.com>
5875 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5876 in strict mode before dwarf4. Re-order tests to early out
5877 before switching sections.
5879 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5881 * config/h8300/constraints.md: New file.
5882 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5883 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5884 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5885 * config/h8300/predicates.md (bit_operand): Likewise.
5886 (incdec_operand): Use satisfies_constraint_M and
5887 satisfies_constraint_O. Don't use C code block.
5888 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5889 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5890 (compute_mov_length): Use satisfies_constraint_G.
5891 (fix_bit_operand): Use satisfies_constraint_U.
5892 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5893 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5894 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5895 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5896 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5897 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5898 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5899 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5900 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5901 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5902 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5903 (EXTRA_MEMORY_CONSTRAINT): Delete.
5905 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5906 Michael Meissner <meissner@linux.vnet.ibm.com>
5909 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5910 operands, as per the specifications.
5912 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5913 (vec_extract_evenv4sf): Ditto.
5914 (vec_extract_evenv8hi): Ditto.
5915 (vec_extract_evenv16qi): Ditto.
5916 (vec_extract_oddv4si): Ditto.
5918 2011-03-31 Mark Wielaard <mjw@redhat.com>
5920 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5921 high_pc attribute if the CU has no associated code. Only output
5922 DW_AT_entry_pc for CU if not generating strict dwarf and
5925 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5927 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5928 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5930 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5931 * final.c (final_start_function): Call the new function rather
5932 than using a NULL argument for dwarf2out_frame_debug.
5934 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5935 that contains the prologue.
5937 * haifa-sched.c (queue_insn): New arg REASON. All callers
5938 changed. Print it in debugging output.
5940 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5942 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5943 Split most of the code into...
5944 (begin_move_insn): ... here. New function.
5945 (ebb_sched_info): Add a pointer to it.
5946 * haifa-sched.c (scheduled_insns): New static variable.
5947 (sched_extend_ready_list): Allocate it.
5948 (schedule_block): Use it to record the order of scheduled insns.
5949 Perform RTL changes to move insns only after all scheduling
5950 decisions have been made.
5951 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5952 begin_move_insn field.
5953 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5954 * sched-int.h (struct haifa_sched_info): Remove second argument
5955 from begin_schedule_ready hook. Add new member begin_move_insn.
5956 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5957 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5959 * haifa-sched.c (prune_ready_list): New function, broken out of
5961 (schedule_block): Use it.
5963 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5965 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5967 2011-04-01 Kai Tietz <ktietz@redhat.com>
5969 * config.gcc (*-*-mingw*): Allow as option the
5970 posix threading model.
5971 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5972 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5974 (CPP_SPEC): Add pthread/no-pthread handling.
5975 (LIB_SPEC): Likewise.
5976 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5977 (LIB_SPEC): Likewise.
5978 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5979 flag to pass -pthread option for shared libgcc build.
5980 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5981 for shared libgcc build.
5982 * config/i386/t-mingw-pthread: New file.
5983 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5984 New define to enable use of library pthread by default.
5985 * config/i386/mingw.opt (pthread): New driver option.
5986 (no-pthread): New driver option.
5987 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5988 * config/i386/mingw-w64.opt: Likewise.
5990 2011-04-01 Gary Funck <gary@intrepid.com>
5992 * c-decl.c (grokdeclarator): Fix formatting.
5994 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5996 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5997 instead of n_operands.
5998 (set_storage_via_setmem): Likewise.
5999 * optabs.c (maybe_gen_insn): Likewise.
6000 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6001 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6002 (mips_expand_builtin_direct): Likewise.
6003 * config/spu/spu.c (expand_builtin_args): Likewise.
6005 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6007 * recog.h (insn_data_d): Add n_generator_args.
6008 * genoutput.c (data): Likewise.
6009 (output_insn_data): Print it.
6010 (max_opno, num_dups): Delete.
6011 (scan_operands): Just fill in "d->operand[...]".
6012 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6014 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6016 * gensupport.h (pattern_stats): New structure.
6017 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6018 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6019 (max_operand_1, max_operand_vec): Delete.
6020 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6022 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6024 * emit-rtl.c (emit_pattern_after_setloc): New function.
6025 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6026 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6027 (emit_pattern_after): New function.
6028 (emit_insn_after, emit_jump_insn_after): Call it.
6029 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6030 (emit_pattern_before_setloc): New function.
6031 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6032 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6034 (emit_pattern_before): New function.
6035 (emit_insn_before, emit_jump_insn_before): Call it.
6036 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6038 2011-03-31 Richard Henderson <rth@redhat.com>
6040 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6041 (dw_separate_line_info_entry): Remove.
6042 (enum dw_line_info_opcode): New.
6043 (dw_line_info_entry): Use it.
6044 (dw_line_info_table, dw_line_info_table_p): New.
6045 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6046 (line_info_table, line_info_label_num): Remove.
6047 (line_info_table_in_use): Remove.
6048 (separate_line_info_table): Remove.
6049 (separate_line_info_table_allocated): Remove.
6050 (separate_line_info_table_in_use): Remove.
6051 (LINE_INFO_TABLE_INCREMENT): Remove.
6052 (line_info_label_num): New.
6053 (cur_line_info_table): New.
6054 (text_section_line_info, cold_text_section_line_info): New.
6055 (separate_line_info): New.
6056 (SEPARATE_LINE_CODE_LABEL): Remove.
6057 (print_dwarf_line_table): Remove.
6058 (debug_dwarf): Don't dump it.
6059 (output_one_line_info_table): New.
6060 (output_line_info): Use it.
6061 (new_line_info_table): New.
6062 (set_cur_line_info_table): New.
6063 (dwarf2out_switch_text_section): Use it.
6064 (dwarf2out_begin_function): Likewise.
6065 (push_dw_line_info_entry): New.
6066 (dwarf2out_source_line): Rewrite for new line info tables.
6067 (dwarf2out_init): Remove dead initailizations.
6069 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6071 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6073 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6074 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6075 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6076 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6077 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6078 * opt-functions.awk (flag_init, switch_bit_fields): New.
6079 (switch_flags): Don't handle flags moved to bit-fields. Don't
6080 generate CL_MISSING_OK or CL_SAVE.
6081 * optc-gen.awk: Update to generate bit-field output as well as
6083 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6084 bit-field instead of CL_REJECT_DRIVER flag.
6085 * opts-common.c (generate_canonical_option,
6086 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6087 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6088 instead of CL_REJECT_NEGATIVE flag.
6089 * toplev.c (print_switch_values): Use cl_report bit-field instead
6092 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6094 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6095 a zero minimum index only if it is redundant.
6097 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6099 PR rtl-optimization/48381
6100 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6101 instead of ira_class_hard_reg_index for calculating conflicting
6104 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6106 * cprop.c: Clean up hash table building.
6107 (reg_avail_info): Remove.
6108 (oprs_available_p): Remove.
6109 (record_last_reg_set_info): Remove.
6110 (record_last_set_info): Remove.
6111 (reg_available_p): New function.
6112 (gcse_constant_p): Do not treat unfolded conditions as constants.
6113 (make_set_regs_unavailable): New function.
6114 (hash_scan_set): Simplify with new reg_available_p.
6115 (compute_hash_table_work): Traverse insns stream only once.
6116 Do not compute reg_avail_info. Traverse insns in reverse order.
6117 Record implicit sets after recording explicit sets from the block.
6119 2011-03-31 Michael Matz <matz@suse.de>
6121 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6123 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6125 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6126 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6127 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6128 (h8300_mode_dependent_address_p): New function.
6129 (h8300_get_index): Make static.
6131 2011-03-31 Jeff Law <law@redhat.com>
6133 * reload1.c (elimination_effects): Fix typo in recent change.
6135 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6136 typo potentially leading to null pointer dereference.
6138 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6139 (setup_save_areas): Corresponding changes to avoid useless
6142 * jump.c (reversed_comparison_code_parts): Avoid successive return
6143 statements when REVERSE_CONDITION is defined.
6145 * expr.c (expand_assignment): Avoid useless assignments.
6146 (expand_expr_real_1): Likewise.
6147 (expand_expr_real_2): Avoid useless statements.
6149 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6151 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6153 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6156 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6158 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6161 * doc/tm.texi.in (TARGET_VERSION): Remove.
6162 * doc/tm.texi: Regenerate.
6163 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6164 * collect2.c (main): Don't use TARGET_VERSION.
6165 * mips-tdump.c (main): Don't use TARGET_VERSION.
6166 * mips-tfile.c (main): Don't use TARGET_VERSION.
6167 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6168 * config/rs6000/vxworksae.h: Remove.
6169 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6170 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6171 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6172 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6173 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6174 * config/arm/arm.h (TARGET_VERSION): Remove.
6175 * config/arm/coff.h (TARGET_VERSION): Remove.
6176 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6177 * config/arm/elf.h (TARGET_VERSION): Remove.
6178 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6179 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6180 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6181 * config/arm/pe.h (TARGET_VERSION): Remove.
6182 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6183 * config/arm/semi.h (TARGET_VERSION): Remove.
6184 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6185 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6186 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6187 * config/avr/avr.h (TARGET_VERSION): Remove.
6188 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6189 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6190 * config/frv/frv.h (TARGET_VERSION): Remove.
6191 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6192 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6193 * config/i386/darwin.h (TARGET_VERSION): Remove.
6194 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6195 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6196 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6197 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6198 * config/i386/gnu.h (TARGET_VERSION): Remove.
6199 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6200 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6201 * config/i386/linux.h (TARGET_VERSION): Remove.
6202 * config/i386/linux64.h (TARGET_VERSION): Remove.
6203 * config/i386/lynx.h (TARGET_VERSION): Remove.
6204 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6205 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6206 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6207 * config/i386/netware.h (TARGET_VERSION): Remove.
6208 * config/i386/nto.h (TARGET_VERSION): Remove.
6209 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6210 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6211 * config/ia64/elf.h (TARGET_VERSION): Remove.
6212 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6213 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6214 * config/ia64/linux.h (TARGET_VERSION): Remove.
6215 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6216 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6217 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6218 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6219 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6220 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6221 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6222 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6223 * config/m68k/linux.h (TARGET_VERSION): Remove.
6224 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6225 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6226 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6227 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6228 * config/mep/mep.h (TARGET_VERSION): Remove.
6229 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6230 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6231 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6232 * config/mips/linux.h (TARGET_VERSION): Remove.
6233 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6234 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6235 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6236 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6237 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6238 * config/pa/pa.h (TARGET_VERSION): Remove.
6239 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6240 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6241 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6242 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6243 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6244 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6245 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6246 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6247 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6248 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6249 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6250 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6251 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6252 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6253 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6254 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6255 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6256 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6257 * config/s390/linux.h (TARGET_VERSION): Remove.
6258 * config/s390/s390.h (TARGET_VERSION): Remove.
6259 * config/s390/tpf.h (TARGET_VERSION): Remove.
6260 * config/score/score.h (TARGET_VERSION): Remove.
6261 * config/sh/linux.h (TARGET_VERSION): Remove.
6262 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6263 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6264 * config/sh/sh.h (TARGET_VERSION): Remove.
6265 * config/sh/sh64.h (TARGET_VERSION): Remove.
6266 * config/sh/superh.h (TARGET_VERSION): Remove.
6267 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6268 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6269 * config/sparc/linux.h (TARGET_VERSION): Remove.
6270 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6271 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6272 TARGET_NAME32, TARGET_NAME): Remove.
6273 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6274 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6275 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6276 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6277 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6278 * config/spu/spu.h (TARGET_VERSION): Remove.
6279 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6280 * config/v850/v850.h (TARGET_VERSION): Remove.
6281 * config/vax/linux.h (TARGET_VERSION): Remove.
6282 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6283 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6284 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6286 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6289 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6290 frame-related from frame-unrelated adjustments to the stack pointer.
6292 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6294 * common.opt (fdebug-types-section): Move earlier.
6295 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6297 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6299 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6302 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6304 * tree.h (CASE_CHAIN): Define.
6305 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6306 (gimple_redirect_edge_and_branch): Likewise.
6308 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6311 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6314 2011-03-30 Jeff Law <law@redhat.com>
6316 * PR bootstrap/48371
6317 * reload1.c (reload): Fix botch in last change.
6319 * reload.h (struct reload): Fix typo introduced in last change.
6321 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6323 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6324 Undocumented. Remove help text.
6325 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6328 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6330 * doc/options.texi (NegativeAlias): Document.
6331 (Alias): Mention NegativeAlias.
6332 * opt-functions.awk: Handle NegativeAlias.
6333 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6334 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6335 * opts.h (CL_NEGATIVE_ALIAS): Define.
6336 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6337 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6339 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6341 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6342 mno-spe and mno-isel instead of mspe=no and -misel=no.
6344 2011-03-29 Mark Wielaard <mjw@redhat.com>
6346 * common.opt (fdebug-types-section): New flag.
6347 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6348 * dwarf2out.c (use_debug_types): New define.
6349 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6350 (print_die): Guard output of type unit signatures using
6352 (build_abbrev_table): Replace assert of dwarf_version >= 4
6353 with assert on use_debug_types.
6354 (size_of_die): Likewise.
6355 (unmark_dies): Likewise.
6356 (value_format): Decide AT_ref_external form on use_debug_types.
6357 (output_die): Replace dwarf_version version check guard with
6358 use_debug_types where appropriate.
6359 (modified_type_die): Likewise.
6360 (gen_reference_type_die): Likewise.
6361 (dwarf2out_start_source_file): Likewise.
6362 (dwarf2out_end_source_file): Likewise.
6363 (prune_unused_types_walk_attribs): Likewise.
6364 (dwarf2out_finish): Likewise.
6366 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6368 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6370 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6372 PR rtl-optimization/48332
6373 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6374 mode of input operand N and modeN to its actual mode.
6376 2011-03-30 Jeff Law <law@redhat.com>
6378 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6379 define accessor macro.
6380 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6381 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6382 (reg_equiv_init): Likewise.
6383 (reg_equivs_size): New variable.
6384 (reg_equiv_init_size): Remove.
6385 (allocate_initial_values): Move prototype to here from....
6386 * integrate.h (allocate_initial_values): Remove prototype.
6387 * integrate.c: Include reload.h.
6388 (allocate_initial_values): Corresponding changes.
6389 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6390 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6391 (update_equiv_regs): Corresponding changes.
6392 (ira): Corresponding changes.
6393 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6394 (push_secondary_reload): Corresponding changes.
6395 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6396 (make_memloc, find_reloads_address): Corresponding changes.
6397 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6398 (find_reloads_address_1): Corresponding changes.
6399 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6400 (refers_to_regno_for_reload_p): Corresponding changes.
6401 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6402 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6403 * reload1.c: Include ggc.h.
6404 (grow_reg_equivs): New function.
6405 (replace_pseudos_in, reload): Corresponding changes.
6406 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6407 (eliminate_regs_1, elimination_effects): Corresponding changes.
6408 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6409 (delete_output_reload): Likewise.
6410 * caller-save.c (mark_referenced_regs): Corresponding changes.
6411 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6412 * frv/predicates.md (frv_load_operand): Corresponding changes.
6413 * microblaze/microblaze.c (double_memory_operand): Corresponding
6415 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6416 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6417 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6418 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6419 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6421 * pa/pa.c (emit_move_sequence): Corresponding changes.
6422 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6424 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6427 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6428 structure modes. Don't check neon_vector_mem_operand for
6429 vector or structure modes.
6431 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6432 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6435 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6436 operand 1 and reshuffle the operands to match.
6437 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6439 2011-03-30 Christian Schüler <cschueler@gmx.de>
6442 * config/c.opt (F): Added 'Driver' to -F option.
6445 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6447 * config/darwin.opt: Added '-arch' option.
6449 2011-03-30 Nick Clifton <nickc@redhat.com>
6451 * config/rx/rx.md: Add peepholes and patterns to combine
6452 extending loads and simple arithmetic instructions.
6453 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6454 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6455 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6456 modes to use pre-decrement and post-increment addressing.
6457 (rx_is_restricted_memory_address): Add range checking of REG+INT
6459 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6460 (rx_memory_move_cost): Adjust cost of stores.
6461 (rx_adjust_insn_length): New function.
6463 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6466 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6467 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6468 matching arg00/arg01 types.
6470 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6472 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6473 last_location to UNKNOWN_LOCATION.
6475 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6478 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6481 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6482 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6485 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6487 (sparc_cpu): Likewise.
6488 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6491 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6495 PR rtl-optimization/48345
6496 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6497 hard regs for given mode from profitable regs when doing secondary
6500 2011-03-29 Jeff Law <law@redhat.com>
6503 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6504 do_not_duplicate field.
6505 (lookup_redirection_data): Corresponding changes.
6506 (create_duplicates): Always create a template block.
6507 (redirect_edges): Remove code which reused the original block
6508 when it was going to become unreachable code.
6509 (thread_block): Don't set do_not_duplicate field.
6511 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6513 * lto-opts.c (register_user_option_p, lto_register_user_option):
6514 Make type argument unsigned.
6515 * lto-streamer.h (lto_register_user_option): Make type argument
6517 * opth-gen.awk: Make CL_* macros unsigned.
6518 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6519 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6520 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6521 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6522 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6523 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6524 (find_opt): Make lang_mask argument unsigned.
6526 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6528 PR rtl-optimization/48331
6529 PR rtl-optimization/48334
6530 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6531 for any used algorithm.
6533 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6535 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6538 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6540 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6541 (alpha_option_override): Don't set alpha_sr_alias_set.
6542 (emit_frame_store_1): Use gen_frame_mem rather than calling
6544 (alpha_expand_epilogue): Ditto.
6546 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6548 PR tree-optimization/48290
6549 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6550 vectorization, check that relevant phis in the basic block after
6551 the inner loop are really inner loop's exit phis.
6553 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6556 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6557 (cached_dw_loc_list_def): New structure.
6558 (cached_dw_loc_list): New typedef.
6559 (cached_dw_loc_list_table): New variable.
6560 (cached_dw_loc_list_table_hash): New function.
6561 (cached_dw_loc_list_table_eq): Likewise.
6562 (add_location_or_const_value_attribute): Take a bool cache_p.
6563 Cache the list when the parameter is true.
6564 (gen_formal_parameter_die): Update caller.
6565 (gen_variable_die): Likewise.
6566 (dwarf2out_finish): Likewise.
6567 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6568 while generating debug info for the decl.
6569 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6570 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6571 (resolve_addr): Cache the result of resolving a chain of
6574 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6576 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6577 conflict object hard regset nodes have intersecting hard reg sets.
6579 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6580 after regstat_init_n_sets_and_refs.
6582 * ira.c: Add more comments at the top.
6583 (setup_stack_reg_pressure_class, setup_pressure_classes):
6584 Add comments how we compute the register pressure classes.
6585 (setup_allocno_and_important_classes): Add more comments.
6586 (setup_class_translate_array, reorder_important_classes)
6587 (setup_reg_class_relations): Add comments.
6589 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6592 * ira-color.c: Add 2011 to the Copyright line.
6593 (assign_hard_reg): Add more comments.
6594 (improve_allocation): Ditto.
6596 * ira-costs.c: Add 2011 to the Copyright line.
6597 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6599 (setup_regno_cost_classes_by_mode): Ditto.
6601 Initial patches from ira-improv branch:
6603 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6605 * ira-build.c (ira_create_object): Remove initialization of
6606 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6607 (ira_create_allocno): Remove initialization of
6608 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6609 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6610 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6611 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6612 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6613 Initialize ALLOCNO_ADD_DATA.
6614 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6615 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6617 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6618 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6620 * ira.c (ira_reallocate): Remove.
6621 (setup_pressure_classes): Call
6622 ira_init_register_move_cost_if_necessary. Use
6623 ira_register_move_cost instead of ira_get_register_move_cost.
6624 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6625 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6627 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6628 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6629 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6630 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6631 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6632 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6634 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6635 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6636 (struct allocno_color_data): New.
6637 (allocno_color_data_t): New typedef.
6638 (allocno_color_data): New definition.
6639 (ALLOCNO_COLOR_DATA): New macro.
6640 (struct object_color_data): New.
6641 (object_color_data_t): New typedef.
6642 (object_color_data): New definition.
6643 (OBJECT_COLOR_DATA): New macro.
6644 (update_copy_costs, calculate_allocno_spill_cost): Call
6645 ira_init_register_move_cost_if_necessary. Use
6646 ira_register_move_cost instead of ira_get_register_move_cost.
6647 (move_spill_restore, update_curr_costs): Ditto.
6648 (allocno_spill_priority): Make it inline.
6649 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6650 (struct coalesce_data, coalesce_data_t): New.
6651 (allocno_coalesce_data): New definition.
6652 (ALLOCNO_COALESCE_DATA): New macro.
6653 (merge_allocnos, coalesced_allocno_conflict_p): Use
6654 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6655 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6656 (coalesce_allocnos): Ditto.
6657 (setup_coalesced_allocno_costs_and_nums): Ditto.
6658 (collect_spilled_coalesced_allocnos): Ditto.
6659 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6660 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6661 (coalesce_spill_slots): Ditto.
6662 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6663 free allocno_coalesce_data.
6665 * ira-conflicts.c: Fix formatting.
6666 (process_regs_for_copy): Call
6667 ira_init_register_move_cost_if_necessary. Use
6668 ira_register_move_cost instead of ira_get_register_move_cost.
6669 (build_object_conflicts): Optimize.
6671 * ira-costs.c (record_reg_classes): Optimize. Call
6672 ira_init_register_move_cost_if_necessary. Use
6673 ira_register_move_cost, ira_may_move_in_cost, and
6674 ira_may_move_out_cost instead of ira_get_register_move_cost and
6675 ira_get_may_move_cost.
6676 (record_address_regs): Ditto.
6677 (scan_one_insn): Optimize.
6678 (find_costs_and_classes): Optimize.
6679 (process_bb_node_for_hard_reg_moves): Call
6680 ira_init_register_move_cost_if_necessary. Use
6681 ira_register_move_cost instead of ira_get_register_move_cost.
6683 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6684 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6685 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6686 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6688 (ira_initiate_emit_data, ira_finish_emit_data)
6689 (create_new_allocno): New functions.
6690 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6691 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6692 Use ira_register_move_cost instead of ira_get_register_move_cost.
6694 * ira-int.h: Fix some comments.
6695 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6696 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6697 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6698 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6700 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6701 bitfield after mode. Make hard_regno a short int. Make
6702 hard_regno short. Remove first_coalesced_allocno and
6703 next_coalesced_allocno. Move mem_optimized_dest_p,
6704 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6705 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6706 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6707 temp, colorable_p. Add new member add_data.
6708 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6709 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6710 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6711 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6712 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6713 (ALLOCNO_ADD_DATA): New macro.
6714 (ira_emit_data_t): New typedef.
6715 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6716 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6717 from struct ira_allocno.
6718 (ALLOCNO_EMIT_DATA): New macro.
6719 (ira_allocno_emit_data, allocno_emit_reg): New.
6720 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6721 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6722 (OBJECT_ADD_DATA): New macro.
6723 (ira_reallocate): Remove.
6724 (ira_initiate_emit_data, ira_finish_emit_data): New.
6725 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6726 (ira_init_register_move_cost_if_necessary): New.
6727 (ira_object_conflict_iter_next): Merge into
6728 ira_object_conflict_iter_cond.
6729 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6731 * ira-live.c (process_single_reg_class_operands): Call
6732 ira_init_register_move_cost_if_necessary. Use
6733 ira_register_move_cost instead of ira_get_register_move_cost.
6735 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6737 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6739 * ira-costs.c: Fix formatting.
6740 (cost_classes, cost_classes_num): Remove.
6741 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6742 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6743 (cost_classes_del, cost_classes_htab): New.
6744 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6745 (initiate_regno_cost_classes, setup_cost_classes): New.
6746 (setup_regno_cost_classes_by_aclass): New.
6747 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6748 (record_reg_classes): Use regno_cost_classes instead of
6749 cost_classes. Move checking opposite operand up.
6750 (record_address_regs): Use regno_cost_classes
6751 instead of cost_classes.
6752 (scan_one_insn): Ditto. Use always general register.
6753 (print_allocno_costs): Use regno_cost_classes instead of
6755 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6756 (find_costs_and_classes): Set up cost classes for each registers.
6757 Use also their mode for this. Use regno_cost_classes instead of
6759 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6761 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6762 (ira_costs, ira_set_pseudo_classes): Call
6763 initiate_regno_cost_classes and finish_regno_cost_classes.
6765 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6767 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6769 * target.def (ira_cover_classes): Remove.
6771 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6773 * doc/tm.texi.in: Ditto.
6775 * ira-conflicts.c: Remove mentioning cover classes from the file.
6776 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6777 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6779 * targhooks.c (default_ira_cover_classes): Remove.
6781 * targhooks.h (default_ira_cover_classes): Ditto.
6783 * haifa-sched.c: Remove mentioning cover classes from the file.
6784 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6785 ira_pressure_classes and ira_pressure_classes_num instead of
6786 ira_reg_class_cover_size and ira_reg_class_cover. Use
6787 sched_regno_pressure_class instead of sched_regno_cover_class.
6788 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6789 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6791 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6792 classes from the file.
6793 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6794 (struct object_hard_regs, struct object_hard_regs_node): New.
6795 (struct ira_object): New members profitable_hard_regs,
6796 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6797 (struct ira_allocno): Rename cover_class to aclass. Rename
6798 cover_class_cost and updated_cover_class_cost to class_cost and
6799 updated_class_cost. Remove splay_removed_p and
6800 left_conflict_size. Add new members colorable_p.
6801 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6802 (ALLOCNO_COLORABLE_P): New macro.
6803 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6804 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6805 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6806 (OBJECT_...): Rename parameter C to O.
6807 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6808 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6809 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6810 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6811 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6812 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6813 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6814 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6815 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6816 x_ira_reg_class_subunion.
6817 (ira_max_memory_move_cost, ira_max_register_move_cost)
6818 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6819 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6820 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6821 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6822 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6823 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6824 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6825 (ira_tune_allocno_costs_and_cover_classes): Rename to
6826 ira_tune_allocno_costs.
6827 (ira_debug_hard_regs_forest): New.
6828 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6829 (ira_object_conflict_iter_next): Fix comments.
6830 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6831 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6832 cover_class to aclass.
6833 (ira_allocate_and_accumulate_costs): Ditto.
6834 (ira_allocate_and_set_or_copy_costs): Ditto.
6836 * opts.c (decode_options): Remove ira_cover_class check.
6838 * ira-color.c: Remove mentioning cover classes from the file. Use
6839 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6840 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6841 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6842 (splay-tree.h): Remove include.
6843 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6844 before copy_freq_compare_func.
6845 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6846 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6848 (hard_regs_roots, hard_regs_node_vec): Ditto.
6849 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6850 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6851 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6852 (create_new_object_hard_regs_node): Ditto.
6853 (add_new_object_hard_regs_node_to_forest): Ditto.
6854 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6855 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6857 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6858 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6859 (remove_unused_object_hard_regs_nodes): Ditto.
6860 (enumerate_object_hard_regs_nodes): Ditto.
6861 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6862 (object_hard_regs_subnode_t): Ditto.
6863 (struct object_hard_regs_subnode): Ditto.
6864 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6865 (setup_object_hard_regs_subnode_index): Ditto.
6866 (get_object_hard_regs_subnodes_num): Ditto.
6867 (form_object_hard_regs_nodes_forest): Ditto.
6868 (finish_object_hard_regs_nodes_tree): Ditto.
6869 (finish_object_hard_regs_nodes_forest): Ditto.
6870 (allocnos_have_intersected_live_ranges_p): Rename to
6871 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6872 (pseudos_have_intersected_live_ranges_p): Rename to
6873 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6874 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6875 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6876 (update_copy_costs): Remove assert. Skip cost update if the hard
6877 reg does not belong the class.
6878 (assign_hard_reg): Process only profitable hard regs.
6879 (uncolorable_allocnos_num): Make it scalar.
6880 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6881 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6882 and ira_reg_class_max_nregs.
6883 (bucket_allocno_compare_func): Check frequency first.
6884 (sort_bucket): Add compare function as a parameter.
6885 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6886 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6887 (push_allocno_to_stack): Rewrite for checking new allocno
6889 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6890 (push_only_colorable): Pass new parameter to sort_bucket.
6891 (push_allocno_to_spill): Remove.
6892 (allocno_spill_priority_compare): Make it inline and rewrite.
6893 (splay_tree_allocate, splay_tree_free): Remove.
6894 (allocno_spill_sort_compare): New function.
6895 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6896 build and use splay tree. Choose first allocno in uncolorable
6897 allocno bucket to spill. Remove setting spill cost.
6898 (all_conflicting_hard_regs): Remove.
6899 (setup_allocno_available_regs_num): Check only profitable hard
6900 regs. Print info about hard regs nodes.
6901 (setup_allocno_left_conflicts_size): Remove.
6902 (put_allocno_into_bucket): Don't call
6903 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6904 (improve_allocation): New.
6905 (color_allocnos): Call setup_profitable_hard_regs,
6906 form_object_hard_regs_nodes_forest, improve_allocation,
6907 finish_object_hard_regs_nodes_forest. Setup spill cost.
6908 (print_loop_title): Use pressure classes.
6909 (color_allocnso): Ditto.
6910 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6911 and allocnos_for_spilling.
6912 (ira_sort_regnos_for_alter_reg): Don't setup members
6913 {first,next}_coalesced_allocno.
6914 (color): Remove allocating and freeing removed_splay_allocno_vec.
6915 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6916 prohibited_class_mode_regs.
6918 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6920 (update_allocno_pressure_excess_length): Use pressure classes.
6921 (inc_register_pressure, dec_register_pressure): Check for pressure
6923 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6924 pressure class. Use ira_reg_class_nregs instead of
6925 ira_reg_class_max_nregs.
6926 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6927 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6928 (single_reg_class): Use ira_reg_class_nregs instead of
6929 ira_reg_class_max_nregs.
6930 (process_bb_node_lives): Use pressure classes.
6932 * ira-emit.c: Remove mentioning cover classes from the file. Use
6933 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6934 (change_loop): Use pressure classes.
6935 (modify_move_list): Call ira_set_allocno_class instead of
6936 ira_set_allocno_cover_class.
6938 * ira-build.c: Remove mentioning cover classes from the file. Use
6939 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6940 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6941 ALLOCNO_UPDATED_CLASS_COST instead of
6942 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6943 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6944 (ira_create_allocno): Remove initialization of
6945 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6946 ALLOCNO_COLORABLE_P.
6947 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6948 Update conflict regs for the objects.
6949 (create_cap_allocno): Remove assert. Don't propagate
6950 ALLOCNO_AVAILABLE_REGS_NUM.
6951 (ira_free_allocno_costs): New function.
6952 (finish_allocno): Change a part of code into call of
6953 ira_free_allocno_costs.
6954 (low_pressure_loop_node_p): Use pressure classes.
6955 (object_range_compare_func): Don't compare classes.
6956 (setup_min_max_conflict_allocno_ids): Ditto.
6958 * loop-invariant.c: Remove mentioning cover classes from the file.
6959 Use ira_pressure_classes and ira_pressure_classes_num instead of
6960 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6961 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6962 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6963 Use reg_allocno_class instead of reg_cover_class.
6964 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6965 STACK_REG_COVER_CLASS.
6966 (get_regno_cover_class): Rename to get_regno_pressure_class.
6967 (move_loop_invariants): Initialize and finalize regstat.
6969 * ira.c: Remove mentioning cover classes from the file. Add
6970 comments about coloring without cover classes. Use ALLOCNO_CLASS
6971 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6972 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6973 setup_class_subset_and_memory_move_costs.
6974 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6975 (setup_cover_and_important_classes): Rename to
6976 setup_allocno_and_important_classes.
6977 (setup_class_translate_array): New.
6978 (setup_class_translate): Call it for allocno and pressure classes.
6979 (cover_class_order): Rename to allocno_class_order.
6980 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6981 of ira_class_translate.
6982 (reorder_important_classes): Set up ira_important_class_nums.
6983 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6984 (print_class_cover): Rename to print_classes. Add parameter.
6985 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6986 Print pressure classes too.
6987 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6988 setup_reg_subclasses.
6989 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6990 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6991 (setup_prohibited_class_mode_regs): Use
6992 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6993 (clarify_prohibited_class_mode_regs): New function.
6994 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6995 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6996 (ira_init_once): Initialize them.
6997 (free_register_move_costs): Process them.
6998 (ira_init): Move calls of find_reg_classes and
6999 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7000 Call clarify_prohibited_class_mode_regs.
7001 (ira_no_alloc_reg): Remove.
7002 (too_high_register_pressure_p): Use pressure classes.
7004 * sched-deps.c: Remove mentioning cover classes from the file.
7005 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7006 ira_pressure_classes and ira_pressure_classes_num instead of
7007 ira_reg_class_cover_size and ira_reg_class_cover.
7008 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7009 sched_regno_pressure_class instead of sched_regno_cover_class.
7010 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7011 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7013 * ira.h: Add 2010 to Copyright.
7014 (ira_no_alloc_reg): Remove external.
7015 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7016 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7017 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7018 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7019 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7020 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7021 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7022 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7023 x_ira_no_alloc_regs.
7024 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7025 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7026 ira_allocno_classes_num and ira_allocno_classes.
7027 (ira_class_translate): Rename to ira_allocno_class_translate.
7028 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7029 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7030 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7031 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7032 (ira_no_alloc_regs): New.
7034 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7035 classes from the file. Use ALLOCNO_CLASS instead of
7036 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7037 ALLOCNO_COVER_CLASS_COST.
7038 (regno_cover_class): Rename to regno_aclass.
7039 (record_reg_classes): Use ira_reg_class_subunion instead of
7040 ira_reg_class_union.
7041 (record_address_regs): Check overflow.
7042 (scan_one_insn): Ditto.
7043 (print_allocno_costs): Print total mem cost fore regional allocation.
7044 (print_pseudo_costs): Use REG_N_REFS.
7045 (find_costs_and_classes): Use classes intersected with them on the
7046 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7047 ira_reg_class_union. Use ira_allocno_class_translate and
7048 regno_aclass instead of ira_class_translate and regno_cover_class.
7049 Modify code for finding regno_aclass. Setup preferred classes for
7051 (setup_allocno_cover_class_and_costs): Rename to
7052 setup_allocno_class_and_costs. Use regno_aclass instead of
7053 regno_cover_class. Use ira_set_allocno_class instead of
7054 ira_set_allocno_cover_class.
7055 (init_costs, finish_costs): Use regno_aclass instead of
7057 (ira_costs): Use setup_allocno_class_and_costs instead of
7058 setup_allocno_cover_class_and_costs.
7059 (ira_tune_allocno_costs_and_cover_classes): Rename to
7060 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7061 by processing objects. Use ira_reg_class_max_nregs instead of
7062 ira_reg_class_nregs.
7064 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7066 * sched-int.h: Remove mentioning cover classes from the file.
7067 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7069 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7070 classes from the file.
7071 (struct reg_pref): Rename coverclass into allocnoclass.
7072 (reg_cover_class): Rename to reg_allocno_class.
7074 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7076 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7078 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7080 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7082 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7084 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7086 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7088 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7090 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7092 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7094 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7095 (i386_ira_cover_classes): Ditto.
7097 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7099 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7101 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7103 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7105 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7107 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7109 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7110 (mips_ira_cover_classes): Ditto.
7112 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7114 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7116 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7118 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7120 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7122 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7123 (IRA_COVER_CLASSES_VSX): Ditto.
7125 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7126 (rs6000_ira_cover_classes): Ditto.
7128 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7130 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7132 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7134 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7136 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7138 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7140 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7142 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7144 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7146 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7148 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7151 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7152 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7153 dw_fde_unlikely_section_end_label, cold_in_std_section,
7154 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7155 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7157 (output_fde): Use dw_fde_second_{begin,end} if second is
7158 true, otherwise dw_fde_{begin,end}.
7159 (output_call_frame_info): Test dw_fde_second_begin != NULL
7160 instead of dw_fde_switched_sections.
7161 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7162 fields, initialize new fields. Initialize in_std_section
7163 unconditionally from the first partition.
7164 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7165 dw_fde_second_begin is non-NULL.
7166 (dwarf2out_switch_text_section): Stop initializing removed
7167 dw_fde_struct fields, initialize new fields, initialize
7168 also dw_fde_end here. Set dw_fde_switch_cfi even when
7169 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7170 (struct var_loc_list_def): Add last_before_switch field.
7171 (arange_table, arange_table_allocated, arange_table_in_use,
7172 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7173 (size_of_aranges): Count !in_std_section and !second_in_std_section
7174 hunks in fdes, instead of looking at arange_table_in_use.
7175 (output_aranges): Add aranges_length argument, don't call
7176 size_of_aranges here. Instead of using aranges_table*
7177 emit ranges for fdes when !in_std_section resp.
7178 !second_in_std_section.
7179 (dw_loc_list): Break ranges crossing section switch.
7180 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7181 use dw_fde_second_end instead of dw_fde_end as end of last range.
7182 (gen_subprogram_die): Don't call add_arange. Use
7183 dw_fde_{begin,end} for first partition and if switched
7184 section dw_fde_second_{begin,end} for the second.
7185 (var_location_switch_text_section_1,
7186 var_location_switch_text_section): New functions.
7187 (dwarf2out_begin_function): Initialize cold_text_section even
7188 when function_section () isn't text_section.
7189 (prune_unused_types): Don't walk arange_table.
7190 (dwarf2out_finish): Don't needlessly test
7191 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7192 If info_section_emitted, call size_of_aranges and if it indicates
7193 non-empty .debug_aranges, call output_aranges with the computed
7194 size. Stop using removed dw_fde_struct fields, use
7195 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7199 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7200 create ENTRY_VALUE if incoming or address of incoming's MEM
7202 * dwarf2out.c (mem_loc_descriptor): Don't emit
7203 DW_OP_GNU_entry_value of DW_OP_fbreg.
7204 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7205 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7206 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7207 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7209 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7210 is a REG_P or MEM_P with REG_P address, compute hash directly
7211 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7212 (preserve_only_constants): Don't clear VALUES forwaring
7213 ENTRY_VALUE to some other VALUE.
7215 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7217 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7220 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7222 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7223 block before expanding the statement.
7224 (expand_gimple_stmt_1): Likewise. Set them here...
7225 (expand_gimple_stmt): ...and not here. Tidy.
7226 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7229 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7231 * Makefile.in: New rule for cprop.o.
7232 * gcse.c: Move constant/copy propagation to cprop.c.
7233 (compute_local_properties): Only handle expression tables.
7234 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7235 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7236 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7237 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7238 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7239 compute_cprop_data, find_used_regs, try_replace_reg,
7240 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7241 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7242 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7243 find_bypass_set, reg_killed_on_edge, bypass_block,
7244 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7245 execute_rtl_cprop, pass_rtl_cprop): Move to...
7246 * cprop.c: ...here. New file, constant/copy propagation for RTL
7247 moved from gcse.c to here with minor cleanups in duplicated code.
7249 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7251 * config/i386/i386.c (flag_opts): Fix a typo in
7252 -mavx256-split-unaligned-store.
7254 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7256 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7257 LIBCALL_VALUE): Remove macros.
7258 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7259 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7260 (h8300_function_value, h8300_libcall_value,
7261 h8300_function_value_regno_p): New functions.
7263 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7265 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7267 2011-03-28 Jeff Law <law@redhat.com>
7269 * tree-ssa-threadupdate.c (redirect_edges): Call
7270 create_edge_and_update_destination_phis as needed.
7271 (create_edge_and_update_destination_phis): Accept new BB argument.
7272 All callers updated.
7273 (thread_block): Do not update the profile when threading around
7274 intermediate blocks.
7275 (thread_single_edge): Likewise.
7276 (determine_bb_domination_status): If BB is not a successor of the
7277 loop header, return NONDOMINATING.
7278 (register_jump_thread): Note when we register a jump thread around
7279 an intermediate block.
7280 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7281 (thread_across_edge): Use it.
7283 2011-03-28 Tristan Gingold <gingold@adacore.com>
7285 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7286 when for_return is 2.
7288 2011-03-28 Jeff Law <law@redhat.com>
7290 * var-tracking.c (canonicalize_values_mark): Delete unused
7292 (canonicalize_values_star, set_variable_part): Likewise.
7293 (clobber_variable_part, delete_variable_part): Likewise.
7295 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7297 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7299 2011-03-28 Martin Jambor <mjambor@suse.cz>
7301 * tree-inline.c (expand_call_inline): Do not check that destination
7303 (optimize_inline_calls): Assert that destination node is analyzed.
7304 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7305 not call tree_lowering_passes.
7306 * cgraph.h (cgraph_analyze_function): Declare.
7307 * cgraphunit.c (cgraph_analyze_function): Make public.
7309 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7311 * config/sparc/sparc-opts.h: New.
7312 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7313 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7314 (sparc_option_override): Store processor_type enumeration rather
7315 than string in cpu_default. Remove name and enumeration from
7316 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7317 without using sparc_select. Use target_flags_explicit instead of
7319 * config/sparc/sparc.h (enum processor_type): Move to
7321 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7322 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7323 HeaderInclude entry.
7324 (mcpu=, mtune=): Use Var and Enum.
7325 (sparc_processor_type): New Enum and EnumValue entries.
7327 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7328 Iain Sandoe <iains@gcc.gnu.org>
7331 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7333 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7335 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7336 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7337 Insert new statements at it in lieu of STMT.
7338 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7339 * tree-vect-stmts.c (vectorizable_store): Likewise.
7340 (vectorizable_load): Likewise.
7342 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7344 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7349 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7351 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7352 unaligned 256bit load/store.
7353 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7354 (*avx_movdqu<avxmodesuffix>): Likewise.
7356 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7359 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7360 * config/pa/pa.md (iordi3): Use new predicate in expander.
7363 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7365 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7366 FUNCTION_VALUE_REGNO_P): Remove macros.
7367 * config/mips/mips-protos.h (mips_function_value): Remove.
7368 * config/mips/mips.c (mips_function_value): Rename to...
7369 (mips_function_value_1): ... this. Make static. Handle receiving
7370 the function type in 'fn_decl_or_type' argument.
7371 (mips_function_value, mips_libcall_value,
7372 mips_function_value_regno_p): New function.
7373 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7374 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7376 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7378 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7379 and -mavx256-split-unaligned-store.
7380 (ix86_option_override_internal): Split 32-byte AVX unaligned
7381 load/store by default.
7382 (ix86_avx256_split_vector_move_misalign): New.
7383 (ix86_expand_vector_move_misalign): Use it.
7385 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7386 -mavx256-split-unaligned-store.
7388 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7389 256bit load/store. Generate unaligned store on misaligned memory
7391 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7393 (*avx_movdqu<avxmodesuffix>): Likewise.
7395 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7396 -mavx256-split-unaligned-store.
7398 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7401 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7404 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7406 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7407 opno arguments with an expand_operand. Use create_input_operand.
7408 (mips_prepare_builtin_target): Delete.
7409 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7411 (mips_expand_builtin_direct): Use create_output_operand and
7412 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7413 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7414 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7416 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7418 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7420 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7422 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7424 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7425 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7426 basic blocks and call commit_edge_insertions directly.
7427 (fixup_abnormal_edges): Move from here to...
7428 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7429 on the edges and return whether some have actually been inserted.
7430 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7433 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7435 PR rtl-optimization/48144
7436 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7437 (merge_expr_data): ... here.
7438 (av_set_intersect): Rename to av_set_code_motion_filter.
7439 Update all callers. Call merge_history_vect when an expression
7440 is found in both sets.
7441 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7443 2011-03-26 Alan Modra <amodra@gmail.com>
7445 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7446 cmodel medium addresses.
7447 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7448 64-bit gpr loads and stores.
7449 (rs6000_secondary_reload_ppc64): New function.
7450 * config/rs6000/rs6000-protos.h: Declare it.
7451 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7453 2011-03-26 Alan Modra <amodra@gmail.com>
7456 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7457 GNU Go in traceback table.
7459 2011-03-25 Richard Henderson <rth@redhat.com>
7461 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7462 if there are exactly 6 operands.
7463 (set_storage_via_setmem): Similarly.
7465 2011-03-25 Kai Tietz <ktietz@redhat.com>
7467 * collect2.c (write_c_file_stat): Handle backslash
7468 as right-hand directory separator.
7469 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7470 checking just for slash.
7471 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7472 instead of checking for trailing slash.
7473 * gcc.c (record_temp_file): Use filename_cmp instead
7475 (do_spec_1): Likewise.
7476 (replace_outfile_spec_function): Likewise.
7477 (is_directory): Use filename_ncmp instead of strncmp.
7478 (print_multilib_info): Likewise.
7479 * gcov.c (find_source): Use filename_cmp instead
7481 (make_gcov_file_name): Fix order of slash/backslash
7483 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7484 (add_standard_paths): Likewise.
7485 * mips-tfile.c (saber_stop): Handle backslash.
7486 * prefix.c (update_path): Use filename_ncmp instead of
7488 * profile.c (output_location): Use filename_cmp instead
7490 * read-md.c (handle_toplevel_file): Handle backslash.
7491 * tlink.c (frob_extension): Likewise.
7492 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7494 * tree-dump.c (dequeue_and_dump): Handle backslash.
7495 * tree.c (get_file_function_name): Likewise.
7496 * gengtype.c (read_input_list): Likewise.
7497 (get_file_realbasename): Likewise.
7498 (get_output_file_with_visibility): Use filename_cmp
7501 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7503 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7506 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7508 * fold-const.c (expr_location_or): New function.
7509 (fold_truth_not_expr): Call it.
7511 2011-03-25 Jeff Law <law@redhat.com>
7513 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7515 * c-family/c-common.c (def_fn_type): Likewise.
7516 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7517 * emit-rtl.c (gen_rtvec): Likewise.
7518 * lto/lto-lang.c (def_fn_type): Likewise.
7520 2011-03-25 Richard Guenther <rguenther@suse.de>
7522 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7523 also generate copies.
7524 (fini_copy_prop): Handle constant values properly.
7526 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7528 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7529 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7530 (hash_loc_operands, compare_loc_operands): Handle
7531 DW_OP_GNU_entry_value.
7533 2011-03-25 Kai Tietz <ktietz@redhat.com>
7535 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7536 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7537 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7538 comment and use macro TARGET_64BIT_MS_ABI instead.
7539 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7540 and change default behavior for 32-bit MS_ABI.
7541 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7542 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7544 (ix86_cfun_abi): Likewise.
7545 (ix86_maybe_switch_abi): Adjust comment.
7546 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7547 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7548 instead of checking for SYSV_ABI.
7549 (ix86_nsaved_sseregs): Likewise.
7550 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7552 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7553 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7554 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7555 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7556 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7558 2011-03-25 Richard Guenther <rguenther@suse.de>
7560 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7561 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7562 (verify_gimple): Remove.
7563 * tree-cfg.c (verify_gimple_call): Merge verification
7565 (verify_gimple_phi): Merge verification from verify_stmts.
7566 (verify_gimple_label): New function.
7567 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7568 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7569 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7570 (verify_stmts): Rename to verify_gimple_in_cfg.
7571 (verify_gimple_in_cfg): New function.
7572 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7573 * tree-ssa.c (verify_ssa): Likewise.
7574 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7576 2011-03-25 Richard Guenther <rguenther@suse.de>
7578 * passes.c (init_optimization_passes): Add FRE pass after
7581 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7582 Andrew Stubbs <ams@codesourcery.com>
7584 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7586 (arm_movdi_vfp_cortexa8): New pattern.
7587 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7588 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7589 instructions when tuning for Cortex-A8. Set attribute "arch".
7590 * config/arm/arm.md: Move include arm-tune.md up a bit.
7591 (define_attr "arch"): Add "onlya8" and "nota8" values.
7592 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7594 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7598 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7600 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7601 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7602 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7603 * passes.c (init_optimization_passes): Move
7604 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7606 2011-03-25 Kai Tietz <ktietz@redhat.com>
7608 * c-typeck.c (comptypes_internal): Replace target
7609 hook call of comp_type_attributes by version in tree.c file.
7610 * gimple.c (gimple_types_compatible_p_1): Likewise.
7611 * tree-ssa.c (useless_type_conversion_p): Likewise.
7612 * tree.c (build_type_attribute_qual_variant): Likewise.
7613 (attribute_value_equal): New static helper function.
7614 (comp_type_attributes): New function.
7615 (merge_attributes): Use attribute_value_equal for comparison.
7616 (attribute_list_contained): Likewise.
7617 * tree.h (comp_type_attributes): New prototype.
7619 2011-03-25 Richard Guenther <rguenther@suse.de>
7621 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7622 of complex types at -O0.
7623 (verify_gimple_assign_binary): Likewise.
7624 (verify_gimple_assign_ternary): Likewise.
7626 2011-03-24 Mark Wielaard <mjw@redhat.com>
7628 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7629 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7631 2011-03-24 Mark Wielaard <mjw@redhat.com>
7634 * dwarf2out.c (output_abbrev_section): Only write table when
7635 abbrev_die_table_in_use > 1.
7637 2011-02-24 Richard Henderson <rth@redhat.com>
7639 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7640 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7641 (alpha_expand_unaligned_load_words): Use extql.
7642 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7643 (emit_insxl): Handle all modes for consistency.
7645 2011-02-24 Richard Henderson <rth@redhat.com>
7647 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7648 (alpha_expand_unaligned_load): Likewise.
7649 (alpha_expand_unaligned_store): Likewise.
7650 (alpha_expand_unaligned_load_words): Likewise.
7651 (alpha_expand_unaligned_store_words): Likewise.
7652 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7653 (alpha_split_lock_test_and_set_12): Likewise.
7654 (print_operand, alpha_fold_builtin_extxx): Likewise.
7655 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7656 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7657 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7658 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7659 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7660 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7661 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7662 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7663 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7664 (extwl, extll, extql): Similarly.
7665 (inswh, inslh, insqh): Similarly.
7666 (mskbl, mskwl, mskll, mskql): Similarly.
7667 (mskwh, msklh, mskqh): Similarly.
7669 2011-02-24 Richard Henderson <rth@redhat.com>
7671 * config/alpha/alpha.md (attribute isa): Add er, ner.
7672 (attribute enabled): Handle them.
7673 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7675 2011-02-24 Richard Henderson <rth@redhat.com>
7677 * config/alpha/alpha.md (attribute isa): Add vms.
7678 (attribute enabled): Handle it.
7679 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7680 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7681 (*movtf): Rename from *movtf_internal for consistency.
7682 (*movsi): Merge with *movsi_nt_vms.
7683 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7684 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7685 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7686 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7688 2011-02-24 Richard Henderson <rth@redhat.com>
7690 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7691 (extendqisi2, extendhisi2): Likewise.
7692 (extendqidi2): Simplify BWX/non-BWX expansions.
7693 (extendhidi2): Similarly.
7695 2011-02-24 Richard Henderson <rth@redhat.com>
7697 * config/alpha/alpha.md (attribute isa): New.
7698 (attribute enabled): New.
7699 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7700 (zero_extendqisi2, zero_extendqidi2): Similarly.
7701 (zero_extendhisi2, zero_extendhidi2): Similarly.
7702 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7704 2011-02-24 Richard Henderson <rth@redhat.com>
7706 * config/alpha/predicates.md (input_operand): Revert last change;
7707 update comment to mention 32-bit VMS rather than Windows.
7709 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7711 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7712 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7713 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7714 * passes.c (init_optimization_passes): Move
7715 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7717 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7719 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7721 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7723 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7726 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7729 * simplify-rtx.c (simplify_const_unary_operation): Call
7730 real_convert when changing mode class with FLOAT_EXTEND.
7732 2011-03-24 Nick Clifton <nickc@redhat.com>
7734 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7735 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7736 * config/rx/rx.c (rx_option_override): Set align_jumps,
7737 align_loops and align_labels if not set by the user.
7738 (rx_align_for_label): New function.
7739 (rx_max_skip_for_label): New function.
7740 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7741 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7742 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7743 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7744 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7746 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7748 PR rtl-optimization/48263
7749 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7750 and original commutative_p handling. Use maybe_gen_insn.
7752 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7754 * reload.c (find_reloads_subreg_address): Add address_reloaded
7755 parameter and return true there if the full address has been
7757 (find_reloads_toplev): Pass address_reloaded flag.
7758 (find_reloads_address_1): Don't use address_reloaded parameter.
7760 2011-03-24 Jeff Law <law@redhat.com>
7762 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7763 unused variable "ann".
7764 (remove_unused_locals): Likewise.
7766 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7769 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7772 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7774 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7775 for invalid symbolic addresses.
7776 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7779 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7781 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7782 the argument in calls to fold_truth_not_expr.
7784 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7786 * tree.c (record_node_allocation_statistics): New function.
7787 (make_node_stat, copy_node_stat, build_string): Call it.
7788 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7789 (build1_stat, build_omp_clause): Likewise.
7791 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7793 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7796 2011-03-24 Richard Guenther <rguenther@suse.de>
7798 PR tree-optimization/48271
7799 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7800 blocks that still exist.
7802 2011-03-24 Richard Guenther <rguenther@suse.de>
7804 PR tree-optimization/48270
7805 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7806 not free datarefs before ddrs.
7808 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7810 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7811 from the address built for a reference with variable offset.
7813 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7816 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7817 alternatives that can be handled with movq or movabsq insn.
7818 (*movdf_internal): Disable for !TARGET_64BIT.
7819 (*movdf_internal_nointeger): Ditto.
7820 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7822 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7824 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7825 (FUNCTION_ARG_ADVANCE): Likewise.
7826 * tm.texi.in: Change references to them to hook references.
7827 * tm.texi: Regenerate.
7828 * targhooks.c (default_function_arg): Eliminate check for target macro.
7829 (default_function_incoming_arg): Likewise.
7830 (default_function_arg_advance): Likewise.
7831 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7832 (function_arg_advance): Likewise.
7833 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7835 2011-03-24 Richard Guenther <rguenther@suse.de>
7838 * tree-object-size.c (addr_object_size): Do not double-account
7839 for MEM_REF offsets.
7841 2011-03-24 Diego Novillo <dnovillo@google.com>
7843 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7844 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7845 (lto_input_data_block): Move from lto-opts.c. Make extern.
7847 (lto_input_string): Rename from input_string. Make extern.
7849 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7850 output_string_with_length.
7851 Output 0 to indicate a non-NULL string. Update all callers to
7853 (lto_output_string): Rename from output_string. Make extern.
7855 (lto_output_decl_state_streams): Make extern.
7856 (lto_output_decl_state_refs): Make extern.
7857 * lto-streamer.h (lto_input_string): Declare.
7858 (lto_input_data_block): Declare.
7859 (lto_output_string): Declare.
7860 (lto_output_string_with_length): Declare.
7861 (lto_output_decl_state_streams): Declare.
7862 (lto_output_decl_state_refs): Declare.
7864 2011-03-24 Richard Guenther <rguenther@suse.de>
7866 PR tree-optimization/46562
7867 * tree.c (build_invariant_address): New function.
7868 * tree.h (build_invariant_address): Declare.
7869 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7870 a renamed function moved ...
7871 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7872 Take valueization callback parameter.
7873 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7874 * gimple-fold.h: New file.
7875 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7876 (ccp_fold, fold_const_aggregate_ref,
7877 fold_ctor_reference, fold_nonarray_ctor_reference,
7878 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7879 get_base_constructor): Move ...
7880 * gimple-fold.c: ... here.
7881 (gimple_fold_stmt_to_constant_1): New function
7882 split out from ccp_fold. Take a valueization callback parameter.
7883 Valueize all operands.
7884 (gimple_fold_stmt_to_constant): New wrapper function.
7885 (fold_const_aggregate_ref_1): New function split out from
7886 fold_const_aggregate_ref. Take a valueization callback parameter.
7887 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7888 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7889 invariant POINTER_PLUS_EXPRs to invariant form.
7890 (vn_valueize): New function.
7891 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7892 * tree-vrp.c (vrp_valueize): New function.
7893 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7894 to fold statements to constants.
7895 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7896 function declarations.
7897 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7898 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7900 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7902 * config/h8300/predicates.md (jump_address_operand): Fix register
7905 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7907 * doc/invoke.texi (max-stores-to-sink): Document.
7908 * params.h (MAX_STORES_TO_SINK): Define.
7909 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7910 if either vectorization or if-conversion is disabled.
7911 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7912 tree-vect-data-refs.c vect_equal_offsets.
7913 (dr_equal_offsets_p): New function.
7914 (find_data_references_in_bb): Remove static.
7915 * tree-data-ref.h (find_data_references_in_bb): Declare.
7916 (dr_equal_offsets_p): Likewise.
7917 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7918 (vect_drs_dependent_in_basic_block): Update calls to
7920 (vect_check_interleaving): Likewise.
7921 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7922 (cond_if_else_store_replacement): Rename to...
7923 (cond_if_else_store_replacement_1): ... this. Change arguments and
7925 (cond_if_else_store_replacement): New function.
7926 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7927 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7929 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7932 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7933 to subtract lower bound instead of GEN_INT().
7935 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7940 * doc/extend.texi (Alignment): Move section to match order in TOC.
7941 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7942 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7944 2011-03-23 Jeff Law <law@redhat.com>
7946 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7947 before removing the edge.
7949 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7950 it may have been freed by redirect_branch_edge or
7951 redirect_edge_succ_nodup.
7953 2011-03-23 Richard Guenther <rguenther@suse.de>
7955 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7956 (check_va_list_escapes): Likewise.
7957 (check_all_va_list_escapes): Likewise.
7959 2011-03-23 Richard Guenther <rguenther@suse.de>
7961 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7962 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7963 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7964 (alias.o): Likewise.
7965 (ipa-type-escape.o): Remove.
7966 (ipa-struct-reorg.o): Likewise.
7967 (GTFILES): Remove ipa-struct-reorg.c.
7968 * alias.c: Do not include ipa-type-escape.h.
7969 * tree-ssa-alias.c: Likewise.
7970 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7971 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7972 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7973 and ipa-type-escape passes.
7974 * tree-pass.h (pass_ipa_type_escape): Remove.
7975 (pass_ipa_struct_reorg): Likewise.
7976 * ipa-struct-reorg.h: Remove.
7977 * ipa-struct-reorg.c: Likewise.
7978 * ipa-type-escape.h: Likewise.
7979 * ipa-type-escape.c: Likewise.
7980 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7981 (--param struct-reorg-cold-struct-ratio): Likewise.
7982 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7983 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7984 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7986 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7988 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7989 cpu attribute value.
7990 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7991 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7992 * config/s390/s390.c (processor_flags_table): New constant array.
7993 (s390_handle_arch_option): Remove.
7994 (s390_handle_option): Remove s390_handle_arch_option invocations
7995 and OPT_mwarn_framesize_ handling.
7996 (s390_option_override): Remove s390_handle_arch_option invocation.
7997 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7999 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8000 * config/s390/s390.opt (s390_tune, s390_arch)
8001 (march=): Replace s390_arch_option enum and values with
8002 processor_type. Set variable name to s390_arch. Set
8003 initialization value.
8004 (mtune=): Replace s390_arch_option with processor_type. Set
8005 variable name to s390_tune. Set initialization value.
8007 2011-03-23 Julian Brown <julian@codesourcery.com>
8009 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8010 accesses which are not naturally aligned.
8012 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8015 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8017 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8019 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8020 parameter from "int" to "enum insn_code".
8021 (expand_operand_type): New enum.
8022 (expand_operand): New structure.
8023 (create_expand_operand): New function.
8024 (create_fixed_operand, create_output_operand): Likewise
8025 (create_input_operand, create_convert_operand_to): Likewise.
8026 (create_convert_operand_from, create_address_operand): Likewise.
8027 (create_integer_operand): Likewise.
8028 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8029 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8030 (expand_insn, expand_jump_insn): Likewise.
8031 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8032 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8033 (expand_movstr, expand_builtin___clear_cache): Likewise.
8034 (expand_builtin_lock_release): Likewise.
8035 * explow.c (allocate_dynamic_stack_space): Likewise.
8036 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8037 and use the default handling in that case.
8038 * expmed.c (check_predicate_volatile_ok): Delete.
8039 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8040 (emit_cstore): Likewise.
8041 * expr.c (emit_block_move_via_movmem): Likewise.
8042 (set_storage_via_setmem, expand_assignment): Likewise.
8043 (emit_storent_insn, try_casesi): Likewise.
8044 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8045 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8046 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8047 (expand_twoval_unop, expand_twoval_binop): Likewise.
8048 (expand_unop_direct, emit_indirect_jump): Likewise.
8049 (emit_conditional_move, vector_compare_rtx): Likewise.
8050 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8051 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8052 (expand_sync_lock_test_and_set): Likewise.
8053 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8054 (emit_unop_insn): Likewise.
8055 (expand_copysign_absneg): Change icode to an insn_code.
8056 (create_convert_operand_from_type): New function.
8057 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8058 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8059 (expand_insn, expand_jump_insn): Likewise.
8060 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8061 than const_int_operand for operand 2.
8063 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8065 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8068 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8070 * emit-rtl.c (emit_pattern_before_noloc): New function.
8071 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8072 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8073 (emit_pattern_after_noloc): New function.
8074 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8075 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8077 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8079 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8080 (__ffsDI2): Likewise.
8082 2011-03-22 Richard Henderson <rth@redhat.com>
8084 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8085 of !TARGET_ABI_OPEN_VMS.
8086 (alpha_trampoline_init, alpha_start_function): Likewise.
8087 (alpha_expand_epilogue, alpha_file_start): Likewise.
8088 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8089 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8090 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8091 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8092 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8094 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8096 * config/s390/s390-opts.h: New.
8097 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8098 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8099 s390_stack_guard): Remove.
8100 (s390_handle_arch_option): Return void. Take enum
8101 s390_arch_option value instead of string and searching array.
8102 (s390_handle_option): Don't assert that global structures are in
8103 use. Access variables via opts pointer. Use error_at. Don't use
8104 sscanf for -mstack-guard= or -mstack-size=. Update call to
8105 s390_handle_arch_option.
8106 (s390_option_override): Update call to s390_handle_arch_option.
8107 (s390_emit_prologue): Use %d format for s390_stack_size in
8108 diagnostic. Use %wd for HOST_WIDE_INT.
8109 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8110 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8111 * config/s390/s390.opt (config/s390/s390-opts.h): New
8112 HeaderInclude entry.
8113 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8114 s390_arch_flags, s390_warn_framesize): New Variable entries.
8115 (s390_arch_option): New Enum and EnumValue entries.
8116 (march=): Use Enum instead of Var.
8117 (mstack-guard=, mstack-size=): Use UInteger and Var.
8120 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8122 * config/score/score.c (score_handle_option): Don't assert that
8123 global structures are in use. Access target_flags via opts
8124 pointer. Use value of -march= option to determine target_flags
8126 * config/score/score.opt (march=): Use Enum.
8127 (score_arch): New Enum and EnumValue entries.
8129 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8131 * config/mep/mep.c (option_mtiny_specified): Remove.
8132 (mep_option_override): Move register handling for -mivc2 from
8133 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8134 instead of option_mtiny_specified.
8135 (mep_handle_option): Access target_flags via opts pointer. Don't
8136 assert that global structures are in use. Defer part of -mivc2
8137 handling and move it to mep_option_override.
8138 * config/mep/mep.opt (IVC2): New Mask entry.
8139 (mivc2): Use Var and Defer instead of Mask.
8141 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8143 * config/v850/v850-opts.h: New.
8144 * config/v850/v850.c (small_memory): Replace with
8145 small_memory_physical_max array. Make that array static const.
8146 (v850_handle_memory_option): Take integer value of argument. Take
8147 gcc_options pointer, option text and location. Return void.
8148 Update for changes to small memory structures.
8149 (v850_handle_option): Access target_flags via opts pointer. Don't
8150 assert that global structures are in use. Update calls to
8151 v850_handle_memory_option.
8152 (v850_encode_data_area): Update references to small memory settings.
8153 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8154 (enum small_memory_type): Move to v850-opts.h.
8155 * config/v850/v850.opt (config/v850/v850-opts.h): New
8156 HeaderInclude entry.
8157 (small_memory_max): New Variable entry.
8158 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8159 (mtda, mzda): Likewise.
8161 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8163 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8164 pointer. Don't assert that global structures are in use.
8166 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8168 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8169 via opts pointer. Don't assert that global structures are in use.
8171 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8173 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8174 (munix=93): Use Var.
8175 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8176 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8177 * config/pa/pa-opts.h: New.
8178 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8179 (pa_handle_option): Don't assert that global structures are in
8180 use. Access target_flags via opts pointer. Don't handle
8181 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8183 (pa_option_override): Handle deferred OPT_mfixed_range_.
8185 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8187 * config/mn10300/mn10300-opts.h: New.
8188 * config/mn10300/mn10300.c (mn10300_processor,
8189 mn10300_tune_string): Remove.
8190 (mn10300_handle_option): Don't assert that global structures are
8191 in use. Access mn10300_processor via opts pointer. Don't handle
8193 * config/mn10300/mn10300.h (enum processor_type): Move to
8195 (mn10300_processor): Remove.
8196 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8197 HeaderInclude entry.
8198 (mn10300_processor): New Variable entry.
8201 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8203 * config/microblaze/microblaze.c: Don't include opts.h.
8204 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8205 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8206 (mno-clearbss): Use Var and Warn.
8208 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8210 * config/m32r/m32r-opts.h: New.
8211 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8212 (m32r_handle_option): Don't assert that global structures are in
8213 use. Access target_flags and m32r_cache_flush_func via opts
8214 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8215 OPT_mno_flush_trap here.
8216 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8217 include of m32r-opts.h.
8218 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8219 HeaderInclude entry.
8220 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8221 (mmodel=): Use Enum and Var.
8222 (m32r_model): New Enum and EnumValue entries.
8223 (mno-flush-trap): Use Var.
8224 (msdata=): Use Enum and Var.
8225 (m32r_sdata): New Enum and EnumValue entries.
8227 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8229 * config/m32c/m32c.c: Don't include opts.h.
8230 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8231 m32c_handle_option): Remove.
8232 (m32c_option_override): Check global_options_set.x_target_memregs
8233 instead of target_memregs_set.
8234 * config/m32c/m32c.h (target_memregs): Remove.
8235 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8238 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8240 * config/iq2000/iq2000-opts.h: New.
8241 * config/iq2000/iq2000.c: Don't include opts.h.
8242 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8243 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8244 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8245 HeaderInclude entry.
8246 (iq2000_tune): New Variable entry.
8247 (march=): Add comment. Use Enum.
8248 (iq2000_arch): New Enum and EnumValue entries.
8249 (mcpu=): Use Enum and Var.
8250 (iq2000_tune): New Enum and EnumValue entries.
8252 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8254 * config/ia64/ia64-opts.h: New.
8255 * config/ia64/ia64.c (ia64_tune): Remove.
8256 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8258 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8259 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8260 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8261 HeaderInclude entry.
8262 (ia64_tune): New Variable entry.
8263 (mfixed-range=): Use Defer and Var.
8264 (mtune=): Use Enum and Var.
8265 (ia64_tune): New Enum and EnumValue entries.
8267 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8269 * config/frv/frv-opts.h: New.
8270 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8272 (frv_cpu_type): Remove.
8273 * config/frv/frv.c: Don't include opts.h.
8274 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8275 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8276 (frv_cpu_type): New Variable entry.
8277 (frv_cpu): New Enum and EnumValue entries.
8279 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8281 * config/cris/cris.c (cris_handle_option): Access target_flags via
8282 opts pointer. Don't assert that global structures are in use.
8283 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8284 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8286 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8288 * config/bfin/bfin-opts.h: New.
8289 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8290 bfin_si_revision, bfin_workarounds): Remove.
8291 (bfin_cpus): Make static const.
8292 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8293 not bfin_lib_id_given.
8294 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8295 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8296 pointer. Use error_at. Don't assert that global structures are in use.
8297 * config/bfin/bfin.h: Include bfin-opts.h.
8298 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8299 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8300 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8301 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8304 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8306 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8307 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8308 or -msoft-float here.
8309 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8310 -msoft-float and -mhard-float.
8311 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8312 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8314 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8316 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8317 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8319 (LIBGCC_SPEC): Don't handle -msoft-float.
8320 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8322 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8324 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8325 -mfloat-abi=*, not -msoft-float and -mhard-float.
8326 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8328 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8329 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8330 mhard-float and msoft-float.
8331 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8332 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8333 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8334 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8336 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8337 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8339 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8341 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8344 2011-03-22 Richard Henderson <rth@redhat.com>
8346 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8347 TARGET_ABI_WINDOWS_NT.
8348 (alpha_output_function_end_prologue): Likewise.
8349 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8350 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8351 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8352 (trap, *movsi_nt_vms): Likewise.
8353 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8354 (*tablejump_osf_nt_internal): Remove.
8355 * config/alpha/predicates.md (input_operand): Only test Pmode.
8357 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8359 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8360 via opts pointer. Use error_at. Don't assert that global
8361 structures are in use.
8363 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8365 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8366 (ix86_handle_option): Access ix86_isa_flags and
8367 ix86_isa_flags_explicit via opts pointer. Don't assert that
8368 global structures are in use.
8369 (ix86_function_specific_save, ix86_function_specific_restore):
8370 Update ix86_isa_flags_explicit field name.
8371 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8372 (ix86_isa_flags_explicit): Rename TargetSave entry to
8373 x_ix86_isa_flags_explicit.
8375 2011-03-22 Richard Henderson <rth@redhat.com>
8377 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8378 (alpha_option_override, direct_return): Likewise.
8379 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8380 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8381 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8382 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8383 (alpha_expand_epilogue, alpha_end_function): Likewise.
8384 (alpha_init_libfuncs): Likewise.
8385 (struct machine_function): Remove unicosmk members.
8386 (print_operand) ['t']: Remove.
8387 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8388 unicosmk_output_module_name, unicosmk_output_common,
8389 current_section_align, unicosmk_output_text_section_asm_op,
8390 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8391 unicosmk_section_type_flags, unicosmk_unique_section,
8392 unicosmk_asm_named_section, unicosmk_insert_attributes,
8393 unicosmk_output_align, unicosmk_defer_case_vector,
8394 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8395 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8396 unicosmk_output_ssib, unicosmk_add_call_info_word,
8397 unicosmk_extern_head, unicosmk_output_default_externs,
8398 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8399 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8400 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8401 * config/alpha/alpha-protos.h: Update.
8402 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8403 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8404 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8405 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8406 (*mulsi_se, mulvsi3): Likewise.
8407 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8408 (*divmodsi_internal, call, call_value, realign): Likewise.
8409 (moddi3, umoddi3): Likewise; remove duplicate expander.
8410 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8411 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8412 (*movdi_nofix): Remove r/U alternative.
8413 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8414 * config/alpha/constraints.md ("U"): Remove.
8415 * config/alpha/predicates.md (call_operand"): Don't test
8416 TARGET_ABI_UNICOSMK.
8418 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8420 * target.def (handle_option): Take gcc_options and
8421 cl_decoded_option pointers and location_t.
8422 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8423 * doc/tm.texi: Regenerate.
8424 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8425 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8426 * lto-opts.c (lto_reissue_options): Generate option structure for
8427 targetm.handle_option call.
8428 * opts.c (target_handle_option): Update call to
8429 targetm.handle_option. Remove assertions about values now passed
8431 * targhooks.c (default_target_handle_option): New.
8432 * targhooks.h (default_target_handle_option): Declare.
8433 * config/alpha/alpha.c: Include opts.h.
8434 (alpha_handle_option): Update to new hook interface.
8435 * config/arm/arm.c: Include opts.h.
8436 (arm_handle_option): Update to new hook interface.
8437 * config/arm/t-arm (arm.o): Update dependencies.
8438 * config/bfin/bfin.c: Include opts.h.
8439 (bfin_handle_option): Update to new hook interface.
8440 * config/cris/cris.c: Include opts.h.
8441 (cris_handle_option): Update to new hook interface.
8442 * config/frv/frv.c: Include opts.h.
8443 (frv_handle_option): Update to new hook interface.
8444 * config/i386/i386.c: Include opts.h.
8445 (ix86_handle_option): Update to new hook interface.
8446 (ix86_valid_target_attribute_inner_p): Generate option structure
8447 for call to ix86_handle_option.
8448 * config/i386/t-i386 (i386.o): Update dependencies.
8449 * config/ia64/ia64.c: Include opts.h.
8450 (ia64_handle_option): Update to new hook interface.
8451 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8452 * config/iq2000/iq2000.c: Include opts.h.
8453 (iq2000_handle_option): Update to new hook interface.
8454 * config/m32c/m32c.c: Include opts.h.
8455 (m32c_handle_option): Update to new hook interface.
8456 * config/m32r/m32r.c: Include opts.h.
8457 (m32r_handle_option): Update to new hook interface.
8458 * config/m68k/m68k.c: Include opts.h.
8459 (m68k_handle_option): Update to new hook interface.
8460 * config/mep/mep.c: Include opts.h.
8461 (mep_handle_option): Update to new hook interface.
8462 * config/microblaze/microblaze.c: Include opts.h.
8463 (microblaze_handle_option): Update to new hook interface.
8464 * config/mips/mips.c: Include opts.h.
8465 (mips_handle_option): Update to new hook interface.
8466 * config/mn10300/mn10300.c: Include opts.h.
8467 (mn10300_handle_option): Update to new hook interface.
8468 * config/pa/pa.c: Include opts.h.
8469 (pa_handle_option): Update to new hook interface.
8470 * config/pdp11/pdp11.c: Include opts.h.
8471 (pdp11_handle_option): Update to new hook interface.
8472 * config/rs6000/rs6000.c: Include opts.h.
8473 (rs6000_handle_option): Update to new hook interface.
8474 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8475 * config/rx/rx.c: Include opts.h.
8476 (rx_handle_option): Update to new hook interface.
8477 * config/s390/s390.c: Include opts.h.
8478 (s390_handle_option): Update to new hook interface.
8479 * config/score/score.c: Include opts.h.
8480 (score_handle_option): Update to new hook interface.
8481 * config/sh/sh.c: Include opts.h.
8482 (sh_handle_option): Update to new hook interface.
8483 * config/sparc/sparc.c: Include opts.h.
8484 (sparc_handle_option): Update to new hook interface.
8485 * config/v850/v850.c: Include opts.h.
8486 (v850_handle_option): Update to new hook interface.
8488 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8490 * gcc.c (driver_unknown_option_callback): Only permit and save
8491 unknown -Wno- options.
8492 (driver_wrong_lang_callback): Save options directly instead of via
8493 driver_unknown_option_callback.
8495 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8497 * combine.c (simplify_set): Try harder to find the best CC mode when
8498 simplifying a nested COMPARE on the RHS.
8500 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8502 * config/alpha/gnu.h: Remove.
8503 * config/arc: Remove directory.
8504 * config/arm/netbsd.h: Remove.
8505 * config/arm/t-pe: Remove.
8506 * config/crx: Remove directory.
8507 * config/i386/netbsd.h: Remove.
8508 * config/m68hc11: Remove directory.
8509 * config/m68k/uclinux-oldabi.h: Remove.
8510 * config/mcore/mcore-pe.h: Remove.
8511 * config/mcore/t-mcore-pe: Remove.
8512 * config/netbsd-aout.h: Remove.
8513 * config/rs6000/gnu.h: Remove.
8514 * config/sh/sh-symbian.h: Remove.
8515 * config/sh/symbian-base.c: Remove.
8516 * config/sh/symbian-c.c: Remove.
8517 * config/sh/symbian-cxx.c: Remove.
8518 * config/sh/symbian-post.h: Remove.
8519 * config/sh/symbian-pre.h: Remove.
8520 * config/sh/t-symbian: Remove.
8521 * config/svr3.h: Remove.
8522 * config/vax/netbsd.h: Remove.
8523 * config.build: Don't handle i[34567]86-*-pe.
8524 * config.gcc: Remove handling of deprecations for most deprecated
8526 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8527 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8528 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8529 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8530 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8531 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8533 * config.host: Don't handle i[34567]86-*-pe.
8534 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8535 (ASM_SPEC32): Don't handle -mcall-gnu.
8536 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8538 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8539 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8540 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8541 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8542 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8543 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8544 conditional on SYMBIAN.
8545 * configure.ac: Don't handle powerpc*-*-gnu*.
8546 * configure: Regenerate.
8547 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8548 * doc/install-old.texi (m6811, m6812): Don't mention.
8549 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8550 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8551 (m68k-uclinuxoldabi): Don't mention.
8552 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8554 (-mcall-gnu): Remove.
8555 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8556 families): Remove constraint documentation.
8558 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8560 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8561 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8562 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8564 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8567 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8568 vector when peeking at the next token for vector, don't expand the
8571 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8573 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8574 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8575 * config/avr/avr.c (init_cumulative_args)
8576 (avr_function_arg_advance): Use it.
8577 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8579 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8580 (avr_function_ok_for_sibcall): ...this new function.
8581 (avr_lookup_function_attribute1): New static Function.
8582 (avr_naked_function_p, interrupt_function_p)
8583 (signal_function_p, avr_OS_task_function_p)
8584 (avr_OS_main_function_p): Use it.
8585 * config/avr/avr.md ("sibcall", "sibcall_value")
8586 ("sibcall_epilogue"): New expander.
8587 ("*call_insn", "*call_value_insn"): New insn.
8588 ("call_insn", "call_value_insn"): Remove
8589 ("call", "call_value", "epilogue"): Change expander to handle
8592 2011-03-21 Nick Clifton <nickc@redhat.com>
8594 * doc/invoke.texi (Overall Options): Move closing brace to end of
8596 (Optimization Options): Add missing @gol.
8597 (Directory Options): Likewise.
8598 (i386 and x86-64 Options): Likewise.
8599 (RS6000 and PowerPC Options): Likewise.
8600 (i386 and x86-64 Windows Options): Likewise.
8601 (V850 Options): Add text missing from descriptions.
8603 2011-03-22 Richard Henderson <rth@redhat.com>
8605 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8606 (avr_incoming_return_addr_rtx): New.
8607 (emit_push_byte): New.
8608 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8609 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8610 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8611 (emit_pop_byte): New.
8612 (expand_epilogue): Use it. Pop frame pointer by bytes.
8613 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8614 (INCOMING_RETURN_ADDR_RTX): New.
8615 (INCOMING_FRAME_SP_OFFSET): New.
8616 (ARG_POINTER_CFA_OFFSET): New.
8617 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8618 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8621 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8623 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8625 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8626 (FUNCTION_ARG_ADVANCE): Likewise.
8627 * tm.texi.in: Change references to them to hook references.
8628 * tm.texi: Regenerate.
8629 * targhooks.c (default_function_arg): Eliminate check for target
8631 (default_function_incoming_arg): Likewise.
8632 (default_function_arg_advance): Likewise.
8633 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8634 (function_arg_advance): Likewise.
8635 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8637 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8639 * tree.c (build_call_1): New function.
8640 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8642 2011-03-22 Richard Guenther <rguenther@suse.de>
8644 PR tree-optimization/48228
8645 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8646 for single-arg PHIs.
8648 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8650 PR rtl-optimization/48143
8651 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8652 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8653 sse2_cvtps2pd): Likewise.
8655 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8657 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8659 2011-03-22 Richard Guenther <rguenther@suse.de>
8661 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8662 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8663 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8664 and REALIGN_LOAD_EXPR.
8665 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8666 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8667 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8668 DOT_PROD_EXPR case ...
8669 (expand_expr_real_2): ... here.
8670 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8671 and REALIGN_LOAD_EXPR.
8672 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8673 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8674 (vect_create_epilog_for_reduction): Likewise.
8675 (vectorizable_reduction): Likewise.
8676 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8677 * tree-vect-stmts.c (vectorizable_load): Likewise.
8679 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8681 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8683 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8685 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8686 handling for PLTOFF/GOTOFF.
8688 2011-03-22 Nick Clifton <nickc@redhat.com>
8690 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8691 trailing backslash from the end of the macro definition.
8693 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8695 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8698 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8700 * expr.h (prepare_operand): Move to...
8701 * optabs.h (prepare_operand): ...here and change the insn code
8702 parameter from "int" to "enum insn_code".
8703 (insn_operand_matches): Declare.
8704 * expr.c (init_expr_target): Use insn_operand_matches.
8705 (compress_float_constant): Likewise.
8706 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8707 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8708 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8709 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8711 (gen_cond_trap): Likewise.
8712 (prepare_operand): Likewise. Change icode to an insn_code.
8713 (insn_operand_matches): New function.
8714 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8715 * reload1.c (gen_reload): Likewise.
8716 * targhooks.c (default_secondary_reload): Likewise.
8718 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8720 * config/alpha/alpha.md (unspec): New define_c_enum.
8723 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8726 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8727 between a call and its CALL_ARG_LOCATION note.
8729 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8731 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8733 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8737 * c-common.c (shorten_compare): If primopN is first sign-extended
8738 to opN and then zero-extended to result type, set primopN to opN.
8740 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8742 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8743 for barrier handlers.
8745 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8747 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8748 UNSPEC constants to be in the unspec enumeration, and redefine
8749 all UNSPECV constants to be in the unspecv enumeration, so that
8750 dumps print which unspec/unspec_volatile this is.
8751 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8752 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8753 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8754 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8755 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8757 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8758 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8759 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8760 * config/rs6000/sync.md (isync, lwsync): Ditto.
8762 2011-03-21 Richard Guenther <rguenther@suse.de>
8764 * params.def (lto-min-partition): Fix typo.
8766 2011-03-21 Richard Guenther <rguenther@suse.de>
8769 * c-decl.c (grokdeclarator): Drop to the main variant only
8770 for array types. Drop flag_gen_aux_info check.
8772 2011-03-21 Richard Guenther <rguenther@suse.de>
8774 PR translation/47911
8775 * params.def (lto-partitions): Fix typo.
8776 (lto-min-partition): Fix wording.
8778 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8780 * config/rs6000/t-freebsd: Remove duplication from file.
8782 2011-03-21 Richard Guenther <rguenther@suse.de>
8785 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8787 2011-03-21 Richard Guenther <rguenther@suse.de>
8790 * params.def (lto-partitions): Require at least 1 partition.
8792 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8794 * gthr-solaris.h: Remove.
8795 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8796 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8797 (LIB_SPEC): Likewise.
8798 * config/sol2.opt (threads): Remove.
8799 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8800 (sparc*-*-solaris2*): Likewise.
8801 * configure.ac (enable_threads): Enable solaris support.
8802 * configure: Regenerate.
8803 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8804 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8807 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8809 * config.gcc: Obsolete *-*-solaris2.8*.
8810 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8812 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8815 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8816 reference. Solaris 8 perl works.
8818 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8821 * doc/install.texi (Prerequisites): Move jar etc. up.
8822 Explain support library version requirements.
8824 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8827 * doc/install.texi (Prerequisites): Move Perl to build
8828 requirements. Always necessary on Solaris 2 with Sun ld.
8830 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8832 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8834 (Specific, i?86-*-solaris2.[89]): Likewise.
8835 (Specific, i?86-*-solaris2.10): Likewise.
8836 (Specific, mips-sgi-irix6): Likewise.
8837 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8838 Update for binutils 2.21.
8840 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8842 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8843 Allow -fuse-linker-plugin for non-default plugin linker.
8844 * configure: Regenerate.
8846 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8849 * gengtype.c (files_rules): Added rule for cp/parser.h.
8851 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8854 * config/s390/s390.c (s390_delegitimize_address): Don't call
8855 lowpart_subreg if orig_x has BLKmode.
8857 2011-03-21 Kai Tietz <ktietz@redhat.com>
8860 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8861 * tree.h (attribute_spec): Add new member affects_type_identity.
8862 * attribs.c (empty_attribute_table): Adjust attribute_spec
8864 * config/alpha/alpha.c: Likewise.
8865 * config/arc/arc.c: Likewise.
8866 * config/arm/arm.c: Likewise.
8867 * config/avr/avr.c: Likewise.
8868 * config/bfin/bfin.c: Likewise.
8869 * config/crx/crx.c: Likewise.
8870 * config/darwin.h: Likewise.
8871 * config/h8300/h8300.c: Likewise.
8872 * config/i386/cygming.h: Likewise.
8873 * config/i386/i386.c: Likewise.
8874 * config/ia64/ia64.c: Likewise.
8875 * config/m32c/m32c.c: Likewise.
8876 * config/m32r/m32r.c: Likewise.
8877 * config/m68hc11/m68hc11.c: Likewise.
8878 * config/m68k/m68k.c: Likewise.
8879 * config/mcore/mcore.c: Likewise.
8880 * config/mep/mep.c: Likewise.
8881 * config/microblaze/microblaze.c: Likewise.
8882 * config/mips/mips.c: Likewise.
8883 * config/rs6000/rs6000.c: Likewise.
8884 * config/rx/rx.c: Likewise.
8885 * config/sh/sh.c: Likewise.
8886 * config/sol2.h: Likewise.
8887 * config/sparc/sparc.c: Likewise.
8888 * config/spu/spu.c: Likewise.
8889 * config/stormy16/stormy16.c: Likewise.
8890 * config/v850/v850.c: Likewise.
8892 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8894 * simplify-rtx.c (simplify_binary_operation_1): Handle
8895 (xor (and A B) C) case when B and C are both constants.
8897 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8899 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8901 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8904 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8906 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8908 PR rtl-optimization/48156
8909 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8910 assume df and df_lr are not NULL.
8912 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8915 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8916 between a call and its CALL_ARG_LOCATION note.
8918 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8921 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8922 between a call and its corresponding CALL_ARG_LOCATION note.
8924 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8926 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8927 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8928 * haifa-sched.c (setup_ref_regs): Ditto.
8929 * caller-save.c (add_used_regs_1): Ditto.
8930 * dse.c (look_for_hardregs): Ditto.
8931 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8932 * sched-rgn.c (check_live_1): Ditto.
8934 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8936 * c-decl.c (diagnose_mismatched_decls): Give an error for
8937 redefining a typedef with variably modified type.
8939 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8941 * c-decl.c (grokfield): Don't allow typedefs for structures or
8942 unions with no tag by default.
8943 * doc/extend.texi (Unnamed Fields): Update.
8945 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8947 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8948 Rewrite using indirect functions.
8949 (lwp_slwpcb): Ditto.
8950 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8951 (avx_vinsertf128<mode>): Ditto.
8953 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8955 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8958 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8960 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8961 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8963 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8965 PR rtl-optimization/48170
8966 * gcse.c (hoist_code): Remove bogus asserts.
8968 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8970 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8971 computation for prologue/epilogue.
8973 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8975 * Makefile.in (check-consistency): Remove.
8977 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8980 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8981 arange_table_in_use is 0, but either text_section_used or
8982 cold_text_section_used is true. Don't call it if
8983 !info_section_emitted.
8985 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8987 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8988 FUNCTION_VALUE_REGNO_P): Remove.
8989 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8991 * config/avr/avr.c (avr_ret_register): Make static inline.
8992 (avr_function_value_regno_p): New function.
8993 (avr_libcall_value): Make static. Add 'func' argument.
8994 (avr_function_value): Make static. Rename 'func' argument to
8995 'fn_decl_or_type', forward it to avr_libcall_value. Call
8996 avr_ret_register function instead of RET_REGISTER macro.
8997 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8999 2011-03-18 Jason Merrill <jason@redhat.com>
9002 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9004 2011-03-18 Richard Guenther <rguenther@suse.de>
9006 * doc/install.texi (--enable-gold): Remove.
9007 (--with-plugin-ld): Document.
9008 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9010 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9013 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9014 again after expansion changes.
9016 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9018 * combine.c (try_combine): Do simplification only call of
9019 subst() on i2 even when i1 is present. Update comments.
9021 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9023 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9024 and UNSPEC_PCREL_SYMOFF.
9026 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9028 * config/s390/s390.md: Use define_c_enum for the unspec constant
9031 2011-03-18 Richard Henderson <rth@redhat.com>
9032 Jakub Jelinek <jakub@redhat.com>
9035 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9036 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9038 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9041 * combine.c (cant_combine_insn_p): Don't check zero/sign
9042 extended hard registers.
9044 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9047 * combine.c (cant_combine_insn_p): Check zero/sign extended
9050 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9052 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9053 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9054 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9055 Change return type to bool.
9056 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9058 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9061 * var-tracking.c (prepare_call_arguments): If CALL target
9062 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9063 pc instead of looking it up using cselib_lookup and use
9064 Pmode for it if x has VOIDmode.
9065 * dwarf2out.c (gen_subprogram_die): If also both first and
9066 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9069 * function.c (assign_parms): For data.passed_pointer parms
9070 use MEM of data.entry_parm instead of data.entry_parm itself
9071 as DECL_INCOMING_RTL.
9072 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9073 also when passed and declared mode is the same, DECL_RTL
9074 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9077 2011-03-16 Jeff Law <law@redhat.com>
9079 PR rtl-optimization/37273
9080 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9081 handle them like argument loads from stack slots. Do not double
9082 count memory for memory constants and argument loads from stack slots.
9084 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9087 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9089 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9092 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9094 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9097 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9099 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9100 Clear call_arg_locations and call_arg_loc_last always.
9103 * var-tracking.c (prepare_call_arguments): If argument needs to be
9104 passed by reference, adjust argtype and mode.
9106 2011-03-17 Richard Guenther <rguenther@suse.de>
9109 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9110 a value make sure to fold the statement.
9112 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9115 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9116 return condition with !cfun->calls_alloca.
9118 2011-03-17 Richard Guenther <rguenther@suse.de>
9121 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9122 origin for decls in other ltrans units.
9123 (input_varpool_node): Likewise.
9125 2011-03-17 Richard Guenther <rguenther@suse.de>
9128 * tree-object-size.c (compute_object_offset): Properly return
9129 the offset operand of MEM_REFs as sizetype.
9131 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9133 PR rtl-optimization/48141
9134 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9135 * dse.c: Include params.h.
9136 (active_local_stores_len): New variable.
9137 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9139 (record_store, check_mem_read_rtx): Decrease it when removing
9141 (scan_insn): Likewise. Increase it when adding to chain, if it
9142 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9143 set active_local_stores to NULL before the addition.
9144 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9146 PR rtl-optimization/48141
9147 * dse.c (record_store): If no positions are needed in an insn
9148 that cannot be deleted, at least unchain it from active_local_stores.
9150 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9153 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9154 (lookup_type_die_strip_naming_typedef): ... here.
9155 (get_context_die): Use it.
9156 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9157 the anonymous struct named by the naming typedef.
9159 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9162 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9163 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9165 2011-03-16 Jeff Law <law@redhat.com>
9167 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9168 check for operands of conditional. Allow type to be a pointer.
9170 2011-03-16 Richard Guenther <rguenther@suse.de>
9172 PR tree-optimization/48149
9173 * fold-const.c (fold_binary_loc): Fold
9174 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9176 2011-03-16 Richard Guenther <rguenther@suse.de>
9178 PR tree-optimization/26134
9179 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9180 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9181 (non_rewritable_mem_ref_base): Handle complex type component
9182 accesses, constrain offsets for vector and complex extracts
9185 2011-03-16 Richard Guenther <rguenther@suse.de>
9187 PR tree-optimization/48146
9188 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9189 operands avoiding the need for renaming.
9191 2011-03-16 Richard Guenther <rguenther@suse.de>
9193 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9194 constant folding. Move MEM_REF canonicalization first.
9195 Rely on fold_const_aggregate_ref for initializer folding.
9196 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9198 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9201 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9202 arg0/arg1 or their arguments are always fold converted to matching
9205 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9208 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9211 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9212 Handle in-tree gold.
9213 (ld_vers): Extract binutils version for gold.
9214 (gcc_cv_ld_hidden): Handle gold here.
9215 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9216 * configure: Regenerate.
9217 * config.in: Regenerate.
9218 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9219 -fuse-linker-plugin otherwise.
9220 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9221 (LINK_COMMAND_SPEC): Use it.
9222 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9224 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9226 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9227 * calls.c: Remove debug.h include.
9228 (emit_call_1): Don't call virtual_call_token debug hook.
9229 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9230 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9231 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9232 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9233 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9234 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9235 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9236 dwarf2out_virtual_call): Remove.
9237 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9238 copy_call_info and virtual_call hooks.
9239 (dwarf2out_init): Don't initialize vcall_insn_table,
9240 debug_dcall_section and debug_vcall_section.
9241 (prune_unused_types): Don't mark nodes from dcall_table.
9242 (dwarf2out_finish): Don't output dcall or vcall tables.
9243 * final.c (final_scan_insn): Don't call direct_call or
9244 virtual_call debug hooks.
9245 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9246 virtual_call_token, copy_call_info and virtual_call hooks.
9247 (debug_nothing_uid): Remove prototype.
9248 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9249 copy_call_info and virtual_call hooks.
9250 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9251 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9252 * debug.c (do_nothing_debug_hooks): Likewise.
9253 (debug_nothing_uid): Remove.
9254 * doc/invoke.texi (-fenable-icf-debug): Remove.
9255 * common.opt (-fenable-icf-debug): Likewise.
9257 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9258 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9259 call's MEM. Handle functions returning aggregate through a hidden
9260 first pointer. For virtual calls add clobbered pc to call arguments
9262 * dwarf2out.c (gen_subprogram_die): Emit
9263 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9267 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9268 * rtl.h (ENTRY_VALUE_EXP): Define.
9269 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9270 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9271 * print-rtl.c (print_rtx): Likewise.
9272 * gengtype.c (adjust_field_rtx_def): Likewise.
9273 * var-tracking.c (vt_add_function_parameter): Adjust
9274 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9275 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9276 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9277 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9278 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9280 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9281 Call var_location debug hook even on CALL_INSNs.
9282 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9283 * rtl.def (ENTRY_VALUE): New.
9284 * dwarf2out.c: Include cfglayout.h.
9285 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9286 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9287 (struct call_arg_loc_node): New type.
9288 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9289 tail_call_site_count): New variables.
9290 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9291 DW_TAG_GNU_call_site_parameter.
9292 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9293 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9294 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9295 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9296 and DW_AT_GNU_all_source_call_sites.
9297 (mem_loc_descriptor): Handle ENTRY_VALUE.
9298 (add_src_coords_attributes): Don't add enything if
9299 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9300 (dwarf2out_abstract_function): Save and clear call_arg_location,
9301 call_site_count and tail_call_site_count around dwarf2out_decl call.
9302 (gen_call_site_die): New function.
9303 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9304 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9305 (dwarf2out_function_decl): Clear call_arg_locations,
9306 call_arg_loc_last, set call_site_count and tail_call_site_count
9307 to -1 and free block_map.
9308 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9309 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9310 followed by any real instructions.
9311 (dwarf2out_begin_function): Set call_site_count and
9312 tail_call_site_count to 0.
9313 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9314 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9315 attempt to force a DIE for it and worst case remove the attribute.
9316 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9317 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9319 * var-tracking.c: Include tm_p.h.
9320 (vt_stack_adjustments): For calls call note_register_arguments.
9321 (argument_reg_set): New variable.
9322 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9323 ensure the VALUE is resolved.
9324 (call_arguments): New variable.
9325 (prepare_call_arguments): New function.
9326 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9327 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9328 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9329 always use the best expression.
9330 (vt_expand_loc): Add ignore_cur_loc argument.
9331 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9332 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9333 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9335 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9336 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9337 argument. Don't call cselib_preserve_only_values and
9339 (note_register_arguments): New function.
9340 (vt_initialize): Compute argument_reg_set. Call
9341 vt_add_function_parameters before processing basic blocks instead of
9342 afterwards. For calls call prepare_call_arguments before calling
9343 cselib_process_insn.
9344 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9345 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9346 (var-tracking.o): Depend on $(TM_P_H).
9347 * cfglayout.h (insn_scope): New prototype.
9348 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9349 * cfglayout.c (insn_scope): No longer static.
9350 * insn-notes.def (CALL_ARG_LOCATION): New.
9351 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9352 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9353 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9354 nothing for DECL_EXTERNAL BLOCK_VARS.
9356 2011-03-16 Alan Modra <amodra@gmail.com>
9359 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9360 create invalid offset address for vsx splat insn.
9361 * config/rs6000/predicates.md (splat_input_operand): New.
9362 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9364 2011-03-15 Xinliang David Li <davidxl@google.com>
9367 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9368 (normalize_preds): New function.
9369 (is_use_properly_guarded): Normalize def predicates.
9371 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9374 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9375 in the output template.
9377 2011-03-15 Richard Guenther <rguenther@suse.de>
9380 * tree-pretty-print.c (dump_function_declaration): Properly
9381 dump unprototyped and varargs function types.
9383 2011-03-15 Richard Guenther <rguenther@suse.de>
9385 PR tree-optimization/13954
9386 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9389 2011-03-15 Richard Guenther <rguenther@suse.de>
9391 PR tree-optimization/48037
9392 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9393 selects into BIT_FIELD_REFs.
9394 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9397 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9399 PR tree-optimization/48129
9400 * builtins.c (fold_builtin_snprintf): Convert to type of
9401 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9402 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9404 2011-03-15 Richard Guenther <rguenther@suse.de>
9406 PR tree-optimization/41490
9407 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9408 value but with VUSE.
9409 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9411 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9412 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9413 * tree-tailcall.c (find_tail_calls): Ignore returns.
9415 2011-03-15 Richard Guenther <rguenther@suse.de>
9418 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9419 or variable-indexed array accesses when in gimple form.
9421 2011-03-15 Richard Guenther <rguenther@suse.de>
9423 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9425 2011-03-15 Alan Modra <amodra@gmail.com>
9428 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9429 presume symbol_refs without a symbol_ref_decl are suitably
9430 aligned, nor other trees we may see here. Handle anchor symbols.
9431 (legitimate_constant_pool_address_p): Comment. Add mode param.
9432 Check cmodel=medium addresses. Adjust all calls.
9433 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9434 creating cmodel=medium optimized access to locals.
9435 * config/rs6000/constraints.md (R): Pass QImode to
9436 legitimate_constant_pool_address_p.
9437 * config/rs6000/predicates.md (input_operand): Pass mode to
9438 legitimate_constant_pool_address_p.
9439 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9442 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9445 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9446 64-bit constants being loaded into registers other than GPRs such
9447 as loading 0 into a VSX register.
9449 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9451 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9453 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9456 * builtins.c (fold_builtin_snprintf): New function.
9457 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9458 (fold_builtin_4): Likewise.
9461 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9462 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9463 and C - X == X also strip nops from +/-/p+ operand.
9464 When optimizing -X == C, fold C to arg0's type.
9467 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9468 emit it as add_AT_int instead of add_AT_unsigned.
9470 2011-03-14 Tom Tromey <tromey@redhat.com>
9472 * unwind-dw2.c: Include sys/sdt.h if it exists.
9473 (_Unwind_DebugHook): Use STAP_PROBE2.
9474 * config.in, configure: Rebuild.
9475 * configure.ac: Check for sys/sdt.h.
9477 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9479 * config/i386/i386.md (ROUND_FLOOR): New constant.
9480 (ROUND_CEIL): Ditto.
9481 (ROUND_TRUNC): Ditto.
9482 (ROUND_MXCSR): Ditto.
9483 (ROUND_NO_EXC): Ditto.
9484 (rint<mode>2): Use new defines instead of numerical constants.
9485 (floor<mode>2): Ditto.
9486 (ceil<mode>2): Ditto.
9487 (btrunc<mode>2): Ditto.
9488 * config/i386/i386-builtin-types.def: Define ROUND function type
9490 * config/i386/i386.c (enum ix86_builtins): Add
9491 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9492 (struct builtin_description): Add
9493 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9494 (ix86_expand_sse_round): New static function.
9495 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9497 (ix86_builtin_vectorized_function): Handle
9498 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9500 2011-03-14 Tom Tromey <tromey@redhat.com>
9502 * c-parser.c (c_parser_asm_string_literal): Clear
9503 warn_overlength_strings.
9505 2011-03-14 Tom Tromey <tromey@redhat.com>
9507 * c-parser.c (disable_extension_diagnostics): Save
9508 warn_overlength_strings.
9509 (restore_extension_diagnostics): Restore warn_overlength_strings.
9511 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9513 * BASE-VER: Change to 4.7.0.
9515 2011-03-14 Richard Guenther <rguenther@suse.de>
9518 * tree.c (build_vector_from_val): Adjust assert to requirements
9521 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9524 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9526 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9528 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9529 terms of target_flags_explicit. Adjust copyright year.
9531 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9532 * config/rs6000/t-freebsd: New file. Add override for
9535 2011-03-13 Chris Demetriou <cgd@google.com>
9537 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9538 (-fno-diagnostics-show-option): this, to reflect current default.
9539 (-Werror=): Update text about -fno-diagnostics-show-option.
9541 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9544 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9545 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9546 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9547 mode is not V2DImode or V2DFmode.
9548 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9549 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9550 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9552 (movdi_internal64): Likewise.
9554 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9556 PR tree-optimization/47127
9557 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9559 (set_cloog_options): Same.
9560 (scop_to_clast): Same.
9561 (print_clast_stmt): Do not call cloog_state_malloc and
9563 (print_generated_program): Same.
9565 * graphite-clast-to-gimple.h (cloog_state): Declared.
9566 (scop_to_clast): Adjust declaration.
9567 * graphite.c (cloog_state): Defined here.
9568 (graphite_initialize): Call cloog_state_malloc.
9569 (graphite_finalize): Call cloog_state_free.
9571 2011-03-11 Jason Merrill <jason@redhat.com>
9573 * attribs.c (lookup_attribute_spec): Take const_tree.
9576 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9578 * config/sparc/sparc.c (sparc_option_override): Use
9579 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9581 2011-03-11 Richard Guenther <rguenther@suse.de>
9583 PR tree-optimization/48067
9584 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9585 multiplication result will be only used once on the target
9588 2011-03-11 Richard Guenther <rguenther@suse.de>
9590 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9592 2011-03-11 Richard Guenther <rguenther@suse.de>
9595 * tree.c (find_decls_types_r): Do not walk types only reachable
9596 from IDENTIFIER_NODEs.
9598 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9601 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9602 all vnode->force_output nodes as needed.
9604 2011-03-11 Jason Merrill <jason@redhat.com>
9607 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9608 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9610 2011-03-11 Martin Jambor <mjambor@suse.cz>
9612 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9615 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9617 PR tree-optimization/48063
9618 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9619 inline functions called once if !tree_can_inline_p (node->callers).
9621 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9623 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9625 * config/score/score3.c: Delete.
9626 * config/score/score3.h: Delete.
9627 * config/score/mul-div.S: Delete.
9628 * config/score/sfp-machine.h: Add new file.
9629 * config/score/constraints.md: Add new file.
9630 * config/score/t-score-softfp: Add new file.
9631 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9632 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9633 (score7_extra_constraint): Delete.
9634 (score7_option_override): Remove unused code.
9635 * config/score/score.c: Remove score3 and score5 define and code.
9636 * config/score/score.h: Remove score3 and score5 define and code.
9637 * config/score/score.md: Remove score3 template and unusual insn.
9638 * config/score/score.opt: Remove score3 and score5 options.
9640 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9642 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9643 when _HPUX_SOURCE is defined.
9644 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9646 2011-03-10 Jason Merrill <jason@redhat.com>
9649 * stor-layout.c (layout_type): Don't set structural equality
9650 on arrays of incomplete type.
9651 * tree.c (type_hash_eq): Handle comparing them properly.
9653 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9656 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9657 result mode matches original rtl mode.
9659 2011-03-10 Nick Clifton <nickc@redhat.com>
9661 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9662 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9664 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9666 PR rtl-optimization/47866
9667 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9668 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9669 if target wasn't scalar.
9670 * function.c (assign_stack_temp_for_type): Assert that neither
9671 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9672 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9674 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9676 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9678 * config/s390/s390-protos.h (s390_label_align): New prototype.
9679 * config/s390/s390.c (s390_label_align): New function.
9680 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9682 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9685 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9686 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9687 (output_vec_const_move): Ditto.
9689 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9691 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9692 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9693 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9694 Change 'rclass' argument and result type to reg_class_t.
9695 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9697 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9699 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9700 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9701 (TARGET_MEMORY_MOVE_COST): Define.
9702 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9704 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9707 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9710 PR tree-optimization/48022
9711 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9714 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9717 * var-tracking.c (find_use_val): Return NULL for
9718 cui->sets && cui->store_p BLKmode MEMs.
9720 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9722 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9724 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9725 xstormy16_print_operand_address): Remove.
9726 * config/stormy16/stormy16.c (xstormy16_print_operand,
9727 xstormy16_print_operand_address): Make static.
9728 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9730 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9733 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9734 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9737 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9740 * cfgloopmanip.c (fix_bb_placements): Return immediately
9741 if FROM is BASE_LOOP's header.
9743 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9745 * gimplify.c (gimplify_function_tree): Fix building calls
9746 to __builtin_return_address.
9748 2011-03-07 Alan Modra <amodra@gmail.com>
9750 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9751 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9752 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9753 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9755 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9756 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9757 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9758 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9759 * config/rs6000/rs6000.c
9760 (rs6000_elf_end_indicate_exec_stack): Rename to..
9761 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9762 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9763 (rs6000_file_start): ..here.
9764 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9765 file scope variables.
9766 (call_ABI_of_interest): New function.
9767 (init_cumulative_args): Set above vars when function return value
9768 is a float, vector, or small struct.
9769 (rs6000_function_arg_advance_1): Likewise for function args.
9770 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9771 references float args.
9773 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9775 * doc/cfg.texi: Remove "See" before @ref.
9776 * doc/invoke.texi: Likewise.
9778 2011-03-05 Jason Merrill <jason@redhat.com>
9780 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9782 2011-03-05 Anthony Green <green@moxielogic.com>
9784 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9786 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9788 PR rtl-optimization/47899
9789 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9790 to flow_loop_nested_p when moving the loop upward.
9792 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9795 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9797 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9799 PR tree-optimization/47967
9800 * ipa-cp.c (build_const_val): Return NULL instead of creating
9801 VIEW_CONVERT_EXPR for mismatching sizes.
9802 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9803 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9804 give up on versioning.
9806 2011-03-05 Alan Modra <amodra@gmail.com>
9809 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9810 full cmodel medium/large lo_sum + high addresses.
9812 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9814 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9815 pool references in UNSPEC_LTREL_OFFSET.
9817 2011-03-04 Jan Hubicka <jh@suse.cz>
9820 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9821 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9822 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9824 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9825 cgraph_add_thunk): Add node pointers.
9826 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9827 associated to right node.
9828 (input_node): Update use of cgraph_same_body_alias
9829 and cgraph_add_thunk.
9831 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9833 * config/i386/i386.opt (mprefer-avx128): New flag.
9834 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9835 modes when the flag -mprefer-avx128 is on.
9837 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9839 * dwarf2out.c (compare_loc_operands): Fix address handling.
9841 2011-03-04 Alan Modra <amodra@gmail.com>
9843 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9845 2011-03-04 Richard Guenther <rguenther@suse.de>
9848 * expmed.c (extract_bit_field_1): Prefer vector modes that
9849 vec_extract patterns can handle.
9851 2011-03-04 Richard Guenther <rguenther@suse.de>
9854 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9856 2011-03-04 Richard Henderson <rth@redhat.com>
9858 * explow.c (emit_stack_save): Remove 'after' parameter.
9859 (emit_stack_restore): Likewise.
9860 * expr.h: Update to match.
9861 * builtins.c, calls.c, stmt.c: Likewise.
9862 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9863 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9864 * function.c (expand_function_end): Insert the emit_stack_save
9865 sequence before parm_birth_insn instead of after.
9867 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9869 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9870 (ssse3_pmaddubsw128): Ditto.
9871 (ssse3_pmaddubsw): Ditto.
9873 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9875 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9877 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9880 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9881 on TYPE_SIZE_UNIT if it is a DECL.
9884 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9885 first operand is not is_gimple_mem_ref_addr, try to fold it.
9886 If the operand still isn't is_gimple_mem_ref_addr, clear
9889 2011-03-03 Richard Guenther <rguenther@suse.de>
9892 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9894 (refs_may_alias_p_1): For release branches return true if
9895 we are confused by our input.
9897 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9899 * config/s390/s390.c (s390_function_value): Rename to ...
9900 (s390_function_and_libcall_value): ... this.
9901 (s390_function_value): New function.
9902 (s390_libcall_value): New function.
9903 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9904 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9905 target macro definitions.
9906 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9908 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9910 * config/i386/freebsd64.h (CC1_SPEC): Define.
9911 * config/i386/linux64.h (CC1_SPEC): Define.
9912 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9914 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9916 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9918 * config/stormy16/stormy16.c: Include reload.h.
9919 (xstormy16_memory_move_cost): New function.
9920 (TARGET_MEMORY_MOVE_COST): Define.
9922 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9924 PR rtl-optimization/47925
9925 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9926 with side effects. Remove the more-specific check for volatile asms.
9928 2011-03-02 Alan Modra <amodra@gmail.com>
9931 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9932 toc relative addresses for valid offsets.
9934 2011-03-01 Richard Guenther <rguenther@suse.de>
9936 PR tree-optimization/47890
9937 * tree-vect-loop.c (get_initial_def_for_induction): Set
9938 related stmt properly.
9940 2011-03-01 Richard Guenther <rguenther@suse.de>
9943 * lto-streamer.c (lto_record_common_node): Also register
9946 2011-03-01 Richard Guenther <rguenther@suse.de>
9949 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9950 Do not stream DECL_ABSTRACT_ORIGIN.
9951 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9952 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9953 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9954 Do not stream DECL_ABSTRACT_ORIGIN.
9955 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9956 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9958 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9960 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9961 FUNCTION_VALUE_REGNO_P): Remove.
9962 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9963 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9964 Add 'outgoing' argument.
9965 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9967 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9968 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9970 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9973 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9974 (lookup_filename): Likewise.
9975 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9977 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9978 Jakub Jelinek <jakub@redhat.com>
9981 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9982 (assign_stack_local_1): Change last argument type to int.
9983 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9984 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9985 don't record padding space into frame_space_list nor use those areas.
9986 (assign_stack_local): Adjust caller.
9987 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9988 of assign_stack_local, pass 0 as last argument.
9989 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9992 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9995 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9996 Use target address_mode and pointer_mode hooks instead of hardcoded
9997 Pmode and ptr_mode. Handle some simple cases of extending if
9998 POINTERS_EXTEND_UNSIGNED < 0.
9999 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10000 Call convert_debug_memory_address.
10001 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10002 convert_debug_memory_address.
10004 PR middle-end/46790
10005 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10006 * configure: Regenerated.
10007 * config.in: Regenerated.
10008 * varasm.c (default_function_section): Return NULL
10009 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10011 2011-02-28 Martin Jambor <mjambor@suse.cz>
10013 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10014 the description to match the printed values.
10016 2011-02-28 Richard Guenther <rguenther@suse.de>
10018 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10019 of the copied scope tree.
10021 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10023 * doc/extend.texi (Function Attributes): Avoid deeply (and
10024 wrongly) nested tables.
10026 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10028 PR middle-end/47903
10029 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10030 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10031 r isn't op0 nor op1.
10033 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10035 * config/avr/avr.md: Remove magic comment for emacs.
10037 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10040 * config/avr/avr.c (avr_option_override): Use error on bad options.
10041 (avr_help): New function.
10042 (TARGET_HELP): Define.
10044 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10047 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10048 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10050 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10052 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10053 (ARM Options): Ditto.
10054 (i386 and x86-64 Options): Ditto.
10055 (RX Options): Ditto.
10056 (SPARC Options): Ditto.
10058 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10060 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10061 FreeBSD 6 and later. Generally use cpu generic.
10063 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10065 * doc/cpp.texi: Update copyright years.
10067 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10070 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10072 2011-02-25 Jon Beniston <jon@beniston.com>
10075 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10076 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10077 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10078 (lm32_block_move_inline): Add type cast to remove warning.
10079 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10080 (gen_int_relational): Move declarations to start of function.
10082 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10084 PR tree-optimization/45470
10085 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10086 can throw internally only.
10087 * tree-vect-stmts.c (vectorizable_call): Likewise.
10089 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10091 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10092 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10093 * config/stormy16/stormy16-protos.h
10094 (xstormy16_preferred_reload_class): Remove.
10095 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10096 static. Change 'rclass' argument and return type to reg_class_t.
10097 (TARGET_PREFERRED_RELOAD_CLASS,
10098 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10100 2011-02-24 Richard Guenther <rguenther@suse.de>
10102 * lto-streamer-in.c (input_bb): Do not find referenced vars
10103 in debug statements.
10105 2011-02-23 Jason Merrill <jason@redhat.com>
10107 * common.opt (fabi-version): Document v5 and v6.
10109 2011-02-23 Richard Guenther <rguenther@suse.de>
10111 PR tree-optimization/47849
10112 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10114 2011-02-23 Jie Zhang <jie@codesourcery.com>
10116 * opts-common.c (decode_cmdline_option): Print empty string
10117 argument as "" in decoded->orig_option_with_args_text.
10118 * gcc.c (execute): Print empty string argument as ""
10119 in the verbose output.
10120 (do_spec_1): Keep empty string argument.
10122 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10124 * config.gcc: Declare score-* and crx-* obsolete.
10126 2011-02-23 Jie Zhang <jie@codesourcery.com>
10128 PR rtl-optimization/47763
10129 * web.c (web_main): Ignore naked clobber when replacing register.
10131 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10133 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10136 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10139 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10141 2011-02-22 Mike Stump <mikestump@comcast.net>
10143 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10145 * configure: Regenerate.
10147 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10149 PR rtl-optimization/46002
10150 * ira-color.c (update_copy_costs): Change class intersection
10151 test to reg_class_contents[] test of 'hard_regno'.
10153 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10155 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10156 than Driver option.
10157 * config/hpux11.opt (mt): Likewise.
10158 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10159 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10160 * config/vax/elf.opt (mno-asm-pic): Likewise.
10161 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10163 2011-02-21 Mike Stump <mikestump@comcast.net>
10166 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10167 tree so we can get save the type.
10168 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10169 for CFString instead of trying to use past the end of the builtins.
10170 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10171 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10172 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10173 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10174 Rename to darwin_builtin_cfstring.
10175 (darwin_init_cfstring_builtins): Return the built type.
10177 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10180 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10181 (_mm256_insert_epi64): Use _mm_insert_epi64.
10183 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10185 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10186 * config/stormy16/stormy16-protos.h
10187 (xstormy16_mode_dependent_address_p): Remove.
10188 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10189 Make static. Change return type to bool. Change argument type to
10190 const_rtx. Remove dead code.
10191 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10193 2011-02-21 Richard Guenther <rguenther@suse.de>
10196 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10197 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10198 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10200 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10201 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10203 2011-02-20 Richard Guenther <rguenther@suse.de>
10206 * tree.c (free_lang_data_in_decl): Clean builtins from
10207 the TU decl BLOCK_VARS.
10209 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10213 * haifa-sched.c (fix_tick_ready): Skip tick computation
10216 2011-02-19 Richard Guenther <rguenther@suse.de>
10219 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10220 Remove lazy BLOCK_VARS streaming.
10221 (lto_input_ts_block_tree_pointers): Likewise.
10222 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10224 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10226 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10228 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10230 * config/i386/biarch32.h, config/i386/mach.h,
10231 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10233 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10236 * config/i386/i386.md (peephole2 for shift and plus): Use
10237 operands[1] original mode in the first insn.
10239 2011-02-18 Mike Stump <mikestump@comcast.net>
10241 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10243 2011-02-18 Jan Hubicka <jh@suse.cz>
10245 PR middle-end/47788
10246 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10247 to zero when the function is not inlinable at all.
10249 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10251 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10252 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10253 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10254 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10255 * config/pa/t-pa64: Likewise.
10256 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10258 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10261 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10263 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10266 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10268 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10270 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10271 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10272 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10273 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10274 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10275 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10276 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10277 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10278 m32r_legitimate_address_p): New functions.
10279 * config/m32r/constraints.md (constraint "S"): Don't use
10280 STORE_PREINC_PREDEC_P.
10281 (constraint "U"): Don't use LOAD_POSTINC_P.
10283 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10285 PR rtl-optimization/46178
10286 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10287 compute ira_hard_regno_cover_class[].
10289 2011-02-18 Richard Guenther <rguenther@suse.de>
10292 * lto-streamer.h (lto_global_var_decls): Declare.
10293 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10294 statics for global var processing.
10296 2011-02-18 Richard Guenther <rguenther@suse.de>
10298 PR tree-optimization/47737
10299 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10300 edge dominance check.
10302 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10305 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10306 avoid invalid rtx sharing.
10308 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10310 * doc/cpp.texi (Obsolete Features): Add background on the
10311 origin of assertions.
10313 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10315 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10317 * config/darwin.c (output_objc_section_asm_op): Added support for
10319 (is_objc_metadata): New.
10320 (darwin_objc2_section): New.
10321 (darwin_objc1_section): New.
10322 (machopic_select_section): Added support for ABI v1 and v2.
10323 (darwin_emit_objc_zeroed): New.
10324 (darwin_output_aligned_bss): Detect objc metadata and treat it
10326 (darwin_asm_output_aligned_decl_common): Same.
10327 (darwin_asm_output_aligned_decl_local): Same.
10328 * config/darwin-sections.def: Updated for ABI v1 and v2.
10329 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10330 compiling Objective-C code for the NeXT runtime, default to using
10331 ABI version 0 for 32-bit, and version 2 for 64-bit.
10333 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10335 * common.opt (optimize_fast): New Variable.
10336 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10337 instead of local variable ofast.
10339 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10341 * doc/invoke.texi (fobjc-abi-version): Documented.
10342 (fobjc-nilcheck): Documented.
10343 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10346 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10349 * common.opt (export-dynamic): New Driver option.
10350 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10352 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10354 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10356 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10357 Jan Hubicka <jh@suse.cz>
10361 * cfgexpand.c (account_used_vars_for_block): Remove.
10362 (estimated_stack_frame_size): Use referenced vars.
10363 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10364 that were referenced in the original function. Test src_fn
10365 rather than cfun. Drop redundant get_var_ann.
10366 (setup_one_parameter): Drop redundant get_var_ann.
10367 (declare_return_variable): Likewise.
10368 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10369 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10370 * ipa-inline.c (compute_inline_parameters): Do not compute
10371 disregard_inline_limits here.
10372 (compute_inlinable_for_current, pass_inlinable): New.
10373 (pass_inline_parameters): Require PROP_referenced_vars.
10374 * cgraphunit.c (cgraph_process_new_functions): Don't run
10375 compute_inline_parameters explicitly unless function is in SSA form.
10376 (cgraph_analyze_function): Set .disregard_inline_limits.
10377 * tree-sra.c (convert_callers): Compute inliner parameters
10378 only for functions already in SSA form.
10380 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10382 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10383 -mlittle-endian-data.
10385 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10387 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10388 -mno-fpu, not -fpu and -no-fpu.
10389 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10390 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10392 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10395 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10396 input reload with PLUS RTX.
10398 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10400 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10401 of InverseVar(MDMX).
10403 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10405 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10408 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10410 * config/mn10300/mn10300.opt (mno-crt0): New.
10412 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10414 * config/m68k/uclinux.opt (static-libc): New Driver option.
10416 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10418 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10420 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10422 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10423 %{muser-extend-enabled}.
10425 2011-02-16 Richard Guenther <rguenther@suse.de>
10427 PR tree-optimization/47738
10428 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10429 the TODO from tree_predictive_commoning.
10431 2011-02-15 Jeff Law <law@redhat.com>
10434 2011-01-25 Jeff Law <law@redhat.com>
10436 PR rtl-optimization/37273
10437 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10438 handle them like argument loads from stack slots. Do not double
10439 count memory for memory constants and argument loads from stack slots.
10441 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10443 PR middle-end/47725
10444 * combine.c (cant_combine_insn_p): Revert the last change.
10446 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10449 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10450 mode for vector constants. Remove code that checks for TImode.
10452 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10456 * cgraph.h (compute_inline_parameters): Return void.
10457 * ipa-inline.c (compute_inline_parameters): Adjust.
10459 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10463 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10465 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10466 * ipa-inline.c (compute_inline_parameters): Adjust.
10468 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10472 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10473 Adjust all users. Pass FN to...
10474 * tree-flow-inline.h (first_referenced_var): ... this. Add
10476 * ipa-struct-reorg.c: Adjust.
10477 * tree-dfa.c: Adjust.
10478 * tree-into-ssa.c: Adjust.
10479 * tree-sra.c: Adjust.
10480 * tree-ssa-alias.c: Adjust.
10481 * tree-ssa-live.c: Adjust.
10482 * tree-ssa.c: Adjust.
10483 * tree-ssanames.c: Adjust.
10484 * tree-tailcall.c: Adjust.
10486 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10490 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10491 Adjust all callers.
10492 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10493 * tree-flow-inline.h: Adjust.
10494 * gimple-pretty-print.c: Adjust.
10495 * tree-into-ssa.c: Adjust.
10496 * tree-ssa.c: Adjust.
10497 * cfgexpand.c: Adjust.
10499 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10501 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10502 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10503 (EXTRA_CONSTRAINT): Delete.
10504 * config/iq2000/constraints.md: New file.
10505 * config/iq2000/iq2000.md: Include it.
10506 (define_insn ""): Delete.
10507 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10508 unsupported constraint letters from patterns.
10509 (call_value, call_value_internal1): Likewise.
10510 (call_value_multiple_internal1): Likewise.
10512 2011-02-15 Nick Clifton <nickc@redhat.com>
10514 * config/mn10300/mn10300.c: Include tm-constrs.h.
10515 (struct liw_data): New data structure describing an LIW candidate
10517 (extract_bundle): Use struct liw_data. Allow small integer
10518 operands for some instructions.
10519 (check_liw_constraints): Use struct liw_data. Remove swapped
10520 parameter. Add comments describing the checks. Fix bug when
10521 assigning the source of liw1 to the source of liw2.
10522 (liw_candidate): Delete. Code moved into extract_bundle.
10523 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10525 * config/mn10300/predicates.md (liw_operand): New predicate.
10526 Allows registers and small integer constants.
10527 * config/mn10300/constraints.md (O): New constraint. Accetps
10528 integers in the range -8 to +7 inclusive.
10529 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10530 for moving a small integer into a register. Give this alternative
10532 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10533 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10534 using the J,K,L and M constraints,
10535 (liw): Remove SI mode on second operands to allow for HI and QI
10537 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10540 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10542 PR middle-end/47725
10543 * combine.c (cant_combine_insn_p): Check zero/sign extended
10546 2011-02-15 Richard Guenther <rguenther@suse.de>
10548 PR tree-optimization/47743
10549 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10550 for a non-type-compatible VN lookup bail out.
10552 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10554 * config/fr30/constraints.md: New file.
10555 * config/fr30/fr30.md: Include it.
10556 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10557 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10558 (EXTRA_CONSTRAINT): Delete.
10560 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10562 * config/frv/constraints.md: New file.
10563 * config/frv/predicates.md: Include it.
10564 * config/frv/frv.c (reg_class_from_letter): Delete.
10565 (frv_option_override): Don't initialize it.
10566 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10567 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10568 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10569 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10570 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10571 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10572 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10573 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10574 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10575 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10576 (REG_CLASS_FROM_CONSTRAINT): Delete.
10578 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10580 PR middle-end/47581
10581 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10582 if frame size is 0 in a leaf function.
10584 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10587 * config/alpha/host-osf.c: New file.
10588 * config/alpha/x-osf: New file.
10589 * config.host (alpha*-dec-osf*): Use it.
10591 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10593 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10594 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10595 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10596 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10598 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10600 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10602 * config/stormy16/constraints.md: New file.
10603 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10604 Use satisfies_constraint_Q and satisfies_constraint_R.
10605 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10607 (xstormy16_legitiamte_address_p): Declare.
10608 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10609 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10610 (EXTRA_CONSTRAINT): Delete.
10611 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10613 (xstormy16_extra_constraint_p): Delete.
10615 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10617 PR tree-optimization/46494
10618 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10619 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10620 (pass_rtl_loop_done): Add TODO_verify_flow.
10621 * fwprop.c (pass_rtl_fwprop): Likewise.
10622 * modulo-sched.c (pass_sms): Likewise.
10623 * tree-ssa-dom.c (pass_dominator): Likewise.
10624 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10625 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10626 (pass_tree_loop_done): Likewise.
10627 * tree-ssa-pre.c (execute_pre): Likewise.
10628 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10629 * tree-ssa-sink.c (pass_sink_code): Likewise.
10630 * tree-vrp.c (pass_vrp): Likewise.
10632 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10634 * config/v850/constraints.md: New file.
10635 * config/v850/v850.md: Include it.
10636 * config/v850/predicates.md (reg_or_0_operand): Use
10637 satisfies_constraint_G.
10638 (special_symbolref_operand): Use satisfies_constraint_K.
10639 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10640 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10641 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10642 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10643 (EXTRA_CONSTRAINT): Delete.
10644 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10645 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10646 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10648 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10651 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10654 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10656 * config/mcore/constraints.md: New file.
10657 * config/mcore/mcore.md: Include it.
10658 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10659 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10660 (REG_CLASS_FROM_LETTER): Delete.
10661 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10662 insn_const_int_ok_for_constraint.
10663 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10664 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10665 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10666 (EXTRA_CONSTRAINT): Delete.
10668 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10671 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10672 (IS_SIGHANDLER): Define.
10673 (sparc64_is_sighandler): New function, split off from
10674 sparc64_fallback_frame_state.
10675 (sparc_is_sighandler): New function, split off from
10676 sparc_fallback_frame_state.
10677 (sparc64_fallback_frame_state): Merge with ...
10678 (sparc_fallback_frame_state): ... this into ...
10679 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10680 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10681 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10682 stack instead of hardcoded offsets.
10684 2011-02-14 Andriy Gapon <avg@freebsd.org>
10687 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10689 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10691 * configure: Regenerate.
10693 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10696 * gcc.c (asm_options): Correct spec matching --target-help.
10698 2011-02-12 Martin Jambor <mjambor@suse.cz>
10700 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10701 to gimple call error.
10703 2011-02-12 Mike Stump <mikestump@comcast.net>
10705 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10706 comments in backslash regions.
10708 2011-02-12 Mike Stump <mikestump@comcast.net>
10709 Jakub Jelinek <jakub@redhat.com>
10710 Iain Sandoe <iains@gcc.gnu.org>
10713 * dwarf2out.c (output_cfa_loc): When required, apply the
10714 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10715 (output_loc_sequence): Likewise.
10716 (output_loc_operands_raw): Likewise.
10717 (output_loc_sequence_raw): Likewise.
10718 (output_cfa_loc): Likewise.
10719 (output_loc_list): Suppress register number adjustment when
10720 calling output_loc_sequence()
10721 (output_die): Likewise.
10723 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10725 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10727 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10728 xtensa_memory_move_cost): New functions.
10729 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10731 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10734 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10735 in the current directory.
10736 * configure: Rebuilt.
10738 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10740 * config/darwin.c (darwin_override_options): Add a hunk missed
10741 from the commit of r168571. Trim comment line lengths and
10742 correct indents of the preceding block.
10744 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10746 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10749 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10751 * common.opt (nostartfiles): New Driver option.
10753 2011-02-11 Xinliang David Li <davidxl@google.com>
10755 PR tree-optimization/47707
10756 * tree-chrec.c (convert_affine_scev): Keep type precision.
10758 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10760 PR tree-optimization/47420
10761 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10763 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10765 PR rtl-optimization/47614
10766 * rtl.h (check_for_inc_dec): Declare.
10767 * dse.c (check_for_inc_dec): Externalize...
10768 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10769 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10771 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10774 * gcc.c (main): Do not compile inputs if there were errors in
10776 * opts-common.c (read_cmdline_option): Check for wrong language
10777 after other error checks.
10779 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10781 * cgraph.c: Fix comment typos.
10782 * cgraph.h: Likewise.
10783 * cgraphunit.c: Likewise.
10784 * ipa-cp.c: Likewise.
10785 * ipa-inline.c: Likewise.
10786 * ipa-prop.c: Likewise.
10787 * ipa-pure-const.c: Likewise.
10788 * ipa-ref.c: Likewise.
10789 * ipa-reference.c: Likewise.
10791 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10794 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10796 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10799 * doc/sourcebuild.texi (Require Support): Document
10800 dg-require-ascii-locale.
10802 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10804 * doc/lto.texi (Write summary): Fix missing parentheses.
10806 2011-02-10 DJ Delorie <dj@redhat.com>
10808 * config/m32c/m32c.c (m32c_option_override): Disable
10809 -fcombine-stack-adjustments until flag value tracking and compare
10810 optimization can be rewritten.
10812 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10814 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10816 (PROCESSOR_DEFAULT64): Likewise.
10818 2011-02-10 Richard Henderson <rth@redhat.com>
10820 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10821 change from 2011-02-03.
10822 * config/rx/rx.c (flags_from_code): Likewise.
10823 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10824 is valid, n/pz otherwise.
10825 (rx_select_cc_mode): Return CCmode if Y is not zero.
10827 2011-02-10 Richard Guenther <rguenther@suse.de>
10829 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10831 2011-02-10 Richard Guenther <rguenther@suse.de>
10833 PR tree-optimization/47677
10834 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10836 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10839 * combine.c (make_compound_operation): Only change shifts into
10840 multiplication for SCALAR_INT_MODE_P.
10842 2011-02-10 Jie Zhang <jie@codesourcery.com>
10846 2011-02-05 Jie Zhang <jie@codesourcery.com>
10848 * web.c (entry_register): Don't clobber the number of the
10849 first uninitialized reference in used[].
10851 2011-02-09 Richard Guenther <rguenther@suse.de>
10853 PR tree-optimization/47664
10854 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10857 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10861 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10863 (PROCESSOR_DEFAULT64): Same.
10864 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10866 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10868 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10870 2011-02-09 Martin Jambor <mjambor@suse.cz>
10872 PR middle-end/45505
10873 * tree-sra.c (struct access): New flags grp_scalar_read and
10874 grp_scalar_write. Changed description of assignment read and write
10876 (dump_access): Dump new flags, reorder all of them.
10877 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10878 to detect multiple scalar reads.
10879 (analyze_access_subtree): Use the new scalar read write flags instead
10880 of the old flags. Adjusted comments.
10882 2011-02-08 DJ Delorie <dj@redhat.com>
10885 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10888 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10890 * config/m68k/uclinux.opt: New.
10891 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10893 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10895 * config/cris/elf.opt (sim): New Driver option.
10897 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10899 * config/xtensa/elf.opt: New.
10900 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10902 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10904 * config/vax/elf.opt: New.
10905 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10907 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10909 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10911 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10913 * config/gnu-user.opt: New.
10914 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10915 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10916 *-*-uclinux*): Use gnu-user.opt.
10918 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10920 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10921 * config/i386/gnu.h (CPP_SPEC): Likewise.
10923 2011-02-08 Ian Lance Taylor <iant@google.com>
10925 * common.opt (fcx-limited-range): Add SetByCombined flag.
10926 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10927 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10928 (fassociative-math, freciprocal-math): Likewise.
10929 (funsafe-math-optimizations): Likewise.
10930 * opth-gen.awk: Handle SetByCombined.
10931 * optc-gen.awk: Likewise.
10932 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10933 (set_unsafe_math_optimizations_flags): Likewise.
10934 * doc/options.texi (Option properties): Document SetByCombined.
10936 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10938 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10939 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10940 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10941 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10942 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10944 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10946 PR tree-optimization/46834
10947 PR tree-optimization/46994
10948 PR tree-optimization/46995
10949 * graphite-sese-to-poly.c (used_outside_reduction): New.
10950 (detect_commutative_reduction): Call used_outside_reduction.
10951 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10952 translate_scalar_reduction_to_array only when at least one
10953 loop-phi/close-phi tuple has been detected.
10955 2011-02-08 Richard Guenther <rguenther@suse.de>
10957 PR middle-end/47639
10958 * tree-vect-generic.c (expand_vector_operations_1): Update
10960 (expand_vector_operations): ... not here. Cleanup EH info
10961 and the CFG if required.
10963 2011-02-08 Richard Guenther <rguenther@suse.de>
10965 PR tree-optimization/47641
10966 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10967 require type compatibility.
10969 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10971 * gimple-low.c (lower_function_body): Don't remove the location of
10972 the return statement here.
10973 (lower_gimple_return): Do it here instead but only if the return
10974 statement is actually used twice.
10976 2011-02-08 Richard Guenther <rguenther@suse.de>
10978 PR tree-optimization/47632
10979 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10980 unused up_to_stmt parameter, return whether cfg-cleanup is
10981 necessary, remove EH info properly.
10982 (forward_propagate_into_gimple_cond): Adjust caller.
10983 (forward_propagate_into_cond): Likewise.
10984 (forward_propagate_comparison): Likewise.
10985 (tree_ssa_forward_propagate_single_use_vars): Make
10986 forward_propagate_comparison case similar to the two others.
10988 2011-02-08 Nick Clifton <nickc@redhat.com>
10990 * config/mn10300/mn10300.opt (mliw): New command line option.
10991 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10992 (liw_bundling): New automaton.
10993 (liw): New attribute.
10994 (liw_op): New attribute.
10995 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10996 (movsi_internal): Add LIW attributes.
10997 (andsi3): Likewise.
10998 (iorsi3): Likewise.
10999 (xorsi3): Likewise.
11000 (addsi3): Separate register and immediate alternatives.
11001 Add LIW attributes.
11002 (subsi3): Likewise.
11004 (aslsi3): Likewise.
11005 (lshrsi3): Likewise.
11006 (ashrsi3): Likewise.
11007 (liw): New pattern.
11008 * config/mn10300/mn10300.c (liw_op_names): New
11009 (mn10300_print_operand): Handle 'W' operand descriptor.
11010 (extract_bundle): New function.
11011 (check_liw_constraints): New function.
11012 (liw_candidate): New function.
11013 (mn10300_bundle_liw): New function.
11014 (mn10300_reorg): New function.
11015 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11016 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11017 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11018 __LIW__ or __NO_LIW__.
11019 * doc/invoke.texi: Describe the -mliw command line option.
11021 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11023 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11024 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11025 pthread_mutex_unlock): Remove.
11026 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11027 * config/pa/t-pa64: Likewise.
11028 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11029 shared libc if not linking against libpthread.
11030 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11032 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11035 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11036 on 10.6 and later to ensure that we always use the unwinder from
11037 the system. Only add -no_compact_unwind when tarteting darwin
11040 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11043 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11044 (vec_interleave_lowv2sf): Ditto.
11045 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11046 (vec_extract_oddv2sf): Ditto.
11048 2011-02-07 Mike Stump <mikestump@comcast.net>
11051 Add __ieee_divdc3 entry point.
11052 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11054 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11055 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11056 * config/darwin.c (darwin_rename_builtins): Add.
11057 * config/darwin-protos.h (darwin_rename_builtins): Add.
11059 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11062 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11065 2011-02-07 Mike Stump <mikestump@comcast.net>
11067 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11069 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11072 * config/avr/libgcc.S (exit): Move .endfunc
11074 2011-02-07 Richard Guenther <rguenther@suse.de>
11076 PR tree-optimization/47615
11077 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11078 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11079 (run_scc_vn): Initialize it.
11080 (visit_reference_op_load): Use it.
11081 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11083 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11085 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11086 DImode trapping arithmetic libfuncs.
11088 2011-02-07 Richard Guenther <rguenther@suse.de>
11090 PR tree-optimization/47621
11091 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11093 (execute_update_addresses_taken): ... here. Make it more
11094 conservative in what we accept.
11096 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11098 * config/sparc/freebsd.h (ASM_SPEC): Define.
11099 * config/sparc/vxworks.h (ASM_SPEC): Define.
11101 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11103 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11105 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11107 * doc/invoke.texi: Remove reference to compiler internals from
11108 user documentation.
11110 * reg-notes.def: Remove REG_VALUE_PROFILE.
11111 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11113 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11115 PR middle-end/47610
11116 * varasm.c (default_section_type_flags): If decl is NULL,
11117 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11119 2011-02-05 Jie Zhang <jie@codesourcery.com>
11122 * web.c (entry_register): Don't clobber the number of the
11123 first uninitialized reference in used[].
11125 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11127 PR tree-optimization/46194
11128 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11129 (build_classic_dist_vector_1): Do not represent classic distance
11130 vectors when the access functions are variating in different loops.
11132 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11134 * config/mips/iris6.opt: New.
11135 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11137 2011-02-04 Richard Henderson <rth@redhat.com>
11138 Steve Ellcey <sje@cup.hp.com>
11141 * config/ia64/predicates.md (mux1_brcst_element): New.
11142 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11143 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11144 (ia64_unpack_sign): New.
11145 (ia64_expand_unpack): Rewrite using new routines.
11146 (ia64_expand_widen_sum): Ditto.
11147 (ia64_expand_dot_prod_v8qi): Ditto.
11148 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11149 routines, add endian check.
11150 (pmpy2_even): Rename from pmpy2_r, add endian check.
11151 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11152 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11153 (vec_widen_smult_hi_v4hi): Ditto.
11154 (vec_widen_umult_lo_v4hi): Ditto.
11155 (vec_widen_umult_hi_v4hi): Ditto.
11156 (mulv2si3): Change endian checks.
11157 (sdot_prodv4hi): Rewrite with new calls.
11158 (udot_prodv4hi): New.
11159 (vec_pack_ssat_v4hi): Add endian check.
11160 (vec_pack_usat_v4hi): Ditto.
11161 (vec_pack_ssat_v2si): Ditto.
11162 (max1_even): Rename from max1_r, add endian check.
11163 (max1_odd): Rename from max1_l, add endian check.
11164 (*mux1_rev): Format change.
11165 (*mux1_mix): Ditto.
11166 (*mux1_shuf): Ditto.
11167 (*mux1_alt): Ditto.
11168 (*mux1_brcst_v8qi): Use new predicate.
11169 (vec_extract_evenv8qi): Remove endian check.
11170 (vec_extract_oddv8qi): Ditto.
11171 (vec_interleave_lowv4hi): Format change.
11172 (vec_interleave_highv4hi): Ditto.
11173 (mix2_even): Rename from mix2_r, add endian check.
11174 (mix2_odd): Rename from mux2_l, add endian check.
11175 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11176 (vec_extract_evenodd_helper): Format change.
11177 (vec_extract_evenv4hi): Remove endian check.
11178 (vec_extract_oddv4hi): Remove endian check.
11179 (vec_interleave_lowv2si): Format change.
11180 (vec_interleave_highv2si): Format change.
11181 (vec_initv2si): Remove endian check.
11182 (vecinit_v2si): Add endian check.
11183 (reduc_splus_v2sf): Add endian check.
11184 (reduc_smax_v2sf): Ditto.
11185 (reduc_smin_v2sf): Ditto.
11186 (vec_initv2sf): Remove endian check.
11187 (fpack): Add endian check.
11188 (fswap): Add endian check.
11189 (vec_interleave_highv2sf): Add endian check.
11190 (vec_interleave_lowv2sf): Add endian check.
11191 (fmix_lr): Add endian check.
11192 (vec_setv2sf): Format change.
11193 (*vec_extractv2sf_0_be): Use shift to extract operand.
11194 (*vec_extractv2sf_1_be): New.
11195 (vec_pack_trunc_v4hi): Add endian check.
11196 (vec_pack_trunc_v2si): Format change.
11198 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11200 PR inline-asm/23200
11201 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11202 do bb, locus and block comparison and disallow loads if it is not set.
11203 (stmt_is_replaceable_p): New function.
11204 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11206 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11207 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11209 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11211 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11213 * config/rs6000/xilinx.opt: New.
11214 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11216 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11218 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11220 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11222 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11223 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11224 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11225 secondary_reload_info, xtensa_secondary_reload): Remove.
11226 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11227 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11228 (xtensa_preferred_reload_class): Make static. Change return and
11229 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11230 Use CONST_DOUBLE_P predicate.
11231 (xtensa_preferred_output_reload_class): New function.
11232 (xtensa_secondary_reload): Make static.
11234 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11236 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11237 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11238 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11240 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11242 PR middle-end/31490
11243 * output.h (SECTION_RELRO): Define.
11244 (SECTION_MACH_DEP): Adjust.
11245 (get_variable_section): New prototype.
11246 * varpool.c (varpool_finalize_named_section_flags): New function.
11247 (varpool_assemble_pending_decls): Call it.
11248 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11249 * cgraphunit.c (cgraph_output_in_order): Call
11250 varpool_finalize_named_section_flags.
11251 * varasm.c (get_section): Allow section flags conflicts between
11252 relro and read-only sections if the section hasn't been declared yet.
11253 Set SECTION_OVERRIDE after diagnosing section type conflict.
11254 (get_variable_section): No longer static.
11255 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11256 readonly sections that need relocations.
11257 (decl_readonly_section_1): New function.
11258 (decl_readonly_section): Use it.
11261 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11262 Steve Ellcey <sje@cup.hp.com>
11264 PR middle-end/31490
11265 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11266 if section attribute used.
11268 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11270 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11271 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11272 (darwin_init_sections): Remove assertion.
11274 2011-02-03 Nick Clifton <nickc@redhat.com>
11276 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11278 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11279 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11280 instead of "n" and "pz".
11281 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11284 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11287 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11288 fma, expand FMA_EXPR as fma{,f,l} call.
11291 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11292 copy them into a unsigned char variable and pass address of it to
11293 lto_output_data_stream.
11296 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11297 around backend_init_target and lang_dependent_init_target calls.
11298 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11299 (verify_cgraph_node): Don't call set_cfun here. Use
11300 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11301 Set error_found for incorrectly represented calls to thunks.
11303 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11306 PR rtl-optimization/43494
11307 * rtl.h (for_each_inc_dec_fn): New type.
11308 (for_each_inc_dec): Declare.
11309 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11310 (for_each_inc_dec_find_inc_dec): New fn.
11311 (for_each_inc_dec_find_mem): New fn.
11312 (for_each_inc_dec): New fn.
11313 * dse.c (struct insn_size): Remove.
11314 (replace_inc_dec, replace_inc_dec_mem): Remove.
11315 (emit_inc_dec_insn_before): New fn.
11316 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11317 (canon_address): Pass mem modes to cselib_lookup.
11318 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11319 (cselib_lookup_from_insn): Likewise.
11320 (cselib_subst_to_values): Likewise.
11321 * cselib.c (find_slot_memmode): New var.
11322 (cselib_find_slot): New fn. Use it instead of
11323 htab_find_slot_with_hash everywhere.
11324 (entry_and_rtx_equal_p): Use find_slot_memmode.
11325 (autoinc_split): New fn.
11326 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11327 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11328 Deal with autoinc. Special-case recursion into MEMs.
11329 (cselib_hash_rtx): Likewise.
11330 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11331 address and MEM modes.
11332 (cselib_subst_to_values): Add memmode, pass it on.
11334 (cselib_lookup): Add memmode argument, pass it on.
11335 (cselib_lookup_from_insn): Add memmode.
11336 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11337 (struct cselib_record_autoinc_data): New.
11338 (cselib_record_autoinc_cb): New fn.
11339 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11340 mode to cselib_lookup. Reset autoinced REGs here instead of...
11341 (cselib_process_insn): ... here.
11342 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11344 (add_uses): Likewise, also to cselib_subst_to_values.
11345 (add_stores): Likewise.
11346 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11347 cselib_subst_to_values.
11348 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11349 * gcse.c (do_local_cprop): Adjusted.
11350 * postreload.c (reload_cse_simplify_set): Adjusted.
11351 (reload_cse_simplify_operands): Adjusted.
11352 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11354 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11356 PR tree-optimization/45122
11357 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11358 unsafe assumptions when there's more than one loop exit.
11360 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11363 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11364 Document using vector double with the load/store builtins, and
11365 that the load/store builtins always use Altivec instructions.
11367 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11368 to use altivec memory instructions, even on VSX.
11369 (vector_altivec_store_<mode>): Ditto.
11371 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11374 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11375 V2DF, V2DI support to load/store overloaded builtins.
11377 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11378 altivec load/store builtins for V2DF/V2DI types.
11380 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11381 set avoid indexed addresses on power6 if -maltivec.
11382 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11383 vector_altivec_load/vector_altivec_store builtins.
11384 (altivec_expand_st_builtin): Ditto.
11385 (altivec_expand_builtin): Add VSX memory builtins.
11386 (rs6000_init_builtins): Add V2DI types to internal types.
11387 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11388 load/store builtins.
11389 (rs6000_address_for_altivec): Insure memory address is appropriate
11392 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11393 vec_vsx_ld and vec_vsx_st.
11394 (vsx_store_<mode>): Ditto.
11396 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11397 variables to hold long long types for VSX vector memory builtins.
11398 (RS6000_BTI_unsigned_long_long): Ditto.
11399 (long_long_integer_type_internal_node): Ditti.
11400 (long_long_unsigned_type_internal_node): Ditti.
11402 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11403 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11404 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11406 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11408 (vec_vsx_st): Ditto.
11410 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11412 * config/pa/pa-hpux10.opt: New.
11413 * config/hpux11.opt (pthread): New Driver option.
11414 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11415 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11417 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11419 * config/ia64/vms.opt: New.
11420 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11422 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11425 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11426 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11427 generator functions.
11428 (vsx_floatuns<VSi><mode>2): Ditto.
11429 (vsx_fix_trunc<mode><VSi>2): Ditto.
11430 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11432 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11434 * config/i386/djgpp.opt (posix): New Driver option.
11436 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11438 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11439 Move to the unsupported targets list.
11441 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11443 PR rtl-optimization/47525
11444 * df-scan.c: Update copyright years.
11445 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11446 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11448 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11450 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11451 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11452 (ASM_OUTPUT_ASCII): Remove.
11453 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11455 2011-02-02 Jeff Law <law@redhat.com>
11457 PR middle-end/47543
11458 * reload.c (find_reloads_address): Handle reg+d address where both
11459 components are invalid by reloading the entire address.
11461 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11462 Richard Guenther <rguenther@suse.de>
11464 PR tree-optimization/40979
11466 * passes.c (init_optimization_passes): After LIM call copy_prop
11467 and DCE to clean up.
11468 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11470 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11472 PR tree-optimization/47576
11473 PR tree-optimization/47555
11474 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11475 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11476 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11477 * tree-scalar-evolution.c (follow_ssa_edge): Use
11478 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11480 2011-02-02 Richard Guenther <rguenther@suse.de>
11482 PR tree-optimization/47566
11483 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11485 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11489 * tree-inline.c (declare_return_variable): Remove unused caller
11494 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11495 * cfgexpand.c (account_used_vars_for_block): Use them.
11496 * tree-nrv.c (tree_nrv): Likewise.
11497 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11498 (dump_scope_block): Likewise.
11499 (remove_unused_locals): Likewise.
11503 * tree-inline.c (declare_return_variable): Add result decl to
11504 local decls only once.
11505 * gimple-low.c (record_vars_into): Mark newly-created variables
11508 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11514 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11516 (no_real_insns_p, schedule_block, set_priorities): Drop special
11517 treatment of boundary debug insns.
11518 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11519 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11520 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11521 (BOUNDARY_DEBUG_INSN_P): Likewise.
11522 (SCHEDULE_DEBUG_INSN_P): Likewise.
11523 * sched-rgn.c (init_ready_list): Drop special treatment of
11524 boundary debug insns.
11525 * final.c (rest_of_clean_state): Clear notes' BB.
11527 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11529 * config/openbsd.opt (assert=): New Driver option.
11531 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11533 * config/i386/nto.opt: New.
11534 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11536 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11538 * config/i386/netware.opt: New.
11539 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11541 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11543 * config/interix.opt (posix): New Driver option.
11545 2011-02-01 DJ Delorie <dj@redhat.com>
11547 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11549 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11552 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11554 PR tree-optimization/47561
11555 * toplev.c (process_options): Print the Graphite flags. Add
11556 flag_loop_flatten to the list of options requiring Graphite.
11558 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11560 * config/i386/cygming.opt (posix): New Driver option.
11562 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11564 * config/arm/vxworks.opt: New.
11565 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11567 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11569 * config/alpha/elf.opt: New.
11570 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11571 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11573 2011-02-01 Richard Guenther <rguenther@suse.de>
11575 PR tree-optimization/47559
11576 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11577 store-motion on references that can throw.
11579 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11581 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11582 * tree-pass.h (TDF_CSELIB): New macro.
11583 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11584 cselib_lookup): Check for it rather than for TDF_DETAILS.
11586 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11589 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11590 is HOST_BIT_BUCKET.
11592 * opts.c (finish_options): Don't add x_aux_base_name if it is
11595 2011-02-01 Richard Guenther <rguenther@suse.de>
11597 PR tree-optimization/47555
11599 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11601 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11603 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11606 * config/lm32/t-lm32: Add multilib for all CPU options.
11608 2011-02-01 Richard Guenther <rguenther@suse.de>
11610 PR tree-optimization/47541
11611 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11612 sure to have a field at offset zero.
11614 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11616 * config/arc/arc.opt (EB, EL): New Driver options.
11618 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11620 * config/alpha/osf5.opt: New.
11621 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11623 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11625 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11627 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11629 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11630 -floop-interchange.
11631 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11632 is an alias of -floop-interchange and that it requires the
11633 Graphite infrastructure.
11634 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11635 flag_loop_interchange based on the value of flag_tree_loop_linear.
11637 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11638 Richard Guenther <rguenther@suse.de>
11640 PR tree-optimization/47538
11641 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11642 type instead of r1type, except for comparisons. For right
11643 shifts and comparisons punt if there are mismatches in
11644 sizetype vs. non-sizetype types.
11646 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11648 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11651 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11653 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11655 * configure: Regenerate.
11657 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11659 * configure.ac (gcc_cv_ld_static_option): Define.
11660 (gcc_cv_ld_dynamic_option): Define.
11661 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11663 (HAVE_LD_STATIC_DYNAMIC): Update message.
11664 (LD_STATIC_OPTION): Define.
11665 (LD_DYNAMIC_OPTION): Define.
11666 * configure: Regenerate.
11667 * config.in: Regenerate.
11668 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11669 HAVE_LD_STATIC_DYNAMIC]: Use them.
11671 2011-01-31 Nick Clifton <nickc@redhat.com>
11673 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11674 registers inside interrupt handlers if the handler is not a leaf
11677 2011-01-31 Nick Clifton <nickc@redhat.com>
11679 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11680 reg_renumber returning an INVALID_REGNUM.
11682 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11685 * doc/install.texi: Document host options discarded when cross
11686 configuring target libraries.
11688 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11691 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11694 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11696 (no_real_insns_p, schedule_block, set_priorities): Drop special
11697 treatment of boundary debug insns.
11698 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11699 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11700 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11701 (BOUNDARY_DEBUG_INSN_P): Likewise.
11702 (SCHEDULE_DEBUG_INSN_P): Likewise.
11703 * sched-rgn.c (init_ready_list): Drop special treatment of
11704 boundary debug insns.
11705 * final.c (rest_of_clean-state): Clear notes' BB.
11707 2011-01-31 Alan Modra <amodra@gmail.com>
11709 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11710 toc relative expressions as we do in print_operand_address.
11712 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11714 * doc/extend.texi: Follow spelling conventions.
11715 * doc/invoke.texi: Fix a typo.
11717 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11719 * config/hpux11.opt: New.
11720 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11721 ia64*-*-hpux*): Use hpux11.opt.
11723 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11725 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11728 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11730 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11733 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11735 * doc/install.texi (Binaries): Remove outdated reference for
11736 Motorola 68HC11/68HC12 downloads.
11738 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11740 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11743 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11746 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11749 2011-01-28 Ahmad Sharif <asharif@google.com>
11751 * value-prof.c (check_counter): Corrected error message.
11753 2011-01-29 Jie Zhang <jie@codesourcery.com>
11755 * config/arm/arm.c (arm_legitimize_reload_address): New.
11756 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11757 arm_legitimize_reload_address.
11758 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11760 2011-01-28 Ian Lance Taylor <iant@google.com>
11762 * godump.c (go_define): Ignore macros whose definitions include
11763 two adjacent operands.
11765 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11768 * varasm.c (force_const_mem): Store copy of x in desc->constant
11769 instead of x itself.
11770 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11771 itself into REG_EQUAL note.
11773 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11775 * config/freebsd.opt (posix, rdynamic): New Driver options.
11777 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11779 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11780 -Bstatic/-Bdynamic.
11781 * configure: Regenerate.
11783 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11785 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11786 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11788 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11790 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11791 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11792 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11793 (s390_preferred_reload_class): Make static. Change return and
11794 'rclass' argument type to reg_class_t.
11796 2011-01-27 Jan Hubicka <jh@suse.cz>
11798 PR middle-end/46949
11799 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11800 (process_function_and_variable_attributes): Check defined weakrefs.
11802 2011-01-27 Martin Jambor <mjambor@suse.cz>
11804 PR tree-optimization/47228
11805 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11806 build_ref_for_offset.
11808 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11810 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11812 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11814 PR rtl-optimization/46856
11815 * postreload.c (reload_combine_recognize_const_pattern): Do not
11816 separate cc0 setter and user on cc0 targets.
11818 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11821 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11822 passed a VOID_TYPE expression, immediately emit an error and
11823 return error_mark_node.
11825 2011-01-26 Jeff Law <law@redhat.com>
11827 PR rtl-optimization/47464
11828 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11829 rather than may_trap_p as needed.
11831 2011-01-26 DJ Delorie <dj@redhat.com>
11833 PR rtl-optimization/46878
11834 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11835 setter/user dependency as well.
11837 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11839 PR rtl-optimization/44469
11840 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11841 after removing trivially dead basic blocks.
11843 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11845 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11846 * config/frv/frv.h (LINK_SPEC): Likewise.
11847 * config/i386/netware.h (LINK_SPEC): Likewise.
11848 * config/m68k/linux.h (ASM_SPEC): Likewise.
11849 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11850 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11851 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11852 * config/sparc/linux.h (ASM_SPEC): Likewise.
11853 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11854 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11856 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11858 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11859 * config/frv/frv.h (ASM_SPEC): Likewise.
11860 * config/m68k/linux.h (ASM_SPEC): Likewise.
11861 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11862 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11863 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11864 * config/sparc/linux.h (ASM_SPEC): Likewise.
11865 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11866 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11868 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11870 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11871 * config/frv/frv.h (LINK_SPEC): Likewise.
11872 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11874 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11876 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11877 * config/frv/frv.h (ASM_SPEC): Likewise.
11878 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11879 * config/m68k/linux.h (ASM_SPEC): Likewise.
11880 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11881 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11882 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11883 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11884 * config/sparc/linux.h (ASM_SPEC): Likewise.
11885 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11886 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11887 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11889 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11892 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11894 (vec_extract_evenodd_help): Ditto.
11895 (vec_extract_evenv4hi): Ditto.
11896 (vec_extract_oddv4hi): Ditto.
11897 (vec_interleave_lowv2si): Ditto.
11898 (vec_interleave_highv2si): Ditto.
11899 (vec_extract_evenv2si): Ditto.
11900 (vec_extract_oddv2si: Ditto.
11901 (vec_pack_trunc_v2si): Ditto.
11903 2011-01-22 Jan Hubicka <jh@suse.cz>
11906 * cgraph.h (cgraph_local_info): New field can_change_signature.
11907 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11908 signature can change.
11909 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11911 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11912 (cgraph_function_versioning): We can not change signature of functions
11913 that don't allow that.
11914 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11915 (lto_input_node): Likewise.
11916 * ipa-inline.c (compute_inline_parameters): Compute
11917 local.can_change_signature.
11918 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11919 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11920 functions that can not change signature.
11921 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11922 init_cumulative_args): Do not use local calling conventions
11923 for functions that can not change signature.
11925 2011-01-22 Jan Hubicka <jh@suse.cz>
11927 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11929 2011-01-26 Richard Guenther <rguenther@suse.de>
11931 PR tree-optimization/47190
11932 * cgraphunit.c (process_common_attributes): New function.
11933 (process_function_and_variable_attributes): Use it.
11935 2011-01-26 Richard Guenther <rguenther@suse.de>
11938 * cgraphbuild.c (record_eh_tables): Record reference to personality
11941 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11944 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11945 non-debug insns from moving up.
11947 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11950 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11951 t-dlldir{,-x} fragment for build and add it to tmake_file.
11952 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11953 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11954 * config/i386/t-dlldir: New file.
11955 (SHLIB_DLLDIR): Define.
11956 * config/i386/t-dlldir-x: New file.
11957 (SHLIB_DLLDIR): Define.
11958 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11959 (SHLIB_INSTALL): Use it.
11961 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11964 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11965 lower bound of the allowed Thumb-2 coprocessor load/store
11966 index range to -256. Add explaining comment.
11968 2011-01-25 Ian Lance Taylor <iant@google.com>
11970 * godump.c (go_define): Improve lexing of macro expansion to only
11971 accept expressions which match Go spec.
11973 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11976 * tree.c (handle_dll_attribute): Handle it.
11977 * doc/extend.texi (@item dllexport): Mention it.
11978 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11980 2011-01-25 Ian Lance Taylor <iant@google.com>
11982 PR tree-optimization/26854
11983 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11984 (decl_jump_unsafe): Move higher in file, with no other change.
11985 (bind): Set has_jump_unsafe_decl if appropriate.
11986 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11987 (check_earlier_gotos): Likewise.
11988 (c_check_switch_jump_warnings): Likewise.
11990 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11992 * doc/invoke.texi (Warning Options): Add missing hyphen.
11993 (-fprofile-dir): Minor grammatical fixes.
11994 (-fbranch-probabilities): Likewise.
11996 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12000 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12002 (no_real_insns_p, schedule_block, set_priorities): Drop special
12003 treatment of boundary debug insns.
12004 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12005 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12006 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12007 (BOUNDARY_DEBUG_INSN_P): Likewise.
12008 (SCHEDULE_DEBUG_INSN_P): Likewise.
12009 * sched-rgn.c (init_ready_list): Drop special treatment of
12010 boundary debug insns.
12011 * final.c (rest_of_clean-state): Clear notes' BB.
12013 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12015 * Makefile.in (LAMBDA_H): Removed.
12016 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12017 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12018 lambda-trans.o, and tree-loop-linear.o.
12019 (lto-symtab.o): Remove dependence on LAMBDA_H.
12020 (tree-loop-linear.o): Remove rule.
12021 (lambda-mat.o): Same.
12022 (lambda-trans.o): Same.
12023 (lambda-code.o): Same.
12024 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12025 (tree-vect-slp.o): Same.
12026 * hwint.h (gcd): Moved here.
12027 (least_common_multiple): Same.
12028 * lambda-code.c: Removed.
12029 * lambda-mat.c: Removed.
12030 * lambda-trans.c: Removed.
12031 * lambda.h: Removed.
12032 * tree-loop-linear.c: Removed.
12033 * lto-symtab.c: Do not include lambda.h.
12034 * omega.c (gcd): Removed.
12035 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12036 * tree-data-ref.c (print_lambda_vector): Moved here.
12037 (lambda_vector_copy): Same.
12038 (lambda_matrix_copy): Same.
12039 (lambda_matrix_id): Same.
12040 (lambda_vector_first_nz): Same.
12041 (lambda_matrix_row_add): Same.
12042 (lambda_matrix_row_exchange): Same.
12043 (lambda_vector_mult_const): Same.
12044 (lambda_vector_negate): Same.
12045 (lambda_matrix_row_negate): Same.
12046 (lambda_vector_equal): Same.
12047 (lambda_matrix_right_hermite): Same.
12048 * tree-data-ref.h: Do not include lambda.h.
12049 (lambda_vector): Moved here.
12050 (lambda_matrix): Same.
12051 (dependence_level): Same.
12052 (lambda_transform_legal_p): Removed declaration.
12053 (lambda_collect_parameters): Same.
12054 (lambda_compute_access_matrices): Same.
12055 (lambda_vector_gcd): Same.
12056 (lambda_vector_new): Same.
12057 (lambda_vector_clear): Same.
12058 (lambda_vector_lexico_pos): Same.
12059 (lambda_vector_zerop): Same.
12060 (lambda_matrix_new): Same.
12061 * tree-flow.h (least_common_multiple): Removed declaration.
12062 * tree-parloops.c (lambda_trans_matrix): Moved here.
12063 (LTM_MATRIX): Same.
12064 (LTM_ROWSIZE): Same.
12065 (LTM_COLSIZE): Same.
12066 (LTM_DENOMINATOR): Same.
12067 (lambda_trans_matrix_new): Same.
12068 (lambda_matrix_vector_mult): Same.
12069 (lambda_transform_legal_p): Same.
12070 * tree-pass.h (pass_linear_transform): Removed declaration.
12071 * tree-ssa-loop.c (tree_linear_transform): Removed.
12072 (gate_tree_linear_transform): Removed.
12073 (pass_linear_transform): Removed.
12074 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12075 flag_loop_interchange.
12077 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12079 PR tree-optimization/47265
12080 PR tree-optimization/47443
12081 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12082 if name still has some uses.
12084 2011-01-25 Martin Jambor <mjambor@suse.cz>
12086 PR tree-optimization/47382
12087 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12088 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12090 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12092 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12093 sjlj_except_unwind_info.
12095 2011-01-25 Richard Guenther <rguenther@suse.de>
12097 PR tree-optimization/47426
12098 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12099 visible functions results escape.
12101 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12104 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12105 (arm_get_frame_offsets): Use it.
12107 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12108 Jakub Jelinek <jakub@redhat.com>
12110 PR tree-optimization/47271
12111 * tree-if-conv.c (bb_postdominates_preds): New.
12112 (if_convertible_bb_p): Call bb_postdominates_preds.
12113 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12114 (predicate_scalar_phi): Call bb_postdominates_preds.
12116 2011-01-25 Nick Clifton <nickc@redhat.com>
12118 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12119 * config/rx/rx.c (rx_function_value): Likewise.
12120 (rx_promote_function_mode): Likewise.
12121 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12122 in order to make it legitimate.
12123 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12124 make sure that the first operand is the same as the result register.
12125 (addsi3_unspec): Delete.
12126 (subdi3): Do not accept immediate operands.
12127 (subdi3_internal): Likewise.
12129 2011-01-25 Jeff Law <law@redhat.com>
12131 PR rtl-optimization/37273
12132 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12133 handle them like argument loads from stack slots. Do not double
12134 count memory for memory constants and argument loads from stack slots.
12136 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12138 PR tree-optimization/47427
12139 PR tree-optimization/47428
12140 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12141 coalesce if the new root var would be TREE_READONLY.
12143 2011-01-25 Richard Guenther <rguenther@suse.de>
12145 PR middle-end/47414
12146 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12147 correct type for TBAA.
12149 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12151 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12152 (close_phi_written_to_memory): Call for_each_index with
12153 dr_indices_valid_in_loop.
12155 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12157 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12158 when it is initialized.
12160 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12162 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12163 call to graphite_find_data_references_in_stmt.
12164 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12165 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12166 call to graphite_find_data_references_in_stmt.
12167 (analyze_drs_in_stmts): Same.
12168 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12169 in which the scalar analysis of indices is performed.
12170 (create_data_ref): Same. Update call to dr_analyze_indices.
12171 (find_data_references_in_stmt): Update call to create_data_ref.
12172 (graphite_find_data_references_in_stmt): Same.
12173 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12175 (create_data_ref): Same.
12176 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12177 call to create_data_ref.
12179 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12181 * graphite-sese-to-poly.c (build_poly_scop): Move
12182 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12184 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12186 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12187 VAR_DECL, PARM_DECL, and RESULT_DECL.
12189 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12191 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12192 in a reduction PBB.
12193 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12194 that have already been marked as PBB_IS_REDUCTION.
12196 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12198 * graphite-scop-detection.c (same_close_phi_node): New.
12199 (remove_duplicate_close_phi): New.
12200 (make_close_phi_nodes_unique): New.
12201 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12203 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12205 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12206 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12207 of both data references to be the same.
12209 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12211 * graphite-dependences.c (build_lexicographical_constraint): Remove
12212 the gdim parameter.
12213 (build_lexicographical_constraint): Adjust call to
12214 ppl_powerset_is_empty.
12215 (dependence_polyhedron): Same.
12216 (graphite_legal_transform_dr): Same.
12217 (graphite_carried_dependence_level_k): Same.
12218 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12220 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12222 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12224 * graphite-sese-to-poly.c
12225 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12226 (close_phi_written_to_memory): New.
12227 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12230 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12232 * doc/install.texi: Update the expected version number of PPL to 0.11.
12233 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12234 #if PPL_VERSION_MINOR < 11.
12236 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12238 * graphite-dependences.c: Include graphite-cloog-util.h.
12239 (new_poly_ddr): Inlined into dependence_polyhedron.
12240 (free_poly_ddr): Moved close by new_poly_ddr.
12241 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12242 Early return NULL when ppl_powerset_is_empty returns true.
12243 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12244 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12245 (graphite_legal_transform_dr): Call new_poly_ddr.
12246 (graphite_carried_dependence_level_k): Same.
12247 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12248 (dot_transformed_deps_stmt_1): Removed.
12249 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12250 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12251 (dot_deps_1): Call dot_deps_2.
12252 * Makefile.in (graphite-dependences.o): Add missing dependence on
12253 graphite-cloog-util.h.
12255 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12257 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12258 (build_lexicographical_constraint): Same.
12259 (dependence_polyhedron_1): Same.
12260 (graphite_legal_transform_dr): Same.
12261 (graphite_carried_dependence_level_k): Same.
12262 * graphite-ppl.c (ppl_powerset_is_empty): New.
12263 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12264 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12266 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12268 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12269 the "a followed by b" relation and document it.
12271 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12273 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12274 iteration when the bag of constraints is empty.
12276 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12278 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12280 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12282 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12283 nest and two loop depths as parameters.
12284 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12285 lst_perfect_nestify.
12287 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12289 * graphite-dependences.c (print_pddr): Call
12290 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12292 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12294 * graphite-ppl.c (debug_gmp_value): New.
12295 * graphite-ppl.h (debug_gmp_value): Declared.
12297 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12299 * doc/install.texi: Document availability of cloog-0.16.
12301 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12303 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12304 invalid postdominance info.
12306 2011-01-24 Jan Hubicka <jh@suse.cz>
12309 * doc/extend.texi (weak pragma): Drop claim that it must
12310 appear before definition.
12311 * varasm.c (merge_weak, declare_weak): Only sanity check
12312 that DECL is not output at a time it is declared weak.
12314 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12316 * machmode.def: Fixed comments.
12318 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12320 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12322 2011-01-24 Paul Koning <ni1d@arrl.net>
12324 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12327 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12330 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12331 (block_info): Add scanned and prev.
12332 (move_or_delete_vzeroupper_2): Return if the basic block
12333 has been scanned and the upper 128bit state is unchanged
12334 from the last scan.
12335 (move_or_delete_vzeroupper_1): Return true if the exit
12337 (move_or_delete_vzeroupper): Visit basic blocks using the
12338 work-list based algorithm based on vt_find_locations in
12341 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12343 2011-01-24 Nick Clifton <nickc@redhat.com>
12345 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12346 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12347 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12348 then define __v850e1__.
12349 * doc/invoke.texi: Document -mv850es.
12351 2011-01-24 Richard Henderson <rth@redhat.com>
12353 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12354 compound unordered comparisons.
12355 * config/rx/rx.c (rx_split_fp_compare): Remove.
12356 * config/rx/rx-protos.h: Update.
12357 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12358 (cbranchsf4): Don't call rx_split_fp_compare.
12359 (*cbranchsf4): Use rx_split_cbranch.
12360 (*cmpsf): Don't accept "i" constraint.
12361 (*conditional_branch): Only valid after reload.
12362 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12364 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12367 * config/rs6000/altivec.md (vector constant splitters): Add
12368 support for creating vector single precision constants if -mvsx is
12369 used and we would create the constant using Altivec primitives.
12371 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12372 Richard Sandiford <rdsandiford@googlemail.com>
12374 PR rtl-optimization/47166
12375 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12376 mechanism for PRE_MODIFY and POST_MODIFY.
12377 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12380 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12382 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12384 2011-01-22 Jan Hubicka <jh@suse.cz>
12387 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12389 2011-01-22 Jan Hubicka <jh@suse.cz>
12391 PR tree-optimization/43884
12393 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12394 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12396 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12398 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12399 * config/s390/s390.c (s390_register_move_cost,
12400 s390_memory_move_cost): New.
12401 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12403 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12405 PR middle-end/47401
12406 * except.c (sjlj_assign_call_site_values): Move setting the
12407 crtl->uses_eh_lsda flag to ...
12408 (sjlj_mark_call_sites): ... here.
12409 (sjlj_emit_function_enter): Support NULL dispatch label.
12410 (sjlj_build_landing_pads): In a function with no landing pads
12411 that still has must-not-throw regions, generate code to register
12412 a personality function with empty LSDA.
12414 2011-01-21 Richard Henderson <rth@redhat.com>
12416 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12418 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12420 * compare-elim.c: New file.
12421 * Makefile.in (OBJS-common): Add it.
12422 (compare-elim.o): New.
12423 * common.opt (fcompare-elim): New.
12424 * opts.c (default_options_table): Add OPT_fcompare_elim.
12425 * tree-pass.h (pass_compare_elim_after_reload): New.
12426 * passes.c (init_optimization_passes): Add it.
12427 * recog.h: Protect against re-inclusion.
12428 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12429 * doc/invoke.texi (-fcompare-elim): Document it.
12430 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12431 * doc/tm.texi: Rebuild.
12433 2011-01-22 Nick Clifton <nickc@redhat.com>
12435 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12436 rx_split_fp_compare.
12438 2011-01-22 Nick Clifton <nickc@redhat.com>
12440 * config/rx/rx.md (UNSPEC_CONST): New.
12441 (deallocate_and_return): Wrap the amount popped off the stack in
12442 an UNSPEC_CONST in order to stop it being rejected by
12443 -mmax-constant-size.
12444 (pop_and_return): Add a "(return)" rtx.
12445 (call): Drop the immediate operand.
12446 (call_internal): Likewise.
12447 (call_value): Likewise.
12448 (call_value_internal): Likewise.
12449 (sibcall_internal): Likewise.
12450 (sibcall_value_internal): Likewise.
12451 (sibcall): Likewise. Generate an explicit call using
12453 (sibcall_value): Likewise.
12454 (mov<>): FAIL if a constant operand is not legitimate.
12455 (addsi3_unpsec): New pattern.
12457 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12458 (ok_for_max_constant): New function.
12459 (gen_safe_add): New function.
12460 (rx_expand_prologue): Use gen_safe_add.
12461 (rx_expand_epilogue): Likewise.
12462 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12465 2011-01-21 Jeff Law <law@redhat.com>
12467 PR tree-optimization/47053
12468 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12469 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12470 statements are deleted.
12471 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12472 is nonempty, then purge dead edges and cleanup the CFG.
12474 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12477 Temporarily revert:
12478 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12480 * tree-dfa.c (create_var_ann): Mark variable as used.
12482 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12484 PR middle-end/45566
12485 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12486 notes from other section in hot/cold partitioning even if
12487 last_action is -3. Increment call_site_base.
12489 PR rtl-optimization/47366
12490 * fwprop.c (forward_propagate_into): Return bool. If
12491 any changes are made, -fnon-call-exceptions is used and
12492 REG_EH_REGION note is present, call purge_dead_edges
12493 and return true if it purged anything.
12494 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12495 any EH edges were purged.
12497 2011-01-21 Jeff Law <law@redhat.com>
12499 PR rtl-optimization/41619
12500 * caller-save.c (setup_save_areas): Break out code to determine
12501 which hard regs are live across calls by examining the reload chains
12502 so that it is always used.
12503 Eliminate code which checked REG_N_CALLS_CROSSED.
12505 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12507 PR tree-optimization/47355
12508 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12509 NOP has non-debug uses beyond PHIs in new_bb.
12511 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12514 * cfgexpand.c (account_used_vars_for_block): Only account vars
12515 that are annotated as used.
12516 (estimated_stack_frame_size): Don't set TREE_USED.
12517 * tree-dfa.c (create_var_ann): Mark variable as used.
12519 2011-01-21 Richard Guenther <rguenther@suse.de>
12521 PR middle-end/47395
12522 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12524 2011-01-21 Richard Guenther <rguenther@suse.de>
12526 PR tree-optimization/47365
12527 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12528 (vn_reference_lookup_pieces): Adjust.
12529 (vn_reference_lookup): Likewise.
12530 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12531 (vn_reference_lookup_3): Only look through kills if in
12532 VN_WALKREWRITE mode.
12533 (vn_reference_lookup_pieces): Adjust.
12534 (vn_reference_lookup): Likewise.
12535 (visit_reference_op_load): Likewise.
12536 (visit_reference_op_store): Likewise.
12537 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12538 (compute_avail): Likewise.
12539 (eliminate): Likewise.
12541 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12543 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12544 DECL_IGNORED_P non-reg vars if they are used.
12546 PR tree-optimization/47391
12547 * varpool.c (const_value_known_p): Return false if
12550 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12553 * config/i386/i386.c (ix86_local_alignment): Handle
12554 case for va_list_type_node is nil.
12555 (ix86_canonical_va_list_type): Likewise.
12557 2011-01-21 Alan Modra <amodra@gmail.com>
12559 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12560 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12562 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12564 * config/arm/arm.md (define_attr type): Rename f_load
12565 and f_store to f_fpa_load and f_fpa_store. Update.
12566 (write_conflict): Deal with rename fallout.
12567 (*push_fp_multi): Likewise.
12568 * config/arm/fpa.md (f_load): Use f_fpa_load.
12569 (f_store): Use f_fpa_store.
12570 (*movsf_fpa): Likewise.
12571 (*movdf_fpa): Likewise.
12572 (*movxf_fpa): Likewise.
12573 (*thumb2_movsf_fpa): Likewise.
12574 (*thumb2_movdf_fpa): Likewise.
12575 (*thumb2_movxf_fpa): Likewise.
12576 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12577 f_loadd and f_stored.
12578 (*thumb2_movdi_vfp): Likewise.
12579 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12580 (*thumb2_movsi_vfp): Likewise.
12581 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12582 Use f_loads instead of f_load.
12583 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12585 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12587 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12588 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12589 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12590 (xtensa_mode_dependent_address_p): New function.
12591 (constantpool_address_p): Make static. Change return type to bool.
12592 Change argument type to const_rtx. Use CONST_INT_P predicate.
12594 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12597 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12599 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12602 * cfgexpand.c (expand_debug_expr): Instead of generating
12603 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12606 2011-01-20 Richard Guenther <rguenther@suse.de>
12608 PR middle-end/47370
12609 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12610 the pointer operand of MEM_REFs.
12612 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12614 PR tree-optimization/46130
12615 * ipa-split.c (consider_split): If return_bb contains non-virtual
12616 PHIs other than for retval or if split_function would not adjust it,
12619 2011-01-20 Richard Guenther <rguenther@suse.de>
12621 PR tree-optimization/47167
12622 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12623 Revert previous change, only avoid enumeral type changes.
12625 2011-01-19 Mike Stump <mikestump@comcast.net>
12627 * doc/tm.texi.in (BRANCH_COST): Englishify.
12628 * doc/tm.texi (BRANCH_COST): Likewise.
12630 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12633 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12634 (gen_scheduled_generic_parms_dies): New functions.
12635 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12636 generation for the end of CU compilation.
12637 (dwarf2out_finish): Generate template parameters DIEs here.
12639 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12642 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12643 debug bind stmt on merge edges.
12645 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12649 * function.c (instantiate_expr): Instantiate incoming rtl of
12650 implicit arguments, and recurse on VALUE_EXPRs.
12651 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12652 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12654 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12656 * c-parser.c (c_parser_for_statement): Initialize
12657 collection_expression.
12659 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12661 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12663 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12665 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12666 (LINK_SHLIB_SPEC): Don't use %(link_path).
12667 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12669 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12671 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12672 (NO_SHARED_LIB_SUPPORT): Remove.
12673 (LINK_SHLIB_SPEC): Remove one conditional definition.
12675 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12677 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12679 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12680 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12681 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12682 %{call_shared} and conditionals on these options not being passed.
12683 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12686 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12688 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12691 * ipa-split.c: Spelling fixes.
12693 2011-01-19 Richard Henderson <rth@redhat.com>
12695 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12696 (*mulsi3): Likewise.
12698 * longlong.h [__mn10300__] (count_leading_zeros): New.
12699 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12700 [__mn10300__] (add_ssaaaa, subddmmss): New.
12701 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12702 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12704 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12706 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12708 2011-01-19 Richard Henderson <rth@redhat.com>
12710 * config/mn10300/mn10300.md (addsi3_flags): New.
12711 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12712 (subsi3_flags, subc_internal, subdi3): New.
12713 (subdi3_internal, *subdi3_degenerate): New.
12714 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12716 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12717 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12718 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12719 * config/mn10300/mn10300-protos.h: Update.
12720 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12721 (return_ret): Likewise. Rename from return_internal_regs.
12722 (return_internal): Remove.
12724 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12725 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12726 (mn10300_legitimate_constant_p): Likewise.
12727 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12728 (mn10300_frame_size): New.
12729 (mn10300_expand_prologue): Use it.
12730 (mn10300_expand_epilogue): Likewise.
12731 (mn10300_initial_offset): Likewise.
12732 * config/mn10300/mn10300-protos.h: Update.
12733 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12734 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12735 (prologue, epilogue, return_internal): Tidy output code.
12736 (mn10300_store_multiple_operation, return): Likewise.
12737 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12738 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12739 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12740 (load_pic, am33_load_pic): New.
12741 (mn10300_load_pic0, mn10300_load_pic1): New.
12743 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12744 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12745 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12746 (cc_flags_for_mode, cc_flags_for_code): New.
12747 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12748 overflow flag is not valid. Validate that the flags we need
12749 for the comparison are valid.
12750 (mn10300_output_cmp): Remove.
12751 (mn10300_output_add): New.
12752 (mn10300_select_cc_mode): Use cc_flags_for_code.
12753 (mn10300_split_cbranch): New.
12754 (mn10300_match_ccmode): New.
12755 (mn10300_split_and_operand_count): New.
12756 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12758 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12759 (addsi3): ... here. Use mn10300_output_add.
12760 (*addsi3_flags): New.
12761 (*am33_subsi3, *mn10300_subsi3): Merge...
12762 (subsi3): ... here. Use attribute isa.
12763 (*subsi3_flags): New.
12764 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12766 (*am33_andsi3, *mn10300_andsi3): Merge...
12767 (andsi3): ... here.
12768 (*andsi3_flags): New.
12769 (andsi3 splitters): New.
12770 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12771 (iorsi3): ... here.
12772 (*iorsi3_flags): New.
12773 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12774 (xorsi3): ... here.
12775 (*xorsi3_flags): New.
12776 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12777 (one_cmplsi2): ... here.
12778 (*one_cmplsi2_flags): New.
12779 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12780 instead of "dax" in constraints. Use mn10300_split_cbranch.
12781 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12782 use matching constraints to eliminate a self-comparison.
12783 (*integer_conditional_branch): Rename from integer_conditional_branch.
12784 Use int_mode_flags to match CC_REG.
12785 (*cbranchsi4_btst, *btstsi): New.
12786 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12787 mn10300_split_cbranch.
12788 (*am33_cmpsf): Rename from am33_cmpsf.
12789 (*float_conditional_branch): Rename from float_conditional_branch.
12790 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12791 (zero_extendqisi2): ... here.
12792 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12793 (zero_extendhisi2): ... here.
12794 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12795 (extendqisi2): ... here.
12796 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12797 (extendhisi2): ... here.
12798 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12799 (ashlsi3): ... here.
12800 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12801 (lshrsi3): ... here.
12802 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12803 (ashrsi3): ... here.
12804 (consecutive add peephole): Remove.
12805 * config/mn10300/predicates.md (label_ref_operand): New.
12806 (int_mode_flags): New.
12807 (CCZN_comparison_operator): New.
12809 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12810 (throughput_42_latency_43): New reservation.
12811 (mulsidi3, umulsidi3): New expanders.
12812 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12813 the MDR register to allocation; separately allocate the low and
12814 high parts of the DImode result.
12815 (umulsidi3_internal): Similarly.
12816 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12817 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12818 (udivsi3, umodsi3): Remove.
12819 (udivmodsi4, divmodsi4): New expanders.
12820 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12821 (*divmodsi4): Simiarly.
12822 (ext_internal): New.
12824 * config/mn10300/constraints.md ("z"): New constraint.
12825 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12826 (FIXED_REGISTERS): Don't fix MDR.
12827 (CALL_USED_REGSITERS): Reformat nicely.
12828 (REG_ALLOC_ORDER): Add MDR.
12829 (enum regclass): Add MDR_REGS.
12830 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12831 (IRA_COVER_CLASSES): Add MDR_REGS.
12832 (REGNO_REG_CLASS): Handle MDR_REG.
12833 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12834 (mn10300_register_move_cost): Likewise.
12835 * config/mn10300/mn10300.md (MDR_REG): New.
12836 (*movsi_internal): Handle moves to/from MDR_REGS.
12838 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12840 (mn10300_secondary_reload): Tidy combination reload classes.
12841 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12842 addresses for AM33. Allow symbolic offsets for reg+imm.
12843 (mn10300_regno_in_class_p): New.
12844 (mn10300_legitimize_reload_address): New.
12845 * config/mn10300/mn10300.h (enum reg_class): Remove
12846 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12847 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12848 SP_OR_GENERAL_REGS.
12849 (REG_CLASS_NAMES): Update to match.
12850 (REG_CLASS_CONTENTS): Likewise.
12851 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12852 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12853 (REGNO_IN_RANGE_P): Remove.
12854 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12855 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12856 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12857 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12858 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12859 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12860 (REGNO_GENERAL_P): New.
12861 (HAVE_POST_MODIFY_DISP): New.
12862 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12863 (LEGITIMIZE_RELOAD_ADDRESS): New.
12864 * config/mn10300/mn10300-protos.h: Update.
12866 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12867 DATA_REGS for AM33 stack-pointer destination.
12868 (mn10300_preferred_output_reload_class): Likewise.
12869 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12870 into a form appropriate for ...
12871 (TARGET_SECONDARY_RELOAD): New.
12872 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12873 * config/mn10300/mn10300-protos.h: Update.
12874 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12875 reload_insi; use the "A" constraint for the scratch; handle AM33
12876 moves of sp to non-address registers.
12878 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12879 (*movqi_internal): ... here.
12880 (*am33_movhi, *mn10300_movhi): Merge into...
12881 (*movhi_internal): ... here.
12882 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12883 as the source/destination of moves from/to SP.
12884 (movsf): Only allow for AM33-2.
12885 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12886 any integer constant constraint. Only allow for AM33-2. Tidy
12887 all of the alternative outputs.
12888 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12889 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12891 (udivsi3, umodsi3): New patterns for MN103 only.
12893 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12895 * doc/tm.texi.in: Spell out that a lack of register class unions
12897 * doc/tm.texi: Regenerate.
12899 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12901 PR rtl-optimization/47337
12902 * dce.c (check_argument_store): New function.
12903 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12905 PR tree-optimization/47290
12906 * tree-eh.c (infinite_empty_loop_p): New function.
12907 (cleanup_empty_eh): Use it.
12909 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12912 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12913 (a64_expand_widen_sum): Ditto.
12914 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12915 (vec_extract_evenodd_help): Ditto.
12916 (vec_extract_evenv4hi): Ditto.
12917 (vec_extract_oddv4hi): Ditto.
12918 (vec_extract_evenv2si): Ditto.
12919 (vec_extract_oddv2si): Ditto.
12920 (vec_extract_evenv2sf): Ditto.
12921 (vec_extract_oddv2sf): Ditto.
12922 (vec_pack_trunc_v4hi: Ditto.
12923 (vec_pack_trunc_v2si): Ditto.
12924 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12925 (vec_interleave_highv8qi): Ditto.
12927 (vec_extract_oddv8qi): Ditto.
12928 (vec_interleave_lowv4hi): Ditto.
12929 (vec_interleave_highv4hi): Ditto.
12930 (vec_interleave_lowv2si): Ditto.
12931 (vec_interleave_highv2si): Ditto.
12933 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12935 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12936 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12937 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12938 (pa_c_mode_for_suffix): New.
12939 (TARGET_EXPAND_BUILTIN): Define.
12940 (TARGET_C_MODE_FOR_SUFFIX): Define.
12941 (pa_builtins): Define.
12942 (pa_init_builtins): Register __float128 type and init new support
12944 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12945 * config/pa/quadlib.c (_U_Qfcopysign): New.
12947 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12949 PR middle-end/46894
12950 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12951 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12954 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12956 PR tree-optimization/47179
12957 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12958 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12960 2011-01-18 Richard Guenther <rguenther@suse.de>
12962 PR rtl-optimization/47216
12963 * emit-rtl.c: Include tree-flow.h.
12964 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12965 of replicating it with different semantics.
12966 * Makefile.in (emit-rtl.o): Adjust.
12968 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12970 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12971 (cortex_a9_dp): Handle neon types correctly.
12973 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12975 PR rtl-optimization/47299
12976 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12977 subtarget. Use normal multiplication if both operands are constants.
12978 * expmed.c (expand_widening_mult): Don't try to optimize constant
12979 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12982 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12984 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12985 spacing after 'e.g.', typos, comma, hyphenation.
12987 2011-01-17 Richard Henderson <rth@redhat.com>
12989 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12990 (rx_restricted_mem_operand): New.
12991 (rx_shift_operand): Use register_operand.
12992 (rx_source_operand, rx_compare_operand): Likewise.
12993 * config/rx/rx.md (addsi3_flags): New expander.
12994 (adddi3): Rewrite as expander.
12995 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12996 (subsi3_flags): New expander.
12997 (subdi3): Rewrite as expander.
12998 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13000 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13001 (rx_init_builtins): Remove sat builtin.
13002 (rx_expand_builtin): Likewise.
13003 * config/rx/rx.md (ssaddsi3): New.
13004 (*sat): Rename from sat. Represent the CC_REG input.
13006 * config/rx/predicates.md (rshift_operator): New.
13007 * config/rx/rx.c (rx_expand_insv): Remove.
13008 * config/rx/rx-protos.h: Update.
13009 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13010 operand to the canonical position.
13011 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13012 (*bitclr, *bitclr_in_memory): Similarly.
13013 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13014 (insv): Retain the zero_extract in the expansion.
13016 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13017 (bswaphi2, bitinvert, revw): Likewise.
13019 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13020 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13021 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13022 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13023 (bitset, bitset_in_memory): Likewise.
13024 (bitinvert, bitinvert_in_memory): Likewise.
13025 (bitclr, bitclr_in_memory): Likewise.
13026 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13027 (rx_strend, rx_cmpstrn): Likewise.
13028 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13029 (bitop peep2 patterns): Remove.
13031 * config/rx/rx.c (rx_match_ccmode): New.
13032 * config/rx/rx-protos.h: Update.
13033 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13034 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13035 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13036 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13037 (fix_truncsfsi2, floatsisf2): Likewise.
13038 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13039 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13040 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13041 (*subsi3_flags, *xorsi3_flags): New.
13043 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13045 * config/rx/rx.c (rx_print_operand): Remove workaround for
13046 unsplit comparison operations.
13048 * config/rx/rx.md (movsicc): Split after reload.
13049 (*movsicc): Merge *movsieq and *movsine via match_operator.
13050 (*stcc): New pattern.
13052 * config/rx/rx.c (rx_float_compare_mode): Remove.
13053 * config/rx/rx.h (rx_float_compare_mode): Remove.
13054 * config/rx/rx.md (cstoresi4): Split after reload.
13055 (*sccc): New pattern.
13057 * config/rx/predicates.md (label_ref_operand): New.
13058 (rx_z_comparison_operator): New.
13059 (rx_zs_comparison_operator): New.
13060 (rx_fp_comparison_operator): New.
13061 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13062 Validate that the flags are set properly for the comparison.
13063 (rx_gen_cond_branch_template): Remove.
13064 (rx_cc_modes_compatible): Remove.
13065 (mode_from_flags): New.
13066 (flags_from_code): Rename from flags_needed_for_conditional.
13067 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13068 (rx_select_cc_mode): Likewise.
13069 (rx_split_fp_compare): New.
13070 (rx_split_cbranch): New.
13071 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13072 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13073 (*cbranchsf4): Similarly.
13074 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13075 match_operator and rx_split_cbranch.
13076 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13077 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13078 (*cmpsi): Rename from cmpsi.
13079 (*tstsi): Rename from tstsi.
13080 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13081 (*conditional_branch): Rename from conditional_branch.
13082 (*reveresed_conditional_branch): Remove.
13083 (b<code>): Remove expander.
13084 * config/rx/rx-protos.h: Update.
13086 * config/rx/rx.c (rx_compare_redundant): Remove.
13087 * config/rx/rx.md (cmpsi): Don't use it.
13088 * config/rx/rx-protos.h: Update.
13090 * config/rx/rx-modes.def (CC_F): New mode.
13091 * config/rx/rx.c (rx_select_cc_mode): New.
13092 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13093 * config/rx/rx-protos.h: Update.
13095 2011-01-17 Richard Henderson <rth@redhat.com>
13097 * except.c (dump_eh_tree): Fix stray ; after for statement.
13099 2011-01-17 Richard Guenther <rguenther@suse.de>
13101 PR tree-optimization/47313
13102 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13103 handling before copying the body. Properly deal with
13104 by-reference result in SSA form.
13106 2011-01-17 Ian Lance Taylor <iant@google.com>
13109 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13110 (struct_value_alias_set): Don't define.
13111 (sparc_option_override): Don't set sparc_sr_alias_set and
13112 struct_value_alias_set.
13113 (save_or_restore_regs): Use gen_frame_mem rather than calling
13115 (sparc_struct_value_rtx): Likewise.
13117 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13120 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13121 (_mm_maskstore_pd): Likewise.
13122 (_mm_maskload_ps): Likewise.
13123 (_mm_maskstore_ps): Likewise.
13124 (_mm256_maskload_pd): Change mask to __m256i.
13125 (_mm256_maskstore_pd): Likewise.
13126 (_mm256_maskload_ps): Likewise.
13127 (_mm256_maskstore_ps): Likewise.
13129 * config/i386/i386-builtin-types.def: Updated.
13130 (ix86_expand_special_args_builtin): Likewise.
13132 * config/i386/i386.c (bdesc_special_args): Update
13133 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13134 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13135 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13136 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13138 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13139 Use <avxpermvecmode> on mask register.
13140 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13142 2011-01-17 Olivier Hainque <hainque@adacore.com>
13143 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13144 Eric Botcazou <ebotcazou@adacore.com>
13147 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13148 if <= USHRT_MAX in 32-bit mode.
13150 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13152 * doc/install.texi (Configuration, Specific): Wrap long
13153 lines in examples. Allow line wrapping in long options
13154 and URLs where beneficial for PDF output.
13156 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13158 * config/mips/mips.c (mips_classify_symbol): Don't return
13159 SYMBOL_PC_RELATIVE for nonlocal labels.
13161 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13163 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13165 2011-01-15 Jan Hubicka <jh@suse.cz>
13167 PR tree-optimization/47276
13168 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13169 declarations as needed.
13171 2011-01-15 Martin Jambor <mjambor@suse.cz>
13173 * common.opt (fdevirtualize): New flag.
13174 * doc/invoke.texi (Option Summary): Document it.
13175 * opts.c (default_options_table): Add devirtualize flag.
13176 * ipa-prop.c (detect_type_change): Return immediately if
13177 devirtualize flag is not set.
13178 (detect_type_change_ssa): Likewise.
13179 (compute_known_type_jump_func): Likewise.
13180 (ipa_analyze_virtual_call_uses): Likewise.
13182 2011-01-14 Martin Jambor <mjambor@suse.cz>
13184 PR tree-optimization/45934
13185 PR tree-optimization/46302
13186 * ipa-prop.c (type_change_info): New type.
13187 (stmt_may_be_vtbl_ptr_store): New function.
13188 (check_stmt_for_type_change): Likewise.
13189 (detect_type_change): Likewise.
13190 (detect_type_change_ssa): Likewise.
13191 (compute_complex_assign_jump_func): Check for dynamic type change.
13192 (compute_complex_ancestor_jump_func): Likewise.
13193 (compute_known_type_jump_func): Likewise.
13194 (compute_scalar_jump_functions): Likewise.
13195 (ipa_analyze_virtual_call_uses): Likewise.
13196 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13198 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13200 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13201 * config/i386/i386.opt (msse5): New Alias.
13203 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13205 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13206 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13207 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13208 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13210 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13212 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13214 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13215 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13216 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13217 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13219 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13221 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13223 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13225 2011-01-14 Mike Stump <mikestump@comcast.net>
13227 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13228 * config/fr30/fr30.md: Likweise
13229 (movsi_push): Likewise.
13230 (movsi_pop): Likewise.
13231 (enter_func): Likewise.
13232 * config/moxie/moxie.md (movsi_push): Likewise.
13233 (movsi_pop): Likewise.
13235 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13237 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13238 %{no_archive} %{exact_version}.
13239 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13240 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13241 %{no_archive} %{exact_version}.
13242 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13243 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13244 * config/mips/vxworks.h: Likewise.
13246 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13248 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13250 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13252 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13253 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13255 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13257 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13260 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13262 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13264 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13265 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13267 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13268 Don't handle -shlib.
13270 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13272 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13273 (CC1_SPEC): Don't handle -profile.
13275 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13277 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13278 * config/mips/mips.h (CC1_SPEC): Likewise.
13280 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13282 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13283 * config/mips/mips.h (CC1_SPEC): Likewise.
13285 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13287 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13288 * config/m32r/linux.h (LINK_SPEC): Likewise.
13289 * config/mips/linux.h (LINK_SPEC): Likewise.
13290 * config/mips/linux64.h (LINK_SPEC): Likewise.
13291 * config/sparc/linux.h (LINK_SPEC): Likewise.
13292 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13293 LINK_SPEC): Likewise.
13294 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13296 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13298 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13300 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13302 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13304 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13305 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13307 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13309 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13311 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13313 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13314 supports -Bstatic/-Bdynamic.
13315 * configure: Regenerate.
13317 2011-01-14 Jan Hubicka <jh@suse.cz>
13318 Jack Howarth <howarth@bromo.med.uc.edu>
13321 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13322 when checking debug_info_level. Test write_symbols instead of
13323 debug_hooks->var_location when setting flag_var_tracking_uninit.
13325 2011-01-14 Richard Guenther <rguenther@suse.de>
13327 PR tree-optimization/47179
13328 * target.def (ref_may_alias_errno): New target hook.
13329 * targhooks.h (default_ref_may_alias_errno): Declare.
13330 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13331 (default_ref_may_alias_errno): New function.
13332 * target.h (struct ao_ref_s): Declare.
13333 * tree-ssa-alias.c: Include target.h.
13334 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13335 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13336 (targhooks.o): Likewise.
13337 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13338 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13340 2011-01-14 Richard Guenther <rguenther@suse.de>
13342 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13344 2011-01-14 Richard Guenther <rguenther@suse.de>
13346 PR tree-optimization/47280
13347 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13348 return CFG changes.
13349 (tree_ssa_forward_propagate_single_use_vars): Deal with
13350 CFG changes from associate_plusminus.
13352 2011-01-14 Richard Guenther <rguenther@suse.de>
13354 PR middle-end/47281
13356 2011-01-11 Richard Guenther <rguenther@suse.de>
13358 PR tree-optimization/46076
13359 * tree-ssa.c (useless_type_conversion_p): Conversions from
13360 unprototyped to empty argument list function types are useless.
13362 2011-01-14 Richard Guenther <rguenther@suse.de>
13364 PR tree-optimization/47286
13365 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13367 2011-01-14 Martin Jambor <mjambor@suse.cz>
13369 PR middle-end/46823
13370 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13372 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13374 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13375 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13376 * config/xtensa/xtensa.c (xtensa_libcall_value,
13377 xtensa_function_value_regno_p): New functions.
13378 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13380 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13383 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13385 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13386 New function prototype.
13387 * config/i386/winnt.c (i386_pe_assemble_visibility):
13388 Warn only if attribute was specified by user.
13390 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13393 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13395 (floatunsdidf2_fcfidu): Ditto.
13397 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13399 * config/s390/s390.c (print_operand_address): Replace 'error' with
13400 'output_operand_lossage'.
13401 (print_operand): Likewise.
13403 2011-01-13 Jeff Law <law@redhat.com>
13405 PR rtl-optimization/39077
13406 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13407 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13408 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13409 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13410 * gcse.c (prune_insertions_deletions): New function.
13411 (compute_pre_data): Use it.
13413 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13416 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13418 (prune_unused_types_mark): Use it.
13420 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13422 PR rtl-optimization/45352
13423 * sel-sched.c: Update copyright years.
13424 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13425 in the advancing loop when we have issued issue_rate insns.
13427 2011-01-12 Richard Henderson <rth@redhat.com>
13429 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13430 (TARGET_MD_ASM_CLOBBERS): New.
13432 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13433 (TARGET_DELEGITIMIZE_ADDRESS): New.
13435 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13436 (clzsi2, *bsch): New patterns.
13438 * config/mn10300/mn10300.md (INT): New mode iterator.
13439 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13441 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13442 flag_split_wide_types.
13444 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13445 (mn10300_trampoline_init): Rewrite without a template, an immediate
13446 load and a direct branch.
13447 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13449 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13451 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13452 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13453 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13454 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13456 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13459 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13462 2011-01-12 Jan Hubicka <jh@suse.cz>
13465 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13466 (PLUGIN_COND_CLOSE): New macro.
13467 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13469 2011-01-12 Richard Guenther <rguenther@suse.de>
13472 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13473 register variables in a MEM_REF.
13475 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13477 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13478 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13479 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13480 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13481 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13482 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13483 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13484 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13485 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13486 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13487 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13488 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13489 * config/gnu-user.h: New. Copied from linux.h.
13490 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13491 GNU_USER_TARGET_STARTFILE_SPEC.
13492 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13493 GNU_USER_TARGET_ENDFILE_SPEC.
13494 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13495 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13496 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13497 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13498 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13499 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13500 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13501 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13502 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13503 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13504 * config/arm/linux-eabi.h (CC1_SPEC): Use
13505 GNU_USER_TARGET_CC1_SPEC.
13506 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13507 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13508 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13509 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13510 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13511 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13512 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13513 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13515 2011-01-12 Richard Guenther <rguenther@suse.de>
13518 * doc/invoke.texi (ffast-math): Document it is turned on
13521 2011-01-12 Jan Hubicka <jh@suse.cz>
13523 PR tree-optimization/47233
13524 * opts.c (common_handle_option): Disable ipa-reference with profile
13527 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13529 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13532 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13534 * c-parser.c (c_lex_one_token): Updated and reindented some
13535 comments. No changes in code.
13537 2011-01-11 Ian Lance Taylor <iant@google.com>
13539 * godump.c (go_output_var): Don't output the variable if there is
13540 already a type with the same name.
13542 2011-01-11 Ian Lance Taylor <iant@google.com>
13544 * godump.c (go_format_type): Don't generate float80.
13546 2011-01-11 Richard Henderson <rth@redhat.com>
13548 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13549 declaration. Rewrite for both speed and size.
13550 (mn10300_address_cost_1): Remove.
13551 (mn10300_register_move_cost): New.
13552 (mn10300_memory_move_cost): New.
13553 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13554 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13555 extensions, shifts, BSWAP, CLZ.
13556 (mn10300_wide_const_load_uses_clr): Remove.
13557 (TARGET_REGISTER_MOVE_COST): New.
13558 (TARGET_MEMORY_MOVE_COST): New.
13559 * config/mn10300/mn10300-protos.h: Update.
13560 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13562 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13563 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13564 * config/mn10300/mn10300-protos.h: Update.
13565 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13566 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13567 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13568 (*test_int_bitfield, *test_byte_bitfield): Remove.
13569 (*bit_test, *subreg_bit_test): Remove.
13570 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13572 * config/mn10300/constraints.md ("c"): Rename from "A".
13573 ("A", "D"): New constraint letters.
13574 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13575 (fmssf4, fnmasf4, fnmssf4): Likewise.
13577 * config/mn10300/mn10300.md (isa): New attribute.
13578 (enabled): New attribute.
13580 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13581 (abssf2, negsf2): Define only for hardware fp.
13582 (sqrtsf2): Reformat.
13583 (addsf3, subsf3, mulsf3): Merge expander and insn.
13585 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13586 (DEBUGGER_AUTO_OFFSET): Remove.
13587 (DEBUGGER_ARG_OFFSET): Remove.
13589 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13590 Emit register stores with the same offsets as the hardware.
13591 (mn10300_store_multiple_operation): Don't check that the register
13592 save offsets are monotonic.
13593 * config/mn10300/mn10300-protos.h: Update.
13595 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13597 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13598 in terms of the value on the stack, not the MDR register.
13600 2011-01-11 Jan Hubicka <jh@suse.cz>
13604 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13605 (symbol_alias_set_destroy, symbol_alias_set_contains,
13606 propagate_aliases_backward): Declare.
13607 * lto-streamer-out.c (struct sets): New sturcture.
13608 (trivally_defined_alias): New function.
13609 (output_alias_pair_p): Rewrite.
13610 (output_unreferenced_globals): Fix output of alias pairs.
13611 (produce_symtab): Likewise.
13612 * ipa.c (function_and_variable_visibility): Set weak alias destination
13614 * varasm.c (symbol_alias_set_t): Remove.
13615 (symbol_alias_set_destroy): Export.
13616 (propagate_aliases_forward, propagate_aliases_backward): New functions
13618 (compute_visible_aliases): ... this one; remove.
13619 (trivially_visible_alias): New
13620 (trivially_defined_alias): New.
13621 (remove_unreachable_alias_pairs): Rewrite.
13622 (finish_aliases_1): Reorganize code checking if alias is defined.
13623 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13626 2011-01-11 Richard Guenther <rguenther@suse.de>
13628 PR tree-optimization/46076
13629 * tree-ssa.c (useless_type_conversion_p): Conversions from
13630 unprototyped to empty argument list function types are useless.
13632 2011-01-11 Richard Guenther <rguenther@suse.de>
13634 PR middle-end/45235
13635 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13636 volatile MEMs as MEM_READONLY_P.
13638 2011-01-11 Richard Guenther <rguenther@suse.de>
13640 PR tree-optimization/47239
13641 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13643 2011-01-11 Jeff Law <law@redhat.com>
13645 PR tree-optimization/47086
13646 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13647 IVs from statements that might throw.
13649 2011-01-10 Jan Hubicka <jh@suse.cz>
13652 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13654 2011-01-10 Jan Hubicka <jh@suse.cz>
13657 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13658 when correcting profile.
13660 2011-01-10 Jan Hubicka <jh@suse.cz>
13663 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13664 DECL_FINI_PRIORITY.
13665 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13666 Restore DECL_FINI_PRIORITY.
13668 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13670 * doc/gimple.texi: Fix quoting of multi-word return values in
13671 @deftypefn statements. Ensure presence of return value. Wrap
13672 overlong @deftypefn lines.
13673 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13674 descriptions of removed functions.
13675 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13676 of multi-word return value in @deftypefn statement.
13678 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13680 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13681 (Conditional Expressions, Logical Operators)
13682 (Statement and operand traversals): Do not indent smallexample
13683 code. Fix duplicate function argument in example.
13685 2011-01-10 Jeff Law <law@redhat.com>
13687 PR tree-optimization/47141
13688 * ipa-split.c (split_function): Handle case where we are
13689 returning a value and the return block has a virtual operand phi.
13691 2011-01-10 Jan Hubicka <jh@suse.cz>
13693 PR tree-optimization/47234
13694 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13695 (pass_feedback_split_functions): Declare.
13696 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13698 * ipa-split.c (gate_split_functions): Update comments; disable
13699 split-functions for profile_arc_flag and branch_probabilities.
13700 (gate_feedback_split_functions): New function.
13701 (execute_feedback_split_functions): New function.
13702 (pass_feedback_split_functions): New global var.
13704 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13707 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13708 calling gimple_call_set_cannot_inline.
13710 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13712 * config/darwin-sections.def: Remove unused section.
13714 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13717 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13719 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13722 * c-parser.c (c_parser_declaration_or_fndef): Improved
13725 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13727 * config/i386/winnt.c (i386_pe_start_function): Make sure
13728 to switch back to function's section.
13730 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13734 * plugin.c: Move include of dlfcn.h from here...
13735 * system.h: ... to here.
13737 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13739 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13741 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13742 two extra empty pages in PDF output.
13744 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13747 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13748 for error recovery purposes behave as if it was not specified so
13749 that the default type is usd.
13751 2011-01-07 Jan Hubicka <jh@suse.cz>
13753 PR tree-optmization/46469
13754 * ipa.c (function_and_variable_visibility): Clear needed flags on
13755 nodes with external decls; handle weakrefs merging correctly.
13757 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13759 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13762 2011-01-07 Jan Hubicka <jh@suse.cz>
13764 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13765 and no longer claim that gold is required for linker plugin.
13766 * configure: Regenerate.
13767 * gcc.c (PLUGIN_COND): New macro.
13768 (LINK_COMMAND_SPEC): Use it.
13769 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13770 * config.in (HAVE_LTO_PLUGIN): New.
13771 * configure.ac (--with-lto-plugin): New parameter; autodetect
13774 2011-01-07 Jan Hubicka <jh@suse.cz>
13776 PR tree-optimization/46367
13777 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13778 when we can update original.
13779 (cgraph_mark_inline_edge): Sanity check.
13780 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13782 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13784 * config/spu/spu.h (ASM_COMMENT_START): Define.
13786 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13789 * gcc.c (%>S): New.
13790 (SWITCH_KEEP_FOR_GCC): Likewise.
13791 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13792 (do_spec_1): Handle "%>".
13794 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13796 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13799 * config/i386/i386.c (ix86_delegitimize_address): If
13800 simplify_gen_subreg fails, return orig_x.
13803 * value-prof.c (gimple_stringop_fixed_value): Handle
13804 lhs of the call properly.
13806 2011-01-07 Jan Hubicka <jh@suse.cz>
13809 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13811 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13813 * target.def (function_switched_text_sections): New hook.
13814 * doc/tm.texi: Regenerated.
13815 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13816 * final.c (default_function_switched_text_sections): New.
13817 (final_scan_insn): Call function_switched_text_sections when a
13818 mid-function section change occurs.
13819 * output.h (default_function_switched_text_sections): Declare.
13820 * config/darwin-protos.h (darwin_function_switched_text_sections):
13822 * config/darwin.c (darwin_function_switched_text_sections): New.
13823 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13825 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13827 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13828 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13829 the secondary code fragment when outputting for DWARF == 2.
13831 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13833 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13834 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13836 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13837 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13839 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13842 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13843 when it is not empty.
13845 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13848 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13849 (case ${target}): Add btver1.
13850 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13851 -march=native recognize btver1 processors.
13852 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13853 btver1 def_and_undef
13854 * config/i386/i386.c (struct processor_costs btver1_cost): New
13856 (m_BTVER1): New definition.
13857 (m_AMD_MULTIPLE): Includes m_BTVER1.
13858 (initial_ix86_tune_features): Add btver1 tune.
13859 (processor_target_table): Add btver1 entry.
13860 (static const char *const cpu_names): Add btver1 entry.
13861 (software_prefetching_beneficial_p): Add btver1.
13862 (ix86_option_override_internal): Add btver1 instruction sets.
13863 (ix86_issue_rate): Add btver1.
13864 (ix86_adjust_cost): Add btver1.
13865 * config/i386/i386.h (TARGET_BTVER1): New definition.
13866 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13867 (enum processor_type): Add PROCESSOR_BTVER1.
13868 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13870 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13873 * config/i386/i386.c (legitimize_tls_address)
13874 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13875 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13876 (tls_initial_exec_64_sun): New pattern.
13878 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13880 * doc/invoke.texi (Overall Options): Improve wording and markup
13881 of the description of -wrapper.
13883 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13885 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13886 rdynamic, threads): New Driver options.
13888 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13891 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13892 if coming from .tdata.
13893 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13895 2011-01-06 Jan Hubicka <jh@suse.cz>
13898 * collect2.c (main): Do not enable LTOmode when plugin is active.
13900 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13903 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13904 --version output if supported.
13905 * configure: Regenerate.
13907 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13909 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13912 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13915 * c-convert.c (convert): When converting a complex expression
13916 other than COMPLEX_EXPR to a different complex type, ensure
13917 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13918 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13919 when converting COMPLEX_TYPE.
13921 2011-01-06 Ira Rosen <irar@il.ibm.com>
13923 PR tree-optimization/47139
13924 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13925 only the last reduction value is used outside the loop. Update
13928 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13930 * config/rtems.opt: New.
13931 * config.gcc (*-*-rtems*): Use rtems.opt.
13933 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13935 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13936 processors do not support 3DNow instructions.
13938 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13940 * config/spu/spu.c (spu_option_override): Set parameter
13941 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13943 2011-01-05 Jan Hubicka <jh@suse.cz>
13945 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13946 at the command line.
13948 2011-01-05 Martin Jambor <mjambor@suse.cz>
13951 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13952 deltas on streamed outgoing edges.
13953 (output_node_opt_summary): Output info for outgoing edges only when
13954 the node is in new parameter set.
13955 (output_cgraph_opt_summary): New parameter set, passed to the two
13956 aforementioned functions. Update its forward declaration and its
13959 2011-01-05 Tom Tromey <tromey@redhat.com>
13961 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13962 operator to c_finish_omp_atomic.
13963 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13964 (build_unary_op): Update.
13965 (build_modify_expr): Update.
13966 (build_asm_expr): Update.
13968 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13970 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13971 newly inserted insns.
13972 (pad_bb): Likewise.
13973 (spu_emit_branch_hint): Likewise.
13974 (insert_hbrp_for_ilb_runout): Likewise.
13975 (spu_machine_dependent_reorg): Call df_finish_pass after
13976 schedule_insns returns.
13978 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13980 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13982 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13984 PR tree-optimization/47005
13985 * tree-sra.c (struct access): Add 'non_addressable' bit.
13986 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13987 (decide_one_param_reduction): Return 0 if the parameter is passed by
13988 reference and one of the accesses in the group is non_addressable.
13990 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13992 PR tree-optimization/47056
13993 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13994 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13995 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13997 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13999 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14000 initializer. Skip view conversions from aggregate types.
14002 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
14005 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14007 2011-01-04 Philipp Thomas <pth@suse.de>
14009 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14012 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14014 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14015 on empty epilogue sequences.
14017 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14019 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14020 non-static): New Driver options.
14022 2011-01-04 Jie Zhang <jie@codesourcery.com>
14025 * gcc.c (default_compilers[]): Set combinable field to 0
14026 for all assembly languages.
14028 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14030 * config/mips/loongson3a.md: New file.
14031 * config/mips/mips.md: Include loongson3a.md.
14032 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14035 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14037 PR middle-end/47017
14038 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14039 instead of convert_memory_address_addr_space on the base expression.
14041 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14043 * config/spu/spu.c (spu_option_override): Update error text
14044 for bad -march= / -mtune= values.
14046 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14048 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14049 if branch-hint optimization will be performed.
14051 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14053 PR tree-optimization/47148
14054 * ipa-split.c (split_function): Convert arguments to
14055 DECL_ARG_TYPE if possible.
14057 PR tree-optimization/47155
14058 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14059 when computing uns.
14061 PR rtl-optimization/47157
14062 * combine.c (try_combine): If undobuf.other_insn becomes
14063 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14064 and set *new_direct_jump_p too.
14066 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14068 PR tree-optimization/47021
14069 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14071 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14073 * gcc.c (process_command): Update copyright notice dates.
14074 * gcov.c (print_version): Likewise.
14075 * gcov-dump.c (print_version): Likewise.
14076 * mips-tfile.c (main): Likewise.
14077 * mips-tdump.c (main): Likewise.
14079 2011-01-03 Martin Jambor <mjambor@suse.cz>
14081 PR tree-optimization/46801
14082 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14083 aggregate fields start at byte boundary instead of the bit-field flag.
14085 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14088 * gcc.c (main): Revert revision 168407.
14090 2011-01-03 Martin Jambor <mjambor@suse.cz>
14092 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14094 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14096 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14097 vector optab to expand vector/scalar shift, update gimple to vector.
14099 2011-01-03 Martin Jambor <mjambor@suse.cz>
14101 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14104 2011-01-03 Martin Jambor <mjambor@suse.cz>
14106 PR tree-optimization/46984
14107 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14109 (cgraph_create_indirect_edge): Fixed line length.
14110 (cgraph_indirect_call_info): Declare.
14111 (cgraph_make_edge_direct) Update declaration.
14112 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14113 (cgraph_create_indirect_edge): Use it.
14114 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14116 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14117 the new thunk_delta representation.
14118 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14120 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14121 (ipa_read_indirect_edge_info): Likewise.
14122 * lto-cgraph.c (output_edge_opt_summary): New function.
14123 (output_node_opt_summary): Call it on all outgoing edges.
14124 (input_edge_opt_summary): New function.
14125 (input_node_opt_summary): Call it on all outgoing edges.
14127 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14130 * gcc.c (main): Don't check have_o when settting combine_inputs.
14132 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14134 * regrename.c: Add general comment describing the pass.
14135 (struct du_head): Remove 'length' field.
14136 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14137 (regrename_optimize): Do not sort chains. Rework comments, add others.
14138 Force renaming to the preferred class (if any) in the first pass and do
14139 not consider registers that belong to it in the second pass.
14140 (create_new_chain): Do not set 'length' field.
14141 (scan_rtx_reg): Likewise.
14143 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14145 PR tree-optimization/47140
14146 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14147 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14148 to bit_value_binop.
14150 PR rtl-optimization/47028
14151 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14152 parm_birth_insn instead of at the beginning of first bb.
14154 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14156 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14157 Remove the word "see" before "@pxref".
14158 * doc/rtl.texi: Remove the word "see" before "@pxref".
14160 2011-01-01 Jan Hubicka <jh@suse.cz>
14162 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14165 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14168 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14171 Copyright (C) 2011 Free Software Foundation, Inc.
14173 Copying and distribution of this file, with or without modification,
14174 are permitted in any medium without royalty provided the copyright
14175 notice and this notice are preserved.