1 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3 * ggc-page.c (extra_order_size_table): Use struct
5 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
6 (unpack_ts_type_common_value_fields): ...this. Update comment.
7 (unpack_value_fields): Adjust for renaming.
8 (lto_input_ts_type_tree_pointers): Split into...
9 (lto_input_ts_type_common_tree_pointer): ...this and...
10 (lto_input_ts_type_non_common_tree_pointers): ...this.
11 (lto_input_tree_pointers): Adjust for above split.
12 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
13 (pack_ts_type_common_value_fields): ...this. Update comment.
14 (lto_output_ts_type_tree_pointers): Split into...
15 (lto_output_ts_type_common_tree_pointers): ...this and...
16 (lto_output_ts_type_non_common_tree_pointers): ...this.
17 (lto_output_tree_pointers): Adjust for above split.
18 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
19 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
20 * stor-layout.c (vector_type_mode): Adjust location of mode field.
21 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
23 (struct tree_type): Split into...
24 (struct tree_type_common: ...this and...
25 (struct tree_type_with_lang_specific): ...this and...
26 (struct tree_type_non_common): ...this. Adjust accessor macros
28 (TYPE_VALUES_RAW): Define.
29 (union tree_node): Update for above changes.
30 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
32 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
33 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
34 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
35 * treestructu.def (TS_TYPE): Remove.
36 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
39 2011-05-11 Jakub Jelinek <jakub@redhat.com>
42 * tree-ssa.c (reset_debug_uses): New function.
43 * tree-flow.h (reset_debug_uses): New prototype.
44 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
45 * tree-loop-distribution.c (generate_loops_for_partition): Call
46 reset_debug_uses on the stmts that will be removed. Keep around
47 all debug stmts, don't count them as bits in partition bitmap.
48 (generate_builtin): Don't count debug stmts or labels as bits in
51 2011-05-11 Richard Guenther <rguenther@suse.de>
53 * gimple.c (gimple_type_hash_1): Merge with ...
54 (gimple_type_hash): ... this.
55 (gtc_visit): Remove mode parameter and simplify accordingly.
56 (gimple_types_compatible_p_1): Likewise.
57 (gimple_types_compatible_p): Likewise.
58 (iterative_hash_gimple_type): Likewise.
60 (gimple_type_eq): Adjust.
62 2011-05-11 Revital Eres <revital.eres@linaro.org>
64 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
65 enters the branch create an anti edge in the opposite direction
66 to prevent the creation of reg-moves.
67 * modulo-sched.c: Adjust comment to reflect the fact we are
68 scheduling closing branch.
69 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
70 (stage_count): New field in struct partial_schedule.
71 (calculate_stage_count): New function.
72 (normalize_sched_times): Rename to reset_sched_times and handle
73 incrementing the sched time of the nodes by a constant value
75 (duplicate_insns_of_cycles): Skip closing branch.
76 (sms_schedule_by_order): Schedule closing branch.
77 (ps_insn_find_column): Handle closing branch.
78 (sms_schedule): Call reset_sched_times and adjust the code to
79 support scheduling of the closing branch.
80 (ps_insert_empty_row): Update calls to normalize_sched_times
81 and rotate_partial_schedule functions.
83 2011-05-11 Richard Guenther <rguenther@suse.de>
86 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
88 2011-05-11 Joseph Myers <joseph@codesourcery.com>
90 * opts.c (finish_options): Move warning settings from
92 * toplev.c (process_options): Move warning settings to
95 2011-05-11 Richard Guenther <rguenther@suse.de>
97 PR tree-optimization/18041
98 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
99 (simplify_bitwise_binary): ... this. Handle operand conversions
100 by applying them to the result instead.
101 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
103 2011-05-11 Richard Guenther <rguenther@suse.de>
105 * gimple.c (gimple_canonical_types_compatible_p): Split out
106 from gimple_types_compatible_p and friends. Do not recurse
108 (gimple_canonical_type_eq): Use it.
109 (iterative_hash_canonical_type): Split out from
110 iterative_hash_gimple_type and friends. Do not recurse
112 (gimple_canonical_type_hash): Use it, allocate the hash here.
114 2011-05-11 Revital Eres <revital.eres@linaro.org>
116 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
119 2011-05-11 Revital Eres <revital.eres@linaro.org>
121 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
122 instead of PREV_INSN.
124 2011-05-11 Revital Eres <revital.eres@linaro.org>
126 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
127 * loop-doloop.c (doloop_condition_get): Likewise.
128 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
130 * config/arm/arm.md (*addsi3_compare0): Remove "*".
132 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
134 * tree.def (CASE_LABEL_EXPR): Add an operand.
135 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
137 2011-05-10 Joseph Myers <joseph@codesourcery.com>
139 * c-decl.c (c_override_global_bindings_to_false): Remove.
140 (global_bindings_p): Don't check
141 c_override_global_bindings_to_false.
142 * c-tree.h (c_override_global_bindings_to_false): Remove.
143 * c-typeck.c (composite_type): Don't set
144 c_override_global_bindings_to_false.
146 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
148 PR target/48857, 48495
149 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
151 (VSX_MOVE_MODE): Ditto.
152 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
153 VSX vector types. Add V2DImode.
154 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
155 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
156 (MODES_TIEABLE_P): Ditto.
158 * config/rs6000/rs6000.c (rs6000_emit_move): Use
159 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
161 (init_cumulative_args): Ditto.
162 (rs6000_function_arg_boundary): Ditto.
163 (rs6000_function_arg_advance_1): Ditto.
164 (rs6000_function_arg): Ditto.
165 (rs6000_function_ok_for_sibcall): Ditto.
166 (emit_frame_save): Ditto.
167 (rs6000_function_value): Ditto.
168 (rs6000_libcall_value): Ditto.
170 2011-05-10 Joseph Myers <joseph@codesourcery.com>
172 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
173 i386/darwin-lib.h to $libgcc_tm_file.
174 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
176 2011-05-10 Joseph Myers <joseph@codesourcery.com>
178 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
180 2011-05-10 Joseph Myers <joseph@codesourcery.com>
182 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New
184 * config/rs6000/rs6000-tables.opt: New file (generated).
185 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
186 rs6000/rs6000-tables.opt to extra_options.
187 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
188 * config/rs6000/rs6000.c (rs6000_select): Remove.
189 (processor_target_table): Move contents to rs6000-cpus.def.
190 (darwin_rs6000_override_options): Check
191 global_options_set.x_rs6000_cpu_index instead of
192 rs6000_select[1].string.
193 (rs6000_option_override_internal): Likewise.
194 (rs6000_handle_option): Don't assert that global structures are in
195 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
196 (rs6000_default_cpu): New variable.
197 (rs6000_file_start): Set it instead of local default_cpu. Check
198 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
199 global_options_set.x_rs6000_tune_index instead of rs6000_select.
200 (rs6000_darwin_file_start): Check rs6000_default_cpu and
201 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
202 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
203 rs6000_select): Remove.
204 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
206 (mcpu=, mtune=): Use Var, Init, Enum and Save.
207 * config/rs6000/t-rs6000
208 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
209 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
210 global_options_set.x_rs6000_cpu_index instead of
211 rs6000_select[1].string.
212 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
213 global_options_set.x_rs6000_cpu_index instead of
214 rs6000_select[1].string.
216 2011-05-10 Joseph Myers <joseph@codesourcery.com>
218 * config.gcc (libgcc_tm_file): Define instead of including files
219 from ../../libgcc/config/ in tm_file.
220 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list):
222 * configure: Regenerate.
223 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
224 libgcc_tm.h, cs-libgcc_tm.h): New.
225 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
226 (clean): Remove libgcc_tm.h.
227 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
228 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
229 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
231 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
234 * config/avr/avr.c (avr_ret_register): Return unsigned int
236 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
237 it to avr_libcall_value.
238 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
240 (avr_expand_binop_builtin): Ditto.
241 (avr_expand_unop_builtin): Ditto.
243 2011-05-10 DJ Delorie <dj@redhat.com>
245 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
246 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
247 * config/rx/rx.c (rx_align_for_label): Add label and
248 uses_threshold parameters. Do not align when the label is not
250 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
252 2011-05-10 Richard Guenther <rguenther@suse.de>
254 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
255 a series of conversions and apply foldings similar to what
257 (tree_ssa_forward_propagate_single_use_vars): Call it.
259 2011-05-10 Jakub Jelinek <jakub@redhat.com>
261 PR tree-optimization/48611
262 PR tree-optimization/48794
263 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
264 referenced from RESX or EH_DISPATCH arguments.
267 * dfp.c (decimal_to_decnumber): Handle conversion from
270 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
272 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
273 for !flag_prefer_avx128.
274 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
276 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
278 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
279 (fold_ternary_loc): Use expr_location_or.
281 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
284 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
285 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
286 Pmode and mem_mode is not VOIDmode.
288 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
290 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
291 TYPE_QUAL_RESTRICT): Convert to enum.
293 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
295 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
296 (const_pow2_1_to_8_operand): Ditto.
297 (const_pow2_1_to_128_operand): Ditto.
298 (const_pow2_1_to_32768_operand): Ditto.
299 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
300 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
301 in insn constraint to check integer value of operand 3.
302 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
304 (PINSR_MODE): New mode iterator.
305 (sse2p4_1): New mode attribute.
306 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
307 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
308 iterator. Use const_int_operand instead of
309 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
310 exact_log2 in insn constraint to check integer value of operand 3.
312 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
314 * config/i386/sse.md (blendbits): Remove mode attribute.
315 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
316 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
317 Check integer value of operand 3 in insn constraint.
319 2011-05-09 Richard Guenther <rguenther@suse.de>
321 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
323 (lto_symtab_merge): Likewise. Do not register types here.
324 (lto_symtab_merge_decls_2): Likewise.
325 (lto_symtab_merge_decls_1): Likewise.
326 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
327 * gimple.c (enum gtc_mode): Declare.
328 (gimple_types_compatible_p): Make static.
330 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
332 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
333 temporary register to match Pmode.
335 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
337 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
338 and *vec_concatv4si_1_avx.
340 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
342 PR rtl-optimization/48927
343 * ira-conflicts.c (commutative_constraint_p): Use
344 recog_data.alternative_enabled_p to disable alternatives where
345 "enabled" attribute is false.
346 (get_dup_num): Ditto.
347 * ira-lives.c (single_reg_class): Ditto.
348 (ira_implicitly_set_insn_hard_regs): Ditto.
350 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
352 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
353 (dataflow_set_preserve_mem_locs): Likewise.
355 2011-05-09 Philipp Thomas <pth@suse.de>
357 * config/mep/mep.c (mep_validate_vliw): Syntax description
358 should not be translated.
360 2011-05-09 Joseph Myers <joseph@codesourcery.com>
362 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
363 * config/mips/mips-tables.opt: New file (generated).
364 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
365 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
366 MIPS_ARCH_OPTION_NATIVE): Define.
367 * config/mips/mips.c (mips_cpu_info_table): Move contents to
369 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
370 mips_parse_cpu): Remove.
371 (mips_cpu_info_from_opt, mips_default_arch): New.
372 (mips_handle_option): Don't assert that global structures are in
373 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
374 (mips_option_override): Use new variables and functions to set
375 state of these options. Use strcmp to check for individual CPU names.
376 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
378 * config/mips/mips.opt (march=): Use ToLower and Enum.
379 (mips): Use ToLower, Enum and Var.
380 (mtune=): Use ToLower and Enum.
381 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
383 2011-05-08 Jan Hubicka <jh@suse.cz>
385 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
386 Arrange type pairs to be UID ordered.
387 (gimple_lookup_type_leader): Make inline.
389 2011-05-09 Nick Clifton <nickc@redhat.com>
392 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
396 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
399 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
401 * combine.c (simplify_comparison): Abstract out parts into...
402 (simplify_compare_const): ... new function.
403 (try_combine): Generalize parallel arithmetic/compare combining
404 to call simplify_compare_const() and CANONICALIZE_COMPARE().
406 2011-05-08 Jan Hubicka <jh@suse.cz>
408 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
409 (cgraph_create_virtual_clone): Call hooks once virtual clone
411 * cgraph.h (cgraph_clone_node): Update prototype.
412 * ipa-cp.c (ipcp_estimate_growth): Use
413 estimate_ipcp_clone_size_and_time.
414 * ipa-inline-transform.c (clone_inlined_nodes): Update.
415 * lto-cgraph.c (input_node): Update.
416 * ipa-inline.c (recursive_inlining): Update.
417 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
418 (evaluate_conditions_for_known_args): Break out from ...
419 (evaluate_conditions_for_edge): ... here.
420 (evaluate_conditions_for_ipcp_clone): New function.
421 (inline_node_duplication_hook): Update clone summary based
423 (estimate_callee_size_and_time): Rename to ...
424 (estimate_node_size_and_time): take NODE instead of EDGE;
425 take POSSIBLE_TRUTHS as argument.
426 (estimate_callee_size_and_time): Update.
427 (estimate_ipcp_clone_size_and_time): New function.
428 (do_estimate_edge_time): Update.
430 2011-05-08 Richard Guenther <rguenther@suse.de>
434 * expmed.c (expand_shift_1): Compute adjusted constant shift
437 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
439 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
441 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
443 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
445 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
447 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
449 2011-05-07 Jan Hubicka <jh@suse.cz>
451 * ipa-inline-transform.c (inline_call): Account when program size
453 * ipa-inline.c (relative_time_benefit): New function.
454 (edge_badness): Reorganize to be power 2 based; fix thinko when
455 computing badness for negative growth; update comments to match
456 reality; better dumps.
458 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
460 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
461 type to bool and adjust comment.
462 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
463 (fold_mathfn_compare): Remove calls to global_bindings_p.
464 (fold_inf_compare): Likewise.
465 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
466 * c-tree.h (global_bindings_p): Adjust prototype.
467 * c-decl.c (global_bindings_p): Return bool and simplify.
469 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
471 PR tree-optimization/48837
472 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
473 when accumulator transformation is performed.
475 2011-05-06 Jan Hubicka <jh@suse.cz>
477 * i386.h (ix86_tune_indices): Add
478 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
479 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
480 * i386.c (initial_ix86_tune_features): Add
481 X86_SOFTARE_PREFETCHING_BENEFICIAL.
482 (software_prefetching_beneficial_p): Remove predicate.
483 (ix86_option_override_internal): Use new macro.
485 2011-05-06 Jan Hubicka <jh@suse.cz>
487 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
489 2011-05-06 Jan Hubicka <jh@suse.cz>
491 * cgraph.c (cgraph_add_thunk): Create real function node instead
492 of alias node; finalize it and mark needed/reachale; arrange visibility
493 to be right and add it into the corresponding same comdat group list.
494 (dump_cgraph_node): Dump thunks.
495 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
496 cgraph_function_with_gimple_body_p,
497 cgraph_first_function_with_gimple_body,
498 cgraph_next_function_with_gimple_body): New functions.
499 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
501 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
502 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
503 * cgraphunit.c (cgraph_finalize_function): Only look into possible
504 devirtualization when optimizing.
505 (verify_cgraph_node): Verify thunks.
506 (cgraph_analyze_function): Analyze thunks.
507 (cgraph_mark_functions_to_output): Output thunks only in combination
508 with function they are assigned to.
509 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
510 alias into normal node.
511 (assemble_thunks): New functoin.
512 (cgraph_expand_function): Use it.
513 * lto-cgraph.c (lto_output_node): Stream thunks.
514 (input_overwrite_node): Stream in thunks.
515 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
516 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
517 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
518 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
519 (inline_analyze_function): Do not care about thunk jump functions.
520 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
521 * ipa-prop.c (ipa_prop_write_jump_functions): Use
522 cgraph_function_with_gimple_body_p.
523 * passes.c (do_per_function_toporder): Use
524 cgraph_function_with_gimple_body_p.
525 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
526 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
527 (function_called_by_processed_nodes_p): Likewise.
529 2011-05-06 Joseph Myers <joseph@codesourcery.com>
531 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
532 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
534 (mabi=): Replace with separate entries for mabi=altivec,
535 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
536 mabi=ieeelongdouble and mabi=ibmlongdouble.
537 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
538 check for -mabi=spe without SPE ABI support here.
539 (rs6000_handle_option): Replace OPT_mabi_ handling with
540 OPT_mabi_altivec and OPT_mabi_spe handling.
542 2011-05-06 Cary Coutant <ccoutant@google.com>
544 * dwarf2out.c (contains_subprogram_definition): New function.
545 (should_move_die_to_comdat): Call it.
547 2011-05-06 Jeff Law <law@redhat.com>
549 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
550 remove_ctrl_stmt_and_useless_edges.
551 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
552 (fixup_template_block, thread_single_edge): Likewise.
553 (mark_threaded_blocks): Use THREAD_TARGET.
555 2011-05-06 Alan Modra <amodra@gmail.com>
558 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
559 const0_rtx as the arg to the dummy __tls_get_addr libcall.
561 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
563 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
564 constraint modifier to "r".
566 2011-05-06 Joseph Myers <joseph@codesourcery.com>
568 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
569 fall through for OPT_mcmodel_.
571 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
573 * config/s390/s390.c (s390_asm_trampoline_template): Comment
575 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
577 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
580 * config/arm/arm.opt (marm): Document it.
581 (mthumb): Reject negative variant.
583 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
586 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
587 Fix typo in "ccvt" variable name.
589 2011-05-06 Tristan Gingold <gingold@adacore.com>
592 * config/vms/vms-ar.c (main): Remove cwd variable.
594 2011-05-06 Jakub Jelinek <jakub@redhat.com>
597 * var-tracking.c (prepare_call_arguments): Move else before #endif.
599 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
601 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
602 * gimplify.c (gimplify_switch_expr): Likewise.
603 * omp-low.c (expand_omp_sections): Likewise.
604 * tree-eh.c (lower_try_finally_switch): Likewise.
605 (lower_eh_dispatch): Likewise.
606 * tree.h (build_case_label): Declare.
607 * tree.c (build_case_label): Define.
609 2011-05-05 Jason Merrill <jason@redhat.com>
612 * tree-inline.c (copy_tree_r): Use copy_statement_list.
613 (copy_statement_list): Don't recurse.
614 * stor-layout.c (copy_self_referential_tree_r): Don't allow
617 2011-05-05 Joseph Myers <joseph@codesourcery.com>
619 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
620 through from -mfpu= handling.
621 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
623 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
625 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
628 2011-05-05 Steve Ellcey <sje@cup.hp.com>
630 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
632 (hppa[12]*-*-hpux11*): Ditto.
633 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
634 * config/ia64/hpux-unix2003.h: New.
635 * config/pa/pa-hpux1131.opt: New.
636 * config/pa/pa-hpux1131.h: New.
637 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
638 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
639 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
641 2011-05-05 Jakub Jelinek <jakub@redhat.com>
644 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
645 instead of mode as 3rd argument to recursive call.
646 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
647 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
649 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
650 don't give up if mode is Pmode and mem_mode is not VOIDmode.
651 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
652 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
654 2011-05-05 Julian Brown <julian@codesourcery.com>
656 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
657 parenthesis in D-register case.
659 2011-05-05 Joseph Myers <joseph@codesourcery.com>
661 * opt-functions.awk (var_type_struct): Handle Enum options.
662 * optc-gen.awk: Don't check range of variables of character type.
663 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
664 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
665 rs6000_sdata_name, rs6000_explicit_options): Remove.
666 (rs6000_option_override_internal): Check for -malign-power here.
667 Use global_options_set instead of rs6000_explicit_options.
668 (rs6000_parse_fpu_option): Remove.
669 (rs6000_handle_option): Access variables via opts and opts_set
670 pointers. Use error_at and warning_at. Add fall-through
671 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
672 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
673 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
674 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
675 here. Don't use rs6000_parse_fpu_option.
676 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
677 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
678 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
680 (mspe): Use Var and Save.
681 (mtraceback=): Use Enum and Var.
682 (rs6000_traceback_type): New Enum and EnumValue entries.
683 (mfloat-gprs=): Use Enum, Var and Save.
684 (rs6000_float_gprs): New Enum and EnumValue entries.
685 (mlong-double-): use Var and Save.
686 (msched-costly-dep=, minsert-sched-nops=): Use Var.
687 (malign-): Use Enum and Var.
688 (rs6000_alignment_flags): New Enum and EnumValue entries.
690 (fpu_type_t): New Enum and EnumValue entries.
691 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
692 global_options_set instead of rs6000_explicit_options.
693 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
694 global_options_set instead of rs6000_explicit_options.
695 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
696 global_options_set instead of rs6000_explicit_options.
697 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
698 global_options_set instead of rs6000_explicit_options.
699 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
700 global_options_set instead of rs6000_explicit_options.
701 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
702 global_options_set instead of rs6000_explicit_options.
703 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
705 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
706 global_options_set instead of rs6000_explicit_options.
707 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
708 (rs6000_cmodel): New Enum and EnumValue entries.
709 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
710 global_options_set instead of rs6000_explicit_options.
711 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
712 (mtls-size=): Use Enum and Var.
713 (rs6000_tls_size): New Enum and EnumValue entries.
715 2011-05-05 Michael Matz <matz@suse.de>
717 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
718 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
719 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
720 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
721 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
722 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
723 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
724 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
725 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
726 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
727 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
728 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
729 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
730 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
731 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
732 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
734 2011-05-05 Richard Guenther <rguenther@suse.de>
736 * expmed.c (expand_variable_shift): Rename to ...
737 (expand_shift_1): ... this. Take an expanded shift amount.
738 For rotates recurse directly not building trees for the shift amount.
739 (expand_variable_shift): Wrap around expand_shift_1.
740 (expand_shift): Adjust.
742 2011-05-05 Jakub Jelinek <jakub@redhat.com>
744 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
746 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
748 * tree.h (get_pending_sizes): Remove prototype.
749 (put_pending_size): Likewise.
750 (put_pending_sizes): Likewise.
751 * stor-layout.c (pending_sizes): Delete.
752 (get_pending_sizes): Likewise.
753 (put_pending_size): Likewise.
754 (put_pending_sizes): Likewise.
755 (variable_size): Do not call put_pending_size and tidy up.
756 * function.h (struct function): Remove dont_save_pending_sizes_p.
757 * lto-streamer-in.c (input_function): Do not stream it.
758 * lto-streamer-out.c (output_function): Likewise.
759 * tree-inline.c (initialize_cfun): Do not copy it.
760 * c-decl.c (store_parm_decls): Do not set it.
761 * omp-low.c (create_task_copyfn): Likewise.
762 * tree-optimize.c (tree_rest_of_compilation): Likewise.
764 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
766 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
768 (*movdf_internal): Ditto.
769 (*movdf_internal_nointeger): Ditto.
770 (*movsf_internal): Ditto.
772 2011-05-05 Joseph Myers <joseph@codesourcery.com>
774 * c-decl.c (finish_decl): Don't call get_pending_sizes.
775 (grokparm): Add parameter expr. Pass it to grokdeclarator.
776 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
777 (c_variable_size): Remove.
778 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
779 call put_pending_sizes.
780 (get_parm_info): Add parameter expr. Use it to set
781 arg_info->pending_sizes.
782 (store_parm_decls): Use arg_info->pending_sizes instead or calling
784 * c-parser.c (c_parser_parms_declarator): Update call to
785 c_parser_parms_list_declarator.
786 (c_parser_parms_list_declarator): Take parameter expr. Update
787 call to push_parm_decl. Update recursive call. Don't call
788 get_pending_sizes. Update calls to get_parm_info.
789 (c_parser_objc_method_definition): Update calls to
790 c_parser_objc_method_decl and objc_start_method_definition.
791 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
792 (c_parser_objc_method_decl): Add parameter expr. Update call to
794 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
795 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
796 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
798 2011-05-05 Michael Hope <michael.hope@linaro.org>
801 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
804 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
806 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
807 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
808 (spu_output_mi_thunk): New function.
810 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
812 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
813 targetm.asm_out.print_operand.
814 * config/sol2.c: Include target.h.
816 2011-05-04 Jan Hubicka <jh@suse.cz>
818 * ipa-inline.c (reset_edge_caches): New function.
819 (update_caller_keys): Add check_inlinablity_for; do not
820 reset edge caches; remove now unnecesary loop.
821 (update_callee_keys): Add comments; reset node_growth_cache of callee.
822 (update_all_callee_keys): Likewise.
823 (inline_small_functions): Sanity check cache; update code
826 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
828 PR rtl-optimization/47612
829 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
830 as the last insn of the sequence to be moved.
832 2011-05-04 Tobias Burnus <burnus@net-b.de>
835 * doc/invoke.texi (Ofast): Document that it
836 enables Fortran's -fno-protect-parens.
838 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
840 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
842 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
844 * stor-layout.c (variable_size): Do not issue errors.
846 2011-05-04 Richard Guenther <rguenther@suse.de>
848 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
849 for array-ref indices.
850 (tree_coverage_counter_addr): Likewise.
851 (build_fn_info_type): Use size_int for index types.
852 (build_gcov_info): Likewise.
854 2011-05-04 Richard Guenther <rguenther@suse.de>
856 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
858 * c-typeck.c (really_start_incremental_init): Use bitsize_int
859 for constructor indices.
860 (push_init_level): Likewise.
862 2011-05-04 Richard Guenther <rguenther@suse.de>
864 * explow.c (promote_mode): Move variable declarations before code.
866 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
868 * tree.h (build_function_type_array): Declare.
869 (build_varargs_function_type_array): Declare.
870 (build_function_type_vec, build_varargs_function_type_vec): Define.
871 * tree.c (build_function_type_array_1): New function.
872 (build_function_type_array): New function.
873 (build_varargs_function_type_array): New function.
875 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
877 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
878 before setting STMT_VINFO_TYPE.
880 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
882 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
883 instead of spu_pass_by_reference.
885 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
887 * calls.c (emit_library_call_value_1): Invoke
888 promote_function_mode hook on libcall arguments.
889 * explow.c (promote_function_mode, promote_mode): Handle TYPE
891 * targhooks.c (default_promote_function_mode): Lisewise.
892 * config/s390/s390.c (s390_promote_function_mode): Likewise.
893 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
895 * doc/tm.texi: Document that TYPE argument might be NULL.
897 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
899 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
901 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
904 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
906 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
908 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
909 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
911 * mips-tfile.c: ... here.
912 Don't include coretypes.h, tm.h, filenames.h.
913 (saber_stop): Remove definition and all calls.
915 (__LINE__): Remove default.
916 (Size_t, Ptrdiff_t): Remove definitions.
917 Replace by size_t, ptrdiff_t.
918 [!MIPS_DEBUGGING_INFO]: Remove.
919 (SHASH_SIZE, THASH_SIZE): Remove defaults.
920 (progname): Add const.
922 Replace all uses by static.
923 (ALIGN_SYMTABLE_OFFSET): Remove default.
924 * mips-tdump.c: Don't include coretypes.h, tm.h.
925 Remove !MIPS_IS_STAB guard.
926 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
927 $(TM_H), filenames.h dependencies.
928 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
930 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
933 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
934 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
936 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
939 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
940 account and save/restore RETS.
941 (PROFILE_BEFORE_PROLOGUE): Define.
942 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
943 the push insn to use predecrement.
945 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
948 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
950 2011-05-04 Nick Clifton <nickc@redhat.com>
952 * config/mn10300/mn10300.c: Include cfgloop.h.
954 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
955 Lcc or a FLcc insn into the instruction stream.
956 (mn10300_block_contains_call): New function. Returns true if the
957 given basic block contains a CALL insn.
958 (mn10300_loop_contains_call_insn): New function. Returns true if
959 the given loop contains a CALL insn.
960 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
961 to use the SETLB and Lcc or FLcc insns.
962 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
963 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
964 * config/mn10300/mn10300.opt (msetlb): New option. Used to
965 disable the SETLB optimization.
966 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
967 __SETLB__ or __NO_SETLB__.
968 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
969 (movsf_internal): Handle MDR register.
970 (cmpsi): Make visible.
971 (setlb): New pattern.
975 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
978 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
980 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
981 (vec_concatv2di_rex64_sse): Ditto.
982 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
983 (*vec_extractv2di_1_rex64): Ditto.
986 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
988 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
990 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
992 2011-05-04 Richard Guenther <rguenther@suse.de>
994 * tree.h (int_const_binop): Remove notrunc argument.
995 * fold-const.c (int_const_binop): Remove notrunc argument. Always
996 create integer constants that are properly truncated.
997 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
998 (const_binop): Remove zero notrunc argument to int_const_binop.
999 (size_binop_loc): Likewise.
1000 (fold_div_compare): Likewise.
1001 (maybe_canonicalize_comparison_1): Likewise.
1002 (fold_comparison): Likewise.
1003 (fold_binary_loc): Likewise.
1004 (multiple_of_p): Likewise.
1005 * expr.c (store_constructor): Likewise.
1006 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1007 (maybe_fold_stmt_addition): Likewise.
1008 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1009 * stor-layout.c (layout_type): Likewise.
1010 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1011 * tree-sra.c (build_ref_for_offset): Likewise.
1012 (build_user_friendly_ref_for_offset): Likewise.
1013 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1014 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1015 * tree-ssa-loop-niter.c (inverse): Likewise.
1016 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1017 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1018 * tree-switch-conversion.c (check_range): Likewise.
1019 (build_constructors): Likewise.
1020 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1021 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1022 (extract_range_from_assert): Likewise.
1023 (vrp_int_const_binop): Likewise.
1024 (extract_range_from_binary_expr): Likewise.
1025 (extract_range_from_unary_expr): Likewise.
1026 (check_array_ref): Likewise.
1027 (find_case_label_range): Likewise.
1028 (simplify_div_or_mod_using_ranges): Likewise.
1029 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1030 comparing case labels for merging.
1032 2011-05-03 Mark Wielaard <mjw@redhat.com>
1034 * dwarf2out.c (debug_str_hash_forced): Removed.
1035 (gen_label_for_indirect_string): Removed.
1036 (get_debug_string_label): Removed.
1037 (AT_string_form): Generate label directly.
1038 (output_indirect_string): Test indirect_string_node for
1039 DW_FORM_strp instead of checking label and refcount.
1040 (prune_indirect_string): Removed.
1041 (prune_unused_types): Don't check debug_str_hash_forced or
1042 call prune_indirect_string.
1044 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1047 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1049 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
1053 * combine.c (try_combine): Skip debug insns at m_split tests.
1055 2011-04-26 Mark Wielaard <mjw@redhat.com>
1058 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1059 when info_section_emitted.
1061 2011-05-03 Joseph Myers <joseph@codesourcery.com>
1063 * config/mips/mips-opts.h: New.
1064 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1066 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1067 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1068 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1070 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1072 (mips_abi, mips_code_readable): Don't declare.
1073 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1074 (mabi=): Use Enum and Var.
1075 (mips_abi): New Enum and EnumValue entries.
1076 (mcode-readable=): Use Enum and Var.
1077 (mips_code_readable_setting): New Enum and EnumValue entries.
1078 (mr10k-cache-barrier=): Use Enum and Var.
1079 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1081 2011-05-03 Jan Hubicka <jh@suse.cz>
1083 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1084 replace hash by pointer map.
1085 (cgraph_node_set_element_def, cgraph_node_set_element,
1086 const_cgraph_node_set_element, varpool_node_set_element_def,
1087 varpool_node_set_element, const_varpool_node_set_element): Remove.
1088 (free_cgraph_node_set, free_varpool_node_set): New function.
1089 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1090 * tree-emutls.c: Free varpool node set.
1091 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1092 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1093 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1094 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1095 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1096 Move here from ipa.c; implement using pointer_map
1097 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1098 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1099 debug_cgraph_node_set, varpool_node_set_new,
1100 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1101 dump_varpool_node_set, debug_varpool_node_set):
1102 Move to ipa-uitls.c.
1103 * passes.c (ipa_write_summaries): Update.
1105 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1107 From Mike Frysinger:
1108 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1109 bf542/bf544/bf547/bf548/bf549.
1111 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1113 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1115 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1118 * config/bfin/bfin.md (MOVCC): New mode_macro.
1119 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1120 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1121 comments from generated assembly.
1123 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1126 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1127 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1128 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1129 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1130 * config/bfin/lib1funcs.asm (___muldi3): New function.
1132 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1134 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1135 build_function_type_list instead of build_function_type.
1136 Rearrange initialization of `args' to do so.
1138 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1140 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1141 instead of build_function_type.
1143 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1145 * config/rs6000/rs6000.c (spe_init_builtins): Call
1146 build_function_type_list instead of build_function_type.
1147 (paired_init_builtins, altivec_init_builtins): Likewise.
1148 (builtin_function_type): Likewise.
1150 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1152 * config/sh/sh.c (sh_media_init_builtins): Call
1153 build_function_type_list instead of build_function_type.
1155 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1157 * config/sparc/sparc.c (sparc_file_end): Call
1158 build_function_type_list instead of build_function_type.
1160 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1162 * config/alpha/alpha.c (alpha_init_builtins): Call
1163 build_function_type_list instead of build_function_type.
1165 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1167 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1168 build_function_type_list instead of build_function_type.
1170 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1172 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1173 build_function_type_list instead of build_function_type.
1174 Delete `endlink' variable.
1176 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1178 * config/avr/avr.c (avr_init_builtins): Call
1179 build_function_type_list instead of build_function_type.
1181 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1183 * config/picochip/picochip.c (picochip_init_builtins): Call
1184 build_function_type_list instead of build_function_type.
1185 Delete `endlink' variable.
1187 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1189 * config/bfin/bfin.c (bfin_init_builtins): Call
1190 build_function_type_list instead of build_function_type.
1192 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1195 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1196 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1198 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1201 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1202 libbffastfp overrides libgcc when -mfast-fp.
1204 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1206 Originally from Bernd Schmidt
1207 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1208 * config/bfin/bfin.c (override_options): Test it and error if
1211 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1213 Originally From Bernd Schmidt
1214 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1217 2011-05-03 Jeff Law <law@redhat.com>
1219 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1220 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1221 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1222 than accessing AUX field directly. Free the AUX field before
1224 (thread_block, thread_through_loop_header): Likewise.
1225 (thread_single_edge, mark_threaded_blocks): Likewise.
1226 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1227 (register_jump_thread): Do not attempt to thread to a NULL edge.
1229 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1231 * function.c (init_function_start): Call decide_function_section.
1232 * varasm.c (decide_function_section): New function.
1233 (assemble_start_function): When not using
1234 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1235 or first_function_block_is_cold.
1236 * rtl.h (decide_function_section): Declare.
1238 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1239 Jakub Jelinek <jakub@redhat.com>
1242 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1243 only succeed if req_mode is the same as set_mode.
1245 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1247 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1248 * genemit.c (gen_exp): Handle RETURN.
1249 * emit-rtl.c (verify_rtx_sharing): Likewise.
1250 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1251 * rtl.c (copy_rtx): RETURN is shared.
1252 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1254 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1255 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1256 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1257 * config/cris/cris.c (cris_expand_return): Likewise.
1258 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1259 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1260 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1261 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1262 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1264 * config/v850/v850.c (expand_epilogue): Likewise.
1265 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1266 * config/arm/arm.md (epilogue): Likewise.
1267 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1268 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1269 variable to ret_reg.
1271 2011-05-03 Richard Guenther <rguenther@suse.de>
1274 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1275 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1276 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1278 2011-05-03 Richard Guenther <rguenther@suse.de>
1280 * c-decl.c (grokdeclarator): Instead of looking at
1281 TREE_OVERFLOW check if the constant fits in the index type.
1283 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1285 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1286 (vec_store_lanes<mode><mode>): Likewise.
1288 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1290 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1291 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1292 convert_optab_index values.
1293 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1294 * genopinit.c (optabs): Initialize the new optabs.
1295 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1296 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1297 (expand_STORE_LANES): New functions.
1298 * tree.h (build_array_type_nelts): Declare.
1299 * tree.c (build_array_type_nelts): New function.
1300 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1301 (vect_model_load_cost): Likewise.
1302 (vect_store_lanes_supported, vect_load_lanes_supported)
1303 (vect_record_strided_load_vectors): Declare.
1304 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1305 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1306 (vect_transform_strided_load): Split out statement recording into...
1307 (vect_record_strided_load_vectors): ...this new function.
1308 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1309 (write_vector_array, create_array_ref): New functions.
1310 (vect_model_store_cost): Add store_lanes_p argument.
1311 (vect_model_load_cost): Add load_lanes_p argument.
1312 (vectorizable_store): Try to use store-lanes functions for
1314 (vectorizable_load): Likewise load-lanes and loads.
1315 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1316 to vect_model_store_cost.
1317 (vect_build_slp_tree): Likewise vect_model_load_cost.
1319 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1321 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1322 * hooks.c (hook_bool_mode_uhwi_false): New function.
1323 * target.def (array_mode_supported_p): New hook.
1324 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1325 * doc/tm.texi: Regenerate.
1326 * stor-layout.c (mode_for_array): New function.
1327 (layout_type): Use it.
1328 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1329 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1331 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1334 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1335 for -fstack-check if the size to allocate is negative.
1337 2011-05-02 Lawrence Crowl <crowl@google.com>
1339 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1340 (timevar_cond_start): New for starting a timer only when it is not
1342 (timevar_cond_stop): New for stopping a timer when it was not already
1345 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1346 (timevar_cond_start): New as above.
1347 (timevar_cond_stop): New as above.
1349 * timevar.def: Add start/stop timers for compiler phases,
1350 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1351 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1352 and TV_PHASE_FINALIZE.
1353 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1354 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1355 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1356 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1357 Make unused TV_OVERLOAD into a start/stop timer.
1359 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1360 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1361 to indicate that they are start/stop timers.
1363 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1364 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1365 Move initialization to do_compile.
1366 (do_compile): Add initialization from above.
1367 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1369 * c-decl.c (c_write_global_declarations): Add start/stop of
1370 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1372 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1373 or TV_PARSE_INLINE, as appropriate.
1374 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1375 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1377 2011-05-02 Jason Merrill <jason@redhat.com>
1380 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1382 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1385 * c-decl.c (finish_decl): Only create a composite if the types are
1388 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1390 * config/fr30/fr30-protos.h (Mmode): Don't define.
1391 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1392 definition where used.
1393 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1394 define. Expand definitions where used.
1395 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1396 Expand definitions where used.
1397 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1398 rx_function_arg, rx_function_arg_advance,
1399 rx_function_arg_boundary): Expand definitions of those macros.
1400 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1401 definition where used.
1403 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1405 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1407 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1408 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1409 with *movv2sf_internal_rex64_avx.
1410 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1411 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1412 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1413 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1414 "vex" in "prefix" attribute calculation.
1415 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1417 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1420 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1421 inputs match the output.
1423 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1426 * config/m68k/m68k.c (m68k_expand_prologue): Set
1427 current_function_static_stack_size.
1429 2011-05-02 Jan Hubicka <jh@suse.cz>
1431 * lto-streamer.c (lto_streamer_cache_insert_1,
1432 lto_streamer_cache_lookup, lto_streamer_cache_create,
1433 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1434 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1436 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1438 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1439 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1440 config/m68k/t-opts: New files.
1441 * config/m68k/m68k-tables.opt: New file (generated).
1442 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1443 extra_options and m68k/t-opts to tmake_file.
1444 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1445 (all_isas): Initialize using m68k-isas.def.
1446 (all_microarchs): Initialize using m68k-microarchs.def.
1447 (m68k_find_selection): Remove.
1448 (m68k_handle_option): Don't assert that global structures are in
1449 use. Use error_at. Access variables via opts pointer. Don't
1450 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1451 directly for -m68020-40 and -m68020-60.
1452 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1453 m68k_tune_entry here.
1454 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1456 (m68k_library_id_string): Remove declaration.
1457 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1458 (m68k_library_id_string): New Variable.
1459 (march=, mcpu=, mtune=): Use Enum and Var.
1461 2011-05-02 Richard Guenther <rguenther@suse.de>
1463 * varasm.c (output_constructor_regular_field): Compute zero-based
1464 index with double-ints. Make sure to ICE instead of producing
1466 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1467 in asserts. Properly use a signed type.
1469 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1471 * config/i386/sse.md (V): New mode iterator.
1472 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1474 (V_256): Rename from AVX256MODE.
1475 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1476 condition to all users.
1478 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1479 condition to all users.
1480 (VF_128): Make V4SF mode unconditional.
1481 (VF_256): Rename from AVX256MODEF2P.
1482 (VI4F_128): Rename from SSEMODE4S.
1483 (VI8F_128): Rename from SSEMODE2D.
1484 (VI4F_256): Rename from AVX256MODE8P.
1485 (VI8F_256): Rename from AVX256MODE4P.
1486 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1487 (ssescalarmodesuffix): Remove SF and DF modes.
1488 (SSEMODE124): Remove.
1489 (SSEMODE1248): Ditto.
1490 (SSEMODEF2P): Ditto.
1491 (AVXMODEF2P): Ditto.
1492 (AVXMODEFDP): Ditto.
1493 (AVXMODEFSP): Ditto.
1494 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1496 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1498 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1499 xop_pcmov_<mode>256. Use V mode iterator.
1501 Adjust RTX patterns globally for renamed mode attributes.
1503 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1505 * haifa-sched.c (sched_emit_insn): Emit insn before first
1506 non-scheduled insn. Inform back-end about new insn. Add
1507 new insn to scheduled_insns list.
1509 2011-05-02 Richard Guenther <rguenther@suse.de>
1511 PR tree-optimization/48822
1512 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1513 (process_scc): Indicate which iteration we start.
1515 2011-05-02 Jan Hubicka <jh@suse.cz>
1517 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1518 (lto_section_overrun): New.
1519 * lto-section-out.c (append_block): Rename to ...
1520 (lto_append_block): ... this one; export.
1521 (lto_output_1_stream): Move lto lto-streamer.h
1522 (lto_output_data_stream): Update.
1523 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1524 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1527 2011-05-02 Richard Guenther <rguenther@suse.de>
1529 * tree.c (tree_code_counts): New global array.
1530 (record_node_allocation_statistics): Count individual tree codes.
1531 (dump_tree_statistics): Dump individual code stats.
1533 2011-05-01 Jan Hubicka <jh@suse.cz>
1535 * ipa-inline.c (caller_growth_limits): Fix thinko when
1536 looking for largest stack frame.
1537 * ipa-inline.h (dump_inline_summary): Declare.
1538 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1540 (dump_inline_summary): Export.
1541 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1543 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1545 * reginfo.c (memory_move_cost): Change rclass argument type form
1546 'enum reg_class' to reg_class_t.
1547 * reload.h (memory_move_cost): Update prototype.
1548 * postreload.c reload_cse_simplify_set): Change type dclass var to
1550 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1552 (ira_allocate_and_set_costs): Change aclass argument type form
1553 'enum reg_class' to reg_class_t.
1554 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1555 Change aclass argument type to reg_class_t.
1556 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1558 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1559 memory_move_cost call.
1561 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1562 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1563 Change type tmp var to reg_class_t.
1565 2011-04-30 Jan Hubicka <jh@suse.cz>
1567 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1568 inlining into function with flatten attribute.
1569 (want_inline_small_function_p): Be more realistic about inlining
1570 cold calls where callee size grows.
1572 2011-04-30 Jan Hubicka <jh@suse.cz>
1574 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1577 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1579 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1580 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1581 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1582 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1583 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1584 (print_operand): Rename to...
1585 (sparc_print_operand): ...this. Make static. Adjust
1586 sparc_print_operand function call.
1587 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1590 2011-04-30 Jan Hubicka <jh@suse.cz>
1593 * ipa-inline.c (early_inliner): Disable when doing late
1594 addition of function.
1596 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1598 * dwarf2out.c (get_address_mode): New inline.
1599 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1600 if not dwarf_strict emit
1601 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1602 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1603 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1604 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1605 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1606 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1607 mem_loc_descriptor callers.
1608 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1609 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1610 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1611 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1612 (base_types): New variable.
1613 (get_base_type_offset, calc_base_type_die_sizes,
1614 base_type_for_mode, mark_base_types, base_type_cmp,
1615 move_marked_base_types): New functions.
1616 (calc_die_sizes): Assert that die_offset is 0 or equal to
1618 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1619 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1620 callers. If not dwarf_strict, call mem_loc_descriptor even for
1621 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1622 (gen_subprogram_die): Don't give up on call site parameters
1623 with non-integral or large integral modes. Adjust
1624 mem_loc_descriptor callers.
1625 (prune_unused_types): Call prune_unused_types_mark on base_types
1627 (resolve_addr): Call mark_base_types.
1628 (dwarf2out_finish): Call move_marked_base_types.
1630 PR tree-optimization/48809
1631 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1633 (gen_inbound_check): Don't compute index_expr - range_min in utype
1634 again, instead reuse SSA_NAME initialized in build_arrays.
1635 Remove two useless gsi_for_stmt calls.
1637 2011-04-29 Jeff Law <law@redhat.com>
1639 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1641 2011-04-29 Martin Jambor <mjambor@suse.cz>
1643 * cgraph.h (cgraph_postorder): Remove declaration.
1644 * ipa-utils.h (ipa_free_postorder_info): Declare.
1645 (ipa_reverse_postorder): Likewise.
1646 * cgraphunit.c: Include ipa-utils.h.
1647 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1648 * ipa-inline.c: Include ipa-utils.h.
1649 (ipa_inline): Update call to ipa_reverse_postorder.
1650 * ipa-pure-const.c (propagate_pure_const): Update call to
1651 ipa_reduced_postorder and ipa_print_order. Call
1652 ipa_free_postorder_info to clean up.
1653 (propagate_nothrow): Likewise.
1654 * ipa-reference.c (propagate): Removed a useless call to
1655 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1656 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1657 * ipa.c: Include ipa-utils.h.
1658 (ipa_profile): Update call to ipa_reverse_postorder.
1659 (cgraph_postorder): Moved to...
1660 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1661 (ipa_utils_print_order): Renamed to ipa_print_order.
1662 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1664 (ipa_free_postorder_info): New function.
1665 * passes.c: Include ipa-utils.h.
1666 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1667 (ipa_write_summaries): Likewise.
1668 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1669 (cgraphunit.o): Likewise.
1671 (ipa-inline.o): Likewise.
1673 2011-04-29 Jan Hubicka <jh@suse.cz>
1675 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1676 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1677 * ipa-inline.h (clause_t): Turn into unsigned int.
1678 * ipa-inline-analysis.c (add_clause): Do more simplification.
1679 (and_predicates): Shortcut more cases.
1680 (predicates_equal_p): Move forward; check that clauses are properly
1682 (or_predicates): Shortcut more cases.
1683 (edge_execution_predicate): Rewrite as...
1684 (set_cond_stmt_execution_predicate): ... this function; handle
1685 __builtin_constant_p.
1686 (set_switch_stmt_execution_predicate): New .
1687 (compute_bb_predicates): New.
1688 (will_be_nonconstant_predicate): Update TODO.
1689 (estimate_function_body_sizes): Use compute_bb_predicates
1690 and free them later, always try to estimate if stmt is constant.
1691 (estimate_time_after_inlining, estimate_size_after_inlining):
1692 Gracefully handle optimized out edges.
1693 (read_predicate): Fix off by one error.
1695 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1697 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1699 2011-04-27 Xinliang David Li <davidxl@google.com>
1701 * tree-profile.c (init_ic_make_global_vars): Set
1702 tls attribute on ic vars.
1703 * coverage.c (coverage_end_function): Initialize
1704 function_list with zero.
1706 2011-04-29 Richard Guenther <rguenther@suse.de>
1708 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1709 for the type of the result.
1710 (fold_builtin_isascii): Likewise.
1711 (fold_builtin_toascii): Use integer_type_node where appropriate.
1712 (fold_builtin_logb): Likewise.
1713 (fold_builtin_frexp): Likewise.
1714 (fold_builtin_strstr): Likewise.
1715 (fold_builtin_strpbrk): Likewise.
1716 (fold_builtin_fputs): Likewise.
1717 (fold_builtin_sprintf): Likewise.
1718 (fold_builtin_snprintf): Likewise.
1719 (fold_builtin_printf): Likewise.
1720 (do_mpfr_remquo): Use a proper type for the assigned constant.
1721 (do_mpfr_lgamma_r): Likewise.
1722 * dwarf2out.c (resolve_one_addr): Use size_int.
1723 * except.c (init_eh): Likewise.
1724 (assign_filter_values): Use integer_type_node for filter values.
1725 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1727 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1728 for EH region numbers.
1729 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1730 for the shift amount.
1732 2011-04-29 Richard Guenther <rguenther@suse.de>
1734 * expr.h (expand_shift): Rename to ...
1735 (expand_variable_shift): ... this.
1736 (expand_shift): Take a constant shift amount.
1737 * expmed.c (expand_shift): Rename to ...
1738 (expand_variable_shift): ... this.
1739 (expand_shift): New wrapper around expand_variable_shift.
1740 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1741 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1742 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1743 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1744 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1745 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1746 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1747 emit_store_flag_1, emit_store_flag): Likewise.
1748 * builtins.c (expand_builtin_signbit): Likewise.
1749 * calls.c (load_register_parameters): Likewise.
1750 * function.c (assign_parm_setup_block): Likewise.
1751 * lower-subreg.c (resolve_shift_zext): Likewise.
1752 * optabs.c (widen_bswap, expand_abs_nojump,
1753 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1754 * spu/spu.c (spu_expand_extv): Likewise.
1755 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1757 2011-04-29 Richard Guenther <rguenther@suse.de>
1759 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1760 for the remapped region number.
1761 * predict.c (build_predict_expr): Use integer_type_node for the
1763 * fold-const.c (fold_binary_loc): Use integer_type_node for
1764 the shift amount. Use a proper type for the PLUS_EXPR operand.
1766 2011-04-29 Michael Matz <matz@suse.de>
1768 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1769 other trees that just builtins.
1770 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1772 2011-04-29 Richard Guenther <rguenther@suse.de>
1774 * tree-nested.c (get_trampoline_type): Use size_int.
1775 (get_nl_goto_field): Likewise.
1776 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1778 (lower_eh_constructs_2): Likewise.
1779 (lower_resx): Likewise.
1780 (lower_eh_dispatch): Likewise.
1781 * tree-mudflap.c (mf_build_string): Use size_int.
1782 (mudflap_register_call): Use integer_type_node for the flag.
1783 (mudflap_enqueue_constant): Use size_int.
1784 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1785 instead of rebuilding it.
1787 2011-04-29 Richard Guenther <rguenther@suse.de>
1789 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1790 Handle OBJ_TYPE_REF.
1791 (find_func_aliases_for_call): Use it more consistently.
1793 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1795 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1796 (rank_for_schedule): Use it.
1797 (schedule_block): Set it.
1799 2011-04-28 David Li <davidxl@google.com>
1801 * tree.c (crc32_string): Use crc32_byte.
1802 (crc32_byte): New function.
1803 * tree.h (crc32_byte): New function.
1804 * gcov.c (read_graph_file): Handle new cfg_cksum.
1805 (read_count_file): Ditto.
1806 * profile.c (instrument_values): Ditto.
1807 (get_exec_counts): Ditto.
1808 (read_profile_edge_counts): Ditto.
1809 (compute_branch_probabilities): Ditto.
1810 (compute_value_histograms): Ditto.
1811 (branch_prob): Ditto.
1812 (end_branch_prob): Ditto.
1813 * coverage.c (read_counts_file): Ditto.
1814 (get_coverage_counts): Ditto.
1815 (tree_coverage_counter_addr): Ditto.
1816 (coverage_checksum_string): Ditto.
1817 (coverage_begin_output): Ditto.
1818 (coverage_end_function): Ditto.
1819 (build_fn_info_type): Ditto.
1820 (build_fn_info_value): Ditto.
1821 * libgcov.c (gcov_exit): Ditto.
1822 * gcov-dump.c (tag_function): Ditto.
1823 (compute_checksum): Remove.
1825 2011-04-29 Alan Modra <amodra@gmail.com>
1827 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1828 unspec plus offset. Tidy macho code.
1830 2011-04-29 Martin Jambor <mjambor@suse.cz>
1832 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1833 node instead of a decl. Update all callers.
1834 * cgraph.h: Update declaration.
1836 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1838 PR tree-optimization/48765
1839 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1840 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1841 to indicate if loop aware SLP is being used. Scan the statements
1842 and update the vectorization factor according to the type of
1843 vectorization before statement analysis.
1844 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1845 pass it to vect_analyze_loop_operations.
1846 (vectorizable_reduction): Set number of copies to 1 in case of pure
1848 * tree-vect-stmts.c (vectorizable_conversion,
1849 vectorizable_assignment, vectorizable_shift,
1850 vectorizable_operation, vectorizable_type_demotion,
1851 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1853 (vectorizable_condition): Move the check that it is not SLP
1854 vectorization before the number of copies check.
1855 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1856 to vectorize the loop using SLP.
1858 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1861 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1864 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1866 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1867 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1868 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1869 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1870 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1872 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1873 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1874 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1875 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1876 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1877 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1879 * config/i386/linux.h (REG_NAME): Don't define.
1880 * config/i386/linux64.h (REG_NAME): Don't define.
1881 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1882 Undefine before defining.
1884 2011-04-28 Jan Hubicka <jh@suse.cz>
1886 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1887 nonconstant_names array.
1888 (estimate_function_body_sizes): Build nonconstant_names array; handle
1889 BUILT_IN_CONSTANT_P.
1891 2011-04-28 Richard Guenther <rguenther@suse.de>
1895 2011-04-28 Richard Guenther <rguenther@suse.de>
1897 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1898 as late as possible.
1900 2011-04-28 Richard Guenther <rguenther@suse.de>
1902 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1903 (debug_constraint): Do it here.
1904 (dump_constraints): And here.
1905 (rewrite_constraints): And here.
1906 (dump_constraint_edge): Remove.
1907 (dump_constraint_graph): Rewrite to produce DOT output.
1908 (solve_constraints): Build succ graph as late as possible.
1909 Dump constraint graphs before and after solving.
1911 2011-04-28 Richard Guenther <rguenther@suse.de>
1913 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1914 New function split out from ...
1915 (find_func_aliases): ... here. Call it.
1916 (find_func_aliases_for_call): Likewise.
1918 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1920 * internal-fn.h (internal_fn_name_array): Declare.
1921 (internal_fn_flags_array): Likewise.
1923 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1925 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1926 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1928 (ssemodefsuffix): Remove.
1929 (ssevecmodesuffix): New mode attribute.
1930 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1931 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1932 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1933 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1934 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1935 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1936 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1937 ssemodesuffix mode attribute.
1938 (float splitters): Use ssevecmodesuffix mode attribute.
1939 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1940 (sseinsmode): Rename from avxvecmode.
1941 (avxsizesuffix): Rename from avxmodesuffix.
1942 (sseintvecmode): Rename from avxpermvecmode.
1943 (ssedoublevecmode): Rename from ssedoublesizemode.
1944 (ssehalfvecmode): Rename from avxhalfvecmode.
1945 (ssescalarmode): Rename from avxscalarmode.
1946 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1947 templates for ssemodesuffix mode attribute.
1948 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1951 Adjust RTX patterns globally for renamed mode attributes.
1953 2011-04-27 Jan Hubcika <jh@suse.cz>
1955 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1956 * ipa-inline-analysis.c: Include alloc-pool.h.
1957 (edge_predicate_pool): New.
1958 (trye_predicate_p): New function
1959 (false_predicate_p): New function.
1960 (add_clause): Sanity check that false clauses are "optimized";
1961 never add clauses to predicate that is already known to be false.
1962 (and_predicate): Use flase_predicate_p.
1963 (evaulate_predicate): Rename to ...
1964 (evaluate_predicate): ... this one; update all callers; assert
1965 that false is not listed among possible truths.
1966 (dump_predicate): Use true_predicate_p.
1967 (account_size_time): Use false_predicate_p.
1968 (evaulate_conditions_for_edge): Rename to ...
1969 (evaluate_conditions_for_edge) ... this one.
1970 (edge_set_predicate): New function.
1971 (inline_edge_duplication_hook): Duplicate edge predicates.
1972 (inline_edge_removal_hook): Free edge predicates.
1973 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1974 (dump_inline_summary): Update.
1975 (estimate_function_body_sizes): Set edge predicates.
1976 (estimate_calls_size_and_time): Handle predicates.
1977 (estimate_callee_size_and_time): Update.
1978 (remap_predicate): Add toplev_predicate; update comment.
1979 (remap_edge_predicates): New function.
1980 (inline_merge_summary): Compute toplev predicate; update.
1981 (read_predicate): New function.
1982 (read_inline_edge_summary): Use it.
1983 (inline_read_section): Likewise.
1984 (write_predicate): New function.
1985 (write_inline_edge_summary): Use it.
1986 (inline_write_summary): Likewise.
1987 (inline_free_summary): Free alloc pool and edge summary vec.
1989 2011-04-27 Richard Guenther <rguenther@suse.de>
1991 * tree-ssa-structalias.c (changed_count): Remove.
1992 (changed): Use a bitmap.
1993 (unify_nodes): Adjust.
1994 (do_sd_constraint): Likewise.
1995 (do_ds_constraint): Likewise.
1996 (do_complex_constraint): Likewise.
1997 (solve_graph): Likewise.
1999 2011-04-27 Jan Hubicka <jh@suse.cz>
2001 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2003 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
2005 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2006 (avx_vperm2f128_*_operand): Ditto.
2007 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2008 Use avx_vpermilp_parallel in insn condition.
2009 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2010 Use avx_vperm2f128_parallel in insn condition.
2012 2011-04-27 Richard Guenther <rguenther@suse.de>
2014 * Makefile.in (tree-ssa-structalias.o): Remove
2015 gt-tree-ssa-structalias.h dependency.
2016 (GTFILES): Remove tree-ssa-structalias.c.
2017 * tree.c (allocate_decl_uid): New function.
2018 (make_node_stat): Use it.
2019 (copy_node_stat): Likewise.
2020 * tree.h (allocate_decl_uid): Declare.
2021 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2022 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2023 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2024 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2025 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2026 (struct heapvar_map): Likewise.
2027 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2028 heapvar_insert): Likewise.
2029 (make_heapvar_for): Rename to ...
2030 (make_heapvar): ... this. Simplify.
2031 (fake_var_decl_obstack): New global var.
2032 (build_fake_var_decl): New function.
2033 (make_constraint_from_heapvar): Adjust.
2034 (handle_lhs_call): Likewise.
2035 (create_function_info_for): Likewise.
2036 (intra_create_variable_infos): Likewise.
2037 (init_alias_vars): Allocate fake_var_decl_obstack.
2038 (init_alias_heapvars, delete_alias_heapvars): Remove.
2039 (compute_points_to_sets): Do not call init_alias_heapvars.
2040 (ipa_pta_execute): Likewise.
2041 (delete_points_to_sets): Free fake_var_decl_obstack.
2043 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2045 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2046 (si_from_UTItype, si_to_UTItype): New functions.
2047 (__udivmodti4): Use them to implement type-punning.
2048 * config/spu/multi3.c (union qword_TItype): New data type.
2049 (si_from_TItype, si_to_TItype): New functions.
2050 (__multi3): Use them to implement type-punning.
2052 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2054 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2056 2011-04-27 Jan Hubicka <jh@suse.cz>
2058 * ipa-prop.c (function_insertion_hook_holder): New holder.
2059 (ipa_add_new_function): New function.
2060 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2061 Register/deregister holder.
2063 2011-04-27 Richard Guenther <rguenther@suse.de>
2065 PR tree-optimization/48772
2066 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2068 2011-04-27 Richard Guenther <rguenther@suse.de>
2070 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2071 TARGET_MEM_REF handling.
2073 2011-04-27 Nick Clifton <nickc@redhat.com>
2075 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2076 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2077 (REG_CLASS_NAMES): Likewise.
2078 (REG_CLASS_CONTENTS): Likewise.
2079 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2080 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2081 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2082 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2083 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2084 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2085 duplicate register classes.
2086 (frv_class_likely_spilled_p): Likewise.
2087 (frv_register_move_cost): Likewise.
2089 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2090 end of the regno_reg_class array.
2092 2011-04-27 Jakub Jelinek <jakub@redhat.com>
2095 * c-typeck.c (build_binary_op): Don't wrap arguments if
2096 int_operands is true.
2098 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2101 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2102 targetm.calls.must_pass_in_stack for void type.
2104 2011-04-26 Jan Hubicka <jh@suse.cz>
2106 * cgraphbuild.c (build_cgraph_edges): Update call
2107 of cgraph_create_edge and cgraph_create_indirect_edge.
2108 * cgraph.c (cgraph_create_edge_including_clones,
2109 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2110 cgraph_update_edges_for_call_stmt_node): Do not take nest
2111 argument; do not initialize call_stmt_size/time.
2112 (dump_cgraph_node): Do not dump nest.
2113 (cgraph_clone_edge): Do not take loop_nest argument;
2114 do not propagate it; do not clone call_stmt_size/time.
2115 (cgraph_clone_node): Likewise.
2116 (cgraph_create_virtual_clone): Update.
2117 * cgraph.h (struct cgraph_edge): Remove
2118 call_stmt_size/call_stmt_time/loop_nest.
2119 (cgraph_create_edge, cgraph_create_indirect_edge,
2120 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2122 * tree-emutls.c (gen_emutls_addr): Update.
2123 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2124 loop_nest; handle indirect calls, too.
2125 (clone_inlined_nodes): Do not care about updating inline summaries.
2126 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2127 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2128 stream call_stmt_size/call_stmt_time/loop_nest.
2129 * ipa-inline.c (edge_badness): Update.
2130 (ipa_inline): dump summaries after inlining.
2131 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2133 (inline_edge_summary): New function.
2134 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2135 (inline_edge_removal_hook): Handle edge summaries.
2136 (inline_edge_duplication_hook): New hook.
2137 (inline_summary_alloc): Alloc hooks.
2138 (initialize_growth_caches): Do not register removal hooks.
2139 (free_growth_caches); Do not free removal hook.
2140 (dump_inline_edge_summary): New function.
2141 (dump_inline_summary): Use it.
2142 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2143 (inline_update_callee_summaries): New function.
2144 (inline_merge_summary): Use it.
2145 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2146 (read_inline_edge_summary): New function.
2147 (inline_read_section): Use it.
2148 (write_inline_edge_summary): New function.
2149 (inline_write_summary): Use it.
2150 (inline_free_summary): Free edge new holders.
2151 * tree-inline.c (copy_bb): Update.
2153 2011-04-26 Jason Merrill <jason@redhat.com>
2155 * tree-eh.c (lower_try_finally_switch): Create the label along with
2156 the CASE_LABEL_EXPR.
2158 2011-04-26 David S. Miller <davem@davemloft.net>
2159 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2161 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2162 * configure: Regenerate.
2164 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2167 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2169 (VEC_reduc): New code iterator and splitters for vector reduction.
2170 (VEC_reduc_name): Ditto.
2171 (VEC_reduc_rtx): Ditto.
2172 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2173 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2175 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2176 support for extracting SF on VSX.
2178 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2179 generating xscvspdp.
2180 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2181 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2182 double add, minimum, maximum vector reduction.
2183 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2184 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2185 optimize double vector reduction.
2186 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2188 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2190 * config/fr30/fr30.h (inhibit_libc): Don't define.
2191 * config/m32r/m32r-protos.h: Correct comment.
2192 * config/v850/v850.h (GHS_default_section_names,
2193 GHS_current_section_names): Use tree, not union tree_node *.
2195 2011-04-26 Xinliang David Li <davidxl@google.com>
2197 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2198 * c-family/c-opts.c (c_common_handle_option): Set
2199 warn_maybe_uninitialized.
2200 * opts.c (common_handle_option): Ditto.
2201 * common.opt: New option.
2202 * tree-ssa.c (warn_uninit): Add one more parameter.
2203 (warn_uninitialized_var): Pass warning code.
2204 * tree-flow.h: Interface change.
2207 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2209 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2210 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2211 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2213 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2215 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2216 * config/mips/mips.opt (mmips-tfile): Remove.
2218 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2219 mips-tdump reference to ...
2220 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2221 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2222 reference by Tru64 UNIX.
2224 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2227 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2228 is error_mark_node, set value to NULL.
2230 PR tree-optimization/48734
2231 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2232 if return value from maybe_fold_*_comparsions isn't something
2233 the code is prepared to handle.
2235 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2237 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2239 (ext_QIreg_nomode_operands): Remove.
2240 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2244 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2246 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2248 2011-04-26 Richard Guenther <rguenther@suse.de>
2250 * c-typeck.c (build_unary_op): Do not expand array-refs via
2251 pointer arithmetic. Only adjust qualifiers for function types.
2253 2011-04-26 Richard Guenther <rguenther@suse.de>
2256 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2257 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2258 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2259 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2261 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2263 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2264 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2265 * doc/extend.texi: Document __underlying_type.
2267 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2269 * config/rs6000/titan.md (automata_option "progress"): Remove.
2271 2011-04-25 Jeff Law <law@redhat.com>
2273 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2275 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2277 * system.h (ENUM_BITFIELD): Remove.
2279 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2280 Eric Botcazou <ebotcazou@adacore.com>
2282 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2283 for STORE_FLAG_VALUE==-1 case.
2285 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2288 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2289 LEGITIMATE_PIC_OPERAND_P.
2291 2011-04-24 Jan Hubicka <jh@suse.cz>
2293 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2295 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2296 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2297 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2298 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2299 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2300 Sanity check predicate length.
2301 (remap_predicate): Likewise; sanity check jump functions.
2302 (inline_read_section, inline_write_summary): Sanity check
2305 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2308 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2309 __is_literal_type, and __is_trivial; update throughout about
2310 possibly cv-qualified void types.
2312 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2314 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2315 testsuite and make it version agnostic.
2317 2011-04-22 Jan Hubicka <jh@suse.cz>
2319 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2321 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2324 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2325 to VOID_TYPE even around MODIFY_EXPR.
2327 2011-04-22 Mike Stump <mikestump@comcast.net>
2329 * gensupport.c (read_md_rtx): Fix typo in comment.
2330 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2333 2011-04-22 Jan Hubicka <jh@suse.cz>
2335 * gengtype.c (open_base_files): Add ipa-inline.h include.
2336 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2337 ipa-prop.c; update all uses.
2338 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2339 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2340 merge summary of inlined function into former caller.
2341 * ipa-inline.c (max_benefit): Remove.
2342 (edge_badness): Compensate for removal of benefits.
2343 (update_caller_keys): Use
2344 reset_node_growth_cache/reset_edge_growth_cache.
2345 (update_callee_keys): Likewise.
2346 (update_all_callee_keys): Likewise.
2347 (inline_small_functions): Do not collect max_benefit; do not reset
2348 estimated_growth; call free_growth_caches and initialize_growth_caches.
2349 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2350 struct size_time_entry): New structures.
2351 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2352 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2353 and estimated_growth.
2354 (edge_growth_cache_entry): New structure.
2355 (node_growth_cache, edge_growth_cache): New global vars.
2356 (estimate_growth): Turn into inline.
2357 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2358 initialize_growth_caches, free_growth_caches): Declare.
2359 (estimate_edge_growth): Rewrite.
2360 (estimate_edge_time): Implement as inline cache lookup.
2361 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2363 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2364 (NUM_CONDITIONS): New constant.
2365 (predicate_conditions): New enum.
2366 (IS_NOT_CONSTANT): New constant.
2367 (edge_removal_hook_holder): New var.
2368 (node_growth_cache, edge_growth_cache): New global vars.
2369 (true_predicate, single_cond_predicate, false_predicate,
2370 not_inlined_predicate, add_condition, add_clause, and_predicates,
2371 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2372 dump_clause, dump_predicate, account_size_time,
2373 evaulate_conditions_for_edge): New functions.
2374 (inline_summary_alloc): Move to heap.
2375 (inline_node_removal_hook): Clear condition and entry vectors.
2376 (inline_edge_removal_hook): New function.
2377 (initialize_growth_caches, free_growth_caches): New function.
2378 (dump_inline_summary): Update.
2379 (edge_execution_predicate): New function.
2380 (will_be_nonconstant_predicate): New function.
2381 (estimate_function_body_sizes): Compute BB and constantness predicates.
2382 (compute_inline_parameters): Do not clear estimated_growth.
2383 (estimate_edge_size_and_time): New function.
2384 (estimate_calls_size_and_time): New function.
2385 (estimate_callee_size_and_time): New function.
2386 (remap_predicate): New function.
2387 (inline_merge_summary): New function.
2388 (do_estimate_edge_time): New function based on...
2389 (estimate_edge_time): ... this one.
2390 (do_estimate_edge_growth): New function.
2391 (do_estimate_growth): New function based on....
2392 (estimate_growth): ... this one.
2393 (inline_analyze_function): Analyze after deciding on jump functions.
2394 (inline_read_section): New function.
2395 (inline_read_summary): Use it.
2396 (inline_write_summary): Write all the new data.
2397 * ipa-prop.c (ipa_get_param_decl_index): Export.
2398 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2399 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2401 (ipa_get_lattice): Move here from ipa-cp.c
2402 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2403 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2404 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2405 cgraph_edge_inlinable_p): Remove.
2406 * cgraphunit.c: Include ipainline.h
2407 (cgraph_process_new_functions): Update call of
2408 compute_inline_parameters.
2410 2011-04-22 Richard Guenther <rguenther@suse.de>
2412 * tree.c (build_int_cst): Properly create canonicalized integer
2414 (build_int_cst_type): Remove scary comments.
2416 2011-04-22 Xinliang David Li <davidxl@google.com>
2418 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2419 by default when -Wno-error is not specified.
2420 * opts-global.c (decode_options): Remove call to
2421 control_warning_options.
2423 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2425 PR tree-optimization/48717
2426 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2427 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2429 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2431 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2432 definition where used.
2434 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2437 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2438 TREE_STATIC variables declared inside of some OpenMP construct.
2440 2011-04-22 Martin Jambor <mjambor@suse.cz>
2443 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2445 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2448 * c-typeck.c (pop_init_level): Do not warn about initializing
2451 2011-04-22 Alan Modra <amodra@gmail.com>
2453 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2454 when returning call_cookie.
2455 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2456 pointers, to functions with no more vector args than the current
2457 function, and some non-local calls for ABI_V4.
2458 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2459 sibcall_nonlocal_aix64): Combine to ..
2460 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2461 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2462 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2463 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2464 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2466 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2467 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2468 sibcall_value_symbolic_64): Delete.
2470 2011-04-21 Xinliang David Li <davidxl@google.com>
2472 * cgraph.h: Remove pid.
2473 * cgraph.c: Remove pid.
2474 * value-prof.c (init_node_map): New function.
2475 (del_node_map): New function.
2476 (find_func_by_funcdef_no): New function.
2477 (gimple_ic_transform): Call new function.
2478 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2479 * function.c (get_last_funcdef_no): New function.
2480 * function.h (get_last_funcdef_no): New function.
2481 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2482 to libgcov function.
2483 (tree-profiling): Call node map init and delete function.
2485 2011-04-21 Ian Lance Taylor <iant@google.com>
2487 * godump.c (go_format_type): Use exported Go name for anonymous
2490 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2492 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2493 Call builtin_function_type_list instead of builtin_function_type.
2494 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2496 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2498 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2499 build_function_type_list instead of build_function_type.
2500 Delete variable `endlink'.
2502 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2504 * config/s390/s390.c (s390_init_builtins): Call
2505 build_function_type_list instead of build_function_type.
2507 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2509 * config/ia64/ia64.c (ia64_init_builtins): Call
2510 build_function_type_list instead of builtin_function_type.
2512 2011-04-21 Easwaran Raman <eraman@google.com>
2514 * cfgexpand.c (stack_var): Remove OFFSET...
2515 (add_stack_var): ...and its reference here...
2516 (expand_stack_vars): ...and here.
2517 (stack_var_cmp): Sort by descending order of size.
2518 (partition_stack_vars): Change heuristic.
2519 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2520 (dump_stack_var_partition): Add newline after each partition.
2522 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2523 Jeff Law <law@redhat.com>
2525 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2526 * gengtype.c (matching_file_name_substitute): Likewise.
2528 2011-04-21 Richard Guenther <rguenther@suse.de>
2531 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2533 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2535 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2537 2011-04-21 Richard Guenther <rguenther@suse.de>
2539 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2542 2011-04-21 Richard Guenther <rguenther@suse.de>
2544 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2545 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2546 Use DECL_P, not SSA_VAR_P.
2547 (ptr_derefs_may_alias_p): Likewise.
2548 (ptr_deref_may_alias_ref_p_1): Likewise.
2549 (decl_refs_may_alias_p): Likewise.
2550 (refs_may_alias_p_1): Likewise.
2551 (ref_maybe_used_by_call_p_1): Likewise.
2552 (call_may_clobber_ref_p_1): Likewise.
2553 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2554 are either MEM_REF or TARGET_MEM_REF.
2555 (indirect_refs_may_alias_p): Likewise.
2556 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2557 for MEM_EXPR of indirect calls.
2559 2011-04-21 Tristan Gingold <gingold@adacore.com>
2561 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2562 (dst_file_info_struct): Remove flen field.
2563 (lookup_filename): Remove code that set flen field.
2565 2011-04-21 Tristan Gingold <gingold@adacore.com>
2567 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2569 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2572 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2573 vec_extract and vec_concat for non-SSE4_1 targets.
2575 2011-04-21 Richard Guenther <rguenther@suse.de>
2577 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2580 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2582 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2584 (FILE): Don't undefine.
2586 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2588 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2590 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2592 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2593 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2594 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2596 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2597 definitions where used.
2598 * config/microblaze/microblaze.h (struct microblaze_args): Use
2599 rtx, not struct rtx_def *.
2600 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2602 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2603 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2604 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2605 not struct rtx_def *.
2606 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2608 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2610 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2612 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2614 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2615 operand_equal_p to compare DR_BASE_ADDRESSes.
2616 (vect_check_interleaving): Likewise.
2618 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2621 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2622 for all Neon struct constants.
2624 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2626 * target.def (legitimate_constant_p): New hook.
2627 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2628 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2629 * doc/tm.texi: Regenerate.
2630 * hooks.h (hook_bool_mode_rtx_true): Declare.
2631 * hooks.c (hook_bool_mode_rtx_true): Define.
2632 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2633 * calls.c (precompute_register_parameters): Replace uses of
2634 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2635 (emit_library_call_value_1): Likewise.
2636 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2637 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2638 * ira-costs.c (scan_one_insn): Likewise.
2639 * recog.c (general_operand, immediate_operand): Likewise.
2640 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2641 * reload1.c (init_eliminable_invariants): Likewise.
2643 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2645 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2646 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2648 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2649 * config/alpha/predicates.md (input_operand): Update call to
2650 alpha_legitimate_constant_p.
2652 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2653 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2654 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2655 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2656 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2657 (arm_legitimate_constant_p): New functions.
2658 (arm_cannot_force_const_mem): Make static.
2660 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2662 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2663 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2664 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2665 instead of bfin_legitimate_constant_p.
2666 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2667 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2669 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2671 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2673 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2674 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2675 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2676 (frv_legitimate_constant_p): Make static. Add a mode argument.
2678 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2679 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2680 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2682 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2683 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2684 * config/i386/i386.c (legitimate_constant_p): Rename to...
2685 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2687 (ix86_cannot_force_const_mem): Update accordingly.
2688 (ix86_legitimate_address_p): Likewise.
2689 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2690 * config/i386/i386.md: Update commentary.
2692 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2693 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2694 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2695 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2697 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2699 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2700 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2701 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2702 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2704 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2705 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2706 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2708 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2709 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2710 (m32r_legitimate_constant_p): New function.
2712 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2713 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2714 LEGITIMATE_CONSTANT_P.
2715 (LEGITIMATE_CONSTANT_P): Delete.
2716 * config/m68k/m68k.c (m68k_expand_prologue): Call
2717 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2718 (m68k_legitimate_constant_p): New function.
2719 * config/m68k/m68k.md: Update comments.
2721 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2722 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2723 (mcore_legitimate_constant_p): New function.
2725 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2726 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2727 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2728 Add a mode argument.
2729 (mep_legitimate_address): Update accordingly.
2730 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2732 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2734 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2735 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2736 static. Check OP's mode for VOIDmode.
2737 (microblaze_legitimate_constant_p): New function.
2738 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2740 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2741 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2742 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2743 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2744 * config/mips/predicates.md: Update comments.
2746 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2747 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2748 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2749 (mmix_legitimate_constant_p): Make static, return a bool, and take
2751 (mmix_print_operand_address): Update accordingly.
2753 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2755 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2756 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2757 static. Add a mode argument.
2758 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2760 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2762 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2763 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2764 (pa_legitimate_constant_p): New function.
2766 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2768 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2769 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2770 (pdp11_legitimate_constant_p): New function.
2772 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2773 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2774 (rs6000_legitimate_constant_p): New function.
2776 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2777 (rx_legitimate_constant_p): ...this.
2778 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2779 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2780 (rx_legitimate_constant_p): ...this.
2781 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2782 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2784 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2785 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2786 * config/s390/s390.c (legitimate_constant_p): Rename to...
2787 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2788 and add a mode argument.
2789 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2791 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2793 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2794 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2795 (sh_legitimate_constant_p): New function.
2797 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2798 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2799 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2800 (legitimate_constant_p): Rename to...
2801 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2803 (constant_address_p): Update accordingly.
2805 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2806 argument and return a bool.
2807 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2808 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2809 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2810 (spu_rtx_costs): Update accordingly.
2811 * config/spu/predicates.md (vec_imm_operand): Likewise.
2813 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2815 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2816 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2817 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2819 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2820 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2821 * config/vax/vax.c (legitimate_constant_p): Likewise.
2823 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2824 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2825 (xtensa_legitimate_constant_p): New function.
2827 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2829 * target.def (cannot_force_const_mem): Add a mode argument.
2830 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2831 * doc/tm.texi: Regenerate.
2832 * hooks.h (hook_bool_mode_rtx_false): Declare.
2833 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2834 (hook_bool_mode_const_rtx_true): Likewise.
2835 (hook_bool_mode_rtx_false): New function.
2836 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2837 to be non-VOID. Update call to cannot_force_const_mem.
2838 (find_reloads): Update accordingly.
2839 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2840 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2842 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2843 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2844 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2845 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2846 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2847 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2848 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2849 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2850 (m68k_cannot_force_const_mem): ...this new function.
2851 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2853 (mips_const_insns, mips_legitimize_const_move): Update calls.
2854 (mips_secondary_reload_class): Likewise.
2855 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2856 (pa_cannot_force_const_mem): ...this new function.
2857 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2858 (rs6000_cannot_force_const_mem): ...this new function.
2859 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2861 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2862 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2864 (xtensa_cannot_force_const_mem): ...this new function.
2866 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2868 * config/mips/mips.c (mips16_build_function_stub): Call
2869 build_function_type_list instead of build_function_type.
2870 (mips16_build_call_stub): Likewise.
2872 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2874 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2875 instead of build_function_type.
2877 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2879 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2880 instead of build_function_type.
2882 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2885 * config/i386/i386.md (insv): Change operand 0 constraint to
2886 "register_operand". Change operand 1 and 2 constraint to
2887 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2888 * config/i386/sse.md (sse4_1_pinsrb): Export.
2889 (sse2_pinsrw): Ditto.
2890 (sse4_1_pinsrd): Ditto.
2891 (sse4_1_pinsrq): Ditto.
2892 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2893 * config/i386/i386.c (ix86_expand_pinsr): New.
2895 2011-04-20 Easwaran Raman <eraman@google.com>
2897 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2898 containing union type only with -fstrict-aliasing.
2900 2011-04-20 Jim Meyering <meyering@redhat.com>
2902 Remove useless if-before-free tests.
2903 * calls.c (expand_call, save_area): Likewise.
2904 * cfgcleanup.c (try_forward_edges): Likewise.
2905 * collect2.c (collect_execute): Likewise.
2906 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2907 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2908 * coverage.c (coverage_checksum_string): Likewise.
2909 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2910 * cselib.c (cselib_init): Likewise.
2911 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2912 (df_set_clean_cfg): Likewise.
2913 * function.c (free_after_compilation): Likewise.
2914 * gcc.c (do_spec_1, main): Likewise.
2915 * gcov.c (create_file_names): Likewise.
2916 * gensupport.c (identify_predicable_attribute): Likewise.
2917 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2918 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2919 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2920 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2921 * ipa-pure-const.c (local_pure_const): Likewise.
2922 * ipa-reference.c (propagate): Likewise.
2923 * ira-costs.c (free_ira_costs): Likewise.
2924 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2925 * matrix-reorg.c (mat_free): Likewise.
2926 * prefix.c (get_key_value): Likewise.
2927 * profile.c (compute_value_histograms): Likewise.
2928 * reload1.c (free_reg_equiv): Likewise.
2929 * sched-deps.c (free_deps): Likewise.
2930 * sel-sched-ir.c (fence_clear): Likewise.
2931 * sese.c (set_rename, if_region_set_false_region): Likewise.
2932 * tree-data-ref.c (free_rdg): Likewise.
2933 * tree-eh.c (lower_try_finally): Likewise.
2934 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2935 * tree-ssa-live.c (delete_var_map): Likewise.
2936 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2937 * tree-ssa-pre.c (phi_trans_add): Likewise.
2939 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2941 PR tree-optimization/48611
2942 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2943 beyond ERT_MUST_NOT_THROW region.
2945 2011-04-20 Catherine Moore <clm@codesourcery.com>
2947 * config/mips/mips.opt (mfix-24k): New.
2948 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2949 * config/mips/mips.md (length): Increase by 4 for stores if
2951 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2952 all noreorder if fixing 24K errata.
2953 * doc/invoke.texi: Document mfix-24k.
2955 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2957 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2958 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2960 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2962 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2963 (const_ok_for_op): ... to here.
2965 2011-04-20 Kai Tietz <ktietz@redhat.com>
2967 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2968 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2970 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2972 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2974 2011-04-20 Richard Guenther <rguenther@suse.de>
2976 PR tree-optimization/47892
2977 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2980 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2982 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2984 2011-04-20 Tristan Gingold <gingold@adacore.com>
2986 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2988 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2992 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2993 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2994 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2995 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2996 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2998 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3001 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3002 (avr_asm_named_section, avr_asm_output_aligned_common,
3003 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3004 New functions to update...
3005 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3006 (avr_asm_init_sections): Overwrite section callbacks for
3007 data_section, bss_section.
3008 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3010 (avr_file_end): ...here.
3012 2011-04-20 Richard Guenther <rguenther@suse.de>
3015 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3016 objects and types here. Adjust for their offset before comparing.
3018 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3020 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3023 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3025 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3026 (GIMPLE_H): Include $(INTERNAL_FN_H).
3027 (OBJS-common): Add internal-fn.o.
3028 (internal-fn.o): New rule.
3029 * internal-fn.def: New file.
3030 * internal-fn.h: Likewise.
3031 * internal-fn.c: Likewise.
3032 * gimple.h: Include internal-fn.h.
3033 (GF_CALL_INTERNAL): New gf_mask.
3034 (gimple_statement_call): Put fntype into a union with a new
3036 (gimple_build_call_internal): Declare.
3037 (gimple_build_call_internal_vec): Likewise.
3038 (gimple_call_same_target_p): Likewise.
3039 (gimple_call_internal_p): New function.
3040 (gimple_call_internal_fn): Likewise.
3041 (gimple_call_fntype): Return null for internal calls.
3042 (gimple_call_set_fntype): Assert that the function is not internal.
3043 (gimple_call_set_fn): Likewise.
3044 (gimple_call_set_fndecl): Likewise.
3045 (gimple_call_set_internal_fn): New function.
3046 (gimple_call_addr_fndecl): Handle null functions.
3047 (gimple_call_return_type): Likewise null types.
3048 * gimple.c (gimple_build_call_internal_1): New function.
3049 (gimple_build_call_internal): Likewise.
3050 (gimple_build_call_internal_vec): Likewise.
3051 (gimple_call_same_target_p): Likewise.
3052 (gimple_call_flags): Handle calls to internal functions.
3053 (gimple_call_fnspec): New function.
3054 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3055 (gimple_has_side_effects): Handle null functions.
3056 (gimple_rhs_has_side_effects): Likewise.
3057 (gimple_call_copy_skip_args): Handle calls to internal functions.
3058 * cfgexpand.c (expand_call_stmt): Likewise.
3059 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3060 * gimple-fold.c (gimple_fold_call): Handle null functions.
3061 (gimple_fold_stmt_to_constant_1): Don't fold
3062 calls to internal functions.
3063 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3065 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3066 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3067 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3068 (do_warn_unused_result): Likewise.
3069 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3070 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3071 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3072 the target of a call.
3073 (initialize_hash_element): Update accordingly.
3074 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3075 (iterative_hash_hashable_expr): Handle calls to internal functions.
3076 (print_expr_hash_elt): Likewise.
3077 * tree-ssa-pre.c (can_value_number_call): Likewise.
3078 (eliminate): Handle null functions.
3079 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3080 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3081 (find_func_aliases): Likewise.
3082 * value-prof.c (gimple_ic_transform): Likewise.
3083 (gimple_indirect_call_to_profile): Likewise.
3084 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3085 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3087 2011-04-19 Jan Hubicka <jh@suse.cz>
3089 * ipa-inline-transform.c (save_inline_function_body): Add comments.
3090 * ipa-inline.c (inline_small_functions): Compute summaries first,
3091 populate heap later.
3093 2011-04-19 Jan Hubicka <jh@suse.cz>
3095 * cgraph.h (save_inline_function_body): Remove.
3096 * ipa-inline-transform.c: New file, broke out of...
3097 * ipa-inline.c: ... this one; Update toplevel comment.
3098 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3100 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3101 (cgraph_mark_inline_edge): Rename to inline_call; move to
3102 ipa-inline-transform.c.
3103 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3104 move to ipa-inline-transform.c
3105 (recursive_inlining, inline_small_functions, flatten_function,
3106 ipa_inline, inline_always_inline_functions,
3107 early_inline_small_functions): Update.
3108 (inline_transform): Move to ipa-inline-transform.c.
3109 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3111 * Makefile.in (ipa-inline-transform.o): New file.
3112 * cgraphunit.c (save_inline_function_body): Move to
3113 ipa-inline-transform.c
3115 2011-04-19 DJ Delorie <dj@redhat.com>
3117 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3118 registers if we already know there aren't any.
3119 (m32c_emit_epilogue): Don't emit a barrier here.
3120 (m32c_emit_eh_epilogue): Likewise.
3121 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3122 operands at expand time.
3123 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3125 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3126 duplicates. Provide aliases instead.
3127 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3128 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3131 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3133 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3134 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3135 (general_or_i64_p, sparc_register_move_cost): New function.
3137 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3139 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3140 Add lynx, mipssde. Sort table.
3142 2011-04-19 Xinliang David Li <davidxl@google.com>
3144 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3147 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3150 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3151 is a SUBREG with non-MODE_INT mode inside of it.
3153 2011-04-19 Martin Jambor <mjambor@suse.cz>
3155 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3156 also according to actual contants.
3157 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3158 (gimple_fold_call): Use it.
3159 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3161 2011-04-19 Martin Jambor <mjambor@suse.cz>
3163 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3164 non-pointer assignments.
3166 2011-04-19 Martin Jambor <mjambor@suse.cz>
3168 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3169 account anc_offset and otr_type from the indirect edge info.
3170 * ipa-prop.c (get_ancestor_addr_info): New function.
3171 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3172 get_ancestor_addr_info, call it.
3173 (ipa_note_param_call): Do not initialize information about polymorphic
3174 calls, return the indirect call graph edge. Remove the last
3175 parameter, adjust all callers.
3176 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3177 parameters. Initialize polymorphic information in the indirect edge.
3179 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3182 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3183 the types if they have different enumeration identifiers.
3185 2011-04-19 Jan Hubicka <jh@suse.cz>
3187 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3188 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3189 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3190 (optimize_function_for_size_p) ... here.
3192 2011-04-19 Richard Guenther <rguenther@suse.de>
3195 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3198 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3200 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3201 if DECL_NO_INLINE_WARNING_P is set on the function.
3203 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3206 * reload1.c (inc_for_reload): Return void. All callers changed.
3207 (emit_input_reload_insns): Don't try to delete previous output
3208 reloads to a register, or record spill_reg_store for autoincs.
3210 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3212 * gengtype.h: Updated copyright year.
3213 (struct input_file_st): Add inpisplugin field.
3214 (type_fileloc): New function.
3216 (write_typed_struct_alloc_def): Add gcc_assert.
3217 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3218 (write_typed_alloc_defns): Don't output for plugin files.
3219 (input_file_by_name): Clear inpisplugin field.
3220 (main): Set inpisplugin field for plugin files.
3222 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3224 * gengtype-state.c (string_eq): New.
3225 (read_state): Use string_eq instead of strcmp when creating the
3228 2011-04-19 Wei Guozhi <carrot@google.com>
3231 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3232 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3234 * config/arm/constraints.md (Uu): New constraint.
3235 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3237 2011-04-19 Tristan Gingold <gingold@adacore.com>
3239 * config.gcc (-*-*-*vms): Added.
3240 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3242 * config/vms/vms-ld.c: New file.
3243 * config/vms/vms-ar.c: New file.
3244 * config/vms/t-vmsnative: New file.
3246 2011-04-18 Xinliang David Li <davidxl@google.com>
3248 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3250 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3253 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3254 if TREE_TYPE (v) is non-NULL.
3256 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3257 gimple_get_virt_mehtod_for_binfo.
3258 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3259 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3261 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3263 2011-04-18 Michael Matz <matz@suse.de>
3264 Steve Ellcey <sje@cup.hp.com>
3266 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3267 use its mode as source mode if it isn't VOIDmode.
3269 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3271 * doc/passes.texi: Fill crossref nodes.
3273 2011-04-18 Jim Meyering <meyering@redhat.com>
3275 Fix doubled-word typos in comments and strings
3276 * config/alpha/vms-unwind.h: s/for for/for/
3277 * config/arm/unwind-arm.h: Likewise.
3278 * config/microblaze/microblaze.c: Likewise.
3279 * config/sh/constraints.md: s/in in/in/
3280 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3282 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3284 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3285 (AVX_FLOAT_MODE_P): Ditto.
3286 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3287 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3288 (AVX_VEC_FLOAT_MODE_P): Ditto.
3289 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3290 (UNSPEC_MASKSTORE): Ditto.
3291 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3292 Merge from <sse>_movmsk<ssemodesuffix> and
3293 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3294 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3296 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3297 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3298 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3300 2011-04-18 Jan Hubicka <jh@suse.cz>
3302 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3304 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3305 (want_inline_function_called_once_p): Break out the logic from
3307 (edge_badness): Ensure that profile is not misupdated.
3308 (lookup_recursive_calls): Prioritize by call frequencies.
3309 (inline_small_functions): Move program size estimates here;
3310 actually process whole queue even when unit growth has been
3311 met. (to properly compute inline_failed reasons and for the
3312 case unit size decrease.) Revisit comments on recursive inlining.
3313 (ipa_inline): Remove unit summary code; first inline hot calls
3314 of functions called once, cold calls next.
3315 (order, nnodes): Remove unused variables.
3316 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3317 (GTFILES): Remove ipa-inline.c
3318 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3320 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3322 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3324 2011-04-18 Jie Zhang <jie@codesourcery.com>
3325 Richard Earnshaw <rearnsha@arm.com>
3327 * arm.c (neon_builtin_type_bits): Remove.
3328 (typedef enum neon_builtin_mode): New.
3329 (T_MAX): Don't define.
3330 (typedef enum neon_builtin_datum): Remove bits, codes[],
3331 num_vars and base_fcode. Add mode, code and fcode.
3332 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3333 VAR10): Change accordingly.
3334 (neon_builtin_data[]): Change accordingly
3335 (arm_init_neon_builtins): Change accordingly.
3336 (neon_builtin_compare): Remove.
3337 (locate_neon_builtin_icode): Remove.
3338 (arm_expand_neon_builtin): Change accordingly.
3340 * arm.h (enum arm_builtins): Move to ...
3341 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3343 * arm.c (arm_builtin_decl): Declare.
3344 (TARGET_BUILTIN_DECL): Define.
3345 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3346 (arm_builtin_decls[]): New.
3347 (arm_init_neon_builtins): Store builtin declarations in
3348 arm_builtin_decls[].
3349 (arm_init_tls_builtins): Likewise.
3350 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3351 (arm_builtin_decl): New.
3353 2011-04-18 Richard Guenther <rguenther@suse.de>
3355 * tree.c (upper_bound_in_type): Build properly canonicalized
3357 (lower_bound_in_type): Likewise.
3359 2011-04-18 Richard Guenther <rguenther@suse.de>
3361 * gimple.h (gimple_call_addr_fndecl): New function.
3362 (gimple_call_fndecl): Use it.
3363 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3365 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3366 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3368 2011-04-18 Richard Guenther <rguenther@suse.de>
3371 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3373 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3376 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3377 DECL_IN_CONSTANT_POOL without RTL.
3379 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3380 Ira Rosen <ira.rosen@linaro.org>
3383 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3384 to match neon_vzip/vuzp/vtrn_internal.
3385 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3386 outputs explicitly dependent on both inputs.
3387 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3389 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3391 PR tree-optimization/48616
3392 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3393 whether the shift is by scalar or vector based on whether all SLP
3394 scalar stmts have the same rhs.
3396 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3398 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3401 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3403 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3406 2011-04-17 Jan Hubicka <jh@suse.cz>
3408 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3409 * cgrpahunit.c (cgraph_finalize_function): Do not set
3410 finalized_by_frontend.
3411 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3412 finalized_by_frontend.
3414 2011-04-17 Jan Hubicka <jh@suse.cz>
3416 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3417 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3418 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3419 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3421 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3423 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3425 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3428 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3429 is non-null before accessing it.
3430 (input_cgraph): Remove trailing spaces.
3432 2011-04-17 Revital Eres <revital.eres@linaro.org>
3434 * params.def (sms-min-sc): New param flag.
3435 * modulo-sched.c (sms_schedule): Use it.
3436 * doc/invoke.texi (sms-min-sc): Document it.
3438 2011-04-17 Jan Hubicka <jh@suse.cz>
3440 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3441 present, also set gimple_call_set_cannot_inline.
3442 * ipa-inline.c: Update toplevel comment.
3444 (cgraph_clone_inlined_nodes): Fix linebreaks.
3445 (cgraph_check_inline_limits): Restructure to ...
3446 (caller_growth_limits): ... this one; be more tolerant
3447 on growth in nested inline chains; add explanatory comment;
3448 fix stack accounting thinko introduced by previous patch.
3449 (cgraph_default_inline_p): Remove.
3450 (report_inline_failed_reason): New function.
3451 (can_inline_edge_p): New function.
3452 (can_early_inline_edge_p): New function.
3453 (leaf_node_p): Move upwards in file.
3454 (want_early_inline_function_p): New function.
3455 (want_inline_small_function_p): New function.
3456 (want_inline_self_recursive_call_p): New function.
3457 (cgraph_edge_badness): Rename to ...
3458 (edge_badness) ... this one; fix linebreaks.
3459 (update_edge_key): Update call of edge_baddness; add
3460 detailed dump about queue updates.
3461 (update_caller_keys): Use can_inline_edge_p and
3462 want_inline_small_function_p.
3463 (cgraph_decide_recursive_inlining): Rename to...
3464 (recursive_inlining): Use can_inline_edge_p and
3465 want_inline_self_recursive_call_p; simplify and remove no longer
3467 (cgraph_set_inline_failed): Remove.
3468 (add_new_edges_to_heap): Use can_inline_edge_p and
3469 want_inline_small_function_p.
3470 (cgraph_decide_inlining_of_small_functions): Rename to ...
3471 (inline_small_functions): ... this one; cleanup; use
3472 can/want predicates; cleanup debug ouput; work edges till fibheap
3473 is exhausted and do not stop once unit growth is reached; remove
3474 later loop processing remaining edges.
3475 (cgraph_flatten): Rename to ...
3476 (flatten_function): ... this one; use can_inline_edge_p
3477 and can_early_inline_edge_p predicates.
3478 (cgraph_decide_inlining): Rename to ...
3479 (ipa_inline): ... this one; remove unreachable nodes before
3480 inlining functions called once; simplify the pass.
3481 (cgraph_perform_always_inlining): Rename to ...
3482 (inline_always_inline_functions): ... this one; use
3483 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3484 (cgraph_decide_inlining_incrementally): Rename to ...
3485 (early_inline_small_functions): ... this one; simplify
3486 using new predicates; cleanup; make dumps prettier.
3487 (cgraph_early_inlining): Rename to ...
3488 (early_inliner): newer inline regular functions into always-inlines;
3489 fix updating of call stmt summaries.
3490 (pass_early_inline): Update for new names.
3491 (inline_transform): Fix formating.
3492 (gate_cgraph_decide_inlining): Rename to ...
3493 (pass_ipa_inline): ... this one.
3494 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3495 * ipa-inline-analysis.c (dump_inline_summary): Update.
3496 (compute_inline_parameters): Do not compute disregard_inline_limits;
3497 look for mismatching arguments.
3498 (estimate_growth): Fix handlig of non-trivial self recursion.
3499 (inline_read_summary): Do not read info->disregard_inline_limits.
3500 (inline_write_summary): Do not write info->disregard_inline_limits.
3501 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3502 and move all checks into can_inline_edge_p predicate; re-enable code
3503 comparing optimization levels.
3504 (expand_call_inline): Do not test inline_forbidden_into_p.
3505 * Makefile.in (ipa-inline.o): Update arguments.
3507 2011-04-17 Revital Eres <revital.eres@linaro.org>
3509 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3511 2011-04-17 Revital Eres <revital.eres@linaro.org>
3513 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3515 2011-04-17 Michael Matz <matz@suse.de>
3517 PR tree-optimization/48622
3519 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3520 in same order as they're written.
3522 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3524 * config/pa/predicates.md: Reorganize and simplify predicates.
3525 Eliminate duplicate code checks.
3526 (arith_operand): Rename to arith14_operand
3527 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3528 * config/pa/pa.md: Use renamed operands.
3529 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3530 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3531 arith11_operand, adddi3_operand, indexed_memory_operand,
3532 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3533 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3534 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3535 move_dest_operand, move_src_operand, prefetch_cc_operand,
3536 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3537 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3538 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3539 div_operand, int5_operand, movb_comparison_operator,
3540 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3541 arith_double_operand, ireg_operand, lhs_lshift_operand,
3542 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3543 integer_store_memory_operand): Likewise.
3544 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3545 (integer_store_memory_operand, read_only_operand,
3546 function_label_operand, borx_reg_operand,
3547 non_hard_reg_operand): Likewise.
3548 (eq_neq_comparison_operator): Delete unused operator.
3549 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3550 function_label_operand.
3551 (emit_move_sequence): Likewise.
3553 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3555 * config/i386/sse.md (sseunpackmode): New mode attribute.
3556 (ssepackmode): Ditto.
3557 (vec_pack_trunc_<mode>): Macroize expander from
3558 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3559 (vec_unpacks_lo_<mode>): Macroize expander from
3560 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3561 (vec_unpacks_hi_<mode>): Macroize expander from
3562 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3563 (vec_unpacku_lo_<mode>): Macroize expander from
3564 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3565 (vec_unpacku_hi_<mode>): Macroize expander from
3566 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3567 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3568 ix86_expand_sse4_unpack.
3569 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3571 2011-04-16 Jan Hubicka <jh@suse.cz>
3573 * cgraphbuild.c: Include ipa-inline.h.
3574 (reset_inline_failed): Use initialize_inline_failed.
3575 * cgraph.c: Include ipa-inline.h.
3576 (cgraph_create_node_1): Do not initialize estimated_growth.
3577 (initialize_inline_failed): More to ipa-inline-analysis.c
3578 (dump_cgraph_node): Do not dump inline flags.
3579 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3580 and disregard_inline_limits flags.
3581 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3582 time, size, estimated_growth.
3583 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3585 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3586 DECL_DISREGARD_INLINE_LIMITS.
3587 (cgraph_analyze_function): Do not initialize
3588 node->local.disregard_inline_limits.
3589 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3590 inlinable, versionable and disregard_inline_limits.
3591 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3592 cgraph_check_inline_limits, cgraph_default_inline_p,
3593 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3594 add_new_edges_to_heap): Update.
3595 (cgraph_decide_inlining_of_small_function): Update; set
3596 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3597 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3598 cgraph_decide_inlining_incrementally): Update.
3599 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3600 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3601 time, size and estimated_growth parameters.
3602 (estimate_edge_growth): Update.
3603 (initialize_inline_failed): Declare.
3604 * ipa-split.c: Include ipa-inline.h
3605 (execute_split_functions): Update.
3606 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3607 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3608 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3609 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3610 estimated_growth to INT_MIN.
3611 (inline_node_duplication_hook): Likewise.
3612 (dump_inline_summary): Dump new fields.
3613 (compute_inline_parameters): Update.
3614 (estimate_edge_time, estimate_time_after_inlining,
3615 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3616 inline_write_summary):
3617 (initialize_inline_failed): Move here from cgraph.c.
3618 * tree-sra.c: Include ipa-inline.h.
3619 (ipa_sra_preliminary_function_checks): Update.
3620 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3623 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3625 * config/i386/sse.md (V16): New mode iterator.
3627 (AVXMODEQI, AVXMODEDI): Remove.
3628 (sse2, sse3): New mode attribute.
3629 (mov<mode>): Use V16 mode iterator.
3630 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3631 (push<mode>1): Use V16 mode iterator.
3632 (movmisalign<mode>): Ditto.
3633 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3634 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3635 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3636 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3637 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3638 avx_movdqu<avxmodesuffix>.
3639 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3640 *avx_movdqu<avxmodesuffix>.
3641 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3642 avx_lddqu<avxmodesuffix>.
3643 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3644 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3645 avx_movnt<AVXMODEDI:mode>.
3646 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3647 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3649 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3652 * haifa-sched.c (prune_ready_list, schedule_block): Use
3653 sched_pressure_p rather than flag_sched_pressure.
3655 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3657 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3658 cgraph_get_node instead of cgraph_get_create_node.
3660 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3662 * cfgexpand.c (expand_debug_expr): Use
3663 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3665 2011-04-15 Michael Matz <matz@suse.de>
3667 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3668 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3669 * function.c (gimplify_parameters): Ditto.
3670 * gimplify.c (gimplify_vla_decl): Ditto.
3672 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3673 (gimple_call_set_alloca_for_var): New inline function.
3674 (gimple_call_alloca_for_var_p): Ditto.
3675 * gimple.c (gimple_build_call_from_tree): Remember
3676 CALL_ALLOCA_FOR_VAR_P state.
3677 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3679 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3680 calls if they were for VLA objects.
3682 2011-04-15 Martin Jambor <mjambor@suse.cz>
3684 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3687 2011-04-15 Martin Jambor <mjambor@suse.cz>
3690 * tree-emutls.c (lower_emutls_function_body): Call
3691 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3694 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3696 * c-decl.c (detect_field_duplicates): Call
3697 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3699 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3701 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3702 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3703 * ipa-pure-const.c (check_stmt): Call it.
3704 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3706 2011-04-15 Richard Guenther <rguenther@suse.de>
3708 PR tree-optimization/48290
3709 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3710 Properly decide inhibiting propagation based on the valueized
3711 operand. Do loop-closed SSA form preserving here ...
3712 (init_copy_prop): ... not here.
3714 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3717 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3718 (*ieee_smax<mode>3): Likewise.
3720 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3722 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3723 Replace match_operand with match_dup for the third operand in
3726 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3728 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3729 to track processing of conditionals. Update all callers.
3730 (try_combine, simplify_if_then_else): Update.
3732 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3734 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3737 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3739 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3740 instead of match_operand for operand 3.
3742 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3744 * recog.h (insn_operand_data): Add an "allows_mem" field.
3745 * genoutput.c (output_operand_data): Initialize it.
3746 * optabs.c (maybe_legitimize_operand_same_code): New function.
3747 (maybe_legitimize_operand): Use it when matching the original
3750 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3752 * gimplify.c: Fix issues in comments throughout.
3753 (voidify_wrapper_expr): Fix long line.
3754 (build_stack_save_restore): Likewise.
3755 (gimplify_loop_expr): Likewise.
3756 (gimplify_compound_lval): Likewise.
3757 (gimplify_init_ctor_eval): Likewise.
3758 (gimplify_modify_expr_rhs): Likewise.
3759 (omp_notice_threadprivate_variable): Likewise.
3761 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3763 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3764 original one if this is not a builtin function.
3766 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3769 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3770 offset it as needed based on top 2 bits in operands[3], change
3771 MEM mode to SFmode and mask those 2 bits away from operands[3].
3773 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3775 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3776 change from objc_declare_protocols() to objc_declare_protocol().
3778 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3780 * config/i386/sse.md (sse4_1): New mode attribute.
3781 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3782 avx_blend<ssemodesuffix><avxmodesuffix> and
3783 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3784 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3785 avx_blendv<ssemodesuffix><avxmodesuffix> and
3786 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3787 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3788 avx_dp<ssemodesuffix><avxmodesuffix> and
3789 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3790 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3791 (sse4_1_packusdw): Merge with *avx_packusdw.
3792 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3793 (sse4_1_pblendw): Merge with *avx_pblendw.
3794 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3795 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3796 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3798 (sse4_1_round<ssescalarmodesuffix>): Merge with
3799 *avx_round<ssescalarmodesuffix>.
3800 (aesenc): Merge with *avx_aesenc.
3801 (aesenclast): Merge with *avx_aesenclast.
3802 (aesdec): Merge with *avx_aesdec.
3803 (aesdeclast): Merge with *avx_aesdeclast.
3804 (pclmulqdq): Merge with *pclmulqdq.
3805 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3807 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3809 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3812 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3813 (align_local_variable): This. Update DECL_ALIGN.
3814 (add_stack_var): Updated.
3815 (expand_one_stack_var): Likewise.
3817 2011-04-14 Richard Guenther <rguenther@suse.de>
3819 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3821 (dse_initialize_block_local_data, dse_leave_block,
3822 record_voperand_set, get_stmt_uid): Likewise.
3823 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3824 (dse_optimize_stmt): Remove voperand set handling code.
3825 Simplify and improve to handle any kind of killing stmt.
3826 (dse_record_phi): Remove.
3827 (dse_enter_block): Simplify.
3828 (tree_ssa_dse): Likewise.
3829 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3831 2011-04-14 Jan Hubicka <jh@suse.cz>
3833 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3834 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3835 (cgraph_local_info): Remove inline_summary.
3836 * ipa-cp.c: Include ipa-inline.h.
3837 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3838 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3840 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3841 (input_overwrite_node): Do not set inline summary.
3842 (input_node): Do not stream inline summary.
3843 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3844 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3845 growth; we do not have inline parameters computed for that anyway.
3846 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3847 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3848 (inline_summary_t): New type and VECtor.
3849 (debug_inline_summary, dump_inline_summaries): Declare.
3850 (inline_summary): Use VOCtor.
3851 (estimate_edge_growth): Kill hack computing call stmt size directly.
3852 * lto-section-in.c (lto_section_name): Add inline section.
3853 * ipa-inline-analysis.c: Include lto-streamer.h
3854 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3855 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3856 (inline_summary_vec): Define.
3857 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3858 dump_inline_summaries): New functions.
3859 (estimate_function_body_sizes): Properly compute size/time of outgoing
3861 (compute_inline_parameters): Alloc inline_summary; do not compute
3862 size/time of incomming calls.
3863 (estimate_edge_time): Avoid missing time summary hack.
3864 (inline_read_summary): Read inline summary info.
3865 (inline_write_summary): Write inline summary info.
3866 (inline_free_summary): Free all hooks and inline summary vector.
3867 * lto-streamer.h: Add LTO_section_inline_summary section.
3868 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3869 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3871 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3873 * tree-vectorizer.h (vect_strided_store_supported): Add a
3874 HOST_WIDE_INT argument.
3875 (vect_strided_load_supported): Likewise.
3876 (vect_permute_store_chain): Return void.
3877 (vect_transform_strided_load): Likewise.
3878 (vect_permute_load_chain): Delete.
3879 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3880 count argument. Check that the count is a power of two.
3881 (vect_strided_load_supported): Likewise.
3882 (vect_permute_store_chain): Return void. Update after above changes.
3883 Assert that the access is supported.
3884 (vect_permute_load_chain): Likewise.
3885 (vect_transform_strided_load): Return void.
3886 * tree-vect-stmts.c (vectorizable_store): Update calls after
3887 above interface changes.
3888 (vectorizable_load): Likewise.
3889 (vect_analyze_stmt): Don't check for strided powers of two here.
3891 2011-04-14 Richard Guenther <rguenther@suse.de>
3893 PR tree-optimization/48590
3894 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3895 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3896 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3897 BUILT_IN_STACK_SAVE.
3898 * tree-ssa-dce.c (propagate_necessity): Handle
3899 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3901 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3903 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3906 2011-04-14 Richard Guenther <rguenther@suse.de>
3908 * tree.h (get_object_alignment_1): Declare.
3909 * builtins.c (get_object_alignment_1): Split out worker from ...
3910 (get_object_alignment): ... here.
3911 * fold-const.c (get_pointer_modulus_and_residue): Use
3912 get_object_alignment_1.
3914 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3916 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3918 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3919 parameter. Generalise code to handle arrays as well as vectors.
3920 (vect_setup_realignment): Update accordingly.
3921 * tree-vect-stmts.c (vectorizable_store): Likewise.
3922 (vectorizable_load): Likewise.
3924 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3926 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3927 within the per-copy loop.
3929 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3931 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3934 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3936 * doc/options.texi (Negative): Explicitly mention that the
3937 Negative chain must be circular.
3939 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3941 * function.h (block_chainon): Declare.
3942 * function.c (block_chainon): Define.
3944 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3945 Eric Weddington <eric.weddington@atmel.com>
3946 Georg-Johann Lay <avr@gjlay.de>
3948 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3950 (avr_init_builtins, avr_expand_builtin,
3951 avr_expand_delay_cycles, avr_expand_unop_builtin,
3952 avr_expand_binop_builtin ): New functions.
3953 (avr_builtin_id): New enum
3954 (struct avr_builtin_description): New struct
3955 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3956 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3958 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3959 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3960 UNSPECV_DELAY_CYCLES): new enumeration values
3961 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3962 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3963 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3964 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3965 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3966 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3967 "fmulsu"): New insns
3969 * config/avr/avr-c.c: fix line endings
3970 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3971 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3972 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3973 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3974 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3976 * doc/extend.texi (AVR Built-in Functions): New node
3977 (Target Builtins): Add documentation of AVR
3980 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3983 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3984 alone. Error if non-const data has attribute progmem.
3986 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3988 * tree.h (struct tree_constructor): Include tree_typed instead of
3990 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3991 TS_TYPED instead of TS_COMMON.
3993 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3995 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3996 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3997 (sse2_psadbw): Merge with *avx_psadbw.
3998 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3999 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4000 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4001 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4002 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4003 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4004 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4005 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4006 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4007 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4008 (ssse3_palignrti): Merge with *avx_palignrti.
4010 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4012 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4013 * tree-ssanames.c (fini_ssanames): VEC_free it.
4014 (make_ssa_name_fn): Update for VECness of free_ssanames.
4015 (release_ssa_name, release_dead_ssa_names): Likewise.
4016 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4018 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4019 TS_TYPED instead of TS_COMMON.
4021 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4023 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4024 statistics_counter_event.
4025 * tree-ssa-copyrename.c (stats): Define.
4026 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4027 statistics_counter_event.
4028 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4029 (bswap_stats, widen_mul_stats): Define.
4030 (insert_reciprocals): Increment rdivs_inserted.
4031 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4032 rfuncs_inserted. Add calls to statistics_counter_event.
4033 (execute_cse_sincos_1): Increment inserted.
4034 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4035 statistics_counter_event.
4036 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4037 of bswap_stats. Add calls to statistics_counter_event.
4038 (convert_mult_to_widen): Increment widen_mults_inserted.
4039 (convert_plusminus_to_widen): Increment maccs_inserted.
4040 (convert_mult_to_fma): Increment fmas_inserted.
4041 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4042 calls to statistics_counter_event.
4044 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4046 PR rtl-optimization/48455
4047 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4048 `temp_costs->mem_cost'.
4050 2011-04-13 Jan Hubicka <jh@suse.cz>
4052 * ipa-inline.h: New file.
4053 * ipa-inline-analysis.c: New file. Broken out of ...
4054 * ipa-inline.c: ... this file; update toplevel comment;
4055 include ipa-inline.h
4056 (inline_summary): Move to ipa-inline.h
4057 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4058 ipa-inline-analysis.c.
4059 (cgraph_estimate_time_after_inlining): Rename to
4060 estiamte_time_after_inlining; move to ipa-inline-analysis.c
4061 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4062 to estimate_edge_growth.
4063 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4064 rename to estimate_size_after_inlining.
4065 (cgraph_mark_inline_edge): Update for new naming convention.
4066 (cgraph_check_inline_limits): Likewise.
4067 (cgraph_edge_badness): Likewise.
4068 (cgraph_decide_recursive_inlining): Likewise.
4069 (cgraph_decide_inlining_of_small_functions): Likewise.
4070 (cgraph_decide_inlining_incrementally): Likewise.
4071 (cgraph_estimate_growth): Rename to estimate_growth; move to
4072 ipa-inline-analysis.c.
4073 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4074 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4075 (compute_inline_parameters): Likewise.
4076 (compute_inline_parameters_for_current): Likewise.
4077 (pass_inline_parameters): Likewise.
4078 (inline_indirect_intraprocedural_analysis): Likewise.
4079 (analyze_function): Rename to inline_analyze_function; likewise.
4080 (add_new_function): Move to ipa-inline-analysis.c.
4081 (inline_generate_summary): Likewise.
4082 (inline_read_summary): Likewise.
4083 (inline_write_summary): Likewise.
4084 * Makefile.in (ipa-inline-analysis.c): New file.
4086 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4088 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4089 * configure: Regenerate.
4091 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4093 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4094 instead of tree_common.
4095 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4097 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4098 TS_TYPED rather than TS_COMMON.
4099 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4101 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
4104 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4105 r20 around calls of __tablejump_elpm__
4107 2011-04-13 Jakub Jelinek <jakub@redhat.com>
4110 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4112 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4114 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4116 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4117 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4118 (cfi_vec): New typedef.
4119 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4120 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4121 (cie_cfi_vec): New static variable.
4122 (cie_cfi_head): Delete.
4123 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4124 declaration changed. Use vector rather than list operations.
4125 (new_cfi): Don't initialize the dw_cfi_next field.
4126 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4127 rather than list operations.
4128 (lookup_cfa): Use vector rather than list operations.
4129 (output_cfis): New argument upto. Accept a cfi_vec rather than
4130 a dw_cfi_ref list head as argument. All callers changed.
4131 Iterate over the vector using upto as a maximum index.
4132 (output_all_cfis): New static function.
4133 (output_fde): Use vector rather than list operations. Use the
4134 new upto argument for output_cfis rather than manipulating a
4136 (dwarf2out_begin_prologue): Change initializations to match
4138 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4139 from the vector length rather than searching for the end of a list.
4140 Use output_all_cfis.
4141 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4143 2011-04-13 Nick Clifton <nickc@redhat.com>
4145 * config/rx/rx.md (movmemsi): Do not use this pattern when
4146 volatile pointers are involved.
4148 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4150 * config/i386/sse.md (pinsrbits): Remove.
4151 (sse2_packsswb): Merge with *avx_packsswb.
4152 (sse2_packssdw): Merge with *avx_packssdw.
4153 (sse2_packuswb): Merge with *avx_packuswb.
4154 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4155 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4156 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4157 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4158 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4159 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4160 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4161 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4162 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4163 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4164 (sse2_loadld): Merge with *avx_loadld.
4165 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4166 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4167 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4168 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4169 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4171 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4173 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4175 * print-tree.c (print_node): Likewise.
4176 * tree-inline.c (copy_tree_r): Likewise.
4177 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4178 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4179 instead of TS_COMMON.
4180 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4181 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4182 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4183 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4184 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4186 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4188 (TREE_CHAIN): Check for a TS_COMMON structure.
4189 (TREE_TYPE): Check for a TS_TYPED structure.
4191 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4193 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4194 cgraph_get_create_node instead of cgraph_node.
4196 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4198 * c-parser.c (c_parser_initelt): Updated call to
4199 objc_build_message_expr.
4200 (c_parser_postfix_expression): Likewise.
4202 2011-04-12 Kai Tietz <ktietz@redhat.com>
4204 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4205 MASK_MS_BITFIELD_LAYOUT bit.
4207 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4209 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4210 assert it is always true.
4211 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4214 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4216 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4217 compiling Objective-C to be more efficient.
4219 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4221 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4224 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4226 * recog.h, genoutput.c, optabs.c: Revert last patch.
4228 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4231 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4233 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4235 * recog.h (insn_operand_data): Add an "allows_mem" field.
4236 * genoutput.c (output_operand_data): Initialize it.
4237 * optabs.c (maybe_legitimize_operand_same_code): New function.
4238 (maybe_legitimize_operand): Use it when matching the original
4241 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4243 * genpreds.c (process_define_predicate): Move most processing
4244 to gensupport.c. Continue to validate the expression.
4245 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4246 (process_define_predicate): Move processing to gensupport.c.
4247 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4248 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4249 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4251 (valid_predicate_name_p): New function, split out from old
4252 genpreds.c:process_define_predicate.
4253 (process_define_predicate): New function, combining code from
4254 old genpreds.c and genrecog.c functions.
4255 (process_rtx): Call it for DEFINE_PREDICATE and
4256 DEFINE_SPECIAL_PREDICATE.
4258 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4260 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4261 size of a '%A' memory reference.
4262 (T_DREG, T_QREG): New neon_builtin_type_bits.
4263 (arm_init_neon_builtins): Assert that the load and store operands
4264 are neon_struct_operands.
4265 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4266 (NEON_ARG_MEMORY): New builtin_arg.
4267 (neon_dereference_pointer): New function.
4268 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4269 Handle NEON_ARG_MEMORY.
4270 (arm_expand_neon_builtin): Update after above interface changes.
4271 Use NEON_ARG_MEMORY for loads and stores.
4272 * config/arm/predicates.md (neon_struct_operand): New predicate.
4273 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4274 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4275 (V_four_elem): Tweak formatting.
4276 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4277 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4278 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4279 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4280 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4281 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4282 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4283 Use %A in the output template.
4284 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4285 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4286 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4287 the width of the memory access. Remove post-increment.
4288 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4290 2011-04-12 Nick Clifton <nickc@redhat.com>
4292 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4293 instruction for interrupt handlers if the target is the basic V850
4295 (expand_epilogue): Likewise.
4297 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4299 PR rtl-optimization/48549
4300 * combine.c (propagate_for_debug): Also stop after BB_END of
4301 this_basic_block. Process LAST and just stop processing after it.
4302 (combine_instructions): If last_combined_insn has been deleted,
4303 set last_combined_insn to its PREV_INSN.
4305 2011-04-12 Richard Guenther <rguenther@suse.de>
4307 PR tree-optimization/46076
4308 * gimple.h (struct gimple_statement_call): Add fntype field.
4309 (gimple_call_fntype): Adjust.
4310 (gimple_call_set_fntype): New function.
4311 * gimple.c (gimple_build_call_1): Set the call function type.
4312 * gimplify.c (gimplify_call_expr): Preserve the function
4313 type the frontend used for the call.
4314 (gimplify_modify_expr): Likewise.
4315 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4317 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4319 * tree-ssa.c (useless_type_conversion_p): Function pointer
4320 conversions are useless.
4322 2011-04-12 Martin Jambor <mjambor@suse.cz>
4324 * cgraph.h (cgraph_node): Remove function declaration.
4325 (cgraph_create_node): Declare.
4326 (cgraph_get_create_node): Likewise.
4327 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4328 Updated all callers.
4329 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4330 the decl does not already exist. Call cgraph_get_create_node instead
4332 (cgraph_get_create_node): New function.
4333 (cgraph_same_body_alias): Update comment.
4334 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4335 assert it does not return NULL.
4336 (cgraph_update_edges_for_call_stmt): Likewise.
4337 (cgraph_clone_edge): Likewise.
4338 (cgraph_create_virtual_clone): Likewise.
4339 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4340 instead of cgraph_node.
4341 (cgraph_add_new_function): Call cgraph_create_node or
4342 cgraph_get_create_node instead of cgraph_node.
4343 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4344 instead of cgraph_node.
4345 (record_eh_tables): Likewise.
4346 (mark_address): Likewise.
4347 (mark_load): Likewise.
4348 (build_cgraph_edges): Call cgraph_get_create_node instead
4350 (rebuild_cgraph_edges): Likewise.
4351 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4352 instead of cgraph_node.
4353 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4355 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4356 cgraph_create_node instead of cgraph_node.
4357 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4359 * lto-cgraph.c (input_node): Likewise.
4360 * lto-streamer-in.c (input_function): Likewise.
4361 * varasm.c (mark_decl_referenced): Likewise.
4362 (assemble_alias): Likewise.
4364 2011-04-12 Martin Jambor <mjambor@suse.cz>
4366 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4367 instead of cgraph_node and assert it does not return NULL.
4368 * lto-streamer-in.c (lto_read_body): Likewise.
4369 * omp-low.c (new_omp_context): Likewise.
4370 (create_task_copyfn): Likewise.
4371 * tree-emutls.c (lower_emutls_function_body): Likewise.
4372 * matrix-reorg.c (transform_allocation_sites): Likewise.
4374 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4377 * c-typeck.c (build_asm_expr): Error out on attempts to use
4378 void type outputs or inputs for constraints that allow reg or
4381 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4382 Richard Earnshaw <rearnsha@arm.com>
4385 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4386 to use sign-magnitude offsets. Reject unsupported unaligned
4387 cases. Add detailed description in comments.
4388 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4389 condition from TARGET_32BIT to TARGET_ARM.
4391 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4393 * tree.h (struct typed_tree): New.
4394 (struct tree_common): Include it instead of tree_base.
4395 (TREE_TYPE): Update for new location of type field.
4396 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4397 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4398 (union tree_node): Add typed field.
4399 * treestruct.def (TS_TYPED): New.
4400 * lto-streamer.c (check_handled_ts_structures): Handle it.
4401 * tree.c (MARK_TS_TYPED): New macro.
4402 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4404 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4406 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4407 (force_nonfallthru): Do not alter the loop nest if no basic block
4410 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4412 * config/i386/sse.md (VI): New mode iterator.
4414 (AVX256MODEI): Ditto.
4415 (AVXMODEF4P): Ditto.
4416 (avxvecpsmode): Ditto.
4417 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4418 (sse2_andnot<mode>3): New expander.
4419 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4420 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4421 (<any_logic:code><mode>3): Use VI mode iterator.
4422 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4423 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4424 (*andnottf3): Handle AVX three-operand constraints.
4425 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4427 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4428 Robert Millan <rmh@gnu.org>
4430 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4431 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4432 GNU_USER_DYNAMIC_LINKER64): Define.
4433 (REG_NAME): Don't undefine.
4434 (MD_UNWIND_SUPPORT): Undefine.
4435 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4436 (REG_NAME): Don't undefine.
4437 (MD_UNWIND_SUPPORT): Undefine.
4438 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4440 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4442 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4443 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4445 2011-04-11 Xinliang David Li <davidxl@google.com>
4447 * value-profile.c (check_ic_target): New function.
4448 (gimple_ic_transform): Sanity check indirect call target.
4449 * gimple-low.c (gimple_check_call_args): Interface change.
4450 (gimple_check_call_matching_types): New function.
4451 * tree-inline.c (tree_can_inline_p): Call new function.
4453 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4455 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4456 tree-pretty-print.h & realmpfr.h.
4458 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4461 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4462 (setup_allocno_and_important_classes): Ditto.
4464 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4466 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4467 GNU_USER_DYNAMIC_LINKER.
4468 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4469 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4470 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4471 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4472 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4473 GNU_USER_TARGET_OS_CPP_BUILTINS.
4474 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4475 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4476 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4477 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4478 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4479 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4480 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4481 GNU_USER_TARGET_OS_CPP_BUILTINS.
4482 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4483 GNU_USER_DYNAMIC_LINKER.
4484 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4485 GNU_USER_TARGET_OS_CPP_BUILTINS.
4486 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4487 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4488 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4489 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4490 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4491 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4492 GNU_USER_DYNAMIC_LINKER64): Remove.
4493 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4494 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4495 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4496 GNU_USER_DYNAMIC_LINKER.
4497 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4498 GNU_USER_TARGET_OS_CPP_BUILTINS.
4499 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4500 GNU_USER_TARGET_OS_CPP_BUILTINS.
4501 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4502 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4503 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4504 GNU_USER_TARGET_OS_CPP_BUILTINS.
4505 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4506 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4507 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4508 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4509 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4510 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4511 GNU_USER_DYNAMIC_LINKER.
4512 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4513 GNU_USER_TARGET_OS_CPP_BUILTINS.
4514 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4515 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4516 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4517 GNU_USER_DYNAMIC_LINKER.
4518 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4519 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4520 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4521 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4522 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4523 GNU_USER_DYNAMIC_LINKER.
4524 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4525 GNU_USER_DYNAMIC_LINKERN32.
4526 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4527 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4528 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4529 GNU_USER_DYNAMIC_LINKER32.
4530 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4531 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4532 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4533 GNU_USER_DYNAMIC_LINKER.
4534 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4535 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4536 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4537 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4538 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4539 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4540 GNU_USER_DYNAMIC_LINKER32.
4541 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4542 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4543 GNU_USER_DYNAMIC_LINKER.
4544 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4545 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4546 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4547 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4548 GNU_USER_DYNAMIC_LINKER64.
4549 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4550 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4551 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4552 GNU_USER_DYNAMIC_LINKER.
4553 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4554 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4555 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4556 GNU_USER_DYNAMIC_LINKER.
4557 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4558 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4559 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4560 GNU_USER_DYNAMIC_LINKER32.
4561 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4562 GNU_USER_DYNAMIC_LINKER64.
4563 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4564 GNU_USER_DYNAMIC_LINKER64.
4565 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4566 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4567 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4568 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4569 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4571 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4573 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4574 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4575 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4576 GNU_USER_DYNAMIC_LINKER.
4577 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4578 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4579 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4580 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4581 GNU_USER_DYNAMIC_LINKER64.
4582 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4583 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4584 GNU_USER_LINK_EMULATION.
4585 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4586 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4587 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4588 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4589 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4590 CPP_SPEC, CC1_SPEC): Remove.
4591 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4592 (GNU_USER_DYNAMIC_LINKER): Define.
4593 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4594 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4595 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4596 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4597 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4598 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4599 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4600 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4601 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4602 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4603 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4604 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4605 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4606 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4607 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4608 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4609 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4610 GNU_USER_DYNAMIC_LINKER.
4611 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4612 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4613 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4614 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4615 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4616 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4617 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4618 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4619 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4620 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4622 2011-04-11 Kai Tietz <ktietz@redhat.com>
4626 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4627 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4629 (ix86_is_msabi_thiscall): Removed.
4630 (ix86_is_type_thiscall): Likewise.
4631 (ix86_get_callcvt): New function.
4632 (ix86_comp_type_attributes): Simplify check.
4633 (ix86_function_regparm): Use ix86_get_callcvt for calling
4634 convention attribute checks.
4635 (ix86_return_pops_args): Likewise.
4636 (ix86_static_chain): Likewise.
4637 (x86_this_parameter): Likewise.
4638 (x86_output_mi_thunk): Likewise.
4639 (ix86_function_type_abi): Optimize check for types without attributes.
4640 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4641 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4642 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4644 (IX86_BASE_CALLCVT): Helper macro.
4645 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4646 Use ix86_get_callcvt for calling convention attribute checks and avoid
4647 symbol-decoration for stdcall in TARGET_RTD case.
4648 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4650 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4653 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4655 * config/i386/sse.md (VI_128): New mode iterator.
4656 (VI12_128): Rename from SSEMODE12.
4657 (VI14_128): Rename from SSEMODE14.
4658 (VI124_128): New mode iterator.
4659 (VI24_128): Rename from SSEMODE248.
4660 (VI248_128): Rename from SSEMODE248.
4661 (SSEMODE124C8): Remove.
4662 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4663 (*sse2_<plusminus_insn><mode>3): Merge with
4664 *avx_<plusminus_insn><mode>3.
4665 (*mulv8hi3): Merge with *avx_mulv8hi3.
4666 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4667 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4668 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4669 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4670 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4671 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4672 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4673 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4674 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4675 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4676 (*<smaxmin:code>v8hi3): Ditto.
4677 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4678 (*<smaxmin:code>v16qi3): Ditto.
4679 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4680 (*sse2_eq<mode>3): Ditto.
4681 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4682 (*sse2_gt<mode>3): Ditto.
4683 (vcondv2di): Split out of vcond<mode>.
4684 (vconduv2di): Split out of vcondu<mode>.
4686 2011-04-11 Richard Guenther <rguenther@suse.de>
4688 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4689 before calling tree_low_cst.
4691 2011-04-11 Richard Guenther <rguenther@suse.de>
4693 * stor-layout.c (layout_type): Compute all array index size operations
4694 in the original type.
4695 (initialize_sizetypes): Add comment.
4696 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4698 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4700 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4702 2011-04-11 Martin Jambor <mjambor@suse.cz>
4704 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4705 of cgraph_node, handle NULL return value.
4706 (cgraph_global_info): Likewise.
4707 (cgraph_rtl_info): Likewise.
4708 * tree-inline.c (estimate_num_insns): Likewise.
4709 * gimplify.c (unshare_body): Likewise.
4710 (unvisit_body): Likewise.
4711 (gimplify_body): Likewise.
4712 * predict.c (optimize_function_for_size_p): Likewise.
4713 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4714 (call_may_clobber_ref_p_1): Likewise.
4715 * varasm.c (function_section_1): Likewise.
4716 (assemble_start_function): Likewise.
4718 2011-04-11 Martin Jambor <mjambor@suse.cz>
4720 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4722 * final.c (rest_of_clean_state): Likewise.
4723 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4724 * passes.c (pass_init_dump_file): Likewise.
4725 (execute_all_ipa_transforms): Likewise.
4726 (function_called_by_processed_nodes_p): Likewise.
4727 * predict.c (maybe_hot_frequency_p): Likewise.
4728 (probably_never_executed_bb_p): Likewise.
4729 (compute_function_frequency): Likewise.
4730 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4731 (unnest_nesting_tree_1): Likewise.
4732 (lower_nested_functions): Likewise.
4733 * tree-optimize.c (execute_fixup_cfg): Likewise.
4734 (tree_rest_of_compilation): Likewise.
4735 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4736 * tree-sra.c (ipa_early_sra): Likewise.
4737 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4738 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4739 * ipa.c (record_cdtor_fn): Likewise.
4740 * ipa-inline.c (cgraph_early_inlining): Likewise.
4741 (compute_inline_parameters_for_current): Likewise.
4742 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4743 * ipa-pure-const.c (local_pure_const): Likewise.
4744 * ipa-split.c (split_function): Likewise.
4745 (execute_split_functions): Likewise.
4746 * cgraphbuild.c (build_cgraph_edges): Likewise.
4747 (rebuild_cgraph_edges): Likewise.
4748 (cgraph_rebuild_references): Likewise.
4749 (remove_cgraph_callee_edges): Likewise.
4750 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4751 (verify_cgraph_node): Likewise.
4752 (cgraph_analyze_functions): Likewise.
4753 (cgraph_preserve_function_body_p): Likewise.
4754 (save_inline_function_body): Likewise.
4755 (save_inline_function_body): Likewise.
4756 * tree-inline.c (copy_bb): Likewise.
4757 (optimize_inline_calls): Likewise.
4759 2011-04-11 Martin Jambor <mjambor@suse.cz>
4761 PR tree-optimization/48195
4762 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4763 ipa_check_create_edge_args.
4764 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4765 ipa_check_create_edge_args.
4766 * ipa-inline.c (inline_generate_summary): Do not call
4767 ipa_check_create_node_params and ipa_check_create_edge_args.
4768 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4769 ipa_check_create_edge_args.
4771 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4773 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4775 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4776 * function.c (record_hard_reg_sets): Likewise.
4777 * ira.c (compute_regs_asm_clobbered): Likewise.
4778 * sched-deps.c (sched_analyze_1): Likewise.
4779 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4781 2011-04-09 Xinliang David Li <davidxl@google.com>
4783 PR tree-optimization/PR48484
4784 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4785 has_valid_pred lazily
4787 2011-04-09 Duncan Sands <baldrick@free.fr>
4789 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4791 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4793 * combine.c (combine_validate_cost): Adjust comments. Set registered
4794 cost of I0 to zero at the end, if any.
4796 2011-04-08 Xinliang David Li <davidxl@google.com>
4798 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4799 to insane profile data.
4801 2011-04-08 Xinliang David Li <davidxl@google.com>
4803 * ipa-cp.c (ipcp_update_profiling): Correct
4804 negative scale factor due to insane profile data.
4806 2011-04-08 Xinliang David Li <davidxl@google.com>
4808 * final.c (dump_basic_block_info): New function.
4809 (final): Dump basic block.
4810 (final_scan_insn): Remove old dump.
4812 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4815 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4818 2011-04-08 Michael Matz <matz@suse.de>
4821 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4823 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4824 * rtl.h (rebuild_jump_labels_chain): Declare.
4825 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4826 insns inserted on edges.
4828 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4830 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4831 * config/arm/arm-arches.def: New.
4832 * config/arm/arm-opts.h: New.
4833 * config/arm/genopt.sh: New.
4834 * config/arm/arm-tables.opt: New (generated).
4835 * config/arm/arm.c (arm_handle_option, arm_target_help,
4836 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4837 (all_architectures): Get most table contents from arm-arches.def.
4838 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4839 arm_selected_tune here.
4840 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4841 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4842 (march=, mcpu=, mtune=): Use Enum and Var.
4843 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4844 (arm.o): Update dependencies.
4846 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4848 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4850 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4851 (write_typed_alloc_defns): Likewise.
4852 (main): Calls write_typed_alloc_defns with output_header.
4854 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4857 * ira-color.c (setup_profitable_hard_regs): Add comments.
4858 Don't take prohibited hard regs into account.
4859 (setup_conflict_profitable_regs): Rename to
4860 get_conflict_profitable_regs.
4861 (check_hard_reg_p): Check prohibited hard regs.
4863 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4865 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4866 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4867 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4869 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4872 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4873 move from floating point to shift amount register.
4874 (emit_move_sequence): Remove secondary reload support for floating
4875 point to shift amount amount register copies.
4876 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4877 amount register copies.
4878 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4879 register, return false if mode isn't a scalar integer mode.
4880 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4882 2011-04-08 Richard Guenther <rguenther@suse.de>
4884 * gimple.c (gimple_call_flags): Remove kludge.
4886 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4888 * sel-sched.c (sel_region_init): Move call to
4889 sel_setup_region_sched_flags after setup_current_loop_nest.
4891 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4893 PR rtl-optimization/48272
4894 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4895 init_insn_reg_pressure_info. Adjust a caller.
4896 * sched-int.h (init_insn_reg_pressure_info): Declare.
4897 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4898 when sched-pressure is enabled.
4900 2011-04-08 Richard Guenther <rguenther@suse.de>
4902 * gimple.c (gimple_set_modified): Do not queue calls to
4903 MODIFIED_NORETURN_CALLS here ...
4904 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4906 2011-04-08 Richard Guenther <rguenther@suse.de>
4909 * toplev.c (lang_dependent_init): Do not open asm_out_file
4910 in WPA mode, nor perform debug machinery initialization.
4911 (finalize): Do not unlink asm_out_file in WPA mode.
4913 2011-04-08 Richard Guenther <rguenther@suse.de>
4915 * gimple.h (gimple_call_fntype): New function.
4916 (gimple_call_return_type): Use it.
4917 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4918 * gimple-low.c (gimple_check_call_args): Likewise.
4919 * gimple.c (gimple_call_flags): Likewise.
4920 (gimple_call_arg_flags): Likewise.
4921 (gimple_call_return_flags): Likewise.
4922 * tree-cfg.c (verify_gimple_call): Likewise.
4923 (do_warn_unused_result): Likewise.
4924 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4925 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4927 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4929 PR rtl-optimization/48235
4930 * sel-sched.c (code_motion_process_successors): Recompute the last
4931 insn in basic block if control flow changed.
4932 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4933 Update condition for ilist_remove.
4935 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4937 PR rtl-optimization/48302
4938 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4939 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4940 it to record added preheader blocks.
4941 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4942 on to sel_add_loop_preheaders.
4943 (sel_region_init): Move call to setup_current_loop_nest after
4946 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4949 * cfgloop.h (loop_has_exit_edges): New helper.
4950 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4952 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4953 that have no exit edges.
4955 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4957 PR rtl-optimization/48442
4958 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4959 all callers. Adjust assert.
4961 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4963 PR tree-optimization/48377
4964 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4965 is_packed to true even for types with smaller TYPE_ALIGN than
4968 2011-04-08 Richard Guenther <rguenther@suse.de>
4971 * doc/tm.texi: Re-generate.
4973 2011-04-08 Wei Guozhi <carrot@google.com>
4976 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4977 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4978 * config/arm/arm.md (*push_multi): Change the length computation to
4981 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4983 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4984 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4985 * doc/tm.texi: Regenerate.
4986 * system.h (ASM_OUTPUT_BSS): Poison.
4987 * varasm.c (asm_output_bss): Remove function.
4988 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4990 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4991 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4992 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4993 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4995 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4997 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4999 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5001 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5003 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5006 2011-04-07 Joseph Myers <joseph@codesourcery.com>
5008 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5009 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5010 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5012 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5013 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5014 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5015 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5016 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5017 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5018 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5019 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5020 options. Don't map other m68k options manually. Don't handle
5021 old-style options as canonical.
5022 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5023 * doc/install.texi (m68k-*-*): Document binutils version requirement.
5025 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5027 * basic-block.h (force_nonfallthru): Move to...
5028 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5029 (force_nonfallthru): ...here.
5030 * cfghooks.c (force_nonfallthru): New function.
5031 * cfgrtl.c (force_nonfallthru): Rename into...
5032 (rtl_force_nonfallthru): ...this.
5033 (commit_one_edge_insertion): Do not set AUX field.
5034 (commit_edge_insertions): Do not discover new basic blocks.
5035 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5036 (cfg_layout_rtl_cfg_hooks): Likewise.
5037 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5038 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5039 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5041 2011-04-07 Anatoly Sokolov <aesok@post.ru>
5043 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5046 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
5048 * config/i386/sse.md: Update copyright year.
5049 (avxcvtvecmode): Remove.
5050 (sse_movhlps): Merge with *avx_movhlps.
5051 (sse_movlhps): Merge with *avx_movlhps.
5052 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5053 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5054 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5055 (sse_loadhps): Merge with *avx_loadhps.
5056 (sse_storelps): Merge with *avx_storelps.
5057 (sse_loadlps): Merge with *avx_loadlps.
5058 (sse_movss): Merge with *avx_movss.
5059 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5060 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5061 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5062 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5063 (vec_set<mode>_0): Ditto.
5064 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5065 (sse4_1_insertps): Merge with *avx_insertps.
5066 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5067 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5068 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5069 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5070 (sse2_storehpd): Merge with *avx_storehpd.
5071 (sse2_loadhpd): Merge with *avx_loadhpd.
5072 (sse2_loadlpd): Merge with *avx_loadlpd.
5073 (sse2_movsd): Merge with *avx_movsd.
5074 (*vec_concatv2df): Merge with *vec_concatv2df.
5076 2011-04-07 Jakub Jelinek <jakub@redhat.com>
5079 * combine.c (combine_instructions): Add last_combined_insn,
5080 update it if insn is after it, pass it to all try_combine calls.
5081 (try_combine): Add last_combined_insn parameter, pass it instead of
5082 i3 to propagate_for_debug.
5084 2011-04-07 Nick Clifton <nickc@redhat.com>
5086 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5087 to handle MDR <-> data register transfers.
5088 (movhi_internal): Likewise.
5090 2011-04-07 Alan Modra <amodra@gmail.com>
5092 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5093 previous stack info.
5095 2011-04-07 Tom de Vries <tom@codesourcery.com>
5098 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5099 flow_find_cross_jump. Swap variables to implement backward replacement.
5100 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5102 2011-04-07 Tom de Vries <tom@codesourcery.com>
5105 * cfgcleanup.c (walk_to_nondebug_insn): New function.
5106 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5108 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5109 src1 or src2. Redirect edges to the last basic block. Update
5110 frequency and count on multiple basic blocks in case of fallthru.
5112 2011-04-07 Tom de Vries <tom@codesourcery.com>
5115 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5117 (old_insns_match_p): Change return type. Replace return false/true
5118 with return dir_none/dir_both. Use can_replace_by.
5119 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5120 direction from dir_p. Register replacement direction in dir, last_dir
5121 and afterlast_dir. Handle new return type of old_insns_match_p using
5122 merge_dir. Return replacement direction in dir_p.
5123 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5124 return type of old_insns_match_p.
5125 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5126 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5127 flow_find_cross_jump.
5128 * basic-block.h (enum replace_direction): New type.
5129 (flow_find_cross_jump): Add parameter to declaration.
5131 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5133 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5134 (AVXMODEDCVTPS2DQ): Ditto.
5135 (VEC_FLOAT_MODE): Ditto.
5136 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5137 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5138 (<any_logic:code><mode>3): Use VF mode iterator.
5139 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5140 Use VF mode iterator.
5141 (copysign<mode>3): Use VF mode iterator.
5142 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5143 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5144 (*<any_logic:code><MODEF:mode>3): Merge with
5145 *avx_<any_logic:code><MODEF:mode>3.
5146 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5147 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5148 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5149 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5150 (sse2_cvtdq2ps): Use %v modifier.
5151 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5152 (avx_cvtps2dq<avxmodesuffix>): Remove.
5153 (sse2_cvtps2dq): Use %v modifier.
5154 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5155 (avx_cvttps2dq<avxmodesuffix>): Remove.
5156 (sse2_cvttps2dq): Use %v modifier.
5157 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5158 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5159 (sse2_cvtsd2siq): Fix insn template.
5160 (sse2_cvtsd2siq_2): Ditto.
5161 (sse2_cvttsd2siq): Ditto.
5162 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5163 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5165 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5167 * gcov-io.c: Use GCC Runtime Library Exception.
5169 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5172 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5173 as base_reg whatever register reg has been eliminated to, instead
5174 of hardcoding STACK_POINTER_REGNUM.
5176 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5178 * doc/tm.texi.in: Document C target hooks as separate from general
5180 * doc/tm.texi: Regenerate.
5181 * genhooks.c (struct hook_desc): Add docname field.
5182 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5184 (hook_array): Include c-target.def.
5185 (emit_documentation): Use docname field in output.
5186 (emit_init_macros): Take docname argument. Only emit definitions
5187 for hooks matching docname.
5188 (main): Expect additional arguments in all cases. Pass argument
5189 to emit_init_macros.
5190 * target.def: Move initial macro definitions and comments to
5191 target-hooks-macros.h.
5192 (gcc_targetcm): Move to c-family/c-target.def.
5193 * target.h (targetcm): Move declaration to c-family/c-target.h.
5194 * targhooks.c (default_handle_c_option): Move to
5196 * targhooks.h (default_handle_c_option): Move declaration to
5197 c-family/c-common.h.
5198 * target-hooks-macros.h: New file.
5199 * config.gcc (target_has_targetcm): Define and use to add to
5200 c_target_objs and cxx_target_objs.
5201 * config/default-c.c: New file.
5202 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5203 of target.h and target-def.h.
5204 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5205 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5206 darwin_check_cfstring_format_arg): Make static.
5207 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5208 TARGET_STRING_OBJECT_REF_TYPE_P,
5209 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5210 * config/darwin-protos.h (darwin_objc_construct_string,
5211 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5213 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5214 TARGET_STRING_OBJECT_REF_TYPE_P,
5215 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5216 * config/t-darwin (darwin-c.o): Update dependencies.
5217 * system.h (TARGET_HAS_TARGETCM): Poison.
5218 * Makefile.in (TARGET_H): Update.
5219 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5220 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5221 (default-c.o): New target.
5222 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5223 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5224 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5226 (build/genhooks.o): Update dependencies.
5228 2011-04-06 Richard Guenther <rguenther@suse.de>
5230 * ipa-inline.c (enum inlining_mode): Remove.
5231 (cgraph_flatten): Use some other token.
5232 (cgraph_edge_early_inlinable_p): New function, split out from ...
5233 (cgraph_perform_always_inlining): New function, split out from ...
5234 (cgraph_decide_inlining_incrementally): ... here.
5235 (cgraph_mark_inline_edge): Adjust.
5236 (cgraph_early_inlining): Re-structure.
5237 (pass_early_inline): Require SSA form.
5239 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5240 Julian Brown <julian@codesourcery.com>
5241 Mark Shinwell <shinwell@codesourcery.com>
5243 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5244 LO_REGS only for Thumb-1.
5245 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5246 be used in short instructions when optimising for size on Thumb-2.
5248 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5250 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5251 associated with user returns to be preserved.
5253 2011-04-06 Tristan Gingold <gingold@adacore.com>
5255 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5256 symbol_queue_size, DBXOUT_DECR_NESTING,
5257 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5258 if XCOFF_DEBUGGING_INFO.
5260 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5262 * config/i386/i386.md (attribute isa): New.
5263 (attribute enabled): New.
5264 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5265 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5266 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5267 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5268 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5269 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5270 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5271 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5273 * config/i386/sse.md (VF): New mode iterator.
5277 (SSEMODEF4): Remove.
5278 (attribute sse): Handle V8SF and V4DF modes.
5279 (<absneg:code><mode>2): Use VF mode iterator.
5280 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5282 (<plusminus_insn><mode>3): Use VF mode iterator.
5283 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5284 Use VF mode iterator.
5285 (<sse>_vm<plusminus_insn><mode>3): Merge with
5286 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5287 (mul<mode>3): Use VF mode iterator.
5288 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5289 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5291 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5292 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5293 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5294 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5296 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5297 Use VF1 mode iterator.
5298 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5299 (sqrt<VF2:mode>2): New expander.
5300 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5301 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5302 and sqrtv2df2. Use VF mode iterator.
5303 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5305 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5306 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5307 Use VF1 mode iterator.
5308 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5309 (<smaxmin:code><mode>3): Use VF mode iterator.
5310 (*<smaxmin:code><mode>3_finite): Merge with
5311 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5312 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5313 (<sse>_vm<smaxmin:code><mode>2): Merge with
5314 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5315 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5317 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5319 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5320 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5321 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5322 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5323 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5325 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5326 Use VF_128 mode iterator.
5327 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5329 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5330 VF_128 mode iterator.
5331 (vcond<mode>): Use VF mode iterator.
5332 * config/i386/predicates.md (sse_comparison_operator): Merge with
5333 avx_comparison_float_operator. Do not declare as special_predicate.
5334 * config/i386/i386.c (struct builtin_description): Update for renamed
5336 (ix86_expand_args_builtin): Ditto.
5337 (ix86_expand_sse_compare_mask): Ditto.
5339 2011-04-06 Richard Guenther <rguenther@suse.de>
5341 * tree-inline.c (estimate_num_insns): For calls simply account
5342 for all passed arguments and a used return value.
5344 2011-04-06 Richard Guenther <rguenther@suse.de>
5346 PR tree-optimization/47663
5347 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5348 call_stmt_time fields.
5349 (cgraph_edge_inlinable_p): Declare.
5350 (cgraph_edge_recursive_p): New inline function.
5351 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5352 (cgraph_clone_edge): Copy it.
5353 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5354 Account for call stmt time.
5355 (cgraph_estimate_time_after_inlining): Take edge argument.
5356 (cgraph_estimate_edge_growth): Account call stmt size.
5357 (cgraph_estimate_size_after_inlining): Take edge argument.
5358 (cgraph_mark_inline_edge): Adjust.
5359 (cgraph_check_inline_limits): Likewise.
5360 (cgraph_recursive_inlining_p): Remove.
5361 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5362 (cgraph_decide_recursive_inlining): Take edge argument and
5364 (cgraph_decide_inlining_of_small_functions): Do not avoid
5365 diags for recursive inlining here.
5366 (cgraph_flatten): Adjust.
5367 (cgraph_decide_inlining_incrementally): Likewise.
5368 (estimate_function_body_sizes): Remove call cost handling.
5369 (compute_inline_parameters): Initialize caller edge call costs.
5370 (cgraph_estimate_edge_growth): New function.
5371 (cgraph_estimate_growth): Use it.
5372 (cgraph_edge_badness): Likewise.
5373 (cgraph_check_inline_limits): Take an edge argument.
5374 (cgraph_decide_inlining_of_small_functions): Adjust.
5375 (cgraph_decide_inlining): Likewise.
5376 * tree-inline.c (estimate_num_insns): Only account for call
5377 return value if it is used.
5378 (expand_call_inline): Avoid diagnostics on recursive inline
5380 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5381 (input_edge): Input edge call costs.
5383 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5385 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5387 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5389 * doc/invoke.texi (Spec Files): Fix typo.
5391 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5393 * profile.c (branch_prob): Move declaration of local variable. Remove
5394 obsolete ??? comment. Expand the location explicitly instead of using
5395 the LOCATION_FILE and LOCATION_LINE macros.
5397 2011-04-06 Wei Guozhi <carrot@google.com>
5400 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5401 (arm_cond_branch): Likewise.
5402 (arm_cond_branch_reversed): Likewise.
5403 (arm_jump): Likewise.
5404 (push_multi): Likewise.
5405 * config/arm/constraints.md (Py): New constraint.
5407 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5410 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5412 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5413 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5414 #ifdef DBX_DEBUGGING_INFO.
5416 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5419 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5420 if old and new states differ.
5422 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5424 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5425 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5426 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5427 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5428 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5430 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5431 ColdFire options to -mcpu= options.
5433 2011-04-05 Jeff Law <law@redhat.com>
5435 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5436 check if BB is a successor of LOOP->header and return
5437 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5439 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5441 * cprop.c (struct reg_use): Remove.
5442 (reg_use_table): Make an array of RTX.
5443 (find_used_regs, constprop_register, local_cprop_pass,
5444 bypass_block): Simplify users of reg_use_table.
5445 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5446 on one of the uses found by find_used_regs.
5448 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5451 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5454 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5456 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5458 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5460 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5463 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5465 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5467 * combine.c: Include obstack.h.
5468 (struct insn_link): Define.
5469 (uid_log_links): Adjust type.
5470 (FOR_EACH_LOG_LINK): New macro.
5471 (insn_link_obstack): Declare.
5472 (alloc_insn_link): Define.
5473 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5474 type of link variables.
5475 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5476 (try_combine, record_promoted_values, distribute_notes): Likewise.
5477 (distribute_links): Likewise. Tweak prototype.
5478 (clear_log_links): Delete.
5479 (adjust_for_new_dest): Call alloc_insn_link.
5480 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5482 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5484 * gcse.c (modify_mem_list): Convert to an array of VECs.
5485 (canon_modify_mem_list, compute_transp): Tweak formatting.
5486 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5487 (load_killed_in_block_p): Likewise.
5488 (record_last_mem_set_info): Likewise.
5489 (clear_modify_mem_tables): Likewise.
5491 2011-04-05 Tom de Vries <tom@codesourcery.com>
5494 * function.c (emit_use_return_register_into_block): Only define if
5497 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5499 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5501 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5503 * config/rx/rx-opts.h: New.
5504 * config/rx/rx.c (rx_cpu_type): Remove.
5505 (rx_handle_option): Don't assert that global structures are in
5506 use. Access variables via opts pointer. Defer most handling of
5507 OPT_mint_register_. Use error_at.
5508 (rx_option_override): Handle deferred OPT_mint_register_ here.
5509 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5510 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5511 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5512 (rx_cpu_types): New Enum and EnumValue entries.
5513 (mint-register=): Use Defer and use Var accordingly.
5515 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5517 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5518 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5519 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5521 (debug_free_queue, debug_nesting, symbol_queue_index):
5523 * dbxout.c: ...to here. Make static.
5525 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5527 * gcse.c (modify_pair): Define. Define a VEC of it.
5528 (canon_modify_mem_list): Convert to an array of VECs.
5529 (free_insn_expr_list_list): Delete.
5530 (clear_modify_mem_tables): Call VEC_free instead.
5531 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5532 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5533 (canon_list_insert, compute_transp): Likewise.
5535 2011-04-05 Tom de Vries <tom@codesourcery.com>
5538 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5541 2011-04-05 Tom de Vries <tom@codesourcery.com>
5544 * function.c (emit_use_return_register_into_block): New function.
5545 (thread_prologue_and_epilogue_insns): Use
5546 emit_use_return_register_into_block.
5548 2011-04-05 Tom de Vries <tom@codesourcery.com>
5551 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5554 2011-04-05 Tom de Vries <tom@codesourcery.com>
5556 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5558 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5560 * config/arm/arm.md (define_constants for unspec): Replace with
5562 (define_constants for unspecv): Replace with define_c_enum.
5563 * config/arm/neon.md (define_constants for unspec): Replace with
5566 2011-04-04 Richard Henderson <rth@redhat.com>
5569 * dwarf2out.c (output_line_info): Always emit line info from
5570 at least one section.
5571 (dwarf2out_init): Create text_section_line_info here ...
5572 (set_cur_line_info_table): ... not here.
5574 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5577 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5580 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5582 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5584 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5585 (expr_equiv_p): Remove.
5586 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5587 (hash_scan_set): Update call to insert_set_in_table.
5588 (dump_hash_table): Dump <dest, src> pair.
5589 (lookup_set): Simplify. Lookup <dest, src> pair.
5590 (compute_transp): Remove, fold heavily simplified code into...
5591 (compute_local_properties): ...here. Expect COMP and TRANSP
5593 (find_avail_set): Take set directly from struct expr.
5594 (find_bypass-set): Likewise.
5595 (bypass_block): Likewise.
5596 (cprop_insn): Likewise. Remove redundant INSN_P test.
5598 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5599 checks on form of COND from find_implicit_sets to here.
5600 (find_implicit_sets): Cleanup control flow. Split critical edges
5601 if it exposes implicit sets. Allocate/resize implicit_sets as
5603 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5604 changed something. Run df_analyze after find_implicit_sets if any
5605 edges were split. Do not allocate implicit_sets here.
5607 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5608 (gcse_obstack): Renamed to cprop_obstack.
5609 (GNEW, GNEWVEC, GNEWVAR): Remove.
5611 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5612 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5613 (gcse_alloc): Likewise, and rename to cprop_alloc.
5614 (alloc_gcse_men, free_gcse_mem): Remove.
5615 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5616 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5617 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5619 * cprop.c (oprs_not_set_p): Remove.
5620 (mark_set, mark_clobber): Remove.
5621 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5622 (reg_not_set_p): New function.
5623 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5624 (cprop_insn): Likewise.
5625 (cprop_jump): Use FOR_EACH_EDGE.
5627 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5630 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5631 (rank_for_schedule): Use scheduled_insns vector instead of
5632 last_scheduled_insn.
5633 (ok_for_early_queue_removal): Likewise.
5634 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5636 (choose_ready): Likewise.
5637 (commit_schedule): Use VEC_iterate.
5638 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5639 a dbg_cnt, use it and ensure the first insn is in the ready list.
5640 (haifa_sched_init): Allocate scheduled_insns.
5641 (sched_extend_ready_list): Don't allocate it; reserve space.
5642 (haifa_sched_finish): Free it.
5644 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5646 * optc-gen.awk: Always remove type from Variable entry before
5647 recording in var_seen.
5649 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5651 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5652 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5653 call to tidy_fallthru_edges.
5655 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5657 * doc/options.texi (ToLower): Document.
5658 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5659 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5660 * opts.h (cl_option): Add cl_tolower field.
5661 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5662 arguments with lowercase strings.
5663 * config/rx/rx.opt (mcpu=): Add ToLower.
5664 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5667 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5669 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5671 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5673 * config/vax/vax.c: Include reload.h.
5675 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5677 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5678 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5679 (sparc_preferred_reload_class): New function.
5681 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5684 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5685 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5687 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5689 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5690 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5692 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5694 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5695 (ASM_OUTPUT_ALIGNED_BSS): Define.
5697 2011-04-03 Michael Matz <matz@suse.de>
5699 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5700 and next_slot members.
5701 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5702 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5703 (lto_streamer_cache_append): Declare.
5704 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5705 unsigned index, remove offset parameter, ensure that we append
5706 or update existing entries.
5707 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5708 parameter, update next_slot for append.
5709 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5711 (lto_streamer_cache_insert_at): Likewise.
5712 (lto_streamer_cache_append): New function.
5713 (lto_streamer_cache_lookup): Use unsigned index.
5714 (lto_streamer_cache_get): Likewise.
5715 (lto_record_common_node): Don't test tree_node_can_be_shared.
5716 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5717 (lto_streamer_cache_delete): Don't free offsets member.
5718 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5719 (lto_output_string_with_length): Use lto_output_data_stream.
5720 (lto_output_tree_header): Remove ix parameter, don't write it.
5721 (lto_output_builtin_tree): Likewise.
5722 (lto_write_tree): Adjust callers to above, don't track and write
5723 offset, write unsigned index.
5724 (output_unreferenced_globals): Don't emit all global vars.
5725 (write_global_references): Use unsigned indices.
5726 (lto_output_decl_state_refs): Likewise.
5727 (write_symbol): Likewise.
5728 * lto-streamer-in.c (lto_input_chain): Move earlier.
5729 (input_function): Use unsigned index.
5730 (input_alias_pairs): Don't read and then ignore all global vars.
5731 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5732 don't pass it back, use lto_streamer_cache_append.
5733 (lto_register_var_decl_in_symtab): Use unsigned index.
5734 (lto_register_function_decl_in_symtab): Likewise.
5735 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5737 (lto_get_builtin_tree): Don't read index, use
5738 lto_streamer_cache_append.
5739 (lto_read_tree): Adjust call to lto_materialize_tree.
5741 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5742 don't use function calls in arguments to MIN.
5744 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5747 * gimple.c (gimple_type_leader_entry): Mark deletable.
5749 2011-04-03 Alan Modra <amodra@gmail.com>
5751 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5753 2011-04-03 Michael Matz <matz@suse.de>
5755 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5757 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5759 2011-04-03 Michael Matz <matz@suse.de>
5761 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5762 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5763 without function context.
5764 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5765 current_function_decl and cfun.
5767 2011-04-03 Michael Matz <matz@suse.de>
5769 * tree.c (decl_init_priority_insert): Don't create entry for
5771 (decl_fini_priority_insert): Ditto.
5772 (fields_compatible_p, find_compatible_field): Remove.
5773 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5774 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5776 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5778 * combine.c (try_combine): Remove useless local variable.
5780 2011-04-03 Richard Guenther <rguenther@suse.de>
5781 Ira Rosen <ira.rosen@linaro.org>
5783 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5784 non-variable offsets and compare the remaining bases of the two
5785 accesses instead of looking for exact same data-ref.
5787 2011-04-02 Kai Tietz <ktietz@redhat.com>
5790 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5792 * i386.c (ix86_is_msabi_thiscall): New helper function.
5793 (ix86_is_type_thiscall): New helper function.
5794 (ix86_comp_type_attributes): Handle thiscall for method-functions
5796 (init_cumulative_args): Likewise.
5797 (find_drap_reg): Likewise.
5798 (ix86_static_chain): Likewise.
5799 (x86_this_parameter): Likewise.
5800 (x86_output_mi_thunk): Likewise.
5802 2011-04-01 Olivier Hainque <hainque@adacore.com>
5803 Nicolas Setton <setton@adacore.com>
5804 Eric Botcazou <ebotcazou@adacore.com>
5806 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5807 (add_gnat_descriptive_type_attribute): New function.
5808 (gen_array_type_die): Call it.
5809 (gen_enumeration_type_die): Likewise.
5810 (gen_struct_or_union_type_die): Likewise.
5811 (modified_type_die): Likewise.
5812 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5813 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5814 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5816 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5819 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5820 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5823 2011-03-17 Richard Guenther <rguenther@suse.de>
5826 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5827 origin for decls in other ltrans units.
5828 (input_varpool_node): Likewise.
5830 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5833 * expr.c (expand_assignment): Handle all possibilities
5834 if TO_RTX is CONCAT.
5835 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5836 (store_split_bit_field): If SUBREG_REG (op0) or
5837 op0 itself has smaller mode than word, return it
5838 for offset 0 and const0_rtx for out-of-bounds stores.
5839 If word is const0_rtx, skip it.
5841 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5843 * config/h8300/h8300.c (print_operand_address): Rename to...
5844 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5845 Call h8300_print_operand and h8300_print_operand_address instead of
5846 print_operand and print_operand_address. Declare.
5847 (print_operand): Renake to...
5848 (h8300_print_operand): ...this. Make static. Adjust comments.
5849 Call h8300_print_operand instead of print_operand. Declare.
5850 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5851 (h8300_register_move_cost): Likewise.
5852 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5853 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5854 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5855 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5856 * config/h8300/h8300-protos.h (print_operand): Delete.
5857 (print_operand_address): Delete.
5859 2011-04-01 Richard Henderson <rth@redhat.com>
5862 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5863 in strict mode before dwarf4. Re-order tests to early out
5864 before switching sections.
5866 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5868 * config/h8300/constraints.md: New file.
5869 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5870 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5871 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5872 * config/h8300/predicates.md (bit_operand): Likewise.
5873 (incdec_operand): Use satisfies_constraint_M and
5874 satisfies_constraint_O. Don't use C code block.
5875 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5876 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5877 (compute_mov_length): Use satisfies_constraint_G.
5878 (fix_bit_operand): Use satisfies_constraint_U.
5879 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5880 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5881 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5882 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5883 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5884 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5885 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5886 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5887 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5888 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5889 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5890 (EXTRA_MEMORY_CONSTRAINT): Delete.
5892 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5893 Michael Meissner <meissner@linux.vnet.ibm.com>
5896 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5897 operands, as per the specifications.
5899 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5900 (vec_extract_evenv4sf): Ditto.
5901 (vec_extract_evenv8hi): Ditto.
5902 (vec_extract_evenv16qi): Ditto.
5903 (vec_extract_oddv4si): Ditto.
5905 2011-03-31 Mark Wielaard <mjw@redhat.com>
5907 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5908 high_pc attribute if the CU has no associated code. Only output
5909 DW_AT_entry_pc for CU if not generating strict dwarf and
5912 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5914 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5915 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5917 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5918 * final.c (final_start_function): Call the new function rather
5919 than using a NULL argument for dwarf2out_frame_debug.
5921 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5922 that contains the prologue.
5924 * haifa-sched.c (queue_insn): New arg REASON. All callers
5925 changed. Print it in debugging output.
5927 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5929 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5930 Split most of the code into...
5931 (begin_move_insn): ... here. New function.
5932 (ebb_sched_info): Add a pointer to it.
5933 * haifa-sched.c (scheduled_insns): New static variable.
5934 (sched_extend_ready_list): Allocate it.
5935 (schedule_block): Use it to record the order of scheduled insns.
5936 Perform RTL changes to move insns only after all scheduling
5937 decisions have been made.
5938 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5939 begin_move_insn field.
5940 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5941 * sched-int.h (struct haifa_sched_info): Remove second argument
5942 from begin_schedule_ready hook. Add new member begin_move_insn.
5943 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5944 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5946 * haifa-sched.c (prune_ready_list): New function, broken out of
5948 (schedule_block): Use it.
5950 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5952 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5954 2011-04-01 Kai Tietz <ktietz@redhat.com>
5956 * config.gcc (*-*-mingw*): Allow as option the
5957 posix threading model.
5958 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5959 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5961 (CPP_SPEC): Add pthread/no-pthread handling.
5962 (LIB_SPEC): Likewise.
5963 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5964 (LIB_SPEC): Likewise.
5965 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5966 flag to pass -pthread option for shared libgcc build.
5967 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5968 for shared libgcc build.
5969 * config/i386/t-mingw-pthread: New file.
5970 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5971 New define to enable use of library pthread by default.
5972 * config/i386/mingw.opt (pthread): New driver option.
5973 (no-pthread): New driver option.
5974 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5975 * config/i386/mingw-w64.opt: Likewise.
5977 2011-04-01 Gary Funck <gary@intrepid.com>
5979 * c-decl.c (grokdeclarator): Fix formatting.
5981 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5983 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5984 instead of n_operands.
5985 (set_storage_via_setmem): Likewise.
5986 * optabs.c (maybe_gen_insn): Likewise.
5987 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5988 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5989 (mips_expand_builtin_direct): Likewise.
5990 * config/spu/spu.c (expand_builtin_args): Likewise.
5992 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5994 * recog.h (insn_data_d): Add n_generator_args.
5995 * genoutput.c (data): Likewise.
5996 (output_insn_data): Print it.
5997 (max_opno, num_dups): Delete.
5998 (scan_operands): Just fill in "d->operand[...]".
5999 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6001 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6003 * gensupport.h (pattern_stats): New structure.
6004 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6005 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6006 (max_operand_1, max_operand_vec): Delete.
6007 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6009 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6011 * emit-rtl.c (emit_pattern_after_setloc): New function.
6012 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6013 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6014 (emit_pattern_after): New function.
6015 (emit_insn_after, emit_jump_insn_after): Call it.
6016 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6017 (emit_pattern_before_setloc): New function.
6018 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6019 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6021 (emit_pattern_before): New function.
6022 (emit_insn_before, emit_jump_insn_before): Call it.
6023 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6025 2011-03-31 Richard Henderson <rth@redhat.com>
6027 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6028 (dw_separate_line_info_entry): Remove.
6029 (enum dw_line_info_opcode): New.
6030 (dw_line_info_entry): Use it.
6031 (dw_line_info_table, dw_line_info_table_p): New.
6032 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6033 (line_info_table, line_info_label_num): Remove.
6034 (line_info_table_in_use): Remove.
6035 (separate_line_info_table): Remove.
6036 (separate_line_info_table_allocated): Remove.
6037 (separate_line_info_table_in_use): Remove.
6038 (LINE_INFO_TABLE_INCREMENT): Remove.
6039 (line_info_label_num): New.
6040 (cur_line_info_table): New.
6041 (text_section_line_info, cold_text_section_line_info): New.
6042 (separate_line_info): New.
6043 (SEPARATE_LINE_CODE_LABEL): Remove.
6044 (print_dwarf_line_table): Remove.
6045 (debug_dwarf): Don't dump it.
6046 (output_one_line_info_table): New.
6047 (output_line_info): Use it.
6048 (new_line_info_table): New.
6049 (set_cur_line_info_table): New.
6050 (dwarf2out_switch_text_section): Use it.
6051 (dwarf2out_begin_function): Likewise.
6052 (push_dw_line_info_entry): New.
6053 (dwarf2out_source_line): Rewrite for new line info tables.
6054 (dwarf2out_init): Remove dead initailizations.
6056 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6058 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6060 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6061 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6062 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6063 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6064 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6065 * opt-functions.awk (flag_init, switch_bit_fields): New.
6066 (switch_flags): Don't handle flags moved to bit-fields. Don't
6067 generate CL_MISSING_OK or CL_SAVE.
6068 * optc-gen.awk: Update to generate bit-field output as well as
6070 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6071 bit-field instead of CL_REJECT_DRIVER flag.
6072 * opts-common.c (generate_canonical_option,
6073 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6074 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6075 instead of CL_REJECT_NEGATIVE flag.
6076 * toplev.c (print_switch_values): Use cl_report bit-field instead
6079 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6081 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6082 a zero minimum index only if it is redundant.
6084 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6086 PR rtl-optimization/48381
6087 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6088 instead of ira_class_hard_reg_index for calculating conflicting
6091 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6093 * cprop.c: Clean up hash table building.
6094 (reg_avail_info): Remove.
6095 (oprs_available_p): Remove.
6096 (record_last_reg_set_info): Remove.
6097 (record_last_set_info): Remove.
6098 (reg_available_p): New function.
6099 (gcse_constant_p): Do not treat unfolded conditions as constants.
6100 (make_set_regs_unavailable): New function.
6101 (hash_scan_set): Simplify with new reg_available_p.
6102 (compute_hash_table_work): Traverse insns stream only once.
6103 Do not compute reg_avail_info. Traverse insns in reverse order.
6104 Record implicit sets after recording explicit sets from the block.
6106 2011-03-31 Michael Matz <matz@suse.de>
6108 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6110 2011-03-31 Anatoly Sokolov <aesok@post.ru>
6112 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6113 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6114 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6115 (h8300_mode_dependent_address_p): New function.
6116 (h8300_get_index): Make static.
6118 2011-03-31 Jeff Law <law@redhat.com>
6120 * reload1.c (elimination_effects): Fix typo in recent change.
6122 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6123 typo potentially leading to null pointer dereference.
6125 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6126 (setup_save_areas): Corresponding changes to avoid useless
6129 * jump.c (reversed_comparison_code_parts): Avoid successive return
6130 statements when REVERSE_CONDITION is defined.
6132 * expr.c (expand_assignment): Avoid useless assignments.
6133 (expand_expr_real_1): Likewise.
6134 (expand_expr_real_2): Avoid useless statements.
6136 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6138 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6140 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6143 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6145 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6148 * doc/tm.texi.in (TARGET_VERSION): Remove.
6149 * doc/tm.texi: Regenerate.
6150 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6151 * collect2.c (main): Don't use TARGET_VERSION.
6152 * mips-tdump.c (main): Don't use TARGET_VERSION.
6153 * mips-tfile.c (main): Don't use TARGET_VERSION.
6154 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6155 * config/rs6000/vxworksae.h: Remove.
6156 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6157 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6158 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6159 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6160 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6161 * config/arm/arm.h (TARGET_VERSION): Remove.
6162 * config/arm/coff.h (TARGET_VERSION): Remove.
6163 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6164 * config/arm/elf.h (TARGET_VERSION): Remove.
6165 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6166 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6167 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6168 * config/arm/pe.h (TARGET_VERSION): Remove.
6169 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6170 * config/arm/semi.h (TARGET_VERSION): Remove.
6171 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6172 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6173 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6174 * config/avr/avr.h (TARGET_VERSION): Remove.
6175 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6176 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6177 * config/frv/frv.h (TARGET_VERSION): Remove.
6178 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6179 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6180 * config/i386/darwin.h (TARGET_VERSION): Remove.
6181 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6182 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6183 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6184 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6185 * config/i386/gnu.h (TARGET_VERSION): Remove.
6186 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6187 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6188 * config/i386/linux.h (TARGET_VERSION): Remove.
6189 * config/i386/linux64.h (TARGET_VERSION): Remove.
6190 * config/i386/lynx.h (TARGET_VERSION): Remove.
6191 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6192 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6193 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6194 * config/i386/netware.h (TARGET_VERSION): Remove.
6195 * config/i386/nto.h (TARGET_VERSION): Remove.
6196 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6197 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6198 * config/ia64/elf.h (TARGET_VERSION): Remove.
6199 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6200 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6201 * config/ia64/linux.h (TARGET_VERSION): Remove.
6202 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6203 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6204 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6205 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6206 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6207 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6208 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6209 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6210 * config/m68k/linux.h (TARGET_VERSION): Remove.
6211 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6212 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6213 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6214 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6215 * config/mep/mep.h (TARGET_VERSION): Remove.
6216 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6217 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6218 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6219 * config/mips/linux.h (TARGET_VERSION): Remove.
6220 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6221 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6222 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6223 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6224 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6225 * config/pa/pa.h (TARGET_VERSION): Remove.
6226 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6227 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6228 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6229 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6230 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6231 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6232 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6233 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6234 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6235 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6236 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6237 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6238 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6239 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6240 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6241 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6242 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6243 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6244 * config/s390/linux.h (TARGET_VERSION): Remove.
6245 * config/s390/s390.h (TARGET_VERSION): Remove.
6246 * config/s390/tpf.h (TARGET_VERSION): Remove.
6247 * config/score/score.h (TARGET_VERSION): Remove.
6248 * config/sh/linux.h (TARGET_VERSION): Remove.
6249 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6250 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6251 * config/sh/sh.h (TARGET_VERSION): Remove.
6252 * config/sh/sh64.h (TARGET_VERSION): Remove.
6253 * config/sh/superh.h (TARGET_VERSION): Remove.
6254 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6255 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6256 * config/sparc/linux.h (TARGET_VERSION): Remove.
6257 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6258 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6259 TARGET_NAME32, TARGET_NAME): Remove.
6260 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6261 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6262 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6263 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6264 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6265 * config/spu/spu.h (TARGET_VERSION): Remove.
6266 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6267 * config/v850/v850.h (TARGET_VERSION): Remove.
6268 * config/vax/linux.h (TARGET_VERSION): Remove.
6269 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6270 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6271 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6273 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6276 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6277 frame-related from frame-unrelated adjustments to the stack pointer.
6279 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6281 * common.opt (fdebug-types-section): Move earlier.
6282 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6284 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6286 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6289 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6291 * tree.h (CASE_CHAIN): Define.
6292 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6293 (gimple_redirect_edge_and_branch): Likewise.
6295 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6298 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6301 2011-03-30 Jeff Law <law@redhat.com>
6303 * PR bootstrap/48371
6304 * reload1.c (reload): Fix botch in last change.
6306 * reload.h (struct reload): Fix typo introduced in last change.
6308 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6310 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6311 Undocumented. Remove help text.
6312 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6315 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6317 * doc/options.texi (NegativeAlias): Document.
6318 (Alias): Mention NegativeAlias.
6319 * opt-functions.awk: Handle NegativeAlias.
6320 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6321 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6322 * opts.h (CL_NEGATIVE_ALIAS): Define.
6323 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6324 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6326 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6328 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6329 mno-spe and mno-isel instead of mspe=no and -misel=no.
6331 2011-03-29 Mark Wielaard <mjw@redhat.com>
6333 * common.opt (fdebug-types-section): New flag.
6334 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6335 * dwarf2out.c (use_debug_types): New define.
6336 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6337 (print_die): Guard output of type unit signatures using
6339 (build_abbrev_table): Replace assert of dwarf_version >= 4
6340 with assert on use_debug_types.
6341 (size_of_die): Likewise.
6342 (unmark_dies): Likewise.
6343 (value_format): Decide AT_ref_external form on use_debug_types.
6344 (output_die): Replace dwarf_version version check guard with
6345 use_debug_types where appropriate.
6346 (modified_type_die): Likewise.
6347 (gen_reference_type_die): Likewise.
6348 (dwarf2out_start_source_file): Likewise.
6349 (dwarf2out_end_source_file): Likewise.
6350 (prune_unused_types_walk_attribs): Likewise.
6351 (dwarf2out_finish): Likewise.
6353 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6355 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6357 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6359 PR rtl-optimization/48332
6360 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6361 mode of input operand N and modeN to its actual mode.
6363 2011-03-30 Jeff Law <law@redhat.com>
6365 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6366 define accessor macro.
6367 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6368 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6369 (reg_equiv_init): Likewise.
6370 (reg_equivs_size): New variable.
6371 (reg_equiv_init_size): Remove.
6372 (allocate_initial_values): Move prototype to here from....
6373 * integrate.h (allocate_initial_values): Remove prototype.
6374 * integrate.c: Include reload.h.
6375 (allocate_initial_values): Corresponding changes.
6376 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6377 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6378 (update_equiv_regs): Corresponding changes.
6379 (ira): Corresponding changes.
6380 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6381 (push_secondary_reload): Corresponding changes.
6382 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6383 (make_memloc, find_reloads_address): Corresponding changes.
6384 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6385 (find_reloads_address_1): Corresponding changes.
6386 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6387 (refers_to_regno_for_reload_p): Corresponding changes.
6388 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6389 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6390 * reload1.c: Include ggc.h.
6391 (grow_reg_equivs): New function.
6392 (replace_pseudos_in, reload): Corresponding changes.
6393 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6394 (eliminate_regs_1, elimination_effects): Corresponding changes.
6395 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6396 (delete_output_reload): Likewise.
6397 * caller-save.c (mark_referenced_regs): Corresponding changes.
6398 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6399 * frv/predicates.md (frv_load_operand): Corresponding changes.
6400 * microblaze/microblaze.c (double_memory_operand): Corresponding
6402 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6403 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6404 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6405 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6406 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6408 * pa/pa.c (emit_move_sequence): Corresponding changes.
6409 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6411 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6414 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6415 structure modes. Don't check neon_vector_mem_operand for
6416 vector or structure modes.
6418 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6419 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6422 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6423 operand 1 and reshuffle the operands to match.
6424 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6426 2011-03-30 Christian Schüler <cschueler@gmx.de>
6429 * config/c.opt (F): Added 'Driver' to -F option.
6432 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6434 * config/darwin.opt: Added '-arch' option.
6436 2011-03-30 Nick Clifton <nickc@redhat.com>
6438 * config/rx/rx.md: Add peepholes and patterns to combine
6439 extending loads and simple arithmetic instructions.
6440 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6441 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6442 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6443 modes to use pre-decrement and post-increment addressing.
6444 (rx_is_restricted_memory_address): Add range checking of REG+INT
6446 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6447 (rx_memory_move_cost): Adjust cost of stores.
6448 (rx_adjust_insn_length): New function.
6450 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6453 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6454 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6455 matching arg00/arg01 types.
6457 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6459 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6460 last_location to UNKNOWN_LOCATION.
6462 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6465 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6468 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6469 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6472 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6474 (sparc_cpu): Likewise.
6475 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6478 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6482 PR rtl-optimization/48345
6483 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6484 hard regs for given mode from profitable regs when doing secondary
6487 2011-03-29 Jeff Law <law@redhat.com>
6490 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6491 do_not_duplicate field.
6492 (lookup_redirection_data): Corresponding changes.
6493 (create_duplicates): Always create a template block.
6494 (redirect_edges): Remove code which reused the original block
6495 when it was going to become unreachable code.
6496 (thread_block): Don't set do_not_duplicate field.
6498 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6500 * lto-opts.c (register_user_option_p, lto_register_user_option):
6501 Make type argument unsigned.
6502 * lto-streamer.h (lto_register_user_option): Make type argument
6504 * opth-gen.awk: Make CL_* macros unsigned.
6505 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6506 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6507 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6508 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6509 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6510 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6511 (find_opt): Make lang_mask argument unsigned.
6513 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6515 PR rtl-optimization/48331
6516 PR rtl-optimization/48334
6517 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6518 for any used algorithm.
6520 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6522 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6525 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6527 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6528 (alpha_option_override): Don't set alpha_sr_alias_set.
6529 (emit_frame_store_1): Use gen_frame_mem rather than calling
6531 (alpha_expand_epilogue): Ditto.
6533 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6535 PR tree-optimization/48290
6536 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6537 vectorization, check that relevant phis in the basic block after
6538 the inner loop are really inner loop's exit phis.
6540 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6543 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6544 (cached_dw_loc_list_def): New structure.
6545 (cached_dw_loc_list): New typedef.
6546 (cached_dw_loc_list_table): New variable.
6547 (cached_dw_loc_list_table_hash): New function.
6548 (cached_dw_loc_list_table_eq): Likewise.
6549 (add_location_or_const_value_attribute): Take a bool cache_p.
6550 Cache the list when the parameter is true.
6551 (gen_formal_parameter_die): Update caller.
6552 (gen_variable_die): Likewise.
6553 (dwarf2out_finish): Likewise.
6554 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6555 while generating debug info for the decl.
6556 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6557 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6558 (resolve_addr): Cache the result of resolving a chain of
6561 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6563 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6564 conflict object hard regset nodes have intersecting hard reg sets.
6566 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6567 after regstat_init_n_sets_and_refs.
6569 * ira.c: Add more comments at the top.
6570 (setup_stack_reg_pressure_class, setup_pressure_classes):
6571 Add comments how we compute the register pressure classes.
6572 (setup_allocno_and_important_classes): Add more comments.
6573 (setup_class_translate_array, reorder_important_classes)
6574 (setup_reg_class_relations): Add comments.
6576 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6579 * ira-color.c: Add 2011 to the Copyright line.
6580 (assign_hard_reg): Add more comments.
6581 (improve_allocation): Ditto.
6583 * ira-costs.c: Add 2011 to the Copyright line.
6584 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6586 (setup_regno_cost_classes_by_mode): Ditto.
6588 Initial patches from ira-improv branch:
6590 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6592 * ira-build.c (ira_create_object): Remove initialization of
6593 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6594 (ira_create_allocno): Remove initialization of
6595 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6596 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6597 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6598 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6599 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6600 Initialize ALLOCNO_ADD_DATA.
6601 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6602 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6604 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6605 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6607 * ira.c (ira_reallocate): Remove.
6608 (setup_pressure_classes): Call
6609 ira_init_register_move_cost_if_necessary. Use
6610 ira_register_move_cost instead of ira_get_register_move_cost.
6611 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6612 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6614 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6615 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6616 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6617 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6618 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6619 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6621 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6622 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6623 (struct allocno_color_data): New.
6624 (allocno_color_data_t): New typedef.
6625 (allocno_color_data): New definition.
6626 (ALLOCNO_COLOR_DATA): New macro.
6627 (struct object_color_data): New.
6628 (object_color_data_t): New typedef.
6629 (object_color_data): New definition.
6630 (OBJECT_COLOR_DATA): New macro.
6631 (update_copy_costs, calculate_allocno_spill_cost): Call
6632 ira_init_register_move_cost_if_necessary. Use
6633 ira_register_move_cost instead of ira_get_register_move_cost.
6634 (move_spill_restore, update_curr_costs): Ditto.
6635 (allocno_spill_priority): Make it inline.
6636 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6637 (struct coalesce_data, coalesce_data_t): New.
6638 (allocno_coalesce_data): New definition.
6639 (ALLOCNO_COALESCE_DATA): New macro.
6640 (merge_allocnos, coalesced_allocno_conflict_p): Use
6641 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6642 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6643 (coalesce_allocnos): Ditto.
6644 (setup_coalesced_allocno_costs_and_nums): Ditto.
6645 (collect_spilled_coalesced_allocnos): Ditto.
6646 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6647 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6648 (coalesce_spill_slots): Ditto.
6649 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6650 free allocno_coalesce_data.
6652 * ira-conflicts.c: Fix formatting.
6653 (process_regs_for_copy): Call
6654 ira_init_register_move_cost_if_necessary. Use
6655 ira_register_move_cost instead of ira_get_register_move_cost.
6656 (build_object_conflicts): Optimize.
6658 * ira-costs.c (record_reg_classes): Optimize. Call
6659 ira_init_register_move_cost_if_necessary. Use
6660 ira_register_move_cost, ira_may_move_in_cost, and
6661 ira_may_move_out_cost instead of ira_get_register_move_cost and
6662 ira_get_may_move_cost.
6663 (record_address_regs): Ditto.
6664 (scan_one_insn): Optimize.
6665 (find_costs_and_classes): Optimize.
6666 (process_bb_node_for_hard_reg_moves): Call
6667 ira_init_register_move_cost_if_necessary. Use
6668 ira_register_move_cost instead of ira_get_register_move_cost.
6670 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6671 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6672 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6673 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6675 (ira_initiate_emit_data, ira_finish_emit_data)
6676 (create_new_allocno): New functions.
6677 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6678 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6679 Use ira_register_move_cost instead of ira_get_register_move_cost.
6681 * ira-int.h: Fix some comments.
6682 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6683 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6684 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6685 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6687 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6688 bitfield after mode. Make hard_regno a short int. Make
6689 hard_regno short. Remove first_coalesced_allocno and
6690 next_coalesced_allocno. Move mem_optimized_dest_p,
6691 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6692 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6693 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6694 temp, colorable_p. Add new member add_data.
6695 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6696 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6697 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6698 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6699 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6700 (ALLOCNO_ADD_DATA): New macro.
6701 (ira_emit_data_t): New typedef.
6702 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6703 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6704 from struct ira_allocno.
6705 (ALLOCNO_EMIT_DATA): New macro.
6706 (ira_allocno_emit_data, allocno_emit_reg): New.
6707 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6708 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6709 (OBJECT_ADD_DATA): New macro.
6710 (ira_reallocate): Remove.
6711 (ira_initiate_emit_data, ira_finish_emit_data): New.
6712 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6713 (ira_init_register_move_cost_if_necessary): New.
6714 (ira_object_conflict_iter_next): Merge into
6715 ira_object_conflict_iter_cond.
6716 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6718 * ira-live.c (process_single_reg_class_operands): Call
6719 ira_init_register_move_cost_if_necessary. Use
6720 ira_register_move_cost instead of ira_get_register_move_cost.
6722 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6724 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6726 * ira-costs.c: Fix formatting.
6727 (cost_classes, cost_classes_num): Remove.
6728 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6729 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6730 (cost_classes_del, cost_classes_htab): New.
6731 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6732 (initiate_regno_cost_classes, setup_cost_classes): New.
6733 (setup_regno_cost_classes_by_aclass): New.
6734 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6735 (record_reg_classes): Use regno_cost_classes instead of
6736 cost_classes. Move checking opposite operand up.
6737 (record_address_regs): Use regno_cost_classes
6738 instead of cost_classes.
6739 (scan_one_insn): Ditto. Use always general register.
6740 (print_allocno_costs): Use regno_cost_classes instead of
6742 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6743 (find_costs_and_classes): Set up cost classes for each registers.
6744 Use also their mode for this. Use regno_cost_classes instead of
6746 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6748 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6749 (ira_costs, ira_set_pseudo_classes): Call
6750 initiate_regno_cost_classes and finish_regno_cost_classes.
6752 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6754 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6756 * target.def (ira_cover_classes): Remove.
6758 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6760 * doc/tm.texi.in: Ditto.
6762 * ira-conflicts.c: Remove mentioning cover classes from the file.
6763 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6764 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6766 * targhooks.c (default_ira_cover_classes): Remove.
6768 * targhooks.h (default_ira_cover_classes): Ditto.
6770 * haifa-sched.c: Remove mentioning cover classes from the file.
6771 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6772 ira_pressure_classes and ira_pressure_classes_num instead of
6773 ira_reg_class_cover_size and ira_reg_class_cover. Use
6774 sched_regno_pressure_class instead of sched_regno_cover_class.
6775 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6776 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6778 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6779 classes from the file.
6780 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6781 (struct object_hard_regs, struct object_hard_regs_node): New.
6782 (struct ira_object): New members profitable_hard_regs,
6783 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6784 (struct ira_allocno): Rename cover_class to aclass. Rename
6785 cover_class_cost and updated_cover_class_cost to class_cost and
6786 updated_class_cost. Remove splay_removed_p and
6787 left_conflict_size. Add new members colorable_p.
6788 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6789 (ALLOCNO_COLORABLE_P): New macro.
6790 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6791 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6792 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6793 (OBJECT_...): Rename parameter C to O.
6794 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6795 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6796 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6797 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6798 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6799 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6800 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6801 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6802 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6803 x_ira_reg_class_subunion.
6804 (ira_max_memory_move_cost, ira_max_register_move_cost)
6805 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6806 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6807 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6808 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6809 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6810 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6811 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6812 (ira_tune_allocno_costs_and_cover_classes): Rename to
6813 ira_tune_allocno_costs.
6814 (ira_debug_hard_regs_forest): New.
6815 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6816 (ira_object_conflict_iter_next): Fix comments.
6817 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6818 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6819 cover_class to aclass.
6820 (ira_allocate_and_accumulate_costs): Ditto.
6821 (ira_allocate_and_set_or_copy_costs): Ditto.
6823 * opts.c (decode_options): Remove ira_cover_class check.
6825 * ira-color.c: Remove mentioning cover classes from the file. Use
6826 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6827 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6828 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6829 (splay-tree.h): Remove include.
6830 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6831 before copy_freq_compare_func.
6832 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6833 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6835 (hard_regs_roots, hard_regs_node_vec): Ditto.
6836 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6837 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6838 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6839 (create_new_object_hard_regs_node): Ditto.
6840 (add_new_object_hard_regs_node_to_forest): Ditto.
6841 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6842 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6844 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6845 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6846 (remove_unused_object_hard_regs_nodes): Ditto.
6847 (enumerate_object_hard_regs_nodes): Ditto.
6848 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6849 (object_hard_regs_subnode_t): Ditto.
6850 (struct object_hard_regs_subnode): Ditto.
6851 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6852 (setup_object_hard_regs_subnode_index): Ditto.
6853 (get_object_hard_regs_subnodes_num): Ditto.
6854 (form_object_hard_regs_nodes_forest): Ditto.
6855 (finish_object_hard_regs_nodes_tree): Ditto.
6856 (finish_object_hard_regs_nodes_forest): Ditto.
6857 (allocnos_have_intersected_live_ranges_p): Rename to
6858 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6859 (pseudos_have_intersected_live_ranges_p): Rename to
6860 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6861 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6862 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6863 (update_copy_costs): Remove assert. Skip cost update if the hard
6864 reg does not belong the class.
6865 (assign_hard_reg): Process only profitable hard regs.
6866 (uncolorable_allocnos_num): Make it scalar.
6867 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6868 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6869 and ira_reg_class_max_nregs.
6870 (bucket_allocno_compare_func): Check frequency first.
6871 (sort_bucket): Add compare function as a parameter.
6872 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6873 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6874 (push_allocno_to_stack): Rewrite for checking new allocno
6876 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6877 (push_only_colorable): Pass new parameter to sort_bucket.
6878 (push_allocno_to_spill): Remove.
6879 (allocno_spill_priority_compare): Make it inline and rewrite.
6880 (splay_tree_allocate, splay_tree_free): Remove.
6881 (allocno_spill_sort_compare): New function.
6882 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6883 build and use splay tree. Choose first allocno in uncolorable
6884 allocno bucket to spill. Remove setting spill cost.
6885 (all_conflicting_hard_regs): Remove.
6886 (setup_allocno_available_regs_num): Check only profitable hard
6887 regs. Print info about hard regs nodes.
6888 (setup_allocno_left_conflicts_size): Remove.
6889 (put_allocno_into_bucket): Don't call
6890 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6891 (improve_allocation): New.
6892 (color_allocnos): Call setup_profitable_hard_regs,
6893 form_object_hard_regs_nodes_forest, improve_allocation,
6894 finish_object_hard_regs_nodes_forest. Setup spill cost.
6895 (print_loop_title): Use pressure classes.
6896 (color_allocnso): Ditto.
6897 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6898 and allocnos_for_spilling.
6899 (ira_sort_regnos_for_alter_reg): Don't setup members
6900 {first,next}_coalesced_allocno.
6901 (color): Remove allocating and freeing removed_splay_allocno_vec.
6902 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6903 prohibited_class_mode_regs.
6905 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6907 (update_allocno_pressure_excess_length): Use pressure classes.
6908 (inc_register_pressure, dec_register_pressure): Check for pressure
6910 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6911 pressure class. Use ira_reg_class_nregs instead of
6912 ira_reg_class_max_nregs.
6913 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6914 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6915 (single_reg_class): Use ira_reg_class_nregs instead of
6916 ira_reg_class_max_nregs.
6917 (process_bb_node_lives): Use pressure classes.
6919 * ira-emit.c: Remove mentioning cover classes from the file. Use
6920 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6921 (change_loop): Use pressure classes.
6922 (modify_move_list): Call ira_set_allocno_class instead of
6923 ira_set_allocno_cover_class.
6925 * ira-build.c: Remove mentioning cover classes from the file. Use
6926 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6927 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6928 ALLOCNO_UPDATED_CLASS_COST instead of
6929 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6930 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6931 (ira_create_allocno): Remove initialization of
6932 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6933 ALLOCNO_COLORABLE_P.
6934 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6935 Update conflict regs for the objects.
6936 (create_cap_allocno): Remove assert. Don't propagate
6937 ALLOCNO_AVAILABLE_REGS_NUM.
6938 (ira_free_allocno_costs): New function.
6939 (finish_allocno): Change a part of code into call of
6940 ira_free_allocno_costs.
6941 (low_pressure_loop_node_p): Use pressure classes.
6942 (object_range_compare_func): Don't compare classes.
6943 (setup_min_max_conflict_allocno_ids): Ditto.
6945 * loop-invariant.c: Remove mentioning cover classes from the file.
6946 Use ira_pressure_classes and ira_pressure_classes_num instead of
6947 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6948 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6949 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6950 Use reg_allocno_class instead of reg_cover_class.
6951 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6952 STACK_REG_COVER_CLASS.
6953 (get_regno_cover_class): Rename to get_regno_pressure_class.
6954 (move_loop_invariants): Initialize and finalize regstat.
6956 * ira.c: Remove mentioning cover classes from the file. Add
6957 comments about coloring without cover classes. Use ALLOCNO_CLASS
6958 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6959 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6960 setup_class_subset_and_memory_move_costs.
6961 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6962 (setup_cover_and_important_classes): Rename to
6963 setup_allocno_and_important_classes.
6964 (setup_class_translate_array): New.
6965 (setup_class_translate): Call it for allocno and pressure classes.
6966 (cover_class_order): Rename to allocno_class_order.
6967 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6968 of ira_class_translate.
6969 (reorder_important_classes): Set up ira_important_class_nums.
6970 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6971 (print_class_cover): Rename to print_classes. Add parameter.
6972 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6973 Print pressure classes too.
6974 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6975 setup_reg_subclasses.
6976 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6977 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6978 (setup_prohibited_class_mode_regs): Use
6979 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6980 (clarify_prohibited_class_mode_regs): New function.
6981 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6982 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6983 (ira_init_once): Initialize them.
6984 (free_register_move_costs): Process them.
6985 (ira_init): Move calls of find_reg_classes and
6986 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6987 Call clarify_prohibited_class_mode_regs.
6988 (ira_no_alloc_reg): Remove.
6989 (too_high_register_pressure_p): Use pressure classes.
6991 * sched-deps.c: Remove mentioning cover classes from the file.
6992 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6993 ira_pressure_classes and ira_pressure_classes_num instead of
6994 ira_reg_class_cover_size and ira_reg_class_cover.
6995 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6996 sched_regno_pressure_class instead of sched_regno_cover_class.
6997 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6998 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7000 * ira.h: Add 2010 to Copyright.
7001 (ira_no_alloc_reg): Remove external.
7002 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7003 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7004 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7005 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7006 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7007 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7008 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7009 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7010 x_ira_no_alloc_regs.
7011 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7012 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7013 ira_allocno_classes_num and ira_allocno_classes.
7014 (ira_class_translate): Rename to ira_allocno_class_translate.
7015 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7016 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7017 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7018 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7019 (ira_no_alloc_regs): New.
7021 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7022 classes from the file. Use ALLOCNO_CLASS instead of
7023 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7024 ALLOCNO_COVER_CLASS_COST.
7025 (regno_cover_class): Rename to regno_aclass.
7026 (record_reg_classes): Use ira_reg_class_subunion instead of
7027 ira_reg_class_union.
7028 (record_address_regs): Check overflow.
7029 (scan_one_insn): Ditto.
7030 (print_allocno_costs): Print total mem cost fore regional allocation.
7031 (print_pseudo_costs): Use REG_N_REFS.
7032 (find_costs_and_classes): Use classes intersected with them on the
7033 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7034 ira_reg_class_union. Use ira_allocno_class_translate and
7035 regno_aclass instead of ira_class_translate and regno_cover_class.
7036 Modify code for finding regno_aclass. Setup preferred classes for
7038 (setup_allocno_cover_class_and_costs): Rename to
7039 setup_allocno_class_and_costs. Use regno_aclass instead of
7040 regno_cover_class. Use ira_set_allocno_class instead of
7041 ira_set_allocno_cover_class.
7042 (init_costs, finish_costs): Use regno_aclass instead of
7044 (ira_costs): Use setup_allocno_class_and_costs instead of
7045 setup_allocno_cover_class_and_costs.
7046 (ira_tune_allocno_costs_and_cover_classes): Rename to
7047 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7048 by processing objects. Use ira_reg_class_max_nregs instead of
7049 ira_reg_class_nregs.
7051 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7053 * sched-int.h: Remove mentioning cover classes from the file.
7054 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7056 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7057 classes from the file.
7058 (struct reg_pref): Rename coverclass into allocnoclass.
7059 (reg_cover_class): Rename to reg_allocno_class.
7061 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7063 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7065 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7067 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7069 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7071 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7073 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7075 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7077 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7079 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7081 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7082 (i386_ira_cover_classes): Ditto.
7084 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7086 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7088 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7090 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7092 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7094 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7096 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7097 (mips_ira_cover_classes): Ditto.
7099 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7101 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7103 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7105 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7107 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7109 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7110 (IRA_COVER_CLASSES_VSX): Ditto.
7112 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7113 (rs6000_ira_cover_classes): Ditto.
7115 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7117 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7119 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7121 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7123 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7125 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7127 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7129 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7131 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7133 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7135 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7138 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7139 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7140 dw_fde_unlikely_section_end_label, cold_in_std_section,
7141 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7142 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7144 (output_fde): Use dw_fde_second_{begin,end} if second is
7145 true, otherwise dw_fde_{begin,end}.
7146 (output_call_frame_info): Test dw_fde_second_begin != NULL
7147 instead of dw_fde_switched_sections.
7148 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7149 fields, initialize new fields. Initialize in_std_section
7150 unconditionally from the first partition.
7151 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7152 dw_fde_second_begin is non-NULL.
7153 (dwarf2out_switch_text_section): Stop initializing removed
7154 dw_fde_struct fields, initialize new fields, initialize
7155 also dw_fde_end here. Set dw_fde_switch_cfi even when
7156 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7157 (struct var_loc_list_def): Add last_before_switch field.
7158 (arange_table, arange_table_allocated, arange_table_in_use,
7159 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7160 (size_of_aranges): Count !in_std_section and !second_in_std_section
7161 hunks in fdes, instead of looking at arange_table_in_use.
7162 (output_aranges): Add aranges_length argument, don't call
7163 size_of_aranges here. Instead of using aranges_table*
7164 emit ranges for fdes when !in_std_section resp.
7165 !second_in_std_section.
7166 (dw_loc_list): Break ranges crossing section switch.
7167 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7168 use dw_fde_second_end instead of dw_fde_end as end of last range.
7169 (gen_subprogram_die): Don't call add_arange. Use
7170 dw_fde_{begin,end} for first partition and if switched
7171 section dw_fde_second_{begin,end} for the second.
7172 (var_location_switch_text_section_1,
7173 var_location_switch_text_section): New functions.
7174 (dwarf2out_begin_function): Initialize cold_text_section even
7175 when function_section () isn't text_section.
7176 (prune_unused_types): Don't walk arange_table.
7177 (dwarf2out_finish): Don't needlessly test
7178 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7179 If info_section_emitted, call size_of_aranges and if it indicates
7180 non-empty .debug_aranges, call output_aranges with the computed
7181 size. Stop using removed dw_fde_struct fields, use
7182 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7186 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7187 create ENTRY_VALUE if incoming or address of incoming's MEM
7189 * dwarf2out.c (mem_loc_descriptor): Don't emit
7190 DW_OP_GNU_entry_value of DW_OP_fbreg.
7191 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7192 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7193 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7194 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7196 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7197 is a REG_P or MEM_P with REG_P address, compute hash directly
7198 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7199 (preserve_only_constants): Don't clear VALUES forwaring
7200 ENTRY_VALUE to some other VALUE.
7202 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7204 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7207 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7209 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7210 block before expanding the statement.
7211 (expand_gimple_stmt_1): Likewise. Set them here...
7212 (expand_gimple_stmt): ...and not here. Tidy.
7213 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7216 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7218 * Makefile.in: New rule for cprop.o.
7219 * gcse.c: Move constant/copy propagation to cprop.c.
7220 (compute_local_properties): Only handle expression tables.
7221 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7222 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7223 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7224 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7225 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7226 compute_cprop_data, find_used_regs, try_replace_reg,
7227 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7228 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7229 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7230 find_bypass_set, reg_killed_on_edge, bypass_block,
7231 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7232 execute_rtl_cprop, pass_rtl_cprop): Move to...
7233 * cprop.c: ...here. New file, constant/copy propagation for RTL
7234 moved from gcse.c to here with minor cleanups in duplicated code.
7236 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7238 * config/i386/i386.c (flag_opts): Fix a typo in
7239 -mavx256-split-unaligned-store.
7241 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7243 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7244 LIBCALL_VALUE): Remove macros.
7245 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7246 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7247 (h8300_function_value, h8300_libcall_value,
7248 h8300_function_value_regno_p): New functions.
7250 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7252 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7254 2011-03-28 Jeff Law <law@redhat.com>
7256 * tree-ssa-threadupdate.c (redirect_edges): Call
7257 create_edge_and_update_destination_phis as needed.
7258 (create_edge_and_update_destination_phis): Accept new BB argument.
7259 All callers updated.
7260 (thread_block): Do not update the profile when threading around
7261 intermediate blocks.
7262 (thread_single_edge): Likewise.
7263 (determine_bb_domination_status): If BB is not a successor of the
7264 loop header, return NONDOMINATING.
7265 (register_jump_thread): Note when we register a jump thread around
7266 an intermediate block.
7267 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7268 (thread_across_edge): Use it.
7270 2011-03-28 Tristan Gingold <gingold@adacore.com>
7272 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7273 when for_return is 2.
7275 2011-03-28 Jeff Law <law@redhat.com>
7277 * var-tracking.c (canonicalize_values_mark): Delete unused
7279 (canonicalize_values_star, set_variable_part): Likewise.
7280 (clobber_variable_part, delete_variable_part): Likewise.
7282 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7284 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7286 2011-03-28 Martin Jambor <mjambor@suse.cz>
7288 * tree-inline.c (expand_call_inline): Do not check that destination
7290 (optimize_inline_calls): Assert that destination node is analyzed.
7291 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7292 not call tree_lowering_passes.
7293 * cgraph.h (cgraph_analyze_function): Declare.
7294 * cgraphunit.c (cgraph_analyze_function): Make public.
7296 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7298 * config/sparc/sparc-opts.h: New.
7299 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7300 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7301 (sparc_option_override): Store processor_type enumeration rather
7302 than string in cpu_default. Remove name and enumeration from
7303 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7304 without using sparc_select. Use target_flags_explicit instead of
7306 * config/sparc/sparc.h (enum processor_type): Move to
7308 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7309 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7310 HeaderInclude entry.
7311 (mcpu=, mtune=): Use Var and Enum.
7312 (sparc_processor_type): New Enum and EnumValue entries.
7314 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7315 Iain Sandoe <iains@gcc.gnu.org>
7318 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7320 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7322 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7323 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7324 Insert new statements at it in lieu of STMT.
7325 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7326 * tree-vect-stmts.c (vectorizable_store): Likewise.
7327 (vectorizable_load): Likewise.
7329 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7331 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7336 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7338 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7339 unaligned 256bit load/store.
7340 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7341 (*avx_movdqu<avxmodesuffix>): Likewise.
7343 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7346 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7347 * config/pa/pa.md (iordi3): Use new predicate in expander.
7350 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7352 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7353 FUNCTION_VALUE_REGNO_P): Remove macros.
7354 * config/mips/mips-protos.h (mips_function_value): Remove.
7355 * config/mips/mips.c (mips_function_value): Rename to...
7356 (mips_function_value_1): ... this. Make static. Handle receiving
7357 the function type in 'fn_decl_or_type' argument.
7358 (mips_function_value, mips_libcall_value,
7359 mips_function_value_regno_p): New function.
7360 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7361 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7363 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7365 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7366 and -mavx256-split-unaligned-store.
7367 (ix86_option_override_internal): Split 32-byte AVX unaligned
7368 load/store by default.
7369 (ix86_avx256_split_vector_move_misalign): New.
7370 (ix86_expand_vector_move_misalign): Use it.
7372 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7373 -mavx256-split-unaligned-store.
7375 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7376 256bit load/store. Generate unaligned store on misaligned memory
7378 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7380 (*avx_movdqu<avxmodesuffix>): Likewise.
7382 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7383 -mavx256-split-unaligned-store.
7385 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7388 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7391 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7393 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7394 opno arguments with an expand_operand. Use create_input_operand.
7395 (mips_prepare_builtin_target): Delete.
7396 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7398 (mips_expand_builtin_direct): Use create_output_operand and
7399 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7400 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7401 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7403 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7405 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7407 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7409 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7411 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7412 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7413 basic blocks and call commit_edge_insertions directly.
7414 (fixup_abnormal_edges): Move from here to...
7415 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7416 on the edges and return whether some have actually been inserted.
7417 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7420 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7422 PR rtl-optimization/48144
7423 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7424 (merge_expr_data): ... here.
7425 (av_set_intersect): Rename to av_set_code_motion_filter.
7426 Update all callers. Call merge_history_vect when an expression
7427 is found in both sets.
7428 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7430 2011-03-26 Alan Modra <amodra@gmail.com>
7432 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7433 cmodel medium addresses.
7434 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7435 64-bit gpr loads and stores.
7436 (rs6000_secondary_reload_ppc64): New function.
7437 * config/rs6000/rs6000-protos.h: Declare it.
7438 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7440 2011-03-26 Alan Modra <amodra@gmail.com>
7443 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7444 GNU Go in traceback table.
7446 2011-03-25 Richard Henderson <rth@redhat.com>
7448 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7449 if there are exactly 6 operands.
7450 (set_storage_via_setmem): Similarly.
7452 2011-03-25 Kai Tietz <ktietz@redhat.com>
7454 * collect2.c (write_c_file_stat): Handle backslash
7455 as right-hand directory separator.
7456 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7457 checking just for slash.
7458 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7459 instead of checking for trailing slash.
7460 * gcc.c (record_temp_file): Use filename_cmp instead
7462 (do_spec_1): Likewise.
7463 (replace_outfile_spec_function): Likewise.
7464 (is_directory): Use filename_ncmp instead of strncmp.
7465 (print_multilib_info): Likewise.
7466 * gcov.c (find_source): Use filename_cmp instead
7468 (make_gcov_file_name): Fix order of slash/backslash
7470 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7471 (add_standard_paths): Likewise.
7472 * mips-tfile.c (saber_stop): Handle backslash.
7473 * prefix.c (update_path): Use filename_ncmp instead of
7475 * profile.c (output_location): Use filename_cmp instead
7477 * read-md.c (handle_toplevel_file): Handle backslash.
7478 * tlink.c (frob_extension): Likewise.
7479 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7481 * tree-dump.c (dequeue_and_dump): Handle backslash.
7482 * tree.c (get_file_function_name): Likewise.
7483 * gengtype.c (read_input_list): Likewise.
7484 (get_file_realbasename): Likewise.
7485 (get_output_file_with_visibility): Use filename_cmp
7488 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7490 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7493 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7495 * fold-const.c (expr_location_or): New function.
7496 (fold_truth_not_expr): Call it.
7498 2011-03-25 Jeff Law <law@redhat.com>
7500 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7502 * c-family/c-common.c (def_fn_type): Likewise.
7503 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7504 * emit-rtl.c (gen_rtvec): Likewise.
7505 * lto/lto-lang.c (def_fn_type): Likewise.
7507 2011-03-25 Richard Guenther <rguenther@suse.de>
7509 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7510 also generate copies.
7511 (fini_copy_prop): Handle constant values properly.
7513 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7515 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7516 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7517 (hash_loc_operands, compare_loc_operands): Handle
7518 DW_OP_GNU_entry_value.
7520 2011-03-25 Kai Tietz <ktietz@redhat.com>
7522 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7523 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7524 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7525 comment and use macro TARGET_64BIT_MS_ABI instead.
7526 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7527 and change default behavior for 32-bit MS_ABI.
7528 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7529 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7531 (ix86_cfun_abi): Likewise.
7532 (ix86_maybe_switch_abi): Adjust comment.
7533 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7534 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7535 instead of checking for SYSV_ABI.
7536 (ix86_nsaved_sseregs): Likewise.
7537 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7539 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7540 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7541 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7542 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7543 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7545 2011-03-25 Richard Guenther <rguenther@suse.de>
7547 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7548 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7549 (verify_gimple): Remove.
7550 * tree-cfg.c (verify_gimple_call): Merge verification
7552 (verify_gimple_phi): Merge verification from verify_stmts.
7553 (verify_gimple_label): New function.
7554 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7555 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7556 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7557 (verify_stmts): Rename to verify_gimple_in_cfg.
7558 (verify_gimple_in_cfg): New function.
7559 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7560 * tree-ssa.c (verify_ssa): Likewise.
7561 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7563 2011-03-25 Richard Guenther <rguenther@suse.de>
7565 * passes.c (init_optimization_passes): Add FRE pass after
7568 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7569 Andrew Stubbs <ams@codesourcery.com>
7571 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7573 (arm_movdi_vfp_cortexa8): New pattern.
7574 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7575 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7576 instructions when tuning for Cortex-A8. Set attribute "arch".
7577 * config/arm/arm.md: Move include arm-tune.md up a bit.
7578 (define_attr "arch"): Add "onlya8" and "nota8" values.
7579 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7581 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7585 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7587 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7588 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7589 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7590 * passes.c (init_optimization_passes): Move
7591 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7593 2011-03-25 Kai Tietz <ktietz@redhat.com>
7595 * c-typeck.c (comptypes_internal): Replace target
7596 hook call of comp_type_attributes by version in tree.c file.
7597 * gimple.c (gimple_types_compatible_p_1): Likewise.
7598 * tree-ssa.c (useless_type_conversion_p): Likewise.
7599 * tree.c (build_type_attribute_qual_variant): Likewise.
7600 (attribute_value_equal): New static helper function.
7601 (comp_type_attributes): New function.
7602 (merge_attributes): Use attribute_value_equal for comparison.
7603 (attribute_list_contained): Likewise.
7604 * tree.h (comp_type_attributes): New prototype.
7606 2011-03-25 Richard Guenther <rguenther@suse.de>
7608 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7609 of complex types at -O0.
7610 (verify_gimple_assign_binary): Likewise.
7611 (verify_gimple_assign_ternary): Likewise.
7613 2011-03-24 Mark Wielaard <mjw@redhat.com>
7615 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7616 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7618 2011-03-24 Mark Wielaard <mjw@redhat.com>
7621 * dwarf2out.c (output_abbrev_section): Only write table when
7622 abbrev_die_table_in_use > 1.
7624 2011-02-24 Richard Henderson <rth@redhat.com>
7626 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7627 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7628 (alpha_expand_unaligned_load_words): Use extql.
7629 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7630 (emit_insxl): Handle all modes for consistency.
7632 2011-02-24 Richard Henderson <rth@redhat.com>
7634 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7635 (alpha_expand_unaligned_load): Likewise.
7636 (alpha_expand_unaligned_store): Likewise.
7637 (alpha_expand_unaligned_load_words): Likewise.
7638 (alpha_expand_unaligned_store_words): Likewise.
7639 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7640 (alpha_split_lock_test_and_set_12): Likewise.
7641 (print_operand, alpha_fold_builtin_extxx): Likewise.
7642 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7643 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7644 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7645 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7646 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7647 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7648 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7649 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7650 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7651 (extwl, extll, extql): Similarly.
7652 (inswh, inslh, insqh): Similarly.
7653 (mskbl, mskwl, mskll, mskql): Similarly.
7654 (mskwh, msklh, mskqh): Similarly.
7656 2011-02-24 Richard Henderson <rth@redhat.com>
7658 * config/alpha/alpha.md (attribute isa): Add er, ner.
7659 (attribute enabled): Handle them.
7660 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7662 2011-02-24 Richard Henderson <rth@redhat.com>
7664 * config/alpha/alpha.md (attribute isa): Add vms.
7665 (attribute enabled): Handle it.
7666 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7667 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7668 (*movtf): Rename from *movtf_internal for consistency.
7669 (*movsi): Merge with *movsi_nt_vms.
7670 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7671 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7672 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7673 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7675 2011-02-24 Richard Henderson <rth@redhat.com>
7677 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7678 (extendqisi2, extendhisi2): Likewise.
7679 (extendqidi2): Simplify BWX/non-BWX expansions.
7680 (extendhidi2): Similarly.
7682 2011-02-24 Richard Henderson <rth@redhat.com>
7684 * config/alpha/alpha.md (attribute isa): New.
7685 (attribute enabled): New.
7686 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7687 (zero_extendqisi2, zero_extendqidi2): Similarly.
7688 (zero_extendhisi2, zero_extendhidi2): Similarly.
7689 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7691 2011-02-24 Richard Henderson <rth@redhat.com>
7693 * config/alpha/predicates.md (input_operand): Revert last change;
7694 update comment to mention 32-bit VMS rather than Windows.
7696 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7698 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7699 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7700 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7701 * passes.c (init_optimization_passes): Move
7702 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7704 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7706 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7708 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7710 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7713 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7716 * simplify-rtx.c (simplify_const_unary_operation): Call
7717 real_convert when changing mode class with FLOAT_EXTEND.
7719 2011-03-24 Nick Clifton <nickc@redhat.com>
7721 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7722 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7723 * config/rx/rx.c (rx_option_override): Set align_jumps,
7724 align_loops and align_labels if not set by the user.
7725 (rx_align_for_label): New function.
7726 (rx_max_skip_for_label): New function.
7727 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7728 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7729 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7730 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7731 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7733 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7735 PR rtl-optimization/48263
7736 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7737 and original commutative_p handling. Use maybe_gen_insn.
7739 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7741 * reload.c (find_reloads_subreg_address): Add address_reloaded
7742 parameter and return true there if the full address has been
7744 (find_reloads_toplev): Pass address_reloaded flag.
7745 (find_reloads_address_1): Don't use address_reloaded parameter.
7747 2011-03-24 Jeff Law <law@redhat.com>
7749 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7750 unused variable "ann".
7751 (remove_unused_locals): Likewise.
7753 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7756 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7759 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7761 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7762 for invalid symbolic addresses.
7763 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7766 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7768 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7769 the argument in calls to fold_truth_not_expr.
7771 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7773 * tree.c (record_node_allocation_statistics): New function.
7774 (make_node_stat, copy_node_stat, build_string): Call it.
7775 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7776 (build1_stat, build_omp_clause): Likewise.
7778 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7780 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7783 2011-03-24 Richard Guenther <rguenther@suse.de>
7785 PR tree-optimization/48271
7786 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7787 blocks that still exist.
7789 2011-03-24 Richard Guenther <rguenther@suse.de>
7791 PR tree-optimization/48270
7792 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7793 not free datarefs before ddrs.
7795 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7797 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7798 from the address built for a reference with variable offset.
7800 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7803 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7804 alternatives that can be handled with movq or movabsq insn.
7805 (*movdf_internal): Disable for !TARGET_64BIT.
7806 (*movdf_internal_nointeger): Ditto.
7807 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7809 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7811 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7812 (FUNCTION_ARG_ADVANCE): Likewise.
7813 * tm.texi.in: Change references to them to hook references.
7814 * tm.texi: Regenerate.
7815 * targhooks.c (default_function_arg): Eliminate check for target macro.
7816 (default_function_incoming_arg): Likewise.
7817 (default_function_arg_advance): Likewise.
7818 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7819 (function_arg_advance): Likewise.
7820 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7822 2011-03-24 Richard Guenther <rguenther@suse.de>
7825 * tree-object-size.c (addr_object_size): Do not double-account
7826 for MEM_REF offsets.
7828 2011-03-24 Diego Novillo <dnovillo@google.com>
7830 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7831 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7832 (lto_input_data_block): Move from lto-opts.c. Make extern.
7834 (lto_input_string): Rename from input_string. Make extern.
7836 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7837 output_string_with_length.
7838 Output 0 to indicate a non-NULL string. Update all callers to
7840 (lto_output_string): Rename from output_string. Make extern.
7842 (lto_output_decl_state_streams): Make extern.
7843 (lto_output_decl_state_refs): Make extern.
7844 * lto-streamer.h (lto_input_string): Declare.
7845 (lto_input_data_block): Declare.
7846 (lto_output_string): Declare.
7847 (lto_output_string_with_length): Declare.
7848 (lto_output_decl_state_streams): Declare.
7849 (lto_output_decl_state_refs): Declare.
7851 2011-03-24 Richard Guenther <rguenther@suse.de>
7853 PR tree-optimization/46562
7854 * tree.c (build_invariant_address): New function.
7855 * tree.h (build_invariant_address): Declare.
7856 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7857 a renamed function moved ...
7858 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7859 Take valueization callback parameter.
7860 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7861 * gimple-fold.h: New file.
7862 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7863 (ccp_fold, fold_const_aggregate_ref,
7864 fold_ctor_reference, fold_nonarray_ctor_reference,
7865 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7866 get_base_constructor): Move ...
7867 * gimple-fold.c: ... here.
7868 (gimple_fold_stmt_to_constant_1): New function
7869 split out from ccp_fold. Take a valueization callback parameter.
7870 Valueize all operands.
7871 (gimple_fold_stmt_to_constant): New wrapper function.
7872 (fold_const_aggregate_ref_1): New function split out from
7873 fold_const_aggregate_ref. Take a valueization callback parameter.
7874 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7875 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7876 invariant POINTER_PLUS_EXPRs to invariant form.
7877 (vn_valueize): New function.
7878 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7879 * tree-vrp.c (vrp_valueize): New function.
7880 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7881 to fold statements to constants.
7882 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7883 function declarations.
7884 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7885 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7887 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7889 * config/h8300/predicates.md (jump_address_operand): Fix register
7892 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7894 * doc/invoke.texi (max-stores-to-sink): Document.
7895 * params.h (MAX_STORES_TO_SINK): Define.
7896 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7897 if either vectorization or if-conversion is disabled.
7898 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7899 tree-vect-data-refs.c vect_equal_offsets.
7900 (dr_equal_offsets_p): New function.
7901 (find_data_references_in_bb): Remove static.
7902 * tree-data-ref.h (find_data_references_in_bb): Declare.
7903 (dr_equal_offsets_p): Likewise.
7904 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7905 (vect_drs_dependent_in_basic_block): Update calls to
7907 (vect_check_interleaving): Likewise.
7908 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7909 (cond_if_else_store_replacement): Rename to...
7910 (cond_if_else_store_replacement_1): ... this. Change arguments and
7912 (cond_if_else_store_replacement): New function.
7913 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7914 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7916 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7919 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7920 to subtract lower bound instead of GEN_INT().
7922 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7927 * doc/extend.texi (Alignment): Move section to match order in TOC.
7928 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7929 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7931 2011-03-23 Jeff Law <law@redhat.com>
7933 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7934 before removing the edge.
7936 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7937 it may have been freed by redirect_branch_edge or
7938 redirect_edge_succ_nodup.
7940 2011-03-23 Richard Guenther <rguenther@suse.de>
7942 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7943 (check_va_list_escapes): Likewise.
7944 (check_all_va_list_escapes): Likewise.
7946 2011-03-23 Richard Guenther <rguenther@suse.de>
7948 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7949 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7950 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7951 (alias.o): Likewise.
7952 (ipa-type-escape.o): Remove.
7953 (ipa-struct-reorg.o): Likewise.
7954 (GTFILES): Remove ipa-struct-reorg.c.
7955 * alias.c: Do not include ipa-type-escape.h.
7956 * tree-ssa-alias.c: Likewise.
7957 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7958 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7959 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7960 and ipa-type-escape passes.
7961 * tree-pass.h (pass_ipa_type_escape): Remove.
7962 (pass_ipa_struct_reorg): Likewise.
7963 * ipa-struct-reorg.h: Remove.
7964 * ipa-struct-reorg.c: Likewise.
7965 * ipa-type-escape.h: Likewise.
7966 * ipa-type-escape.c: Likewise.
7967 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7968 (--param struct-reorg-cold-struct-ratio): Likewise.
7969 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7970 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7971 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7973 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7975 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7976 cpu attribute value.
7977 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7978 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7979 * config/s390/s390.c (processor_flags_table): New constant array.
7980 (s390_handle_arch_option): Remove.
7981 (s390_handle_option): Remove s390_handle_arch_option invocations
7982 and OPT_mwarn_framesize_ handling.
7983 (s390_option_override): Remove s390_handle_arch_option invocation.
7984 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7986 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7987 * config/s390/s390.opt (s390_tune, s390_arch)
7988 (march=): Replace s390_arch_option enum and values with
7989 processor_type. Set variable name to s390_arch. Set
7990 initialization value.
7991 (mtune=): Replace s390_arch_option with processor_type. Set
7992 variable name to s390_tune. Set initialization value.
7994 2011-03-23 Julian Brown <julian@codesourcery.com>
7996 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7997 accesses which are not naturally aligned.
7999 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8002 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8004 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8006 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8007 parameter from "int" to "enum insn_code".
8008 (expand_operand_type): New enum.
8009 (expand_operand): New structure.
8010 (create_expand_operand): New function.
8011 (create_fixed_operand, create_output_operand): Likewise
8012 (create_input_operand, create_convert_operand_to): Likewise.
8013 (create_convert_operand_from, create_address_operand): Likewise.
8014 (create_integer_operand): Likewise.
8015 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8016 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8017 (expand_insn, expand_jump_insn): Likewise.
8018 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8019 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8020 (expand_movstr, expand_builtin___clear_cache): Likewise.
8021 (expand_builtin_lock_release): Likewise.
8022 * explow.c (allocate_dynamic_stack_space): Likewise.
8023 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8024 and use the default handling in that case.
8025 * expmed.c (check_predicate_volatile_ok): Delete.
8026 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8027 (emit_cstore): Likewise.
8028 * expr.c (emit_block_move_via_movmem): Likewise.
8029 (set_storage_via_setmem, expand_assignment): Likewise.
8030 (emit_storent_insn, try_casesi): Likewise.
8031 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8032 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8033 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8034 (expand_twoval_unop, expand_twoval_binop): Likewise.
8035 (expand_unop_direct, emit_indirect_jump): Likewise.
8036 (emit_conditional_move, vector_compare_rtx): Likewise.
8037 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8038 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8039 (expand_sync_lock_test_and_set): Likewise.
8040 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8041 (emit_unop_insn): Likewise.
8042 (expand_copysign_absneg): Change icode to an insn_code.
8043 (create_convert_operand_from_type): New function.
8044 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8045 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8046 (expand_insn, expand_jump_insn): Likewise.
8047 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8048 than const_int_operand for operand 2.
8050 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8052 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8055 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8057 * emit-rtl.c (emit_pattern_before_noloc): New function.
8058 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8059 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8060 (emit_pattern_after_noloc): New function.
8061 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8062 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8064 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8066 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8067 (__ffsDI2): Likewise.
8069 2011-03-22 Richard Henderson <rth@redhat.com>
8071 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8072 of !TARGET_ABI_OPEN_VMS.
8073 (alpha_trampoline_init, alpha_start_function): Likewise.
8074 (alpha_expand_epilogue, alpha_file_start): Likewise.
8075 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8076 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8077 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8078 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8079 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8081 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8083 * config/s390/s390-opts.h: New.
8084 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8085 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8086 s390_stack_guard): Remove.
8087 (s390_handle_arch_option): Return void. Take enum
8088 s390_arch_option value instead of string and searching array.
8089 (s390_handle_option): Don't assert that global structures are in
8090 use. Access variables via opts pointer. Use error_at. Don't use
8091 sscanf for -mstack-guard= or -mstack-size=. Update call to
8092 s390_handle_arch_option.
8093 (s390_option_override): Update call to s390_handle_arch_option.
8094 (s390_emit_prologue): Use %d format for s390_stack_size in
8095 diagnostic. Use %wd for HOST_WIDE_INT.
8096 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8097 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8098 * config/s390/s390.opt (config/s390/s390-opts.h): New
8099 HeaderInclude entry.
8100 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8101 s390_arch_flags, s390_warn_framesize): New Variable entries.
8102 (s390_arch_option): New Enum and EnumValue entries.
8103 (march=): Use Enum instead of Var.
8104 (mstack-guard=, mstack-size=): Use UInteger and Var.
8107 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8109 * config/score/score.c (score_handle_option): Don't assert that
8110 global structures are in use. Access target_flags via opts
8111 pointer. Use value of -march= option to determine target_flags
8113 * config/score/score.opt (march=): Use Enum.
8114 (score_arch): New Enum and EnumValue entries.
8116 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8118 * config/mep/mep.c (option_mtiny_specified): Remove.
8119 (mep_option_override): Move register handling for -mivc2 from
8120 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8121 instead of option_mtiny_specified.
8122 (mep_handle_option): Access target_flags via opts pointer. Don't
8123 assert that global structures are in use. Defer part of -mivc2
8124 handling and move it to mep_option_override.
8125 * config/mep/mep.opt (IVC2): New Mask entry.
8126 (mivc2): Use Var and Defer instead of Mask.
8128 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8130 * config/v850/v850-opts.h: New.
8131 * config/v850/v850.c (small_memory): Replace with
8132 small_memory_physical_max array. Make that array static const.
8133 (v850_handle_memory_option): Take integer value of argument. Take
8134 gcc_options pointer, option text and location. Return void.
8135 Update for changes to small memory structures.
8136 (v850_handle_option): Access target_flags via opts pointer. Don't
8137 assert that global structures are in use. Update calls to
8138 v850_handle_memory_option.
8139 (v850_encode_data_area): Update references to small memory settings.
8140 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8141 (enum small_memory_type): Move to v850-opts.h.
8142 * config/v850/v850.opt (config/v850/v850-opts.h): New
8143 HeaderInclude entry.
8144 (small_memory_max): New Variable entry.
8145 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8146 (mtda, mzda): Likewise.
8148 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8150 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8151 pointer. Don't assert that global structures are in use.
8153 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8155 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8156 via opts pointer. Don't assert that global structures are in use.
8158 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8160 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8161 (munix=93): Use Var.
8162 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8163 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8164 * config/pa/pa-opts.h: New.
8165 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8166 (pa_handle_option): Don't assert that global structures are in
8167 use. Access target_flags via opts pointer. Don't handle
8168 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8170 (pa_option_override): Handle deferred OPT_mfixed_range_.
8172 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8174 * config/mn10300/mn10300-opts.h: New.
8175 * config/mn10300/mn10300.c (mn10300_processor,
8176 mn10300_tune_string): Remove.
8177 (mn10300_handle_option): Don't assert that global structures are
8178 in use. Access mn10300_processor via opts pointer. Don't handle
8180 * config/mn10300/mn10300.h (enum processor_type): Move to
8182 (mn10300_processor): Remove.
8183 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8184 HeaderInclude entry.
8185 (mn10300_processor): New Variable entry.
8188 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8190 * config/microblaze/microblaze.c: Don't include opts.h.
8191 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8192 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8193 (mno-clearbss): Use Var and Warn.
8195 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8197 * config/m32r/m32r-opts.h: New.
8198 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8199 (m32r_handle_option): Don't assert that global structures are in
8200 use. Access target_flags and m32r_cache_flush_func via opts
8201 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8202 OPT_mno_flush_trap here.
8203 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8204 include of m32r-opts.h.
8205 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8206 HeaderInclude entry.
8207 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8208 (mmodel=): Use Enum and Var.
8209 (m32r_model): New Enum and EnumValue entries.
8210 (mno-flush-trap): Use Var.
8211 (msdata=): Use Enum and Var.
8212 (m32r_sdata): New Enum and EnumValue entries.
8214 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8216 * config/m32c/m32c.c: Don't include opts.h.
8217 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8218 m32c_handle_option): Remove.
8219 (m32c_option_override): Check global_options_set.x_target_memregs
8220 instead of target_memregs_set.
8221 * config/m32c/m32c.h (target_memregs): Remove.
8222 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8225 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8227 * config/iq2000/iq2000-opts.h: New.
8228 * config/iq2000/iq2000.c: Don't include opts.h.
8229 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8230 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8231 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8232 HeaderInclude entry.
8233 (iq2000_tune): New Variable entry.
8234 (march=): Add comment. Use Enum.
8235 (iq2000_arch): New Enum and EnumValue entries.
8236 (mcpu=): Use Enum and Var.
8237 (iq2000_tune): New Enum and EnumValue entries.
8239 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8241 * config/ia64/ia64-opts.h: New.
8242 * config/ia64/ia64.c (ia64_tune): Remove.
8243 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8245 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8246 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8247 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8248 HeaderInclude entry.
8249 (ia64_tune): New Variable entry.
8250 (mfixed-range=): Use Defer and Var.
8251 (mtune=): Use Enum and Var.
8252 (ia64_tune): New Enum and EnumValue entries.
8254 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8256 * config/frv/frv-opts.h: New.
8257 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8259 (frv_cpu_type): Remove.
8260 * config/frv/frv.c: Don't include opts.h.
8261 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8262 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8263 (frv_cpu_type): New Variable entry.
8264 (frv_cpu): New Enum and EnumValue entries.
8266 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8268 * config/cris/cris.c (cris_handle_option): Access target_flags via
8269 opts pointer. Don't assert that global structures are in use.
8270 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8271 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8273 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8275 * config/bfin/bfin-opts.h: New.
8276 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8277 bfin_si_revision, bfin_workarounds): Remove.
8278 (bfin_cpus): Make static const.
8279 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8280 not bfin_lib_id_given.
8281 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8282 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8283 pointer. Use error_at. Don't assert that global structures are in use.
8284 * config/bfin/bfin.h: Include bfin-opts.h.
8285 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8286 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8287 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8288 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8291 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8293 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8294 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8295 or -msoft-float here.
8296 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8297 -msoft-float and -mhard-float.
8298 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8299 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8301 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8303 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8304 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8306 (LIBGCC_SPEC): Don't handle -msoft-float.
8307 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8309 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8311 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8312 -mfloat-abi=*, not -msoft-float and -mhard-float.
8313 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8315 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8316 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8317 mhard-float and msoft-float.
8318 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8319 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8320 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8321 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8323 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8324 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8326 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8328 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8331 2011-03-22 Richard Henderson <rth@redhat.com>
8333 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8334 TARGET_ABI_WINDOWS_NT.
8335 (alpha_output_function_end_prologue): Likewise.
8336 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8337 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8338 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8339 (trap, *movsi_nt_vms): Likewise.
8340 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8341 (*tablejump_osf_nt_internal): Remove.
8342 * config/alpha/predicates.md (input_operand): Only test Pmode.
8344 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8346 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8347 via opts pointer. Use error_at. Don't assert that global
8348 structures are in use.
8350 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8352 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8353 (ix86_handle_option): Access ix86_isa_flags and
8354 ix86_isa_flags_explicit via opts pointer. Don't assert that
8355 global structures are in use.
8356 (ix86_function_specific_save, ix86_function_specific_restore):
8357 Update ix86_isa_flags_explicit field name.
8358 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8359 (ix86_isa_flags_explicit): Rename TargetSave entry to
8360 x_ix86_isa_flags_explicit.
8362 2011-03-22 Richard Henderson <rth@redhat.com>
8364 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8365 (alpha_option_override, direct_return): Likewise.
8366 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8367 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8368 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8369 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8370 (alpha_expand_epilogue, alpha_end_function): Likewise.
8371 (alpha_init_libfuncs): Likewise.
8372 (struct machine_function): Remove unicosmk members.
8373 (print_operand) ['t']: Remove.
8374 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8375 unicosmk_output_module_name, unicosmk_output_common,
8376 current_section_align, unicosmk_output_text_section_asm_op,
8377 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8378 unicosmk_section_type_flags, unicosmk_unique_section,
8379 unicosmk_asm_named_section, unicosmk_insert_attributes,
8380 unicosmk_output_align, unicosmk_defer_case_vector,
8381 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8382 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8383 unicosmk_output_ssib, unicosmk_add_call_info_word,
8384 unicosmk_extern_head, unicosmk_output_default_externs,
8385 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8386 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8387 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8388 * config/alpha/alpha-protos.h: Update.
8389 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8390 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8391 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8392 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8393 (*mulsi_se, mulvsi3): Likewise.
8394 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8395 (*divmodsi_internal, call, call_value, realign): Likewise.
8396 (moddi3, umoddi3): Likewise; remove duplicate expander.
8397 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8398 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8399 (*movdi_nofix): Remove r/U alternative.
8400 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8401 * config/alpha/constraints.md ("U"): Remove.
8402 * config/alpha/predicates.md (call_operand"): Don't test
8403 TARGET_ABI_UNICOSMK.
8405 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8407 * target.def (handle_option): Take gcc_options and
8408 cl_decoded_option pointers and location_t.
8409 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8410 * doc/tm.texi: Regenerate.
8411 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8412 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8413 * lto-opts.c (lto_reissue_options): Generate option structure for
8414 targetm.handle_option call.
8415 * opts.c (target_handle_option): Update call to
8416 targetm.handle_option. Remove assertions about values now passed
8418 * targhooks.c (default_target_handle_option): New.
8419 * targhooks.h (default_target_handle_option): Declare.
8420 * config/alpha/alpha.c: Include opts.h.
8421 (alpha_handle_option): Update to new hook interface.
8422 * config/arm/arm.c: Include opts.h.
8423 (arm_handle_option): Update to new hook interface.
8424 * config/arm/t-arm (arm.o): Update dependencies.
8425 * config/bfin/bfin.c: Include opts.h.
8426 (bfin_handle_option): Update to new hook interface.
8427 * config/cris/cris.c: Include opts.h.
8428 (cris_handle_option): Update to new hook interface.
8429 * config/frv/frv.c: Include opts.h.
8430 (frv_handle_option): Update to new hook interface.
8431 * config/i386/i386.c: Include opts.h.
8432 (ix86_handle_option): Update to new hook interface.
8433 (ix86_valid_target_attribute_inner_p): Generate option structure
8434 for call to ix86_handle_option.
8435 * config/i386/t-i386 (i386.o): Update dependencies.
8436 * config/ia64/ia64.c: Include opts.h.
8437 (ia64_handle_option): Update to new hook interface.
8438 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8439 * config/iq2000/iq2000.c: Include opts.h.
8440 (iq2000_handle_option): Update to new hook interface.
8441 * config/m32c/m32c.c: Include opts.h.
8442 (m32c_handle_option): Update to new hook interface.
8443 * config/m32r/m32r.c: Include opts.h.
8444 (m32r_handle_option): Update to new hook interface.
8445 * config/m68k/m68k.c: Include opts.h.
8446 (m68k_handle_option): Update to new hook interface.
8447 * config/mep/mep.c: Include opts.h.
8448 (mep_handle_option): Update to new hook interface.
8449 * config/microblaze/microblaze.c: Include opts.h.
8450 (microblaze_handle_option): Update to new hook interface.
8451 * config/mips/mips.c: Include opts.h.
8452 (mips_handle_option): Update to new hook interface.
8453 * config/mn10300/mn10300.c: Include opts.h.
8454 (mn10300_handle_option): Update to new hook interface.
8455 * config/pa/pa.c: Include opts.h.
8456 (pa_handle_option): Update to new hook interface.
8457 * config/pdp11/pdp11.c: Include opts.h.
8458 (pdp11_handle_option): Update to new hook interface.
8459 * config/rs6000/rs6000.c: Include opts.h.
8460 (rs6000_handle_option): Update to new hook interface.
8461 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8462 * config/rx/rx.c: Include opts.h.
8463 (rx_handle_option): Update to new hook interface.
8464 * config/s390/s390.c: Include opts.h.
8465 (s390_handle_option): Update to new hook interface.
8466 * config/score/score.c: Include opts.h.
8467 (score_handle_option): Update to new hook interface.
8468 * config/sh/sh.c: Include opts.h.
8469 (sh_handle_option): Update to new hook interface.
8470 * config/sparc/sparc.c: Include opts.h.
8471 (sparc_handle_option): Update to new hook interface.
8472 * config/v850/v850.c: Include opts.h.
8473 (v850_handle_option): Update to new hook interface.
8475 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8477 * gcc.c (driver_unknown_option_callback): Only permit and save
8478 unknown -Wno- options.
8479 (driver_wrong_lang_callback): Save options directly instead of via
8480 driver_unknown_option_callback.
8482 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8484 * combine.c (simplify_set): Try harder to find the best CC mode when
8485 simplifying a nested COMPARE on the RHS.
8487 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8489 * config/alpha/gnu.h: Remove.
8490 * config/arc: Remove directory.
8491 * config/arm/netbsd.h: Remove.
8492 * config/arm/t-pe: Remove.
8493 * config/crx: Remove directory.
8494 * config/i386/netbsd.h: Remove.
8495 * config/m68hc11: Remove directory.
8496 * config/m68k/uclinux-oldabi.h: Remove.
8497 * config/mcore/mcore-pe.h: Remove.
8498 * config/mcore/t-mcore-pe: Remove.
8499 * config/netbsd-aout.h: Remove.
8500 * config/rs6000/gnu.h: Remove.
8501 * config/sh/sh-symbian.h: Remove.
8502 * config/sh/symbian-base.c: Remove.
8503 * config/sh/symbian-c.c: Remove.
8504 * config/sh/symbian-cxx.c: Remove.
8505 * config/sh/symbian-post.h: Remove.
8506 * config/sh/symbian-pre.h: Remove.
8507 * config/sh/t-symbian: Remove.
8508 * config/svr3.h: Remove.
8509 * config/vax/netbsd.h: Remove.
8510 * config.build: Don't handle i[34567]86-*-pe.
8511 * config.gcc: Remove handling of deprecations for most deprecated
8513 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8514 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8515 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8516 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8517 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8518 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8520 * config.host: Don't handle i[34567]86-*-pe.
8521 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8522 (ASM_SPEC32): Don't handle -mcall-gnu.
8523 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8525 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8526 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8527 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8528 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8529 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8530 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8531 conditional on SYMBIAN.
8532 * configure.ac: Don't handle powerpc*-*-gnu*.
8533 * configure: Regenerate.
8534 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8535 * doc/install-old.texi (m6811, m6812): Don't mention.
8536 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8537 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8538 (m68k-uclinuxoldabi): Don't mention.
8539 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8541 (-mcall-gnu): Remove.
8542 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8543 families): Remove constraint documentation.
8545 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8547 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8548 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8549 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8551 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8554 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8555 vector when peeking at the next token for vector, don't expand the
8558 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8560 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8561 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8562 * config/avr/avr.c (init_cumulative_args)
8563 (avr_function_arg_advance): Use it.
8564 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8566 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8567 (avr_function_ok_for_sibcall): ...this new function.
8568 (avr_lookup_function_attribute1): New static Function.
8569 (avr_naked_function_p, interrupt_function_p)
8570 (signal_function_p, avr_OS_task_function_p)
8571 (avr_OS_main_function_p): Use it.
8572 * config/avr/avr.md ("sibcall", "sibcall_value")
8573 ("sibcall_epilogue"): New expander.
8574 ("*call_insn", "*call_value_insn"): New insn.
8575 ("call_insn", "call_value_insn"): Remove
8576 ("call", "call_value", "epilogue"): Change expander to handle
8579 2011-03-21 Nick Clifton <nickc@redhat.com>
8581 * doc/invoke.texi (Overall Options): Move closing brace to end of
8583 (Optimization Options): Add missing @gol.
8584 (Directory Options): Likewise.
8585 (i386 and x86-64 Options): Likewise.
8586 (RS6000 and PowerPC Options): Likewise.
8587 (i386 and x86-64 Windows Options): Likewise.
8588 (V850 Options): Add text missing from descriptions.
8590 2011-03-22 Richard Henderson <rth@redhat.com>
8592 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8593 (avr_incoming_return_addr_rtx): New.
8594 (emit_push_byte): New.
8595 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8596 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8597 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8598 (emit_pop_byte): New.
8599 (expand_epilogue): Use it. Pop frame pointer by bytes.
8600 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8601 (INCOMING_RETURN_ADDR_RTX): New.
8602 (INCOMING_FRAME_SP_OFFSET): New.
8603 (ARG_POINTER_CFA_OFFSET): New.
8604 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8605 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8608 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8610 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8612 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8613 (FUNCTION_ARG_ADVANCE): Likewise.
8614 * tm.texi.in: Change references to them to hook references.
8615 * tm.texi: Regenerate.
8616 * targhooks.c (default_function_arg): Eliminate check for target
8618 (default_function_incoming_arg): Likewise.
8619 (default_function_arg_advance): Likewise.
8620 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8621 (function_arg_advance): Likewise.
8622 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8624 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8626 * tree.c (build_call_1): New function.
8627 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8629 2011-03-22 Richard Guenther <rguenther@suse.de>
8631 PR tree-optimization/48228
8632 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8633 for single-arg PHIs.
8635 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8637 PR rtl-optimization/48143
8638 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8639 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8640 sse2_cvtps2pd): Likewise.
8642 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8644 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8646 2011-03-22 Richard Guenther <rguenther@suse.de>
8648 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8649 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8650 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8651 and REALIGN_LOAD_EXPR.
8652 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8653 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8654 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8655 DOT_PROD_EXPR case ...
8656 (expand_expr_real_2): ... here.
8657 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8658 and REALIGN_LOAD_EXPR.
8659 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8660 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8661 (vect_create_epilog_for_reduction): Likewise.
8662 (vectorizable_reduction): Likewise.
8663 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8664 * tree-vect-stmts.c (vectorizable_load): Likewise.
8666 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8668 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8670 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8672 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8673 handling for PLTOFF/GOTOFF.
8675 2011-03-22 Nick Clifton <nickc@redhat.com>
8677 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8678 trailing backslash from the end of the macro definition.
8680 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8682 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8685 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8687 * expr.h (prepare_operand): Move to...
8688 * optabs.h (prepare_operand): ...here and change the insn code
8689 parameter from "int" to "enum insn_code".
8690 (insn_operand_matches): Declare.
8691 * expr.c (init_expr_target): Use insn_operand_matches.
8692 (compress_float_constant): Likewise.
8693 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8694 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8695 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8696 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8698 (gen_cond_trap): Likewise.
8699 (prepare_operand): Likewise. Change icode to an insn_code.
8700 (insn_operand_matches): New function.
8701 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8702 * reload1.c (gen_reload): Likewise.
8703 * targhooks.c (default_secondary_reload): Likewise.
8705 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8707 * config/alpha/alpha.md (unspec): New define_c_enum.
8710 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8713 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8714 between a call and its CALL_ARG_LOCATION note.
8716 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8718 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8720 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8724 * c-common.c (shorten_compare): If primopN is first sign-extended
8725 to opN and then zero-extended to result type, set primopN to opN.
8727 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8729 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8730 for barrier handlers.
8732 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8734 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8735 UNSPEC constants to be in the unspec enumeration, and redefine
8736 all UNSPECV constants to be in the unspecv enumeration, so that
8737 dumps print which unspec/unspec_volatile this is.
8738 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8739 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8740 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8741 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8742 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8744 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8745 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8746 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8747 * config/rs6000/sync.md (isync, lwsync): Ditto.
8749 2011-03-21 Richard Guenther <rguenther@suse.de>
8751 * params.def (lto-min-partition): Fix typo.
8753 2011-03-21 Richard Guenther <rguenther@suse.de>
8756 * c-decl.c (grokdeclarator): Drop to the main variant only
8757 for array types. Drop flag_gen_aux_info check.
8759 2011-03-21 Richard Guenther <rguenther@suse.de>
8761 PR translation/47911
8762 * params.def (lto-partitions): Fix typo.
8763 (lto-min-partition): Fix wording.
8765 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8767 * config/rs6000/t-freebsd: Remove duplication from file.
8769 2011-03-21 Richard Guenther <rguenther@suse.de>
8772 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8774 2011-03-21 Richard Guenther <rguenther@suse.de>
8777 * params.def (lto-partitions): Require at least 1 partition.
8779 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8781 * gthr-solaris.h: Remove.
8782 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8783 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8784 (LIB_SPEC): Likewise.
8785 * config/sol2.opt (threads): Remove.
8786 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8787 (sparc*-*-solaris2*): Likewise.
8788 * configure.ac (enable_threads): Enable solaris support.
8789 * configure: Regenerate.
8790 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8791 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8794 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8796 * config.gcc: Obsolete *-*-solaris2.8*.
8797 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8799 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8802 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8803 reference. Solaris 8 perl works.
8805 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8808 * doc/install.texi (Prerequisites): Move jar etc. up.
8809 Explain support library version requirements.
8811 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8814 * doc/install.texi (Prerequisites): Move Perl to build
8815 requirements. Always necessary on Solaris 2 with Sun ld.
8817 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8819 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8821 (Specific, i?86-*-solaris2.[89]): Likewise.
8822 (Specific, i?86-*-solaris2.10): Likewise.
8823 (Specific, mips-sgi-irix6): Likewise.
8824 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8825 Update for binutils 2.21.
8827 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8829 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8830 Allow -fuse-linker-plugin for non-default plugin linker.
8831 * configure: Regenerate.
8833 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8836 * gengtype.c (files_rules): Added rule for cp/parser.h.
8838 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8841 * config/s390/s390.c (s390_delegitimize_address): Don't call
8842 lowpart_subreg if orig_x has BLKmode.
8844 2011-03-21 Kai Tietz <ktietz@redhat.com>
8847 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8848 * tree.h (attribute_spec): Add new member affects_type_identity.
8849 * attribs.c (empty_attribute_table): Adjust attribute_spec
8851 * config/alpha/alpha.c: Likewise.
8852 * config/arc/arc.c: Likewise.
8853 * config/arm/arm.c: Likewise.
8854 * config/avr/avr.c: Likewise.
8855 * config/bfin/bfin.c: Likewise.
8856 * config/crx/crx.c: Likewise.
8857 * config/darwin.h: Likewise.
8858 * config/h8300/h8300.c: Likewise.
8859 * config/i386/cygming.h: Likewise.
8860 * config/i386/i386.c: Likewise.
8861 * config/ia64/ia64.c: Likewise.
8862 * config/m32c/m32c.c: Likewise.
8863 * config/m32r/m32r.c: Likewise.
8864 * config/m68hc11/m68hc11.c: Likewise.
8865 * config/m68k/m68k.c: Likewise.
8866 * config/mcore/mcore.c: Likewise.
8867 * config/mep/mep.c: Likewise.
8868 * config/microblaze/microblaze.c: Likewise.
8869 * config/mips/mips.c: Likewise.
8870 * config/rs6000/rs6000.c: Likewise.
8871 * config/rx/rx.c: Likewise.
8872 * config/sh/sh.c: Likewise.
8873 * config/sol2.h: Likewise.
8874 * config/sparc/sparc.c: Likewise.
8875 * config/spu/spu.c: Likewise.
8876 * config/stormy16/stormy16.c: Likewise.
8877 * config/v850/v850.c: Likewise.
8879 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8881 * simplify-rtx.c (simplify_binary_operation_1): Handle
8882 (xor (and A B) C) case when B and C are both constants.
8884 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8886 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8888 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8891 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8893 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8895 PR rtl-optimization/48156
8896 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8897 assume df and df_lr are not NULL.
8899 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8902 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8903 between a call and its CALL_ARG_LOCATION note.
8905 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8908 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8909 between a call and its corresponding CALL_ARG_LOCATION note.
8911 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8913 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8914 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8915 * haifa-sched.c (setup_ref_regs): Ditto.
8916 * caller-save.c (add_used_regs_1): Ditto.
8917 * dse.c (look_for_hardregs): Ditto.
8918 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8919 * sched-rgn.c (check_live_1): Ditto.
8921 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8923 * c-decl.c (diagnose_mismatched_decls): Give an error for
8924 redefining a typedef with variably modified type.
8926 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8928 * c-decl.c (grokfield): Don't allow typedefs for structures or
8929 unions with no tag by default.
8930 * doc/extend.texi (Unnamed Fields): Update.
8932 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8934 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8935 Rewrite using indirect functions.
8936 (lwp_slwpcb): Ditto.
8937 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8938 (avx_vinsertf128<mode>): Ditto.
8940 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8942 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8945 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8947 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8948 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8950 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8952 PR rtl-optimization/48170
8953 * gcse.c (hoist_code): Remove bogus asserts.
8955 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8957 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8958 computation for prologue/epilogue.
8960 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8962 * Makefile.in (check-consistency): Remove.
8964 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8967 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8968 arange_table_in_use is 0, but either text_section_used or
8969 cold_text_section_used is true. Don't call it if
8970 !info_section_emitted.
8972 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8974 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8975 FUNCTION_VALUE_REGNO_P): Remove.
8976 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8978 * config/avr/avr.c (avr_ret_register): Make static inline.
8979 (avr_function_value_regno_p): New function.
8980 (avr_libcall_value): Make static. Add 'func' argument.
8981 (avr_function_value): Make static. Rename 'func' argument to
8982 'fn_decl_or_type', forward it to avr_libcall_value. Call
8983 avr_ret_register function instead of RET_REGISTER macro.
8984 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8986 2011-03-18 Jason Merrill <jason@redhat.com>
8989 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8991 2011-03-18 Richard Guenther <rguenther@suse.de>
8993 * doc/install.texi (--enable-gold): Remove.
8994 (--with-plugin-ld): Document.
8995 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8997 2011-03-18 Andrew Pinski <pinskia@gmail.com>
9000 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9001 again after expansion changes.
9003 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9005 * combine.c (try_combine): Do simplification only call of
9006 subst() on i2 even when i1 is present. Update comments.
9008 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9010 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9011 and UNSPEC_PCREL_SYMOFF.
9013 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9015 * config/s390/s390.md: Use define_c_enum for the unspec constant
9018 2011-03-18 Richard Henderson <rth@redhat.com>
9019 Jakub Jelinek <jakub@redhat.com>
9022 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9023 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9025 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9028 * combine.c (cant_combine_insn_p): Don't check zero/sign
9029 extended hard registers.
9031 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9034 * combine.c (cant_combine_insn_p): Check zero/sign extended
9037 2011-03-17 Anatoly Sokolov <aesok@post.ru>
9039 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9040 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9041 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9042 Change return type to bool.
9043 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9045 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9048 * var-tracking.c (prepare_call_arguments): If CALL target
9049 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9050 pc instead of looking it up using cselib_lookup and use
9051 Pmode for it if x has VOIDmode.
9052 * dwarf2out.c (gen_subprogram_die): If also both first and
9053 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9056 * function.c (assign_parms): For data.passed_pointer parms
9057 use MEM of data.entry_parm instead of data.entry_parm itself
9058 as DECL_INCOMING_RTL.
9059 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9060 also when passed and declared mode is the same, DECL_RTL
9061 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9064 2011-03-16 Jeff Law <law@redhat.com>
9066 PR rtl-optimization/37273
9067 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9068 handle them like argument loads from stack slots. Do not double
9069 count memory for memory constants and argument loads from stack slots.
9071 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9074 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9076 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9079 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9081 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9084 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9086 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9087 Clear call_arg_locations and call_arg_loc_last always.
9090 * var-tracking.c (prepare_call_arguments): If argument needs to be
9091 passed by reference, adjust argtype and mode.
9093 2011-03-17 Richard Guenther <rguenther@suse.de>
9096 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9097 a value make sure to fold the statement.
9099 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9102 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9103 return condition with !cfun->calls_alloca.
9105 2011-03-17 Richard Guenther <rguenther@suse.de>
9108 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9109 origin for decls in other ltrans units.
9110 (input_varpool_node): Likewise.
9112 2011-03-17 Richard Guenther <rguenther@suse.de>
9115 * tree-object-size.c (compute_object_offset): Properly return
9116 the offset operand of MEM_REFs as sizetype.
9118 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9120 PR rtl-optimization/48141
9121 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9122 * dse.c: Include params.h.
9123 (active_local_stores_len): New variable.
9124 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9126 (record_store, check_mem_read_rtx): Decrease it when removing
9128 (scan_insn): Likewise. Increase it when adding to chain, if it
9129 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9130 set active_local_stores to NULL before the addition.
9131 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9133 PR rtl-optimization/48141
9134 * dse.c (record_store): If no positions are needed in an insn
9135 that cannot be deleted, at least unchain it from active_local_stores.
9137 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9140 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9141 (lookup_type_die_strip_naming_typedef): ... here.
9142 (get_context_die): Use it.
9143 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9144 the anonymous struct named by the naming typedef.
9146 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9149 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9150 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9152 2011-03-16 Jeff Law <law@redhat.com>
9154 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9155 check for operands of conditional. Allow type to be a pointer.
9157 2011-03-16 Richard Guenther <rguenther@suse.de>
9159 PR tree-optimization/48149
9160 * fold-const.c (fold_binary_loc): Fold
9161 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9163 2011-03-16 Richard Guenther <rguenther@suse.de>
9165 PR tree-optimization/26134
9166 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9167 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9168 (non_rewritable_mem_ref_base): Handle complex type component
9169 accesses, constrain offsets for vector and complex extracts
9172 2011-03-16 Richard Guenther <rguenther@suse.de>
9174 PR tree-optimization/48146
9175 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9176 operands avoiding the need for renaming.
9178 2011-03-16 Richard Guenther <rguenther@suse.de>
9180 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9181 constant folding. Move MEM_REF canonicalization first.
9182 Rely on fold_const_aggregate_ref for initializer folding.
9183 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9185 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9188 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9189 arg0/arg1 or their arguments are always fold converted to matching
9192 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9195 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9198 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9199 Handle in-tree gold.
9200 (ld_vers): Extract binutils version for gold.
9201 (gcc_cv_ld_hidden): Handle gold here.
9202 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9203 * configure: Regenerate.
9204 * config.in: Regenerate.
9205 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9206 -fuse-linker-plugin otherwise.
9207 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9208 (LINK_COMMAND_SPEC): Use it.
9209 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9211 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9213 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9214 * calls.c: Remove debug.h include.
9215 (emit_call_1): Don't call virtual_call_token debug hook.
9216 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9217 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9218 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9219 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9220 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9221 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9222 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9223 dwarf2out_virtual_call): Remove.
9224 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9225 copy_call_info and virtual_call hooks.
9226 (dwarf2out_init): Don't initialize vcall_insn_table,
9227 debug_dcall_section and debug_vcall_section.
9228 (prune_unused_types): Don't mark nodes from dcall_table.
9229 (dwarf2out_finish): Don't output dcall or vcall tables.
9230 * final.c (final_scan_insn): Don't call direct_call or
9231 virtual_call debug hooks.
9232 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9233 virtual_call_token, copy_call_info and virtual_call hooks.
9234 (debug_nothing_uid): Remove prototype.
9235 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9236 copy_call_info and virtual_call hooks.
9237 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9238 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9239 * debug.c (do_nothing_debug_hooks): Likewise.
9240 (debug_nothing_uid): Remove.
9241 * doc/invoke.texi (-fenable-icf-debug): Remove.
9242 * common.opt (-fenable-icf-debug): Likewise.
9244 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9245 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9246 call's MEM. Handle functions returning aggregate through a hidden
9247 first pointer. For virtual calls add clobbered pc to call arguments
9249 * dwarf2out.c (gen_subprogram_die): Emit
9250 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9254 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9255 * rtl.h (ENTRY_VALUE_EXP): Define.
9256 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9257 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9258 * print-rtl.c (print_rtx): Likewise.
9259 * gengtype.c (adjust_field_rtx_def): Likewise.
9260 * var-tracking.c (vt_add_function_parameter): Adjust
9261 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9262 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9263 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9264 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9265 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9267 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9268 Call var_location debug hook even on CALL_INSNs.
9269 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9270 * rtl.def (ENTRY_VALUE): New.
9271 * dwarf2out.c: Include cfglayout.h.
9272 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9273 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9274 (struct call_arg_loc_node): New type.
9275 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9276 tail_call_site_count): New variables.
9277 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9278 DW_TAG_GNU_call_site_parameter.
9279 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9280 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9281 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9282 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9283 and DW_AT_GNU_all_source_call_sites.
9284 (mem_loc_descriptor): Handle ENTRY_VALUE.
9285 (add_src_coords_attributes): Don't add enything if
9286 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9287 (dwarf2out_abstract_function): Save and clear call_arg_location,
9288 call_site_count and tail_call_site_count around dwarf2out_decl call.
9289 (gen_call_site_die): New function.
9290 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9291 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9292 (dwarf2out_function_decl): Clear call_arg_locations,
9293 call_arg_loc_last, set call_site_count and tail_call_site_count
9294 to -1 and free block_map.
9295 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9296 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9297 followed by any real instructions.
9298 (dwarf2out_begin_function): Set call_site_count and
9299 tail_call_site_count to 0.
9300 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9301 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9302 attempt to force a DIE for it and worst case remove the attribute.
9303 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9304 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9306 * var-tracking.c: Include tm_p.h.
9307 (vt_stack_adjustments): For calls call note_register_arguments.
9308 (argument_reg_set): New variable.
9309 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9310 ensure the VALUE is resolved.
9311 (call_arguments): New variable.
9312 (prepare_call_arguments): New function.
9313 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9314 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9315 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9316 always use the best expression.
9317 (vt_expand_loc): Add ignore_cur_loc argument.
9318 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9319 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9320 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9322 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9323 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9324 argument. Don't call cselib_preserve_only_values and
9326 (note_register_arguments): New function.
9327 (vt_initialize): Compute argument_reg_set. Call
9328 vt_add_function_parameters before processing basic blocks instead of
9329 afterwards. For calls call prepare_call_arguments before calling
9330 cselib_process_insn.
9331 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9332 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9333 (var-tracking.o): Depend on $(TM_P_H).
9334 * cfglayout.h (insn_scope): New prototype.
9335 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9336 * cfglayout.c (insn_scope): No longer static.
9337 * insn-notes.def (CALL_ARG_LOCATION): New.
9338 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9339 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9340 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9341 nothing for DECL_EXTERNAL BLOCK_VARS.
9343 2011-03-16 Alan Modra <amodra@gmail.com>
9346 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9347 create invalid offset address for vsx splat insn.
9348 * config/rs6000/predicates.md (splat_input_operand): New.
9349 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9351 2011-03-15 Xinliang David Li <davidxl@google.com>
9354 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9355 (normalize_preds): New function.
9356 (is_use_properly_guarded): Normalize def predicates.
9358 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9361 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9362 in the output template.
9364 2011-03-15 Richard Guenther <rguenther@suse.de>
9367 * tree-pretty-print.c (dump_function_declaration): Properly
9368 dump unprototyped and varargs function types.
9370 2011-03-15 Richard Guenther <rguenther@suse.de>
9372 PR tree-optimization/13954
9373 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9376 2011-03-15 Richard Guenther <rguenther@suse.de>
9378 PR tree-optimization/48037
9379 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9380 selects into BIT_FIELD_REFs.
9381 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9384 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9386 PR tree-optimization/48129
9387 * builtins.c (fold_builtin_snprintf): Convert to type of
9388 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9389 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9391 2011-03-15 Richard Guenther <rguenther@suse.de>
9393 PR tree-optimization/41490
9394 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9395 value but with VUSE.
9396 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9398 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9399 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9400 * tree-tailcall.c (find_tail_calls): Ignore returns.
9402 2011-03-15 Richard Guenther <rguenther@suse.de>
9405 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9406 or variable-indexed array accesses when in gimple form.
9408 2011-03-15 Richard Guenther <rguenther@suse.de>
9410 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9412 2011-03-15 Alan Modra <amodra@gmail.com>
9415 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9416 presume symbol_refs without a symbol_ref_decl are suitably
9417 aligned, nor other trees we may see here. Handle anchor symbols.
9418 (legitimate_constant_pool_address_p): Comment. Add mode param.
9419 Check cmodel=medium addresses. Adjust all calls.
9420 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9421 creating cmodel=medium optimized access to locals.
9422 * config/rs6000/constraints.md (R): Pass QImode to
9423 legitimate_constant_pool_address_p.
9424 * config/rs6000/predicates.md (input_operand): Pass mode to
9425 legitimate_constant_pool_address_p.
9426 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9429 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9432 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9433 64-bit constants being loaded into registers other than GPRs such
9434 as loading 0 into a VSX register.
9436 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9438 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9440 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9443 * builtins.c (fold_builtin_snprintf): New function.
9444 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9445 (fold_builtin_4): Likewise.
9448 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9449 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9450 and C - X == X also strip nops from +/-/p+ operand.
9451 When optimizing -X == C, fold C to arg0's type.
9454 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9455 emit it as add_AT_int instead of add_AT_unsigned.
9457 2011-03-14 Tom Tromey <tromey@redhat.com>
9459 * unwind-dw2.c: Include sys/sdt.h if it exists.
9460 (_Unwind_DebugHook): Use STAP_PROBE2.
9461 * config.in, configure: Rebuild.
9462 * configure.ac: Check for sys/sdt.h.
9464 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9466 * config/i386/i386.md (ROUND_FLOOR): New constant.
9467 (ROUND_CEIL): Ditto.
9468 (ROUND_TRUNC): Ditto.
9469 (ROUND_MXCSR): Ditto.
9470 (ROUND_NO_EXC): Ditto.
9471 (rint<mode>2): Use new defines instead of numerical constants.
9472 (floor<mode>2): Ditto.
9473 (ceil<mode>2): Ditto.
9474 (btrunc<mode>2): Ditto.
9475 * config/i386/i386-builtin-types.def: Define ROUND function type
9477 * config/i386/i386.c (enum ix86_builtins): Add
9478 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9479 (struct builtin_description): Add
9480 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9481 (ix86_expand_sse_round): New static function.
9482 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9484 (ix86_builtin_vectorized_function): Handle
9485 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9487 2011-03-14 Tom Tromey <tromey@redhat.com>
9489 * c-parser.c (c_parser_asm_string_literal): Clear
9490 warn_overlength_strings.
9492 2011-03-14 Tom Tromey <tromey@redhat.com>
9494 * c-parser.c (disable_extension_diagnostics): Save
9495 warn_overlength_strings.
9496 (restore_extension_diagnostics): Restore warn_overlength_strings.
9498 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9500 * BASE-VER: Change to 4.7.0.
9502 2011-03-14 Richard Guenther <rguenther@suse.de>
9505 * tree.c (build_vector_from_val): Adjust assert to requirements
9508 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9511 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9513 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9515 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9516 terms of target_flags_explicit. Adjust copyright year.
9518 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9519 * config/rs6000/t-freebsd: New file. Add override for
9522 2011-03-13 Chris Demetriou <cgd@google.com>
9524 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9525 (-fno-diagnostics-show-option): this, to reflect current default.
9526 (-Werror=): Update text about -fno-diagnostics-show-option.
9528 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9531 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9532 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9533 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9534 mode is not V2DImode or V2DFmode.
9535 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9536 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9537 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9539 (movdi_internal64): Likewise.
9541 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9543 PR tree-optimization/47127
9544 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9546 (set_cloog_options): Same.
9547 (scop_to_clast): Same.
9548 (print_clast_stmt): Do not call cloog_state_malloc and
9550 (print_generated_program): Same.
9552 * graphite-clast-to-gimple.h (cloog_state): Declared.
9553 (scop_to_clast): Adjust declaration.
9554 * graphite.c (cloog_state): Defined here.
9555 (graphite_initialize): Call cloog_state_malloc.
9556 (graphite_finalize): Call cloog_state_free.
9558 2011-03-11 Jason Merrill <jason@redhat.com>
9560 * attribs.c (lookup_attribute_spec): Take const_tree.
9563 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9565 * config/sparc/sparc.c (sparc_option_override): Use
9566 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9568 2011-03-11 Richard Guenther <rguenther@suse.de>
9570 PR tree-optimization/48067
9571 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9572 multiplication result will be only used once on the target
9575 2011-03-11 Richard Guenther <rguenther@suse.de>
9577 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9579 2011-03-11 Richard Guenther <rguenther@suse.de>
9582 * tree.c (find_decls_types_r): Do not walk types only reachable
9583 from IDENTIFIER_NODEs.
9585 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9588 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9589 all vnode->force_output nodes as needed.
9591 2011-03-11 Jason Merrill <jason@redhat.com>
9594 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9595 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9597 2011-03-11 Martin Jambor <mjambor@suse.cz>
9599 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9602 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9604 PR tree-optimization/48063
9605 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9606 inline functions called once if !tree_can_inline_p (node->callers).
9608 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9610 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9612 * config/score/score3.c: Delete.
9613 * config/score/score3.h: Delete.
9614 * config/score/mul-div.S: Delete.
9615 * config/score/sfp-machine.h: Add new file.
9616 * config/score/constraints.md: Add new file.
9617 * config/score/t-score-softfp: Add new file.
9618 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9619 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9620 (score7_extra_constraint): Delete.
9621 (score7_option_override): Remove unused code.
9622 * config/score/score.c: Remove score3 and score5 define and code.
9623 * config/score/score.h: Remove score3 and score5 define and code.
9624 * config/score/score.md: Remove score3 template and unusual insn.
9625 * config/score/score.opt: Remove score3 and score5 options.
9627 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9629 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9630 when _HPUX_SOURCE is defined.
9631 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9633 2011-03-10 Jason Merrill <jason@redhat.com>
9636 * stor-layout.c (layout_type): Don't set structural equality
9637 on arrays of incomplete type.
9638 * tree.c (type_hash_eq): Handle comparing them properly.
9640 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9643 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9644 result mode matches original rtl mode.
9646 2011-03-10 Nick Clifton <nickc@redhat.com>
9648 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9649 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9651 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9653 PR rtl-optimization/47866
9654 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9655 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9656 if target wasn't scalar.
9657 * function.c (assign_stack_temp_for_type): Assert that neither
9658 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9659 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9661 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9663 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9665 * config/s390/s390-protos.h (s390_label_align): New prototype.
9666 * config/s390/s390.c (s390_label_align): New function.
9667 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9669 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9672 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9673 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9674 (output_vec_const_move): Ditto.
9676 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9678 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9679 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9680 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9681 Change 'rclass' argument and result type to reg_class_t.
9682 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9684 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9686 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9687 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9688 (TARGET_MEMORY_MOVE_COST): Define.
9689 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9691 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9694 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9697 PR tree-optimization/48022
9698 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9701 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9704 * var-tracking.c (find_use_val): Return NULL for
9705 cui->sets && cui->store_p BLKmode MEMs.
9707 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9709 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9711 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9712 xstormy16_print_operand_address): Remove.
9713 * config/stormy16/stormy16.c (xstormy16_print_operand,
9714 xstormy16_print_operand_address): Make static.
9715 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9717 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9720 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9721 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9724 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9727 * cfgloopmanip.c (fix_bb_placements): Return immediately
9728 if FROM is BASE_LOOP's header.
9730 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9732 * gimplify.c (gimplify_function_tree): Fix building calls
9733 to __builtin_return_address.
9735 2011-03-07 Alan Modra <amodra@gmail.com>
9737 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9738 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9739 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9740 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9742 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9743 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9744 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9745 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9746 * config/rs6000/rs6000.c
9747 (rs6000_elf_end_indicate_exec_stack): Rename to..
9748 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9749 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9750 (rs6000_file_start): ..here.
9751 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9752 file scope variables.
9753 (call_ABI_of_interest): New function.
9754 (init_cumulative_args): Set above vars when function return value
9755 is a float, vector, or small struct.
9756 (rs6000_function_arg_advance_1): Likewise for function args.
9757 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9758 references float args.
9760 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9762 * doc/cfg.texi: Remove "See" before @ref.
9763 * doc/invoke.texi: Likewise.
9765 2011-03-05 Jason Merrill <jason@redhat.com>
9767 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9769 2011-03-05 Anthony Green <green@moxielogic.com>
9771 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9773 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9775 PR rtl-optimization/47899
9776 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9777 to flow_loop_nested_p when moving the loop upward.
9779 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9782 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9784 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9786 PR tree-optimization/47967
9787 * ipa-cp.c (build_const_val): Return NULL instead of creating
9788 VIEW_CONVERT_EXPR for mismatching sizes.
9789 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9790 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9791 give up on versioning.
9793 2011-03-05 Alan Modra <amodra@gmail.com>
9796 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9797 full cmodel medium/large lo_sum + high addresses.
9799 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9801 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9802 pool references in UNSPEC_LTREL_OFFSET.
9804 2011-03-04 Jan Hubicka <jh@suse.cz>
9807 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9808 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9809 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9811 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9812 cgraph_add_thunk): Add node pointers.
9813 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9814 associated to right node.
9815 (input_node): Update use of cgraph_same_body_alias
9816 and cgraph_add_thunk.
9818 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9820 * config/i386/i386.opt (mprefer-avx128): New flag.
9821 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9822 modes when the flag -mprefer-avx128 is on.
9824 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9826 * dwarf2out.c (compare_loc_operands): Fix address handling.
9828 2011-03-04 Alan Modra <amodra@gmail.com>
9830 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9832 2011-03-04 Richard Guenther <rguenther@suse.de>
9835 * expmed.c (extract_bit_field_1): Prefer vector modes that
9836 vec_extract patterns can handle.
9838 2011-03-04 Richard Guenther <rguenther@suse.de>
9841 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9843 2011-03-04 Richard Henderson <rth@redhat.com>
9845 * explow.c (emit_stack_save): Remove 'after' parameter.
9846 (emit_stack_restore): Likewise.
9847 * expr.h: Update to match.
9848 * builtins.c, calls.c, stmt.c: Likewise.
9849 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9850 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9851 * function.c (expand_function_end): Insert the emit_stack_save
9852 sequence before parm_birth_insn instead of after.
9854 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9856 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9857 (ssse3_pmaddubsw128): Ditto.
9858 (ssse3_pmaddubsw): Ditto.
9860 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9862 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9864 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9867 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9868 on TYPE_SIZE_UNIT if it is a DECL.
9871 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9872 first operand is not is_gimple_mem_ref_addr, try to fold it.
9873 If the operand still isn't is_gimple_mem_ref_addr, clear
9876 2011-03-03 Richard Guenther <rguenther@suse.de>
9879 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9881 (refs_may_alias_p_1): For release branches return true if
9882 we are confused by our input.
9884 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9886 * config/s390/s390.c (s390_function_value): Rename to ...
9887 (s390_function_and_libcall_value): ... this.
9888 (s390_function_value): New function.
9889 (s390_libcall_value): New function.
9890 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9891 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9892 target macro definitions.
9893 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9895 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9897 * config/i386/freebsd64.h (CC1_SPEC): Define.
9898 * config/i386/linux64.h (CC1_SPEC): Define.
9899 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9901 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9903 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9905 * config/stormy16/stormy16.c: Include reload.h.
9906 (xstormy16_memory_move_cost): New function.
9907 (TARGET_MEMORY_MOVE_COST): Define.
9909 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9911 PR rtl-optimization/47925
9912 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9913 with side effects. Remove the more-specific check for volatile asms.
9915 2011-03-02 Alan Modra <amodra@gmail.com>
9918 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9919 toc relative addresses for valid offsets.
9921 2011-03-01 Richard Guenther <rguenther@suse.de>
9923 PR tree-optimization/47890
9924 * tree-vect-loop.c (get_initial_def_for_induction): Set
9925 related stmt properly.
9927 2011-03-01 Richard Guenther <rguenther@suse.de>
9930 * lto-streamer.c (lto_record_common_node): Also register
9933 2011-03-01 Richard Guenther <rguenther@suse.de>
9936 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9937 Do not stream DECL_ABSTRACT_ORIGIN.
9938 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9939 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9940 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9941 Do not stream DECL_ABSTRACT_ORIGIN.
9942 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9943 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9945 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9947 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9948 FUNCTION_VALUE_REGNO_P): Remove.
9949 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9950 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9951 Add 'outgoing' argument.
9952 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9954 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9955 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9957 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9960 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9961 (lookup_filename): Likewise.
9962 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9964 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9965 Jakub Jelinek <jakub@redhat.com>
9968 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9969 (assign_stack_local_1): Change last argument type to int.
9970 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9971 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9972 don't record padding space into frame_space_list nor use those areas.
9973 (assign_stack_local): Adjust caller.
9974 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9975 of assign_stack_local, pass 0 as last argument.
9976 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9979 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9982 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9983 Use target address_mode and pointer_mode hooks instead of hardcoded
9984 Pmode and ptr_mode. Handle some simple cases of extending if
9985 POINTERS_EXTEND_UNSIGNED < 0.
9986 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9987 Call convert_debug_memory_address.
9988 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9989 convert_debug_memory_address.
9992 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9993 * configure: Regenerated.
9994 * config.in: Regenerated.
9995 * varasm.c (default_function_section): Return NULL
9996 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9998 2011-02-28 Martin Jambor <mjambor@suse.cz>
10000 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10001 the description to match the printed values.
10003 2011-02-28 Richard Guenther <rguenther@suse.de>
10005 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10006 of the copied scope tree.
10008 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10010 * doc/extend.texi (Function Attributes): Avoid deeply (and
10011 wrongly) nested tables.
10013 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10015 PR middle-end/47903
10016 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10017 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10018 r isn't op0 nor op1.
10020 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10022 * config/avr/avr.md: Remove magic comment for emacs.
10024 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
10027 * config/avr/avr.c (avr_option_override): Use error on bad options.
10028 (avr_help): New function.
10029 (TARGET_HELP): Define.
10031 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
10034 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10035 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10037 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10039 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10040 (ARM Options): Ditto.
10041 (i386 and x86-64 Options): Ditto.
10042 (RX Options): Ditto.
10043 (SPARC Options): Ditto.
10045 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
10047 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10048 FreeBSD 6 and later. Generally use cpu generic.
10050 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10052 * doc/cpp.texi: Update copyright years.
10054 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
10057 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10059 2011-02-25 Jon Beniston <jon@beniston.com>
10062 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10063 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10064 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10065 (lm32_block_move_inline): Add type cast to remove warning.
10066 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10067 (gen_int_relational): Move declarations to start of function.
10069 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10071 PR tree-optimization/45470
10072 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10073 can throw internally only.
10074 * tree-vect-stmts.c (vectorizable_call): Likewise.
10076 2011-02-24 Anatoly Sokolov <aesok@post.ru>
10078 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10079 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10080 * config/stormy16/stormy16-protos.h
10081 (xstormy16_preferred_reload_class): Remove.
10082 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10083 static. Change 'rclass' argument and return type to reg_class_t.
10084 (TARGET_PREFERRED_RELOAD_CLASS,
10085 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10087 2011-02-24 Richard Guenther <rguenther@suse.de>
10089 * lto-streamer-in.c (input_bb): Do not find referenced vars
10090 in debug statements.
10092 2011-02-23 Jason Merrill <jason@redhat.com>
10094 * common.opt (fabi-version): Document v5 and v6.
10096 2011-02-23 Richard Guenther <rguenther@suse.de>
10098 PR tree-optimization/47849
10099 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10101 2011-02-23 Jie Zhang <jie@codesourcery.com>
10103 * opts-common.c (decode_cmdline_option): Print empty string
10104 argument as "" in decoded->orig_option_with_args_text.
10105 * gcc.c (execute): Print empty string argument as ""
10106 in the verbose output.
10107 (do_spec_1): Keep empty string argument.
10109 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10111 * config.gcc: Declare score-* and crx-* obsolete.
10113 2011-02-23 Jie Zhang <jie@codesourcery.com>
10115 PR rtl-optimization/47763
10116 * web.c (web_main): Ignore naked clobber when replacing register.
10118 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10120 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10123 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10126 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10128 2011-02-22 Mike Stump <mikestump@comcast.net>
10130 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10132 * configure: Regenerate.
10134 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10136 PR rtl-optimization/46002
10137 * ira-color.c (update_copy_costs): Change class intersection
10138 test to reg_class_contents[] test of 'hard_regno'.
10140 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10142 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10143 than Driver option.
10144 * config/hpux11.opt (mt): Likewise.
10145 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10146 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10147 * config/vax/elf.opt (mno-asm-pic): Likewise.
10148 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10150 2011-02-21 Mike Stump <mikestump@comcast.net>
10153 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10154 tree so we can get save the type.
10155 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10156 for CFString instead of trying to use past the end of the builtins.
10157 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10158 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10159 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10160 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10161 Rename to darwin_builtin_cfstring.
10162 (darwin_init_cfstring_builtins): Return the built type.
10164 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10167 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10168 (_mm256_insert_epi64): Use _mm_insert_epi64.
10170 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10172 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10173 * config/stormy16/stormy16-protos.h
10174 (xstormy16_mode_dependent_address_p): Remove.
10175 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10176 Make static. Change return type to bool. Change argument type to
10177 const_rtx. Remove dead code.
10178 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10180 2011-02-21 Richard Guenther <rguenther@suse.de>
10183 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10184 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10185 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10187 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10188 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10190 2011-02-20 Richard Guenther <rguenther@suse.de>
10193 * tree.c (free_lang_data_in_decl): Clean builtins from
10194 the TU decl BLOCK_VARS.
10196 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10200 * haifa-sched.c (fix_tick_ready): Skip tick computation
10203 2011-02-19 Richard Guenther <rguenther@suse.de>
10206 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10207 Remove lazy BLOCK_VARS streaming.
10208 (lto_input_ts_block_tree_pointers): Likewise.
10209 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10211 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10213 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10215 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10217 * config/i386/biarch32.h, config/i386/mach.h,
10218 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10220 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10223 * config/i386/i386.md (peephole2 for shift and plus): Use
10224 operands[1] original mode in the first insn.
10226 2011-02-18 Mike Stump <mikestump@comcast.net>
10228 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10230 2011-02-18 Jan Hubicka <jh@suse.cz>
10232 PR middle-end/47788
10233 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10234 to zero when the function is not inlinable at all.
10236 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10238 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10239 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10240 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10241 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10242 * config/pa/t-pa64: Likewise.
10243 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10245 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10248 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10250 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10253 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10255 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10257 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10258 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10259 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10260 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10261 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10262 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10263 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10264 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10265 m32r_legitimate_address_p): New functions.
10266 * config/m32r/constraints.md (constraint "S"): Don't use
10267 STORE_PREINC_PREDEC_P.
10268 (constraint "U"): Don't use LOAD_POSTINC_P.
10270 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10272 PR rtl-optimization/46178
10273 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10274 compute ira_hard_regno_cover_class[].
10276 2011-02-18 Richard Guenther <rguenther@suse.de>
10279 * lto-streamer.h (lto_global_var_decls): Declare.
10280 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10281 statics for global var processing.
10283 2011-02-18 Richard Guenther <rguenther@suse.de>
10285 PR tree-optimization/47737
10286 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10287 edge dominance check.
10289 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10292 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10293 avoid invalid rtx sharing.
10295 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10297 * doc/cpp.texi (Obsolete Features): Add background on the
10298 origin of assertions.
10300 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10302 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10304 * config/darwin.c (output_objc_section_asm_op): Added support for
10306 (is_objc_metadata): New.
10307 (darwin_objc2_section): New.
10308 (darwin_objc1_section): New.
10309 (machopic_select_section): Added support for ABI v1 and v2.
10310 (darwin_emit_objc_zeroed): New.
10311 (darwin_output_aligned_bss): Detect objc metadata and treat it
10313 (darwin_asm_output_aligned_decl_common): Same.
10314 (darwin_asm_output_aligned_decl_local): Same.
10315 * config/darwin-sections.def: Updated for ABI v1 and v2.
10316 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10317 compiling Objective-C code for the NeXT runtime, default to using
10318 ABI version 0 for 32-bit, and version 2 for 64-bit.
10320 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10322 * common.opt (optimize_fast): New Variable.
10323 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10324 instead of local variable ofast.
10326 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10328 * doc/invoke.texi (fobjc-abi-version): Documented.
10329 (fobjc-nilcheck): Documented.
10330 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10333 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10336 * common.opt (export-dynamic): New Driver option.
10337 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10339 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10341 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10343 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10344 Jan Hubicka <jh@suse.cz>
10348 * cfgexpand.c (account_used_vars_for_block): Remove.
10349 (estimated_stack_frame_size): Use referenced vars.
10350 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10351 that were referenced in the original function. Test src_fn
10352 rather than cfun. Drop redundant get_var_ann.
10353 (setup_one_parameter): Drop redundant get_var_ann.
10354 (declare_return_variable): Likewise.
10355 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10356 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10357 * ipa-inline.c (compute_inline_parameters): Do not compute
10358 disregard_inline_limits here.
10359 (compute_inlinable_for_current, pass_inlinable): New.
10360 (pass_inline_parameters): Require PROP_referenced_vars.
10361 * cgraphunit.c (cgraph_process_new_functions): Don't run
10362 compute_inline_parameters explicitly unless function is in SSA form.
10363 (cgraph_analyze_function): Set .disregard_inline_limits.
10364 * tree-sra.c (convert_callers): Compute inliner parameters
10365 only for functions already in SSA form.
10367 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10369 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10370 -mlittle-endian-data.
10372 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10374 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10375 -mno-fpu, not -fpu and -no-fpu.
10376 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10377 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10379 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10382 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10383 input reload with PLUS RTX.
10385 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10387 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10388 of InverseVar(MDMX).
10390 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10392 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10395 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10397 * config/mn10300/mn10300.opt (mno-crt0): New.
10399 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10401 * config/m68k/uclinux.opt (static-libc): New Driver option.
10403 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10405 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10407 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10409 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10410 %{muser-extend-enabled}.
10412 2011-02-16 Richard Guenther <rguenther@suse.de>
10414 PR tree-optimization/47738
10415 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10416 the TODO from tree_predictive_commoning.
10418 2011-02-15 Jeff Law <law@redhat.com>
10421 2011-01-25 Jeff Law <law@redhat.com>
10423 PR rtl-optimization/37273
10424 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10425 handle them like argument loads from stack slots. Do not double
10426 count memory for memory constants and argument loads from stack slots.
10428 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10430 PR middle-end/47725
10431 * combine.c (cant_combine_insn_p): Revert the last change.
10433 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10436 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10437 mode for vector constants. Remove code that checks for TImode.
10439 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10443 * cgraph.h (compute_inline_parameters): Return void.
10444 * ipa-inline.c (compute_inline_parameters): Adjust.
10446 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10450 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10452 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10453 * ipa-inline.c (compute_inline_parameters): Adjust.
10455 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10459 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10460 Adjust all users. Pass FN to...
10461 * tree-flow-inline.h (first_referenced_var): ... this. Add
10463 * ipa-struct-reorg.c: Adjust.
10464 * tree-dfa.c: Adjust.
10465 * tree-into-ssa.c: Adjust.
10466 * tree-sra.c: Adjust.
10467 * tree-ssa-alias.c: Adjust.
10468 * tree-ssa-live.c: Adjust.
10469 * tree-ssa.c: Adjust.
10470 * tree-ssanames.c: Adjust.
10471 * tree-tailcall.c: Adjust.
10473 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10477 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10478 Adjust all callers.
10479 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10480 * tree-flow-inline.h: Adjust.
10481 * gimple-pretty-print.c: Adjust.
10482 * tree-into-ssa.c: Adjust.
10483 * tree-ssa.c: Adjust.
10484 * cfgexpand.c: Adjust.
10486 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10488 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10489 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10490 (EXTRA_CONSTRAINT): Delete.
10491 * config/iq2000/constraints.md: New file.
10492 * config/iq2000/iq2000.md: Include it.
10493 (define_insn ""): Delete.
10494 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10495 unsupported constraint letters from patterns.
10496 (call_value, call_value_internal1): Likewise.
10497 (call_value_multiple_internal1): Likewise.
10499 2011-02-15 Nick Clifton <nickc@redhat.com>
10501 * config/mn10300/mn10300.c: Include tm-constrs.h.
10502 (struct liw_data): New data structure describing an LIW candidate
10504 (extract_bundle): Use struct liw_data. Allow small integer
10505 operands for some instructions.
10506 (check_liw_constraints): Use struct liw_data. Remove swapped
10507 parameter. Add comments describing the checks. Fix bug when
10508 assigning the source of liw1 to the source of liw2.
10509 (liw_candidate): Delete. Code moved into extract_bundle.
10510 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10512 * config/mn10300/predicates.md (liw_operand): New predicate.
10513 Allows registers and small integer constants.
10514 * config/mn10300/constraints.md (O): New constraint. Accetps
10515 integers in the range -8 to +7 inclusive.
10516 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10517 for moving a small integer into a register. Give this alternative
10519 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10520 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10521 using the J,K,L and M constraints,
10522 (liw): Remove SI mode on second operands to allow for HI and QI
10524 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10527 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10529 PR middle-end/47725
10530 * combine.c (cant_combine_insn_p): Check zero/sign extended
10533 2011-02-15 Richard Guenther <rguenther@suse.de>
10535 PR tree-optimization/47743
10536 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10537 for a non-type-compatible VN lookup bail out.
10539 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10541 * config/fr30/constraints.md: New file.
10542 * config/fr30/fr30.md: Include it.
10543 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10544 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10545 (EXTRA_CONSTRAINT): Delete.
10547 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10549 * config/frv/constraints.md: New file.
10550 * config/frv/predicates.md: Include it.
10551 * config/frv/frv.c (reg_class_from_letter): Delete.
10552 (frv_option_override): Don't initialize it.
10553 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10554 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10555 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10556 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10557 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10558 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10559 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10560 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10561 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10562 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10563 (REG_CLASS_FROM_CONSTRAINT): Delete.
10565 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10567 PR middle-end/47581
10568 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10569 if frame size is 0 in a leaf function.
10571 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10574 * config/alpha/host-osf.c: New file.
10575 * config/alpha/x-osf: New file.
10576 * config.host (alpha*-dec-osf*): Use it.
10578 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10580 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10581 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10582 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10583 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10585 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10587 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10589 * config/stormy16/constraints.md: New file.
10590 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10591 Use satisfies_constraint_Q and satisfies_constraint_R.
10592 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10594 (xstormy16_legitiamte_address_p): Declare.
10595 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10596 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10597 (EXTRA_CONSTRAINT): Delete.
10598 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10600 (xstormy16_extra_constraint_p): Delete.
10602 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10604 PR tree-optimization/46494
10605 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10606 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10607 (pass_rtl_loop_done): Add TODO_verify_flow.
10608 * fwprop.c (pass_rtl_fwprop): Likewise.
10609 * modulo-sched.c (pass_sms): Likewise.
10610 * tree-ssa-dom.c (pass_dominator): Likewise.
10611 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10612 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10613 (pass_tree_loop_done): Likewise.
10614 * tree-ssa-pre.c (execute_pre): Likewise.
10615 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10616 * tree-ssa-sink.c (pass_sink_code): Likewise.
10617 * tree-vrp.c (pass_vrp): Likewise.
10619 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10621 * config/v850/constraints.md: New file.
10622 * config/v850/v850.md: Include it.
10623 * config/v850/predicates.md (reg_or_0_operand): Use
10624 satisfies_constraint_G.
10625 (special_symbolref_operand): Use satisfies_constraint_K.
10626 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10627 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10628 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10629 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10630 (EXTRA_CONSTRAINT): Delete.
10631 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10632 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10633 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10635 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10638 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10641 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10643 * config/mcore/constraints.md: New file.
10644 * config/mcore/mcore.md: Include it.
10645 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10646 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10647 (REG_CLASS_FROM_LETTER): Delete.
10648 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10649 insn_const_int_ok_for_constraint.
10650 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10651 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10652 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10653 (EXTRA_CONSTRAINT): Delete.
10655 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10658 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10659 (IS_SIGHANDLER): Define.
10660 (sparc64_is_sighandler): New function, split off from
10661 sparc64_fallback_frame_state.
10662 (sparc_is_sighandler): New function, split off from
10663 sparc_fallback_frame_state.
10664 (sparc64_fallback_frame_state): Merge with ...
10665 (sparc_fallback_frame_state): ... this into ...
10666 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10667 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10668 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10669 stack instead of hardcoded offsets.
10671 2011-02-14 Andriy Gapon <avg@freebsd.org>
10674 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10676 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10678 * configure: Regenerate.
10680 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10683 * gcc.c (asm_options): Correct spec matching --target-help.
10685 2011-02-12 Martin Jambor <mjambor@suse.cz>
10687 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10688 to gimple call error.
10690 2011-02-12 Mike Stump <mikestump@comcast.net>
10692 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10693 comments in backslash regions.
10695 2011-02-12 Mike Stump <mikestump@comcast.net>
10696 Jakub Jelinek <jakub@redhat.com>
10697 Iain Sandoe <iains@gcc.gnu.org>
10700 * dwarf2out.c (output_cfa_loc): When required, apply the
10701 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10702 (output_loc_sequence): Likewise.
10703 (output_loc_operands_raw): Likewise.
10704 (output_loc_sequence_raw): Likewise.
10705 (output_cfa_loc): Likewise.
10706 (output_loc_list): Suppress register number adjustment when
10707 calling output_loc_sequence()
10708 (output_die): Likewise.
10710 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10712 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10714 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10715 xtensa_memory_move_cost): New functions.
10716 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10718 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10721 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10722 in the current directory.
10723 * configure: Rebuilt.
10725 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10727 * config/darwin.c (darwin_override_options): Add a hunk missed
10728 from the commit of r168571. Trim comment line lengths and
10729 correct indents of the preceding block.
10731 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10733 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10736 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10738 * common.opt (nostartfiles): New Driver option.
10740 2011-02-11 Xinliang David Li <davidxl@google.com>
10742 PR tree-optimization/47707
10743 * tree-chrec.c (convert_affine_scev): Keep type precision.
10745 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10747 PR tree-optimization/47420
10748 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10750 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10752 PR rtl-optimization/47614
10753 * rtl.h (check_for_inc_dec): Declare.
10754 * dse.c (check_for_inc_dec): Externalize...
10755 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10756 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10758 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10761 * gcc.c (main): Do not compile inputs if there were errors in
10763 * opts-common.c (read_cmdline_option): Check for wrong language
10764 after other error checks.
10766 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10768 * cgraph.c: Fix comment typos.
10769 * cgraph.h: Likewise.
10770 * cgraphunit.c: Likewise.
10771 * ipa-cp.c: Likewise.
10772 * ipa-inline.c: Likewise.
10773 * ipa-prop.c: Likewise.
10774 * ipa-pure-const.c: Likewise.
10775 * ipa-ref.c: Likewise.
10776 * ipa-reference.c: Likewise.
10778 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10781 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10783 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10786 * doc/sourcebuild.texi (Require Support): Document
10787 dg-require-ascii-locale.
10789 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10791 * doc/lto.texi (Write summary): Fix missing parentheses.
10793 2011-02-10 DJ Delorie <dj@redhat.com>
10795 * config/m32c/m32c.c (m32c_option_override): Disable
10796 -fcombine-stack-adjustments until flag value tracking and compare
10797 optimization can be rewritten.
10799 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10801 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10803 (PROCESSOR_DEFAULT64): Likewise.
10805 2011-02-10 Richard Henderson <rth@redhat.com>
10807 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10808 change from 2011-02-03.
10809 * config/rx/rx.c (flags_from_code): Likewise.
10810 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10811 is valid, n/pz otherwise.
10812 (rx_select_cc_mode): Return CCmode if Y is not zero.
10814 2011-02-10 Richard Guenther <rguenther@suse.de>
10816 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10818 2011-02-10 Richard Guenther <rguenther@suse.de>
10820 PR tree-optimization/47677
10821 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10823 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10826 * combine.c (make_compound_operation): Only change shifts into
10827 multiplication for SCALAR_INT_MODE_P.
10829 2011-02-10 Jie Zhang <jie@codesourcery.com>
10833 2011-02-05 Jie Zhang <jie@codesourcery.com>
10835 * web.c (entry_register): Don't clobber the number of the
10836 first uninitialized reference in used[].
10838 2011-02-09 Richard Guenther <rguenther@suse.de>
10840 PR tree-optimization/47664
10841 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10844 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10848 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10850 (PROCESSOR_DEFAULT64): Same.
10851 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10853 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10855 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10857 2011-02-09 Martin Jambor <mjambor@suse.cz>
10859 PR middle-end/45505
10860 * tree-sra.c (struct access): New flags grp_scalar_read and
10861 grp_scalar_write. Changed description of assignment read and write
10863 (dump_access): Dump new flags, reorder all of them.
10864 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10865 to detect multiple scalar reads.
10866 (analyze_access_subtree): Use the new scalar read write flags instead
10867 of the old flags. Adjusted comments.
10869 2011-02-08 DJ Delorie <dj@redhat.com>
10872 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10875 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10877 * config/m68k/uclinux.opt: New.
10878 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10880 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10882 * config/cris/elf.opt (sim): New Driver option.
10884 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10886 * config/xtensa/elf.opt: New.
10887 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10889 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10891 * config/vax/elf.opt: New.
10892 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10894 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10896 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10898 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10900 * config/gnu-user.opt: New.
10901 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10902 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10903 *-*-uclinux*): Use gnu-user.opt.
10905 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10907 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10908 * config/i386/gnu.h (CPP_SPEC): Likewise.
10910 2011-02-08 Ian Lance Taylor <iant@google.com>
10912 * common.opt (fcx-limited-range): Add SetByCombined flag.
10913 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10914 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10915 (fassociative-math, freciprocal-math): Likewise.
10916 (funsafe-math-optimizations): Likewise.
10917 * opth-gen.awk: Handle SetByCombined.
10918 * optc-gen.awk: Likewise.
10919 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10920 (set_unsafe_math_optimizations_flags): Likewise.
10921 * doc/options.texi (Option properties): Document SetByCombined.
10923 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10925 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10926 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10927 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10928 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10929 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10931 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10933 PR tree-optimization/46834
10934 PR tree-optimization/46994
10935 PR tree-optimization/46995
10936 * graphite-sese-to-poly.c (used_outside_reduction): New.
10937 (detect_commutative_reduction): Call used_outside_reduction.
10938 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10939 translate_scalar_reduction_to_array only when at least one
10940 loop-phi/close-phi tuple has been detected.
10942 2011-02-08 Richard Guenther <rguenther@suse.de>
10944 PR middle-end/47639
10945 * tree-vect-generic.c (expand_vector_operations_1): Update
10947 (expand_vector_operations): ... not here. Cleanup EH info
10948 and the CFG if required.
10950 2011-02-08 Richard Guenther <rguenther@suse.de>
10952 PR tree-optimization/47641
10953 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10954 require type compatibility.
10956 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10958 * gimple-low.c (lower_function_body): Don't remove the location of
10959 the return statement here.
10960 (lower_gimple_return): Do it here instead but only if the return
10961 statement is actually used twice.
10963 2011-02-08 Richard Guenther <rguenther@suse.de>
10965 PR tree-optimization/47632
10966 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10967 unused up_to_stmt parameter, return whether cfg-cleanup is
10968 necessary, remove EH info properly.
10969 (forward_propagate_into_gimple_cond): Adjust caller.
10970 (forward_propagate_into_cond): Likewise.
10971 (forward_propagate_comparison): Likewise.
10972 (tree_ssa_forward_propagate_single_use_vars): Make
10973 forward_propagate_comparison case similar to the two others.
10975 2011-02-08 Nick Clifton <nickc@redhat.com>
10977 * config/mn10300/mn10300.opt (mliw): New command line option.
10978 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10979 (liw_bundling): New automaton.
10980 (liw): New attribute.
10981 (liw_op): New attribute.
10982 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10983 (movsi_internal): Add LIW attributes.
10984 (andsi3): Likewise.
10985 (iorsi3): Likewise.
10986 (xorsi3): Likewise.
10987 (addsi3): Separate register and immediate alternatives.
10988 Add LIW attributes.
10989 (subsi3): Likewise.
10991 (aslsi3): Likewise.
10992 (lshrsi3): Likewise.
10993 (ashrsi3): Likewise.
10994 (liw): New pattern.
10995 * config/mn10300/mn10300.c (liw_op_names): New
10996 (mn10300_print_operand): Handle 'W' operand descriptor.
10997 (extract_bundle): New function.
10998 (check_liw_constraints): New function.
10999 (liw_candidate): New function.
11000 (mn10300_bundle_liw): New function.
11001 (mn10300_reorg): New function.
11002 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11003 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11004 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11005 __LIW__ or __NO_LIW__.
11006 * doc/invoke.texi: Describe the -mliw command line option.
11008 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11010 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11011 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11012 pthread_mutex_unlock): Remove.
11013 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11014 * config/pa/t-pa64: Likewise.
11015 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11016 shared libc if not linking against libpthread.
11017 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11019 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11022 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11023 on 10.6 and later to ensure that we always use the unwinder from
11024 the system. Only add -no_compact_unwind when tarteting darwin
11027 2011-02-07 Steve Ellcey <sje@cup.hp.com>
11030 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11031 (vec_interleave_lowv2sf): Ditto.
11032 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11033 (vec_extract_oddv2sf): Ditto.
11035 2011-02-07 Mike Stump <mikestump@comcast.net>
11038 Add __ieee_divdc3 entry point.
11039 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11041 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11042 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11043 * config/darwin.c (darwin_rename_builtins): Add.
11044 * config/darwin-protos.h (darwin_rename_builtins): Add.
11046 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11049 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11052 2011-02-07 Mike Stump <mikestump@comcast.net>
11054 * config/darwin.opt (mmacosx-version-min): Update default OS version.
11056 2011-02-07 Denis Chertykov <chertykov@gmail.com>
11059 * config/avr/libgcc.S (exit): Move .endfunc
11061 2011-02-07 Richard Guenther <rguenther@suse.de>
11063 PR tree-optimization/47615
11064 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11065 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11066 (run_scc_vn): Initialize it.
11067 (visit_reference_op_load): Use it.
11068 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11070 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11072 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11073 DImode trapping arithmetic libfuncs.
11075 2011-02-07 Richard Guenther <rguenther@suse.de>
11077 PR tree-optimization/47621
11078 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11080 (execute_update_addresses_taken): ... here. Make it more
11081 conservative in what we accept.
11083 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11085 * config/sparc/freebsd.h (ASM_SPEC): Define.
11086 * config/sparc/vxworks.h (ASM_SPEC): Define.
11088 2011-02-06 Joseph Myers <joseph@codesourcery.com>
11090 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11092 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11094 * doc/invoke.texi: Remove reference to compiler internals from
11095 user documentation.
11097 * reg-notes.def: Remove REG_VALUE_PROFILE.
11098 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11100 2011-02-05 Jakub Jelinek <jakub@redhat.com>
11102 PR middle-end/47610
11103 * varasm.c (default_section_type_flags): If decl is NULL,
11104 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11106 2011-02-05 Jie Zhang <jie@codesourcery.com>
11109 * web.c (entry_register): Don't clobber the number of the
11110 first uninitialized reference in used[].
11112 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11114 PR tree-optimization/46194
11115 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11116 (build_classic_dist_vector_1): Do not represent classic distance
11117 vectors when the access functions are variating in different loops.
11119 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11121 * config/mips/iris6.opt: New.
11122 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11124 2011-02-04 Richard Henderson <rth@redhat.com>
11125 Steve Ellcey <sje@cup.hp.com>
11128 * config/ia64/predicates.md (mux1_brcst_element): New.
11129 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11130 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11131 (ia64_unpack_sign): New.
11132 (ia64_expand_unpack): Rewrite using new routines.
11133 (ia64_expand_widen_sum): Ditto.
11134 (ia64_expand_dot_prod_v8qi): Ditto.
11135 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11136 routines, add endian check.
11137 (pmpy2_even): Rename from pmpy2_r, add endian check.
11138 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11139 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11140 (vec_widen_smult_hi_v4hi): Ditto.
11141 (vec_widen_umult_lo_v4hi): Ditto.
11142 (vec_widen_umult_hi_v4hi): Ditto.
11143 (mulv2si3): Change endian checks.
11144 (sdot_prodv4hi): Rewrite with new calls.
11145 (udot_prodv4hi): New.
11146 (vec_pack_ssat_v4hi): Add endian check.
11147 (vec_pack_usat_v4hi): Ditto.
11148 (vec_pack_ssat_v2si): Ditto.
11149 (max1_even): Rename from max1_r, add endian check.
11150 (max1_odd): Rename from max1_l, add endian check.
11151 (*mux1_rev): Format change.
11152 (*mux1_mix): Ditto.
11153 (*mux1_shuf): Ditto.
11154 (*mux1_alt): Ditto.
11155 (*mux1_brcst_v8qi): Use new predicate.
11156 (vec_extract_evenv8qi): Remove endian check.
11157 (vec_extract_oddv8qi): Ditto.
11158 (vec_interleave_lowv4hi): Format change.
11159 (vec_interleave_highv4hi): Ditto.
11160 (mix2_even): Rename from mix2_r, add endian check.
11161 (mix2_odd): Rename from mux2_l, add endian check.
11162 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11163 (vec_extract_evenodd_helper): Format change.
11164 (vec_extract_evenv4hi): Remove endian check.
11165 (vec_extract_oddv4hi): Remove endian check.
11166 (vec_interleave_lowv2si): Format change.
11167 (vec_interleave_highv2si): Format change.
11168 (vec_initv2si): Remove endian check.
11169 (vecinit_v2si): Add endian check.
11170 (reduc_splus_v2sf): Add endian check.
11171 (reduc_smax_v2sf): Ditto.
11172 (reduc_smin_v2sf): Ditto.
11173 (vec_initv2sf): Remove endian check.
11174 (fpack): Add endian check.
11175 (fswap): Add endian check.
11176 (vec_interleave_highv2sf): Add endian check.
11177 (vec_interleave_lowv2sf): Add endian check.
11178 (fmix_lr): Add endian check.
11179 (vec_setv2sf): Format change.
11180 (*vec_extractv2sf_0_be): Use shift to extract operand.
11181 (*vec_extractv2sf_1_be): New.
11182 (vec_pack_trunc_v4hi): Add endian check.
11183 (vec_pack_trunc_v2si): Format change.
11185 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11187 PR inline-asm/23200
11188 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11189 do bb, locus and block comparison and disallow loads if it is not set.
11190 (stmt_is_replaceable_p): New function.
11191 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11193 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11194 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11196 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11198 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11200 * config/rs6000/xilinx.opt: New.
11201 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11203 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11205 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11207 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11209 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11210 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11211 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11212 secondary_reload_info, xtensa_secondary_reload): Remove.
11213 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11214 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11215 (xtensa_preferred_reload_class): Make static. Change return and
11216 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11217 Use CONST_DOUBLE_P predicate.
11218 (xtensa_preferred_output_reload_class): New function.
11219 (xtensa_secondary_reload): Make static.
11221 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11223 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11224 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11225 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11227 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11229 PR middle-end/31490
11230 * output.h (SECTION_RELRO): Define.
11231 (SECTION_MACH_DEP): Adjust.
11232 (get_variable_section): New prototype.
11233 * varpool.c (varpool_finalize_named_section_flags): New function.
11234 (varpool_assemble_pending_decls): Call it.
11235 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11236 * cgraphunit.c (cgraph_output_in_order): Call
11237 varpool_finalize_named_section_flags.
11238 * varasm.c (get_section): Allow section flags conflicts between
11239 relro and read-only sections if the section hasn't been declared yet.
11240 Set SECTION_OVERRIDE after diagnosing section type conflict.
11241 (get_variable_section): No longer static.
11242 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11243 readonly sections that need relocations.
11244 (decl_readonly_section_1): New function.
11245 (decl_readonly_section): Use it.
11248 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11249 Steve Ellcey <sje@cup.hp.com>
11251 PR middle-end/31490
11252 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11253 if section attribute used.
11255 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11257 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11258 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11259 (darwin_init_sections): Remove assertion.
11261 2011-02-03 Nick Clifton <nickc@redhat.com>
11263 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11265 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11266 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11267 instead of "n" and "pz".
11268 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11271 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11274 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11275 fma, expand FMA_EXPR as fma{,f,l} call.
11278 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11279 copy them into a unsigned char variable and pass address of it to
11280 lto_output_data_stream.
11283 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11284 around backend_init_target and lang_dependent_init_target calls.
11285 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11286 (verify_cgraph_node): Don't call set_cfun here. Use
11287 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11288 Set error_found for incorrectly represented calls to thunks.
11290 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11293 PR rtl-optimization/43494
11294 * rtl.h (for_each_inc_dec_fn): New type.
11295 (for_each_inc_dec): Declare.
11296 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11297 (for_each_inc_dec_find_inc_dec): New fn.
11298 (for_each_inc_dec_find_mem): New fn.
11299 (for_each_inc_dec): New fn.
11300 * dse.c (struct insn_size): Remove.
11301 (replace_inc_dec, replace_inc_dec_mem): Remove.
11302 (emit_inc_dec_insn_before): New fn.
11303 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11304 (canon_address): Pass mem modes to cselib_lookup.
11305 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11306 (cselib_lookup_from_insn): Likewise.
11307 (cselib_subst_to_values): Likewise.
11308 * cselib.c (find_slot_memmode): New var.
11309 (cselib_find_slot): New fn. Use it instead of
11310 htab_find_slot_with_hash everywhere.
11311 (entry_and_rtx_equal_p): Use find_slot_memmode.
11312 (autoinc_split): New fn.
11313 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11314 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11315 Deal with autoinc. Special-case recursion into MEMs.
11316 (cselib_hash_rtx): Likewise.
11317 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11318 address and MEM modes.
11319 (cselib_subst_to_values): Add memmode, pass it on.
11321 (cselib_lookup): Add memmode argument, pass it on.
11322 (cselib_lookup_from_insn): Add memmode.
11323 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11324 (struct cselib_record_autoinc_data): New.
11325 (cselib_record_autoinc_cb): New fn.
11326 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11327 mode to cselib_lookup. Reset autoinced REGs here instead of...
11328 (cselib_process_insn): ... here.
11329 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11331 (add_uses): Likewise, also to cselib_subst_to_values.
11332 (add_stores): Likewise.
11333 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11334 cselib_subst_to_values.
11335 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11336 * gcse.c (do_local_cprop): Adjusted.
11337 * postreload.c (reload_cse_simplify_set): Adjusted.
11338 (reload_cse_simplify_operands): Adjusted.
11339 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11341 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11343 PR tree-optimization/45122
11344 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11345 unsafe assumptions when there's more than one loop exit.
11347 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11350 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11351 Document using vector double with the load/store builtins, and
11352 that the load/store builtins always use Altivec instructions.
11354 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11355 to use altivec memory instructions, even on VSX.
11356 (vector_altivec_store_<mode>): Ditto.
11358 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11361 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11362 V2DF, V2DI support to load/store overloaded builtins.
11364 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11365 altivec load/store builtins for V2DF/V2DI types.
11367 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11368 set avoid indexed addresses on power6 if -maltivec.
11369 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11370 vector_altivec_load/vector_altivec_store builtins.
11371 (altivec_expand_st_builtin): Ditto.
11372 (altivec_expand_builtin): Add VSX memory builtins.
11373 (rs6000_init_builtins): Add V2DI types to internal types.
11374 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11375 load/store builtins.
11376 (rs6000_address_for_altivec): Insure memory address is appropriate
11379 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11380 vec_vsx_ld and vec_vsx_st.
11381 (vsx_store_<mode>): Ditto.
11383 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11384 variables to hold long long types for VSX vector memory builtins.
11385 (RS6000_BTI_unsigned_long_long): Ditto.
11386 (long_long_integer_type_internal_node): Ditti.
11387 (long_long_unsigned_type_internal_node): Ditti.
11389 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11390 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11391 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11393 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11395 (vec_vsx_st): Ditto.
11397 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11399 * config/pa/pa-hpux10.opt: New.
11400 * config/hpux11.opt (pthread): New Driver option.
11401 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11402 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11404 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11406 * config/ia64/vms.opt: New.
11407 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11409 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11412 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11413 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11414 generator functions.
11415 (vsx_floatuns<VSi><mode>2): Ditto.
11416 (vsx_fix_trunc<mode><VSi>2): Ditto.
11417 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11419 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11421 * config/i386/djgpp.opt (posix): New Driver option.
11423 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11425 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11426 Move to the unsupported targets list.
11428 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11430 PR rtl-optimization/47525
11431 * df-scan.c: Update copyright years.
11432 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11433 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11435 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11437 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11438 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11439 (ASM_OUTPUT_ASCII): Remove.
11440 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11442 2011-02-02 Jeff Law <law@redhat.com>
11444 PR middle-end/47543
11445 * reload.c (find_reloads_address): Handle reg+d address where both
11446 components are invalid by reloading the entire address.
11448 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11449 Richard Guenther <rguenther@suse.de>
11451 PR tree-optimization/40979
11453 * passes.c (init_optimization_passes): After LIM call copy_prop
11454 and DCE to clean up.
11455 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11457 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11459 PR tree-optimization/47576
11460 PR tree-optimization/47555
11461 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11462 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11463 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11464 * tree-scalar-evolution.c (follow_ssa_edge): Use
11465 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11467 2011-02-02 Richard Guenther <rguenther@suse.de>
11469 PR tree-optimization/47566
11470 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11472 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11476 * tree-inline.c (declare_return_variable): Remove unused caller
11481 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11482 * cfgexpand.c (account_used_vars_for_block): Use them.
11483 * tree-nrv.c (tree_nrv): Likewise.
11484 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11485 (dump_scope_block): Likewise.
11486 (remove_unused_locals): Likewise.
11490 * tree-inline.c (declare_return_variable): Add result decl to
11491 local decls only once.
11492 * gimple-low.c (record_vars_into): Mark newly-created variables
11495 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11501 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11503 (no_real_insns_p, schedule_block, set_priorities): Drop special
11504 treatment of boundary debug insns.
11505 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11506 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11507 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11508 (BOUNDARY_DEBUG_INSN_P): Likewise.
11509 (SCHEDULE_DEBUG_INSN_P): Likewise.
11510 * sched-rgn.c (init_ready_list): Drop special treatment of
11511 boundary debug insns.
11512 * final.c (rest_of_clean_state): Clear notes' BB.
11514 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11516 * config/openbsd.opt (assert=): New Driver option.
11518 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11520 * config/i386/nto.opt: New.
11521 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11523 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11525 * config/i386/netware.opt: New.
11526 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11528 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11530 * config/interix.opt (posix): New Driver option.
11532 2011-02-01 DJ Delorie <dj@redhat.com>
11534 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11536 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11539 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11541 PR tree-optimization/47561
11542 * toplev.c (process_options): Print the Graphite flags. Add
11543 flag_loop_flatten to the list of options requiring Graphite.
11545 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11547 * config/i386/cygming.opt (posix): New Driver option.
11549 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11551 * config/arm/vxworks.opt: New.
11552 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11554 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11556 * config/alpha/elf.opt: New.
11557 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11558 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11560 2011-02-01 Richard Guenther <rguenther@suse.de>
11562 PR tree-optimization/47559
11563 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11564 store-motion on references that can throw.
11566 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11568 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11569 * tree-pass.h (TDF_CSELIB): New macro.
11570 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11571 cselib_lookup): Check for it rather than for TDF_DETAILS.
11573 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11576 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11577 is HOST_BIT_BUCKET.
11579 * opts.c (finish_options): Don't add x_aux_base_name if it is
11582 2011-02-01 Richard Guenther <rguenther@suse.de>
11584 PR tree-optimization/47555
11586 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11588 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11590 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11593 * config/lm32/t-lm32: Add multilib for all CPU options.
11595 2011-02-01 Richard Guenther <rguenther@suse.de>
11597 PR tree-optimization/47541
11598 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11599 sure to have a field at offset zero.
11601 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11603 * config/arc/arc.opt (EB, EL): New Driver options.
11605 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11607 * config/alpha/osf5.opt: New.
11608 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11610 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11612 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11614 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11616 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11617 -floop-interchange.
11618 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11619 is an alias of -floop-interchange and that it requires the
11620 Graphite infrastructure.
11621 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11622 flag_loop_interchange based on the value of flag_tree_loop_linear.
11624 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11625 Richard Guenther <rguenther@suse.de>
11627 PR tree-optimization/47538
11628 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11629 type instead of r1type, except for comparisons. For right
11630 shifts and comparisons punt if there are mismatches in
11631 sizetype vs. non-sizetype types.
11633 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11635 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11638 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11640 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11642 * configure: Regenerate.
11644 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11646 * configure.ac (gcc_cv_ld_static_option): Define.
11647 (gcc_cv_ld_dynamic_option): Define.
11648 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11650 (HAVE_LD_STATIC_DYNAMIC): Update message.
11651 (LD_STATIC_OPTION): Define.
11652 (LD_DYNAMIC_OPTION): Define.
11653 * configure: Regenerate.
11654 * config.in: Regenerate.
11655 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11656 HAVE_LD_STATIC_DYNAMIC]: Use them.
11658 2011-01-31 Nick Clifton <nickc@redhat.com>
11660 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11661 registers inside interrupt handlers if the handler is not a leaf
11664 2011-01-31 Nick Clifton <nickc@redhat.com>
11666 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11667 reg_renumber returning an INVALID_REGNUM.
11669 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11672 * doc/install.texi: Document host options discarded when cross
11673 configuring target libraries.
11675 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11678 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11681 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11683 (no_real_insns_p, schedule_block, set_priorities): Drop special
11684 treatment of boundary debug insns.
11685 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11686 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11687 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11688 (BOUNDARY_DEBUG_INSN_P): Likewise.
11689 (SCHEDULE_DEBUG_INSN_P): Likewise.
11690 * sched-rgn.c (init_ready_list): Drop special treatment of
11691 boundary debug insns.
11692 * final.c (rest_of_clean-state): Clear notes' BB.
11694 2011-01-31 Alan Modra <amodra@gmail.com>
11696 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11697 toc relative expressions as we do in print_operand_address.
11699 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11701 * doc/extend.texi: Follow spelling conventions.
11702 * doc/invoke.texi: Fix a typo.
11704 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11706 * config/hpux11.opt: New.
11707 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11708 ia64*-*-hpux*): Use hpux11.opt.
11710 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11712 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11715 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11717 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11720 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11722 * doc/install.texi (Binaries): Remove outdated reference for
11723 Motorola 68HC11/68HC12 downloads.
11725 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11727 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11730 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11733 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11736 2011-01-28 Ahmad Sharif <asharif@google.com>
11738 * value-prof.c (check_counter): Corrected error message.
11740 2011-01-29 Jie Zhang <jie@codesourcery.com>
11742 * config/arm/arm.c (arm_legitimize_reload_address): New.
11743 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11744 arm_legitimize_reload_address.
11745 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11747 2011-01-28 Ian Lance Taylor <iant@google.com>
11749 * godump.c (go_define): Ignore macros whose definitions include
11750 two adjacent operands.
11752 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11755 * varasm.c (force_const_mem): Store copy of x in desc->constant
11756 instead of x itself.
11757 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11758 itself into REG_EQUAL note.
11760 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11762 * config/freebsd.opt (posix, rdynamic): New Driver options.
11764 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11766 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11767 -Bstatic/-Bdynamic.
11768 * configure: Regenerate.
11770 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11772 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11773 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11775 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11777 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11778 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11779 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11780 (s390_preferred_reload_class): Make static. Change return and
11781 'rclass' argument type to reg_class_t.
11783 2011-01-27 Jan Hubicka <jh@suse.cz>
11785 PR middle-end/46949
11786 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11787 (process_function_and_variable_attributes): Check defined weakrefs.
11789 2011-01-27 Martin Jambor <mjambor@suse.cz>
11791 PR tree-optimization/47228
11792 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11793 build_ref_for_offset.
11795 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11797 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11799 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11801 PR rtl-optimization/46856
11802 * postreload.c (reload_combine_recognize_const_pattern): Do not
11803 separate cc0 setter and user on cc0 targets.
11805 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11808 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11809 passed a VOID_TYPE expression, immediately emit an error and
11810 return error_mark_node.
11812 2011-01-26 Jeff Law <law@redhat.com>
11814 PR rtl-optimization/47464
11815 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11816 rather than may_trap_p as needed.
11818 2011-01-26 DJ Delorie <dj@redhat.com>
11820 PR rtl-optimization/46878
11821 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11822 setter/user dependency as well.
11824 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11826 PR rtl-optimization/44469
11827 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11828 after removing trivially dead basic blocks.
11830 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11832 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11833 * config/frv/frv.h (LINK_SPEC): Likewise.
11834 * config/i386/netware.h (LINK_SPEC): Likewise.
11835 * config/m68k/linux.h (ASM_SPEC): Likewise.
11836 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11837 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11838 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11839 * config/sparc/linux.h (ASM_SPEC): Likewise.
11840 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11841 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11843 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11845 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11846 * config/frv/frv.h (ASM_SPEC): Likewise.
11847 * config/m68k/linux.h (ASM_SPEC): Likewise.
11848 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11849 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11850 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11851 * config/sparc/linux.h (ASM_SPEC): Likewise.
11852 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11853 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11855 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11857 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11858 * config/frv/frv.h (LINK_SPEC): Likewise.
11859 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11861 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11863 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11864 * config/frv/frv.h (ASM_SPEC): Likewise.
11865 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11866 * config/m68k/linux.h (ASM_SPEC): Likewise.
11867 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11868 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11869 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11870 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11871 * config/sparc/linux.h (ASM_SPEC): Likewise.
11872 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11873 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11874 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11876 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11879 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11881 (vec_extract_evenodd_help): Ditto.
11882 (vec_extract_evenv4hi): Ditto.
11883 (vec_extract_oddv4hi): Ditto.
11884 (vec_interleave_lowv2si): Ditto.
11885 (vec_interleave_highv2si): Ditto.
11886 (vec_extract_evenv2si): Ditto.
11887 (vec_extract_oddv2si: Ditto.
11888 (vec_pack_trunc_v2si): Ditto.
11890 2011-01-22 Jan Hubicka <jh@suse.cz>
11893 * cgraph.h (cgraph_local_info): New field can_change_signature.
11894 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11895 signature can change.
11896 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11898 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11899 (cgraph_function_versioning): We can not change signature of functions
11900 that don't allow that.
11901 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11902 (lto_input_node): Likewise.
11903 * ipa-inline.c (compute_inline_parameters): Compute
11904 local.can_change_signature.
11905 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11906 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11907 functions that can not change signature.
11908 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11909 init_cumulative_args): Do not use local calling conventions
11910 for functions that can not change signature.
11912 2011-01-22 Jan Hubicka <jh@suse.cz>
11914 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11916 2011-01-26 Richard Guenther <rguenther@suse.de>
11918 PR tree-optimization/47190
11919 * cgraphunit.c (process_common_attributes): New function.
11920 (process_function_and_variable_attributes): Use it.
11922 2011-01-26 Richard Guenther <rguenther@suse.de>
11925 * cgraphbuild.c (record_eh_tables): Record reference to personality
11928 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11931 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11932 non-debug insns from moving up.
11934 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11937 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11938 t-dlldir{,-x} fragment for build and add it to tmake_file.
11939 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11940 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11941 * config/i386/t-dlldir: New file.
11942 (SHLIB_DLLDIR): Define.
11943 * config/i386/t-dlldir-x: New file.
11944 (SHLIB_DLLDIR): Define.
11945 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11946 (SHLIB_INSTALL): Use it.
11948 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11951 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11952 lower bound of the allowed Thumb-2 coprocessor load/store
11953 index range to -256. Add explaining comment.
11955 2011-01-25 Ian Lance Taylor <iant@google.com>
11957 * godump.c (go_define): Improve lexing of macro expansion to only
11958 accept expressions which match Go spec.
11960 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11963 * tree.c (handle_dll_attribute): Handle it.
11964 * doc/extend.texi (@item dllexport): Mention it.
11965 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11967 2011-01-25 Ian Lance Taylor <iant@google.com>
11969 PR tree-optimization/26854
11970 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11971 (decl_jump_unsafe): Move higher in file, with no other change.
11972 (bind): Set has_jump_unsafe_decl if appropriate.
11973 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11974 (check_earlier_gotos): Likewise.
11975 (c_check_switch_jump_warnings): Likewise.
11977 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11979 * doc/invoke.texi (Warning Options): Add missing hyphen.
11980 (-fprofile-dir): Minor grammatical fixes.
11981 (-fbranch-probabilities): Likewise.
11983 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11987 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11989 (no_real_insns_p, schedule_block, set_priorities): Drop special
11990 treatment of boundary debug insns.
11991 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11992 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11993 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11994 (BOUNDARY_DEBUG_INSN_P): Likewise.
11995 (SCHEDULE_DEBUG_INSN_P): Likewise.
11996 * sched-rgn.c (init_ready_list): Drop special treatment of
11997 boundary debug insns.
11998 * final.c (rest_of_clean-state): Clear notes' BB.
12000 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12002 * Makefile.in (LAMBDA_H): Removed.
12003 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12004 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12005 lambda-trans.o, and tree-loop-linear.o.
12006 (lto-symtab.o): Remove dependence on LAMBDA_H.
12007 (tree-loop-linear.o): Remove rule.
12008 (lambda-mat.o): Same.
12009 (lambda-trans.o): Same.
12010 (lambda-code.o): Same.
12011 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12012 (tree-vect-slp.o): Same.
12013 * hwint.h (gcd): Moved here.
12014 (least_common_multiple): Same.
12015 * lambda-code.c: Removed.
12016 * lambda-mat.c: Removed.
12017 * lambda-trans.c: Removed.
12018 * lambda.h: Removed.
12019 * tree-loop-linear.c: Removed.
12020 * lto-symtab.c: Do not include lambda.h.
12021 * omega.c (gcd): Removed.
12022 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12023 * tree-data-ref.c (print_lambda_vector): Moved here.
12024 (lambda_vector_copy): Same.
12025 (lambda_matrix_copy): Same.
12026 (lambda_matrix_id): Same.
12027 (lambda_vector_first_nz): Same.
12028 (lambda_matrix_row_add): Same.
12029 (lambda_matrix_row_exchange): Same.
12030 (lambda_vector_mult_const): Same.
12031 (lambda_vector_negate): Same.
12032 (lambda_matrix_row_negate): Same.
12033 (lambda_vector_equal): Same.
12034 (lambda_matrix_right_hermite): Same.
12035 * tree-data-ref.h: Do not include lambda.h.
12036 (lambda_vector): Moved here.
12037 (lambda_matrix): Same.
12038 (dependence_level): Same.
12039 (lambda_transform_legal_p): Removed declaration.
12040 (lambda_collect_parameters): Same.
12041 (lambda_compute_access_matrices): Same.
12042 (lambda_vector_gcd): Same.
12043 (lambda_vector_new): Same.
12044 (lambda_vector_clear): Same.
12045 (lambda_vector_lexico_pos): Same.
12046 (lambda_vector_zerop): Same.
12047 (lambda_matrix_new): Same.
12048 * tree-flow.h (least_common_multiple): Removed declaration.
12049 * tree-parloops.c (lambda_trans_matrix): Moved here.
12050 (LTM_MATRIX): Same.
12051 (LTM_ROWSIZE): Same.
12052 (LTM_COLSIZE): Same.
12053 (LTM_DENOMINATOR): Same.
12054 (lambda_trans_matrix_new): Same.
12055 (lambda_matrix_vector_mult): Same.
12056 (lambda_transform_legal_p): Same.
12057 * tree-pass.h (pass_linear_transform): Removed declaration.
12058 * tree-ssa-loop.c (tree_linear_transform): Removed.
12059 (gate_tree_linear_transform): Removed.
12060 (pass_linear_transform): Removed.
12061 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12062 flag_loop_interchange.
12064 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12066 PR tree-optimization/47265
12067 PR tree-optimization/47443
12068 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12069 if name still has some uses.
12071 2011-01-25 Martin Jambor <mjambor@suse.cz>
12073 PR tree-optimization/47382
12074 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12075 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12077 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
12079 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12080 sjlj_except_unwind_info.
12082 2011-01-25 Richard Guenther <rguenther@suse.de>
12084 PR tree-optimization/47426
12085 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12086 visible functions results escape.
12088 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12091 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12092 (arm_get_frame_offsets): Use it.
12094 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12095 Jakub Jelinek <jakub@redhat.com>
12097 PR tree-optimization/47271
12098 * tree-if-conv.c (bb_postdominates_preds): New.
12099 (if_convertible_bb_p): Call bb_postdominates_preds.
12100 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12101 (predicate_scalar_phi): Call bb_postdominates_preds.
12103 2011-01-25 Nick Clifton <nickc@redhat.com>
12105 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12106 * config/rx/rx.c (rx_function_value): Likewise.
12107 (rx_promote_function_mode): Likewise.
12108 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12109 in order to make it legitimate.
12110 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12111 make sure that the first operand is the same as the result register.
12112 (addsi3_unspec): Delete.
12113 (subdi3): Do not accept immediate operands.
12114 (subdi3_internal): Likewise.
12116 2011-01-25 Jeff Law <law@redhat.com>
12118 PR rtl-optimization/37273
12119 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12120 handle them like argument loads from stack slots. Do not double
12121 count memory for memory constants and argument loads from stack slots.
12123 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12125 PR tree-optimization/47427
12126 PR tree-optimization/47428
12127 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12128 coalesce if the new root var would be TREE_READONLY.
12130 2011-01-25 Richard Guenther <rguenther@suse.de>
12132 PR middle-end/47414
12133 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12134 correct type for TBAA.
12136 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12138 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12139 (close_phi_written_to_memory): Call for_each_index with
12140 dr_indices_valid_in_loop.
12142 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12144 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12145 when it is initialized.
12147 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12149 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12150 call to graphite_find_data_references_in_stmt.
12151 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12152 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12153 call to graphite_find_data_references_in_stmt.
12154 (analyze_drs_in_stmts): Same.
12155 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12156 in which the scalar analysis of indices is performed.
12157 (create_data_ref): Same. Update call to dr_analyze_indices.
12158 (find_data_references_in_stmt): Update call to create_data_ref.
12159 (graphite_find_data_references_in_stmt): Same.
12160 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12162 (create_data_ref): Same.
12163 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12164 call to create_data_ref.
12166 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12168 * graphite-sese-to-poly.c (build_poly_scop): Move
12169 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12171 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12173 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12174 VAR_DECL, PARM_DECL, and RESULT_DECL.
12176 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12178 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12179 in a reduction PBB.
12180 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12181 that have already been marked as PBB_IS_REDUCTION.
12183 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12185 * graphite-scop-detection.c (same_close_phi_node): New.
12186 (remove_duplicate_close_phi): New.
12187 (make_close_phi_nodes_unique): New.
12188 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12190 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12192 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12193 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12194 of both data references to be the same.
12196 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12198 * graphite-dependences.c (build_lexicographical_constraint): Remove
12199 the gdim parameter.
12200 (build_lexicographical_constraint): Adjust call to
12201 ppl_powerset_is_empty.
12202 (dependence_polyhedron): Same.
12203 (graphite_legal_transform_dr): Same.
12204 (graphite_carried_dependence_level_k): Same.
12205 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12207 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12209 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12211 * graphite-sese-to-poly.c
12212 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12213 (close_phi_written_to_memory): New.
12214 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12217 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12219 * doc/install.texi: Update the expected version number of PPL to 0.11.
12220 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12221 #if PPL_VERSION_MINOR < 11.
12223 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12225 * graphite-dependences.c: Include graphite-cloog-util.h.
12226 (new_poly_ddr): Inlined into dependence_polyhedron.
12227 (free_poly_ddr): Moved close by new_poly_ddr.
12228 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12229 Early return NULL when ppl_powerset_is_empty returns true.
12230 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12231 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12232 (graphite_legal_transform_dr): Call new_poly_ddr.
12233 (graphite_carried_dependence_level_k): Same.
12234 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12235 (dot_transformed_deps_stmt_1): Removed.
12236 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12237 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12238 (dot_deps_1): Call dot_deps_2.
12239 * Makefile.in (graphite-dependences.o): Add missing dependence on
12240 graphite-cloog-util.h.
12242 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12244 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12245 (build_lexicographical_constraint): Same.
12246 (dependence_polyhedron_1): Same.
12247 (graphite_legal_transform_dr): Same.
12248 (graphite_carried_dependence_level_k): Same.
12249 * graphite-ppl.c (ppl_powerset_is_empty): New.
12250 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12251 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12253 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12255 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12256 the "a followed by b" relation and document it.
12258 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12260 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12261 iteration when the bag of constraints is empty.
12263 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12265 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12267 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12269 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12270 nest and two loop depths as parameters.
12271 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12272 lst_perfect_nestify.
12274 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12276 * graphite-dependences.c (print_pddr): Call
12277 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12279 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12281 * graphite-ppl.c (debug_gmp_value): New.
12282 * graphite-ppl.h (debug_gmp_value): Declared.
12284 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12286 * doc/install.texi: Document availability of cloog-0.16.
12288 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12290 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12291 invalid postdominance info.
12293 2011-01-24 Jan Hubicka <jh@suse.cz>
12296 * doc/extend.texi (weak pragma): Drop claim that it must
12297 appear before definition.
12298 * varasm.c (merge_weak, declare_weak): Only sanity check
12299 that DECL is not output at a time it is declared weak.
12301 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12303 * machmode.def: Fixed comments.
12305 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12307 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12309 2011-01-24 Paul Koning <ni1d@arrl.net>
12311 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12314 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12317 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12318 (block_info): Add scanned and prev.
12319 (move_or_delete_vzeroupper_2): Return if the basic block
12320 has been scanned and the upper 128bit state is unchanged
12321 from the last scan.
12322 (move_or_delete_vzeroupper_1): Return true if the exit
12324 (move_or_delete_vzeroupper): Visit basic blocks using the
12325 work-list based algorithm based on vt_find_locations in
12328 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12330 2011-01-24 Nick Clifton <nickc@redhat.com>
12332 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12333 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12334 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12335 then define __v850e1__.
12336 * doc/invoke.texi: Document -mv850es.
12338 2011-01-24 Richard Henderson <rth@redhat.com>
12340 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12341 compound unordered comparisons.
12342 * config/rx/rx.c (rx_split_fp_compare): Remove.
12343 * config/rx/rx-protos.h: Update.
12344 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12345 (cbranchsf4): Don't call rx_split_fp_compare.
12346 (*cbranchsf4): Use rx_split_cbranch.
12347 (*cmpsf): Don't accept "i" constraint.
12348 (*conditional_branch): Only valid after reload.
12349 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12351 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12354 * config/rs6000/altivec.md (vector constant splitters): Add
12355 support for creating vector single precision constants if -mvsx is
12356 used and we would create the constant using Altivec primitives.
12358 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12359 Richard Sandiford <rdsandiford@googlemail.com>
12361 PR rtl-optimization/47166
12362 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12363 mechanism for PRE_MODIFY and POST_MODIFY.
12364 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12367 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12369 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12371 2011-01-22 Jan Hubicka <jh@suse.cz>
12374 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12376 2011-01-22 Jan Hubicka <jh@suse.cz>
12378 PR tree-optimization/43884
12380 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12381 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12383 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12385 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12386 * config/s390/s390.c (s390_register_move_cost,
12387 s390_memory_move_cost): New.
12388 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12390 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12392 PR middle-end/47401
12393 * except.c (sjlj_assign_call_site_values): Move setting the
12394 crtl->uses_eh_lsda flag to ...
12395 (sjlj_mark_call_sites): ... here.
12396 (sjlj_emit_function_enter): Support NULL dispatch label.
12397 (sjlj_build_landing_pads): In a function with no landing pads
12398 that still has must-not-throw regions, generate code to register
12399 a personality function with empty LSDA.
12401 2011-01-21 Richard Henderson <rth@redhat.com>
12403 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12405 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12407 * compare-elim.c: New file.
12408 * Makefile.in (OBJS-common): Add it.
12409 (compare-elim.o): New.
12410 * common.opt (fcompare-elim): New.
12411 * opts.c (default_options_table): Add OPT_fcompare_elim.
12412 * tree-pass.h (pass_compare_elim_after_reload): New.
12413 * passes.c (init_optimization_passes): Add it.
12414 * recog.h: Protect against re-inclusion.
12415 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12416 * doc/invoke.texi (-fcompare-elim): Document it.
12417 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12418 * doc/tm.texi: Rebuild.
12420 2011-01-22 Nick Clifton <nickc@redhat.com>
12422 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12423 rx_split_fp_compare.
12425 2011-01-22 Nick Clifton <nickc@redhat.com>
12427 * config/rx/rx.md (UNSPEC_CONST): New.
12428 (deallocate_and_return): Wrap the amount popped off the stack in
12429 an UNSPEC_CONST in order to stop it being rejected by
12430 -mmax-constant-size.
12431 (pop_and_return): Add a "(return)" rtx.
12432 (call): Drop the immediate operand.
12433 (call_internal): Likewise.
12434 (call_value): Likewise.
12435 (call_value_internal): Likewise.
12436 (sibcall_internal): Likewise.
12437 (sibcall_value_internal): Likewise.
12438 (sibcall): Likewise. Generate an explicit call using
12440 (sibcall_value): Likewise.
12441 (mov<>): FAIL if a constant operand is not legitimate.
12442 (addsi3_unpsec): New pattern.
12444 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12445 (ok_for_max_constant): New function.
12446 (gen_safe_add): New function.
12447 (rx_expand_prologue): Use gen_safe_add.
12448 (rx_expand_epilogue): Likewise.
12449 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12452 2011-01-21 Jeff Law <law@redhat.com>
12454 PR tree-optimization/47053
12455 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12456 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12457 statements are deleted.
12458 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12459 is nonempty, then purge dead edges and cleanup the CFG.
12461 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12464 Temporarily revert:
12465 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12467 * tree-dfa.c (create_var_ann): Mark variable as used.
12469 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12471 PR middle-end/45566
12472 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12473 notes from other section in hot/cold partitioning even if
12474 last_action is -3. Increment call_site_base.
12476 PR rtl-optimization/47366
12477 * fwprop.c (forward_propagate_into): Return bool. If
12478 any changes are made, -fnon-call-exceptions is used and
12479 REG_EH_REGION note is present, call purge_dead_edges
12480 and return true if it purged anything.
12481 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12482 any EH edges were purged.
12484 2011-01-21 Jeff Law <law@redhat.com>
12486 PR rtl-optimization/41619
12487 * caller-save.c (setup_save_areas): Break out code to determine
12488 which hard regs are live across calls by examining the reload chains
12489 so that it is always used.
12490 Eliminate code which checked REG_N_CALLS_CROSSED.
12492 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12494 PR tree-optimization/47355
12495 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12496 NOP has non-debug uses beyond PHIs in new_bb.
12498 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12501 * cfgexpand.c (account_used_vars_for_block): Only account vars
12502 that are annotated as used.
12503 (estimated_stack_frame_size): Don't set TREE_USED.
12504 * tree-dfa.c (create_var_ann): Mark variable as used.
12506 2011-01-21 Richard Guenther <rguenther@suse.de>
12508 PR middle-end/47395
12509 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12511 2011-01-21 Richard Guenther <rguenther@suse.de>
12513 PR tree-optimization/47365
12514 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12515 (vn_reference_lookup_pieces): Adjust.
12516 (vn_reference_lookup): Likewise.
12517 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12518 (vn_reference_lookup_3): Only look through kills if in
12519 VN_WALKREWRITE mode.
12520 (vn_reference_lookup_pieces): Adjust.
12521 (vn_reference_lookup): Likewise.
12522 (visit_reference_op_load): Likewise.
12523 (visit_reference_op_store): Likewise.
12524 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12525 (compute_avail): Likewise.
12526 (eliminate): Likewise.
12528 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12530 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12531 DECL_IGNORED_P non-reg vars if they are used.
12533 PR tree-optimization/47391
12534 * varpool.c (const_value_known_p): Return false if
12537 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12540 * config/i386/i386.c (ix86_local_alignment): Handle
12541 case for va_list_type_node is nil.
12542 (ix86_canonical_va_list_type): Likewise.
12544 2011-01-21 Alan Modra <amodra@gmail.com>
12546 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12547 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12549 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12551 * config/arm/arm.md (define_attr type): Rename f_load
12552 and f_store to f_fpa_load and f_fpa_store. Update.
12553 (write_conflict): Deal with rename fallout.
12554 (*push_fp_multi): Likewise.
12555 * config/arm/fpa.md (f_load): Use f_fpa_load.
12556 (f_store): Use f_fpa_store.
12557 (*movsf_fpa): Likewise.
12558 (*movdf_fpa): Likewise.
12559 (*movxf_fpa): Likewise.
12560 (*thumb2_movsf_fpa): Likewise.
12561 (*thumb2_movdf_fpa): Likewise.
12562 (*thumb2_movxf_fpa): Likewise.
12563 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12564 f_loadd and f_stored.
12565 (*thumb2_movdi_vfp): Likewise.
12566 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12567 (*thumb2_movsi_vfp): Likewise.
12568 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12569 Use f_loads instead of f_load.
12570 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12572 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12574 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12575 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12576 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12577 (xtensa_mode_dependent_address_p): New function.
12578 (constantpool_address_p): Make static. Change return type to bool.
12579 Change argument type to const_rtx. Use CONST_INT_P predicate.
12581 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12584 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12586 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12589 * cfgexpand.c (expand_debug_expr): Instead of generating
12590 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12593 2011-01-20 Richard Guenther <rguenther@suse.de>
12595 PR middle-end/47370
12596 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12597 the pointer operand of MEM_REFs.
12599 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12601 PR tree-optimization/46130
12602 * ipa-split.c (consider_split): If return_bb contains non-virtual
12603 PHIs other than for retval or if split_function would not adjust it,
12606 2011-01-20 Richard Guenther <rguenther@suse.de>
12608 PR tree-optimization/47167
12609 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12610 Revert previous change, only avoid enumeral type changes.
12612 2011-01-19 Mike Stump <mikestump@comcast.net>
12614 * doc/tm.texi.in (BRANCH_COST): Englishify.
12615 * doc/tm.texi (BRANCH_COST): Likewise.
12617 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12620 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12621 (gen_scheduled_generic_parms_dies): New functions.
12622 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12623 generation for the end of CU compilation.
12624 (dwarf2out_finish): Generate template parameters DIEs here.
12626 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12629 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12630 debug bind stmt on merge edges.
12632 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12636 * function.c (instantiate_expr): Instantiate incoming rtl of
12637 implicit arguments, and recurse on VALUE_EXPRs.
12638 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12639 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12641 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12643 * c-parser.c (c_parser_for_statement): Initialize
12644 collection_expression.
12646 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12648 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12650 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12652 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12653 (LINK_SHLIB_SPEC): Don't use %(link_path).
12654 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12656 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12658 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12659 (NO_SHARED_LIB_SUPPORT): Remove.
12660 (LINK_SHLIB_SPEC): Remove one conditional definition.
12662 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12664 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12666 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12667 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12668 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12669 %{call_shared} and conditionals on these options not being passed.
12670 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12673 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12675 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12678 * ipa-split.c: Spelling fixes.
12680 2011-01-19 Richard Henderson <rth@redhat.com>
12682 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12683 (*mulsi3): Likewise.
12685 * longlong.h [__mn10300__] (count_leading_zeros): New.
12686 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12687 [__mn10300__] (add_ssaaaa, subddmmss): New.
12688 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12689 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12691 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12693 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12695 2011-01-19 Richard Henderson <rth@redhat.com>
12697 * config/mn10300/mn10300.md (addsi3_flags): New.
12698 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12699 (subsi3_flags, subc_internal, subdi3): New.
12700 (subdi3_internal, *subdi3_degenerate): New.
12701 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12703 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12704 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12705 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12706 * config/mn10300/mn10300-protos.h: Update.
12707 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12708 (return_ret): Likewise. Rename from return_internal_regs.
12709 (return_internal): Remove.
12711 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12712 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12713 (mn10300_legitimate_constant_p): Likewise.
12714 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12715 (mn10300_frame_size): New.
12716 (mn10300_expand_prologue): Use it.
12717 (mn10300_expand_epilogue): Likewise.
12718 (mn10300_initial_offset): Likewise.
12719 * config/mn10300/mn10300-protos.h: Update.
12720 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12721 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12722 (prologue, epilogue, return_internal): Tidy output code.
12723 (mn10300_store_multiple_operation, return): Likewise.
12724 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12725 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12726 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12727 (load_pic, am33_load_pic): New.
12728 (mn10300_load_pic0, mn10300_load_pic1): New.
12730 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12731 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12732 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12733 (cc_flags_for_mode, cc_flags_for_code): New.
12734 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12735 overflow flag is not valid. Validate that the flags we need
12736 for the comparison are valid.
12737 (mn10300_output_cmp): Remove.
12738 (mn10300_output_add): New.
12739 (mn10300_select_cc_mode): Use cc_flags_for_code.
12740 (mn10300_split_cbranch): New.
12741 (mn10300_match_ccmode): New.
12742 (mn10300_split_and_operand_count): New.
12743 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12745 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12746 (addsi3): ... here. Use mn10300_output_add.
12747 (*addsi3_flags): New.
12748 (*am33_subsi3, *mn10300_subsi3): Merge...
12749 (subsi3): ... here. Use attribute isa.
12750 (*subsi3_flags): New.
12751 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12753 (*am33_andsi3, *mn10300_andsi3): Merge...
12754 (andsi3): ... here.
12755 (*andsi3_flags): New.
12756 (andsi3 splitters): New.
12757 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12758 (iorsi3): ... here.
12759 (*iorsi3_flags): New.
12760 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12761 (xorsi3): ... here.
12762 (*xorsi3_flags): New.
12763 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12764 (one_cmplsi2): ... here.
12765 (*one_cmplsi2_flags): New.
12766 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12767 instead of "dax" in constraints. Use mn10300_split_cbranch.
12768 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12769 use matching constraints to eliminate a self-comparison.
12770 (*integer_conditional_branch): Rename from integer_conditional_branch.
12771 Use int_mode_flags to match CC_REG.
12772 (*cbranchsi4_btst, *btstsi): New.
12773 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12774 mn10300_split_cbranch.
12775 (*am33_cmpsf): Rename from am33_cmpsf.
12776 (*float_conditional_branch): Rename from float_conditional_branch.
12777 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12778 (zero_extendqisi2): ... here.
12779 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12780 (zero_extendhisi2): ... here.
12781 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12782 (extendqisi2): ... here.
12783 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12784 (extendhisi2): ... here.
12785 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12786 (ashlsi3): ... here.
12787 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12788 (lshrsi3): ... here.
12789 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12790 (ashrsi3): ... here.
12791 (consecutive add peephole): Remove.
12792 * config/mn10300/predicates.md (label_ref_operand): New.
12793 (int_mode_flags): New.
12794 (CCZN_comparison_operator): New.
12796 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12797 (throughput_42_latency_43): New reservation.
12798 (mulsidi3, umulsidi3): New expanders.
12799 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12800 the MDR register to allocation; separately allocate the low and
12801 high parts of the DImode result.
12802 (umulsidi3_internal): Similarly.
12803 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12804 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12805 (udivsi3, umodsi3): Remove.
12806 (udivmodsi4, divmodsi4): New expanders.
12807 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12808 (*divmodsi4): Simiarly.
12809 (ext_internal): New.
12811 * config/mn10300/constraints.md ("z"): New constraint.
12812 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12813 (FIXED_REGISTERS): Don't fix MDR.
12814 (CALL_USED_REGSITERS): Reformat nicely.
12815 (REG_ALLOC_ORDER): Add MDR.
12816 (enum regclass): Add MDR_REGS.
12817 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12818 (IRA_COVER_CLASSES): Add MDR_REGS.
12819 (REGNO_REG_CLASS): Handle MDR_REG.
12820 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12821 (mn10300_register_move_cost): Likewise.
12822 * config/mn10300/mn10300.md (MDR_REG): New.
12823 (*movsi_internal): Handle moves to/from MDR_REGS.
12825 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12827 (mn10300_secondary_reload): Tidy combination reload classes.
12828 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12829 addresses for AM33. Allow symbolic offsets for reg+imm.
12830 (mn10300_regno_in_class_p): New.
12831 (mn10300_legitimize_reload_address): New.
12832 * config/mn10300/mn10300.h (enum reg_class): Remove
12833 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12834 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12835 SP_OR_GENERAL_REGS.
12836 (REG_CLASS_NAMES): Update to match.
12837 (REG_CLASS_CONTENTS): Likewise.
12838 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12839 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12840 (REGNO_IN_RANGE_P): Remove.
12841 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12842 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12843 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12844 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12845 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12846 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12847 (REGNO_GENERAL_P): New.
12848 (HAVE_POST_MODIFY_DISP): New.
12849 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12850 (LEGITIMIZE_RELOAD_ADDRESS): New.
12851 * config/mn10300/mn10300-protos.h: Update.
12853 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12854 DATA_REGS for AM33 stack-pointer destination.
12855 (mn10300_preferred_output_reload_class): Likewise.
12856 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12857 into a form appropriate for ...
12858 (TARGET_SECONDARY_RELOAD): New.
12859 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12860 * config/mn10300/mn10300-protos.h: Update.
12861 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12862 reload_insi; use the "A" constraint for the scratch; handle AM33
12863 moves of sp to non-address registers.
12865 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12866 (*movqi_internal): ... here.
12867 (*am33_movhi, *mn10300_movhi): Merge into...
12868 (*movhi_internal): ... here.
12869 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12870 as the source/destination of moves from/to SP.
12871 (movsf): Only allow for AM33-2.
12872 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12873 any integer constant constraint. Only allow for AM33-2. Tidy
12874 all of the alternative outputs.
12875 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12876 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12878 (udivsi3, umodsi3): New patterns for MN103 only.
12880 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12882 * doc/tm.texi.in: Spell out that a lack of register class unions
12884 * doc/tm.texi: Regenerate.
12886 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12888 PR rtl-optimization/47337
12889 * dce.c (check_argument_store): New function.
12890 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12892 PR tree-optimization/47290
12893 * tree-eh.c (infinite_empty_loop_p): New function.
12894 (cleanup_empty_eh): Use it.
12896 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12899 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12900 (a64_expand_widen_sum): Ditto.
12901 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12902 (vec_extract_evenodd_help): Ditto.
12903 (vec_extract_evenv4hi): Ditto.
12904 (vec_extract_oddv4hi): Ditto.
12905 (vec_extract_evenv2si): Ditto.
12906 (vec_extract_oddv2si): Ditto.
12907 (vec_extract_evenv2sf): Ditto.
12908 (vec_extract_oddv2sf): Ditto.
12909 (vec_pack_trunc_v4hi: Ditto.
12910 (vec_pack_trunc_v2si): Ditto.
12911 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12912 (vec_interleave_highv8qi): Ditto.
12914 (vec_extract_oddv8qi): Ditto.
12915 (vec_interleave_lowv4hi): Ditto.
12916 (vec_interleave_highv4hi): Ditto.
12917 (vec_interleave_lowv2si): Ditto.
12918 (vec_interleave_highv2si): Ditto.
12920 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12922 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12923 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12924 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12925 (pa_c_mode_for_suffix): New.
12926 (TARGET_EXPAND_BUILTIN): Define.
12927 (TARGET_C_MODE_FOR_SUFFIX): Define.
12928 (pa_builtins): Define.
12929 (pa_init_builtins): Register __float128 type and init new support
12931 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12932 * config/pa/quadlib.c (_U_Qfcopysign): New.
12934 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12936 PR middle-end/46894
12937 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12938 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12941 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12943 PR tree-optimization/47179
12944 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12945 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12947 2011-01-18 Richard Guenther <rguenther@suse.de>
12949 PR rtl-optimization/47216
12950 * emit-rtl.c: Include tree-flow.h.
12951 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12952 of replicating it with different semantics.
12953 * Makefile.in (emit-rtl.o): Adjust.
12955 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12957 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12958 (cortex_a9_dp): Handle neon types correctly.
12960 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12962 PR rtl-optimization/47299
12963 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12964 subtarget. Use normal multiplication if both operands are constants.
12965 * expmed.c (expand_widening_mult): Don't try to optimize constant
12966 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12969 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12971 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12972 spacing after 'e.g.', typos, comma, hyphenation.
12974 2011-01-17 Richard Henderson <rth@redhat.com>
12976 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12977 (rx_restricted_mem_operand): New.
12978 (rx_shift_operand): Use register_operand.
12979 (rx_source_operand, rx_compare_operand): Likewise.
12980 * config/rx/rx.md (addsi3_flags): New expander.
12981 (adddi3): Rewrite as expander.
12982 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12983 (subsi3_flags): New expander.
12984 (subdi3): Rewrite as expander.
12985 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12987 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12988 (rx_init_builtins): Remove sat builtin.
12989 (rx_expand_builtin): Likewise.
12990 * config/rx/rx.md (ssaddsi3): New.
12991 (*sat): Rename from sat. Represent the CC_REG input.
12993 * config/rx/predicates.md (rshift_operator): New.
12994 * config/rx/rx.c (rx_expand_insv): Remove.
12995 * config/rx/rx-protos.h: Update.
12996 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12997 operand to the canonical position.
12998 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12999 (*bitclr, *bitclr_in_memory): Similarly.
13000 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13001 (insv): Retain the zero_extract in the expansion.
13003 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13004 (bswaphi2, bitinvert, revw): Likewise.
13006 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13007 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13008 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13009 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13010 (bitset, bitset_in_memory): Likewise.
13011 (bitinvert, bitinvert_in_memory): Likewise.
13012 (bitclr, bitclr_in_memory): Likewise.
13013 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13014 (rx_strend, rx_cmpstrn): Likewise.
13015 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13016 (bitop peep2 patterns): Remove.
13018 * config/rx/rx.c (rx_match_ccmode): New.
13019 * config/rx/rx-protos.h: Update.
13020 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13021 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13022 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13023 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13024 (fix_truncsfsi2, floatsisf2): Likewise.
13025 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13026 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13027 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13028 (*subsi3_flags, *xorsi3_flags): New.
13030 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13032 * config/rx/rx.c (rx_print_operand): Remove workaround for
13033 unsplit comparison operations.
13035 * config/rx/rx.md (movsicc): Split after reload.
13036 (*movsicc): Merge *movsieq and *movsine via match_operator.
13037 (*stcc): New pattern.
13039 * config/rx/rx.c (rx_float_compare_mode): Remove.
13040 * config/rx/rx.h (rx_float_compare_mode): Remove.
13041 * config/rx/rx.md (cstoresi4): Split after reload.
13042 (*sccc): New pattern.
13044 * config/rx/predicates.md (label_ref_operand): New.
13045 (rx_z_comparison_operator): New.
13046 (rx_zs_comparison_operator): New.
13047 (rx_fp_comparison_operator): New.
13048 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13049 Validate that the flags are set properly for the comparison.
13050 (rx_gen_cond_branch_template): Remove.
13051 (rx_cc_modes_compatible): Remove.
13052 (mode_from_flags): New.
13053 (flags_from_code): Rename from flags_needed_for_conditional.
13054 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13055 (rx_select_cc_mode): Likewise.
13056 (rx_split_fp_compare): New.
13057 (rx_split_cbranch): New.
13058 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13059 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13060 (*cbranchsf4): Similarly.
13061 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13062 match_operator and rx_split_cbranch.
13063 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13064 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13065 (*cmpsi): Rename from cmpsi.
13066 (*tstsi): Rename from tstsi.
13067 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13068 (*conditional_branch): Rename from conditional_branch.
13069 (*reveresed_conditional_branch): Remove.
13070 (b<code>): Remove expander.
13071 * config/rx/rx-protos.h: Update.
13073 * config/rx/rx.c (rx_compare_redundant): Remove.
13074 * config/rx/rx.md (cmpsi): Don't use it.
13075 * config/rx/rx-protos.h: Update.
13077 * config/rx/rx-modes.def (CC_F): New mode.
13078 * config/rx/rx.c (rx_select_cc_mode): New.
13079 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13080 * config/rx/rx-protos.h: Update.
13082 2011-01-17 Richard Henderson <rth@redhat.com>
13084 * except.c (dump_eh_tree): Fix stray ; after for statement.
13086 2011-01-17 Richard Guenther <rguenther@suse.de>
13088 PR tree-optimization/47313
13089 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13090 handling before copying the body. Properly deal with
13091 by-reference result in SSA form.
13093 2011-01-17 Ian Lance Taylor <iant@google.com>
13096 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13097 (struct_value_alias_set): Don't define.
13098 (sparc_option_override): Don't set sparc_sr_alias_set and
13099 struct_value_alias_set.
13100 (save_or_restore_regs): Use gen_frame_mem rather than calling
13102 (sparc_struct_value_rtx): Likewise.
13104 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13107 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13108 (_mm_maskstore_pd): Likewise.
13109 (_mm_maskload_ps): Likewise.
13110 (_mm_maskstore_ps): Likewise.
13111 (_mm256_maskload_pd): Change mask to __m256i.
13112 (_mm256_maskstore_pd): Likewise.
13113 (_mm256_maskload_ps): Likewise.
13114 (_mm256_maskstore_ps): Likewise.
13116 * config/i386/i386-builtin-types.def: Updated.
13117 (ix86_expand_special_args_builtin): Likewise.
13119 * config/i386/i386.c (bdesc_special_args): Update
13120 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13121 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13122 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13123 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13125 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13126 Use <avxpermvecmode> on mask register.
13127 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13129 2011-01-17 Olivier Hainque <hainque@adacore.com>
13130 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13131 Eric Botcazou <ebotcazou@adacore.com>
13134 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13135 if <= USHRT_MAX in 32-bit mode.
13137 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13139 * doc/install.texi (Configuration, Specific): Wrap long
13140 lines in examples. Allow line wrapping in long options
13141 and URLs where beneficial for PDF output.
13143 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13145 * config/mips/mips.c (mips_classify_symbol): Don't return
13146 SYMBOL_PC_RELATIVE for nonlocal labels.
13148 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13150 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13152 2011-01-15 Jan Hubicka <jh@suse.cz>
13154 PR tree-optimization/47276
13155 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13156 declarations as needed.
13158 2011-01-15 Martin Jambor <mjambor@suse.cz>
13160 * common.opt (fdevirtualize): New flag.
13161 * doc/invoke.texi (Option Summary): Document it.
13162 * opts.c (default_options_table): Add devirtualize flag.
13163 * ipa-prop.c (detect_type_change): Return immediately if
13164 devirtualize flag is not set.
13165 (detect_type_change_ssa): Likewise.
13166 (compute_known_type_jump_func): Likewise.
13167 (ipa_analyze_virtual_call_uses): Likewise.
13169 2011-01-14 Martin Jambor <mjambor@suse.cz>
13171 PR tree-optimization/45934
13172 PR tree-optimization/46302
13173 * ipa-prop.c (type_change_info): New type.
13174 (stmt_may_be_vtbl_ptr_store): New function.
13175 (check_stmt_for_type_change): Likewise.
13176 (detect_type_change): Likewise.
13177 (detect_type_change_ssa): Likewise.
13178 (compute_complex_assign_jump_func): Check for dynamic type change.
13179 (compute_complex_ancestor_jump_func): Likewise.
13180 (compute_known_type_jump_func): Likewise.
13181 (compute_scalar_jump_functions): Likewise.
13182 (ipa_analyze_virtual_call_uses): Likewise.
13183 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13185 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13187 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13188 * config/i386/i386.opt (msse5): New Alias.
13190 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13192 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13193 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13194 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13195 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13197 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13199 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13201 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13202 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13203 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13204 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13206 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13208 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13210 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13212 2011-01-14 Mike Stump <mikestump@comcast.net>
13214 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13215 * config/fr30/fr30.md: Likweise
13216 (movsi_push): Likewise.
13217 (movsi_pop): Likewise.
13218 (enter_func): Likewise.
13219 * config/moxie/moxie.md (movsi_push): Likewise.
13220 (movsi_pop): Likewise.
13222 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13224 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13225 %{no_archive} %{exact_version}.
13226 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13227 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13228 %{no_archive} %{exact_version}.
13229 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13230 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13231 * config/mips/vxworks.h: Likewise.
13233 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13235 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13237 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13239 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13240 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13242 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13244 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13247 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13249 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13251 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13252 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13254 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13255 Don't handle -shlib.
13257 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13259 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13260 (CC1_SPEC): Don't handle -profile.
13262 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13264 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13265 * config/mips/mips.h (CC1_SPEC): Likewise.
13267 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13269 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13270 * config/mips/mips.h (CC1_SPEC): Likewise.
13272 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13274 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13275 * config/m32r/linux.h (LINK_SPEC): Likewise.
13276 * config/mips/linux.h (LINK_SPEC): Likewise.
13277 * config/mips/linux64.h (LINK_SPEC): Likewise.
13278 * config/sparc/linux.h (LINK_SPEC): Likewise.
13279 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13280 LINK_SPEC): Likewise.
13281 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13283 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13285 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13287 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13289 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13291 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13292 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13294 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13296 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13298 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13300 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13301 supports -Bstatic/-Bdynamic.
13302 * configure: Regenerate.
13304 2011-01-14 Jan Hubicka <jh@suse.cz>
13305 Jack Howarth <howarth@bromo.med.uc.edu>
13308 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13309 when checking debug_info_level. Test write_symbols instead of
13310 debug_hooks->var_location when setting flag_var_tracking_uninit.
13312 2011-01-14 Richard Guenther <rguenther@suse.de>
13314 PR tree-optimization/47179
13315 * target.def (ref_may_alias_errno): New target hook.
13316 * targhooks.h (default_ref_may_alias_errno): Declare.
13317 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13318 (default_ref_may_alias_errno): New function.
13319 * target.h (struct ao_ref_s): Declare.
13320 * tree-ssa-alias.c: Include target.h.
13321 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13322 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13323 (targhooks.o): Likewise.
13324 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13325 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13327 2011-01-14 Richard Guenther <rguenther@suse.de>
13329 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13331 2011-01-14 Richard Guenther <rguenther@suse.de>
13333 PR tree-optimization/47280
13334 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13335 return CFG changes.
13336 (tree_ssa_forward_propagate_single_use_vars): Deal with
13337 CFG changes from associate_plusminus.
13339 2011-01-14 Richard Guenther <rguenther@suse.de>
13341 PR middle-end/47281
13343 2011-01-11 Richard Guenther <rguenther@suse.de>
13345 PR tree-optimization/46076
13346 * tree-ssa.c (useless_type_conversion_p): Conversions from
13347 unprototyped to empty argument list function types are useless.
13349 2011-01-14 Richard Guenther <rguenther@suse.de>
13351 PR tree-optimization/47286
13352 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13354 2011-01-14 Martin Jambor <mjambor@suse.cz>
13356 PR middle-end/46823
13357 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13359 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13361 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13362 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13363 * config/xtensa/xtensa.c (xtensa_libcall_value,
13364 xtensa_function_value_regno_p): New functions.
13365 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13367 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13370 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13372 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13373 New function prototype.
13374 * config/i386/winnt.c (i386_pe_assemble_visibility):
13375 Warn only if attribute was specified by user.
13377 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13380 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13382 (floatunsdidf2_fcfidu): Ditto.
13384 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13386 * config/s390/s390.c (print_operand_address): Replace 'error' with
13387 'output_operand_lossage'.
13388 (print_operand): Likewise.
13390 2011-01-13 Jeff Law <law@redhat.com>
13392 PR rtl-optimization/39077
13393 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13394 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13395 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13396 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13397 * gcse.c (prune_insertions_deletions): New function.
13398 (compute_pre_data): Use it.
13400 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13403 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13405 (prune_unused_types_mark): Use it.
13407 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13409 PR rtl-optimization/45352
13410 * sel-sched.c: Update copyright years.
13411 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13412 in the advancing loop when we have issued issue_rate insns.
13414 2011-01-12 Richard Henderson <rth@redhat.com>
13416 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13417 (TARGET_MD_ASM_CLOBBERS): New.
13419 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13420 (TARGET_DELEGITIMIZE_ADDRESS): New.
13422 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13423 (clzsi2, *bsch): New patterns.
13425 * config/mn10300/mn10300.md (INT): New mode iterator.
13426 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13428 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13429 flag_split_wide_types.
13431 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13432 (mn10300_trampoline_init): Rewrite without a template, an immediate
13433 load and a direct branch.
13434 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13436 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13438 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13439 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13440 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13441 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13443 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13446 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13449 2011-01-12 Jan Hubicka <jh@suse.cz>
13452 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13453 (PLUGIN_COND_CLOSE): New macro.
13454 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13456 2011-01-12 Richard Guenther <rguenther@suse.de>
13459 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13460 register variables in a MEM_REF.
13462 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13464 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13465 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13466 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13467 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13468 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13469 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13470 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13471 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13472 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13473 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13474 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13475 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13476 * config/gnu-user.h: New. Copied from linux.h.
13477 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13478 GNU_USER_TARGET_STARTFILE_SPEC.
13479 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13480 GNU_USER_TARGET_ENDFILE_SPEC.
13481 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13482 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13483 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13484 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13485 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13486 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13487 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13488 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13489 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13490 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13491 * config/arm/linux-eabi.h (CC1_SPEC): Use
13492 GNU_USER_TARGET_CC1_SPEC.
13493 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13494 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13495 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13496 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13497 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13498 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13499 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13500 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13502 2011-01-12 Richard Guenther <rguenther@suse.de>
13505 * doc/invoke.texi (ffast-math): Document it is turned on
13508 2011-01-12 Jan Hubicka <jh@suse.cz>
13510 PR tree-optimization/47233
13511 * opts.c (common_handle_option): Disable ipa-reference with profile
13514 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13516 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13519 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13521 * c-parser.c (c_lex_one_token): Updated and reindented some
13522 comments. No changes in code.
13524 2011-01-11 Ian Lance Taylor <iant@google.com>
13526 * godump.c (go_output_var): Don't output the variable if there is
13527 already a type with the same name.
13529 2011-01-11 Ian Lance Taylor <iant@google.com>
13531 * godump.c (go_format_type): Don't generate float80.
13533 2011-01-11 Richard Henderson <rth@redhat.com>
13535 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13536 declaration. Rewrite for both speed and size.
13537 (mn10300_address_cost_1): Remove.
13538 (mn10300_register_move_cost): New.
13539 (mn10300_memory_move_cost): New.
13540 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13541 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13542 extensions, shifts, BSWAP, CLZ.
13543 (mn10300_wide_const_load_uses_clr): Remove.
13544 (TARGET_REGISTER_MOVE_COST): New.
13545 (TARGET_MEMORY_MOVE_COST): New.
13546 * config/mn10300/mn10300-protos.h: Update.
13547 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13549 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13550 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13551 * config/mn10300/mn10300-protos.h: Update.
13552 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13553 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13554 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13555 (*test_int_bitfield, *test_byte_bitfield): Remove.
13556 (*bit_test, *subreg_bit_test): Remove.
13557 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13559 * config/mn10300/constraints.md ("c"): Rename from "A".
13560 ("A", "D"): New constraint letters.
13561 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13562 (fmssf4, fnmasf4, fnmssf4): Likewise.
13564 * config/mn10300/mn10300.md (isa): New attribute.
13565 (enabled): New attribute.
13567 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13568 (abssf2, negsf2): Define only for hardware fp.
13569 (sqrtsf2): Reformat.
13570 (addsf3, subsf3, mulsf3): Merge expander and insn.
13572 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13573 (DEBUGGER_AUTO_OFFSET): Remove.
13574 (DEBUGGER_ARG_OFFSET): Remove.
13576 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13577 Emit register stores with the same offsets as the hardware.
13578 (mn10300_store_multiple_operation): Don't check that the register
13579 save offsets are monotonic.
13580 * config/mn10300/mn10300-protos.h: Update.
13582 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13584 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13585 in terms of the value on the stack, not the MDR register.
13587 2011-01-11 Jan Hubicka <jh@suse.cz>
13591 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13592 (symbol_alias_set_destroy, symbol_alias_set_contains,
13593 propagate_aliases_backward): Declare.
13594 * lto-streamer-out.c (struct sets): New sturcture.
13595 (trivally_defined_alias): New function.
13596 (output_alias_pair_p): Rewrite.
13597 (output_unreferenced_globals): Fix output of alias pairs.
13598 (produce_symtab): Likewise.
13599 * ipa.c (function_and_variable_visibility): Set weak alias destination
13601 * varasm.c (symbol_alias_set_t): Remove.
13602 (symbol_alias_set_destroy): Export.
13603 (propagate_aliases_forward, propagate_aliases_backward): New functions
13605 (compute_visible_aliases): ... this one; remove.
13606 (trivially_visible_alias): New
13607 (trivially_defined_alias): New.
13608 (remove_unreachable_alias_pairs): Rewrite.
13609 (finish_aliases_1): Reorganize code checking if alias is defined.
13610 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13613 2011-01-11 Richard Guenther <rguenther@suse.de>
13615 PR tree-optimization/46076
13616 * tree-ssa.c (useless_type_conversion_p): Conversions from
13617 unprototyped to empty argument list function types are useless.
13619 2011-01-11 Richard Guenther <rguenther@suse.de>
13621 PR middle-end/45235
13622 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13623 volatile MEMs as MEM_READONLY_P.
13625 2011-01-11 Richard Guenther <rguenther@suse.de>
13627 PR tree-optimization/47239
13628 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13630 2011-01-11 Jeff Law <law@redhat.com>
13632 PR tree-optimization/47086
13633 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13634 IVs from statements that might throw.
13636 2011-01-10 Jan Hubicka <jh@suse.cz>
13639 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13641 2011-01-10 Jan Hubicka <jh@suse.cz>
13644 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13645 when correcting profile.
13647 2011-01-10 Jan Hubicka <jh@suse.cz>
13650 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13651 DECL_FINI_PRIORITY.
13652 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13653 Restore DECL_FINI_PRIORITY.
13655 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13657 * doc/gimple.texi: Fix quoting of multi-word return values in
13658 @deftypefn statements. Ensure presence of return value. Wrap
13659 overlong @deftypefn lines.
13660 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13661 descriptions of removed functions.
13662 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13663 of multi-word return value in @deftypefn statement.
13665 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13667 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13668 (Conditional Expressions, Logical Operators)
13669 (Statement and operand traversals): Do not indent smallexample
13670 code. Fix duplicate function argument in example.
13672 2011-01-10 Jeff Law <law@redhat.com>
13674 PR tree-optimization/47141
13675 * ipa-split.c (split_function): Handle case where we are
13676 returning a value and the return block has a virtual operand phi.
13678 2011-01-10 Jan Hubicka <jh@suse.cz>
13680 PR tree-optimization/47234
13681 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13682 (pass_feedback_split_functions): Declare.
13683 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13685 * ipa-split.c (gate_split_functions): Update comments; disable
13686 split-functions for profile_arc_flag and branch_probabilities.
13687 (gate_feedback_split_functions): New function.
13688 (execute_feedback_split_functions): New function.
13689 (pass_feedback_split_functions): New global var.
13691 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13694 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13695 calling gimple_call_set_cannot_inline.
13697 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13699 * config/darwin-sections.def: Remove unused section.
13701 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13704 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13706 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13709 * c-parser.c (c_parser_declaration_or_fndef): Improved
13712 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13714 * config/i386/winnt.c (i386_pe_start_function): Make sure
13715 to switch back to function's section.
13717 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13721 * plugin.c: Move include of dlfcn.h from here...
13722 * system.h: ... to here.
13724 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13726 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13728 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13729 two extra empty pages in PDF output.
13731 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13734 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13735 for error recovery purposes behave as if it was not specified so
13736 that the default type is usd.
13738 2011-01-07 Jan Hubicka <jh@suse.cz>
13740 PR tree-optmization/46469
13741 * ipa.c (function_and_variable_visibility): Clear needed flags on
13742 nodes with external decls; handle weakrefs merging correctly.
13744 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13746 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13749 2011-01-07 Jan Hubicka <jh@suse.cz>
13751 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13752 and no longer claim that gold is required for linker plugin.
13753 * configure: Regenerate.
13754 * gcc.c (PLUGIN_COND): New macro.
13755 (LINK_COMMAND_SPEC): Use it.
13756 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13757 * config.in (HAVE_LTO_PLUGIN): New.
13758 * configure.ac (--with-lto-plugin): New parameter; autodetect
13761 2011-01-07 Jan Hubicka <jh@suse.cz>
13763 PR tree-optimization/46367
13764 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13765 when we can update original.
13766 (cgraph_mark_inline_edge): Sanity check.
13767 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13769 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13771 * config/spu/spu.h (ASM_COMMENT_START): Define.
13773 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13776 * gcc.c (%>S): New.
13777 (SWITCH_KEEP_FOR_GCC): Likewise.
13778 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13779 (do_spec_1): Handle "%>".
13781 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13783 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13786 * config/i386/i386.c (ix86_delegitimize_address): If
13787 simplify_gen_subreg fails, return orig_x.
13790 * value-prof.c (gimple_stringop_fixed_value): Handle
13791 lhs of the call properly.
13793 2011-01-07 Jan Hubicka <jh@suse.cz>
13796 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13798 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13800 * target.def (function_switched_text_sections): New hook.
13801 * doc/tm.texi: Regenerated.
13802 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13803 * final.c (default_function_switched_text_sections): New.
13804 (final_scan_insn): Call function_switched_text_sections when a
13805 mid-function section change occurs.
13806 * output.h (default_function_switched_text_sections): Declare.
13807 * config/darwin-protos.h (darwin_function_switched_text_sections):
13809 * config/darwin.c (darwin_function_switched_text_sections): New.
13810 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13812 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13814 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13815 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13816 the secondary code fragment when outputting for DWARF == 2.
13818 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13820 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13821 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13823 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13824 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13826 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13829 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13830 when it is not empty.
13832 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13835 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13836 (case ${target}): Add btver1.
13837 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13838 -march=native recognize btver1 processors.
13839 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13840 btver1 def_and_undef
13841 * config/i386/i386.c (struct processor_costs btver1_cost): New
13843 (m_BTVER1): New definition.
13844 (m_AMD_MULTIPLE): Includes m_BTVER1.
13845 (initial_ix86_tune_features): Add btver1 tune.
13846 (processor_target_table): Add btver1 entry.
13847 (static const char *const cpu_names): Add btver1 entry.
13848 (software_prefetching_beneficial_p): Add btver1.
13849 (ix86_option_override_internal): Add btver1 instruction sets.
13850 (ix86_issue_rate): Add btver1.
13851 (ix86_adjust_cost): Add btver1.
13852 * config/i386/i386.h (TARGET_BTVER1): New definition.
13853 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13854 (enum processor_type): Add PROCESSOR_BTVER1.
13855 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13857 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13860 * config/i386/i386.c (legitimize_tls_address)
13861 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13862 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13863 (tls_initial_exec_64_sun): New pattern.
13865 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13867 * doc/invoke.texi (Overall Options): Improve wording and markup
13868 of the description of -wrapper.
13870 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13872 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13873 rdynamic, threads): New Driver options.
13875 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13878 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13879 if coming from .tdata.
13880 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13882 2011-01-06 Jan Hubicka <jh@suse.cz>
13885 * collect2.c (main): Do not enable LTOmode when plugin is active.
13887 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13890 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13891 --version output if supported.
13892 * configure: Regenerate.
13894 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13896 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13899 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13902 * c-convert.c (convert): When converting a complex expression
13903 other than COMPLEX_EXPR to a different complex type, ensure
13904 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13905 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13906 when converting COMPLEX_TYPE.
13908 2011-01-06 Ira Rosen <irar@il.ibm.com>
13910 PR tree-optimization/47139
13911 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13912 only the last reduction value is used outside the loop. Update
13915 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13917 * config/rtems.opt: New.
13918 * config.gcc (*-*-rtems*): Use rtems.opt.
13920 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13922 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13923 processors do not support 3DNow instructions.
13925 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13927 * config/spu/spu.c (spu_option_override): Set parameter
13928 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13930 2011-01-05 Jan Hubicka <jh@suse.cz>
13932 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13933 at the command line.
13935 2011-01-05 Martin Jambor <mjambor@suse.cz>
13938 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13939 deltas on streamed outgoing edges.
13940 (output_node_opt_summary): Output info for outgoing edges only when
13941 the node is in new parameter set.
13942 (output_cgraph_opt_summary): New parameter set, passed to the two
13943 aforementioned functions. Update its forward declaration and its
13946 2011-01-05 Tom Tromey <tromey@redhat.com>
13948 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13949 operator to c_finish_omp_atomic.
13950 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13951 (build_unary_op): Update.
13952 (build_modify_expr): Update.
13953 (build_asm_expr): Update.
13955 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13957 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13958 newly inserted insns.
13959 (pad_bb): Likewise.
13960 (spu_emit_branch_hint): Likewise.
13961 (insert_hbrp_for_ilb_runout): Likewise.
13962 (spu_machine_dependent_reorg): Call df_finish_pass after
13963 schedule_insns returns.
13965 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13967 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13969 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13971 PR tree-optimization/47005
13972 * tree-sra.c (struct access): Add 'non_addressable' bit.
13973 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13974 (decide_one_param_reduction): Return 0 if the parameter is passed by
13975 reference and one of the accesses in the group is non_addressable.
13977 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13979 PR tree-optimization/47056
13980 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13981 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13982 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13984 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13986 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13987 initializer. Skip view conversions from aggregate types.
13989 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13992 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13994 2011-01-04 Philipp Thomas <pth@suse.de>
13996 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13999 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14001 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14002 on empty epilogue sequences.
14004 2011-01-04 Joseph Myers <joseph@codesourcery.com>
14006 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14007 non-static): New Driver options.
14009 2011-01-04 Jie Zhang <jie@codesourcery.com>
14012 * gcc.c (default_compilers[]): Set combinable field to 0
14013 for all assembly languages.
14015 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14017 * config/mips/loongson3a.md: New file.
14018 * config/mips/mips.md: Include loongson3a.md.
14019 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14022 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14024 PR middle-end/47017
14025 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14026 instead of convert_memory_address_addr_space on the base expression.
14028 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14030 * config/spu/spu.c (spu_option_override): Update error text
14031 for bad -march= / -mtune= values.
14033 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14035 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14036 if branch-hint optimization will be performed.
14038 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14040 PR tree-optimization/47148
14041 * ipa-split.c (split_function): Convert arguments to
14042 DECL_ARG_TYPE if possible.
14044 PR tree-optimization/47155
14045 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14046 when computing uns.
14048 PR rtl-optimization/47157
14049 * combine.c (try_combine): If undobuf.other_insn becomes
14050 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14051 and set *new_direct_jump_p too.
14053 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14055 PR tree-optimization/47021
14056 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14058 2011-01-03 Jakub Jelinek <jakub@redhat.com>
14060 * gcc.c (process_command): Update copyright notice dates.
14061 * gcov.c (print_version): Likewise.
14062 * gcov-dump.c (print_version): Likewise.
14063 * mips-tfile.c (main): Likewise.
14064 * mips-tdump.c (main): Likewise.
14066 2011-01-03 Martin Jambor <mjambor@suse.cz>
14068 PR tree-optimization/46801
14069 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14070 aggregate fields start at byte boundary instead of the bit-field flag.
14072 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14075 * gcc.c (main): Revert revision 168407.
14077 2011-01-03 Martin Jambor <mjambor@suse.cz>
14079 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14081 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14083 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14084 vector optab to expand vector/scalar shift, update gimple to vector.
14086 2011-01-03 Martin Jambor <mjambor@suse.cz>
14088 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14091 2011-01-03 Martin Jambor <mjambor@suse.cz>
14093 PR tree-optimization/46984
14094 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14096 (cgraph_create_indirect_edge): Fixed line length.
14097 (cgraph_indirect_call_info): Declare.
14098 (cgraph_make_edge_direct) Update declaration.
14099 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14100 (cgraph_create_indirect_edge): Use it.
14101 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14103 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14104 the new thunk_delta representation.
14105 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14107 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14108 (ipa_read_indirect_edge_info): Likewise.
14109 * lto-cgraph.c (output_edge_opt_summary): New function.
14110 (output_node_opt_summary): Call it on all outgoing edges.
14111 (input_edge_opt_summary): New function.
14112 (input_node_opt_summary): Call it on all outgoing edges.
14114 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14117 * gcc.c (main): Don't check have_o when settting combine_inputs.
14119 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14121 * regrename.c: Add general comment describing the pass.
14122 (struct du_head): Remove 'length' field.
14123 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14124 (regrename_optimize): Do not sort chains. Rework comments, add others.
14125 Force renaming to the preferred class (if any) in the first pass and do
14126 not consider registers that belong to it in the second pass.
14127 (create_new_chain): Do not set 'length' field.
14128 (scan_rtx_reg): Likewise.
14130 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14132 PR tree-optimization/47140
14133 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14134 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14135 to bit_value_binop.
14137 PR rtl-optimization/47028
14138 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14139 parm_birth_insn instead of at the beginning of first bb.
14141 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14143 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14144 Remove the word "see" before "@pxref".
14145 * doc/rtl.texi: Remove the word "see" before "@pxref".
14147 2011-01-01 Jan Hubicka <jh@suse.cz>
14149 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14152 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14155 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14158 Copyright (C) 2011 Free Software Foundation, Inc.
14160 Copying and distribution of this file, with or without modification,
14161 are permitted in any medium without royalty provided the copyright
14162 notice and this notice are preserved.