1 2011-05-11 Revital Eres <revital.eres@linaro.org>
3 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6 2011-05-11 Revital Eres <revital.eres@linaro.org>
8 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
9 * loop-doloop.c (doloop_condition_get): Likewise.
10 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
12 * config/arm/arm.md (*addsi3_compare0): Remove "*".
14 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
16 * tree.def (CASE_LABEL_EXPR): Add an operand.
17 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
19 2011-05-10 Joseph Myers <joseph@codesourcery.com>
21 * c-decl.c (c_override_global_bindings_to_false): Remove.
22 (global_bindings_p): Don't check
23 c_override_global_bindings_to_false.
24 * c-tree.h (c_override_global_bindings_to_false): Remove.
25 * c-typeck.c (composite_type): Don't set
26 c_override_global_bindings_to_false.
28 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
30 PR target/48857, 48495
31 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
33 (VSX_MOVE_MODE): Ditto.
34 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
35 VSX vector types. Add V2DImode.
36 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
37 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
38 (MODES_TIEABLE_P): Ditto.
40 * config/rs6000/rs6000.c (rs6000_emit_move): Use
41 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
43 (init_cumulative_args): Ditto.
44 (rs6000_function_arg_boundary): Ditto.
45 (rs6000_function_arg_advance_1): Ditto.
46 (rs6000_function_arg): Ditto.
47 (rs6000_function_ok_for_sibcall): Ditto.
48 (emit_frame_save): Ditto.
49 (rs6000_function_value): Ditto.
50 (rs6000_libcall_value): Ditto.
52 2011-05-10 Joseph Myers <joseph@codesourcery.com>
54 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
55 i386/darwin-lib.h to $libgcc_tm_file.
56 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
58 2011-05-10 Joseph Myers <joseph@codesourcery.com>
60 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
62 2011-05-10 Joseph Myers <joseph@codesourcery.com>
64 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New
66 * config/rs6000/rs6000-tables.opt: New file (generated).
67 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
68 rs6000/rs6000-tables.opt to extra_options.
69 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
70 * config/rs6000/rs6000.c (rs6000_select): Remove.
71 (processor_target_table): Move contents to rs6000-cpus.def.
72 (darwin_rs6000_override_options): Check
73 global_options_set.x_rs6000_cpu_index instead of
74 rs6000_select[1].string.
75 (rs6000_option_override_internal): Likewise.
76 (rs6000_handle_option): Don't assert that global structures are in
77 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
78 (rs6000_default_cpu): New variable.
79 (rs6000_file_start): Set it instead of local default_cpu. Check
80 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
81 global_options_set.x_rs6000_tune_index instead of rs6000_select.
82 (rs6000_darwin_file_start): Check rs6000_default_cpu and
83 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
84 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
85 rs6000_select): Remove.
86 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
88 (mcpu=, mtune=): Use Var, Init, Enum and Save.
89 * config/rs6000/t-rs6000
90 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
91 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
92 global_options_set.x_rs6000_cpu_index instead of
93 rs6000_select[1].string.
94 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
95 global_options_set.x_rs6000_cpu_index instead of
96 rs6000_select[1].string.
98 2011-05-10 Joseph Myers <joseph@codesourcery.com>
100 * config.gcc (libgcc_tm_file): Define instead of including files
101 from ../../libgcc/config/ in tm_file.
102 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list):
104 * configure: Regenerate.
105 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
106 libgcc_tm.h, cs-libgcc_tm.h): New.
107 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
108 (clean): Remove libgcc_tm.h.
109 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
110 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
111 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
113 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
116 * config/avr/avr.c (avr_ret_register): Return unsigned int
118 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
119 it to avr_libcall_value.
120 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
122 (avr_expand_binop_builtin): Ditto.
123 (avr_expand_unop_builtin): Ditto.
125 2011-05-10 DJ Delorie <dj@redhat.com>
127 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
128 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
129 * config/rx/rx.c (rx_align_for_label): Add label and
130 uses_threshold parameters. Do not align when the label is not
132 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
134 2011-05-10 Richard Guenther <rguenther@suse.de>
136 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
137 a series of conversions and apply foldings similar to what
139 (tree_ssa_forward_propagate_single_use_vars): Call it.
141 2011-05-10 Jakub Jelinek <jakub@redhat.com>
143 PR tree-optimization/48611
144 PR tree-optimization/48794
145 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
146 referenced from RESX or EH_DISPATCH arguments.
149 * dfp.c (decimal_to_decnumber): Handle conversion from
152 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
154 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
155 for !flag_prefer_avx128.
156 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
158 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
160 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
161 (fold_ternary_loc): Use expr_location_or.
163 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
166 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
167 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
168 Pmode and mem_mode is not VOIDmode.
170 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
172 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
173 TYPE_QUAL_RESTRICT): Convert to enum.
175 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
177 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
178 (const_pow2_1_to_8_operand): Ditto.
179 (const_pow2_1_to_128_operand): Ditto.
180 (const_pow2_1_to_32768_operand): Ditto.
181 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
182 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
183 in insn constraint to check integer value of operand 3.
184 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
186 (PINSR_MODE): New mode iterator.
187 (sse2p4_1): New mode attribute.
188 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
189 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
190 iterator. Use const_int_operand instead of
191 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
192 exact_log2 in insn constraint to check integer value of operand 3.
194 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
196 * config/i386/sse.md (blendbits): Remove mode attribute.
197 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
198 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
199 Check integer value of operand 3 in insn constraint.
201 2011-05-09 Richard Guenther <rguenther@suse.de>
203 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
205 (lto_symtab_merge): Likewise. Do not register types here.
206 (lto_symtab_merge_decls_2): Likewise.
207 (lto_symtab_merge_decls_1): Likewise.
208 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
209 * gimple.c (enum gtc_mode): Declare.
210 (gimple_types_compatible_p): Make static.
212 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
214 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
215 temporary register to match Pmode.
217 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
219 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
220 and *vec_concatv4si_1_avx.
222 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
224 PR rtl-optimization/48927
225 * ira-conflicts.c (commutative_constraint_p): Use
226 recog_data.alternative_enabled_p to disable alternatives where
227 "enabled" attribute is false.
228 (get_dup_num): Ditto.
229 * ira-lives.c (single_reg_class): Ditto.
230 (ira_implicitly_set_insn_hard_regs): Ditto.
232 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
234 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
235 (dataflow_set_preserve_mem_locs): Likewise.
237 2011-05-09 Philipp Thomas <pth@suse.de>
239 * config/mep/mep.c (mep_validate_vliw): Syntax description
240 should not be translated.
242 2011-05-09 Joseph Myers <joseph@codesourcery.com>
244 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
245 * config/mips/mips-tables.opt: New file (generated).
246 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
247 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
248 MIPS_ARCH_OPTION_NATIVE): Define.
249 * config/mips/mips.c (mips_cpu_info_table): Move contents to
251 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
252 mips_parse_cpu): Remove.
253 (mips_cpu_info_from_opt, mips_default_arch): New.
254 (mips_handle_option): Don't assert that global structures are in
255 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
256 (mips_option_override): Use new variables and functions to set
257 state of these options. Use strcmp to check for individual CPU names.
258 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
260 * config/mips/mips.opt (march=): Use ToLower and Enum.
261 (mips): Use ToLower, Enum and Var.
262 (mtune=): Use ToLower and Enum.
263 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
265 2011-05-08 Jan Hubicka <jh@suse.cz>
267 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
268 Arrange type pairs to be UID ordered.
269 (gimple_lookup_type_leader): Make inline.
271 2011-05-09 Nick Clifton <nickc@redhat.com>
274 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
278 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
281 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
283 * combine.c (simplify_comparison): Abstract out parts into...
284 (simplify_compare_const): ... new function.
285 (try_combine): Generalize parallel arithmetic/compare combining
286 to call simplify_compare_const() and CANONICALIZE_COMPARE().
288 2011-05-08 Jan Hubicka <jh@suse.cz>
290 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
291 (cgraph_create_virtual_clone): Call hooks once virtual clone
293 * cgraph.h (cgraph_clone_node): Update prototype.
294 * ipa-cp.c (ipcp_estimate_growth): Use
295 estimate_ipcp_clone_size_and_time.
296 * ipa-inline-transform.c (clone_inlined_nodes): Update.
297 * lto-cgraph.c (input_node): Update.
298 * ipa-inline.c (recursive_inlining): Update.
299 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
300 (evaluate_conditions_for_known_args): Break out from ...
301 (evaluate_conditions_for_edge): ... here.
302 (evaluate_conditions_for_ipcp_clone): New function.
303 (inline_node_duplication_hook): Update clone summary based
305 (estimate_callee_size_and_time): Rename to ...
306 (estimate_node_size_and_time): take NODE instead of EDGE;
307 take POSSIBLE_TRUTHS as argument.
308 (estimate_callee_size_and_time): Update.
309 (estimate_ipcp_clone_size_and_time): New function.
310 (do_estimate_edge_time): Update.
312 2011-05-08 Richard Guenther <rguenther@suse.de>
316 * expmed.c (expand_shift_1): Compute adjusted constant shift
319 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
321 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
323 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
325 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
327 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
329 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
331 2011-05-07 Jan Hubicka <jh@suse.cz>
333 * ipa-inline-transform.c (inline_call): Account when program size
335 * ipa-inline.c (relative_time_benefit): New function.
336 (edge_badness): Reorganize to be power 2 based; fix thinko when
337 computing badness for negative growth; update comments to match
338 reality; better dumps.
340 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
342 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
343 type to bool and adjust comment.
344 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
345 (fold_mathfn_compare): Remove calls to global_bindings_p.
346 (fold_inf_compare): Likewise.
347 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
348 * c-tree.h (global_bindings_p): Adjust prototype.
349 * c-decl.c (global_bindings_p): Return bool and simplify.
351 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
353 PR tree-optimization/48837
354 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
355 when accumulator transformation is performed.
357 2011-05-06 Jan Hubicka <jh@suse.cz>
359 * i386.h (ix86_tune_indices): Add
360 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
361 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
362 * i386.c (initial_ix86_tune_features): Add
363 X86_SOFTARE_PREFETCHING_BENEFICIAL.
364 (software_prefetching_beneficial_p): Remove predicate.
365 (ix86_option_override_internal): Use new macro.
367 2011-05-06 Jan Hubicka <jh@suse.cz>
369 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
371 2011-05-06 Jan Hubicka <jh@suse.cz>
373 * cgraph.c (cgraph_add_thunk): Create real function node instead
374 of alias node; finalize it and mark needed/reachale; arrange visibility
375 to be right and add it into the corresponding same comdat group list.
376 (dump_cgraph_node): Dump thunks.
377 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
378 cgraph_function_with_gimple_body_p,
379 cgraph_first_function_with_gimple_body,
380 cgraph_next_function_with_gimple_body): New functions.
381 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
383 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
384 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
385 * cgraphunit.c (cgraph_finalize_function): Only look into possible
386 devirtualization when optimizing.
387 (verify_cgraph_node): Verify thunks.
388 (cgraph_analyze_function): Analyze thunks.
389 (cgraph_mark_functions_to_output): Output thunks only in combination
390 with function they are assigned to.
391 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
392 alias into normal node.
393 (assemble_thunks): New functoin.
394 (cgraph_expand_function): Use it.
395 * lto-cgraph.c (lto_output_node): Stream thunks.
396 (input_overwrite_node): Stream in thunks.
397 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
398 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
399 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
400 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
401 (inline_analyze_function): Do not care about thunk jump functions.
402 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
403 * ipa-prop.c (ipa_prop_write_jump_functions): Use
404 cgraph_function_with_gimple_body_p.
405 * passes.c (do_per_function_toporder): Use
406 cgraph_function_with_gimple_body_p.
407 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
408 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
409 (function_called_by_processed_nodes_p): Likewise.
411 2011-05-06 Joseph Myers <joseph@codesourcery.com>
413 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
414 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
416 (mabi=): Replace with separate entries for mabi=altivec,
417 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
418 mabi=ieeelongdouble and mabi=ibmlongdouble.
419 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
420 check for -mabi=spe without SPE ABI support here.
421 (rs6000_handle_option): Replace OPT_mabi_ handling with
422 OPT_mabi_altivec and OPT_mabi_spe handling.
424 2011-05-06 Cary Coutant <ccoutant@google.com>
426 * dwarf2out.c (contains_subprogram_definition): New function.
427 (should_move_die_to_comdat): Call it.
429 2011-05-06 Jeff Law <law@redhat.com>
431 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
432 remove_ctrl_stmt_and_useless_edges.
433 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
434 (fixup_template_block, thread_single_edge): Likewise.
435 (mark_threaded_blocks): Use THREAD_TARGET.
437 2011-05-06 Alan Modra <amodra@gmail.com>
440 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
441 const0_rtx as the arg to the dummy __tls_get_addr libcall.
443 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
445 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
446 constraint modifier to "r".
448 2011-05-06 Joseph Myers <joseph@codesourcery.com>
450 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
451 fall through for OPT_mcmodel_.
453 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
455 * config/s390/s390.c (s390_asm_trampoline_template): Comment
457 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
459 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
462 * config/arm/arm.opt (marm): Document it.
463 (mthumb): Reject negative variant.
465 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
468 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
469 Fix typo in "ccvt" variable name.
471 2011-05-06 Tristan Gingold <gingold@adacore.com>
474 * config/vms/vms-ar.c (main): Remove cwd variable.
476 2011-05-06 Jakub Jelinek <jakub@redhat.com>
479 * var-tracking.c (prepare_call_arguments): Move else before #endif.
481 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
483 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
484 * gimplify.c (gimplify_switch_expr): Likewise.
485 * omp-low.c (expand_omp_sections): Likewise.
486 * tree-eh.c (lower_try_finally_switch): Likewise.
487 (lower_eh_dispatch): Likewise.
488 * tree.h (build_case_label): Declare.
489 * tree.c (build_case_label): Define.
491 2011-05-05 Jason Merrill <jason@redhat.com>
494 * tree-inline.c (copy_tree_r): Use copy_statement_list.
495 (copy_statement_list): Don't recurse.
496 * stor-layout.c (copy_self_referential_tree_r): Don't allow
499 2011-05-05 Joseph Myers <joseph@codesourcery.com>
501 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
502 through from -mfpu= handling.
503 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
505 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
507 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
510 2011-05-05 Steve Ellcey <sje@cup.hp.com>
512 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
514 (hppa[12]*-*-hpux11*): Ditto.
515 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
516 * config/ia64/hpux-unix2003.h: New.
517 * config/pa/pa-hpux1131.opt: New.
518 * config/pa/pa-hpux1131.h: New.
519 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
520 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
521 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
523 2011-05-05 Jakub Jelinek <jakub@redhat.com>
526 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
527 instead of mode as 3rd argument to recursive call.
528 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
529 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
531 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
532 don't give up if mode is Pmode and mem_mode is not VOIDmode.
533 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
534 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
536 2011-05-05 Julian Brown <julian@codesourcery.com>
538 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
539 parenthesis in D-register case.
541 2011-05-05 Joseph Myers <joseph@codesourcery.com>
543 * opt-functions.awk (var_type_struct): Handle Enum options.
544 * optc-gen.awk: Don't check range of variables of character type.
545 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
546 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
547 rs6000_sdata_name, rs6000_explicit_options): Remove.
548 (rs6000_option_override_internal): Check for -malign-power here.
549 Use global_options_set instead of rs6000_explicit_options.
550 (rs6000_parse_fpu_option): Remove.
551 (rs6000_handle_option): Access variables via opts and opts_set
552 pointers. Use error_at and warning_at. Add fall-through
553 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
554 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
555 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
556 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
557 here. Don't use rs6000_parse_fpu_option.
558 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
559 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
560 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
562 (mspe): Use Var and Save.
563 (mtraceback=): Use Enum and Var.
564 (rs6000_traceback_type): New Enum and EnumValue entries.
565 (mfloat-gprs=): Use Enum, Var and Save.
566 (rs6000_float_gprs): New Enum and EnumValue entries.
567 (mlong-double-): use Var and Save.
568 (msched-costly-dep=, minsert-sched-nops=): Use Var.
569 (malign-): Use Enum and Var.
570 (rs6000_alignment_flags): New Enum and EnumValue entries.
572 (fpu_type_t): New Enum and EnumValue entries.
573 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
574 global_options_set instead of rs6000_explicit_options.
575 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
576 global_options_set instead of rs6000_explicit_options.
577 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
578 global_options_set instead of rs6000_explicit_options.
579 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
580 global_options_set instead of rs6000_explicit_options.
581 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
582 global_options_set instead of rs6000_explicit_options.
583 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
584 global_options_set instead of rs6000_explicit_options.
585 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
587 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
588 global_options_set instead of rs6000_explicit_options.
589 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
590 (rs6000_cmodel): New Enum and EnumValue entries.
591 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
592 global_options_set instead of rs6000_explicit_options.
593 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
594 (mtls-size=): Use Enum and Var.
595 (rs6000_tls_size): New Enum and EnumValue entries.
597 2011-05-05 Michael Matz <matz@suse.de>
599 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
600 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
601 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
602 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
603 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
604 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
605 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
606 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
607 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
608 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
609 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
610 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
611 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
612 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
613 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
614 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
616 2011-05-05 Richard Guenther <rguenther@suse.de>
618 * expmed.c (expand_variable_shift): Rename to ...
619 (expand_shift_1): ... this. Take an expanded shift amount.
620 For rotates recurse directly not building trees for the shift amount.
621 (expand_variable_shift): Wrap around expand_shift_1.
622 (expand_shift): Adjust.
624 2011-05-05 Jakub Jelinek <jakub@redhat.com>
626 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
628 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
630 * tree.h (get_pending_sizes): Remove prototype.
631 (put_pending_size): Likewise.
632 (put_pending_sizes): Likewise.
633 * stor-layout.c (pending_sizes): Delete.
634 (get_pending_sizes): Likewise.
635 (put_pending_size): Likewise.
636 (put_pending_sizes): Likewise.
637 (variable_size): Do not call put_pending_size and tidy up.
638 * function.h (struct function): Remove dont_save_pending_sizes_p.
639 * lto-streamer-in.c (input_function): Do not stream it.
640 * lto-streamer-out.c (output_function): Likewise.
641 * tree-inline.c (initialize_cfun): Do not copy it.
642 * c-decl.c (store_parm_decls): Do not set it.
643 * omp-low.c (create_task_copyfn): Likewise.
644 * tree-optimize.c (tree_rest_of_compilation): Likewise.
646 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
648 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
650 (*movdf_internal): Ditto.
651 (*movdf_internal_nointeger): Ditto.
652 (*movsf_internal): Ditto.
654 2011-05-05 Joseph Myers <joseph@codesourcery.com>
656 * c-decl.c (finish_decl): Don't call get_pending_sizes.
657 (grokparm): Add parameter expr. Pass it to grokdeclarator.
658 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
659 (c_variable_size): Remove.
660 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
661 call put_pending_sizes.
662 (get_parm_info): Add parameter expr. Use it to set
663 arg_info->pending_sizes.
664 (store_parm_decls): Use arg_info->pending_sizes instead or calling
666 * c-parser.c (c_parser_parms_declarator): Update call to
667 c_parser_parms_list_declarator.
668 (c_parser_parms_list_declarator): Take parameter expr. Update
669 call to push_parm_decl. Update recursive call. Don't call
670 get_pending_sizes. Update calls to get_parm_info.
671 (c_parser_objc_method_definition): Update calls to
672 c_parser_objc_method_decl and objc_start_method_definition.
673 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
674 (c_parser_objc_method_decl): Add parameter expr. Update call to
676 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
677 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
678 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
680 2011-05-05 Michael Hope <michael.hope@linaro.org>
683 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
686 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
688 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
689 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
690 (spu_output_mi_thunk): New function.
692 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
694 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
695 targetm.asm_out.print_operand.
696 * config/sol2.c: Include target.h.
698 2011-05-04 Jan Hubicka <jh@suse.cz>
700 * ipa-inline.c (reset_edge_caches): New function.
701 (update_caller_keys): Add check_inlinablity_for; do not
702 reset edge caches; remove now unnecesary loop.
703 (update_callee_keys): Add comments; reset node_growth_cache of callee.
704 (update_all_callee_keys): Likewise.
705 (inline_small_functions): Sanity check cache; update code
708 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
710 PR rtl-optimization/47612
711 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
712 as the last insn of the sequence to be moved.
714 2011-05-04 Tobias Burnus <burnus@net-b.de>
717 * doc/invoke.texi (Ofast): Document that it
718 enables Fortran's -fno-protect-parens.
720 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
722 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
724 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
726 * stor-layout.c (variable_size): Do not issue errors.
728 2011-05-04 Richard Guenther <rguenther@suse.de>
730 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
731 for array-ref indices.
732 (tree_coverage_counter_addr): Likewise.
733 (build_fn_info_type): Use size_int for index types.
734 (build_gcov_info): Likewise.
736 2011-05-04 Richard Guenther <rguenther@suse.de>
738 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
740 * c-typeck.c (really_start_incremental_init): Use bitsize_int
741 for constructor indices.
742 (push_init_level): Likewise.
744 2011-05-04 Richard Guenther <rguenther@suse.de>
746 * explow.c (promote_mode): Move variable declarations before code.
748 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
750 * tree.h (build_function_type_array): Declare.
751 (build_varargs_function_type_array): Declare.
752 (build_function_type_vec, build_varargs_function_type_vec): Define.
753 * tree.c (build_function_type_array_1): New function.
754 (build_function_type_array): New function.
755 (build_varargs_function_type_array): New function.
757 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
759 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
760 before setting STMT_VINFO_TYPE.
762 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
764 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
765 instead of spu_pass_by_reference.
767 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
769 * calls.c (emit_library_call_value_1): Invoke
770 promote_function_mode hook on libcall arguments.
771 * explow.c (promote_function_mode, promote_mode): Handle TYPE
773 * targhooks.c (default_promote_function_mode): Lisewise.
774 * config/s390/s390.c (s390_promote_function_mode): Likewise.
775 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
777 * doc/tm.texi: Document that TYPE argument might be NULL.
779 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
781 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
783 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
786 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
788 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
790 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
791 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
793 * mips-tfile.c: ... here.
794 Don't include coretypes.h, tm.h, filenames.h.
795 (saber_stop): Remove definition and all calls.
797 (__LINE__): Remove default.
798 (Size_t, Ptrdiff_t): Remove definitions.
799 Replace by size_t, ptrdiff_t.
800 [!MIPS_DEBUGGING_INFO]: Remove.
801 (SHASH_SIZE, THASH_SIZE): Remove defaults.
802 (progname): Add const.
804 Replace all uses by static.
805 (ALIGN_SYMTABLE_OFFSET): Remove default.
806 * mips-tdump.c: Don't include coretypes.h, tm.h.
807 Remove !MIPS_IS_STAB guard.
808 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
809 $(TM_H), filenames.h dependencies.
810 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
812 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
815 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
816 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
818 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
821 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
822 account and save/restore RETS.
823 (PROFILE_BEFORE_PROLOGUE): Define.
824 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
825 the push insn to use predecrement.
827 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
830 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
832 2011-05-04 Nick Clifton <nickc@redhat.com>
834 * config/mn10300/mn10300.c: Include cfgloop.h.
836 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
837 Lcc or a FLcc insn into the instruction stream.
838 (mn10300_block_contains_call): New function. Returns true if the
839 given basic block contains a CALL insn.
840 (mn10300_loop_contains_call_insn): New function. Returns true if
841 the given loop contains a CALL insn.
842 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
843 to use the SETLB and Lcc or FLcc insns.
844 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
845 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
846 * config/mn10300/mn10300.opt (msetlb): New option. Used to
847 disable the SETLB optimization.
848 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
849 __SETLB__ or __NO_SETLB__.
850 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
851 (movsf_internal): Handle MDR register.
852 (cmpsi): Make visible.
853 (setlb): New pattern.
857 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
860 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
862 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
863 (vec_concatv2di_rex64_sse): Ditto.
864 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
865 (*vec_extractv2di_1_rex64): Ditto.
868 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
870 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
872 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
874 2011-05-04 Richard Guenther <rguenther@suse.de>
876 * tree.h (int_const_binop): Remove notrunc argument.
877 * fold-const.c (int_const_binop): Remove notrunc argument. Always
878 create integer constants that are properly truncated.
879 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
880 (const_binop): Remove zero notrunc argument to int_const_binop.
881 (size_binop_loc): Likewise.
882 (fold_div_compare): Likewise.
883 (maybe_canonicalize_comparison_1): Likewise.
884 (fold_comparison): Likewise.
885 (fold_binary_loc): Likewise.
886 (multiple_of_p): Likewise.
887 * expr.c (store_constructor): Likewise.
888 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
889 (maybe_fold_stmt_addition): Likewise.
890 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
891 * stor-layout.c (layout_type): Likewise.
892 * tree-data-ref.c (tree_fold_divides_p): Likewise.
893 * tree-sra.c (build_ref_for_offset): Likewise.
894 (build_user_friendly_ref_for_offset): Likewise.
895 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
896 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
897 * tree-ssa-loop-niter.c (inverse): Likewise.
898 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
899 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
900 * tree-switch-conversion.c (check_range): Likewise.
901 (build_constructors): Likewise.
902 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
903 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
904 (extract_range_from_assert): Likewise.
905 (vrp_int_const_binop): Likewise.
906 (extract_range_from_binary_expr): Likewise.
907 (extract_range_from_unary_expr): Likewise.
908 (check_array_ref): Likewise.
909 (find_case_label_range): Likewise.
910 (simplify_div_or_mod_using_ranges): Likewise.
911 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
912 comparing case labels for merging.
914 2011-05-03 Mark Wielaard <mjw@redhat.com>
916 * dwarf2out.c (debug_str_hash_forced): Removed.
917 (gen_label_for_indirect_string): Removed.
918 (get_debug_string_label): Removed.
919 (AT_string_form): Generate label directly.
920 (output_indirect_string): Test indirect_string_node for
921 DW_FORM_strp instead of checking label and refcount.
922 (prune_indirect_string): Removed.
923 (prune_unused_types): Don't check debug_str_hash_forced or
924 call prune_indirect_string.
926 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
929 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
931 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
935 * combine.c (try_combine): Skip debug insns at m_split tests.
937 2011-04-26 Mark Wielaard <mjw@redhat.com>
940 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
941 when info_section_emitted.
943 2011-05-03 Joseph Myers <joseph@codesourcery.com>
945 * config/mips/mips-opts.h: New.
946 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
948 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
949 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
950 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
952 * config/mips/mips.h (enum mips_code_readable_setting): Move to
954 (mips_abi, mips_code_readable): Don't declare.
955 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
956 (mabi=): Use Enum and Var.
957 (mips_abi): New Enum and EnumValue entries.
958 (mcode-readable=): Use Enum and Var.
959 (mips_code_readable_setting): New Enum and EnumValue entries.
960 (mr10k-cache-barrier=): Use Enum and Var.
961 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
963 2011-05-03 Jan Hubicka <jh@suse.cz>
965 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
966 replace hash by pointer map.
967 (cgraph_node_set_element_def, cgraph_node_set_element,
968 const_cgraph_node_set_element, varpool_node_set_element_def,
969 varpool_node_set_element, const_varpool_node_set_element): Remove.
970 (free_cgraph_node_set, free_varpool_node_set): New function.
971 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
972 * tree-emutls.c: Free varpool node set.
973 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
974 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
975 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
976 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
977 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
978 Move here from ipa.c; implement using pointer_map
979 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
980 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
981 debug_cgraph_node_set, varpool_node_set_new,
982 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
983 dump_varpool_node_set, debug_varpool_node_set):
985 * passes.c (ipa_write_summaries): Update.
987 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
990 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
991 bf542/bf544/bf547/bf548/bf549.
993 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
995 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
997 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1000 * config/bfin/bfin.md (MOVCC): New mode_macro.
1001 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1002 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1003 comments from generated assembly.
1005 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1008 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1009 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1010 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1011 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1012 * config/bfin/lib1funcs.asm (___muldi3): New function.
1014 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1016 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1017 build_function_type_list instead of build_function_type.
1018 Rearrange initialization of `args' to do so.
1020 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1022 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1023 instead of build_function_type.
1025 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1027 * config/rs6000/rs6000.c (spe_init_builtins): Call
1028 build_function_type_list instead of build_function_type.
1029 (paired_init_builtins, altivec_init_builtins): Likewise.
1030 (builtin_function_type): Likewise.
1032 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1034 * config/sh/sh.c (sh_media_init_builtins): Call
1035 build_function_type_list instead of build_function_type.
1037 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1039 * config/sparc/sparc.c (sparc_file_end): Call
1040 build_function_type_list instead of build_function_type.
1042 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1044 * config/alpha/alpha.c (alpha_init_builtins): Call
1045 build_function_type_list instead of build_function_type.
1047 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1049 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1050 build_function_type_list instead of build_function_type.
1052 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1054 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1055 build_function_type_list instead of build_function_type.
1056 Delete `endlink' variable.
1058 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1060 * config/avr/avr.c (avr_init_builtins): Call
1061 build_function_type_list instead of build_function_type.
1063 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1065 * config/picochip/picochip.c (picochip_init_builtins): Call
1066 build_function_type_list instead of build_function_type.
1067 Delete `endlink' variable.
1069 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1071 * config/bfin/bfin.c (bfin_init_builtins): Call
1072 build_function_type_list instead of build_function_type.
1074 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1077 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1078 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1080 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1083 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1084 libbffastfp overrides libgcc when -mfast-fp.
1086 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1088 Originally from Bernd Schmidt
1089 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1090 * config/bfin/bfin.c (override_options): Test it and error if
1093 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1095 Originally From Bernd Schmidt
1096 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1099 2011-05-03 Jeff Law <law@redhat.com>
1101 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1102 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1103 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1104 than accessing AUX field directly. Free the AUX field before
1106 (thread_block, thread_through_loop_header): Likewise.
1107 (thread_single_edge, mark_threaded_blocks): Likewise.
1108 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1109 (register_jump_thread): Do not attempt to thread to a NULL edge.
1111 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1113 * function.c (init_function_start): Call decide_function_section.
1114 * varasm.c (decide_function_section): New function.
1115 (assemble_start_function): When not using
1116 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1117 or first_function_block_is_cold.
1118 * rtl.h (decide_function_section): Declare.
1120 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1121 Jakub Jelinek <jakub@redhat.com>
1124 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1125 only succeed if req_mode is the same as set_mode.
1127 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1129 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1130 * genemit.c (gen_exp): Handle RETURN.
1131 * emit-rtl.c (verify_rtx_sharing): Likewise.
1132 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1133 * rtl.c (copy_rtx): RETURN is shared.
1134 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1136 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1137 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1138 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1139 * config/cris/cris.c (cris_expand_return): Likewise.
1140 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1141 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1142 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1143 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1144 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1146 * config/v850/v850.c (expand_epilogue): Likewise.
1147 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1148 * config/arm/arm.md (epilogue): Likewise.
1149 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1150 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1151 variable to ret_reg.
1153 2011-05-03 Richard Guenther <rguenther@suse.de>
1156 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1157 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1158 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1160 2011-05-03 Richard Guenther <rguenther@suse.de>
1162 * c-decl.c (grokdeclarator): Instead of looking at
1163 TREE_OVERFLOW check if the constant fits in the index type.
1165 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1167 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1168 (vec_store_lanes<mode><mode>): Likewise.
1170 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1172 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1173 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1174 convert_optab_index values.
1175 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1176 * genopinit.c (optabs): Initialize the new optabs.
1177 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1178 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1179 (expand_STORE_LANES): New functions.
1180 * tree.h (build_array_type_nelts): Declare.
1181 * tree.c (build_array_type_nelts): New function.
1182 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1183 (vect_model_load_cost): Likewise.
1184 (vect_store_lanes_supported, vect_load_lanes_supported)
1185 (vect_record_strided_load_vectors): Declare.
1186 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1187 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1188 (vect_transform_strided_load): Split out statement recording into...
1189 (vect_record_strided_load_vectors): ...this new function.
1190 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1191 (write_vector_array, create_array_ref): New functions.
1192 (vect_model_store_cost): Add store_lanes_p argument.
1193 (vect_model_load_cost): Add load_lanes_p argument.
1194 (vectorizable_store): Try to use store-lanes functions for
1196 (vectorizable_load): Likewise load-lanes and loads.
1197 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1198 to vect_model_store_cost.
1199 (vect_build_slp_tree): Likewise vect_model_load_cost.
1201 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1203 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1204 * hooks.c (hook_bool_mode_uhwi_false): New function.
1205 * target.def (array_mode_supported_p): New hook.
1206 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1207 * doc/tm.texi: Regenerate.
1208 * stor-layout.c (mode_for_array): New function.
1209 (layout_type): Use it.
1210 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1211 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1213 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1216 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1217 for -fstack-check if the size to allocate is negative.
1219 2011-05-02 Lawrence Crowl <crowl@google.com>
1221 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1222 (timevar_cond_start): New for starting a timer only when it is not
1224 (timevar_cond_stop): New for stopping a timer when it was not already
1227 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1228 (timevar_cond_start): New as above.
1229 (timevar_cond_stop): New as above.
1231 * timevar.def: Add start/stop timers for compiler phases,
1232 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1233 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1234 and TV_PHASE_FINALIZE.
1235 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1236 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1237 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1238 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1239 Make unused TV_OVERLOAD into a start/stop timer.
1241 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1242 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1243 to indicate that they are start/stop timers.
1245 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1246 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1247 Move initialization to do_compile.
1248 (do_compile): Add initialization from above.
1249 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1251 * c-decl.c (c_write_global_declarations): Add start/stop of
1252 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1254 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1255 or TV_PARSE_INLINE, as appropriate.
1256 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1257 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1259 2011-05-02 Jason Merrill <jason@redhat.com>
1262 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1264 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1267 * c-decl.c (finish_decl): Only create a composite if the types are
1270 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1272 * config/fr30/fr30-protos.h (Mmode): Don't define.
1273 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1274 definition where used.
1275 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1276 define. Expand definitions where used.
1277 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1278 Expand definitions where used.
1279 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1280 rx_function_arg, rx_function_arg_advance,
1281 rx_function_arg_boundary): Expand definitions of those macros.
1282 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1283 definition where used.
1285 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1287 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1289 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1290 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1291 with *movv2sf_internal_rex64_avx.
1292 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1293 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1294 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1295 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1296 "vex" in "prefix" attribute calculation.
1297 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1299 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1302 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1303 inputs match the output.
1305 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1308 * config/m68k/m68k.c (m68k_expand_prologue): Set
1309 current_function_static_stack_size.
1311 2011-05-02 Jan Hubicka <jh@suse.cz>
1313 * lto-streamer.c (lto_streamer_cache_insert_1,
1314 lto_streamer_cache_lookup, lto_streamer_cache_create,
1315 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1316 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1318 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1320 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1321 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1322 config/m68k/t-opts: New files.
1323 * config/m68k/m68k-tables.opt: New file (generated).
1324 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1325 extra_options and m68k/t-opts to tmake_file.
1326 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1327 (all_isas): Initialize using m68k-isas.def.
1328 (all_microarchs): Initialize using m68k-microarchs.def.
1329 (m68k_find_selection): Remove.
1330 (m68k_handle_option): Don't assert that global structures are in
1331 use. Use error_at. Access variables via opts pointer. Don't
1332 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1333 directly for -m68020-40 and -m68020-60.
1334 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1335 m68k_tune_entry here.
1336 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1338 (m68k_library_id_string): Remove declaration.
1339 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1340 (m68k_library_id_string): New Variable.
1341 (march=, mcpu=, mtune=): Use Enum and Var.
1343 2011-05-02 Richard Guenther <rguenther@suse.de>
1345 * varasm.c (output_constructor_regular_field): Compute zero-based
1346 index with double-ints. Make sure to ICE instead of producing
1348 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1349 in asserts. Properly use a signed type.
1351 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1353 * config/i386/sse.md (V): New mode iterator.
1354 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1356 (V_256): Rename from AVX256MODE.
1357 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1358 condition to all users.
1360 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1361 condition to all users.
1362 (VF_128): Make V4SF mode unconditional.
1363 (VF_256): Rename from AVX256MODEF2P.
1364 (VI4F_128): Rename from SSEMODE4S.
1365 (VI8F_128): Rename from SSEMODE2D.
1366 (VI4F_256): Rename from AVX256MODE8P.
1367 (VI8F_256): Rename from AVX256MODE4P.
1368 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1369 (ssescalarmodesuffix): Remove SF and DF modes.
1370 (SSEMODE124): Remove.
1371 (SSEMODE1248): Ditto.
1372 (SSEMODEF2P): Ditto.
1373 (AVXMODEF2P): Ditto.
1374 (AVXMODEFDP): Ditto.
1375 (AVXMODEFSP): Ditto.
1376 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1378 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1380 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1381 xop_pcmov_<mode>256. Use V mode iterator.
1383 Adjust RTX patterns globally for renamed mode attributes.
1385 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1387 * haifa-sched.c (sched_emit_insn): Emit insn before first
1388 non-scheduled insn. Inform back-end about new insn. Add
1389 new insn to scheduled_insns list.
1391 2011-05-02 Richard Guenther <rguenther@suse.de>
1393 PR tree-optimization/48822
1394 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1395 (process_scc): Indicate which iteration we start.
1397 2011-05-02 Jan Hubicka <jh@suse.cz>
1399 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1400 (lto_section_overrun): New.
1401 * lto-section-out.c (append_block): Rename to ...
1402 (lto_append_block): ... this one; export.
1403 (lto_output_1_stream): Move lto lto-streamer.h
1404 (lto_output_data_stream): Update.
1405 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1406 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1409 2011-05-02 Richard Guenther <rguenther@suse.de>
1411 * tree.c (tree_code_counts): New global array.
1412 (record_node_allocation_statistics): Count individual tree codes.
1413 (dump_tree_statistics): Dump individual code stats.
1415 2011-05-01 Jan Hubicka <jh@suse.cz>
1417 * ipa-inline.c (caller_growth_limits): Fix thinko when
1418 looking for largest stack frame.
1419 * ipa-inline.h (dump_inline_summary): Declare.
1420 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1422 (dump_inline_summary): Export.
1423 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1425 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1427 * reginfo.c (memory_move_cost): Change rclass argument type form
1428 'enum reg_class' to reg_class_t.
1429 * reload.h (memory_move_cost): Update prototype.
1430 * postreload.c reload_cse_simplify_set): Change type dclass var to
1432 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1434 (ira_allocate_and_set_costs): Change aclass argument type form
1435 'enum reg_class' to reg_class_t.
1436 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1437 Change aclass argument type to reg_class_t.
1438 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1440 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1441 memory_move_cost call.
1443 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1444 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1445 Change type tmp var to reg_class_t.
1447 2011-04-30 Jan Hubicka <jh@suse.cz>
1449 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1450 inlining into function with flatten attribute.
1451 (want_inline_small_function_p): Be more realistic about inlining
1452 cold calls where callee size grows.
1454 2011-04-30 Jan Hubicka <jh@suse.cz>
1456 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1459 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1461 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1462 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1463 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1464 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1465 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1466 (print_operand): Rename to...
1467 (sparc_print_operand): ...this. Make static. Adjust
1468 sparc_print_operand function call.
1469 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1472 2011-04-30 Jan Hubicka <jh@suse.cz>
1475 * ipa-inline.c (early_inliner): Disable when doing late
1476 addition of function.
1478 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1480 * dwarf2out.c (get_address_mode): New inline.
1481 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1482 if not dwarf_strict emit
1483 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1484 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1485 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1486 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1487 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1488 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1489 mem_loc_descriptor callers.
1490 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1491 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1492 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1493 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1494 (base_types): New variable.
1495 (get_base_type_offset, calc_base_type_die_sizes,
1496 base_type_for_mode, mark_base_types, base_type_cmp,
1497 move_marked_base_types): New functions.
1498 (calc_die_sizes): Assert that die_offset is 0 or equal to
1500 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1501 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1502 callers. If not dwarf_strict, call mem_loc_descriptor even for
1503 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1504 (gen_subprogram_die): Don't give up on call site parameters
1505 with non-integral or large integral modes. Adjust
1506 mem_loc_descriptor callers.
1507 (prune_unused_types): Call prune_unused_types_mark on base_types
1509 (resolve_addr): Call mark_base_types.
1510 (dwarf2out_finish): Call move_marked_base_types.
1512 PR tree-optimization/48809
1513 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1515 (gen_inbound_check): Don't compute index_expr - range_min in utype
1516 again, instead reuse SSA_NAME initialized in build_arrays.
1517 Remove two useless gsi_for_stmt calls.
1519 2011-04-29 Jeff Law <law@redhat.com>
1521 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1523 2011-04-29 Martin Jambor <mjambor@suse.cz>
1525 * cgraph.h (cgraph_postorder): Remove declaration.
1526 * ipa-utils.h (ipa_free_postorder_info): Declare.
1527 (ipa_reverse_postorder): Likewise.
1528 * cgraphunit.c: Include ipa-utils.h.
1529 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1530 * ipa-inline.c: Include ipa-utils.h.
1531 (ipa_inline): Update call to ipa_reverse_postorder.
1532 * ipa-pure-const.c (propagate_pure_const): Update call to
1533 ipa_reduced_postorder and ipa_print_order. Call
1534 ipa_free_postorder_info to clean up.
1535 (propagate_nothrow): Likewise.
1536 * ipa-reference.c (propagate): Removed a useless call to
1537 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1538 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1539 * ipa.c: Include ipa-utils.h.
1540 (ipa_profile): Update call to ipa_reverse_postorder.
1541 (cgraph_postorder): Moved to...
1542 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1543 (ipa_utils_print_order): Renamed to ipa_print_order.
1544 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1546 (ipa_free_postorder_info): New function.
1547 * passes.c: Include ipa-utils.h.
1548 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1549 (ipa_write_summaries): Likewise.
1550 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1551 (cgraphunit.o): Likewise.
1553 (ipa-inline.o): Likewise.
1555 2011-04-29 Jan Hubicka <jh@suse.cz>
1557 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1558 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1559 * ipa-inline.h (clause_t): Turn into unsigned int.
1560 * ipa-inline-analysis.c (add_clause): Do more simplification.
1561 (and_predicates): Shortcut more cases.
1562 (predicates_equal_p): Move forward; check that clauses are properly
1564 (or_predicates): Shortcut more cases.
1565 (edge_execution_predicate): Rewrite as...
1566 (set_cond_stmt_execution_predicate): ... this function; handle
1567 __builtin_constant_p.
1568 (set_switch_stmt_execution_predicate): New .
1569 (compute_bb_predicates): New.
1570 (will_be_nonconstant_predicate): Update TODO.
1571 (estimate_function_body_sizes): Use compute_bb_predicates
1572 and free them later, always try to estimate if stmt is constant.
1573 (estimate_time_after_inlining, estimate_size_after_inlining):
1574 Gracefully handle optimized out edges.
1575 (read_predicate): Fix off by one error.
1577 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1579 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1581 2011-04-27 Xinliang David Li <davidxl@google.com>
1583 * tree-profile.c (init_ic_make_global_vars): Set
1584 tls attribute on ic vars.
1585 * coverage.c (coverage_end_function): Initialize
1586 function_list with zero.
1588 2011-04-29 Richard Guenther <rguenther@suse.de>
1590 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1591 for the type of the result.
1592 (fold_builtin_isascii): Likewise.
1593 (fold_builtin_toascii): Use integer_type_node where appropriate.
1594 (fold_builtin_logb): Likewise.
1595 (fold_builtin_frexp): Likewise.
1596 (fold_builtin_strstr): Likewise.
1597 (fold_builtin_strpbrk): Likewise.
1598 (fold_builtin_fputs): Likewise.
1599 (fold_builtin_sprintf): Likewise.
1600 (fold_builtin_snprintf): Likewise.
1601 (fold_builtin_printf): Likewise.
1602 (do_mpfr_remquo): Use a proper type for the assigned constant.
1603 (do_mpfr_lgamma_r): Likewise.
1604 * dwarf2out.c (resolve_one_addr): Use size_int.
1605 * except.c (init_eh): Likewise.
1606 (assign_filter_values): Use integer_type_node for filter values.
1607 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1609 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1610 for EH region numbers.
1611 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1612 for the shift amount.
1614 2011-04-29 Richard Guenther <rguenther@suse.de>
1616 * expr.h (expand_shift): Rename to ...
1617 (expand_variable_shift): ... this.
1618 (expand_shift): Take a constant shift amount.
1619 * expmed.c (expand_shift): Rename to ...
1620 (expand_variable_shift): ... this.
1621 (expand_shift): New wrapper around expand_variable_shift.
1622 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1623 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1624 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1625 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1626 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1627 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1628 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1629 emit_store_flag_1, emit_store_flag): Likewise.
1630 * builtins.c (expand_builtin_signbit): Likewise.
1631 * calls.c (load_register_parameters): Likewise.
1632 * function.c (assign_parm_setup_block): Likewise.
1633 * lower-subreg.c (resolve_shift_zext): Likewise.
1634 * optabs.c (widen_bswap, expand_abs_nojump,
1635 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1636 * spu/spu.c (spu_expand_extv): Likewise.
1637 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1639 2011-04-29 Richard Guenther <rguenther@suse.de>
1641 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1642 for the remapped region number.
1643 * predict.c (build_predict_expr): Use integer_type_node for the
1645 * fold-const.c (fold_binary_loc): Use integer_type_node for
1646 the shift amount. Use a proper type for the PLUS_EXPR operand.
1648 2011-04-29 Michael Matz <matz@suse.de>
1650 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1651 other trees that just builtins.
1652 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1654 2011-04-29 Richard Guenther <rguenther@suse.de>
1656 * tree-nested.c (get_trampoline_type): Use size_int.
1657 (get_nl_goto_field): Likewise.
1658 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1660 (lower_eh_constructs_2): Likewise.
1661 (lower_resx): Likewise.
1662 (lower_eh_dispatch): Likewise.
1663 * tree-mudflap.c (mf_build_string): Use size_int.
1664 (mudflap_register_call): Use integer_type_node for the flag.
1665 (mudflap_enqueue_constant): Use size_int.
1666 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1667 instead of rebuilding it.
1669 2011-04-29 Richard Guenther <rguenther@suse.de>
1671 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1672 Handle OBJ_TYPE_REF.
1673 (find_func_aliases_for_call): Use it more consistently.
1675 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1677 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1678 (rank_for_schedule): Use it.
1679 (schedule_block): Set it.
1681 2011-04-28 David Li <davidxl@google.com>
1683 * tree.c (crc32_string): Use crc32_byte.
1684 (crc32_byte): New function.
1685 * tree.h (crc32_byte): New function.
1686 * gcov.c (read_graph_file): Handle new cfg_cksum.
1687 (read_count_file): Ditto.
1688 * profile.c (instrument_values): Ditto.
1689 (get_exec_counts): Ditto.
1690 (read_profile_edge_counts): Ditto.
1691 (compute_branch_probabilities): Ditto.
1692 (compute_value_histograms): Ditto.
1693 (branch_prob): Ditto.
1694 (end_branch_prob): Ditto.
1695 * coverage.c (read_counts_file): Ditto.
1696 (get_coverage_counts): Ditto.
1697 (tree_coverage_counter_addr): Ditto.
1698 (coverage_checksum_string): Ditto.
1699 (coverage_begin_output): Ditto.
1700 (coverage_end_function): Ditto.
1701 (build_fn_info_type): Ditto.
1702 (build_fn_info_value): Ditto.
1703 * libgcov.c (gcov_exit): Ditto.
1704 * gcov-dump.c (tag_function): Ditto.
1705 (compute_checksum): Remove.
1707 2011-04-29 Alan Modra <amodra@gmail.com>
1709 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1710 unspec plus offset. Tidy macho code.
1712 2011-04-29 Martin Jambor <mjambor@suse.cz>
1714 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1715 node instead of a decl. Update all callers.
1716 * cgraph.h: Update declaration.
1718 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1720 PR tree-optimization/48765
1721 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1722 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1723 to indicate if loop aware SLP is being used. Scan the statements
1724 and update the vectorization factor according to the type of
1725 vectorization before statement analysis.
1726 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1727 pass it to vect_analyze_loop_operations.
1728 (vectorizable_reduction): Set number of copies to 1 in case of pure
1730 * tree-vect-stmts.c (vectorizable_conversion,
1731 vectorizable_assignment, vectorizable_shift,
1732 vectorizable_operation, vectorizable_type_demotion,
1733 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1735 (vectorizable_condition): Move the check that it is not SLP
1736 vectorization before the number of copies check.
1737 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1738 to vectorize the loop using SLP.
1740 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1743 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1746 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1748 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1749 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1750 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1751 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1752 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1754 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1755 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1756 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1757 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1758 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1759 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1761 * config/i386/linux.h (REG_NAME): Don't define.
1762 * config/i386/linux64.h (REG_NAME): Don't define.
1763 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1764 Undefine before defining.
1766 2011-04-28 Jan Hubicka <jh@suse.cz>
1768 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1769 nonconstant_names array.
1770 (estimate_function_body_sizes): Build nonconstant_names array; handle
1771 BUILT_IN_CONSTANT_P.
1773 2011-04-28 Richard Guenther <rguenther@suse.de>
1777 2011-04-28 Richard Guenther <rguenther@suse.de>
1779 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1780 as late as possible.
1782 2011-04-28 Richard Guenther <rguenther@suse.de>
1784 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1785 (debug_constraint): Do it here.
1786 (dump_constraints): And here.
1787 (rewrite_constraints): And here.
1788 (dump_constraint_edge): Remove.
1789 (dump_constraint_graph): Rewrite to produce DOT output.
1790 (solve_constraints): Build succ graph as late as possible.
1791 Dump constraint graphs before and after solving.
1793 2011-04-28 Richard Guenther <rguenther@suse.de>
1795 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1796 New function split out from ...
1797 (find_func_aliases): ... here. Call it.
1798 (find_func_aliases_for_call): Likewise.
1800 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1802 * internal-fn.h (internal_fn_name_array): Declare.
1803 (internal_fn_flags_array): Likewise.
1805 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1807 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1808 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1810 (ssemodefsuffix): Remove.
1811 (ssevecmodesuffix): New mode attribute.
1812 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1813 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1814 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1815 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1816 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1817 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1818 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1819 ssemodesuffix mode attribute.
1820 (float splitters): Use ssevecmodesuffix mode attribute.
1821 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1822 (sseinsmode): Rename from avxvecmode.
1823 (avxsizesuffix): Rename from avxmodesuffix.
1824 (sseintvecmode): Rename from avxpermvecmode.
1825 (ssedoublevecmode): Rename from ssedoublesizemode.
1826 (ssehalfvecmode): Rename from avxhalfvecmode.
1827 (ssescalarmode): Rename from avxscalarmode.
1828 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1829 templates for ssemodesuffix mode attribute.
1830 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1833 Adjust RTX patterns globally for renamed mode attributes.
1835 2011-04-27 Jan Hubcika <jh@suse.cz>
1837 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1838 * ipa-inline-analysis.c: Include alloc-pool.h.
1839 (edge_predicate_pool): New.
1840 (trye_predicate_p): New function
1841 (false_predicate_p): New function.
1842 (add_clause): Sanity check that false clauses are "optimized";
1843 never add clauses to predicate that is already known to be false.
1844 (and_predicate): Use flase_predicate_p.
1845 (evaulate_predicate): Rename to ...
1846 (evaluate_predicate): ... this one; update all callers; assert
1847 that false is not listed among possible truths.
1848 (dump_predicate): Use true_predicate_p.
1849 (account_size_time): Use false_predicate_p.
1850 (evaulate_conditions_for_edge): Rename to ...
1851 (evaluate_conditions_for_edge) ... this one.
1852 (edge_set_predicate): New function.
1853 (inline_edge_duplication_hook): Duplicate edge predicates.
1854 (inline_edge_removal_hook): Free edge predicates.
1855 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1856 (dump_inline_summary): Update.
1857 (estimate_function_body_sizes): Set edge predicates.
1858 (estimate_calls_size_and_time): Handle predicates.
1859 (estimate_callee_size_and_time): Update.
1860 (remap_predicate): Add toplev_predicate; update comment.
1861 (remap_edge_predicates): New function.
1862 (inline_merge_summary): Compute toplev predicate; update.
1863 (read_predicate): New function.
1864 (read_inline_edge_summary): Use it.
1865 (inline_read_section): Likewise.
1866 (write_predicate): New function.
1867 (write_inline_edge_summary): Use it.
1868 (inline_write_summary): Likewise.
1869 (inline_free_summary): Free alloc pool and edge summary vec.
1871 2011-04-27 Richard Guenther <rguenther@suse.de>
1873 * tree-ssa-structalias.c (changed_count): Remove.
1874 (changed): Use a bitmap.
1875 (unify_nodes): Adjust.
1876 (do_sd_constraint): Likewise.
1877 (do_ds_constraint): Likewise.
1878 (do_complex_constraint): Likewise.
1879 (solve_graph): Likewise.
1881 2011-04-27 Jan Hubicka <jh@suse.cz>
1883 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1885 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1887 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1888 (avx_vperm2f128_*_operand): Ditto.
1889 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1890 Use avx_vpermilp_parallel in insn condition.
1891 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1892 Use avx_vperm2f128_parallel in insn condition.
1894 2011-04-27 Richard Guenther <rguenther@suse.de>
1896 * Makefile.in (tree-ssa-structalias.o): Remove
1897 gt-tree-ssa-structalias.h dependency.
1898 (GTFILES): Remove tree-ssa-structalias.c.
1899 * tree.c (allocate_decl_uid): New function.
1900 (make_node_stat): Use it.
1901 (copy_node_stat): Likewise.
1902 * tree.h (allocate_decl_uid): Declare.
1903 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1904 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1905 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1906 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1907 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1908 (struct heapvar_map): Likewise.
1909 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1910 heapvar_insert): Likewise.
1911 (make_heapvar_for): Rename to ...
1912 (make_heapvar): ... this. Simplify.
1913 (fake_var_decl_obstack): New global var.
1914 (build_fake_var_decl): New function.
1915 (make_constraint_from_heapvar): Adjust.
1916 (handle_lhs_call): Likewise.
1917 (create_function_info_for): Likewise.
1918 (intra_create_variable_infos): Likewise.
1919 (init_alias_vars): Allocate fake_var_decl_obstack.
1920 (init_alias_heapvars, delete_alias_heapvars): Remove.
1921 (compute_points_to_sets): Do not call init_alias_heapvars.
1922 (ipa_pta_execute): Likewise.
1923 (delete_points_to_sets): Free fake_var_decl_obstack.
1925 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1927 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1928 (si_from_UTItype, si_to_UTItype): New functions.
1929 (__udivmodti4): Use them to implement type-punning.
1930 * config/spu/multi3.c (union qword_TItype): New data type.
1931 (si_from_TItype, si_to_TItype): New functions.
1932 (__multi3): Use them to implement type-punning.
1934 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1936 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1938 2011-04-27 Jan Hubicka <jh@suse.cz>
1940 * ipa-prop.c (function_insertion_hook_holder): New holder.
1941 (ipa_add_new_function): New function.
1942 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1943 Register/deregister holder.
1945 2011-04-27 Richard Guenther <rguenther@suse.de>
1947 PR tree-optimization/48772
1948 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1950 2011-04-27 Richard Guenther <rguenther@suse.de>
1952 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1953 TARGET_MEM_REF handling.
1955 2011-04-27 Nick Clifton <nickc@redhat.com>
1957 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1958 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1959 (REG_CLASS_NAMES): Likewise.
1960 (REG_CLASS_CONTENTS): Likewise.
1961 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1962 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1963 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1964 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1965 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1966 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1967 duplicate register classes.
1968 (frv_class_likely_spilled_p): Likewise.
1969 (frv_register_move_cost): Likewise.
1971 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1972 end of the regno_reg_class array.
1974 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1977 * c-typeck.c (build_binary_op): Don't wrap arguments if
1978 int_operands is true.
1980 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1983 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1984 targetm.calls.must_pass_in_stack for void type.
1986 2011-04-26 Jan Hubicka <jh@suse.cz>
1988 * cgraphbuild.c (build_cgraph_edges): Update call
1989 of cgraph_create_edge and cgraph_create_indirect_edge.
1990 * cgraph.c (cgraph_create_edge_including_clones,
1991 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1992 cgraph_update_edges_for_call_stmt_node): Do not take nest
1993 argument; do not initialize call_stmt_size/time.
1994 (dump_cgraph_node): Do not dump nest.
1995 (cgraph_clone_edge): Do not take loop_nest argument;
1996 do not propagate it; do not clone call_stmt_size/time.
1997 (cgraph_clone_node): Likewise.
1998 (cgraph_create_virtual_clone): Update.
1999 * cgraph.h (struct cgraph_edge): Remove
2000 call_stmt_size/call_stmt_time/loop_nest.
2001 (cgraph_create_edge, cgraph_create_indirect_edge,
2002 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2004 * tree-emutls.c (gen_emutls_addr): Update.
2005 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2006 loop_nest; handle indirect calls, too.
2007 (clone_inlined_nodes): Do not care about updating inline summaries.
2008 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2009 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2010 stream call_stmt_size/call_stmt_time/loop_nest.
2011 * ipa-inline.c (edge_badness): Update.
2012 (ipa_inline): dump summaries after inlining.
2013 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2015 (inline_edge_summary): New function.
2016 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2017 (inline_edge_removal_hook): Handle edge summaries.
2018 (inline_edge_duplication_hook): New hook.
2019 (inline_summary_alloc): Alloc hooks.
2020 (initialize_growth_caches): Do not register removal hooks.
2021 (free_growth_caches); Do not free removal hook.
2022 (dump_inline_edge_summary): New function.
2023 (dump_inline_summary): Use it.
2024 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2025 (inline_update_callee_summaries): New function.
2026 (inline_merge_summary): Use it.
2027 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2028 (read_inline_edge_summary): New function.
2029 (inline_read_section): Use it.
2030 (write_inline_edge_summary): New function.
2031 (inline_write_summary): Use it.
2032 (inline_free_summary): Free edge new holders.
2033 * tree-inline.c (copy_bb): Update.
2035 2011-04-26 Jason Merrill <jason@redhat.com>
2037 * tree-eh.c (lower_try_finally_switch): Create the label along with
2038 the CASE_LABEL_EXPR.
2040 2011-04-26 David S. Miller <davem@davemloft.net>
2041 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2043 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2044 * configure: Regenerate.
2046 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2049 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2051 (VEC_reduc): New code iterator and splitters for vector reduction.
2052 (VEC_reduc_name): Ditto.
2053 (VEC_reduc_rtx): Ditto.
2054 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2055 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2057 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2058 support for extracting SF on VSX.
2060 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2061 generating xscvspdp.
2062 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2063 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2064 double add, minimum, maximum vector reduction.
2065 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2066 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2067 optimize double vector reduction.
2068 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2070 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2072 * config/fr30/fr30.h (inhibit_libc): Don't define.
2073 * config/m32r/m32r-protos.h: Correct comment.
2074 * config/v850/v850.h (GHS_default_section_names,
2075 GHS_current_section_names): Use tree, not union tree_node *.
2077 2011-04-26 Xinliang David Li <davidxl@google.com>
2079 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2080 * c-family/c-opts.c (c_common_handle_option): Set
2081 warn_maybe_uninitialized.
2082 * opts.c (common_handle_option): Ditto.
2083 * common.opt: New option.
2084 * tree-ssa.c (warn_uninit): Add one more parameter.
2085 (warn_uninitialized_var): Pass warning code.
2086 * tree-flow.h: Interface change.
2089 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2091 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2092 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2093 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2095 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2097 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2098 * config/mips/mips.opt (mmips-tfile): Remove.
2100 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2101 mips-tdump reference to ...
2102 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2103 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2104 reference by Tru64 UNIX.
2106 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2109 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2110 is error_mark_node, set value to NULL.
2112 PR tree-optimization/48734
2113 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2114 if return value from maybe_fold_*_comparsions isn't something
2115 the code is prepared to handle.
2117 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2119 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2121 (ext_QIreg_nomode_operands): Remove.
2122 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2126 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2128 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2130 2011-04-26 Richard Guenther <rguenther@suse.de>
2132 * c-typeck.c (build_unary_op): Do not expand array-refs via
2133 pointer arithmetic. Only adjust qualifiers for function types.
2135 2011-04-26 Richard Guenther <rguenther@suse.de>
2138 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2139 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2140 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2141 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2143 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2145 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2146 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2147 * doc/extend.texi: Document __underlying_type.
2149 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2151 * config/rs6000/titan.md (automata_option "progress"): Remove.
2153 2011-04-25 Jeff Law <law@redhat.com>
2155 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2157 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2159 * system.h (ENUM_BITFIELD): Remove.
2161 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2162 Eric Botcazou <ebotcazou@adacore.com>
2164 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2165 for STORE_FLAG_VALUE==-1 case.
2167 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2170 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2171 LEGITIMATE_PIC_OPERAND_P.
2173 2011-04-24 Jan Hubicka <jh@suse.cz>
2175 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2177 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2178 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2179 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2180 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2181 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2182 Sanity check predicate length.
2183 (remap_predicate): Likewise; sanity check jump functions.
2184 (inline_read_section, inline_write_summary): Sanity check
2187 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2190 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2191 __is_literal_type, and __is_trivial; update throughout about
2192 possibly cv-qualified void types.
2194 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2196 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2197 testsuite and make it version agnostic.
2199 2011-04-22 Jan Hubicka <jh@suse.cz>
2201 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2203 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2206 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2207 to VOID_TYPE even around MODIFY_EXPR.
2209 2011-04-22 Mike Stump <mikestump@comcast.net>
2211 * gensupport.c (read_md_rtx): Fix typo in comment.
2212 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2215 2011-04-22 Jan Hubicka <jh@suse.cz>
2217 * gengtype.c (open_base_files): Add ipa-inline.h include.
2218 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2219 ipa-prop.c; update all uses.
2220 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2221 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2222 merge summary of inlined function into former caller.
2223 * ipa-inline.c (max_benefit): Remove.
2224 (edge_badness): Compensate for removal of benefits.
2225 (update_caller_keys): Use
2226 reset_node_growth_cache/reset_edge_growth_cache.
2227 (update_callee_keys): Likewise.
2228 (update_all_callee_keys): Likewise.
2229 (inline_small_functions): Do not collect max_benefit; do not reset
2230 estimated_growth; call free_growth_caches and initialize_growth_caches.
2231 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2232 struct size_time_entry): New structures.
2233 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2234 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2235 and estimated_growth.
2236 (edge_growth_cache_entry): New structure.
2237 (node_growth_cache, edge_growth_cache): New global vars.
2238 (estimate_growth): Turn into inline.
2239 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2240 initialize_growth_caches, free_growth_caches): Declare.
2241 (estimate_edge_growth): Rewrite.
2242 (estimate_edge_time): Implement as inline cache lookup.
2243 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2245 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2246 (NUM_CONDITIONS): New constant.
2247 (predicate_conditions): New enum.
2248 (IS_NOT_CONSTANT): New constant.
2249 (edge_removal_hook_holder): New var.
2250 (node_growth_cache, edge_growth_cache): New global vars.
2251 (true_predicate, single_cond_predicate, false_predicate,
2252 not_inlined_predicate, add_condition, add_clause, and_predicates,
2253 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2254 dump_clause, dump_predicate, account_size_time,
2255 evaulate_conditions_for_edge): New functions.
2256 (inline_summary_alloc): Move to heap.
2257 (inline_node_removal_hook): Clear condition and entry vectors.
2258 (inline_edge_removal_hook): New function.
2259 (initialize_growth_caches, free_growth_caches): New function.
2260 (dump_inline_summary): Update.
2261 (edge_execution_predicate): New function.
2262 (will_be_nonconstant_predicate): New function.
2263 (estimate_function_body_sizes): Compute BB and constantness predicates.
2264 (compute_inline_parameters): Do not clear estimated_growth.
2265 (estimate_edge_size_and_time): New function.
2266 (estimate_calls_size_and_time): New function.
2267 (estimate_callee_size_and_time): New function.
2268 (remap_predicate): New function.
2269 (inline_merge_summary): New function.
2270 (do_estimate_edge_time): New function based on...
2271 (estimate_edge_time): ... this one.
2272 (do_estimate_edge_growth): New function.
2273 (do_estimate_growth): New function based on....
2274 (estimate_growth): ... this one.
2275 (inline_analyze_function): Analyze after deciding on jump functions.
2276 (inline_read_section): New function.
2277 (inline_read_summary): Use it.
2278 (inline_write_summary): Write all the new data.
2279 * ipa-prop.c (ipa_get_param_decl_index): Export.
2280 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2281 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2283 (ipa_get_lattice): Move here from ipa-cp.c
2284 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2285 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2286 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2287 cgraph_edge_inlinable_p): Remove.
2288 * cgraphunit.c: Include ipainline.h
2289 (cgraph_process_new_functions): Update call of
2290 compute_inline_parameters.
2292 2011-04-22 Richard Guenther <rguenther@suse.de>
2294 * tree.c (build_int_cst): Properly create canonicalized integer
2296 (build_int_cst_type): Remove scary comments.
2298 2011-04-22 Xinliang David Li <davidxl@google.com>
2300 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2301 by default when -Wno-error is not specified.
2302 * opts-global.c (decode_options): Remove call to
2303 control_warning_options.
2305 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2307 PR tree-optimization/48717
2308 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2309 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2311 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2313 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2314 definition where used.
2316 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2319 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2320 TREE_STATIC variables declared inside of some OpenMP construct.
2322 2011-04-22 Martin Jambor <mjambor@suse.cz>
2325 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2327 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2330 * c-typeck.c (pop_init_level): Do not warn about initializing
2333 2011-04-22 Alan Modra <amodra@gmail.com>
2335 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2336 when returning call_cookie.
2337 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2338 pointers, to functions with no more vector args than the current
2339 function, and some non-local calls for ABI_V4.
2340 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2341 sibcall_nonlocal_aix64): Combine to ..
2342 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2343 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2344 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2345 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2346 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2348 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2349 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2350 sibcall_value_symbolic_64): Delete.
2352 2011-04-21 Xinliang David Li <davidxl@google.com>
2354 * cgraph.h: Remove pid.
2355 * cgraph.c: Remove pid.
2356 * value-prof.c (init_node_map): New function.
2357 (del_node_map): New function.
2358 (find_func_by_funcdef_no): New function.
2359 (gimple_ic_transform): Call new function.
2360 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2361 * function.c (get_last_funcdef_no): New function.
2362 * function.h (get_last_funcdef_no): New function.
2363 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2364 to libgcov function.
2365 (tree-profiling): Call node map init and delete function.
2367 2011-04-21 Ian Lance Taylor <iant@google.com>
2369 * godump.c (go_format_type): Use exported Go name for anonymous
2372 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2374 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2375 Call builtin_function_type_list instead of builtin_function_type.
2376 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2378 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2380 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2381 build_function_type_list instead of build_function_type.
2382 Delete variable `endlink'.
2384 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2386 * config/s390/s390.c (s390_init_builtins): Call
2387 build_function_type_list instead of build_function_type.
2389 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2391 * config/ia64/ia64.c (ia64_init_builtins): Call
2392 build_function_type_list instead of builtin_function_type.
2394 2011-04-21 Easwaran Raman <eraman@google.com>
2396 * cfgexpand.c (stack_var): Remove OFFSET...
2397 (add_stack_var): ...and its reference here...
2398 (expand_stack_vars): ...and here.
2399 (stack_var_cmp): Sort by descending order of size.
2400 (partition_stack_vars): Change heuristic.
2401 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2402 (dump_stack_var_partition): Add newline after each partition.
2404 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2405 Jeff Law <law@redhat.com>
2407 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2408 * gengtype.c (matching_file_name_substitute): Likewise.
2410 2011-04-21 Richard Guenther <rguenther@suse.de>
2413 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2415 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2417 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2419 2011-04-21 Richard Guenther <rguenther@suse.de>
2421 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2424 2011-04-21 Richard Guenther <rguenther@suse.de>
2426 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2427 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2428 Use DECL_P, not SSA_VAR_P.
2429 (ptr_derefs_may_alias_p): Likewise.
2430 (ptr_deref_may_alias_ref_p_1): Likewise.
2431 (decl_refs_may_alias_p): Likewise.
2432 (refs_may_alias_p_1): Likewise.
2433 (ref_maybe_used_by_call_p_1): Likewise.
2434 (call_may_clobber_ref_p_1): Likewise.
2435 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2436 are either MEM_REF or TARGET_MEM_REF.
2437 (indirect_refs_may_alias_p): Likewise.
2438 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2439 for MEM_EXPR of indirect calls.
2441 2011-04-21 Tristan Gingold <gingold@adacore.com>
2443 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2444 (dst_file_info_struct): Remove flen field.
2445 (lookup_filename): Remove code that set flen field.
2447 2011-04-21 Tristan Gingold <gingold@adacore.com>
2449 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2451 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2454 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2455 vec_extract and vec_concat for non-SSE4_1 targets.
2457 2011-04-21 Richard Guenther <rguenther@suse.de>
2459 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2462 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2464 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2466 (FILE): Don't undefine.
2468 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2470 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2472 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2474 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2475 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2476 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2478 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2479 definitions where used.
2480 * config/microblaze/microblaze.h (struct microblaze_args): Use
2481 rtx, not struct rtx_def *.
2482 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2484 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2485 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2486 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2487 not struct rtx_def *.
2488 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2490 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2492 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2494 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2496 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2497 operand_equal_p to compare DR_BASE_ADDRESSes.
2498 (vect_check_interleaving): Likewise.
2500 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2503 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2504 for all Neon struct constants.
2506 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2508 * target.def (legitimate_constant_p): New hook.
2509 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2510 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2511 * doc/tm.texi: Regenerate.
2512 * hooks.h (hook_bool_mode_rtx_true): Declare.
2513 * hooks.c (hook_bool_mode_rtx_true): Define.
2514 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2515 * calls.c (precompute_register_parameters): Replace uses of
2516 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2517 (emit_library_call_value_1): Likewise.
2518 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2519 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2520 * ira-costs.c (scan_one_insn): Likewise.
2521 * recog.c (general_operand, immediate_operand): Likewise.
2522 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2523 * reload1.c (init_eliminable_invariants): Likewise.
2525 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2527 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2528 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2530 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2531 * config/alpha/predicates.md (input_operand): Update call to
2532 alpha_legitimate_constant_p.
2534 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2535 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2536 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2537 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2538 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2539 (arm_legitimate_constant_p): New functions.
2540 (arm_cannot_force_const_mem): Make static.
2542 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2544 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2545 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2546 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2547 instead of bfin_legitimate_constant_p.
2548 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2549 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2551 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2553 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2555 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2556 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2557 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2558 (frv_legitimate_constant_p): Make static. Add a mode argument.
2560 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2561 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2562 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2564 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2565 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2566 * config/i386/i386.c (legitimate_constant_p): Rename to...
2567 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2569 (ix86_cannot_force_const_mem): Update accordingly.
2570 (ix86_legitimate_address_p): Likewise.
2571 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2572 * config/i386/i386.md: Update commentary.
2574 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2575 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2576 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2577 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2579 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2581 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2582 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2583 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2584 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2586 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2587 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2588 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2590 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2591 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2592 (m32r_legitimate_constant_p): New function.
2594 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2595 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2596 LEGITIMATE_CONSTANT_P.
2597 (LEGITIMATE_CONSTANT_P): Delete.
2598 * config/m68k/m68k.c (m68k_expand_prologue): Call
2599 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2600 (m68k_legitimate_constant_p): New function.
2601 * config/m68k/m68k.md: Update comments.
2603 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2604 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2605 (mcore_legitimate_constant_p): New function.
2607 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2608 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2609 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2610 Add a mode argument.
2611 (mep_legitimate_address): Update accordingly.
2612 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2614 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2616 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2617 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2618 static. Check OP's mode for VOIDmode.
2619 (microblaze_legitimate_constant_p): New function.
2620 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2622 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2623 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2624 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2625 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2626 * config/mips/predicates.md: Update comments.
2628 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2629 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2630 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2631 (mmix_legitimate_constant_p): Make static, return a bool, and take
2633 (mmix_print_operand_address): Update accordingly.
2635 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2637 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2638 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2639 static. Add a mode argument.
2640 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2642 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2644 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2645 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2646 (pa_legitimate_constant_p): New function.
2648 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2650 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2651 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2652 (pdp11_legitimate_constant_p): New function.
2654 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2655 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2656 (rs6000_legitimate_constant_p): New function.
2658 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2659 (rx_legitimate_constant_p): ...this.
2660 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2661 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2662 (rx_legitimate_constant_p): ...this.
2663 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2664 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2666 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2667 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2668 * config/s390/s390.c (legitimate_constant_p): Rename to...
2669 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2670 and add a mode argument.
2671 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2673 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2675 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2676 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2677 (sh_legitimate_constant_p): New function.
2679 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2680 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2681 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2682 (legitimate_constant_p): Rename to...
2683 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2685 (constant_address_p): Update accordingly.
2687 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2688 argument and return a bool.
2689 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2690 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2691 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2692 (spu_rtx_costs): Update accordingly.
2693 * config/spu/predicates.md (vec_imm_operand): Likewise.
2695 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2697 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2698 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2699 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2701 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2702 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2703 * config/vax/vax.c (legitimate_constant_p): Likewise.
2705 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2706 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2707 (xtensa_legitimate_constant_p): New function.
2709 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2711 * target.def (cannot_force_const_mem): Add a mode argument.
2712 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2713 * doc/tm.texi: Regenerate.
2714 * hooks.h (hook_bool_mode_rtx_false): Declare.
2715 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2716 (hook_bool_mode_const_rtx_true): Likewise.
2717 (hook_bool_mode_rtx_false): New function.
2718 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2719 to be non-VOID. Update call to cannot_force_const_mem.
2720 (find_reloads): Update accordingly.
2721 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2722 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2724 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2725 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2726 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2727 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2728 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2729 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2730 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2731 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2732 (m68k_cannot_force_const_mem): ...this new function.
2733 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2735 (mips_const_insns, mips_legitimize_const_move): Update calls.
2736 (mips_secondary_reload_class): Likewise.
2737 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2738 (pa_cannot_force_const_mem): ...this new function.
2739 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2740 (rs6000_cannot_force_const_mem): ...this new function.
2741 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2743 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2744 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2746 (xtensa_cannot_force_const_mem): ...this new function.
2748 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2750 * config/mips/mips.c (mips16_build_function_stub): Call
2751 build_function_type_list instead of build_function_type.
2752 (mips16_build_call_stub): Likewise.
2754 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2756 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2757 instead of build_function_type.
2759 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2761 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2762 instead of build_function_type.
2764 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2767 * config/i386/i386.md (insv): Change operand 0 constraint to
2768 "register_operand". Change operand 1 and 2 constraint to
2769 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2770 * config/i386/sse.md (sse4_1_pinsrb): Export.
2771 (sse2_pinsrw): Ditto.
2772 (sse4_1_pinsrd): Ditto.
2773 (sse4_1_pinsrq): Ditto.
2774 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2775 * config/i386/i386.c (ix86_expand_pinsr): New.
2777 2011-04-20 Easwaran Raman <eraman@google.com>
2779 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2780 containing union type only with -fstrict-aliasing.
2782 2011-04-20 Jim Meyering <meyering@redhat.com>
2784 Remove useless if-before-free tests.
2785 * calls.c (expand_call, save_area): Likewise.
2786 * cfgcleanup.c (try_forward_edges): Likewise.
2787 * collect2.c (collect_execute): Likewise.
2788 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2789 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2790 * coverage.c (coverage_checksum_string): Likewise.
2791 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2792 * cselib.c (cselib_init): Likewise.
2793 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2794 (df_set_clean_cfg): Likewise.
2795 * function.c (free_after_compilation): Likewise.
2796 * gcc.c (do_spec_1, main): Likewise.
2797 * gcov.c (create_file_names): Likewise.
2798 * gensupport.c (identify_predicable_attribute): Likewise.
2799 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2800 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2801 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2802 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2803 * ipa-pure-const.c (local_pure_const): Likewise.
2804 * ipa-reference.c (propagate): Likewise.
2805 * ira-costs.c (free_ira_costs): Likewise.
2806 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2807 * matrix-reorg.c (mat_free): Likewise.
2808 * prefix.c (get_key_value): Likewise.
2809 * profile.c (compute_value_histograms): Likewise.
2810 * reload1.c (free_reg_equiv): Likewise.
2811 * sched-deps.c (free_deps): Likewise.
2812 * sel-sched-ir.c (fence_clear): Likewise.
2813 * sese.c (set_rename, if_region_set_false_region): Likewise.
2814 * tree-data-ref.c (free_rdg): Likewise.
2815 * tree-eh.c (lower_try_finally): Likewise.
2816 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2817 * tree-ssa-live.c (delete_var_map): Likewise.
2818 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2819 * tree-ssa-pre.c (phi_trans_add): Likewise.
2821 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2823 PR tree-optimization/48611
2824 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2825 beyond ERT_MUST_NOT_THROW region.
2827 2011-04-20 Catherine Moore <clm@codesourcery.com>
2829 * config/mips/mips.opt (mfix-24k): New.
2830 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2831 * config/mips/mips.md (length): Increase by 4 for stores if
2833 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2834 all noreorder if fixing 24K errata.
2835 * doc/invoke.texi: Document mfix-24k.
2837 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2839 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2840 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2842 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2844 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2845 (const_ok_for_op): ... to here.
2847 2011-04-20 Kai Tietz <ktietz@redhat.com>
2849 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2850 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2852 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2854 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2856 2011-04-20 Richard Guenther <rguenther@suse.de>
2858 PR tree-optimization/47892
2859 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2862 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2864 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2866 2011-04-20 Tristan Gingold <gingold@adacore.com>
2868 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2870 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2874 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2875 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2876 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2877 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2878 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2880 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2883 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2884 (avr_asm_named_section, avr_asm_output_aligned_common,
2885 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2886 New functions to update...
2887 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2888 (avr_asm_init_sections): Overwrite section callbacks for
2889 data_section, bss_section.
2890 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2892 (avr_file_end): ...here.
2894 2011-04-20 Richard Guenther <rguenther@suse.de>
2897 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2898 objects and types here. Adjust for their offset before comparing.
2900 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2902 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2905 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2907 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2908 (GIMPLE_H): Include $(INTERNAL_FN_H).
2909 (OBJS-common): Add internal-fn.o.
2910 (internal-fn.o): New rule.
2911 * internal-fn.def: New file.
2912 * internal-fn.h: Likewise.
2913 * internal-fn.c: Likewise.
2914 * gimple.h: Include internal-fn.h.
2915 (GF_CALL_INTERNAL): New gf_mask.
2916 (gimple_statement_call): Put fntype into a union with a new
2918 (gimple_build_call_internal): Declare.
2919 (gimple_build_call_internal_vec): Likewise.
2920 (gimple_call_same_target_p): Likewise.
2921 (gimple_call_internal_p): New function.
2922 (gimple_call_internal_fn): Likewise.
2923 (gimple_call_fntype): Return null for internal calls.
2924 (gimple_call_set_fntype): Assert that the function is not internal.
2925 (gimple_call_set_fn): Likewise.
2926 (gimple_call_set_fndecl): Likewise.
2927 (gimple_call_set_internal_fn): New function.
2928 (gimple_call_addr_fndecl): Handle null functions.
2929 (gimple_call_return_type): Likewise null types.
2930 * gimple.c (gimple_build_call_internal_1): New function.
2931 (gimple_build_call_internal): Likewise.
2932 (gimple_build_call_internal_vec): Likewise.
2933 (gimple_call_same_target_p): Likewise.
2934 (gimple_call_flags): Handle calls to internal functions.
2935 (gimple_call_fnspec): New function.
2936 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2937 (gimple_has_side_effects): Handle null functions.
2938 (gimple_rhs_has_side_effects): Likewise.
2939 (gimple_call_copy_skip_args): Handle calls to internal functions.
2940 * cfgexpand.c (expand_call_stmt): Likewise.
2941 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2942 * gimple-fold.c (gimple_fold_call): Handle null functions.
2943 (gimple_fold_stmt_to_constant_1): Don't fold
2944 calls to internal functions.
2945 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2947 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2948 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2949 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2950 (do_warn_unused_result): Likewise.
2951 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2952 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2953 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2954 the target of a call.
2955 (initialize_hash_element): Update accordingly.
2956 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2957 (iterative_hash_hashable_expr): Handle calls to internal functions.
2958 (print_expr_hash_elt): Likewise.
2959 * tree-ssa-pre.c (can_value_number_call): Likewise.
2960 (eliminate): Handle null functions.
2961 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2962 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2963 (find_func_aliases): Likewise.
2964 * value-prof.c (gimple_ic_transform): Likewise.
2965 (gimple_indirect_call_to_profile): Likewise.
2966 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2967 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2969 2011-04-19 Jan Hubicka <jh@suse.cz>
2971 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2972 * ipa-inline.c (inline_small_functions): Compute summaries first,
2973 populate heap later.
2975 2011-04-19 Jan Hubicka <jh@suse.cz>
2977 * cgraph.h (save_inline_function_body): Remove.
2978 * ipa-inline-transform.c: New file, broke out of...
2979 * ipa-inline.c: ... this one; Update toplevel comment.
2980 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2982 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2983 (cgraph_mark_inline_edge): Rename to inline_call; move to
2984 ipa-inline-transform.c.
2985 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2986 move to ipa-inline-transform.c
2987 (recursive_inlining, inline_small_functions, flatten_function,
2988 ipa_inline, inline_always_inline_functions,
2989 early_inline_small_functions): Update.
2990 (inline_transform): Move to ipa-inline-transform.c.
2991 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2993 * Makefile.in (ipa-inline-transform.o): New file.
2994 * cgraphunit.c (save_inline_function_body): Move to
2995 ipa-inline-transform.c
2997 2011-04-19 DJ Delorie <dj@redhat.com>
2999 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3000 registers if we already know there aren't any.
3001 (m32c_emit_epilogue): Don't emit a barrier here.
3002 (m32c_emit_eh_epilogue): Likewise.
3003 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3004 operands at expand time.
3005 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3007 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3008 duplicates. Provide aliases instead.
3009 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3010 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3013 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3015 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3016 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3017 (general_or_i64_p, sparc_register_move_cost): New function.
3019 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3021 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3022 Add lynx, mipssde. Sort table.
3024 2011-04-19 Xinliang David Li <davidxl@google.com>
3026 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3029 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3032 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3033 is a SUBREG with non-MODE_INT mode inside of it.
3035 2011-04-19 Martin Jambor <mjambor@suse.cz>
3037 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3038 also according to actual contants.
3039 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3040 (gimple_fold_call): Use it.
3041 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3043 2011-04-19 Martin Jambor <mjambor@suse.cz>
3045 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3046 non-pointer assignments.
3048 2011-04-19 Martin Jambor <mjambor@suse.cz>
3050 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3051 account anc_offset and otr_type from the indirect edge info.
3052 * ipa-prop.c (get_ancestor_addr_info): New function.
3053 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3054 get_ancestor_addr_info, call it.
3055 (ipa_note_param_call): Do not initialize information about polymorphic
3056 calls, return the indirect call graph edge. Remove the last
3057 parameter, adjust all callers.
3058 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3059 parameters. Initialize polymorphic information in the indirect edge.
3061 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3064 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3065 the types if they have different enumeration identifiers.
3067 2011-04-19 Jan Hubicka <jh@suse.cz>
3069 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3070 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3071 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3072 (optimize_function_for_size_p) ... here.
3074 2011-04-19 Richard Guenther <rguenther@suse.de>
3077 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3080 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3082 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3083 if DECL_NO_INLINE_WARNING_P is set on the function.
3085 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3088 * reload1.c (inc_for_reload): Return void. All callers changed.
3089 (emit_input_reload_insns): Don't try to delete previous output
3090 reloads to a register, or record spill_reg_store for autoincs.
3092 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3094 * gengtype.h: Updated copyright year.
3095 (struct input_file_st): Add inpisplugin field.
3096 (type_fileloc): New function.
3098 (write_typed_struct_alloc_def): Add gcc_assert.
3099 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3100 (write_typed_alloc_defns): Don't output for plugin files.
3101 (input_file_by_name): Clear inpisplugin field.
3102 (main): Set inpisplugin field for plugin files.
3104 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3106 * gengtype-state.c (string_eq): New.
3107 (read_state): Use string_eq instead of strcmp when creating the
3110 2011-04-19 Wei Guozhi <carrot@google.com>
3113 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3114 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3116 * config/arm/constraints.md (Uu): New constraint.
3117 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3119 2011-04-19 Tristan Gingold <gingold@adacore.com>
3121 * config.gcc (-*-*-*vms): Added.
3122 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3124 * config/vms/vms-ld.c: New file.
3125 * config/vms/vms-ar.c: New file.
3126 * config/vms/t-vmsnative: New file.
3128 2011-04-18 Xinliang David Li <davidxl@google.com>
3130 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3132 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3135 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3136 if TREE_TYPE (v) is non-NULL.
3138 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3139 gimple_get_virt_mehtod_for_binfo.
3140 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3141 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3143 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3145 2011-04-18 Michael Matz <matz@suse.de>
3146 Steve Ellcey <sje@cup.hp.com>
3148 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3149 use its mode as source mode if it isn't VOIDmode.
3151 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3153 * doc/passes.texi: Fill crossref nodes.
3155 2011-04-18 Jim Meyering <meyering@redhat.com>
3157 Fix doubled-word typos in comments and strings
3158 * config/alpha/vms-unwind.h: s/for for/for/
3159 * config/arm/unwind-arm.h: Likewise.
3160 * config/microblaze/microblaze.c: Likewise.
3161 * config/sh/constraints.md: s/in in/in/
3162 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3164 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3166 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3167 (AVX_FLOAT_MODE_P): Ditto.
3168 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3169 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3170 (AVX_VEC_FLOAT_MODE_P): Ditto.
3171 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3172 (UNSPEC_MASKSTORE): Ditto.
3173 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3174 Merge from <sse>_movmsk<ssemodesuffix> and
3175 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3176 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3178 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3179 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3180 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3182 2011-04-18 Jan Hubicka <jh@suse.cz>
3184 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3186 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3187 (want_inline_function_called_once_p): Break out the logic from
3189 (edge_badness): Ensure that profile is not misupdated.
3190 (lookup_recursive_calls): Prioritize by call frequencies.
3191 (inline_small_functions): Move program size estimates here;
3192 actually process whole queue even when unit growth has been
3193 met. (to properly compute inline_failed reasons and for the
3194 case unit size decrease.) Revisit comments on recursive inlining.
3195 (ipa_inline): Remove unit summary code; first inline hot calls
3196 of functions called once, cold calls next.
3197 (order, nnodes): Remove unused variables.
3198 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3199 (GTFILES): Remove ipa-inline.c
3200 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3202 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3204 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3206 2011-04-18 Jie Zhang <jie@codesourcery.com>
3207 Richard Earnshaw <rearnsha@arm.com>
3209 * arm.c (neon_builtin_type_bits): Remove.
3210 (typedef enum neon_builtin_mode): New.
3211 (T_MAX): Don't define.
3212 (typedef enum neon_builtin_datum): Remove bits, codes[],
3213 num_vars and base_fcode. Add mode, code and fcode.
3214 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3215 VAR10): Change accordingly.
3216 (neon_builtin_data[]): Change accordingly
3217 (arm_init_neon_builtins): Change accordingly.
3218 (neon_builtin_compare): Remove.
3219 (locate_neon_builtin_icode): Remove.
3220 (arm_expand_neon_builtin): Change accordingly.
3222 * arm.h (enum arm_builtins): Move to ...
3223 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3225 * arm.c (arm_builtin_decl): Declare.
3226 (TARGET_BUILTIN_DECL): Define.
3227 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3228 (arm_builtin_decls[]): New.
3229 (arm_init_neon_builtins): Store builtin declarations in
3230 arm_builtin_decls[].
3231 (arm_init_tls_builtins): Likewise.
3232 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3233 (arm_builtin_decl): New.
3235 2011-04-18 Richard Guenther <rguenther@suse.de>
3237 * tree.c (upper_bound_in_type): Build properly canonicalized
3239 (lower_bound_in_type): Likewise.
3241 2011-04-18 Richard Guenther <rguenther@suse.de>
3243 * gimple.h (gimple_call_addr_fndecl): New function.
3244 (gimple_call_fndecl): Use it.
3245 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3247 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3248 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3250 2011-04-18 Richard Guenther <rguenther@suse.de>
3253 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3255 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3258 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3259 DECL_IN_CONSTANT_POOL without RTL.
3261 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3262 Ira Rosen <ira.rosen@linaro.org>
3265 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3266 to match neon_vzip/vuzp/vtrn_internal.
3267 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3268 outputs explicitly dependent on both inputs.
3269 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3271 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3273 PR tree-optimization/48616
3274 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3275 whether the shift is by scalar or vector based on whether all SLP
3276 scalar stmts have the same rhs.
3278 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3280 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3283 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3285 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3288 2011-04-17 Jan Hubicka <jh@suse.cz>
3290 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3291 * cgrpahunit.c (cgraph_finalize_function): Do not set
3292 finalized_by_frontend.
3293 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3294 finalized_by_frontend.
3296 2011-04-17 Jan Hubicka <jh@suse.cz>
3298 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3299 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3300 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3301 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3303 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3305 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3307 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3310 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3311 is non-null before accessing it.
3312 (input_cgraph): Remove trailing spaces.
3314 2011-04-17 Revital Eres <revital.eres@linaro.org>
3316 * params.def (sms-min-sc): New param flag.
3317 * modulo-sched.c (sms_schedule): Use it.
3318 * doc/invoke.texi (sms-min-sc): Document it.
3320 2011-04-17 Jan Hubicka <jh@suse.cz>
3322 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3323 present, also set gimple_call_set_cannot_inline.
3324 * ipa-inline.c: Update toplevel comment.
3326 (cgraph_clone_inlined_nodes): Fix linebreaks.
3327 (cgraph_check_inline_limits): Restructure to ...
3328 (caller_growth_limits): ... this one; be more tolerant
3329 on growth in nested inline chains; add explanatory comment;
3330 fix stack accounting thinko introduced by previous patch.
3331 (cgraph_default_inline_p): Remove.
3332 (report_inline_failed_reason): New function.
3333 (can_inline_edge_p): New function.
3334 (can_early_inline_edge_p): New function.
3335 (leaf_node_p): Move upwards in file.
3336 (want_early_inline_function_p): New function.
3337 (want_inline_small_function_p): New function.
3338 (want_inline_self_recursive_call_p): New function.
3339 (cgraph_edge_badness): Rename to ...
3340 (edge_badness) ... this one; fix linebreaks.
3341 (update_edge_key): Update call of edge_baddness; add
3342 detailed dump about queue updates.
3343 (update_caller_keys): Use can_inline_edge_p and
3344 want_inline_small_function_p.
3345 (cgraph_decide_recursive_inlining): Rename to...
3346 (recursive_inlining): Use can_inline_edge_p and
3347 want_inline_self_recursive_call_p; simplify and remove no longer
3349 (cgraph_set_inline_failed): Remove.
3350 (add_new_edges_to_heap): Use can_inline_edge_p and
3351 want_inline_small_function_p.
3352 (cgraph_decide_inlining_of_small_functions): Rename to ...
3353 (inline_small_functions): ... this one; cleanup; use
3354 can/want predicates; cleanup debug ouput; work edges till fibheap
3355 is exhausted and do not stop once unit growth is reached; remove
3356 later loop processing remaining edges.
3357 (cgraph_flatten): Rename to ...
3358 (flatten_function): ... this one; use can_inline_edge_p
3359 and can_early_inline_edge_p predicates.
3360 (cgraph_decide_inlining): Rename to ...
3361 (ipa_inline): ... this one; remove unreachable nodes before
3362 inlining functions called once; simplify the pass.
3363 (cgraph_perform_always_inlining): Rename to ...
3364 (inline_always_inline_functions): ... this one; use
3365 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3366 (cgraph_decide_inlining_incrementally): Rename to ...
3367 (early_inline_small_functions): ... this one; simplify
3368 using new predicates; cleanup; make dumps prettier.
3369 (cgraph_early_inlining): Rename to ...
3370 (early_inliner): newer inline regular functions into always-inlines;
3371 fix updating of call stmt summaries.
3372 (pass_early_inline): Update for new names.
3373 (inline_transform): Fix formating.
3374 (gate_cgraph_decide_inlining): Rename to ...
3375 (pass_ipa_inline): ... this one.
3376 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3377 * ipa-inline-analysis.c (dump_inline_summary): Update.
3378 (compute_inline_parameters): Do not compute disregard_inline_limits;
3379 look for mismatching arguments.
3380 (estimate_growth): Fix handlig of non-trivial self recursion.
3381 (inline_read_summary): Do not read info->disregard_inline_limits.
3382 (inline_write_summary): Do not write info->disregard_inline_limits.
3383 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3384 and move all checks into can_inline_edge_p predicate; re-enable code
3385 comparing optimization levels.
3386 (expand_call_inline): Do not test inline_forbidden_into_p.
3387 * Makefile.in (ipa-inline.o): Update arguments.
3389 2011-04-17 Revital Eres <revital.eres@linaro.org>
3391 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3393 2011-04-17 Revital Eres <revital.eres@linaro.org>
3395 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3397 2011-04-17 Michael Matz <matz@suse.de>
3399 PR tree-optimization/48622
3401 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3402 in same order as they're written.
3404 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3406 * config/pa/predicates.md: Reorganize and simplify predicates.
3407 Eliminate duplicate code checks.
3408 (arith_operand): Rename to arith14_operand
3409 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3410 * config/pa/pa.md: Use renamed operands.
3411 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3412 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3413 arith11_operand, adddi3_operand, indexed_memory_operand,
3414 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3415 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3416 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3417 move_dest_operand, move_src_operand, prefetch_cc_operand,
3418 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3419 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3420 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3421 div_operand, int5_operand, movb_comparison_operator,
3422 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3423 arith_double_operand, ireg_operand, lhs_lshift_operand,
3424 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3425 integer_store_memory_operand): Likewise.
3426 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3427 (integer_store_memory_operand, read_only_operand,
3428 function_label_operand, borx_reg_operand,
3429 non_hard_reg_operand): Likewise.
3430 (eq_neq_comparison_operator): Delete unused operator.
3431 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3432 function_label_operand.
3433 (emit_move_sequence): Likewise.
3435 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3437 * config/i386/sse.md (sseunpackmode): New mode attribute.
3438 (ssepackmode): Ditto.
3439 (vec_pack_trunc_<mode>): Macroize expander from
3440 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3441 (vec_unpacks_lo_<mode>): Macroize expander from
3442 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3443 (vec_unpacks_hi_<mode>): Macroize expander from
3444 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3445 (vec_unpacku_lo_<mode>): Macroize expander from
3446 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3447 (vec_unpacku_hi_<mode>): Macroize expander from
3448 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3449 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3450 ix86_expand_sse4_unpack.
3451 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3453 2011-04-16 Jan Hubicka <jh@suse.cz>
3455 * cgraphbuild.c: Include ipa-inline.h.
3456 (reset_inline_failed): Use initialize_inline_failed.
3457 * cgraph.c: Include ipa-inline.h.
3458 (cgraph_create_node_1): Do not initialize estimated_growth.
3459 (initialize_inline_failed): More to ipa-inline-analysis.c
3460 (dump_cgraph_node): Do not dump inline flags.
3461 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3462 and disregard_inline_limits flags.
3463 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3464 time, size, estimated_growth.
3465 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3467 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3468 DECL_DISREGARD_INLINE_LIMITS.
3469 (cgraph_analyze_function): Do not initialize
3470 node->local.disregard_inline_limits.
3471 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3472 inlinable, versionable and disregard_inline_limits.
3473 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3474 cgraph_check_inline_limits, cgraph_default_inline_p,
3475 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3476 add_new_edges_to_heap): Update.
3477 (cgraph_decide_inlining_of_small_function): Update; set
3478 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3479 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3480 cgraph_decide_inlining_incrementally): Update.
3481 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3482 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3483 time, size and estimated_growth parameters.
3484 (estimate_edge_growth): Update.
3485 (initialize_inline_failed): Declare.
3486 * ipa-split.c: Include ipa-inline.h
3487 (execute_split_functions): Update.
3488 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3489 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3490 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3491 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3492 estimated_growth to INT_MIN.
3493 (inline_node_duplication_hook): Likewise.
3494 (dump_inline_summary): Dump new fields.
3495 (compute_inline_parameters): Update.
3496 (estimate_edge_time, estimate_time_after_inlining,
3497 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3498 inline_write_summary):
3499 (initialize_inline_failed): Move here from cgraph.c.
3500 * tree-sra.c: Include ipa-inline.h.
3501 (ipa_sra_preliminary_function_checks): Update.
3502 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3505 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3507 * config/i386/sse.md (V16): New mode iterator.
3509 (AVXMODEQI, AVXMODEDI): Remove.
3510 (sse2, sse3): New mode attribute.
3511 (mov<mode>): Use V16 mode iterator.
3512 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3513 (push<mode>1): Use V16 mode iterator.
3514 (movmisalign<mode>): Ditto.
3515 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3516 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3517 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3518 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3519 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3520 avx_movdqu<avxmodesuffix>.
3521 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3522 *avx_movdqu<avxmodesuffix>.
3523 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3524 avx_lddqu<avxmodesuffix>.
3525 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3526 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3527 avx_movnt<AVXMODEDI:mode>.
3528 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3529 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3531 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3534 * haifa-sched.c (prune_ready_list, schedule_block): Use
3535 sched_pressure_p rather than flag_sched_pressure.
3537 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3539 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3540 cgraph_get_node instead of cgraph_get_create_node.
3542 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3544 * cfgexpand.c (expand_debug_expr): Use
3545 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3547 2011-04-15 Michael Matz <matz@suse.de>
3549 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3550 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3551 * function.c (gimplify_parameters): Ditto.
3552 * gimplify.c (gimplify_vla_decl): Ditto.
3554 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3555 (gimple_call_set_alloca_for_var): New inline function.
3556 (gimple_call_alloca_for_var_p): Ditto.
3557 * gimple.c (gimple_build_call_from_tree): Remember
3558 CALL_ALLOCA_FOR_VAR_P state.
3559 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3561 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3562 calls if they were for VLA objects.
3564 2011-04-15 Martin Jambor <mjambor@suse.cz>
3566 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3569 2011-04-15 Martin Jambor <mjambor@suse.cz>
3572 * tree-emutls.c (lower_emutls_function_body): Call
3573 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3576 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3578 * c-decl.c (detect_field_duplicates): Call
3579 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3581 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3583 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3584 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3585 * ipa-pure-const.c (check_stmt): Call it.
3586 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3588 2011-04-15 Richard Guenther <rguenther@suse.de>
3590 PR tree-optimization/48290
3591 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3592 Properly decide inhibiting propagation based on the valueized
3593 operand. Do loop-closed SSA form preserving here ...
3594 (init_copy_prop): ... not here.
3596 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3599 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3600 (*ieee_smax<mode>3): Likewise.
3602 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3604 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3605 Replace match_operand with match_dup for the third operand in
3608 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3610 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3611 to track processing of conditionals. Update all callers.
3612 (try_combine, simplify_if_then_else): Update.
3614 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3616 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3619 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3621 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3622 instead of match_operand for operand 3.
3624 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3626 * recog.h (insn_operand_data): Add an "allows_mem" field.
3627 * genoutput.c (output_operand_data): Initialize it.
3628 * optabs.c (maybe_legitimize_operand_same_code): New function.
3629 (maybe_legitimize_operand): Use it when matching the original
3632 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3634 * gimplify.c: Fix issues in comments throughout.
3635 (voidify_wrapper_expr): Fix long line.
3636 (build_stack_save_restore): Likewise.
3637 (gimplify_loop_expr): Likewise.
3638 (gimplify_compound_lval): Likewise.
3639 (gimplify_init_ctor_eval): Likewise.
3640 (gimplify_modify_expr_rhs): Likewise.
3641 (omp_notice_threadprivate_variable): Likewise.
3643 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3645 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3646 original one if this is not a builtin function.
3648 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3651 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3652 offset it as needed based on top 2 bits in operands[3], change
3653 MEM mode to SFmode and mask those 2 bits away from operands[3].
3655 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3657 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3658 change from objc_declare_protocols() to objc_declare_protocol().
3660 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3662 * config/i386/sse.md (sse4_1): New mode attribute.
3663 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3664 avx_blend<ssemodesuffix><avxmodesuffix> and
3665 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3666 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3667 avx_blendv<ssemodesuffix><avxmodesuffix> and
3668 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3669 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3670 avx_dp<ssemodesuffix><avxmodesuffix> and
3671 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3672 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3673 (sse4_1_packusdw): Merge with *avx_packusdw.
3674 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3675 (sse4_1_pblendw): Merge with *avx_pblendw.
3676 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3677 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3678 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3680 (sse4_1_round<ssescalarmodesuffix>): Merge with
3681 *avx_round<ssescalarmodesuffix>.
3682 (aesenc): Merge with *avx_aesenc.
3683 (aesenclast): Merge with *avx_aesenclast.
3684 (aesdec): Merge with *avx_aesdec.
3685 (aesdeclast): Merge with *avx_aesdeclast.
3686 (pclmulqdq): Merge with *pclmulqdq.
3687 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3689 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3691 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3694 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3695 (align_local_variable): This. Update DECL_ALIGN.
3696 (add_stack_var): Updated.
3697 (expand_one_stack_var): Likewise.
3699 2011-04-14 Richard Guenther <rguenther@suse.de>
3701 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3703 (dse_initialize_block_local_data, dse_leave_block,
3704 record_voperand_set, get_stmt_uid): Likewise.
3705 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3706 (dse_optimize_stmt): Remove voperand set handling code.
3707 Simplify and improve to handle any kind of killing stmt.
3708 (dse_record_phi): Remove.
3709 (dse_enter_block): Simplify.
3710 (tree_ssa_dse): Likewise.
3711 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3713 2011-04-14 Jan Hubicka <jh@suse.cz>
3715 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3716 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3717 (cgraph_local_info): Remove inline_summary.
3718 * ipa-cp.c: Include ipa-inline.h.
3719 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3720 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3722 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3723 (input_overwrite_node): Do not set inline summary.
3724 (input_node): Do not stream inline summary.
3725 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3726 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3727 growth; we do not have inline parameters computed for that anyway.
3728 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3729 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3730 (inline_summary_t): New type and VECtor.
3731 (debug_inline_summary, dump_inline_summaries): Declare.
3732 (inline_summary): Use VOCtor.
3733 (estimate_edge_growth): Kill hack computing call stmt size directly.
3734 * lto-section-in.c (lto_section_name): Add inline section.
3735 * ipa-inline-analysis.c: Include lto-streamer.h
3736 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3737 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3738 (inline_summary_vec): Define.
3739 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3740 dump_inline_summaries): New functions.
3741 (estimate_function_body_sizes): Properly compute size/time of outgoing
3743 (compute_inline_parameters): Alloc inline_summary; do not compute
3744 size/time of incomming calls.
3745 (estimate_edge_time): Avoid missing time summary hack.
3746 (inline_read_summary): Read inline summary info.
3747 (inline_write_summary): Write inline summary info.
3748 (inline_free_summary): Free all hooks and inline summary vector.
3749 * lto-streamer.h: Add LTO_section_inline_summary section.
3750 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3751 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3753 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3755 * tree-vectorizer.h (vect_strided_store_supported): Add a
3756 HOST_WIDE_INT argument.
3757 (vect_strided_load_supported): Likewise.
3758 (vect_permute_store_chain): Return void.
3759 (vect_transform_strided_load): Likewise.
3760 (vect_permute_load_chain): Delete.
3761 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3762 count argument. Check that the count is a power of two.
3763 (vect_strided_load_supported): Likewise.
3764 (vect_permute_store_chain): Return void. Update after above changes.
3765 Assert that the access is supported.
3766 (vect_permute_load_chain): Likewise.
3767 (vect_transform_strided_load): Return void.
3768 * tree-vect-stmts.c (vectorizable_store): Update calls after
3769 above interface changes.
3770 (vectorizable_load): Likewise.
3771 (vect_analyze_stmt): Don't check for strided powers of two here.
3773 2011-04-14 Richard Guenther <rguenther@suse.de>
3775 PR tree-optimization/48590
3776 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3777 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3778 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3779 BUILT_IN_STACK_SAVE.
3780 * tree-ssa-dce.c (propagate_necessity): Handle
3781 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3783 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3785 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3788 2011-04-14 Richard Guenther <rguenther@suse.de>
3790 * tree.h (get_object_alignment_1): Declare.
3791 * builtins.c (get_object_alignment_1): Split out worker from ...
3792 (get_object_alignment): ... here.
3793 * fold-const.c (get_pointer_modulus_and_residue): Use
3794 get_object_alignment_1.
3796 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3798 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3800 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3801 parameter. Generalise code to handle arrays as well as vectors.
3802 (vect_setup_realignment): Update accordingly.
3803 * tree-vect-stmts.c (vectorizable_store): Likewise.
3804 (vectorizable_load): Likewise.
3806 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3808 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3809 within the per-copy loop.
3811 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3813 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3816 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3818 * doc/options.texi (Negative): Explicitly mention that the
3819 Negative chain must be circular.
3821 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3823 * function.h (block_chainon): Declare.
3824 * function.c (block_chainon): Define.
3826 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3827 Eric Weddington <eric.weddington@atmel.com>
3828 Georg-Johann Lay <avr@gjlay.de>
3830 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3832 (avr_init_builtins, avr_expand_builtin,
3833 avr_expand_delay_cycles, avr_expand_unop_builtin,
3834 avr_expand_binop_builtin ): New functions.
3835 (avr_builtin_id): New enum
3836 (struct avr_builtin_description): New struct
3837 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3838 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3840 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3841 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3842 UNSPECV_DELAY_CYCLES): new enumeration values
3843 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3844 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3845 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3846 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3847 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3848 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3849 "fmulsu"): New insns
3851 * config/avr/avr-c.c: fix line endings
3852 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3853 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3854 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3855 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3856 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3858 * doc/extend.texi (AVR Built-in Functions): New node
3859 (Target Builtins): Add documentation of AVR
3862 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3865 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3866 alone. Error if non-const data has attribute progmem.
3868 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3870 * tree.h (struct tree_constructor): Include tree_typed instead of
3872 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3873 TS_TYPED instead of TS_COMMON.
3875 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3877 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3878 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3879 (sse2_psadbw): Merge with *avx_psadbw.
3880 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3881 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3882 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3883 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3884 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3885 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3886 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3887 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3888 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3889 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3890 (ssse3_palignrti): Merge with *avx_palignrti.
3892 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3894 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3895 * tree-ssanames.c (fini_ssanames): VEC_free it.
3896 (make_ssa_name_fn): Update for VECness of free_ssanames.
3897 (release_ssa_name, release_dead_ssa_names): Likewise.
3898 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3900 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3901 TS_TYPED instead of TS_COMMON.
3903 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3905 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3906 statistics_counter_event.
3907 * tree-ssa-copyrename.c (stats): Define.
3908 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3909 statistics_counter_event.
3910 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3911 (bswap_stats, widen_mul_stats): Define.
3912 (insert_reciprocals): Increment rdivs_inserted.
3913 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3914 rfuncs_inserted. Add calls to statistics_counter_event.
3915 (execute_cse_sincos_1): Increment inserted.
3916 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3917 statistics_counter_event.
3918 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3919 of bswap_stats. Add calls to statistics_counter_event.
3920 (convert_mult_to_widen): Increment widen_mults_inserted.
3921 (convert_plusminus_to_widen): Increment maccs_inserted.
3922 (convert_mult_to_fma): Increment fmas_inserted.
3923 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3924 calls to statistics_counter_event.
3926 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3928 PR rtl-optimization/48455
3929 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3930 `temp_costs->mem_cost'.
3932 2011-04-13 Jan Hubicka <jh@suse.cz>
3934 * ipa-inline.h: New file.
3935 * ipa-inline-analysis.c: New file. Broken out of ...
3936 * ipa-inline.c: ... this file; update toplevel comment;
3937 include ipa-inline.h
3938 (inline_summary): Move to ipa-inline.h
3939 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3940 ipa-inline-analysis.c.
3941 (cgraph_estimate_time_after_inlining): Rename to
3942 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3943 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3944 to estimate_edge_growth.
3945 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3946 rename to estimate_size_after_inlining.
3947 (cgraph_mark_inline_edge): Update for new naming convention.
3948 (cgraph_check_inline_limits): Likewise.
3949 (cgraph_edge_badness): Likewise.
3950 (cgraph_decide_recursive_inlining): Likewise.
3951 (cgraph_decide_inlining_of_small_functions): Likewise.
3952 (cgraph_decide_inlining_incrementally): Likewise.
3953 (cgraph_estimate_growth): Rename to estimate_growth; move to
3954 ipa-inline-analysis.c.
3955 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3956 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3957 (compute_inline_parameters): Likewise.
3958 (compute_inline_parameters_for_current): Likewise.
3959 (pass_inline_parameters): Likewise.
3960 (inline_indirect_intraprocedural_analysis): Likewise.
3961 (analyze_function): Rename to inline_analyze_function; likewise.
3962 (add_new_function): Move to ipa-inline-analysis.c.
3963 (inline_generate_summary): Likewise.
3964 (inline_read_summary): Likewise.
3965 (inline_write_summary): Likewise.
3966 * Makefile.in (ipa-inline-analysis.c): New file.
3968 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3970 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3971 * configure: Regenerate.
3973 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3975 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3976 instead of tree_common.
3977 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3979 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3980 TS_TYPED rather than TS_COMMON.
3981 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3983 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3986 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3987 r20 around calls of __tablejump_elpm__
3989 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3992 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3994 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3996 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3998 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3999 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4000 (cfi_vec): New typedef.
4001 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4002 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4003 (cie_cfi_vec): New static variable.
4004 (cie_cfi_head): Delete.
4005 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4006 declaration changed. Use vector rather than list operations.
4007 (new_cfi): Don't initialize the dw_cfi_next field.
4008 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4009 rather than list operations.
4010 (lookup_cfa): Use vector rather than list operations.
4011 (output_cfis): New argument upto. Accept a cfi_vec rather than
4012 a dw_cfi_ref list head as argument. All callers changed.
4013 Iterate over the vector using upto as a maximum index.
4014 (output_all_cfis): New static function.
4015 (output_fde): Use vector rather than list operations. Use the
4016 new upto argument for output_cfis rather than manipulating a
4018 (dwarf2out_begin_prologue): Change initializations to match
4020 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4021 from the vector length rather than searching for the end of a list.
4022 Use output_all_cfis.
4023 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4025 2011-04-13 Nick Clifton <nickc@redhat.com>
4027 * config/rx/rx.md (movmemsi): Do not use this pattern when
4028 volatile pointers are involved.
4030 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4032 * config/i386/sse.md (pinsrbits): Remove.
4033 (sse2_packsswb): Merge with *avx_packsswb.
4034 (sse2_packssdw): Merge with *avx_packssdw.
4035 (sse2_packuswb): Merge with *avx_packuswb.
4036 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4037 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4038 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4039 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4040 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4041 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4042 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4043 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4044 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4045 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4046 (sse2_loadld): Merge with *avx_loadld.
4047 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4048 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4049 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4050 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4051 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4053 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4055 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4057 * print-tree.c (print_node): Likewise.
4058 * tree-inline.c (copy_tree_r): Likewise.
4059 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4060 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4061 instead of TS_COMMON.
4062 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4063 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4064 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4065 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4066 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4068 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4070 (TREE_CHAIN): Check for a TS_COMMON structure.
4071 (TREE_TYPE): Check for a TS_TYPED structure.
4073 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4075 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4076 cgraph_get_create_node instead of cgraph_node.
4078 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4080 * c-parser.c (c_parser_initelt): Updated call to
4081 objc_build_message_expr.
4082 (c_parser_postfix_expression): Likewise.
4084 2011-04-12 Kai Tietz <ktietz@redhat.com>
4086 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4087 MASK_MS_BITFIELD_LAYOUT bit.
4089 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4091 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4092 assert it is always true.
4093 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4096 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4098 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4099 compiling Objective-C to be more efficient.
4101 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4103 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4106 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4108 * recog.h, genoutput.c, optabs.c: Revert last patch.
4110 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4113 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4115 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4117 * recog.h (insn_operand_data): Add an "allows_mem" field.
4118 * genoutput.c (output_operand_data): Initialize it.
4119 * optabs.c (maybe_legitimize_operand_same_code): New function.
4120 (maybe_legitimize_operand): Use it when matching the original
4123 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4125 * genpreds.c (process_define_predicate): Move most processing
4126 to gensupport.c. Continue to validate the expression.
4127 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4128 (process_define_predicate): Move processing to gensupport.c.
4129 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4130 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4131 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4133 (valid_predicate_name_p): New function, split out from old
4134 genpreds.c:process_define_predicate.
4135 (process_define_predicate): New function, combining code from
4136 old genpreds.c and genrecog.c functions.
4137 (process_rtx): Call it for DEFINE_PREDICATE and
4138 DEFINE_SPECIAL_PREDICATE.
4140 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4142 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4143 size of a '%A' memory reference.
4144 (T_DREG, T_QREG): New neon_builtin_type_bits.
4145 (arm_init_neon_builtins): Assert that the load and store operands
4146 are neon_struct_operands.
4147 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4148 (NEON_ARG_MEMORY): New builtin_arg.
4149 (neon_dereference_pointer): New function.
4150 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4151 Handle NEON_ARG_MEMORY.
4152 (arm_expand_neon_builtin): Update after above interface changes.
4153 Use NEON_ARG_MEMORY for loads and stores.
4154 * config/arm/predicates.md (neon_struct_operand): New predicate.
4155 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4156 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4157 (V_four_elem): Tweak formatting.
4158 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4159 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4160 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4161 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4162 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4163 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4164 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4165 Use %A in the output template.
4166 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4167 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4168 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4169 the width of the memory access. Remove post-increment.
4170 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4172 2011-04-12 Nick Clifton <nickc@redhat.com>
4174 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4175 instruction for interrupt handlers if the target is the basic V850
4177 (expand_epilogue): Likewise.
4179 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4181 PR rtl-optimization/48549
4182 * combine.c (propagate_for_debug): Also stop after BB_END of
4183 this_basic_block. Process LAST and just stop processing after it.
4184 (combine_instructions): If last_combined_insn has been deleted,
4185 set last_combined_insn to its PREV_INSN.
4187 2011-04-12 Richard Guenther <rguenther@suse.de>
4189 PR tree-optimization/46076
4190 * gimple.h (struct gimple_statement_call): Add fntype field.
4191 (gimple_call_fntype): Adjust.
4192 (gimple_call_set_fntype): New function.
4193 * gimple.c (gimple_build_call_1): Set the call function type.
4194 * gimplify.c (gimplify_call_expr): Preserve the function
4195 type the frontend used for the call.
4196 (gimplify_modify_expr): Likewise.
4197 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4199 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4201 * tree-ssa.c (useless_type_conversion_p): Function pointer
4202 conversions are useless.
4204 2011-04-12 Martin Jambor <mjambor@suse.cz>
4206 * cgraph.h (cgraph_node): Remove function declaration.
4207 (cgraph_create_node): Declare.
4208 (cgraph_get_create_node): Likewise.
4209 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4210 Updated all callers.
4211 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4212 the decl does not already exist. Call cgraph_get_create_node instead
4214 (cgraph_get_create_node): New function.
4215 (cgraph_same_body_alias): Update comment.
4216 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4217 assert it does not return NULL.
4218 (cgraph_update_edges_for_call_stmt): Likewise.
4219 (cgraph_clone_edge): Likewise.
4220 (cgraph_create_virtual_clone): Likewise.
4221 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4222 instead of cgraph_node.
4223 (cgraph_add_new_function): Call cgraph_create_node or
4224 cgraph_get_create_node instead of cgraph_node.
4225 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4226 instead of cgraph_node.
4227 (record_eh_tables): Likewise.
4228 (mark_address): Likewise.
4229 (mark_load): Likewise.
4230 (build_cgraph_edges): Call cgraph_get_create_node instead
4232 (rebuild_cgraph_edges): Likewise.
4233 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4234 instead of cgraph_node.
4235 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4237 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4238 cgraph_create_node instead of cgraph_node.
4239 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4241 * lto-cgraph.c (input_node): Likewise.
4242 * lto-streamer-in.c (input_function): Likewise.
4243 * varasm.c (mark_decl_referenced): Likewise.
4244 (assemble_alias): Likewise.
4246 2011-04-12 Martin Jambor <mjambor@suse.cz>
4248 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4249 instead of cgraph_node and assert it does not return NULL.
4250 * lto-streamer-in.c (lto_read_body): Likewise.
4251 * omp-low.c (new_omp_context): Likewise.
4252 (create_task_copyfn): Likewise.
4253 * tree-emutls.c (lower_emutls_function_body): Likewise.
4254 * matrix-reorg.c (transform_allocation_sites): Likewise.
4256 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4259 * c-typeck.c (build_asm_expr): Error out on attempts to use
4260 void type outputs or inputs for constraints that allow reg or
4263 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4264 Richard Earnshaw <rearnsha@arm.com>
4267 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4268 to use sign-magnitude offsets. Reject unsupported unaligned
4269 cases. Add detailed description in comments.
4270 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4271 condition from TARGET_32BIT to TARGET_ARM.
4273 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4275 * tree.h (struct typed_tree): New.
4276 (struct tree_common): Include it instead of tree_base.
4277 (TREE_TYPE): Update for new location of type field.
4278 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4279 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4280 (union tree_node): Add typed field.
4281 * treestruct.def (TS_TYPED): New.
4282 * lto-streamer.c (check_handled_ts_structures): Handle it.
4283 * tree.c (MARK_TS_TYPED): New macro.
4284 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4286 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4288 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4289 (force_nonfallthru): Do not alter the loop nest if no basic block
4292 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4294 * config/i386/sse.md (VI): New mode iterator.
4296 (AVX256MODEI): Ditto.
4297 (AVXMODEF4P): Ditto.
4298 (avxvecpsmode): Ditto.
4299 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4300 (sse2_andnot<mode>3): New expander.
4301 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4302 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4303 (<any_logic:code><mode>3): Use VI mode iterator.
4304 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4305 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4306 (*andnottf3): Handle AVX three-operand constraints.
4307 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4309 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4310 Robert Millan <rmh@gnu.org>
4312 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4313 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4314 GNU_USER_DYNAMIC_LINKER64): Define.
4315 (REG_NAME): Don't undefine.
4316 (MD_UNWIND_SUPPORT): Undefine.
4317 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4318 (REG_NAME): Don't undefine.
4319 (MD_UNWIND_SUPPORT): Undefine.
4320 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4322 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4324 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4325 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4327 2011-04-11 Xinliang David Li <davidxl@google.com>
4329 * value-profile.c (check_ic_target): New function.
4330 (gimple_ic_transform): Sanity check indirect call target.
4331 * gimple-low.c (gimple_check_call_args): Interface change.
4332 (gimple_check_call_matching_types): New function.
4333 * tree-inline.c (tree_can_inline_p): Call new function.
4335 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4337 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4338 tree-pretty-print.h & realmpfr.h.
4340 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4343 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4344 (setup_allocno_and_important_classes): Ditto.
4346 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4348 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4349 GNU_USER_DYNAMIC_LINKER.
4350 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4351 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4352 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4353 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4354 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4355 GNU_USER_TARGET_OS_CPP_BUILTINS.
4356 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4357 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4358 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4360 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4361 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4362 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4363 GNU_USER_TARGET_OS_CPP_BUILTINS.
4364 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4365 GNU_USER_DYNAMIC_LINKER.
4366 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4367 GNU_USER_TARGET_OS_CPP_BUILTINS.
4368 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4369 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4370 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4371 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4372 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4373 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4374 GNU_USER_DYNAMIC_LINKER64): Remove.
4375 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4376 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4377 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4378 GNU_USER_DYNAMIC_LINKER.
4379 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4380 GNU_USER_TARGET_OS_CPP_BUILTINS.
4381 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4382 GNU_USER_TARGET_OS_CPP_BUILTINS.
4383 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4384 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4385 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4386 GNU_USER_TARGET_OS_CPP_BUILTINS.
4387 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4388 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4389 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4390 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4391 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4392 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4393 GNU_USER_DYNAMIC_LINKER.
4394 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4395 GNU_USER_TARGET_OS_CPP_BUILTINS.
4396 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4397 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4398 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4399 GNU_USER_DYNAMIC_LINKER.
4400 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4401 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4402 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4403 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4404 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4405 GNU_USER_DYNAMIC_LINKER.
4406 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4407 GNU_USER_DYNAMIC_LINKERN32.
4408 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4409 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4410 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4411 GNU_USER_DYNAMIC_LINKER32.
4412 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4413 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4414 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4415 GNU_USER_DYNAMIC_LINKER.
4416 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4417 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4418 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4419 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4420 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4421 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4422 GNU_USER_DYNAMIC_LINKER32.
4423 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4424 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4425 GNU_USER_DYNAMIC_LINKER.
4426 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4427 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4428 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4429 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4430 GNU_USER_DYNAMIC_LINKER64.
4431 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4432 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4433 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4434 GNU_USER_DYNAMIC_LINKER.
4435 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4436 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4437 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4438 GNU_USER_DYNAMIC_LINKER.
4439 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4440 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4441 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4442 GNU_USER_DYNAMIC_LINKER32.
4443 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4444 GNU_USER_DYNAMIC_LINKER64.
4445 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4446 GNU_USER_DYNAMIC_LINKER64.
4447 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4448 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4449 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4450 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4451 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4453 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4455 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4456 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4457 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4458 GNU_USER_DYNAMIC_LINKER.
4459 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4460 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4461 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4462 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4463 GNU_USER_DYNAMIC_LINKER64.
4464 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4465 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4466 GNU_USER_LINK_EMULATION.
4467 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4468 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4469 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4470 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4471 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4472 CPP_SPEC, CC1_SPEC): Remove.
4473 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4474 (GNU_USER_DYNAMIC_LINKER): Define.
4475 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4476 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4477 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4478 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4479 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4480 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4481 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4482 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4483 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4484 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4485 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4486 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4487 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4488 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4489 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4490 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4491 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4492 GNU_USER_DYNAMIC_LINKER.
4493 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4494 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4495 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4496 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4497 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4498 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4499 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4500 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4501 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4502 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4504 2011-04-11 Kai Tietz <ktietz@redhat.com>
4508 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4509 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4511 (ix86_is_msabi_thiscall): Removed.
4512 (ix86_is_type_thiscall): Likewise.
4513 (ix86_get_callcvt): New function.
4514 (ix86_comp_type_attributes): Simplify check.
4515 (ix86_function_regparm): Use ix86_get_callcvt for calling
4516 convention attribute checks.
4517 (ix86_return_pops_args): Likewise.
4518 (ix86_static_chain): Likewise.
4519 (x86_this_parameter): Likewise.
4520 (x86_output_mi_thunk): Likewise.
4521 (ix86_function_type_abi): Optimize check for types without attributes.
4522 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4523 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4524 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4526 (IX86_BASE_CALLCVT): Helper macro.
4527 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4528 Use ix86_get_callcvt for calling convention attribute checks and avoid
4529 symbol-decoration for stdcall in TARGET_RTD case.
4530 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4532 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4535 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4537 * config/i386/sse.md (VI_128): New mode iterator.
4538 (VI12_128): Rename from SSEMODE12.
4539 (VI14_128): Rename from SSEMODE14.
4540 (VI124_128): New mode iterator.
4541 (VI24_128): Rename from SSEMODE248.
4542 (VI248_128): Rename from SSEMODE248.
4543 (SSEMODE124C8): Remove.
4544 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4545 (*sse2_<plusminus_insn><mode>3): Merge with
4546 *avx_<plusminus_insn><mode>3.
4547 (*mulv8hi3): Merge with *avx_mulv8hi3.
4548 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4549 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4550 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4551 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4552 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4553 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4554 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4555 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4556 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4557 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4558 (*<smaxmin:code>v8hi3): Ditto.
4559 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4560 (*<smaxmin:code>v16qi3): Ditto.
4561 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4562 (*sse2_eq<mode>3): Ditto.
4563 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4564 (*sse2_gt<mode>3): Ditto.
4565 (vcondv2di): Split out of vcond<mode>.
4566 (vconduv2di): Split out of vcondu<mode>.
4568 2011-04-11 Richard Guenther <rguenther@suse.de>
4570 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4571 before calling tree_low_cst.
4573 2011-04-11 Richard Guenther <rguenther@suse.de>
4575 * stor-layout.c (layout_type): Compute all array index size operations
4576 in the original type.
4577 (initialize_sizetypes): Add comment.
4578 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4580 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4582 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4584 2011-04-11 Martin Jambor <mjambor@suse.cz>
4586 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4587 of cgraph_node, handle NULL return value.
4588 (cgraph_global_info): Likewise.
4589 (cgraph_rtl_info): Likewise.
4590 * tree-inline.c (estimate_num_insns): Likewise.
4591 * gimplify.c (unshare_body): Likewise.
4592 (unvisit_body): Likewise.
4593 (gimplify_body): Likewise.
4594 * predict.c (optimize_function_for_size_p): Likewise.
4595 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4596 (call_may_clobber_ref_p_1): Likewise.
4597 * varasm.c (function_section_1): Likewise.
4598 (assemble_start_function): Likewise.
4600 2011-04-11 Martin Jambor <mjambor@suse.cz>
4602 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4604 * final.c (rest_of_clean_state): Likewise.
4605 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4606 * passes.c (pass_init_dump_file): Likewise.
4607 (execute_all_ipa_transforms): Likewise.
4608 (function_called_by_processed_nodes_p): Likewise.
4609 * predict.c (maybe_hot_frequency_p): Likewise.
4610 (probably_never_executed_bb_p): Likewise.
4611 (compute_function_frequency): Likewise.
4612 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4613 (unnest_nesting_tree_1): Likewise.
4614 (lower_nested_functions): Likewise.
4615 * tree-optimize.c (execute_fixup_cfg): Likewise.
4616 (tree_rest_of_compilation): Likewise.
4617 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4618 * tree-sra.c (ipa_early_sra): Likewise.
4619 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4620 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4621 * ipa.c (record_cdtor_fn): Likewise.
4622 * ipa-inline.c (cgraph_early_inlining): Likewise.
4623 (compute_inline_parameters_for_current): Likewise.
4624 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4625 * ipa-pure-const.c (local_pure_const): Likewise.
4626 * ipa-split.c (split_function): Likewise.
4627 (execute_split_functions): Likewise.
4628 * cgraphbuild.c (build_cgraph_edges): Likewise.
4629 (rebuild_cgraph_edges): Likewise.
4630 (cgraph_rebuild_references): Likewise.
4631 (remove_cgraph_callee_edges): Likewise.
4632 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4633 (verify_cgraph_node): Likewise.
4634 (cgraph_analyze_functions): Likewise.
4635 (cgraph_preserve_function_body_p): Likewise.
4636 (save_inline_function_body): Likewise.
4637 (save_inline_function_body): Likewise.
4638 * tree-inline.c (copy_bb): Likewise.
4639 (optimize_inline_calls): Likewise.
4641 2011-04-11 Martin Jambor <mjambor@suse.cz>
4643 PR tree-optimization/48195
4644 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4645 ipa_check_create_edge_args.
4646 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4647 ipa_check_create_edge_args.
4648 * ipa-inline.c (inline_generate_summary): Do not call
4649 ipa_check_create_node_params and ipa_check_create_edge_args.
4650 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4651 ipa_check_create_edge_args.
4653 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4655 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4657 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4658 * function.c (record_hard_reg_sets): Likewise.
4659 * ira.c (compute_regs_asm_clobbered): Likewise.
4660 * sched-deps.c (sched_analyze_1): Likewise.
4661 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4663 2011-04-09 Xinliang David Li <davidxl@google.com>
4665 PR tree-optimization/PR48484
4666 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4667 has_valid_pred lazily
4669 2011-04-09 Duncan Sands <baldrick@free.fr>
4671 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4673 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4675 * combine.c (combine_validate_cost): Adjust comments. Set registered
4676 cost of I0 to zero at the end, if any.
4678 2011-04-08 Xinliang David Li <davidxl@google.com>
4680 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4681 to insane profile data.
4683 2011-04-08 Xinliang David Li <davidxl@google.com>
4685 * ipa-cp.c (ipcp_update_profiling): Correct
4686 negative scale factor due to insane profile data.
4688 2011-04-08 Xinliang David Li <davidxl@google.com>
4690 * final.c (dump_basic_block_info): New function.
4691 (final): Dump basic block.
4692 (final_scan_insn): Remove old dump.
4694 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4697 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4700 2011-04-08 Michael Matz <matz@suse.de>
4703 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4705 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4706 * rtl.h (rebuild_jump_labels_chain): Declare.
4707 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4708 insns inserted on edges.
4710 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4712 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4713 * config/arm/arm-arches.def: New.
4714 * config/arm/arm-opts.h: New.
4715 * config/arm/genopt.sh: New.
4716 * config/arm/arm-tables.opt: New (generated).
4717 * config/arm/arm.c (arm_handle_option, arm_target_help,
4718 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4719 (all_architectures): Get most table contents from arm-arches.def.
4720 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4721 arm_selected_tune here.
4722 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4723 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4724 (march=, mcpu=, mtune=): Use Enum and Var.
4725 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4726 (arm.o): Update dependencies.
4728 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4730 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4732 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4733 (write_typed_alloc_defns): Likewise.
4734 (main): Calls write_typed_alloc_defns with output_header.
4736 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4739 * ira-color.c (setup_profitable_hard_regs): Add comments.
4740 Don't take prohibited hard regs into account.
4741 (setup_conflict_profitable_regs): Rename to
4742 get_conflict_profitable_regs.
4743 (check_hard_reg_p): Check prohibited hard regs.
4745 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4747 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4748 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4749 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4751 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4754 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4755 move from floating point to shift amount register.
4756 (emit_move_sequence): Remove secondary reload support for floating
4757 point to shift amount amount register copies.
4758 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4759 amount register copies.
4760 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4761 register, return false if mode isn't a scalar integer mode.
4762 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4764 2011-04-08 Richard Guenther <rguenther@suse.de>
4766 * gimple.c (gimple_call_flags): Remove kludge.
4768 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4770 * sel-sched.c (sel_region_init): Move call to
4771 sel_setup_region_sched_flags after setup_current_loop_nest.
4773 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4775 PR rtl-optimization/48272
4776 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4777 init_insn_reg_pressure_info. Adjust a caller.
4778 * sched-int.h (init_insn_reg_pressure_info): Declare.
4779 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4780 when sched-pressure is enabled.
4782 2011-04-08 Richard Guenther <rguenther@suse.de>
4784 * gimple.c (gimple_set_modified): Do not queue calls to
4785 MODIFIED_NORETURN_CALLS here ...
4786 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4788 2011-04-08 Richard Guenther <rguenther@suse.de>
4791 * toplev.c (lang_dependent_init): Do not open asm_out_file
4792 in WPA mode, nor perform debug machinery initialization.
4793 (finalize): Do not unlink asm_out_file in WPA mode.
4795 2011-04-08 Richard Guenther <rguenther@suse.de>
4797 * gimple.h (gimple_call_fntype): New function.
4798 (gimple_call_return_type): Use it.
4799 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4800 * gimple-low.c (gimple_check_call_args): Likewise.
4801 * gimple.c (gimple_call_flags): Likewise.
4802 (gimple_call_arg_flags): Likewise.
4803 (gimple_call_return_flags): Likewise.
4804 * tree-cfg.c (verify_gimple_call): Likewise.
4805 (do_warn_unused_result): Likewise.
4806 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4807 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4809 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4811 PR rtl-optimization/48235
4812 * sel-sched.c (code_motion_process_successors): Recompute the last
4813 insn in basic block if control flow changed.
4814 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4815 Update condition for ilist_remove.
4817 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4819 PR rtl-optimization/48302
4820 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4821 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4822 it to record added preheader blocks.
4823 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4824 on to sel_add_loop_preheaders.
4825 (sel_region_init): Move call to setup_current_loop_nest after
4828 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4831 * cfgloop.h (loop_has_exit_edges): New helper.
4832 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4834 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4835 that have no exit edges.
4837 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4839 PR rtl-optimization/48442
4840 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4841 all callers. Adjust assert.
4843 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4845 PR tree-optimization/48377
4846 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4847 is_packed to true even for types with smaller TYPE_ALIGN than
4850 2011-04-08 Richard Guenther <rguenther@suse.de>
4853 * doc/tm.texi: Re-generate.
4855 2011-04-08 Wei Guozhi <carrot@google.com>
4858 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4859 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4860 * config/arm/arm.md (*push_multi): Change the length computation to
4863 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4865 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4866 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4867 * doc/tm.texi: Regenerate.
4868 * system.h (ASM_OUTPUT_BSS): Poison.
4869 * varasm.c (asm_output_bss): Remove function.
4870 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4872 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4873 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4874 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4875 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4877 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4879 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4881 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4883 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4885 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4888 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4890 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4891 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4892 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4894 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4895 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4896 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4897 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4898 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4899 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4900 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4901 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4902 options. Don't map other m68k options manually. Don't handle
4903 old-style options as canonical.
4904 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4905 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4907 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4909 * basic-block.h (force_nonfallthru): Move to...
4910 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4911 (force_nonfallthru): ...here.
4912 * cfghooks.c (force_nonfallthru): New function.
4913 * cfgrtl.c (force_nonfallthru): Rename into...
4914 (rtl_force_nonfallthru): ...this.
4915 (commit_one_edge_insertion): Do not set AUX field.
4916 (commit_edge_insertions): Do not discover new basic blocks.
4917 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4918 (cfg_layout_rtl_cfg_hooks): Likewise.
4919 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4920 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4921 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4923 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4925 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4928 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4930 * config/i386/sse.md: Update copyright year.
4931 (avxcvtvecmode): Remove.
4932 (sse_movhlps): Merge with *avx_movhlps.
4933 (sse_movlhps): Merge with *avx_movlhps.
4934 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4935 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4936 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4937 (sse_loadhps): Merge with *avx_loadhps.
4938 (sse_storelps): Merge with *avx_storelps.
4939 (sse_loadlps): Merge with *avx_loadlps.
4940 (sse_movss): Merge with *avx_movss.
4941 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4942 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4943 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4944 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4945 (vec_set<mode>_0): Ditto.
4946 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4947 (sse4_1_insertps): Merge with *avx_insertps.
4948 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4949 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4950 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4951 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4952 (sse2_storehpd): Merge with *avx_storehpd.
4953 (sse2_loadhpd): Merge with *avx_loadhpd.
4954 (sse2_loadlpd): Merge with *avx_loadlpd.
4955 (sse2_movsd): Merge with *avx_movsd.
4956 (*vec_concatv2df): Merge with *vec_concatv2df.
4958 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4961 * combine.c (combine_instructions): Add last_combined_insn,
4962 update it if insn is after it, pass it to all try_combine calls.
4963 (try_combine): Add last_combined_insn parameter, pass it instead of
4964 i3 to propagate_for_debug.
4966 2011-04-07 Nick Clifton <nickc@redhat.com>
4968 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4969 to handle MDR <-> data register transfers.
4970 (movhi_internal): Likewise.
4972 2011-04-07 Alan Modra <amodra@gmail.com>
4974 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4975 previous stack info.
4977 2011-04-07 Tom de Vries <tom@codesourcery.com>
4980 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4981 flow_find_cross_jump. Swap variables to implement backward replacement.
4982 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4984 2011-04-07 Tom de Vries <tom@codesourcery.com>
4987 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4988 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4990 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4991 src1 or src2. Redirect edges to the last basic block. Update
4992 frequency and count on multiple basic blocks in case of fallthru.
4994 2011-04-07 Tom de Vries <tom@codesourcery.com>
4997 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4999 (old_insns_match_p): Change return type. Replace return false/true
5000 with return dir_none/dir_both. Use can_replace_by.
5001 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5002 direction from dir_p. Register replacement direction in dir, last_dir
5003 and afterlast_dir. Handle new return type of old_insns_match_p using
5004 merge_dir. Return replacement direction in dir_p.
5005 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5006 return type of old_insns_match_p.
5007 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5008 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5009 flow_find_cross_jump.
5010 * basic-block.h (enum replace_direction): New type.
5011 (flow_find_cross_jump): Add parameter to declaration.
5013 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5015 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5016 (AVXMODEDCVTPS2DQ): Ditto.
5017 (VEC_FLOAT_MODE): Ditto.
5018 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5019 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5020 (<any_logic:code><mode>3): Use VF mode iterator.
5021 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5022 Use VF mode iterator.
5023 (copysign<mode>3): Use VF mode iterator.
5024 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5025 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5026 (*<any_logic:code><MODEF:mode>3): Merge with
5027 *avx_<any_logic:code><MODEF:mode>3.
5028 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5029 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5030 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5031 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5032 (sse2_cvtdq2ps): Use %v modifier.
5033 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5034 (avx_cvtps2dq<avxmodesuffix>): Remove.
5035 (sse2_cvtps2dq): Use %v modifier.
5036 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5037 (avx_cvttps2dq<avxmodesuffix>): Remove.
5038 (sse2_cvttps2dq): Use %v modifier.
5039 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5040 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5041 (sse2_cvtsd2siq): Fix insn template.
5042 (sse2_cvtsd2siq_2): Ditto.
5043 (sse2_cvttsd2siq): Ditto.
5044 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5045 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5047 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5049 * gcov-io.c: Use GCC Runtime Library Exception.
5051 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5054 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5055 as base_reg whatever register reg has been eliminated to, instead
5056 of hardcoding STACK_POINTER_REGNUM.
5058 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5060 * doc/tm.texi.in: Document C target hooks as separate from general
5062 * doc/tm.texi: Regenerate.
5063 * genhooks.c (struct hook_desc): Add docname field.
5064 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5066 (hook_array): Include c-target.def.
5067 (emit_documentation): Use docname field in output.
5068 (emit_init_macros): Take docname argument. Only emit definitions
5069 for hooks matching docname.
5070 (main): Expect additional arguments in all cases. Pass argument
5071 to emit_init_macros.
5072 * target.def: Move initial macro definitions and comments to
5073 target-hooks-macros.h.
5074 (gcc_targetcm): Move to c-family/c-target.def.
5075 * target.h (targetcm): Move declaration to c-family/c-target.h.
5076 * targhooks.c (default_handle_c_option): Move to
5078 * targhooks.h (default_handle_c_option): Move declaration to
5079 c-family/c-common.h.
5080 * target-hooks-macros.h: New file.
5081 * config.gcc (target_has_targetcm): Define and use to add to
5082 c_target_objs and cxx_target_objs.
5083 * config/default-c.c: New file.
5084 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5085 of target.h and target-def.h.
5086 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5087 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5088 darwin_check_cfstring_format_arg): Make static.
5089 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5090 TARGET_STRING_OBJECT_REF_TYPE_P,
5091 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5092 * config/darwin-protos.h (darwin_objc_construct_string,
5093 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5095 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5096 TARGET_STRING_OBJECT_REF_TYPE_P,
5097 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5098 * config/t-darwin (darwin-c.o): Update dependencies.
5099 * system.h (TARGET_HAS_TARGETCM): Poison.
5100 * Makefile.in (TARGET_H): Update.
5101 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5102 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5103 (default-c.o): New target.
5104 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5105 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5106 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5108 (build/genhooks.o): Update dependencies.
5110 2011-04-06 Richard Guenther <rguenther@suse.de>
5112 * ipa-inline.c (enum inlining_mode): Remove.
5113 (cgraph_flatten): Use some other token.
5114 (cgraph_edge_early_inlinable_p): New function, split out from ...
5115 (cgraph_perform_always_inlining): New function, split out from ...
5116 (cgraph_decide_inlining_incrementally): ... here.
5117 (cgraph_mark_inline_edge): Adjust.
5118 (cgraph_early_inlining): Re-structure.
5119 (pass_early_inline): Require SSA form.
5121 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5122 Julian Brown <julian@codesourcery.com>
5123 Mark Shinwell <shinwell@codesourcery.com>
5125 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5126 LO_REGS only for Thumb-1.
5127 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5128 be used in short instructions when optimising for size on Thumb-2.
5130 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5132 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5133 associated with user returns to be preserved.
5135 2011-04-06 Tristan Gingold <gingold@adacore.com>
5137 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5138 symbol_queue_size, DBXOUT_DECR_NESTING,
5139 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5140 if XCOFF_DEBUGGING_INFO.
5142 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5144 * config/i386/i386.md (attribute isa): New.
5145 (attribute enabled): New.
5146 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5147 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5148 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5149 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5150 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5151 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5152 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5153 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5155 * config/i386/sse.md (VF): New mode iterator.
5159 (SSEMODEF4): Remove.
5160 (attribute sse): Handle V8SF and V4DF modes.
5161 (<absneg:code><mode>2): Use VF mode iterator.
5162 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5164 (<plusminus_insn><mode>3): Use VF mode iterator.
5165 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5166 Use VF mode iterator.
5167 (<sse>_vm<plusminus_insn><mode>3): Merge with
5168 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5169 (mul<mode>3): Use VF mode iterator.
5170 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5171 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5173 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5174 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5175 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5176 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5178 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5179 Use VF1 mode iterator.
5180 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5181 (sqrt<VF2:mode>2): New expander.
5182 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5183 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5184 and sqrtv2df2. Use VF mode iterator.
5185 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5187 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5188 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5189 Use VF1 mode iterator.
5190 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5191 (<smaxmin:code><mode>3): Use VF mode iterator.
5192 (*<smaxmin:code><mode>3_finite): Merge with
5193 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5194 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5195 (<sse>_vm<smaxmin:code><mode>2): Merge with
5196 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5197 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5199 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5201 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5202 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5203 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5204 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5205 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5207 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5208 Use VF_128 mode iterator.
5209 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5211 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5212 VF_128 mode iterator.
5213 (vcond<mode>): Use VF mode iterator.
5214 * config/i386/predicates.md (sse_comparison_operator): Merge with
5215 avx_comparison_float_operator. Do not declare as special_predicate.
5216 * config/i386/i386.c (struct builtin_description): Update for renamed
5218 (ix86_expand_args_builtin): Ditto.
5219 (ix86_expand_sse_compare_mask): Ditto.
5221 2011-04-06 Richard Guenther <rguenther@suse.de>
5223 * tree-inline.c (estimate_num_insns): For calls simply account
5224 for all passed arguments and a used return value.
5226 2011-04-06 Richard Guenther <rguenther@suse.de>
5228 PR tree-optimization/47663
5229 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5230 call_stmt_time fields.
5231 (cgraph_edge_inlinable_p): Declare.
5232 (cgraph_edge_recursive_p): New inline function.
5233 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5234 (cgraph_clone_edge): Copy it.
5235 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5236 Account for call stmt time.
5237 (cgraph_estimate_time_after_inlining): Take edge argument.
5238 (cgraph_estimate_edge_growth): Account call stmt size.
5239 (cgraph_estimate_size_after_inlining): Take edge argument.
5240 (cgraph_mark_inline_edge): Adjust.
5241 (cgraph_check_inline_limits): Likewise.
5242 (cgraph_recursive_inlining_p): Remove.
5243 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5244 (cgraph_decide_recursive_inlining): Take edge argument and
5246 (cgraph_decide_inlining_of_small_functions): Do not avoid
5247 diags for recursive inlining here.
5248 (cgraph_flatten): Adjust.
5249 (cgraph_decide_inlining_incrementally): Likewise.
5250 (estimate_function_body_sizes): Remove call cost handling.
5251 (compute_inline_parameters): Initialize caller edge call costs.
5252 (cgraph_estimate_edge_growth): New function.
5253 (cgraph_estimate_growth): Use it.
5254 (cgraph_edge_badness): Likewise.
5255 (cgraph_check_inline_limits): Take an edge argument.
5256 (cgraph_decide_inlining_of_small_functions): Adjust.
5257 (cgraph_decide_inlining): Likewise.
5258 * tree-inline.c (estimate_num_insns): Only account for call
5259 return value if it is used.
5260 (expand_call_inline): Avoid diagnostics on recursive inline
5262 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5263 (input_edge): Input edge call costs.
5265 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5267 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5269 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5271 * doc/invoke.texi (Spec Files): Fix typo.
5273 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5275 * profile.c (branch_prob): Move declaration of local variable. Remove
5276 obsolete ??? comment. Expand the location explicitly instead of using
5277 the LOCATION_FILE and LOCATION_LINE macros.
5279 2011-04-06 Wei Guozhi <carrot@google.com>
5282 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5283 (arm_cond_branch): Likewise.
5284 (arm_cond_branch_reversed): Likewise.
5285 (arm_jump): Likewise.
5286 (push_multi): Likewise.
5287 * config/arm/constraints.md (Py): New constraint.
5289 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5292 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5294 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5295 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5296 #ifdef DBX_DEBUGGING_INFO.
5298 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5301 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5302 if old and new states differ.
5304 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5306 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5307 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5308 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5309 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5310 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5312 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5313 ColdFire options to -mcpu= options.
5315 2011-04-05 Jeff Law <law@redhat.com>
5317 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5318 check if BB is a successor of LOOP->header and return
5319 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5321 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5323 * cprop.c (struct reg_use): Remove.
5324 (reg_use_table): Make an array of RTX.
5325 (find_used_regs, constprop_register, local_cprop_pass,
5326 bypass_block): Simplify users of reg_use_table.
5327 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5328 on one of the uses found by find_used_regs.
5330 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5333 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5336 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5338 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5340 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5342 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5345 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5347 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5349 * combine.c: Include obstack.h.
5350 (struct insn_link): Define.
5351 (uid_log_links): Adjust type.
5352 (FOR_EACH_LOG_LINK): New macro.
5353 (insn_link_obstack): Declare.
5354 (alloc_insn_link): Define.
5355 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5356 type of link variables.
5357 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5358 (try_combine, record_promoted_values, distribute_notes): Likewise.
5359 (distribute_links): Likewise. Tweak prototype.
5360 (clear_log_links): Delete.
5361 (adjust_for_new_dest): Call alloc_insn_link.
5362 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5364 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5366 * gcse.c (modify_mem_list): Convert to an array of VECs.
5367 (canon_modify_mem_list, compute_transp): Tweak formatting.
5368 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5369 (load_killed_in_block_p): Likewise.
5370 (record_last_mem_set_info): Likewise.
5371 (clear_modify_mem_tables): Likewise.
5373 2011-04-05 Tom de Vries <tom@codesourcery.com>
5376 * function.c (emit_use_return_register_into_block): Only define if
5379 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5381 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5383 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5385 * config/rx/rx-opts.h: New.
5386 * config/rx/rx.c (rx_cpu_type): Remove.
5387 (rx_handle_option): Don't assert that global structures are in
5388 use. Access variables via opts pointer. Defer most handling of
5389 OPT_mint_register_. Use error_at.
5390 (rx_option_override): Handle deferred OPT_mint_register_ here.
5391 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5392 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5393 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5394 (rx_cpu_types): New Enum and EnumValue entries.
5395 (mint-register=): Use Defer and use Var accordingly.
5397 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5399 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5400 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5401 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5403 (debug_free_queue, debug_nesting, symbol_queue_index):
5405 * dbxout.c: ...to here. Make static.
5407 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5409 * gcse.c (modify_pair): Define. Define a VEC of it.
5410 (canon_modify_mem_list): Convert to an array of VECs.
5411 (free_insn_expr_list_list): Delete.
5412 (clear_modify_mem_tables): Call VEC_free instead.
5413 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5414 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5415 (canon_list_insert, compute_transp): Likewise.
5417 2011-04-05 Tom de Vries <tom@codesourcery.com>
5420 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5423 2011-04-05 Tom de Vries <tom@codesourcery.com>
5426 * function.c (emit_use_return_register_into_block): New function.
5427 (thread_prologue_and_epilogue_insns): Use
5428 emit_use_return_register_into_block.
5430 2011-04-05 Tom de Vries <tom@codesourcery.com>
5433 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5436 2011-04-05 Tom de Vries <tom@codesourcery.com>
5438 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5440 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5442 * config/arm/arm.md (define_constants for unspec): Replace with
5444 (define_constants for unspecv): Replace with define_c_enum.
5445 * config/arm/neon.md (define_constants for unspec): Replace with
5448 2011-04-04 Richard Henderson <rth@redhat.com>
5451 * dwarf2out.c (output_line_info): Always emit line info from
5452 at least one section.
5453 (dwarf2out_init): Create text_section_line_info here ...
5454 (set_cur_line_info_table): ... not here.
5456 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5459 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5462 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5464 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5466 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5467 (expr_equiv_p): Remove.
5468 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5469 (hash_scan_set): Update call to insert_set_in_table.
5470 (dump_hash_table): Dump <dest, src> pair.
5471 (lookup_set): Simplify. Lookup <dest, src> pair.
5472 (compute_transp): Remove, fold heavily simplified code into...
5473 (compute_local_properties): ...here. Expect COMP and TRANSP
5475 (find_avail_set): Take set directly from struct expr.
5476 (find_bypass-set): Likewise.
5477 (bypass_block): Likewise.
5478 (cprop_insn): Likewise. Remove redundant INSN_P test.
5480 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5481 checks on form of COND from find_implicit_sets to here.
5482 (find_implicit_sets): Cleanup control flow. Split critical edges
5483 if it exposes implicit sets. Allocate/resize implicit_sets as
5485 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5486 changed something. Run df_analyze after find_implicit_sets if any
5487 edges were split. Do not allocate implicit_sets here.
5489 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5490 (gcse_obstack): Renamed to cprop_obstack.
5491 (GNEW, GNEWVEC, GNEWVAR): Remove.
5493 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5494 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5495 (gcse_alloc): Likewise, and rename to cprop_alloc.
5496 (alloc_gcse_men, free_gcse_mem): Remove.
5497 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5498 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5499 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5501 * cprop.c (oprs_not_set_p): Remove.
5502 (mark_set, mark_clobber): Remove.
5503 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5504 (reg_not_set_p): New function.
5505 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5506 (cprop_insn): Likewise.
5507 (cprop_jump): Use FOR_EACH_EDGE.
5509 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5512 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5513 (rank_for_schedule): Use scheduled_insns vector instead of
5514 last_scheduled_insn.
5515 (ok_for_early_queue_removal): Likewise.
5516 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5518 (choose_ready): Likewise.
5519 (commit_schedule): Use VEC_iterate.
5520 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5521 a dbg_cnt, use it and ensure the first insn is in the ready list.
5522 (haifa_sched_init): Allocate scheduled_insns.
5523 (sched_extend_ready_list): Don't allocate it; reserve space.
5524 (haifa_sched_finish): Free it.
5526 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5528 * optc-gen.awk: Always remove type from Variable entry before
5529 recording in var_seen.
5531 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5533 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5534 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5535 call to tidy_fallthru_edges.
5537 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5539 * doc/options.texi (ToLower): Document.
5540 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5541 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5542 * opts.h (cl_option): Add cl_tolower field.
5543 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5544 arguments with lowercase strings.
5545 * config/rx/rx.opt (mcpu=): Add ToLower.
5546 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5549 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5551 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5553 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5555 * config/vax/vax.c: Include reload.h.
5557 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5559 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5560 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5561 (sparc_preferred_reload_class): New function.
5563 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5566 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5567 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5569 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5571 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5572 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5574 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5576 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5577 (ASM_OUTPUT_ALIGNED_BSS): Define.
5579 2011-04-03 Michael Matz <matz@suse.de>
5581 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5582 and next_slot members.
5583 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5584 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5585 (lto_streamer_cache_append): Declare.
5586 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5587 unsigned index, remove offset parameter, ensure that we append
5588 or update existing entries.
5589 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5590 parameter, update next_slot for append.
5591 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5593 (lto_streamer_cache_insert_at): Likewise.
5594 (lto_streamer_cache_append): New function.
5595 (lto_streamer_cache_lookup): Use unsigned index.
5596 (lto_streamer_cache_get): Likewise.
5597 (lto_record_common_node): Don't test tree_node_can_be_shared.
5598 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5599 (lto_streamer_cache_delete): Don't free offsets member.
5600 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5601 (lto_output_string_with_length): Use lto_output_data_stream.
5602 (lto_output_tree_header): Remove ix parameter, don't write it.
5603 (lto_output_builtin_tree): Likewise.
5604 (lto_write_tree): Adjust callers to above, don't track and write
5605 offset, write unsigned index.
5606 (output_unreferenced_globals): Don't emit all global vars.
5607 (write_global_references): Use unsigned indices.
5608 (lto_output_decl_state_refs): Likewise.
5609 (write_symbol): Likewise.
5610 * lto-streamer-in.c (lto_input_chain): Move earlier.
5611 (input_function): Use unsigned index.
5612 (input_alias_pairs): Don't read and then ignore all global vars.
5613 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5614 don't pass it back, use lto_streamer_cache_append.
5615 (lto_register_var_decl_in_symtab): Use unsigned index.
5616 (lto_register_function_decl_in_symtab): Likewise.
5617 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5619 (lto_get_builtin_tree): Don't read index, use
5620 lto_streamer_cache_append.
5621 (lto_read_tree): Adjust call to lto_materialize_tree.
5623 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5624 don't use function calls in arguments to MIN.
5626 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5629 * gimple.c (gimple_type_leader_entry): Mark deletable.
5631 2011-04-03 Alan Modra <amodra@gmail.com>
5633 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5635 2011-04-03 Michael Matz <matz@suse.de>
5637 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5639 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5641 2011-04-03 Michael Matz <matz@suse.de>
5643 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5644 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5645 without function context.
5646 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5647 current_function_decl and cfun.
5649 2011-04-03 Michael Matz <matz@suse.de>
5651 * tree.c (decl_init_priority_insert): Don't create entry for
5653 (decl_fini_priority_insert): Ditto.
5654 (fields_compatible_p, find_compatible_field): Remove.
5655 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5656 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5658 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5660 * combine.c (try_combine): Remove useless local variable.
5662 2011-04-03 Richard Guenther <rguenther@suse.de>
5663 Ira Rosen <ira.rosen@linaro.org>
5665 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5666 non-variable offsets and compare the remaining bases of the two
5667 accesses instead of looking for exact same data-ref.
5669 2011-04-02 Kai Tietz <ktietz@redhat.com>
5672 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5674 * i386.c (ix86_is_msabi_thiscall): New helper function.
5675 (ix86_is_type_thiscall): New helper function.
5676 (ix86_comp_type_attributes): Handle thiscall for method-functions
5678 (init_cumulative_args): Likewise.
5679 (find_drap_reg): Likewise.
5680 (ix86_static_chain): Likewise.
5681 (x86_this_parameter): Likewise.
5682 (x86_output_mi_thunk): Likewise.
5684 2011-04-01 Olivier Hainque <hainque@adacore.com>
5685 Nicolas Setton <setton@adacore.com>
5686 Eric Botcazou <ebotcazou@adacore.com>
5688 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5689 (add_gnat_descriptive_type_attribute): New function.
5690 (gen_array_type_die): Call it.
5691 (gen_enumeration_type_die): Likewise.
5692 (gen_struct_or_union_type_die): Likewise.
5693 (modified_type_die): Likewise.
5694 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5695 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5696 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5698 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5701 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5702 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5705 2011-03-17 Richard Guenther <rguenther@suse.de>
5708 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5709 origin for decls in other ltrans units.
5710 (input_varpool_node): Likewise.
5712 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5715 * expr.c (expand_assignment): Handle all possibilities
5716 if TO_RTX is CONCAT.
5717 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5718 (store_split_bit_field): If SUBREG_REG (op0) or
5719 op0 itself has smaller mode than word, return it
5720 for offset 0 and const0_rtx for out-of-bounds stores.
5721 If word is const0_rtx, skip it.
5723 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5725 * config/h8300/h8300.c (print_operand_address): Rename to...
5726 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5727 Call h8300_print_operand and h8300_print_operand_address instead of
5728 print_operand and print_operand_address. Declare.
5729 (print_operand): Renake to...
5730 (h8300_print_operand): ...this. Make static. Adjust comments.
5731 Call h8300_print_operand instead of print_operand. Declare.
5732 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5733 (h8300_register_move_cost): Likewise.
5734 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5735 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5736 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5737 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5738 * config/h8300/h8300-protos.h (print_operand): Delete.
5739 (print_operand_address): Delete.
5741 2011-04-01 Richard Henderson <rth@redhat.com>
5744 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5745 in strict mode before dwarf4. Re-order tests to early out
5746 before switching sections.
5748 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5750 * config/h8300/constraints.md: New file.
5751 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5752 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5753 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5754 * config/h8300/predicates.md (bit_operand): Likewise.
5755 (incdec_operand): Use satisfies_constraint_M and
5756 satisfies_constraint_O. Don't use C code block.
5757 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5758 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5759 (compute_mov_length): Use satisfies_constraint_G.
5760 (fix_bit_operand): Use satisfies_constraint_U.
5761 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5762 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5763 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5764 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5765 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5766 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5767 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5768 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5769 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5770 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5771 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5772 (EXTRA_MEMORY_CONSTRAINT): Delete.
5774 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5775 Michael Meissner <meissner@linux.vnet.ibm.com>
5778 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5779 operands, as per the specifications.
5781 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5782 (vec_extract_evenv4sf): Ditto.
5783 (vec_extract_evenv8hi): Ditto.
5784 (vec_extract_evenv16qi): Ditto.
5785 (vec_extract_oddv4si): Ditto.
5787 2011-03-31 Mark Wielaard <mjw@redhat.com>
5789 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5790 high_pc attribute if the CU has no associated code. Only output
5791 DW_AT_entry_pc for CU if not generating strict dwarf and
5794 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5796 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5797 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5799 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5800 * final.c (final_start_function): Call the new function rather
5801 than using a NULL argument for dwarf2out_frame_debug.
5803 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5804 that contains the prologue.
5806 * haifa-sched.c (queue_insn): New arg REASON. All callers
5807 changed. Print it in debugging output.
5809 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5811 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5812 Split most of the code into...
5813 (begin_move_insn): ... here. New function.
5814 (ebb_sched_info): Add a pointer to it.
5815 * haifa-sched.c (scheduled_insns): New static variable.
5816 (sched_extend_ready_list): Allocate it.
5817 (schedule_block): Use it to record the order of scheduled insns.
5818 Perform RTL changes to move insns only after all scheduling
5819 decisions have been made.
5820 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5821 begin_move_insn field.
5822 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5823 * sched-int.h (struct haifa_sched_info): Remove second argument
5824 from begin_schedule_ready hook. Add new member begin_move_insn.
5825 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5826 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5828 * haifa-sched.c (prune_ready_list): New function, broken out of
5830 (schedule_block): Use it.
5832 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5834 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5836 2011-04-01 Kai Tietz <ktietz@redhat.com>
5838 * config.gcc (*-*-mingw*): Allow as option the
5839 posix threading model.
5840 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5841 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5843 (CPP_SPEC): Add pthread/no-pthread handling.
5844 (LIB_SPEC): Likewise.
5845 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5846 (LIB_SPEC): Likewise.
5847 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5848 flag to pass -pthread option for shared libgcc build.
5849 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5850 for shared libgcc build.
5851 * config/i386/t-mingw-pthread: New file.
5852 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5853 New define to enable use of library pthread by default.
5854 * config/i386/mingw.opt (pthread): New driver option.
5855 (no-pthread): New driver option.
5856 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5857 * config/i386/mingw-w64.opt: Likewise.
5859 2011-04-01 Gary Funck <gary@intrepid.com>
5861 * c-decl.c (grokdeclarator): Fix formatting.
5863 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5865 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5866 instead of n_operands.
5867 (set_storage_via_setmem): Likewise.
5868 * optabs.c (maybe_gen_insn): Likewise.
5869 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5870 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5871 (mips_expand_builtin_direct): Likewise.
5872 * config/spu/spu.c (expand_builtin_args): Likewise.
5874 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5876 * recog.h (insn_data_d): Add n_generator_args.
5877 * genoutput.c (data): Likewise.
5878 (output_insn_data): Print it.
5879 (max_opno, num_dups): Delete.
5880 (scan_operands): Just fill in "d->operand[...]".
5881 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5883 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5885 * gensupport.h (pattern_stats): New structure.
5886 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5887 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5888 (max_operand_1, max_operand_vec): Delete.
5889 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5891 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5893 * emit-rtl.c (emit_pattern_after_setloc): New function.
5894 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5895 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5896 (emit_pattern_after): New function.
5897 (emit_insn_after, emit_jump_insn_after): Call it.
5898 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5899 (emit_pattern_before_setloc): New function.
5900 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5901 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5903 (emit_pattern_before): New function.
5904 (emit_insn_before, emit_jump_insn_before): Call it.
5905 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5907 2011-03-31 Richard Henderson <rth@redhat.com>
5909 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5910 (dw_separate_line_info_entry): Remove.
5911 (enum dw_line_info_opcode): New.
5912 (dw_line_info_entry): Use it.
5913 (dw_line_info_table, dw_line_info_table_p): New.
5914 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5915 (line_info_table, line_info_label_num): Remove.
5916 (line_info_table_in_use): Remove.
5917 (separate_line_info_table): Remove.
5918 (separate_line_info_table_allocated): Remove.
5919 (separate_line_info_table_in_use): Remove.
5920 (LINE_INFO_TABLE_INCREMENT): Remove.
5921 (line_info_label_num): New.
5922 (cur_line_info_table): New.
5923 (text_section_line_info, cold_text_section_line_info): New.
5924 (separate_line_info): New.
5925 (SEPARATE_LINE_CODE_LABEL): Remove.
5926 (print_dwarf_line_table): Remove.
5927 (debug_dwarf): Don't dump it.
5928 (output_one_line_info_table): New.
5929 (output_line_info): Use it.
5930 (new_line_info_table): New.
5931 (set_cur_line_info_table): New.
5932 (dwarf2out_switch_text_section): Use it.
5933 (dwarf2out_begin_function): Likewise.
5934 (push_dw_line_info_entry): New.
5935 (dwarf2out_source_line): Rewrite for new line info tables.
5936 (dwarf2out_init): Remove dead initailizations.
5938 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5940 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5942 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5943 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5944 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5945 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5946 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5947 * opt-functions.awk (flag_init, switch_bit_fields): New.
5948 (switch_flags): Don't handle flags moved to bit-fields. Don't
5949 generate CL_MISSING_OK or CL_SAVE.
5950 * optc-gen.awk: Update to generate bit-field output as well as
5952 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5953 bit-field instead of CL_REJECT_DRIVER flag.
5954 * opts-common.c (generate_canonical_option,
5955 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5956 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5957 instead of CL_REJECT_NEGATIVE flag.
5958 * toplev.c (print_switch_values): Use cl_report bit-field instead
5961 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5963 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5964 a zero minimum index only if it is redundant.
5966 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5968 PR rtl-optimization/48381
5969 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5970 instead of ira_class_hard_reg_index for calculating conflicting
5973 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5975 * cprop.c: Clean up hash table building.
5976 (reg_avail_info): Remove.
5977 (oprs_available_p): Remove.
5978 (record_last_reg_set_info): Remove.
5979 (record_last_set_info): Remove.
5980 (reg_available_p): New function.
5981 (gcse_constant_p): Do not treat unfolded conditions as constants.
5982 (make_set_regs_unavailable): New function.
5983 (hash_scan_set): Simplify with new reg_available_p.
5984 (compute_hash_table_work): Traverse insns stream only once.
5985 Do not compute reg_avail_info. Traverse insns in reverse order.
5986 Record implicit sets after recording explicit sets from the block.
5988 2011-03-31 Michael Matz <matz@suse.de>
5990 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5992 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5994 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5995 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5996 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5997 (h8300_mode_dependent_address_p): New function.
5998 (h8300_get_index): Make static.
6000 2011-03-31 Jeff Law <law@redhat.com>
6002 * reload1.c (elimination_effects): Fix typo in recent change.
6004 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6005 typo potentially leading to null pointer dereference.
6007 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6008 (setup_save_areas): Corresponding changes to avoid useless
6011 * jump.c (reversed_comparison_code_parts): Avoid successive return
6012 statements when REVERSE_CONDITION is defined.
6014 * expr.c (expand_assignment): Avoid useless assignments.
6015 (expand_expr_real_1): Likewise.
6016 (expand_expr_real_2): Avoid useless statements.
6018 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6020 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6022 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6025 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6027 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6030 * doc/tm.texi.in (TARGET_VERSION): Remove.
6031 * doc/tm.texi: Regenerate.
6032 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6033 * collect2.c (main): Don't use TARGET_VERSION.
6034 * mips-tdump.c (main): Don't use TARGET_VERSION.
6035 * mips-tfile.c (main): Don't use TARGET_VERSION.
6036 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6037 * config/rs6000/vxworksae.h: Remove.
6038 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6039 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6040 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6041 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6042 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6043 * config/arm/arm.h (TARGET_VERSION): Remove.
6044 * config/arm/coff.h (TARGET_VERSION): Remove.
6045 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6046 * config/arm/elf.h (TARGET_VERSION): Remove.
6047 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6048 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6049 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6050 * config/arm/pe.h (TARGET_VERSION): Remove.
6051 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6052 * config/arm/semi.h (TARGET_VERSION): Remove.
6053 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6054 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6055 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6056 * config/avr/avr.h (TARGET_VERSION): Remove.
6057 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6058 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6059 * config/frv/frv.h (TARGET_VERSION): Remove.
6060 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6061 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6062 * config/i386/darwin.h (TARGET_VERSION): Remove.
6063 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6064 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6065 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6066 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6067 * config/i386/gnu.h (TARGET_VERSION): Remove.
6068 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6069 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6070 * config/i386/linux.h (TARGET_VERSION): Remove.
6071 * config/i386/linux64.h (TARGET_VERSION): Remove.
6072 * config/i386/lynx.h (TARGET_VERSION): Remove.
6073 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6074 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6075 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6076 * config/i386/netware.h (TARGET_VERSION): Remove.
6077 * config/i386/nto.h (TARGET_VERSION): Remove.
6078 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6079 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6080 * config/ia64/elf.h (TARGET_VERSION): Remove.
6081 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6082 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6083 * config/ia64/linux.h (TARGET_VERSION): Remove.
6084 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6085 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6086 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6087 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6088 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6089 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6090 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6091 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6092 * config/m68k/linux.h (TARGET_VERSION): Remove.
6093 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6094 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6095 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6096 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6097 * config/mep/mep.h (TARGET_VERSION): Remove.
6098 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6099 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6100 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6101 * config/mips/linux.h (TARGET_VERSION): Remove.
6102 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6103 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6104 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6105 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6106 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6107 * config/pa/pa.h (TARGET_VERSION): Remove.
6108 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6109 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6110 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6111 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6112 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6113 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6114 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6115 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6116 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6117 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6118 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6119 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6120 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6121 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6122 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6123 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6124 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6125 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6126 * config/s390/linux.h (TARGET_VERSION): Remove.
6127 * config/s390/s390.h (TARGET_VERSION): Remove.
6128 * config/s390/tpf.h (TARGET_VERSION): Remove.
6129 * config/score/score.h (TARGET_VERSION): Remove.
6130 * config/sh/linux.h (TARGET_VERSION): Remove.
6131 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6132 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6133 * config/sh/sh.h (TARGET_VERSION): Remove.
6134 * config/sh/sh64.h (TARGET_VERSION): Remove.
6135 * config/sh/superh.h (TARGET_VERSION): Remove.
6136 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6137 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6138 * config/sparc/linux.h (TARGET_VERSION): Remove.
6139 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6140 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6141 TARGET_NAME32, TARGET_NAME): Remove.
6142 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6143 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6144 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6145 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6146 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6147 * config/spu/spu.h (TARGET_VERSION): Remove.
6148 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6149 * config/v850/v850.h (TARGET_VERSION): Remove.
6150 * config/vax/linux.h (TARGET_VERSION): Remove.
6151 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6152 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6153 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6155 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6158 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6159 frame-related from frame-unrelated adjustments to the stack pointer.
6161 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6163 * common.opt (fdebug-types-section): Move earlier.
6164 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6166 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6168 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6171 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6173 * tree.h (CASE_CHAIN): Define.
6174 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6175 (gimple_redirect_edge_and_branch): Likewise.
6177 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6180 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6183 2011-03-30 Jeff Law <law@redhat.com>
6185 * PR bootstrap/48371
6186 * reload1.c (reload): Fix botch in last change.
6188 * reload.h (struct reload): Fix typo introduced in last change.
6190 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6192 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6193 Undocumented. Remove help text.
6194 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6197 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6199 * doc/options.texi (NegativeAlias): Document.
6200 (Alias): Mention NegativeAlias.
6201 * opt-functions.awk: Handle NegativeAlias.
6202 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6203 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6204 * opts.h (CL_NEGATIVE_ALIAS): Define.
6205 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6206 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6208 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6210 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6211 mno-spe and mno-isel instead of mspe=no and -misel=no.
6213 2011-03-29 Mark Wielaard <mjw@redhat.com>
6215 * common.opt (fdebug-types-section): New flag.
6216 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6217 * dwarf2out.c (use_debug_types): New define.
6218 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6219 (print_die): Guard output of type unit signatures using
6221 (build_abbrev_table): Replace assert of dwarf_version >= 4
6222 with assert on use_debug_types.
6223 (size_of_die): Likewise.
6224 (unmark_dies): Likewise.
6225 (value_format): Decide AT_ref_external form on use_debug_types.
6226 (output_die): Replace dwarf_version version check guard with
6227 use_debug_types where appropriate.
6228 (modified_type_die): Likewise.
6229 (gen_reference_type_die): Likewise.
6230 (dwarf2out_start_source_file): Likewise.
6231 (dwarf2out_end_source_file): Likewise.
6232 (prune_unused_types_walk_attribs): Likewise.
6233 (dwarf2out_finish): Likewise.
6235 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6237 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6239 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6241 PR rtl-optimization/48332
6242 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6243 mode of input operand N and modeN to its actual mode.
6245 2011-03-30 Jeff Law <law@redhat.com>
6247 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6248 define accessor macro.
6249 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6250 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6251 (reg_equiv_init): Likewise.
6252 (reg_equivs_size): New variable.
6253 (reg_equiv_init_size): Remove.
6254 (allocate_initial_values): Move prototype to here from....
6255 * integrate.h (allocate_initial_values): Remove prototype.
6256 * integrate.c: Include reload.h.
6257 (allocate_initial_values): Corresponding changes.
6258 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6259 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6260 (update_equiv_regs): Corresponding changes.
6261 (ira): Corresponding changes.
6262 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6263 (push_secondary_reload): Corresponding changes.
6264 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6265 (make_memloc, find_reloads_address): Corresponding changes.
6266 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6267 (find_reloads_address_1): Corresponding changes.
6268 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6269 (refers_to_regno_for_reload_p): Corresponding changes.
6270 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6271 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6272 * reload1.c: Include ggc.h.
6273 (grow_reg_equivs): New function.
6274 (replace_pseudos_in, reload): Corresponding changes.
6275 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6276 (eliminate_regs_1, elimination_effects): Corresponding changes.
6277 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6278 (delete_output_reload): Likewise.
6279 * caller-save.c (mark_referenced_regs): Corresponding changes.
6280 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6281 * frv/predicates.md (frv_load_operand): Corresponding changes.
6282 * microblaze/microblaze.c (double_memory_operand): Corresponding
6284 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6285 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6286 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6287 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6288 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6290 * pa/pa.c (emit_move_sequence): Corresponding changes.
6291 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6293 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6296 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6297 structure modes. Don't check neon_vector_mem_operand for
6298 vector or structure modes.
6300 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6301 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6304 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6305 operand 1 and reshuffle the operands to match.
6306 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6308 2011-03-30 Christian Schüler <cschueler@gmx.de>
6311 * config/c.opt (F): Added 'Driver' to -F option.
6314 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6316 * config/darwin.opt: Added '-arch' option.
6318 2011-03-30 Nick Clifton <nickc@redhat.com>
6320 * config/rx/rx.md: Add peepholes and patterns to combine
6321 extending loads and simple arithmetic instructions.
6322 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6323 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6324 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6325 modes to use pre-decrement and post-increment addressing.
6326 (rx_is_restricted_memory_address): Add range checking of REG+INT
6328 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6329 (rx_memory_move_cost): Adjust cost of stores.
6330 (rx_adjust_insn_length): New function.
6332 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6335 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6336 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6337 matching arg00/arg01 types.
6339 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6341 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6342 last_location to UNKNOWN_LOCATION.
6344 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6347 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6350 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6351 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6354 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6356 (sparc_cpu): Likewise.
6357 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6360 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6364 PR rtl-optimization/48345
6365 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6366 hard regs for given mode from profitable regs when doing secondary
6369 2011-03-29 Jeff Law <law@redhat.com>
6372 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6373 do_not_duplicate field.
6374 (lookup_redirection_data): Corresponding changes.
6375 (create_duplicates): Always create a template block.
6376 (redirect_edges): Remove code which reused the original block
6377 when it was going to become unreachable code.
6378 (thread_block): Don't set do_not_duplicate field.
6380 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6382 * lto-opts.c (register_user_option_p, lto_register_user_option):
6383 Make type argument unsigned.
6384 * lto-streamer.h (lto_register_user_option): Make type argument
6386 * opth-gen.awk: Make CL_* macros unsigned.
6387 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6388 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6389 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6390 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6391 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6392 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6393 (find_opt): Make lang_mask argument unsigned.
6395 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6397 PR rtl-optimization/48331
6398 PR rtl-optimization/48334
6399 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6400 for any used algorithm.
6402 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6404 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6407 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6409 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6410 (alpha_option_override): Don't set alpha_sr_alias_set.
6411 (emit_frame_store_1): Use gen_frame_mem rather than calling
6413 (alpha_expand_epilogue): Ditto.
6415 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6417 PR tree-optimization/48290
6418 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6419 vectorization, check that relevant phis in the basic block after
6420 the inner loop are really inner loop's exit phis.
6422 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6425 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6426 (cached_dw_loc_list_def): New structure.
6427 (cached_dw_loc_list): New typedef.
6428 (cached_dw_loc_list_table): New variable.
6429 (cached_dw_loc_list_table_hash): New function.
6430 (cached_dw_loc_list_table_eq): Likewise.
6431 (add_location_or_const_value_attribute): Take a bool cache_p.
6432 Cache the list when the parameter is true.
6433 (gen_formal_parameter_die): Update caller.
6434 (gen_variable_die): Likewise.
6435 (dwarf2out_finish): Likewise.
6436 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6437 while generating debug info for the decl.
6438 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6439 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6440 (resolve_addr): Cache the result of resolving a chain of
6443 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6445 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6446 conflict object hard regset nodes have intersecting hard reg sets.
6448 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6449 after regstat_init_n_sets_and_refs.
6451 * ira.c: Add more comments at the top.
6452 (setup_stack_reg_pressure_class, setup_pressure_classes):
6453 Add comments how we compute the register pressure classes.
6454 (setup_allocno_and_important_classes): Add more comments.
6455 (setup_class_translate_array, reorder_important_classes)
6456 (setup_reg_class_relations): Add comments.
6458 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6461 * ira-color.c: Add 2011 to the Copyright line.
6462 (assign_hard_reg): Add more comments.
6463 (improve_allocation): Ditto.
6465 * ira-costs.c: Add 2011 to the Copyright line.
6466 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6468 (setup_regno_cost_classes_by_mode): Ditto.
6470 Initial patches from ira-improv branch:
6472 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6474 * ira-build.c (ira_create_object): Remove initialization of
6475 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6476 (ira_create_allocno): Remove initialization of
6477 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6478 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6479 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6480 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6481 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6482 Initialize ALLOCNO_ADD_DATA.
6483 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6484 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6486 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6487 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6489 * ira.c (ira_reallocate): Remove.
6490 (setup_pressure_classes): Call
6491 ira_init_register_move_cost_if_necessary. Use
6492 ira_register_move_cost instead of ira_get_register_move_cost.
6493 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6494 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6496 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6497 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6498 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6499 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6500 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6501 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6503 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6504 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6505 (struct allocno_color_data): New.
6506 (allocno_color_data_t): New typedef.
6507 (allocno_color_data): New definition.
6508 (ALLOCNO_COLOR_DATA): New macro.
6509 (struct object_color_data): New.
6510 (object_color_data_t): New typedef.
6511 (object_color_data): New definition.
6512 (OBJECT_COLOR_DATA): New macro.
6513 (update_copy_costs, calculate_allocno_spill_cost): Call
6514 ira_init_register_move_cost_if_necessary. Use
6515 ira_register_move_cost instead of ira_get_register_move_cost.
6516 (move_spill_restore, update_curr_costs): Ditto.
6517 (allocno_spill_priority): Make it inline.
6518 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6519 (struct coalesce_data, coalesce_data_t): New.
6520 (allocno_coalesce_data): New definition.
6521 (ALLOCNO_COALESCE_DATA): New macro.
6522 (merge_allocnos, coalesced_allocno_conflict_p): Use
6523 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6524 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6525 (coalesce_allocnos): Ditto.
6526 (setup_coalesced_allocno_costs_and_nums): Ditto.
6527 (collect_spilled_coalesced_allocnos): Ditto.
6528 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6529 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6530 (coalesce_spill_slots): Ditto.
6531 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6532 free allocno_coalesce_data.
6534 * ira-conflicts.c: Fix formatting.
6535 (process_regs_for_copy): Call
6536 ira_init_register_move_cost_if_necessary. Use
6537 ira_register_move_cost instead of ira_get_register_move_cost.
6538 (build_object_conflicts): Optimize.
6540 * ira-costs.c (record_reg_classes): Optimize. Call
6541 ira_init_register_move_cost_if_necessary. Use
6542 ira_register_move_cost, ira_may_move_in_cost, and
6543 ira_may_move_out_cost instead of ira_get_register_move_cost and
6544 ira_get_may_move_cost.
6545 (record_address_regs): Ditto.
6546 (scan_one_insn): Optimize.
6547 (find_costs_and_classes): Optimize.
6548 (process_bb_node_for_hard_reg_moves): Call
6549 ira_init_register_move_cost_if_necessary. Use
6550 ira_register_move_cost instead of ira_get_register_move_cost.
6552 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6553 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6554 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6555 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6557 (ira_initiate_emit_data, ira_finish_emit_data)
6558 (create_new_allocno): New functions.
6559 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6560 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6561 Use ira_register_move_cost instead of ira_get_register_move_cost.
6563 * ira-int.h: Fix some comments.
6564 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6565 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6566 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6567 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6569 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6570 bitfield after mode. Make hard_regno a short int. Make
6571 hard_regno short. Remove first_coalesced_allocno and
6572 next_coalesced_allocno. Move mem_optimized_dest_p,
6573 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6574 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6575 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6576 temp, colorable_p. Add new member add_data.
6577 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6578 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6579 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6580 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6581 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6582 (ALLOCNO_ADD_DATA): New macro.
6583 (ira_emit_data_t): New typedef.
6584 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6585 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6586 from struct ira_allocno.
6587 (ALLOCNO_EMIT_DATA): New macro.
6588 (ira_allocno_emit_data, allocno_emit_reg): New.
6589 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6590 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6591 (OBJECT_ADD_DATA): New macro.
6592 (ira_reallocate): Remove.
6593 (ira_initiate_emit_data, ira_finish_emit_data): New.
6594 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6595 (ira_init_register_move_cost_if_necessary): New.
6596 (ira_object_conflict_iter_next): Merge into
6597 ira_object_conflict_iter_cond.
6598 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6600 * ira-live.c (process_single_reg_class_operands): Call
6601 ira_init_register_move_cost_if_necessary. Use
6602 ira_register_move_cost instead of ira_get_register_move_cost.
6604 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6606 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6608 * ira-costs.c: Fix formatting.
6609 (cost_classes, cost_classes_num): Remove.
6610 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6611 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6612 (cost_classes_del, cost_classes_htab): New.
6613 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6614 (initiate_regno_cost_classes, setup_cost_classes): New.
6615 (setup_regno_cost_classes_by_aclass): New.
6616 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6617 (record_reg_classes): Use regno_cost_classes instead of
6618 cost_classes. Move checking opposite operand up.
6619 (record_address_regs): Use regno_cost_classes
6620 instead of cost_classes.
6621 (scan_one_insn): Ditto. Use always general register.
6622 (print_allocno_costs): Use regno_cost_classes instead of
6624 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6625 (find_costs_and_classes): Set up cost classes for each registers.
6626 Use also their mode for this. Use regno_cost_classes instead of
6628 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6630 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6631 (ira_costs, ira_set_pseudo_classes): Call
6632 initiate_regno_cost_classes and finish_regno_cost_classes.
6634 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6636 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6638 * target.def (ira_cover_classes): Remove.
6640 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6642 * doc/tm.texi.in: Ditto.
6644 * ira-conflicts.c: Remove mentioning cover classes from the file.
6645 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6646 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6648 * targhooks.c (default_ira_cover_classes): Remove.
6650 * targhooks.h (default_ira_cover_classes): Ditto.
6652 * haifa-sched.c: Remove mentioning cover classes from the file.
6653 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6654 ira_pressure_classes and ira_pressure_classes_num instead of
6655 ira_reg_class_cover_size and ira_reg_class_cover. Use
6656 sched_regno_pressure_class instead of sched_regno_cover_class.
6657 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6658 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6660 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6661 classes from the file.
6662 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6663 (struct object_hard_regs, struct object_hard_regs_node): New.
6664 (struct ira_object): New members profitable_hard_regs,
6665 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6666 (struct ira_allocno): Rename cover_class to aclass. Rename
6667 cover_class_cost and updated_cover_class_cost to class_cost and
6668 updated_class_cost. Remove splay_removed_p and
6669 left_conflict_size. Add new members colorable_p.
6670 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6671 (ALLOCNO_COLORABLE_P): New macro.
6672 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6673 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6674 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6675 (OBJECT_...): Rename parameter C to O.
6676 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6677 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6678 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6679 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6680 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6681 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6682 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6683 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6684 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6685 x_ira_reg_class_subunion.
6686 (ira_max_memory_move_cost, ira_max_register_move_cost)
6687 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6688 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6689 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6690 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6691 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6692 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6693 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6694 (ira_tune_allocno_costs_and_cover_classes): Rename to
6695 ira_tune_allocno_costs.
6696 (ira_debug_hard_regs_forest): New.
6697 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6698 (ira_object_conflict_iter_next): Fix comments.
6699 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6700 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6701 cover_class to aclass.
6702 (ira_allocate_and_accumulate_costs): Ditto.
6703 (ira_allocate_and_set_or_copy_costs): Ditto.
6705 * opts.c (decode_options): Remove ira_cover_class check.
6707 * ira-color.c: Remove mentioning cover classes from the file. Use
6708 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6709 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6710 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6711 (splay-tree.h): Remove include.
6712 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6713 before copy_freq_compare_func.
6714 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6715 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6717 (hard_regs_roots, hard_regs_node_vec): Ditto.
6718 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6719 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6720 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6721 (create_new_object_hard_regs_node): Ditto.
6722 (add_new_object_hard_regs_node_to_forest): Ditto.
6723 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6724 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6726 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6727 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6728 (remove_unused_object_hard_regs_nodes): Ditto.
6729 (enumerate_object_hard_regs_nodes): Ditto.
6730 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6731 (object_hard_regs_subnode_t): Ditto.
6732 (struct object_hard_regs_subnode): Ditto.
6733 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6734 (setup_object_hard_regs_subnode_index): Ditto.
6735 (get_object_hard_regs_subnodes_num): Ditto.
6736 (form_object_hard_regs_nodes_forest): Ditto.
6737 (finish_object_hard_regs_nodes_tree): Ditto.
6738 (finish_object_hard_regs_nodes_forest): Ditto.
6739 (allocnos_have_intersected_live_ranges_p): Rename to
6740 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6741 (pseudos_have_intersected_live_ranges_p): Rename to
6742 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6743 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6744 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6745 (update_copy_costs): Remove assert. Skip cost update if the hard
6746 reg does not belong the class.
6747 (assign_hard_reg): Process only profitable hard regs.
6748 (uncolorable_allocnos_num): Make it scalar.
6749 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6750 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6751 and ira_reg_class_max_nregs.
6752 (bucket_allocno_compare_func): Check frequency first.
6753 (sort_bucket): Add compare function as a parameter.
6754 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6755 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6756 (push_allocno_to_stack): Rewrite for checking new allocno
6758 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6759 (push_only_colorable): Pass new parameter to sort_bucket.
6760 (push_allocno_to_spill): Remove.
6761 (allocno_spill_priority_compare): Make it inline and rewrite.
6762 (splay_tree_allocate, splay_tree_free): Remove.
6763 (allocno_spill_sort_compare): New function.
6764 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6765 build and use splay tree. Choose first allocno in uncolorable
6766 allocno bucket to spill. Remove setting spill cost.
6767 (all_conflicting_hard_regs): Remove.
6768 (setup_allocno_available_regs_num): Check only profitable hard
6769 regs. Print info about hard regs nodes.
6770 (setup_allocno_left_conflicts_size): Remove.
6771 (put_allocno_into_bucket): Don't call
6772 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6773 (improve_allocation): New.
6774 (color_allocnos): Call setup_profitable_hard_regs,
6775 form_object_hard_regs_nodes_forest, improve_allocation,
6776 finish_object_hard_regs_nodes_forest. Setup spill cost.
6777 (print_loop_title): Use pressure classes.
6778 (color_allocnso): Ditto.
6779 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6780 and allocnos_for_spilling.
6781 (ira_sort_regnos_for_alter_reg): Don't setup members
6782 {first,next}_coalesced_allocno.
6783 (color): Remove allocating and freeing removed_splay_allocno_vec.
6784 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6785 prohibited_class_mode_regs.
6787 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6789 (update_allocno_pressure_excess_length): Use pressure classes.
6790 (inc_register_pressure, dec_register_pressure): Check for pressure
6792 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6793 pressure class. Use ira_reg_class_nregs instead of
6794 ira_reg_class_max_nregs.
6795 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6796 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6797 (single_reg_class): Use ira_reg_class_nregs instead of
6798 ira_reg_class_max_nregs.
6799 (process_bb_node_lives): Use pressure classes.
6801 * ira-emit.c: Remove mentioning cover classes from the file. Use
6802 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6803 (change_loop): Use pressure classes.
6804 (modify_move_list): Call ira_set_allocno_class instead of
6805 ira_set_allocno_cover_class.
6807 * ira-build.c: Remove mentioning cover classes from the file. Use
6808 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6809 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6810 ALLOCNO_UPDATED_CLASS_COST instead of
6811 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6812 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6813 (ira_create_allocno): Remove initialization of
6814 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6815 ALLOCNO_COLORABLE_P.
6816 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6817 Update conflict regs for the objects.
6818 (create_cap_allocno): Remove assert. Don't propagate
6819 ALLOCNO_AVAILABLE_REGS_NUM.
6820 (ira_free_allocno_costs): New function.
6821 (finish_allocno): Change a part of code into call of
6822 ira_free_allocno_costs.
6823 (low_pressure_loop_node_p): Use pressure classes.
6824 (object_range_compare_func): Don't compare classes.
6825 (setup_min_max_conflict_allocno_ids): Ditto.
6827 * loop-invariant.c: Remove mentioning cover classes from the file.
6828 Use ira_pressure_classes and ira_pressure_classes_num instead of
6829 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6830 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6831 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6832 Use reg_allocno_class instead of reg_cover_class.
6833 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6834 STACK_REG_COVER_CLASS.
6835 (get_regno_cover_class): Rename to get_regno_pressure_class.
6836 (move_loop_invariants): Initialize and finalize regstat.
6838 * ira.c: Remove mentioning cover classes from the file. Add
6839 comments about coloring without cover classes. Use ALLOCNO_CLASS
6840 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6841 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6842 setup_class_subset_and_memory_move_costs.
6843 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6844 (setup_cover_and_important_classes): Rename to
6845 setup_allocno_and_important_classes.
6846 (setup_class_translate_array): New.
6847 (setup_class_translate): Call it for allocno and pressure classes.
6848 (cover_class_order): Rename to allocno_class_order.
6849 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6850 of ira_class_translate.
6851 (reorder_important_classes): Set up ira_important_class_nums.
6852 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6853 (print_class_cover): Rename to print_classes. Add parameter.
6854 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6855 Print pressure classes too.
6856 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6857 setup_reg_subclasses.
6858 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6859 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6860 (setup_prohibited_class_mode_regs): Use
6861 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6862 (clarify_prohibited_class_mode_regs): New function.
6863 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6864 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6865 (ira_init_once): Initialize them.
6866 (free_register_move_costs): Process them.
6867 (ira_init): Move calls of find_reg_classes and
6868 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6869 Call clarify_prohibited_class_mode_regs.
6870 (ira_no_alloc_reg): Remove.
6871 (too_high_register_pressure_p): Use pressure classes.
6873 * sched-deps.c: Remove mentioning cover classes from the file.
6874 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6875 ira_pressure_classes and ira_pressure_classes_num instead of
6876 ira_reg_class_cover_size and ira_reg_class_cover.
6877 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6878 sched_regno_pressure_class instead of sched_regno_cover_class.
6879 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6880 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6882 * ira.h: Add 2010 to Copyright.
6883 (ira_no_alloc_reg): Remove external.
6884 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6885 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6886 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6887 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6888 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6889 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6890 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6891 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6892 x_ira_no_alloc_regs.
6893 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6894 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6895 ira_allocno_classes_num and ira_allocno_classes.
6896 (ira_class_translate): Rename to ira_allocno_class_translate.
6897 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6898 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6899 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6900 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6901 (ira_no_alloc_regs): New.
6903 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6904 classes from the file. Use ALLOCNO_CLASS instead of
6905 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6906 ALLOCNO_COVER_CLASS_COST.
6907 (regno_cover_class): Rename to regno_aclass.
6908 (record_reg_classes): Use ira_reg_class_subunion instead of
6909 ira_reg_class_union.
6910 (record_address_regs): Check overflow.
6911 (scan_one_insn): Ditto.
6912 (print_allocno_costs): Print total mem cost fore regional allocation.
6913 (print_pseudo_costs): Use REG_N_REFS.
6914 (find_costs_and_classes): Use classes intersected with them on the
6915 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6916 ira_reg_class_union. Use ira_allocno_class_translate and
6917 regno_aclass instead of ira_class_translate and regno_cover_class.
6918 Modify code for finding regno_aclass. Setup preferred classes for
6920 (setup_allocno_cover_class_and_costs): Rename to
6921 setup_allocno_class_and_costs. Use regno_aclass instead of
6922 regno_cover_class. Use ira_set_allocno_class instead of
6923 ira_set_allocno_cover_class.
6924 (init_costs, finish_costs): Use regno_aclass instead of
6926 (ira_costs): Use setup_allocno_class_and_costs instead of
6927 setup_allocno_cover_class_and_costs.
6928 (ira_tune_allocno_costs_and_cover_classes): Rename to
6929 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6930 by processing objects. Use ira_reg_class_max_nregs instead of
6931 ira_reg_class_nregs.
6933 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6935 * sched-int.h: Remove mentioning cover classes from the file.
6936 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6938 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6939 classes from the file.
6940 (struct reg_pref): Rename coverclass into allocnoclass.
6941 (reg_cover_class): Rename to reg_allocno_class.
6943 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6945 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6947 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6949 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6951 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6953 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6955 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6957 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6959 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6961 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6963 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6964 (i386_ira_cover_classes): Ditto.
6966 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6968 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6970 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6972 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6974 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6976 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6978 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6979 (mips_ira_cover_classes): Ditto.
6981 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6983 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6985 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6987 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6989 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6991 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6992 (IRA_COVER_CLASSES_VSX): Ditto.
6994 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6995 (rs6000_ira_cover_classes): Ditto.
6997 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6999 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7001 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7003 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7005 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7007 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7009 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7011 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7013 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7015 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7017 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7020 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7021 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7022 dw_fde_unlikely_section_end_label, cold_in_std_section,
7023 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7024 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7026 (output_fde): Use dw_fde_second_{begin,end} if second is
7027 true, otherwise dw_fde_{begin,end}.
7028 (output_call_frame_info): Test dw_fde_second_begin != NULL
7029 instead of dw_fde_switched_sections.
7030 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7031 fields, initialize new fields. Initialize in_std_section
7032 unconditionally from the first partition.
7033 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7034 dw_fde_second_begin is non-NULL.
7035 (dwarf2out_switch_text_section): Stop initializing removed
7036 dw_fde_struct fields, initialize new fields, initialize
7037 also dw_fde_end here. Set dw_fde_switch_cfi even when
7038 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7039 (struct var_loc_list_def): Add last_before_switch field.
7040 (arange_table, arange_table_allocated, arange_table_in_use,
7041 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7042 (size_of_aranges): Count !in_std_section and !second_in_std_section
7043 hunks in fdes, instead of looking at arange_table_in_use.
7044 (output_aranges): Add aranges_length argument, don't call
7045 size_of_aranges here. Instead of using aranges_table*
7046 emit ranges for fdes when !in_std_section resp.
7047 !second_in_std_section.
7048 (dw_loc_list): Break ranges crossing section switch.
7049 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7050 use dw_fde_second_end instead of dw_fde_end as end of last range.
7051 (gen_subprogram_die): Don't call add_arange. Use
7052 dw_fde_{begin,end} for first partition and if switched
7053 section dw_fde_second_{begin,end} for the second.
7054 (var_location_switch_text_section_1,
7055 var_location_switch_text_section): New functions.
7056 (dwarf2out_begin_function): Initialize cold_text_section even
7057 when function_section () isn't text_section.
7058 (prune_unused_types): Don't walk arange_table.
7059 (dwarf2out_finish): Don't needlessly test
7060 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7061 If info_section_emitted, call size_of_aranges and if it indicates
7062 non-empty .debug_aranges, call output_aranges with the computed
7063 size. Stop using removed dw_fde_struct fields, use
7064 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7068 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7069 create ENTRY_VALUE if incoming or address of incoming's MEM
7071 * dwarf2out.c (mem_loc_descriptor): Don't emit
7072 DW_OP_GNU_entry_value of DW_OP_fbreg.
7073 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7074 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7075 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7076 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7078 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7079 is a REG_P or MEM_P with REG_P address, compute hash directly
7080 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7081 (preserve_only_constants): Don't clear VALUES forwaring
7082 ENTRY_VALUE to some other VALUE.
7084 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7086 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7089 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7091 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7092 block before expanding the statement.
7093 (expand_gimple_stmt_1): Likewise. Set them here...
7094 (expand_gimple_stmt): ...and not here. Tidy.
7095 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7098 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7100 * Makefile.in: New rule for cprop.o.
7101 * gcse.c: Move constant/copy propagation to cprop.c.
7102 (compute_local_properties): Only handle expression tables.
7103 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7104 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7105 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7106 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7107 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7108 compute_cprop_data, find_used_regs, try_replace_reg,
7109 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7110 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7111 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7112 find_bypass_set, reg_killed_on_edge, bypass_block,
7113 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7114 execute_rtl_cprop, pass_rtl_cprop): Move to...
7115 * cprop.c: ...here. New file, constant/copy propagation for RTL
7116 moved from gcse.c to here with minor cleanups in duplicated code.
7118 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7120 * config/i386/i386.c (flag_opts): Fix a typo in
7121 -mavx256-split-unaligned-store.
7123 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7125 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7126 LIBCALL_VALUE): Remove macros.
7127 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7128 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7129 (h8300_function_value, h8300_libcall_value,
7130 h8300_function_value_regno_p): New functions.
7132 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7134 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7136 2011-03-28 Jeff Law <law@redhat.com>
7138 * tree-ssa-threadupdate.c (redirect_edges): Call
7139 create_edge_and_update_destination_phis as needed.
7140 (create_edge_and_update_destination_phis): Accept new BB argument.
7141 All callers updated.
7142 (thread_block): Do not update the profile when threading around
7143 intermediate blocks.
7144 (thread_single_edge): Likewise.
7145 (determine_bb_domination_status): If BB is not a successor of the
7146 loop header, return NONDOMINATING.
7147 (register_jump_thread): Note when we register a jump thread around
7148 an intermediate block.
7149 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7150 (thread_across_edge): Use it.
7152 2011-03-28 Tristan Gingold <gingold@adacore.com>
7154 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7155 when for_return is 2.
7157 2011-03-28 Jeff Law <law@redhat.com>
7159 * var-tracking.c (canonicalize_values_mark): Delete unused
7161 (canonicalize_values_star, set_variable_part): Likewise.
7162 (clobber_variable_part, delete_variable_part): Likewise.
7164 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7166 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7168 2011-03-28 Martin Jambor <mjambor@suse.cz>
7170 * tree-inline.c (expand_call_inline): Do not check that destination
7172 (optimize_inline_calls): Assert that destination node is analyzed.
7173 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7174 not call tree_lowering_passes.
7175 * cgraph.h (cgraph_analyze_function): Declare.
7176 * cgraphunit.c (cgraph_analyze_function): Make public.
7178 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7180 * config/sparc/sparc-opts.h: New.
7181 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7182 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7183 (sparc_option_override): Store processor_type enumeration rather
7184 than string in cpu_default. Remove name and enumeration from
7185 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7186 without using sparc_select. Use target_flags_explicit instead of
7188 * config/sparc/sparc.h (enum processor_type): Move to
7190 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7191 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7192 HeaderInclude entry.
7193 (mcpu=, mtune=): Use Var and Enum.
7194 (sparc_processor_type): New Enum and EnumValue entries.
7196 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7197 Iain Sandoe <iains@gcc.gnu.org>
7200 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7202 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7204 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7205 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7206 Insert new statements at it in lieu of STMT.
7207 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7208 * tree-vect-stmts.c (vectorizable_store): Likewise.
7209 (vectorizable_load): Likewise.
7211 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7213 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7218 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7220 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7221 unaligned 256bit load/store.
7222 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7223 (*avx_movdqu<avxmodesuffix>): Likewise.
7225 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7228 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7229 * config/pa/pa.md (iordi3): Use new predicate in expander.
7232 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7234 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7235 FUNCTION_VALUE_REGNO_P): Remove macros.
7236 * config/mips/mips-protos.h (mips_function_value): Remove.
7237 * config/mips/mips.c (mips_function_value): Rename to...
7238 (mips_function_value_1): ... this. Make static. Handle receiving
7239 the function type in 'fn_decl_or_type' argument.
7240 (mips_function_value, mips_libcall_value,
7241 mips_function_value_regno_p): New function.
7242 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7243 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7245 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7247 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7248 and -mavx256-split-unaligned-store.
7249 (ix86_option_override_internal): Split 32-byte AVX unaligned
7250 load/store by default.
7251 (ix86_avx256_split_vector_move_misalign): New.
7252 (ix86_expand_vector_move_misalign): Use it.
7254 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7255 -mavx256-split-unaligned-store.
7257 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7258 256bit load/store. Generate unaligned store on misaligned memory
7260 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7262 (*avx_movdqu<avxmodesuffix>): Likewise.
7264 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7265 -mavx256-split-unaligned-store.
7267 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7270 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7273 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7275 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7276 opno arguments with an expand_operand. Use create_input_operand.
7277 (mips_prepare_builtin_target): Delete.
7278 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7280 (mips_expand_builtin_direct): Use create_output_operand and
7281 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7282 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7283 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7285 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7287 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7289 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7291 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7293 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7294 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7295 basic blocks and call commit_edge_insertions directly.
7296 (fixup_abnormal_edges): Move from here to...
7297 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7298 on the edges and return whether some have actually been inserted.
7299 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7302 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7304 PR rtl-optimization/48144
7305 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7306 (merge_expr_data): ... here.
7307 (av_set_intersect): Rename to av_set_code_motion_filter.
7308 Update all callers. Call merge_history_vect when an expression
7309 is found in both sets.
7310 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7312 2011-03-26 Alan Modra <amodra@gmail.com>
7314 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7315 cmodel medium addresses.
7316 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7317 64-bit gpr loads and stores.
7318 (rs6000_secondary_reload_ppc64): New function.
7319 * config/rs6000/rs6000-protos.h: Declare it.
7320 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7322 2011-03-26 Alan Modra <amodra@gmail.com>
7325 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7326 GNU Go in traceback table.
7328 2011-03-25 Richard Henderson <rth@redhat.com>
7330 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7331 if there are exactly 6 operands.
7332 (set_storage_via_setmem): Similarly.
7334 2011-03-25 Kai Tietz <ktietz@redhat.com>
7336 * collect2.c (write_c_file_stat): Handle backslash
7337 as right-hand directory separator.
7338 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7339 checking just for slash.
7340 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7341 instead of checking for trailing slash.
7342 * gcc.c (record_temp_file): Use filename_cmp instead
7344 (do_spec_1): Likewise.
7345 (replace_outfile_spec_function): Likewise.
7346 (is_directory): Use filename_ncmp instead of strncmp.
7347 (print_multilib_info): Likewise.
7348 * gcov.c (find_source): Use filename_cmp instead
7350 (make_gcov_file_name): Fix order of slash/backslash
7352 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7353 (add_standard_paths): Likewise.
7354 * mips-tfile.c (saber_stop): Handle backslash.
7355 * prefix.c (update_path): Use filename_ncmp instead of
7357 * profile.c (output_location): Use filename_cmp instead
7359 * read-md.c (handle_toplevel_file): Handle backslash.
7360 * tlink.c (frob_extension): Likewise.
7361 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7363 * tree-dump.c (dequeue_and_dump): Handle backslash.
7364 * tree.c (get_file_function_name): Likewise.
7365 * gengtype.c (read_input_list): Likewise.
7366 (get_file_realbasename): Likewise.
7367 (get_output_file_with_visibility): Use filename_cmp
7370 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7372 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7375 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7377 * fold-const.c (expr_location_or): New function.
7378 (fold_truth_not_expr): Call it.
7380 2011-03-25 Jeff Law <law@redhat.com>
7382 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7384 * c-family/c-common.c (def_fn_type): Likewise.
7385 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7386 * emit-rtl.c (gen_rtvec): Likewise.
7387 * lto/lto-lang.c (def_fn_type): Likewise.
7389 2011-03-25 Richard Guenther <rguenther@suse.de>
7391 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7392 also generate copies.
7393 (fini_copy_prop): Handle constant values properly.
7395 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7397 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7398 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7399 (hash_loc_operands, compare_loc_operands): Handle
7400 DW_OP_GNU_entry_value.
7402 2011-03-25 Kai Tietz <ktietz@redhat.com>
7404 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7405 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7406 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7407 comment and use macro TARGET_64BIT_MS_ABI instead.
7408 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7409 and change default behavior for 32-bit MS_ABI.
7410 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7411 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7413 (ix86_cfun_abi): Likewise.
7414 (ix86_maybe_switch_abi): Adjust comment.
7415 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7416 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7417 instead of checking for SYSV_ABI.
7418 (ix86_nsaved_sseregs): Likewise.
7419 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7421 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7422 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7423 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7424 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7425 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7427 2011-03-25 Richard Guenther <rguenther@suse.de>
7429 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7430 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7431 (verify_gimple): Remove.
7432 * tree-cfg.c (verify_gimple_call): Merge verification
7434 (verify_gimple_phi): Merge verification from verify_stmts.
7435 (verify_gimple_label): New function.
7436 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7437 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7438 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7439 (verify_stmts): Rename to verify_gimple_in_cfg.
7440 (verify_gimple_in_cfg): New function.
7441 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7442 * tree-ssa.c (verify_ssa): Likewise.
7443 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7445 2011-03-25 Richard Guenther <rguenther@suse.de>
7447 * passes.c (init_optimization_passes): Add FRE pass after
7450 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7451 Andrew Stubbs <ams@codesourcery.com>
7453 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7455 (arm_movdi_vfp_cortexa8): New pattern.
7456 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7457 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7458 instructions when tuning for Cortex-A8. Set attribute "arch".
7459 * config/arm/arm.md: Move include arm-tune.md up a bit.
7460 (define_attr "arch"): Add "onlya8" and "nota8" values.
7461 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7463 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7467 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7469 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7470 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7471 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7472 * passes.c (init_optimization_passes): Move
7473 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7475 2011-03-25 Kai Tietz <ktietz@redhat.com>
7477 * c-typeck.c (comptypes_internal): Replace target
7478 hook call of comp_type_attributes by version in tree.c file.
7479 * gimple.c (gimple_types_compatible_p_1): Likewise.
7480 * tree-ssa.c (useless_type_conversion_p): Likewise.
7481 * tree.c (build_type_attribute_qual_variant): Likewise.
7482 (attribute_value_equal): New static helper function.
7483 (comp_type_attributes): New function.
7484 (merge_attributes): Use attribute_value_equal for comparison.
7485 (attribute_list_contained): Likewise.
7486 * tree.h (comp_type_attributes): New prototype.
7488 2011-03-25 Richard Guenther <rguenther@suse.de>
7490 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7491 of complex types at -O0.
7492 (verify_gimple_assign_binary): Likewise.
7493 (verify_gimple_assign_ternary): Likewise.
7495 2011-03-24 Mark Wielaard <mjw@redhat.com>
7497 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7498 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7500 2011-03-24 Mark Wielaard <mjw@redhat.com>
7503 * dwarf2out.c (output_abbrev_section): Only write table when
7504 abbrev_die_table_in_use > 1.
7506 2011-02-24 Richard Henderson <rth@redhat.com>
7508 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7509 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7510 (alpha_expand_unaligned_load_words): Use extql.
7511 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7512 (emit_insxl): Handle all modes for consistency.
7514 2011-02-24 Richard Henderson <rth@redhat.com>
7516 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7517 (alpha_expand_unaligned_load): Likewise.
7518 (alpha_expand_unaligned_store): Likewise.
7519 (alpha_expand_unaligned_load_words): Likewise.
7520 (alpha_expand_unaligned_store_words): Likewise.
7521 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7522 (alpha_split_lock_test_and_set_12): Likewise.
7523 (print_operand, alpha_fold_builtin_extxx): Likewise.
7524 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7525 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7526 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7527 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7528 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7529 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7530 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7531 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7532 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7533 (extwl, extll, extql): Similarly.
7534 (inswh, inslh, insqh): Similarly.
7535 (mskbl, mskwl, mskll, mskql): Similarly.
7536 (mskwh, msklh, mskqh): Similarly.
7538 2011-02-24 Richard Henderson <rth@redhat.com>
7540 * config/alpha/alpha.md (attribute isa): Add er, ner.
7541 (attribute enabled): Handle them.
7542 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7544 2011-02-24 Richard Henderson <rth@redhat.com>
7546 * config/alpha/alpha.md (attribute isa): Add vms.
7547 (attribute enabled): Handle it.
7548 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7549 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7550 (*movtf): Rename from *movtf_internal for consistency.
7551 (*movsi): Merge with *movsi_nt_vms.
7552 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7553 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7554 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7555 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7557 2011-02-24 Richard Henderson <rth@redhat.com>
7559 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7560 (extendqisi2, extendhisi2): Likewise.
7561 (extendqidi2): Simplify BWX/non-BWX expansions.
7562 (extendhidi2): Similarly.
7564 2011-02-24 Richard Henderson <rth@redhat.com>
7566 * config/alpha/alpha.md (attribute isa): New.
7567 (attribute enabled): New.
7568 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7569 (zero_extendqisi2, zero_extendqidi2): Similarly.
7570 (zero_extendhisi2, zero_extendhidi2): Similarly.
7571 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7573 2011-02-24 Richard Henderson <rth@redhat.com>
7575 * config/alpha/predicates.md (input_operand): Revert last change;
7576 update comment to mention 32-bit VMS rather than Windows.
7578 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7580 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7581 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7582 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7583 * passes.c (init_optimization_passes): Move
7584 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7586 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7588 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7590 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7592 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7595 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7598 * simplify-rtx.c (simplify_const_unary_operation): Call
7599 real_convert when changing mode class with FLOAT_EXTEND.
7601 2011-03-24 Nick Clifton <nickc@redhat.com>
7603 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7604 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7605 * config/rx/rx.c (rx_option_override): Set align_jumps,
7606 align_loops and align_labels if not set by the user.
7607 (rx_align_for_label): New function.
7608 (rx_max_skip_for_label): New function.
7609 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7610 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7611 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7612 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7613 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7615 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7617 PR rtl-optimization/48263
7618 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7619 and original commutative_p handling. Use maybe_gen_insn.
7621 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7623 * reload.c (find_reloads_subreg_address): Add address_reloaded
7624 parameter and return true there if the full address has been
7626 (find_reloads_toplev): Pass address_reloaded flag.
7627 (find_reloads_address_1): Don't use address_reloaded parameter.
7629 2011-03-24 Jeff Law <law@redhat.com>
7631 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7632 unused variable "ann".
7633 (remove_unused_locals): Likewise.
7635 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7638 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7641 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7643 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7644 for invalid symbolic addresses.
7645 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7648 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7650 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7651 the argument in calls to fold_truth_not_expr.
7653 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7655 * tree.c (record_node_allocation_statistics): New function.
7656 (make_node_stat, copy_node_stat, build_string): Call it.
7657 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7658 (build1_stat, build_omp_clause): Likewise.
7660 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7662 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7665 2011-03-24 Richard Guenther <rguenther@suse.de>
7667 PR tree-optimization/48271
7668 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7669 blocks that still exist.
7671 2011-03-24 Richard Guenther <rguenther@suse.de>
7673 PR tree-optimization/48270
7674 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7675 not free datarefs before ddrs.
7677 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7679 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7680 from the address built for a reference with variable offset.
7682 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7685 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7686 alternatives that can be handled with movq or movabsq insn.
7687 (*movdf_internal): Disable for !TARGET_64BIT.
7688 (*movdf_internal_nointeger): Ditto.
7689 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7691 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7693 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7694 (FUNCTION_ARG_ADVANCE): Likewise.
7695 * tm.texi.in: Change references to them to hook references.
7696 * tm.texi: Regenerate.
7697 * targhooks.c (default_function_arg): Eliminate check for target macro.
7698 (default_function_incoming_arg): Likewise.
7699 (default_function_arg_advance): Likewise.
7700 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7701 (function_arg_advance): Likewise.
7702 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7704 2011-03-24 Richard Guenther <rguenther@suse.de>
7707 * tree-object-size.c (addr_object_size): Do not double-account
7708 for MEM_REF offsets.
7710 2011-03-24 Diego Novillo <dnovillo@google.com>
7712 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7713 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7714 (lto_input_data_block): Move from lto-opts.c. Make extern.
7716 (lto_input_string): Rename from input_string. Make extern.
7718 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7719 output_string_with_length.
7720 Output 0 to indicate a non-NULL string. Update all callers to
7722 (lto_output_string): Rename from output_string. Make extern.
7724 (lto_output_decl_state_streams): Make extern.
7725 (lto_output_decl_state_refs): Make extern.
7726 * lto-streamer.h (lto_input_string): Declare.
7727 (lto_input_data_block): Declare.
7728 (lto_output_string): Declare.
7729 (lto_output_string_with_length): Declare.
7730 (lto_output_decl_state_streams): Declare.
7731 (lto_output_decl_state_refs): Declare.
7733 2011-03-24 Richard Guenther <rguenther@suse.de>
7735 PR tree-optimization/46562
7736 * tree.c (build_invariant_address): New function.
7737 * tree.h (build_invariant_address): Declare.
7738 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7739 a renamed function moved ...
7740 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7741 Take valueization callback parameter.
7742 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7743 * gimple-fold.h: New file.
7744 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7745 (ccp_fold, fold_const_aggregate_ref,
7746 fold_ctor_reference, fold_nonarray_ctor_reference,
7747 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7748 get_base_constructor): Move ...
7749 * gimple-fold.c: ... here.
7750 (gimple_fold_stmt_to_constant_1): New function
7751 split out from ccp_fold. Take a valueization callback parameter.
7752 Valueize all operands.
7753 (gimple_fold_stmt_to_constant): New wrapper function.
7754 (fold_const_aggregate_ref_1): New function split out from
7755 fold_const_aggregate_ref. Take a valueization callback parameter.
7756 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7757 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7758 invariant POINTER_PLUS_EXPRs to invariant form.
7759 (vn_valueize): New function.
7760 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7761 * tree-vrp.c (vrp_valueize): New function.
7762 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7763 to fold statements to constants.
7764 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7765 function declarations.
7766 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7767 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7769 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7771 * config/h8300/predicates.md (jump_address_operand): Fix register
7774 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7776 * doc/invoke.texi (max-stores-to-sink): Document.
7777 * params.h (MAX_STORES_TO_SINK): Define.
7778 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7779 if either vectorization or if-conversion is disabled.
7780 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7781 tree-vect-data-refs.c vect_equal_offsets.
7782 (dr_equal_offsets_p): New function.
7783 (find_data_references_in_bb): Remove static.
7784 * tree-data-ref.h (find_data_references_in_bb): Declare.
7785 (dr_equal_offsets_p): Likewise.
7786 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7787 (vect_drs_dependent_in_basic_block): Update calls to
7789 (vect_check_interleaving): Likewise.
7790 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7791 (cond_if_else_store_replacement): Rename to...
7792 (cond_if_else_store_replacement_1): ... this. Change arguments and
7794 (cond_if_else_store_replacement): New function.
7795 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7796 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7798 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7801 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7802 to subtract lower bound instead of GEN_INT().
7804 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7809 * doc/extend.texi (Alignment): Move section to match order in TOC.
7810 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7811 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7813 2011-03-23 Jeff Law <law@redhat.com>
7815 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7816 before removing the edge.
7818 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7819 it may have been freed by redirect_branch_edge or
7820 redirect_edge_succ_nodup.
7822 2011-03-23 Richard Guenther <rguenther@suse.de>
7824 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7825 (check_va_list_escapes): Likewise.
7826 (check_all_va_list_escapes): Likewise.
7828 2011-03-23 Richard Guenther <rguenther@suse.de>
7830 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7831 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7832 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7833 (alias.o): Likewise.
7834 (ipa-type-escape.o): Remove.
7835 (ipa-struct-reorg.o): Likewise.
7836 (GTFILES): Remove ipa-struct-reorg.c.
7837 * alias.c: Do not include ipa-type-escape.h.
7838 * tree-ssa-alias.c: Likewise.
7839 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7840 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7841 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7842 and ipa-type-escape passes.
7843 * tree-pass.h (pass_ipa_type_escape): Remove.
7844 (pass_ipa_struct_reorg): Likewise.
7845 * ipa-struct-reorg.h: Remove.
7846 * ipa-struct-reorg.c: Likewise.
7847 * ipa-type-escape.h: Likewise.
7848 * ipa-type-escape.c: Likewise.
7849 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7850 (--param struct-reorg-cold-struct-ratio): Likewise.
7851 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7852 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7853 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7855 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7857 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7858 cpu attribute value.
7859 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7860 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7861 * config/s390/s390.c (processor_flags_table): New constant array.
7862 (s390_handle_arch_option): Remove.
7863 (s390_handle_option): Remove s390_handle_arch_option invocations
7864 and OPT_mwarn_framesize_ handling.
7865 (s390_option_override): Remove s390_handle_arch_option invocation.
7866 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7868 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7869 * config/s390/s390.opt (s390_tune, s390_arch)
7870 (march=): Replace s390_arch_option enum and values with
7871 processor_type. Set variable name to s390_arch. Set
7872 initialization value.
7873 (mtune=): Replace s390_arch_option with processor_type. Set
7874 variable name to s390_tune. Set initialization value.
7876 2011-03-23 Julian Brown <julian@codesourcery.com>
7878 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7879 accesses which are not naturally aligned.
7881 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7884 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7886 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7888 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7889 parameter from "int" to "enum insn_code".
7890 (expand_operand_type): New enum.
7891 (expand_operand): New structure.
7892 (create_expand_operand): New function.
7893 (create_fixed_operand, create_output_operand): Likewise
7894 (create_input_operand, create_convert_operand_to): Likewise.
7895 (create_convert_operand_from, create_address_operand): Likewise.
7896 (create_integer_operand): Likewise.
7897 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7898 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7899 (expand_insn, expand_jump_insn): Likewise.
7900 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7901 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7902 (expand_movstr, expand_builtin___clear_cache): Likewise.
7903 (expand_builtin_lock_release): Likewise.
7904 * explow.c (allocate_dynamic_stack_space): Likewise.
7905 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7906 and use the default handling in that case.
7907 * expmed.c (check_predicate_volatile_ok): Delete.
7908 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7909 (emit_cstore): Likewise.
7910 * expr.c (emit_block_move_via_movmem): Likewise.
7911 (set_storage_via_setmem, expand_assignment): Likewise.
7912 (emit_storent_insn, try_casesi): Likewise.
7913 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7914 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7915 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7916 (expand_twoval_unop, expand_twoval_binop): Likewise.
7917 (expand_unop_direct, emit_indirect_jump): Likewise.
7918 (emit_conditional_move, vector_compare_rtx): Likewise.
7919 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7920 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7921 (expand_sync_lock_test_and_set): Likewise.
7922 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7923 (emit_unop_insn): Likewise.
7924 (expand_copysign_absneg): Change icode to an insn_code.
7925 (create_convert_operand_from_type): New function.
7926 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7927 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7928 (expand_insn, expand_jump_insn): Likewise.
7929 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7930 than const_int_operand for operand 2.
7932 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7934 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7937 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7939 * emit-rtl.c (emit_pattern_before_noloc): New function.
7940 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7941 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7942 (emit_pattern_after_noloc): New function.
7943 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7944 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7946 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7948 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7949 (__ffsDI2): Likewise.
7951 2011-03-22 Richard Henderson <rth@redhat.com>
7953 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7954 of !TARGET_ABI_OPEN_VMS.
7955 (alpha_trampoline_init, alpha_start_function): Likewise.
7956 (alpha_expand_epilogue, alpha_file_start): Likewise.
7957 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7958 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7959 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7960 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7961 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7963 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7965 * config/s390/s390-opts.h: New.
7966 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7967 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7968 s390_stack_guard): Remove.
7969 (s390_handle_arch_option): Return void. Take enum
7970 s390_arch_option value instead of string and searching array.
7971 (s390_handle_option): Don't assert that global structures are in
7972 use. Access variables via opts pointer. Use error_at. Don't use
7973 sscanf for -mstack-guard= or -mstack-size=. Update call to
7974 s390_handle_arch_option.
7975 (s390_option_override): Update call to s390_handle_arch_option.
7976 (s390_emit_prologue): Use %d format for s390_stack_size in
7977 diagnostic. Use %wd for HOST_WIDE_INT.
7978 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7979 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7980 * config/s390/s390.opt (config/s390/s390-opts.h): New
7981 HeaderInclude entry.
7982 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7983 s390_arch_flags, s390_warn_framesize): New Variable entries.
7984 (s390_arch_option): New Enum and EnumValue entries.
7985 (march=): Use Enum instead of Var.
7986 (mstack-guard=, mstack-size=): Use UInteger and Var.
7989 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7991 * config/score/score.c (score_handle_option): Don't assert that
7992 global structures are in use. Access target_flags via opts
7993 pointer. Use value of -march= option to determine target_flags
7995 * config/score/score.opt (march=): Use Enum.
7996 (score_arch): New Enum and EnumValue entries.
7998 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8000 * config/mep/mep.c (option_mtiny_specified): Remove.
8001 (mep_option_override): Move register handling for -mivc2 from
8002 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8003 instead of option_mtiny_specified.
8004 (mep_handle_option): Access target_flags via opts pointer. Don't
8005 assert that global structures are in use. Defer part of -mivc2
8006 handling and move it to mep_option_override.
8007 * config/mep/mep.opt (IVC2): New Mask entry.
8008 (mivc2): Use Var and Defer instead of Mask.
8010 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8012 * config/v850/v850-opts.h: New.
8013 * config/v850/v850.c (small_memory): Replace with
8014 small_memory_physical_max array. Make that array static const.
8015 (v850_handle_memory_option): Take integer value of argument. Take
8016 gcc_options pointer, option text and location. Return void.
8017 Update for changes to small memory structures.
8018 (v850_handle_option): Access target_flags via opts pointer. Don't
8019 assert that global structures are in use. Update calls to
8020 v850_handle_memory_option.
8021 (v850_encode_data_area): Update references to small memory settings.
8022 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8023 (enum small_memory_type): Move to v850-opts.h.
8024 * config/v850/v850.opt (config/v850/v850-opts.h): New
8025 HeaderInclude entry.
8026 (small_memory_max): New Variable entry.
8027 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8028 (mtda, mzda): Likewise.
8030 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8032 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8033 pointer. Don't assert that global structures are in use.
8035 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8037 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8038 via opts pointer. Don't assert that global structures are in use.
8040 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8042 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8043 (munix=93): Use Var.
8044 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8045 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8046 * config/pa/pa-opts.h: New.
8047 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8048 (pa_handle_option): Don't assert that global structures are in
8049 use. Access target_flags via opts pointer. Don't handle
8050 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8052 (pa_option_override): Handle deferred OPT_mfixed_range_.
8054 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8056 * config/mn10300/mn10300-opts.h: New.
8057 * config/mn10300/mn10300.c (mn10300_processor,
8058 mn10300_tune_string): Remove.
8059 (mn10300_handle_option): Don't assert that global structures are
8060 in use. Access mn10300_processor via opts pointer. Don't handle
8062 * config/mn10300/mn10300.h (enum processor_type): Move to
8064 (mn10300_processor): Remove.
8065 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8066 HeaderInclude entry.
8067 (mn10300_processor): New Variable entry.
8070 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8072 * config/microblaze/microblaze.c: Don't include opts.h.
8073 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8074 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8075 (mno-clearbss): Use Var and Warn.
8077 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8079 * config/m32r/m32r-opts.h: New.
8080 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8081 (m32r_handle_option): Don't assert that global structures are in
8082 use. Access target_flags and m32r_cache_flush_func via opts
8083 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8084 OPT_mno_flush_trap here.
8085 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8086 include of m32r-opts.h.
8087 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8088 HeaderInclude entry.
8089 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8090 (mmodel=): Use Enum and Var.
8091 (m32r_model): New Enum and EnumValue entries.
8092 (mno-flush-trap): Use Var.
8093 (msdata=): Use Enum and Var.
8094 (m32r_sdata): New Enum and EnumValue entries.
8096 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8098 * config/m32c/m32c.c: Don't include opts.h.
8099 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8100 m32c_handle_option): Remove.
8101 (m32c_option_override): Check global_options_set.x_target_memregs
8102 instead of target_memregs_set.
8103 * config/m32c/m32c.h (target_memregs): Remove.
8104 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8107 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8109 * config/iq2000/iq2000-opts.h: New.
8110 * config/iq2000/iq2000.c: Don't include opts.h.
8111 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8112 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8113 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8114 HeaderInclude entry.
8115 (iq2000_tune): New Variable entry.
8116 (march=): Add comment. Use Enum.
8117 (iq2000_arch): New Enum and EnumValue entries.
8118 (mcpu=): Use Enum and Var.
8119 (iq2000_tune): New Enum and EnumValue entries.
8121 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8123 * config/ia64/ia64-opts.h: New.
8124 * config/ia64/ia64.c (ia64_tune): Remove.
8125 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8127 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8128 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8129 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8130 HeaderInclude entry.
8131 (ia64_tune): New Variable entry.
8132 (mfixed-range=): Use Defer and Var.
8133 (mtune=): Use Enum and Var.
8134 (ia64_tune): New Enum and EnumValue entries.
8136 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8138 * config/frv/frv-opts.h: New.
8139 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8141 (frv_cpu_type): Remove.
8142 * config/frv/frv.c: Don't include opts.h.
8143 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8144 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8145 (frv_cpu_type): New Variable entry.
8146 (frv_cpu): New Enum and EnumValue entries.
8148 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8150 * config/cris/cris.c (cris_handle_option): Access target_flags via
8151 opts pointer. Don't assert that global structures are in use.
8152 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8153 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8155 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8157 * config/bfin/bfin-opts.h: New.
8158 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8159 bfin_si_revision, bfin_workarounds): Remove.
8160 (bfin_cpus): Make static const.
8161 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8162 not bfin_lib_id_given.
8163 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8164 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8165 pointer. Use error_at. Don't assert that global structures are in use.
8166 * config/bfin/bfin.h: Include bfin-opts.h.
8167 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8168 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8169 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8170 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8173 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8175 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8176 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8177 or -msoft-float here.
8178 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8179 -msoft-float and -mhard-float.
8180 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8181 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8183 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8185 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8186 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8188 (LIBGCC_SPEC): Don't handle -msoft-float.
8189 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8191 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8193 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8194 -mfloat-abi=*, not -msoft-float and -mhard-float.
8195 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8197 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8198 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8199 mhard-float and msoft-float.
8200 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8201 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8202 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8203 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8205 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8206 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8208 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8210 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8213 2011-03-22 Richard Henderson <rth@redhat.com>
8215 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8216 TARGET_ABI_WINDOWS_NT.
8217 (alpha_output_function_end_prologue): Likewise.
8218 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8219 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8220 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8221 (trap, *movsi_nt_vms): Likewise.
8222 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8223 (*tablejump_osf_nt_internal): Remove.
8224 * config/alpha/predicates.md (input_operand): Only test Pmode.
8226 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8228 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8229 via opts pointer. Use error_at. Don't assert that global
8230 structures are in use.
8232 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8234 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8235 (ix86_handle_option): Access ix86_isa_flags and
8236 ix86_isa_flags_explicit via opts pointer. Don't assert that
8237 global structures are in use.
8238 (ix86_function_specific_save, ix86_function_specific_restore):
8239 Update ix86_isa_flags_explicit field name.
8240 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8241 (ix86_isa_flags_explicit): Rename TargetSave entry to
8242 x_ix86_isa_flags_explicit.
8244 2011-03-22 Richard Henderson <rth@redhat.com>
8246 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8247 (alpha_option_override, direct_return): Likewise.
8248 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8249 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8250 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8251 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8252 (alpha_expand_epilogue, alpha_end_function): Likewise.
8253 (alpha_init_libfuncs): Likewise.
8254 (struct machine_function): Remove unicosmk members.
8255 (print_operand) ['t']: Remove.
8256 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8257 unicosmk_output_module_name, unicosmk_output_common,
8258 current_section_align, unicosmk_output_text_section_asm_op,
8259 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8260 unicosmk_section_type_flags, unicosmk_unique_section,
8261 unicosmk_asm_named_section, unicosmk_insert_attributes,
8262 unicosmk_output_align, unicosmk_defer_case_vector,
8263 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8264 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8265 unicosmk_output_ssib, unicosmk_add_call_info_word,
8266 unicosmk_extern_head, unicosmk_output_default_externs,
8267 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8268 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8269 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8270 * config/alpha/alpha-protos.h: Update.
8271 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8272 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8273 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8274 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8275 (*mulsi_se, mulvsi3): Likewise.
8276 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8277 (*divmodsi_internal, call, call_value, realign): Likewise.
8278 (moddi3, umoddi3): Likewise; remove duplicate expander.
8279 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8280 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8281 (*movdi_nofix): Remove r/U alternative.
8282 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8283 * config/alpha/constraints.md ("U"): Remove.
8284 * config/alpha/predicates.md (call_operand"): Don't test
8285 TARGET_ABI_UNICOSMK.
8287 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8289 * target.def (handle_option): Take gcc_options and
8290 cl_decoded_option pointers and location_t.
8291 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8292 * doc/tm.texi: Regenerate.
8293 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8294 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8295 * lto-opts.c (lto_reissue_options): Generate option structure for
8296 targetm.handle_option call.
8297 * opts.c (target_handle_option): Update call to
8298 targetm.handle_option. Remove assertions about values now passed
8300 * targhooks.c (default_target_handle_option): New.
8301 * targhooks.h (default_target_handle_option): Declare.
8302 * config/alpha/alpha.c: Include opts.h.
8303 (alpha_handle_option): Update to new hook interface.
8304 * config/arm/arm.c: Include opts.h.
8305 (arm_handle_option): Update to new hook interface.
8306 * config/arm/t-arm (arm.o): Update dependencies.
8307 * config/bfin/bfin.c: Include opts.h.
8308 (bfin_handle_option): Update to new hook interface.
8309 * config/cris/cris.c: Include opts.h.
8310 (cris_handle_option): Update to new hook interface.
8311 * config/frv/frv.c: Include opts.h.
8312 (frv_handle_option): Update to new hook interface.
8313 * config/i386/i386.c: Include opts.h.
8314 (ix86_handle_option): Update to new hook interface.
8315 (ix86_valid_target_attribute_inner_p): Generate option structure
8316 for call to ix86_handle_option.
8317 * config/i386/t-i386 (i386.o): Update dependencies.
8318 * config/ia64/ia64.c: Include opts.h.
8319 (ia64_handle_option): Update to new hook interface.
8320 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8321 * config/iq2000/iq2000.c: Include opts.h.
8322 (iq2000_handle_option): Update to new hook interface.
8323 * config/m32c/m32c.c: Include opts.h.
8324 (m32c_handle_option): Update to new hook interface.
8325 * config/m32r/m32r.c: Include opts.h.
8326 (m32r_handle_option): Update to new hook interface.
8327 * config/m68k/m68k.c: Include opts.h.
8328 (m68k_handle_option): Update to new hook interface.
8329 * config/mep/mep.c: Include opts.h.
8330 (mep_handle_option): Update to new hook interface.
8331 * config/microblaze/microblaze.c: Include opts.h.
8332 (microblaze_handle_option): Update to new hook interface.
8333 * config/mips/mips.c: Include opts.h.
8334 (mips_handle_option): Update to new hook interface.
8335 * config/mn10300/mn10300.c: Include opts.h.
8336 (mn10300_handle_option): Update to new hook interface.
8337 * config/pa/pa.c: Include opts.h.
8338 (pa_handle_option): Update to new hook interface.
8339 * config/pdp11/pdp11.c: Include opts.h.
8340 (pdp11_handle_option): Update to new hook interface.
8341 * config/rs6000/rs6000.c: Include opts.h.
8342 (rs6000_handle_option): Update to new hook interface.
8343 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8344 * config/rx/rx.c: Include opts.h.
8345 (rx_handle_option): Update to new hook interface.
8346 * config/s390/s390.c: Include opts.h.
8347 (s390_handle_option): Update to new hook interface.
8348 * config/score/score.c: Include opts.h.
8349 (score_handle_option): Update to new hook interface.
8350 * config/sh/sh.c: Include opts.h.
8351 (sh_handle_option): Update to new hook interface.
8352 * config/sparc/sparc.c: Include opts.h.
8353 (sparc_handle_option): Update to new hook interface.
8354 * config/v850/v850.c: Include opts.h.
8355 (v850_handle_option): Update to new hook interface.
8357 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8359 * gcc.c (driver_unknown_option_callback): Only permit and save
8360 unknown -Wno- options.
8361 (driver_wrong_lang_callback): Save options directly instead of via
8362 driver_unknown_option_callback.
8364 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8366 * combine.c (simplify_set): Try harder to find the best CC mode when
8367 simplifying a nested COMPARE on the RHS.
8369 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8371 * config/alpha/gnu.h: Remove.
8372 * config/arc: Remove directory.
8373 * config/arm/netbsd.h: Remove.
8374 * config/arm/t-pe: Remove.
8375 * config/crx: Remove directory.
8376 * config/i386/netbsd.h: Remove.
8377 * config/m68hc11: Remove directory.
8378 * config/m68k/uclinux-oldabi.h: Remove.
8379 * config/mcore/mcore-pe.h: Remove.
8380 * config/mcore/t-mcore-pe: Remove.
8381 * config/netbsd-aout.h: Remove.
8382 * config/rs6000/gnu.h: Remove.
8383 * config/sh/sh-symbian.h: Remove.
8384 * config/sh/symbian-base.c: Remove.
8385 * config/sh/symbian-c.c: Remove.
8386 * config/sh/symbian-cxx.c: Remove.
8387 * config/sh/symbian-post.h: Remove.
8388 * config/sh/symbian-pre.h: Remove.
8389 * config/sh/t-symbian: Remove.
8390 * config/svr3.h: Remove.
8391 * config/vax/netbsd.h: Remove.
8392 * config.build: Don't handle i[34567]86-*-pe.
8393 * config.gcc: Remove handling of deprecations for most deprecated
8395 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8396 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8397 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8398 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8399 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8400 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8402 * config.host: Don't handle i[34567]86-*-pe.
8403 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8404 (ASM_SPEC32): Don't handle -mcall-gnu.
8405 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8407 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8408 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8409 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8410 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8411 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8412 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8413 conditional on SYMBIAN.
8414 * configure.ac: Don't handle powerpc*-*-gnu*.
8415 * configure: Regenerate.
8416 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8417 * doc/install-old.texi (m6811, m6812): Don't mention.
8418 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8419 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8420 (m68k-uclinuxoldabi): Don't mention.
8421 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8423 (-mcall-gnu): Remove.
8424 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8425 families): Remove constraint documentation.
8427 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8429 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8430 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8431 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8433 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8436 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8437 vector when peeking at the next token for vector, don't expand the
8440 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8442 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8443 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8444 * config/avr/avr.c (init_cumulative_args)
8445 (avr_function_arg_advance): Use it.
8446 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8448 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8449 (avr_function_ok_for_sibcall): ...this new function.
8450 (avr_lookup_function_attribute1): New static Function.
8451 (avr_naked_function_p, interrupt_function_p)
8452 (signal_function_p, avr_OS_task_function_p)
8453 (avr_OS_main_function_p): Use it.
8454 * config/avr/avr.md ("sibcall", "sibcall_value")
8455 ("sibcall_epilogue"): New expander.
8456 ("*call_insn", "*call_value_insn"): New insn.
8457 ("call_insn", "call_value_insn"): Remove
8458 ("call", "call_value", "epilogue"): Change expander to handle
8461 2011-03-21 Nick Clifton <nickc@redhat.com>
8463 * doc/invoke.texi (Overall Options): Move closing brace to end of
8465 (Optimization Options): Add missing @gol.
8466 (Directory Options): Likewise.
8467 (i386 and x86-64 Options): Likewise.
8468 (RS6000 and PowerPC Options): Likewise.
8469 (i386 and x86-64 Windows Options): Likewise.
8470 (V850 Options): Add text missing from descriptions.
8472 2011-03-22 Richard Henderson <rth@redhat.com>
8474 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8475 (avr_incoming_return_addr_rtx): New.
8476 (emit_push_byte): New.
8477 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8478 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8479 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8480 (emit_pop_byte): New.
8481 (expand_epilogue): Use it. Pop frame pointer by bytes.
8482 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8483 (INCOMING_RETURN_ADDR_RTX): New.
8484 (INCOMING_FRAME_SP_OFFSET): New.
8485 (ARG_POINTER_CFA_OFFSET): New.
8486 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8487 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8490 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8492 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8494 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8495 (FUNCTION_ARG_ADVANCE): Likewise.
8496 * tm.texi.in: Change references to them to hook references.
8497 * tm.texi: Regenerate.
8498 * targhooks.c (default_function_arg): Eliminate check for target
8500 (default_function_incoming_arg): Likewise.
8501 (default_function_arg_advance): Likewise.
8502 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8503 (function_arg_advance): Likewise.
8504 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8506 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8508 * tree.c (build_call_1): New function.
8509 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8511 2011-03-22 Richard Guenther <rguenther@suse.de>
8513 PR tree-optimization/48228
8514 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8515 for single-arg PHIs.
8517 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8519 PR rtl-optimization/48143
8520 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8521 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8522 sse2_cvtps2pd): Likewise.
8524 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8526 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8528 2011-03-22 Richard Guenther <rguenther@suse.de>
8530 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8531 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8532 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8533 and REALIGN_LOAD_EXPR.
8534 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8535 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8536 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8537 DOT_PROD_EXPR case ...
8538 (expand_expr_real_2): ... here.
8539 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8540 and REALIGN_LOAD_EXPR.
8541 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8542 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8543 (vect_create_epilog_for_reduction): Likewise.
8544 (vectorizable_reduction): Likewise.
8545 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8546 * tree-vect-stmts.c (vectorizable_load): Likewise.
8548 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8550 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8552 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8554 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8555 handling for PLTOFF/GOTOFF.
8557 2011-03-22 Nick Clifton <nickc@redhat.com>
8559 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8560 trailing backslash from the end of the macro definition.
8562 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8564 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8567 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8569 * expr.h (prepare_operand): Move to...
8570 * optabs.h (prepare_operand): ...here and change the insn code
8571 parameter from "int" to "enum insn_code".
8572 (insn_operand_matches): Declare.
8573 * expr.c (init_expr_target): Use insn_operand_matches.
8574 (compress_float_constant): Likewise.
8575 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8576 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8577 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8578 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8580 (gen_cond_trap): Likewise.
8581 (prepare_operand): Likewise. Change icode to an insn_code.
8582 (insn_operand_matches): New function.
8583 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8584 * reload1.c (gen_reload): Likewise.
8585 * targhooks.c (default_secondary_reload): Likewise.
8587 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8589 * config/alpha/alpha.md (unspec): New define_c_enum.
8592 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8595 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8596 between a call and its CALL_ARG_LOCATION note.
8598 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8600 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8602 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8606 * c-common.c (shorten_compare): If primopN is first sign-extended
8607 to opN and then zero-extended to result type, set primopN to opN.
8609 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8611 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8612 for barrier handlers.
8614 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8616 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8617 UNSPEC constants to be in the unspec enumeration, and redefine
8618 all UNSPECV constants to be in the unspecv enumeration, so that
8619 dumps print which unspec/unspec_volatile this is.
8620 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8621 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8622 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8623 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8624 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8626 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8627 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8628 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8629 * config/rs6000/sync.md (isync, lwsync): Ditto.
8631 2011-03-21 Richard Guenther <rguenther@suse.de>
8633 * params.def (lto-min-partition): Fix typo.
8635 2011-03-21 Richard Guenther <rguenther@suse.de>
8638 * c-decl.c (grokdeclarator): Drop to the main variant only
8639 for array types. Drop flag_gen_aux_info check.
8641 2011-03-21 Richard Guenther <rguenther@suse.de>
8643 PR translation/47911
8644 * params.def (lto-partitions): Fix typo.
8645 (lto-min-partition): Fix wording.
8647 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8649 * config/rs6000/t-freebsd: Remove duplication from file.
8651 2011-03-21 Richard Guenther <rguenther@suse.de>
8654 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8656 2011-03-21 Richard Guenther <rguenther@suse.de>
8659 * params.def (lto-partitions): Require at least 1 partition.
8661 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8663 * gthr-solaris.h: Remove.
8664 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8665 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8666 (LIB_SPEC): Likewise.
8667 * config/sol2.opt (threads): Remove.
8668 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8669 (sparc*-*-solaris2*): Likewise.
8670 * configure.ac (enable_threads): Enable solaris support.
8671 * configure: Regenerate.
8672 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8673 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8676 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8678 * config.gcc: Obsolete *-*-solaris2.8*.
8679 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8681 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8684 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8685 reference. Solaris 8 perl works.
8687 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8690 * doc/install.texi (Prerequisites): Move jar etc. up.
8691 Explain support library version requirements.
8693 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8696 * doc/install.texi (Prerequisites): Move Perl to build
8697 requirements. Always necessary on Solaris 2 with Sun ld.
8699 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8701 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8703 (Specific, i?86-*-solaris2.[89]): Likewise.
8704 (Specific, i?86-*-solaris2.10): Likewise.
8705 (Specific, mips-sgi-irix6): Likewise.
8706 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8707 Update for binutils 2.21.
8709 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8711 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8712 Allow -fuse-linker-plugin for non-default plugin linker.
8713 * configure: Regenerate.
8715 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8718 * gengtype.c (files_rules): Added rule for cp/parser.h.
8720 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8723 * config/s390/s390.c (s390_delegitimize_address): Don't call
8724 lowpart_subreg if orig_x has BLKmode.
8726 2011-03-21 Kai Tietz <ktietz@redhat.com>
8729 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8730 * tree.h (attribute_spec): Add new member affects_type_identity.
8731 * attribs.c (empty_attribute_table): Adjust attribute_spec
8733 * config/alpha/alpha.c: Likewise.
8734 * config/arc/arc.c: Likewise.
8735 * config/arm/arm.c: Likewise.
8736 * config/avr/avr.c: Likewise.
8737 * config/bfin/bfin.c: Likewise.
8738 * config/crx/crx.c: Likewise.
8739 * config/darwin.h: Likewise.
8740 * config/h8300/h8300.c: Likewise.
8741 * config/i386/cygming.h: Likewise.
8742 * config/i386/i386.c: Likewise.
8743 * config/ia64/ia64.c: Likewise.
8744 * config/m32c/m32c.c: Likewise.
8745 * config/m32r/m32r.c: Likewise.
8746 * config/m68hc11/m68hc11.c: Likewise.
8747 * config/m68k/m68k.c: Likewise.
8748 * config/mcore/mcore.c: Likewise.
8749 * config/mep/mep.c: Likewise.
8750 * config/microblaze/microblaze.c: Likewise.
8751 * config/mips/mips.c: Likewise.
8752 * config/rs6000/rs6000.c: Likewise.
8753 * config/rx/rx.c: Likewise.
8754 * config/sh/sh.c: Likewise.
8755 * config/sol2.h: Likewise.
8756 * config/sparc/sparc.c: Likewise.
8757 * config/spu/spu.c: Likewise.
8758 * config/stormy16/stormy16.c: Likewise.
8759 * config/v850/v850.c: Likewise.
8761 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8763 * simplify-rtx.c (simplify_binary_operation_1): Handle
8764 (xor (and A B) C) case when B and C are both constants.
8766 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8768 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8770 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8773 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8775 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8777 PR rtl-optimization/48156
8778 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8779 assume df and df_lr are not NULL.
8781 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8784 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8785 between a call and its CALL_ARG_LOCATION note.
8787 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8790 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8791 between a call and its corresponding CALL_ARG_LOCATION note.
8793 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8795 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8796 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8797 * haifa-sched.c (setup_ref_regs): Ditto.
8798 * caller-save.c (add_used_regs_1): Ditto.
8799 * dse.c (look_for_hardregs): Ditto.
8800 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8801 * sched-rgn.c (check_live_1): Ditto.
8803 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8805 * c-decl.c (diagnose_mismatched_decls): Give an error for
8806 redefining a typedef with variably modified type.
8808 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8810 * c-decl.c (grokfield): Don't allow typedefs for structures or
8811 unions with no tag by default.
8812 * doc/extend.texi (Unnamed Fields): Update.
8814 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8816 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8817 Rewrite using indirect functions.
8818 (lwp_slwpcb): Ditto.
8819 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8820 (avx_vinsertf128<mode>): Ditto.
8822 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8824 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8827 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8829 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8830 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8832 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8834 PR rtl-optimization/48170
8835 * gcse.c (hoist_code): Remove bogus asserts.
8837 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8839 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8840 computation for prologue/epilogue.
8842 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8844 * Makefile.in (check-consistency): Remove.
8846 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8849 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8850 arange_table_in_use is 0, but either text_section_used or
8851 cold_text_section_used is true. Don't call it if
8852 !info_section_emitted.
8854 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8856 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8857 FUNCTION_VALUE_REGNO_P): Remove.
8858 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8860 * config/avr/avr.c (avr_ret_register): Make static inline.
8861 (avr_function_value_regno_p): New function.
8862 (avr_libcall_value): Make static. Add 'func' argument.
8863 (avr_function_value): Make static. Rename 'func' argument to
8864 'fn_decl_or_type', forward it to avr_libcall_value. Call
8865 avr_ret_register function instead of RET_REGISTER macro.
8866 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8868 2011-03-18 Jason Merrill <jason@redhat.com>
8871 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8873 2011-03-18 Richard Guenther <rguenther@suse.de>
8875 * doc/install.texi (--enable-gold): Remove.
8876 (--with-plugin-ld): Document.
8877 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8879 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8882 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8883 again after expansion changes.
8885 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8887 * combine.c (try_combine): Do simplification only call of
8888 subst() on i2 even when i1 is present. Update comments.
8890 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8892 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8893 and UNSPEC_PCREL_SYMOFF.
8895 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8897 * config/s390/s390.md: Use define_c_enum for the unspec constant
8900 2011-03-18 Richard Henderson <rth@redhat.com>
8901 Jakub Jelinek <jakub@redhat.com>
8904 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8905 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8907 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8910 * combine.c (cant_combine_insn_p): Don't check zero/sign
8911 extended hard registers.
8913 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8916 * combine.c (cant_combine_insn_p): Check zero/sign extended
8919 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8921 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8922 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8923 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8924 Change return type to bool.
8925 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8927 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8930 * var-tracking.c (prepare_call_arguments): If CALL target
8931 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8932 pc instead of looking it up using cselib_lookup and use
8933 Pmode for it if x has VOIDmode.
8934 * dwarf2out.c (gen_subprogram_die): If also both first and
8935 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8938 * function.c (assign_parms): For data.passed_pointer parms
8939 use MEM of data.entry_parm instead of data.entry_parm itself
8940 as DECL_INCOMING_RTL.
8941 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8942 also when passed and declared mode is the same, DECL_RTL
8943 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8946 2011-03-16 Jeff Law <law@redhat.com>
8948 PR rtl-optimization/37273
8949 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8950 handle them like argument loads from stack slots. Do not double
8951 count memory for memory constants and argument loads from stack slots.
8953 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8956 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8958 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8961 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8963 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8966 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8968 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8969 Clear call_arg_locations and call_arg_loc_last always.
8972 * var-tracking.c (prepare_call_arguments): If argument needs to be
8973 passed by reference, adjust argtype and mode.
8975 2011-03-17 Richard Guenther <rguenther@suse.de>
8978 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8979 a value make sure to fold the statement.
8981 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8984 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8985 return condition with !cfun->calls_alloca.
8987 2011-03-17 Richard Guenther <rguenther@suse.de>
8990 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8991 origin for decls in other ltrans units.
8992 (input_varpool_node): Likewise.
8994 2011-03-17 Richard Guenther <rguenther@suse.de>
8997 * tree-object-size.c (compute_object_offset): Properly return
8998 the offset operand of MEM_REFs as sizetype.
9000 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9002 PR rtl-optimization/48141
9003 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9004 * dse.c: Include params.h.
9005 (active_local_stores_len): New variable.
9006 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9008 (record_store, check_mem_read_rtx): Decrease it when removing
9010 (scan_insn): Likewise. Increase it when adding to chain, if it
9011 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9012 set active_local_stores to NULL before the addition.
9013 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9015 PR rtl-optimization/48141
9016 * dse.c (record_store): If no positions are needed in an insn
9017 that cannot be deleted, at least unchain it from active_local_stores.
9019 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9022 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9023 (lookup_type_die_strip_naming_typedef): ... here.
9024 (get_context_die): Use it.
9025 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9026 the anonymous struct named by the naming typedef.
9028 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9031 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9032 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9034 2011-03-16 Jeff Law <law@redhat.com>
9036 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9037 check for operands of conditional. Allow type to be a pointer.
9039 2011-03-16 Richard Guenther <rguenther@suse.de>
9041 PR tree-optimization/48149
9042 * fold-const.c (fold_binary_loc): Fold
9043 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9045 2011-03-16 Richard Guenther <rguenther@suse.de>
9047 PR tree-optimization/26134
9048 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9049 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9050 (non_rewritable_mem_ref_base): Handle complex type component
9051 accesses, constrain offsets for vector and complex extracts
9054 2011-03-16 Richard Guenther <rguenther@suse.de>
9056 PR tree-optimization/48146
9057 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9058 operands avoiding the need for renaming.
9060 2011-03-16 Richard Guenther <rguenther@suse.de>
9062 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9063 constant folding. Move MEM_REF canonicalization first.
9064 Rely on fold_const_aggregate_ref for initializer folding.
9065 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9067 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9070 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9071 arg0/arg1 or their arguments are always fold converted to matching
9074 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9077 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9080 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9081 Handle in-tree gold.
9082 (ld_vers): Extract binutils version for gold.
9083 (gcc_cv_ld_hidden): Handle gold here.
9084 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9085 * configure: Regenerate.
9086 * config.in: Regenerate.
9087 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9088 -fuse-linker-plugin otherwise.
9089 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9090 (LINK_COMMAND_SPEC): Use it.
9091 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9093 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9095 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9096 * calls.c: Remove debug.h include.
9097 (emit_call_1): Don't call virtual_call_token debug hook.
9098 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9099 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9100 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9101 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9102 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9103 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9104 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9105 dwarf2out_virtual_call): Remove.
9106 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9107 copy_call_info and virtual_call hooks.
9108 (dwarf2out_init): Don't initialize vcall_insn_table,
9109 debug_dcall_section and debug_vcall_section.
9110 (prune_unused_types): Don't mark nodes from dcall_table.
9111 (dwarf2out_finish): Don't output dcall or vcall tables.
9112 * final.c (final_scan_insn): Don't call direct_call or
9113 virtual_call debug hooks.
9114 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9115 virtual_call_token, copy_call_info and virtual_call hooks.
9116 (debug_nothing_uid): Remove prototype.
9117 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9118 copy_call_info and virtual_call hooks.
9119 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9120 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9121 * debug.c (do_nothing_debug_hooks): Likewise.
9122 (debug_nothing_uid): Remove.
9123 * doc/invoke.texi (-fenable-icf-debug): Remove.
9124 * common.opt (-fenable-icf-debug): Likewise.
9126 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9127 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9128 call's MEM. Handle functions returning aggregate through a hidden
9129 first pointer. For virtual calls add clobbered pc to call arguments
9131 * dwarf2out.c (gen_subprogram_die): Emit
9132 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9136 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9137 * rtl.h (ENTRY_VALUE_EXP): Define.
9138 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9139 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9140 * print-rtl.c (print_rtx): Likewise.
9141 * gengtype.c (adjust_field_rtx_def): Likewise.
9142 * var-tracking.c (vt_add_function_parameter): Adjust
9143 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9144 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9145 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9146 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9147 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9149 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9150 Call var_location debug hook even on CALL_INSNs.
9151 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9152 * rtl.def (ENTRY_VALUE): New.
9153 * dwarf2out.c: Include cfglayout.h.
9154 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9155 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9156 (struct call_arg_loc_node): New type.
9157 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9158 tail_call_site_count): New variables.
9159 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9160 DW_TAG_GNU_call_site_parameter.
9161 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9162 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9163 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9164 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9165 and DW_AT_GNU_all_source_call_sites.
9166 (mem_loc_descriptor): Handle ENTRY_VALUE.
9167 (add_src_coords_attributes): Don't add enything if
9168 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9169 (dwarf2out_abstract_function): Save and clear call_arg_location,
9170 call_site_count and tail_call_site_count around dwarf2out_decl call.
9171 (gen_call_site_die): New function.
9172 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9173 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9174 (dwarf2out_function_decl): Clear call_arg_locations,
9175 call_arg_loc_last, set call_site_count and tail_call_site_count
9176 to -1 and free block_map.
9177 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9178 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9179 followed by any real instructions.
9180 (dwarf2out_begin_function): Set call_site_count and
9181 tail_call_site_count to 0.
9182 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9183 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9184 attempt to force a DIE for it and worst case remove the attribute.
9185 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9186 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9188 * var-tracking.c: Include tm_p.h.
9189 (vt_stack_adjustments): For calls call note_register_arguments.
9190 (argument_reg_set): New variable.
9191 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9192 ensure the VALUE is resolved.
9193 (call_arguments): New variable.
9194 (prepare_call_arguments): New function.
9195 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9196 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9197 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9198 always use the best expression.
9199 (vt_expand_loc): Add ignore_cur_loc argument.
9200 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9201 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9202 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9204 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9205 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9206 argument. Don't call cselib_preserve_only_values and
9208 (note_register_arguments): New function.
9209 (vt_initialize): Compute argument_reg_set. Call
9210 vt_add_function_parameters before processing basic blocks instead of
9211 afterwards. For calls call prepare_call_arguments before calling
9212 cselib_process_insn.
9213 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9214 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9215 (var-tracking.o): Depend on $(TM_P_H).
9216 * cfglayout.h (insn_scope): New prototype.
9217 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9218 * cfglayout.c (insn_scope): No longer static.
9219 * insn-notes.def (CALL_ARG_LOCATION): New.
9220 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9221 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9222 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9223 nothing for DECL_EXTERNAL BLOCK_VARS.
9225 2011-03-16 Alan Modra <amodra@gmail.com>
9228 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9229 create invalid offset address for vsx splat insn.
9230 * config/rs6000/predicates.md (splat_input_operand): New.
9231 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9233 2011-03-15 Xinliang David Li <davidxl@google.com>
9236 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9237 (normalize_preds): New function.
9238 (is_use_properly_guarded): Normalize def predicates.
9240 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9243 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9244 in the output template.
9246 2011-03-15 Richard Guenther <rguenther@suse.de>
9249 * tree-pretty-print.c (dump_function_declaration): Properly
9250 dump unprototyped and varargs function types.
9252 2011-03-15 Richard Guenther <rguenther@suse.de>
9254 PR tree-optimization/13954
9255 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9258 2011-03-15 Richard Guenther <rguenther@suse.de>
9260 PR tree-optimization/48037
9261 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9262 selects into BIT_FIELD_REFs.
9263 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9266 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9268 PR tree-optimization/48129
9269 * builtins.c (fold_builtin_snprintf): Convert to type of
9270 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9271 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9273 2011-03-15 Richard Guenther <rguenther@suse.de>
9275 PR tree-optimization/41490
9276 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9277 value but with VUSE.
9278 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9280 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9281 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9282 * tree-tailcall.c (find_tail_calls): Ignore returns.
9284 2011-03-15 Richard Guenther <rguenther@suse.de>
9287 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9288 or variable-indexed array accesses when in gimple form.
9290 2011-03-15 Richard Guenther <rguenther@suse.de>
9292 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9294 2011-03-15 Alan Modra <amodra@gmail.com>
9297 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9298 presume symbol_refs without a symbol_ref_decl are suitably
9299 aligned, nor other trees we may see here. Handle anchor symbols.
9300 (legitimate_constant_pool_address_p): Comment. Add mode param.
9301 Check cmodel=medium addresses. Adjust all calls.
9302 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9303 creating cmodel=medium optimized access to locals.
9304 * config/rs6000/constraints.md (R): Pass QImode to
9305 legitimate_constant_pool_address_p.
9306 * config/rs6000/predicates.md (input_operand): Pass mode to
9307 legitimate_constant_pool_address_p.
9308 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9311 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9314 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9315 64-bit constants being loaded into registers other than GPRs such
9316 as loading 0 into a VSX register.
9318 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9320 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9322 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9325 * builtins.c (fold_builtin_snprintf): New function.
9326 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9327 (fold_builtin_4): Likewise.
9330 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9331 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9332 and C - X == X also strip nops from +/-/p+ operand.
9333 When optimizing -X == C, fold C to arg0's type.
9336 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9337 emit it as add_AT_int instead of add_AT_unsigned.
9339 2011-03-14 Tom Tromey <tromey@redhat.com>
9341 * unwind-dw2.c: Include sys/sdt.h if it exists.
9342 (_Unwind_DebugHook): Use STAP_PROBE2.
9343 * config.in, configure: Rebuild.
9344 * configure.ac: Check for sys/sdt.h.
9346 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9348 * config/i386/i386.md (ROUND_FLOOR): New constant.
9349 (ROUND_CEIL): Ditto.
9350 (ROUND_TRUNC): Ditto.
9351 (ROUND_MXCSR): Ditto.
9352 (ROUND_NO_EXC): Ditto.
9353 (rint<mode>2): Use new defines instead of numerical constants.
9354 (floor<mode>2): Ditto.
9355 (ceil<mode>2): Ditto.
9356 (btrunc<mode>2): Ditto.
9357 * config/i386/i386-builtin-types.def: Define ROUND function type
9359 * config/i386/i386.c (enum ix86_builtins): Add
9360 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9361 (struct builtin_description): Add
9362 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9363 (ix86_expand_sse_round): New static function.
9364 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9366 (ix86_builtin_vectorized_function): Handle
9367 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9369 2011-03-14 Tom Tromey <tromey@redhat.com>
9371 * c-parser.c (c_parser_asm_string_literal): Clear
9372 warn_overlength_strings.
9374 2011-03-14 Tom Tromey <tromey@redhat.com>
9376 * c-parser.c (disable_extension_diagnostics): Save
9377 warn_overlength_strings.
9378 (restore_extension_diagnostics): Restore warn_overlength_strings.
9380 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9382 * BASE-VER: Change to 4.7.0.
9384 2011-03-14 Richard Guenther <rguenther@suse.de>
9387 * tree.c (build_vector_from_val): Adjust assert to requirements
9390 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9393 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9395 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9397 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9398 terms of target_flags_explicit. Adjust copyright year.
9400 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9401 * config/rs6000/t-freebsd: New file. Add override for
9404 2011-03-13 Chris Demetriou <cgd@google.com>
9406 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9407 (-fno-diagnostics-show-option): this, to reflect current default.
9408 (-Werror=): Update text about -fno-diagnostics-show-option.
9410 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9413 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9414 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9415 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9416 mode is not V2DImode or V2DFmode.
9417 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9418 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9419 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9421 (movdi_internal64): Likewise.
9423 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9425 PR tree-optimization/47127
9426 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9428 (set_cloog_options): Same.
9429 (scop_to_clast): Same.
9430 (print_clast_stmt): Do not call cloog_state_malloc and
9432 (print_generated_program): Same.
9434 * graphite-clast-to-gimple.h (cloog_state): Declared.
9435 (scop_to_clast): Adjust declaration.
9436 * graphite.c (cloog_state): Defined here.
9437 (graphite_initialize): Call cloog_state_malloc.
9438 (graphite_finalize): Call cloog_state_free.
9440 2011-03-11 Jason Merrill <jason@redhat.com>
9442 * attribs.c (lookup_attribute_spec): Take const_tree.
9445 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9447 * config/sparc/sparc.c (sparc_option_override): Use
9448 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9450 2011-03-11 Richard Guenther <rguenther@suse.de>
9452 PR tree-optimization/48067
9453 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9454 multiplication result will be only used once on the target
9457 2011-03-11 Richard Guenther <rguenther@suse.de>
9459 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9461 2011-03-11 Richard Guenther <rguenther@suse.de>
9464 * tree.c (find_decls_types_r): Do not walk types only reachable
9465 from IDENTIFIER_NODEs.
9467 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9470 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9471 all vnode->force_output nodes as needed.
9473 2011-03-11 Jason Merrill <jason@redhat.com>
9476 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9477 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9479 2011-03-11 Martin Jambor <mjambor@suse.cz>
9481 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9484 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9486 PR tree-optimization/48063
9487 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9488 inline functions called once if !tree_can_inline_p (node->callers).
9490 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9492 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9494 * config/score/score3.c: Delete.
9495 * config/score/score3.h: Delete.
9496 * config/score/mul-div.S: Delete.
9497 * config/score/sfp-machine.h: Add new file.
9498 * config/score/constraints.md: Add new file.
9499 * config/score/t-score-softfp: Add new file.
9500 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9501 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9502 (score7_extra_constraint): Delete.
9503 (score7_option_override): Remove unused code.
9504 * config/score/score.c: Remove score3 and score5 define and code.
9505 * config/score/score.h: Remove score3 and score5 define and code.
9506 * config/score/score.md: Remove score3 template and unusual insn.
9507 * config/score/score.opt: Remove score3 and score5 options.
9509 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9511 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9512 when _HPUX_SOURCE is defined.
9513 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9515 2011-03-10 Jason Merrill <jason@redhat.com>
9518 * stor-layout.c (layout_type): Don't set structural equality
9519 on arrays of incomplete type.
9520 * tree.c (type_hash_eq): Handle comparing them properly.
9522 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9525 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9526 result mode matches original rtl mode.
9528 2011-03-10 Nick Clifton <nickc@redhat.com>
9530 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9531 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9533 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9535 PR rtl-optimization/47866
9536 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9537 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9538 if target wasn't scalar.
9539 * function.c (assign_stack_temp_for_type): Assert that neither
9540 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9541 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9543 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9545 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9547 * config/s390/s390-protos.h (s390_label_align): New prototype.
9548 * config/s390/s390.c (s390_label_align): New function.
9549 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9551 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9554 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9555 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9556 (output_vec_const_move): Ditto.
9558 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9560 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9561 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9562 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9563 Change 'rclass' argument and result type to reg_class_t.
9564 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9566 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9568 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9569 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9570 (TARGET_MEMORY_MOVE_COST): Define.
9571 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9573 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9576 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9579 PR tree-optimization/48022
9580 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9583 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9586 * var-tracking.c (find_use_val): Return NULL for
9587 cui->sets && cui->store_p BLKmode MEMs.
9589 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9591 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9593 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9594 xstormy16_print_operand_address): Remove.
9595 * config/stormy16/stormy16.c (xstormy16_print_operand,
9596 xstormy16_print_operand_address): Make static.
9597 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9599 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9602 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9603 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9606 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9609 * cfgloopmanip.c (fix_bb_placements): Return immediately
9610 if FROM is BASE_LOOP's header.
9612 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9614 * gimplify.c (gimplify_function_tree): Fix building calls
9615 to __builtin_return_address.
9617 2011-03-07 Alan Modra <amodra@gmail.com>
9619 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9620 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9621 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9622 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9624 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9625 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9626 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9627 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9628 * config/rs6000/rs6000.c
9629 (rs6000_elf_end_indicate_exec_stack): Rename to..
9630 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9631 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9632 (rs6000_file_start): ..here.
9633 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9634 file scope variables.
9635 (call_ABI_of_interest): New function.
9636 (init_cumulative_args): Set above vars when function return value
9637 is a float, vector, or small struct.
9638 (rs6000_function_arg_advance_1): Likewise for function args.
9639 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9640 references float args.
9642 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9644 * doc/cfg.texi: Remove "See" before @ref.
9645 * doc/invoke.texi: Likewise.
9647 2011-03-05 Jason Merrill <jason@redhat.com>
9649 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9651 2011-03-05 Anthony Green <green@moxielogic.com>
9653 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9655 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9657 PR rtl-optimization/47899
9658 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9659 to flow_loop_nested_p when moving the loop upward.
9661 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9664 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9666 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9668 PR tree-optimization/47967
9669 * ipa-cp.c (build_const_val): Return NULL instead of creating
9670 VIEW_CONVERT_EXPR for mismatching sizes.
9671 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9672 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9673 give up on versioning.
9675 2011-03-05 Alan Modra <amodra@gmail.com>
9678 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9679 full cmodel medium/large lo_sum + high addresses.
9681 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9683 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9684 pool references in UNSPEC_LTREL_OFFSET.
9686 2011-03-04 Jan Hubicka <jh@suse.cz>
9689 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9690 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9691 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9693 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9694 cgraph_add_thunk): Add node pointers.
9695 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9696 associated to right node.
9697 (input_node): Update use of cgraph_same_body_alias
9698 and cgraph_add_thunk.
9700 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9702 * config/i386/i386.opt (mprefer-avx128): New flag.
9703 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9704 modes when the flag -mprefer-avx128 is on.
9706 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9708 * dwarf2out.c (compare_loc_operands): Fix address handling.
9710 2011-03-04 Alan Modra <amodra@gmail.com>
9712 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9714 2011-03-04 Richard Guenther <rguenther@suse.de>
9717 * expmed.c (extract_bit_field_1): Prefer vector modes that
9718 vec_extract patterns can handle.
9720 2011-03-04 Richard Guenther <rguenther@suse.de>
9723 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9725 2011-03-04 Richard Henderson <rth@redhat.com>
9727 * explow.c (emit_stack_save): Remove 'after' parameter.
9728 (emit_stack_restore): Likewise.
9729 * expr.h: Update to match.
9730 * builtins.c, calls.c, stmt.c: Likewise.
9731 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9732 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9733 * function.c (expand_function_end): Insert the emit_stack_save
9734 sequence before parm_birth_insn instead of after.
9736 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9738 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9739 (ssse3_pmaddubsw128): Ditto.
9740 (ssse3_pmaddubsw): Ditto.
9742 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9744 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9746 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9749 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9750 on TYPE_SIZE_UNIT if it is a DECL.
9753 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9754 first operand is not is_gimple_mem_ref_addr, try to fold it.
9755 If the operand still isn't is_gimple_mem_ref_addr, clear
9758 2011-03-03 Richard Guenther <rguenther@suse.de>
9761 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9763 (refs_may_alias_p_1): For release branches return true if
9764 we are confused by our input.
9766 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9768 * config/s390/s390.c (s390_function_value): Rename to ...
9769 (s390_function_and_libcall_value): ... this.
9770 (s390_function_value): New function.
9771 (s390_libcall_value): New function.
9772 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9773 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9774 target macro definitions.
9775 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9777 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9779 * config/i386/freebsd64.h (CC1_SPEC): Define.
9780 * config/i386/linux64.h (CC1_SPEC): Define.
9781 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9783 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9785 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9787 * config/stormy16/stormy16.c: Include reload.h.
9788 (xstormy16_memory_move_cost): New function.
9789 (TARGET_MEMORY_MOVE_COST): Define.
9791 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9793 PR rtl-optimization/47925
9794 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9795 with side effects. Remove the more-specific check for volatile asms.
9797 2011-03-02 Alan Modra <amodra@gmail.com>
9800 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9801 toc relative addresses for valid offsets.
9803 2011-03-01 Richard Guenther <rguenther@suse.de>
9805 PR tree-optimization/47890
9806 * tree-vect-loop.c (get_initial_def_for_induction): Set
9807 related stmt properly.
9809 2011-03-01 Richard Guenther <rguenther@suse.de>
9812 * lto-streamer.c (lto_record_common_node): Also register
9815 2011-03-01 Richard Guenther <rguenther@suse.de>
9818 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9819 Do not stream DECL_ABSTRACT_ORIGIN.
9820 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9821 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9822 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9823 Do not stream DECL_ABSTRACT_ORIGIN.
9824 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9825 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9827 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9829 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9830 FUNCTION_VALUE_REGNO_P): Remove.
9831 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9832 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9833 Add 'outgoing' argument.
9834 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9836 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9837 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9839 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9842 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9843 (lookup_filename): Likewise.
9844 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9846 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9847 Jakub Jelinek <jakub@redhat.com>
9850 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9851 (assign_stack_local_1): Change last argument type to int.
9852 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9853 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9854 don't record padding space into frame_space_list nor use those areas.
9855 (assign_stack_local): Adjust caller.
9856 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9857 of assign_stack_local, pass 0 as last argument.
9858 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9861 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9864 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9865 Use target address_mode and pointer_mode hooks instead of hardcoded
9866 Pmode and ptr_mode. Handle some simple cases of extending if
9867 POINTERS_EXTEND_UNSIGNED < 0.
9868 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9869 Call convert_debug_memory_address.
9870 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9871 convert_debug_memory_address.
9874 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9875 * configure: Regenerated.
9876 * config.in: Regenerated.
9877 * varasm.c (default_function_section): Return NULL
9878 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9880 2011-02-28 Martin Jambor <mjambor@suse.cz>
9882 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9883 the description to match the printed values.
9885 2011-02-28 Richard Guenther <rguenther@suse.de>
9887 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9888 of the copied scope tree.
9890 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9892 * doc/extend.texi (Function Attributes): Avoid deeply (and
9893 wrongly) nested tables.
9895 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9898 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9899 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9900 r isn't op0 nor op1.
9902 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9904 * config/avr/avr.md: Remove magic comment for emacs.
9906 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9909 * config/avr/avr.c (avr_option_override): Use error on bad options.
9910 (avr_help): New function.
9911 (TARGET_HELP): Define.
9913 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9916 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9917 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9919 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9921 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9922 (ARM Options): Ditto.
9923 (i386 and x86-64 Options): Ditto.
9924 (RX Options): Ditto.
9925 (SPARC Options): Ditto.
9927 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9929 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9930 FreeBSD 6 and later. Generally use cpu generic.
9932 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9934 * doc/cpp.texi: Update copyright years.
9936 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9939 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9941 2011-02-25 Jon Beniston <jon@beniston.com>
9944 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9945 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9946 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9947 (lm32_block_move_inline): Add type cast to remove warning.
9948 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9949 (gen_int_relational): Move declarations to start of function.
9951 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9953 PR tree-optimization/45470
9954 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9955 can throw internally only.
9956 * tree-vect-stmts.c (vectorizable_call): Likewise.
9958 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9960 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9961 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9962 * config/stormy16/stormy16-protos.h
9963 (xstormy16_preferred_reload_class): Remove.
9964 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9965 static. Change 'rclass' argument and return type to reg_class_t.
9966 (TARGET_PREFERRED_RELOAD_CLASS,
9967 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9969 2011-02-24 Richard Guenther <rguenther@suse.de>
9971 * lto-streamer-in.c (input_bb): Do not find referenced vars
9972 in debug statements.
9974 2011-02-23 Jason Merrill <jason@redhat.com>
9976 * common.opt (fabi-version): Document v5 and v6.
9978 2011-02-23 Richard Guenther <rguenther@suse.de>
9980 PR tree-optimization/47849
9981 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9983 2011-02-23 Jie Zhang <jie@codesourcery.com>
9985 * opts-common.c (decode_cmdline_option): Print empty string
9986 argument as "" in decoded->orig_option_with_args_text.
9987 * gcc.c (execute): Print empty string argument as ""
9988 in the verbose output.
9989 (do_spec_1): Keep empty string argument.
9991 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9993 * config.gcc: Declare score-* and crx-* obsolete.
9995 2011-02-23 Jie Zhang <jie@codesourcery.com>
9997 PR rtl-optimization/47763
9998 * web.c (web_main): Ignore naked clobber when replacing register.
10000 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10002 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10005 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10008 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10010 2011-02-22 Mike Stump <mikestump@comcast.net>
10012 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10014 * configure: Regenerate.
10016 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10018 PR rtl-optimization/46002
10019 * ira-color.c (update_copy_costs): Change class intersection
10020 test to reg_class_contents[] test of 'hard_regno'.
10022 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10024 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10025 than Driver option.
10026 * config/hpux11.opt (mt): Likewise.
10027 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10028 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10029 * config/vax/elf.opt (mno-asm-pic): Likewise.
10030 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10032 2011-02-21 Mike Stump <mikestump@comcast.net>
10035 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10036 tree so we can get save the type.
10037 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10038 for CFString instead of trying to use past the end of the builtins.
10039 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10040 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10041 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10042 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10043 Rename to darwin_builtin_cfstring.
10044 (darwin_init_cfstring_builtins): Return the built type.
10046 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10049 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10050 (_mm256_insert_epi64): Use _mm_insert_epi64.
10052 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10054 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10055 * config/stormy16/stormy16-protos.h
10056 (xstormy16_mode_dependent_address_p): Remove.
10057 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10058 Make static. Change return type to bool. Change argument type to
10059 const_rtx. Remove dead code.
10060 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10062 2011-02-21 Richard Guenther <rguenther@suse.de>
10065 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10066 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10067 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10069 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10070 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10072 2011-02-20 Richard Guenther <rguenther@suse.de>
10075 * tree.c (free_lang_data_in_decl): Clean builtins from
10076 the TU decl BLOCK_VARS.
10078 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10082 * haifa-sched.c (fix_tick_ready): Skip tick computation
10085 2011-02-19 Richard Guenther <rguenther@suse.de>
10088 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10089 Remove lazy BLOCK_VARS streaming.
10090 (lto_input_ts_block_tree_pointers): Likewise.
10091 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10093 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10095 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10097 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10099 * config/i386/biarch32.h, config/i386/mach.h,
10100 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10102 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10105 * config/i386/i386.md (peephole2 for shift and plus): Use
10106 operands[1] original mode in the first insn.
10108 2011-02-18 Mike Stump <mikestump@comcast.net>
10110 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10112 2011-02-18 Jan Hubicka <jh@suse.cz>
10114 PR middle-end/47788
10115 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10116 to zero when the function is not inlinable at all.
10118 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10120 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10121 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10122 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10123 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10124 * config/pa/t-pa64: Likewise.
10125 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10127 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10130 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10132 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10135 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10137 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10139 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10140 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10141 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10142 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10143 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10144 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10145 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10146 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10147 m32r_legitimate_address_p): New functions.
10148 * config/m32r/constraints.md (constraint "S"): Don't use
10149 STORE_PREINC_PREDEC_P.
10150 (constraint "U"): Don't use LOAD_POSTINC_P.
10152 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10154 PR rtl-optimization/46178
10155 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10156 compute ira_hard_regno_cover_class[].
10158 2011-02-18 Richard Guenther <rguenther@suse.de>
10161 * lto-streamer.h (lto_global_var_decls): Declare.
10162 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10163 statics for global var processing.
10165 2011-02-18 Richard Guenther <rguenther@suse.de>
10167 PR tree-optimization/47737
10168 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10169 edge dominance check.
10171 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10174 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10175 avoid invalid rtx sharing.
10177 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10179 * doc/cpp.texi (Obsolete Features): Add background on the
10180 origin of assertions.
10182 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10184 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10186 * config/darwin.c (output_objc_section_asm_op): Added support for
10188 (is_objc_metadata): New.
10189 (darwin_objc2_section): New.
10190 (darwin_objc1_section): New.
10191 (machopic_select_section): Added support for ABI v1 and v2.
10192 (darwin_emit_objc_zeroed): New.
10193 (darwin_output_aligned_bss): Detect objc metadata and treat it
10195 (darwin_asm_output_aligned_decl_common): Same.
10196 (darwin_asm_output_aligned_decl_local): Same.
10197 * config/darwin-sections.def: Updated for ABI v1 and v2.
10198 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10199 compiling Objective-C code for the NeXT runtime, default to using
10200 ABI version 0 for 32-bit, and version 2 for 64-bit.
10202 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10204 * common.opt (optimize_fast): New Variable.
10205 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10206 instead of local variable ofast.
10208 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10210 * doc/invoke.texi (fobjc-abi-version): Documented.
10211 (fobjc-nilcheck): Documented.
10212 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10215 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10218 * common.opt (export-dynamic): New Driver option.
10219 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10221 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10223 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10225 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10226 Jan Hubicka <jh@suse.cz>
10230 * cfgexpand.c (account_used_vars_for_block): Remove.
10231 (estimated_stack_frame_size): Use referenced vars.
10232 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10233 that were referenced in the original function. Test src_fn
10234 rather than cfun. Drop redundant get_var_ann.
10235 (setup_one_parameter): Drop redundant get_var_ann.
10236 (declare_return_variable): Likewise.
10237 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10238 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10239 * ipa-inline.c (compute_inline_parameters): Do not compute
10240 disregard_inline_limits here.
10241 (compute_inlinable_for_current, pass_inlinable): New.
10242 (pass_inline_parameters): Require PROP_referenced_vars.
10243 * cgraphunit.c (cgraph_process_new_functions): Don't run
10244 compute_inline_parameters explicitly unless function is in SSA form.
10245 (cgraph_analyze_function): Set .disregard_inline_limits.
10246 * tree-sra.c (convert_callers): Compute inliner parameters
10247 only for functions already in SSA form.
10249 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10251 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10252 -mlittle-endian-data.
10254 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10256 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10257 -mno-fpu, not -fpu and -no-fpu.
10258 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10259 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10261 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10264 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10265 input reload with PLUS RTX.
10267 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10269 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10270 of InverseVar(MDMX).
10272 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10274 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10277 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10279 * config/mn10300/mn10300.opt (mno-crt0): New.
10281 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10283 * config/m68k/uclinux.opt (static-libc): New Driver option.
10285 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10287 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10289 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10291 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10292 %{muser-extend-enabled}.
10294 2011-02-16 Richard Guenther <rguenther@suse.de>
10296 PR tree-optimization/47738
10297 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10298 the TODO from tree_predictive_commoning.
10300 2011-02-15 Jeff Law <law@redhat.com>
10303 2011-01-25 Jeff Law <law@redhat.com>
10305 PR rtl-optimization/37273
10306 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10307 handle them like argument loads from stack slots. Do not double
10308 count memory for memory constants and argument loads from stack slots.
10310 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10312 PR middle-end/47725
10313 * combine.c (cant_combine_insn_p): Revert the last change.
10315 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10318 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10319 mode for vector constants. Remove code that checks for TImode.
10321 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10325 * cgraph.h (compute_inline_parameters): Return void.
10326 * ipa-inline.c (compute_inline_parameters): Adjust.
10328 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10332 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10334 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10335 * ipa-inline.c (compute_inline_parameters): Adjust.
10337 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10341 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10342 Adjust all users. Pass FN to...
10343 * tree-flow-inline.h (first_referenced_var): ... this. Add
10345 * ipa-struct-reorg.c: Adjust.
10346 * tree-dfa.c: Adjust.
10347 * tree-into-ssa.c: Adjust.
10348 * tree-sra.c: Adjust.
10349 * tree-ssa-alias.c: Adjust.
10350 * tree-ssa-live.c: Adjust.
10351 * tree-ssa.c: Adjust.
10352 * tree-ssanames.c: Adjust.
10353 * tree-tailcall.c: Adjust.
10355 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10359 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10360 Adjust all callers.
10361 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10362 * tree-flow-inline.h: Adjust.
10363 * gimple-pretty-print.c: Adjust.
10364 * tree-into-ssa.c: Adjust.
10365 * tree-ssa.c: Adjust.
10366 * cfgexpand.c: Adjust.
10368 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10370 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10371 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10372 (EXTRA_CONSTRAINT): Delete.
10373 * config/iq2000/constraints.md: New file.
10374 * config/iq2000/iq2000.md: Include it.
10375 (define_insn ""): Delete.
10376 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10377 unsupported constraint letters from patterns.
10378 (call_value, call_value_internal1): Likewise.
10379 (call_value_multiple_internal1): Likewise.
10381 2011-02-15 Nick Clifton <nickc@redhat.com>
10383 * config/mn10300/mn10300.c: Include tm-constrs.h.
10384 (struct liw_data): New data structure describing an LIW candidate
10386 (extract_bundle): Use struct liw_data. Allow small integer
10387 operands for some instructions.
10388 (check_liw_constraints): Use struct liw_data. Remove swapped
10389 parameter. Add comments describing the checks. Fix bug when
10390 assigning the source of liw1 to the source of liw2.
10391 (liw_candidate): Delete. Code moved into extract_bundle.
10392 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10394 * config/mn10300/predicates.md (liw_operand): New predicate.
10395 Allows registers and small integer constants.
10396 * config/mn10300/constraints.md (O): New constraint. Accetps
10397 integers in the range -8 to +7 inclusive.
10398 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10399 for moving a small integer into a register. Give this alternative
10401 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10402 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10403 using the J,K,L and M constraints,
10404 (liw): Remove SI mode on second operands to allow for HI and QI
10406 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10409 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10411 PR middle-end/47725
10412 * combine.c (cant_combine_insn_p): Check zero/sign extended
10415 2011-02-15 Richard Guenther <rguenther@suse.de>
10417 PR tree-optimization/47743
10418 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10419 for a non-type-compatible VN lookup bail out.
10421 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10423 * config/fr30/constraints.md: New file.
10424 * config/fr30/fr30.md: Include it.
10425 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10426 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10427 (EXTRA_CONSTRAINT): Delete.
10429 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10431 * config/frv/constraints.md: New file.
10432 * config/frv/predicates.md: Include it.
10433 * config/frv/frv.c (reg_class_from_letter): Delete.
10434 (frv_option_override): Don't initialize it.
10435 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10436 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10437 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10438 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10439 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10440 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10441 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10442 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10443 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10444 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10445 (REG_CLASS_FROM_CONSTRAINT): Delete.
10447 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10449 PR middle-end/47581
10450 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10451 if frame size is 0 in a leaf function.
10453 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10456 * config/alpha/host-osf.c: New file.
10457 * config/alpha/x-osf: New file.
10458 * config.host (alpha*-dec-osf*): Use it.
10460 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10462 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10463 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10464 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10465 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10467 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10469 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10471 * config/stormy16/constraints.md: New file.
10472 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10473 Use satisfies_constraint_Q and satisfies_constraint_R.
10474 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10476 (xstormy16_legitiamte_address_p): Declare.
10477 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10478 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10479 (EXTRA_CONSTRAINT): Delete.
10480 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10482 (xstormy16_extra_constraint_p): Delete.
10484 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10486 PR tree-optimization/46494
10487 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10488 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10489 (pass_rtl_loop_done): Add TODO_verify_flow.
10490 * fwprop.c (pass_rtl_fwprop): Likewise.
10491 * modulo-sched.c (pass_sms): Likewise.
10492 * tree-ssa-dom.c (pass_dominator): Likewise.
10493 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10494 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10495 (pass_tree_loop_done): Likewise.
10496 * tree-ssa-pre.c (execute_pre): Likewise.
10497 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10498 * tree-ssa-sink.c (pass_sink_code): Likewise.
10499 * tree-vrp.c (pass_vrp): Likewise.
10501 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10503 * config/v850/constraints.md: New file.
10504 * config/v850/v850.md: Include it.
10505 * config/v850/predicates.md (reg_or_0_operand): Use
10506 satisfies_constraint_G.
10507 (special_symbolref_operand): Use satisfies_constraint_K.
10508 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10509 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10510 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10511 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10512 (EXTRA_CONSTRAINT): Delete.
10513 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10514 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10515 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10517 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10520 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10523 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10525 * config/mcore/constraints.md: New file.
10526 * config/mcore/mcore.md: Include it.
10527 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10528 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10529 (REG_CLASS_FROM_LETTER): Delete.
10530 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10531 insn_const_int_ok_for_constraint.
10532 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10533 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10534 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10535 (EXTRA_CONSTRAINT): Delete.
10537 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10540 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10541 (IS_SIGHANDLER): Define.
10542 (sparc64_is_sighandler): New function, split off from
10543 sparc64_fallback_frame_state.
10544 (sparc_is_sighandler): New function, split off from
10545 sparc_fallback_frame_state.
10546 (sparc64_fallback_frame_state): Merge with ...
10547 (sparc_fallback_frame_state): ... this into ...
10548 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10549 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10550 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10551 stack instead of hardcoded offsets.
10553 2011-02-14 Andriy Gapon <avg@freebsd.org>
10556 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10558 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10560 * configure: Regenerate.
10562 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10565 * gcc.c (asm_options): Correct spec matching --target-help.
10567 2011-02-12 Martin Jambor <mjambor@suse.cz>
10569 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10570 to gimple call error.
10572 2011-02-12 Mike Stump <mikestump@comcast.net>
10574 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10575 comments in backslash regions.
10577 2011-02-12 Mike Stump <mikestump@comcast.net>
10578 Jakub Jelinek <jakub@redhat.com>
10579 Iain Sandoe <iains@gcc.gnu.org>
10582 * dwarf2out.c (output_cfa_loc): When required, apply the
10583 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10584 (output_loc_sequence): Likewise.
10585 (output_loc_operands_raw): Likewise.
10586 (output_loc_sequence_raw): Likewise.
10587 (output_cfa_loc): Likewise.
10588 (output_loc_list): Suppress register number adjustment when
10589 calling output_loc_sequence()
10590 (output_die): Likewise.
10592 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10594 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10596 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10597 xtensa_memory_move_cost): New functions.
10598 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10600 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10603 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10604 in the current directory.
10605 * configure: Rebuilt.
10607 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10609 * config/darwin.c (darwin_override_options): Add a hunk missed
10610 from the commit of r168571. Trim comment line lengths and
10611 correct indents of the preceding block.
10613 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10615 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10618 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10620 * common.opt (nostartfiles): New Driver option.
10622 2011-02-11 Xinliang David Li <davidxl@google.com>
10624 PR tree-optimization/47707
10625 * tree-chrec.c (convert_affine_scev): Keep type precision.
10627 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10629 PR tree-optimization/47420
10630 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10632 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10634 PR rtl-optimization/47614
10635 * rtl.h (check_for_inc_dec): Declare.
10636 * dse.c (check_for_inc_dec): Externalize...
10637 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10638 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10640 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10643 * gcc.c (main): Do not compile inputs if there were errors in
10645 * opts-common.c (read_cmdline_option): Check for wrong language
10646 after other error checks.
10648 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10650 * cgraph.c: Fix comment typos.
10651 * cgraph.h: Likewise.
10652 * cgraphunit.c: Likewise.
10653 * ipa-cp.c: Likewise.
10654 * ipa-inline.c: Likewise.
10655 * ipa-prop.c: Likewise.
10656 * ipa-pure-const.c: Likewise.
10657 * ipa-ref.c: Likewise.
10658 * ipa-reference.c: Likewise.
10660 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10663 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10665 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10668 * doc/sourcebuild.texi (Require Support): Document
10669 dg-require-ascii-locale.
10671 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10673 * doc/lto.texi (Write summary): Fix missing parentheses.
10675 2011-02-10 DJ Delorie <dj@redhat.com>
10677 * config/m32c/m32c.c (m32c_option_override): Disable
10678 -fcombine-stack-adjustments until flag value tracking and compare
10679 optimization can be rewritten.
10681 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10683 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10685 (PROCESSOR_DEFAULT64): Likewise.
10687 2011-02-10 Richard Henderson <rth@redhat.com>
10689 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10690 change from 2011-02-03.
10691 * config/rx/rx.c (flags_from_code): Likewise.
10692 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10693 is valid, n/pz otherwise.
10694 (rx_select_cc_mode): Return CCmode if Y is not zero.
10696 2011-02-10 Richard Guenther <rguenther@suse.de>
10698 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10700 2011-02-10 Richard Guenther <rguenther@suse.de>
10702 PR tree-optimization/47677
10703 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10705 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10708 * combine.c (make_compound_operation): Only change shifts into
10709 multiplication for SCALAR_INT_MODE_P.
10711 2011-02-10 Jie Zhang <jie@codesourcery.com>
10715 2011-02-05 Jie Zhang <jie@codesourcery.com>
10717 * web.c (entry_register): Don't clobber the number of the
10718 first uninitialized reference in used[].
10720 2011-02-09 Richard Guenther <rguenther@suse.de>
10722 PR tree-optimization/47664
10723 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10726 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10730 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10732 (PROCESSOR_DEFAULT64): Same.
10733 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10735 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10737 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10739 2011-02-09 Martin Jambor <mjambor@suse.cz>
10741 PR middle-end/45505
10742 * tree-sra.c (struct access): New flags grp_scalar_read and
10743 grp_scalar_write. Changed description of assignment read and write
10745 (dump_access): Dump new flags, reorder all of them.
10746 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10747 to detect multiple scalar reads.
10748 (analyze_access_subtree): Use the new scalar read write flags instead
10749 of the old flags. Adjusted comments.
10751 2011-02-08 DJ Delorie <dj@redhat.com>
10754 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10757 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10759 * config/m68k/uclinux.opt: New.
10760 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10762 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10764 * config/cris/elf.opt (sim): New Driver option.
10766 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10768 * config/xtensa/elf.opt: New.
10769 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10771 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10773 * config/vax/elf.opt: New.
10774 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10776 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10778 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10780 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10782 * config/gnu-user.opt: New.
10783 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10784 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10785 *-*-uclinux*): Use gnu-user.opt.
10787 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10789 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10790 * config/i386/gnu.h (CPP_SPEC): Likewise.
10792 2011-02-08 Ian Lance Taylor <iant@google.com>
10794 * common.opt (fcx-limited-range): Add SetByCombined flag.
10795 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10796 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10797 (fassociative-math, freciprocal-math): Likewise.
10798 (funsafe-math-optimizations): Likewise.
10799 * opth-gen.awk: Handle SetByCombined.
10800 * optc-gen.awk: Likewise.
10801 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10802 (set_unsafe_math_optimizations_flags): Likewise.
10803 * doc/options.texi (Option properties): Document SetByCombined.
10805 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10807 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10808 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10809 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10810 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10811 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10813 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10815 PR tree-optimization/46834
10816 PR tree-optimization/46994
10817 PR tree-optimization/46995
10818 * graphite-sese-to-poly.c (used_outside_reduction): New.
10819 (detect_commutative_reduction): Call used_outside_reduction.
10820 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10821 translate_scalar_reduction_to_array only when at least one
10822 loop-phi/close-phi tuple has been detected.
10824 2011-02-08 Richard Guenther <rguenther@suse.de>
10826 PR middle-end/47639
10827 * tree-vect-generic.c (expand_vector_operations_1): Update
10829 (expand_vector_operations): ... not here. Cleanup EH info
10830 and the CFG if required.
10832 2011-02-08 Richard Guenther <rguenther@suse.de>
10834 PR tree-optimization/47641
10835 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10836 require type compatibility.
10838 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10840 * gimple-low.c (lower_function_body): Don't remove the location of
10841 the return statement here.
10842 (lower_gimple_return): Do it here instead but only if the return
10843 statement is actually used twice.
10845 2011-02-08 Richard Guenther <rguenther@suse.de>
10847 PR tree-optimization/47632
10848 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10849 unused up_to_stmt parameter, return whether cfg-cleanup is
10850 necessary, remove EH info properly.
10851 (forward_propagate_into_gimple_cond): Adjust caller.
10852 (forward_propagate_into_cond): Likewise.
10853 (forward_propagate_comparison): Likewise.
10854 (tree_ssa_forward_propagate_single_use_vars): Make
10855 forward_propagate_comparison case similar to the two others.
10857 2011-02-08 Nick Clifton <nickc@redhat.com>
10859 * config/mn10300/mn10300.opt (mliw): New command line option.
10860 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10861 (liw_bundling): New automaton.
10862 (liw): New attribute.
10863 (liw_op): New attribute.
10864 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10865 (movsi_internal): Add LIW attributes.
10866 (andsi3): Likewise.
10867 (iorsi3): Likewise.
10868 (xorsi3): Likewise.
10869 (addsi3): Separate register and immediate alternatives.
10870 Add LIW attributes.
10871 (subsi3): Likewise.
10873 (aslsi3): Likewise.
10874 (lshrsi3): Likewise.
10875 (ashrsi3): Likewise.
10876 (liw): New pattern.
10877 * config/mn10300/mn10300.c (liw_op_names): New
10878 (mn10300_print_operand): Handle 'W' operand descriptor.
10879 (extract_bundle): New function.
10880 (check_liw_constraints): New function.
10881 (liw_candidate): New function.
10882 (mn10300_bundle_liw): New function.
10883 (mn10300_reorg): New function.
10884 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10885 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10886 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10887 __LIW__ or __NO_LIW__.
10888 * doc/invoke.texi: Describe the -mliw command line option.
10890 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10892 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10893 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10894 pthread_mutex_unlock): Remove.
10895 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10896 * config/pa/t-pa64: Likewise.
10897 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10898 shared libc if not linking against libpthread.
10899 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10901 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10904 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10905 on 10.6 and later to ensure that we always use the unwinder from
10906 the system. Only add -no_compact_unwind when tarteting darwin
10909 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10912 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10913 (vec_interleave_lowv2sf): Ditto.
10914 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10915 (vec_extract_oddv2sf): Ditto.
10917 2011-02-07 Mike Stump <mikestump@comcast.net>
10920 Add __ieee_divdc3 entry point.
10921 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10923 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10924 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10925 * config/darwin.c (darwin_rename_builtins): Add.
10926 * config/darwin-protos.h (darwin_rename_builtins): Add.
10928 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10931 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10934 2011-02-07 Mike Stump <mikestump@comcast.net>
10936 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10938 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10941 * config/avr/libgcc.S (exit): Move .endfunc
10943 2011-02-07 Richard Guenther <rguenther@suse.de>
10945 PR tree-optimization/47615
10946 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10947 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10948 (run_scc_vn): Initialize it.
10949 (visit_reference_op_load): Use it.
10950 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10952 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10954 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10955 DImode trapping arithmetic libfuncs.
10957 2011-02-07 Richard Guenther <rguenther@suse.de>
10959 PR tree-optimization/47621
10960 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10962 (execute_update_addresses_taken): ... here. Make it more
10963 conservative in what we accept.
10965 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10967 * config/sparc/freebsd.h (ASM_SPEC): Define.
10968 * config/sparc/vxworks.h (ASM_SPEC): Define.
10970 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10972 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10974 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10976 * doc/invoke.texi: Remove reference to compiler internals from
10977 user documentation.
10979 * reg-notes.def: Remove REG_VALUE_PROFILE.
10980 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10982 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10984 PR middle-end/47610
10985 * varasm.c (default_section_type_flags): If decl is NULL,
10986 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10988 2011-02-05 Jie Zhang <jie@codesourcery.com>
10991 * web.c (entry_register): Don't clobber the number of the
10992 first uninitialized reference in used[].
10994 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10996 PR tree-optimization/46194
10997 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10998 (build_classic_dist_vector_1): Do not represent classic distance
10999 vectors when the access functions are variating in different loops.
11001 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11003 * config/mips/iris6.opt: New.
11004 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11006 2011-02-04 Richard Henderson <rth@redhat.com>
11007 Steve Ellcey <sje@cup.hp.com>
11010 * config/ia64/predicates.md (mux1_brcst_element): New.
11011 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11012 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11013 (ia64_unpack_sign): New.
11014 (ia64_expand_unpack): Rewrite using new routines.
11015 (ia64_expand_widen_sum): Ditto.
11016 (ia64_expand_dot_prod_v8qi): Ditto.
11017 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11018 routines, add endian check.
11019 (pmpy2_even): Rename from pmpy2_r, add endian check.
11020 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11021 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11022 (vec_widen_smult_hi_v4hi): Ditto.
11023 (vec_widen_umult_lo_v4hi): Ditto.
11024 (vec_widen_umult_hi_v4hi): Ditto.
11025 (mulv2si3): Change endian checks.
11026 (sdot_prodv4hi): Rewrite with new calls.
11027 (udot_prodv4hi): New.
11028 (vec_pack_ssat_v4hi): Add endian check.
11029 (vec_pack_usat_v4hi): Ditto.
11030 (vec_pack_ssat_v2si): Ditto.
11031 (max1_even): Rename from max1_r, add endian check.
11032 (max1_odd): Rename from max1_l, add endian check.
11033 (*mux1_rev): Format change.
11034 (*mux1_mix): Ditto.
11035 (*mux1_shuf): Ditto.
11036 (*mux1_alt): Ditto.
11037 (*mux1_brcst_v8qi): Use new predicate.
11038 (vec_extract_evenv8qi): Remove endian check.
11039 (vec_extract_oddv8qi): Ditto.
11040 (vec_interleave_lowv4hi): Format change.
11041 (vec_interleave_highv4hi): Ditto.
11042 (mix2_even): Rename from mix2_r, add endian check.
11043 (mix2_odd): Rename from mux2_l, add endian check.
11044 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11045 (vec_extract_evenodd_helper): Format change.
11046 (vec_extract_evenv4hi): Remove endian check.
11047 (vec_extract_oddv4hi): Remove endian check.
11048 (vec_interleave_lowv2si): Format change.
11049 (vec_interleave_highv2si): Format change.
11050 (vec_initv2si): Remove endian check.
11051 (vecinit_v2si): Add endian check.
11052 (reduc_splus_v2sf): Add endian check.
11053 (reduc_smax_v2sf): Ditto.
11054 (reduc_smin_v2sf): Ditto.
11055 (vec_initv2sf): Remove endian check.
11056 (fpack): Add endian check.
11057 (fswap): Add endian check.
11058 (vec_interleave_highv2sf): Add endian check.
11059 (vec_interleave_lowv2sf): Add endian check.
11060 (fmix_lr): Add endian check.
11061 (vec_setv2sf): Format change.
11062 (*vec_extractv2sf_0_be): Use shift to extract operand.
11063 (*vec_extractv2sf_1_be): New.
11064 (vec_pack_trunc_v4hi): Add endian check.
11065 (vec_pack_trunc_v2si): Format change.
11067 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11069 PR inline-asm/23200
11070 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11071 do bb, locus and block comparison and disallow loads if it is not set.
11072 (stmt_is_replaceable_p): New function.
11073 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11075 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11076 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11078 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11080 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11082 * config/rs6000/xilinx.opt: New.
11083 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11085 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11087 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11089 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11091 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11092 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11093 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11094 secondary_reload_info, xtensa_secondary_reload): Remove.
11095 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11096 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11097 (xtensa_preferred_reload_class): Make static. Change return and
11098 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11099 Use CONST_DOUBLE_P predicate.
11100 (xtensa_preferred_output_reload_class): New function.
11101 (xtensa_secondary_reload): Make static.
11103 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11105 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11106 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11107 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11109 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11111 PR middle-end/31490
11112 * output.h (SECTION_RELRO): Define.
11113 (SECTION_MACH_DEP): Adjust.
11114 (get_variable_section): New prototype.
11115 * varpool.c (varpool_finalize_named_section_flags): New function.
11116 (varpool_assemble_pending_decls): Call it.
11117 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11118 * cgraphunit.c (cgraph_output_in_order): Call
11119 varpool_finalize_named_section_flags.
11120 * varasm.c (get_section): Allow section flags conflicts between
11121 relro and read-only sections if the section hasn't been declared yet.
11122 Set SECTION_OVERRIDE after diagnosing section type conflict.
11123 (get_variable_section): No longer static.
11124 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11125 readonly sections that need relocations.
11126 (decl_readonly_section_1): New function.
11127 (decl_readonly_section): Use it.
11130 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11131 Steve Ellcey <sje@cup.hp.com>
11133 PR middle-end/31490
11134 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11135 if section attribute used.
11137 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11139 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11140 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11141 (darwin_init_sections): Remove assertion.
11143 2011-02-03 Nick Clifton <nickc@redhat.com>
11145 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11147 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11148 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11149 instead of "n" and "pz".
11150 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11153 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11156 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11157 fma, expand FMA_EXPR as fma{,f,l} call.
11160 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11161 copy them into a unsigned char variable and pass address of it to
11162 lto_output_data_stream.
11165 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11166 around backend_init_target and lang_dependent_init_target calls.
11167 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11168 (verify_cgraph_node): Don't call set_cfun here. Use
11169 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11170 Set error_found for incorrectly represented calls to thunks.
11172 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11175 PR rtl-optimization/43494
11176 * rtl.h (for_each_inc_dec_fn): New type.
11177 (for_each_inc_dec): Declare.
11178 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11179 (for_each_inc_dec_find_inc_dec): New fn.
11180 (for_each_inc_dec_find_mem): New fn.
11181 (for_each_inc_dec): New fn.
11182 * dse.c (struct insn_size): Remove.
11183 (replace_inc_dec, replace_inc_dec_mem): Remove.
11184 (emit_inc_dec_insn_before): New fn.
11185 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11186 (canon_address): Pass mem modes to cselib_lookup.
11187 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11188 (cselib_lookup_from_insn): Likewise.
11189 (cselib_subst_to_values): Likewise.
11190 * cselib.c (find_slot_memmode): New var.
11191 (cselib_find_slot): New fn. Use it instead of
11192 htab_find_slot_with_hash everywhere.
11193 (entry_and_rtx_equal_p): Use find_slot_memmode.
11194 (autoinc_split): New fn.
11195 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11196 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11197 Deal with autoinc. Special-case recursion into MEMs.
11198 (cselib_hash_rtx): Likewise.
11199 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11200 address and MEM modes.
11201 (cselib_subst_to_values): Add memmode, pass it on.
11203 (cselib_lookup): Add memmode argument, pass it on.
11204 (cselib_lookup_from_insn): Add memmode.
11205 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11206 (struct cselib_record_autoinc_data): New.
11207 (cselib_record_autoinc_cb): New fn.
11208 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11209 mode to cselib_lookup. Reset autoinced REGs here instead of...
11210 (cselib_process_insn): ... here.
11211 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11213 (add_uses): Likewise, also to cselib_subst_to_values.
11214 (add_stores): Likewise.
11215 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11216 cselib_subst_to_values.
11217 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11218 * gcse.c (do_local_cprop): Adjusted.
11219 * postreload.c (reload_cse_simplify_set): Adjusted.
11220 (reload_cse_simplify_operands): Adjusted.
11221 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11223 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11225 PR tree-optimization/45122
11226 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11227 unsafe assumptions when there's more than one loop exit.
11229 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11232 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11233 Document using vector double with the load/store builtins, and
11234 that the load/store builtins always use Altivec instructions.
11236 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11237 to use altivec memory instructions, even on VSX.
11238 (vector_altivec_store_<mode>): Ditto.
11240 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11243 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11244 V2DF, V2DI support to load/store overloaded builtins.
11246 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11247 altivec load/store builtins for V2DF/V2DI types.
11249 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11250 set avoid indexed addresses on power6 if -maltivec.
11251 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11252 vector_altivec_load/vector_altivec_store builtins.
11253 (altivec_expand_st_builtin): Ditto.
11254 (altivec_expand_builtin): Add VSX memory builtins.
11255 (rs6000_init_builtins): Add V2DI types to internal types.
11256 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11257 load/store builtins.
11258 (rs6000_address_for_altivec): Insure memory address is appropriate
11261 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11262 vec_vsx_ld and vec_vsx_st.
11263 (vsx_store_<mode>): Ditto.
11265 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11266 variables to hold long long types for VSX vector memory builtins.
11267 (RS6000_BTI_unsigned_long_long): Ditto.
11268 (long_long_integer_type_internal_node): Ditti.
11269 (long_long_unsigned_type_internal_node): Ditti.
11271 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11272 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11273 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11275 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11277 (vec_vsx_st): Ditto.
11279 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11281 * config/pa/pa-hpux10.opt: New.
11282 * config/hpux11.opt (pthread): New Driver option.
11283 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11284 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11286 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11288 * config/ia64/vms.opt: New.
11289 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11291 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11294 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11295 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11296 generator functions.
11297 (vsx_floatuns<VSi><mode>2): Ditto.
11298 (vsx_fix_trunc<mode><VSi>2): Ditto.
11299 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11301 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11303 * config/i386/djgpp.opt (posix): New Driver option.
11305 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11307 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11308 Move to the unsupported targets list.
11310 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11312 PR rtl-optimization/47525
11313 * df-scan.c: Update copyright years.
11314 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11315 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11317 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11319 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11320 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11321 (ASM_OUTPUT_ASCII): Remove.
11322 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11324 2011-02-02 Jeff Law <law@redhat.com>
11326 PR middle-end/47543
11327 * reload.c (find_reloads_address): Handle reg+d address where both
11328 components are invalid by reloading the entire address.
11330 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11331 Richard Guenther <rguenther@suse.de>
11333 PR tree-optimization/40979
11335 * passes.c (init_optimization_passes): After LIM call copy_prop
11336 and DCE to clean up.
11337 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11339 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11341 PR tree-optimization/47576
11342 PR tree-optimization/47555
11343 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11344 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11345 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11346 * tree-scalar-evolution.c (follow_ssa_edge): Use
11347 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11349 2011-02-02 Richard Guenther <rguenther@suse.de>
11351 PR tree-optimization/47566
11352 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11354 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11358 * tree-inline.c (declare_return_variable): Remove unused caller
11363 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11364 * cfgexpand.c (account_used_vars_for_block): Use them.
11365 * tree-nrv.c (tree_nrv): Likewise.
11366 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11367 (dump_scope_block): Likewise.
11368 (remove_unused_locals): Likewise.
11372 * tree-inline.c (declare_return_variable): Add result decl to
11373 local decls only once.
11374 * gimple-low.c (record_vars_into): Mark newly-created variables
11377 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11383 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11385 (no_real_insns_p, schedule_block, set_priorities): Drop special
11386 treatment of boundary debug insns.
11387 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11388 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11389 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11390 (BOUNDARY_DEBUG_INSN_P): Likewise.
11391 (SCHEDULE_DEBUG_INSN_P): Likewise.
11392 * sched-rgn.c (init_ready_list): Drop special treatment of
11393 boundary debug insns.
11394 * final.c (rest_of_clean_state): Clear notes' BB.
11396 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11398 * config/openbsd.opt (assert=): New Driver option.
11400 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11402 * config/i386/nto.opt: New.
11403 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11405 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11407 * config/i386/netware.opt: New.
11408 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11410 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11412 * config/interix.opt (posix): New Driver option.
11414 2011-02-01 DJ Delorie <dj@redhat.com>
11416 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11418 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11421 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11423 PR tree-optimization/47561
11424 * toplev.c (process_options): Print the Graphite flags. Add
11425 flag_loop_flatten to the list of options requiring Graphite.
11427 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11429 * config/i386/cygming.opt (posix): New Driver option.
11431 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11433 * config/arm/vxworks.opt: New.
11434 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11436 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11438 * config/alpha/elf.opt: New.
11439 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11440 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11442 2011-02-01 Richard Guenther <rguenther@suse.de>
11444 PR tree-optimization/47559
11445 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11446 store-motion on references that can throw.
11448 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11450 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11451 * tree-pass.h (TDF_CSELIB): New macro.
11452 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11453 cselib_lookup): Check for it rather than for TDF_DETAILS.
11455 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11458 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11459 is HOST_BIT_BUCKET.
11461 * opts.c (finish_options): Don't add x_aux_base_name if it is
11464 2011-02-01 Richard Guenther <rguenther@suse.de>
11466 PR tree-optimization/47555
11468 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11470 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11472 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11475 * config/lm32/t-lm32: Add multilib for all CPU options.
11477 2011-02-01 Richard Guenther <rguenther@suse.de>
11479 PR tree-optimization/47541
11480 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11481 sure to have a field at offset zero.
11483 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11485 * config/arc/arc.opt (EB, EL): New Driver options.
11487 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11489 * config/alpha/osf5.opt: New.
11490 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11492 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11494 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11496 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11498 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11499 -floop-interchange.
11500 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11501 is an alias of -floop-interchange and that it requires the
11502 Graphite infrastructure.
11503 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11504 flag_loop_interchange based on the value of flag_tree_loop_linear.
11506 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11507 Richard Guenther <rguenther@suse.de>
11509 PR tree-optimization/47538
11510 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11511 type instead of r1type, except for comparisons. For right
11512 shifts and comparisons punt if there are mismatches in
11513 sizetype vs. non-sizetype types.
11515 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11517 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11520 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11522 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11524 * configure: Regenerate.
11526 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11528 * configure.ac (gcc_cv_ld_static_option): Define.
11529 (gcc_cv_ld_dynamic_option): Define.
11530 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11532 (HAVE_LD_STATIC_DYNAMIC): Update message.
11533 (LD_STATIC_OPTION): Define.
11534 (LD_DYNAMIC_OPTION): Define.
11535 * configure: Regenerate.
11536 * config.in: Regenerate.
11537 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11538 HAVE_LD_STATIC_DYNAMIC]: Use them.
11540 2011-01-31 Nick Clifton <nickc@redhat.com>
11542 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11543 registers inside interrupt handlers if the handler is not a leaf
11546 2011-01-31 Nick Clifton <nickc@redhat.com>
11548 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11549 reg_renumber returning an INVALID_REGNUM.
11551 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11554 * doc/install.texi: Document host options discarded when cross
11555 configuring target libraries.
11557 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11560 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11563 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11565 (no_real_insns_p, schedule_block, set_priorities): Drop special
11566 treatment of boundary debug insns.
11567 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11568 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11569 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11570 (BOUNDARY_DEBUG_INSN_P): Likewise.
11571 (SCHEDULE_DEBUG_INSN_P): Likewise.
11572 * sched-rgn.c (init_ready_list): Drop special treatment of
11573 boundary debug insns.
11574 * final.c (rest_of_clean-state): Clear notes' BB.
11576 2011-01-31 Alan Modra <amodra@gmail.com>
11578 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11579 toc relative expressions as we do in print_operand_address.
11581 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11583 * doc/extend.texi: Follow spelling conventions.
11584 * doc/invoke.texi: Fix a typo.
11586 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11588 * config/hpux11.opt: New.
11589 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11590 ia64*-*-hpux*): Use hpux11.opt.
11592 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11594 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11597 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11599 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11602 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11604 * doc/install.texi (Binaries): Remove outdated reference for
11605 Motorola 68HC11/68HC12 downloads.
11607 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11609 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11612 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11615 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11618 2011-01-28 Ahmad Sharif <asharif@google.com>
11620 * value-prof.c (check_counter): Corrected error message.
11622 2011-01-29 Jie Zhang <jie@codesourcery.com>
11624 * config/arm/arm.c (arm_legitimize_reload_address): New.
11625 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11626 arm_legitimize_reload_address.
11627 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11629 2011-01-28 Ian Lance Taylor <iant@google.com>
11631 * godump.c (go_define): Ignore macros whose definitions include
11632 two adjacent operands.
11634 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11637 * varasm.c (force_const_mem): Store copy of x in desc->constant
11638 instead of x itself.
11639 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11640 itself into REG_EQUAL note.
11642 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11644 * config/freebsd.opt (posix, rdynamic): New Driver options.
11646 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11648 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11649 -Bstatic/-Bdynamic.
11650 * configure: Regenerate.
11652 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11654 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11655 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11657 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11659 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11660 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11661 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11662 (s390_preferred_reload_class): Make static. Change return and
11663 'rclass' argument type to reg_class_t.
11665 2011-01-27 Jan Hubicka <jh@suse.cz>
11667 PR middle-end/46949
11668 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11669 (process_function_and_variable_attributes): Check defined weakrefs.
11671 2011-01-27 Martin Jambor <mjambor@suse.cz>
11673 PR tree-optimization/47228
11674 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11675 build_ref_for_offset.
11677 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11679 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11681 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11683 PR rtl-optimization/46856
11684 * postreload.c (reload_combine_recognize_const_pattern): Do not
11685 separate cc0 setter and user on cc0 targets.
11687 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11690 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11691 passed a VOID_TYPE expression, immediately emit an error and
11692 return error_mark_node.
11694 2011-01-26 Jeff Law <law@redhat.com>
11696 PR rtl-optimization/47464
11697 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11698 rather than may_trap_p as needed.
11700 2011-01-26 DJ Delorie <dj@redhat.com>
11702 PR rtl-optimization/46878
11703 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11704 setter/user dependency as well.
11706 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11708 PR rtl-optimization/44469
11709 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11710 after removing trivially dead basic blocks.
11712 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11714 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11715 * config/frv/frv.h (LINK_SPEC): Likewise.
11716 * config/i386/netware.h (LINK_SPEC): Likewise.
11717 * config/m68k/linux.h (ASM_SPEC): Likewise.
11718 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11719 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11720 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11721 * config/sparc/linux.h (ASM_SPEC): Likewise.
11722 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11723 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11725 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11727 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11728 * config/frv/frv.h (ASM_SPEC): Likewise.
11729 * config/m68k/linux.h (ASM_SPEC): Likewise.
11730 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11731 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11732 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11733 * config/sparc/linux.h (ASM_SPEC): Likewise.
11734 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11735 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11737 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11739 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11740 * config/frv/frv.h (LINK_SPEC): Likewise.
11741 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11743 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11745 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11746 * config/frv/frv.h (ASM_SPEC): Likewise.
11747 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11748 * config/m68k/linux.h (ASM_SPEC): Likewise.
11749 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11750 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11751 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11752 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11753 * config/sparc/linux.h (ASM_SPEC): Likewise.
11754 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11755 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11756 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11758 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11761 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11763 (vec_extract_evenodd_help): Ditto.
11764 (vec_extract_evenv4hi): Ditto.
11765 (vec_extract_oddv4hi): Ditto.
11766 (vec_interleave_lowv2si): Ditto.
11767 (vec_interleave_highv2si): Ditto.
11768 (vec_extract_evenv2si): Ditto.
11769 (vec_extract_oddv2si: Ditto.
11770 (vec_pack_trunc_v2si): Ditto.
11772 2011-01-22 Jan Hubicka <jh@suse.cz>
11775 * cgraph.h (cgraph_local_info): New field can_change_signature.
11776 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11777 signature can change.
11778 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11780 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11781 (cgraph_function_versioning): We can not change signature of functions
11782 that don't allow that.
11783 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11784 (lto_input_node): Likewise.
11785 * ipa-inline.c (compute_inline_parameters): Compute
11786 local.can_change_signature.
11787 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11788 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11789 functions that can not change signature.
11790 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11791 init_cumulative_args): Do not use local calling conventions
11792 for functions that can not change signature.
11794 2011-01-22 Jan Hubicka <jh@suse.cz>
11796 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11798 2011-01-26 Richard Guenther <rguenther@suse.de>
11800 PR tree-optimization/47190
11801 * cgraphunit.c (process_common_attributes): New function.
11802 (process_function_and_variable_attributes): Use it.
11804 2011-01-26 Richard Guenther <rguenther@suse.de>
11807 * cgraphbuild.c (record_eh_tables): Record reference to personality
11810 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11813 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11814 non-debug insns from moving up.
11816 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11819 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11820 t-dlldir{,-x} fragment for build and add it to tmake_file.
11821 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11822 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11823 * config/i386/t-dlldir: New file.
11824 (SHLIB_DLLDIR): Define.
11825 * config/i386/t-dlldir-x: New file.
11826 (SHLIB_DLLDIR): Define.
11827 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11828 (SHLIB_INSTALL): Use it.
11830 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11833 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11834 lower bound of the allowed Thumb-2 coprocessor load/store
11835 index range to -256. Add explaining comment.
11837 2011-01-25 Ian Lance Taylor <iant@google.com>
11839 * godump.c (go_define): Improve lexing of macro expansion to only
11840 accept expressions which match Go spec.
11842 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11845 * tree.c (handle_dll_attribute): Handle it.
11846 * doc/extend.texi (@item dllexport): Mention it.
11847 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11849 2011-01-25 Ian Lance Taylor <iant@google.com>
11851 PR tree-optimization/26854
11852 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11853 (decl_jump_unsafe): Move higher in file, with no other change.
11854 (bind): Set has_jump_unsafe_decl if appropriate.
11855 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11856 (check_earlier_gotos): Likewise.
11857 (c_check_switch_jump_warnings): Likewise.
11859 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11861 * doc/invoke.texi (Warning Options): Add missing hyphen.
11862 (-fprofile-dir): Minor grammatical fixes.
11863 (-fbranch-probabilities): Likewise.
11865 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11869 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11871 (no_real_insns_p, schedule_block, set_priorities): Drop special
11872 treatment of boundary debug insns.
11873 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11874 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11875 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11876 (BOUNDARY_DEBUG_INSN_P): Likewise.
11877 (SCHEDULE_DEBUG_INSN_P): Likewise.
11878 * sched-rgn.c (init_ready_list): Drop special treatment of
11879 boundary debug insns.
11880 * final.c (rest_of_clean-state): Clear notes' BB.
11882 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11884 * Makefile.in (LAMBDA_H): Removed.
11885 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11886 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11887 lambda-trans.o, and tree-loop-linear.o.
11888 (lto-symtab.o): Remove dependence on LAMBDA_H.
11889 (tree-loop-linear.o): Remove rule.
11890 (lambda-mat.o): Same.
11891 (lambda-trans.o): Same.
11892 (lambda-code.o): Same.
11893 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11894 (tree-vect-slp.o): Same.
11895 * hwint.h (gcd): Moved here.
11896 (least_common_multiple): Same.
11897 * lambda-code.c: Removed.
11898 * lambda-mat.c: Removed.
11899 * lambda-trans.c: Removed.
11900 * lambda.h: Removed.
11901 * tree-loop-linear.c: Removed.
11902 * lto-symtab.c: Do not include lambda.h.
11903 * omega.c (gcd): Removed.
11904 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11905 * tree-data-ref.c (print_lambda_vector): Moved here.
11906 (lambda_vector_copy): Same.
11907 (lambda_matrix_copy): Same.
11908 (lambda_matrix_id): Same.
11909 (lambda_vector_first_nz): Same.
11910 (lambda_matrix_row_add): Same.
11911 (lambda_matrix_row_exchange): Same.
11912 (lambda_vector_mult_const): Same.
11913 (lambda_vector_negate): Same.
11914 (lambda_matrix_row_negate): Same.
11915 (lambda_vector_equal): Same.
11916 (lambda_matrix_right_hermite): Same.
11917 * tree-data-ref.h: Do not include lambda.h.
11918 (lambda_vector): Moved here.
11919 (lambda_matrix): Same.
11920 (dependence_level): Same.
11921 (lambda_transform_legal_p): Removed declaration.
11922 (lambda_collect_parameters): Same.
11923 (lambda_compute_access_matrices): Same.
11924 (lambda_vector_gcd): Same.
11925 (lambda_vector_new): Same.
11926 (lambda_vector_clear): Same.
11927 (lambda_vector_lexico_pos): Same.
11928 (lambda_vector_zerop): Same.
11929 (lambda_matrix_new): Same.
11930 * tree-flow.h (least_common_multiple): Removed declaration.
11931 * tree-parloops.c (lambda_trans_matrix): Moved here.
11932 (LTM_MATRIX): Same.
11933 (LTM_ROWSIZE): Same.
11934 (LTM_COLSIZE): Same.
11935 (LTM_DENOMINATOR): Same.
11936 (lambda_trans_matrix_new): Same.
11937 (lambda_matrix_vector_mult): Same.
11938 (lambda_transform_legal_p): Same.
11939 * tree-pass.h (pass_linear_transform): Removed declaration.
11940 * tree-ssa-loop.c (tree_linear_transform): Removed.
11941 (gate_tree_linear_transform): Removed.
11942 (pass_linear_transform): Removed.
11943 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11944 flag_loop_interchange.
11946 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11948 PR tree-optimization/47265
11949 PR tree-optimization/47443
11950 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11951 if name still has some uses.
11953 2011-01-25 Martin Jambor <mjambor@suse.cz>
11955 PR tree-optimization/47382
11956 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11957 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11959 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11961 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11962 sjlj_except_unwind_info.
11964 2011-01-25 Richard Guenther <rguenther@suse.de>
11966 PR tree-optimization/47426
11967 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11968 visible functions results escape.
11970 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11973 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11974 (arm_get_frame_offsets): Use it.
11976 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11977 Jakub Jelinek <jakub@redhat.com>
11979 PR tree-optimization/47271
11980 * tree-if-conv.c (bb_postdominates_preds): New.
11981 (if_convertible_bb_p): Call bb_postdominates_preds.
11982 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11983 (predicate_scalar_phi): Call bb_postdominates_preds.
11985 2011-01-25 Nick Clifton <nickc@redhat.com>
11987 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11988 * config/rx/rx.c (rx_function_value): Likewise.
11989 (rx_promote_function_mode): Likewise.
11990 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11991 in order to make it legitimate.
11992 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11993 make sure that the first operand is the same as the result register.
11994 (addsi3_unspec): Delete.
11995 (subdi3): Do not accept immediate operands.
11996 (subdi3_internal): Likewise.
11998 2011-01-25 Jeff Law <law@redhat.com>
12000 PR rtl-optimization/37273
12001 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12002 handle them like argument loads from stack slots. Do not double
12003 count memory for memory constants and argument loads from stack slots.
12005 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12007 PR tree-optimization/47427
12008 PR tree-optimization/47428
12009 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12010 coalesce if the new root var would be TREE_READONLY.
12012 2011-01-25 Richard Guenther <rguenther@suse.de>
12014 PR middle-end/47414
12015 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12016 correct type for TBAA.
12018 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12020 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12021 (close_phi_written_to_memory): Call for_each_index with
12022 dr_indices_valid_in_loop.
12024 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12026 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12027 when it is initialized.
12029 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12031 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12032 call to graphite_find_data_references_in_stmt.
12033 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12034 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12035 call to graphite_find_data_references_in_stmt.
12036 (analyze_drs_in_stmts): Same.
12037 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12038 in which the scalar analysis of indices is performed.
12039 (create_data_ref): Same. Update call to dr_analyze_indices.
12040 (find_data_references_in_stmt): Update call to create_data_ref.
12041 (graphite_find_data_references_in_stmt): Same.
12042 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12044 (create_data_ref): Same.
12045 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12046 call to create_data_ref.
12048 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12050 * graphite-sese-to-poly.c (build_poly_scop): Move
12051 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12053 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12055 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12056 VAR_DECL, PARM_DECL, and RESULT_DECL.
12058 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12060 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12061 in a reduction PBB.
12062 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12063 that have already been marked as PBB_IS_REDUCTION.
12065 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12067 * graphite-scop-detection.c (same_close_phi_node): New.
12068 (remove_duplicate_close_phi): New.
12069 (make_close_phi_nodes_unique): New.
12070 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12072 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12074 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12075 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12076 of both data references to be the same.
12078 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12080 * graphite-dependences.c (build_lexicographical_constraint): Remove
12081 the gdim parameter.
12082 (build_lexicographical_constraint): Adjust call to
12083 ppl_powerset_is_empty.
12084 (dependence_polyhedron): Same.
12085 (graphite_legal_transform_dr): Same.
12086 (graphite_carried_dependence_level_k): Same.
12087 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12089 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12091 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12093 * graphite-sese-to-poly.c
12094 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12095 (close_phi_written_to_memory): New.
12096 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12099 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12101 * doc/install.texi: Update the expected version number of PPL to 0.11.
12102 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12103 #if PPL_VERSION_MINOR < 11.
12105 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12107 * graphite-dependences.c: Include graphite-cloog-util.h.
12108 (new_poly_ddr): Inlined into dependence_polyhedron.
12109 (free_poly_ddr): Moved close by new_poly_ddr.
12110 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12111 Early return NULL when ppl_powerset_is_empty returns true.
12112 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12113 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12114 (graphite_legal_transform_dr): Call new_poly_ddr.
12115 (graphite_carried_dependence_level_k): Same.
12116 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12117 (dot_transformed_deps_stmt_1): Removed.
12118 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12119 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12120 (dot_deps_1): Call dot_deps_2.
12121 * Makefile.in (graphite-dependences.o): Add missing dependence on
12122 graphite-cloog-util.h.
12124 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12126 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12127 (build_lexicographical_constraint): Same.
12128 (dependence_polyhedron_1): Same.
12129 (graphite_legal_transform_dr): Same.
12130 (graphite_carried_dependence_level_k): Same.
12131 * graphite-ppl.c (ppl_powerset_is_empty): New.
12132 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12133 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12135 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12137 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12138 the "a followed by b" relation and document it.
12140 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12142 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12143 iteration when the bag of constraints is empty.
12145 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12147 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12149 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12151 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12152 nest and two loop depths as parameters.
12153 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12154 lst_perfect_nestify.
12156 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12158 * graphite-dependences.c (print_pddr): Call
12159 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12161 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12163 * graphite-ppl.c (debug_gmp_value): New.
12164 * graphite-ppl.h (debug_gmp_value): Declared.
12166 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12168 * doc/install.texi: Document availability of cloog-0.16.
12170 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12172 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12173 invalid postdominance info.
12175 2011-01-24 Jan Hubicka <jh@suse.cz>
12178 * doc/extend.texi (weak pragma): Drop claim that it must
12179 appear before definition.
12180 * varasm.c (merge_weak, declare_weak): Only sanity check
12181 that DECL is not output at a time it is declared weak.
12183 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12185 * machmode.def: Fixed comments.
12187 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12189 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12191 2011-01-24 Paul Koning <ni1d@arrl.net>
12193 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12196 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12199 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12200 (block_info): Add scanned and prev.
12201 (move_or_delete_vzeroupper_2): Return if the basic block
12202 has been scanned and the upper 128bit state is unchanged
12203 from the last scan.
12204 (move_or_delete_vzeroupper_1): Return true if the exit
12206 (move_or_delete_vzeroupper): Visit basic blocks using the
12207 work-list based algorithm based on vt_find_locations in
12210 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12212 2011-01-24 Nick Clifton <nickc@redhat.com>
12214 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12215 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12216 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12217 then define __v850e1__.
12218 * doc/invoke.texi: Document -mv850es.
12220 2011-01-24 Richard Henderson <rth@redhat.com>
12222 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12223 compound unordered comparisons.
12224 * config/rx/rx.c (rx_split_fp_compare): Remove.
12225 * config/rx/rx-protos.h: Update.
12226 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12227 (cbranchsf4): Don't call rx_split_fp_compare.
12228 (*cbranchsf4): Use rx_split_cbranch.
12229 (*cmpsf): Don't accept "i" constraint.
12230 (*conditional_branch): Only valid after reload.
12231 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12233 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12236 * config/rs6000/altivec.md (vector constant splitters): Add
12237 support for creating vector single precision constants if -mvsx is
12238 used and we would create the constant using Altivec primitives.
12240 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12241 Richard Sandiford <rdsandiford@googlemail.com>
12243 PR rtl-optimization/47166
12244 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12245 mechanism for PRE_MODIFY and POST_MODIFY.
12246 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12249 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12251 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12253 2011-01-22 Jan Hubicka <jh@suse.cz>
12256 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12258 2011-01-22 Jan Hubicka <jh@suse.cz>
12260 PR tree-optimization/43884
12262 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12263 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12265 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12267 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12268 * config/s390/s390.c (s390_register_move_cost,
12269 s390_memory_move_cost): New.
12270 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12272 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12274 PR middle-end/47401
12275 * except.c (sjlj_assign_call_site_values): Move setting the
12276 crtl->uses_eh_lsda flag to ...
12277 (sjlj_mark_call_sites): ... here.
12278 (sjlj_emit_function_enter): Support NULL dispatch label.
12279 (sjlj_build_landing_pads): In a function with no landing pads
12280 that still has must-not-throw regions, generate code to register
12281 a personality function with empty LSDA.
12283 2011-01-21 Richard Henderson <rth@redhat.com>
12285 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12287 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12289 * compare-elim.c: New file.
12290 * Makefile.in (OBJS-common): Add it.
12291 (compare-elim.o): New.
12292 * common.opt (fcompare-elim): New.
12293 * opts.c (default_options_table): Add OPT_fcompare_elim.
12294 * tree-pass.h (pass_compare_elim_after_reload): New.
12295 * passes.c (init_optimization_passes): Add it.
12296 * recog.h: Protect against re-inclusion.
12297 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12298 * doc/invoke.texi (-fcompare-elim): Document it.
12299 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12300 * doc/tm.texi: Rebuild.
12302 2011-01-22 Nick Clifton <nickc@redhat.com>
12304 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12305 rx_split_fp_compare.
12307 2011-01-22 Nick Clifton <nickc@redhat.com>
12309 * config/rx/rx.md (UNSPEC_CONST): New.
12310 (deallocate_and_return): Wrap the amount popped off the stack in
12311 an UNSPEC_CONST in order to stop it being rejected by
12312 -mmax-constant-size.
12313 (pop_and_return): Add a "(return)" rtx.
12314 (call): Drop the immediate operand.
12315 (call_internal): Likewise.
12316 (call_value): Likewise.
12317 (call_value_internal): Likewise.
12318 (sibcall_internal): Likewise.
12319 (sibcall_value_internal): Likewise.
12320 (sibcall): Likewise. Generate an explicit call using
12322 (sibcall_value): Likewise.
12323 (mov<>): FAIL if a constant operand is not legitimate.
12324 (addsi3_unpsec): New pattern.
12326 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12327 (ok_for_max_constant): New function.
12328 (gen_safe_add): New function.
12329 (rx_expand_prologue): Use gen_safe_add.
12330 (rx_expand_epilogue): Likewise.
12331 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12334 2011-01-21 Jeff Law <law@redhat.com>
12336 PR tree-optimization/47053
12337 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12338 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12339 statements are deleted.
12340 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12341 is nonempty, then purge dead edges and cleanup the CFG.
12343 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12346 Temporarily revert:
12347 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12349 * tree-dfa.c (create_var_ann): Mark variable as used.
12351 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12353 PR middle-end/45566
12354 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12355 notes from other section in hot/cold partitioning even if
12356 last_action is -3. Increment call_site_base.
12358 PR rtl-optimization/47366
12359 * fwprop.c (forward_propagate_into): Return bool. If
12360 any changes are made, -fnon-call-exceptions is used and
12361 REG_EH_REGION note is present, call purge_dead_edges
12362 and return true if it purged anything.
12363 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12364 any EH edges were purged.
12366 2011-01-21 Jeff Law <law@redhat.com>
12368 PR rtl-optimization/41619
12369 * caller-save.c (setup_save_areas): Break out code to determine
12370 which hard regs are live across calls by examining the reload chains
12371 so that it is always used.
12372 Eliminate code which checked REG_N_CALLS_CROSSED.
12374 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12376 PR tree-optimization/47355
12377 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12378 NOP has non-debug uses beyond PHIs in new_bb.
12380 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12383 * cfgexpand.c (account_used_vars_for_block): Only account vars
12384 that are annotated as used.
12385 (estimated_stack_frame_size): Don't set TREE_USED.
12386 * tree-dfa.c (create_var_ann): Mark variable as used.
12388 2011-01-21 Richard Guenther <rguenther@suse.de>
12390 PR middle-end/47395
12391 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12393 2011-01-21 Richard Guenther <rguenther@suse.de>
12395 PR tree-optimization/47365
12396 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12397 (vn_reference_lookup_pieces): Adjust.
12398 (vn_reference_lookup): Likewise.
12399 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12400 (vn_reference_lookup_3): Only look through kills if in
12401 VN_WALKREWRITE mode.
12402 (vn_reference_lookup_pieces): Adjust.
12403 (vn_reference_lookup): Likewise.
12404 (visit_reference_op_load): Likewise.
12405 (visit_reference_op_store): Likewise.
12406 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12407 (compute_avail): Likewise.
12408 (eliminate): Likewise.
12410 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12412 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12413 DECL_IGNORED_P non-reg vars if they are used.
12415 PR tree-optimization/47391
12416 * varpool.c (const_value_known_p): Return false if
12419 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12422 * config/i386/i386.c (ix86_local_alignment): Handle
12423 case for va_list_type_node is nil.
12424 (ix86_canonical_va_list_type): Likewise.
12426 2011-01-21 Alan Modra <amodra@gmail.com>
12428 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12429 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12431 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12433 * config/arm/arm.md (define_attr type): Rename f_load
12434 and f_store to f_fpa_load and f_fpa_store. Update.
12435 (write_conflict): Deal with rename fallout.
12436 (*push_fp_multi): Likewise.
12437 * config/arm/fpa.md (f_load): Use f_fpa_load.
12438 (f_store): Use f_fpa_store.
12439 (*movsf_fpa): Likewise.
12440 (*movdf_fpa): Likewise.
12441 (*movxf_fpa): Likewise.
12442 (*thumb2_movsf_fpa): Likewise.
12443 (*thumb2_movdf_fpa): Likewise.
12444 (*thumb2_movxf_fpa): Likewise.
12445 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12446 f_loadd and f_stored.
12447 (*thumb2_movdi_vfp): Likewise.
12448 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12449 (*thumb2_movsi_vfp): Likewise.
12450 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12451 Use f_loads instead of f_load.
12452 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12454 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12456 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12457 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12458 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12459 (xtensa_mode_dependent_address_p): New function.
12460 (constantpool_address_p): Make static. Change return type to bool.
12461 Change argument type to const_rtx. Use CONST_INT_P predicate.
12463 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12466 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12468 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12471 * cfgexpand.c (expand_debug_expr): Instead of generating
12472 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12475 2011-01-20 Richard Guenther <rguenther@suse.de>
12477 PR middle-end/47370
12478 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12479 the pointer operand of MEM_REFs.
12481 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12483 PR tree-optimization/46130
12484 * ipa-split.c (consider_split): If return_bb contains non-virtual
12485 PHIs other than for retval or if split_function would not adjust it,
12488 2011-01-20 Richard Guenther <rguenther@suse.de>
12490 PR tree-optimization/47167
12491 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12492 Revert previous change, only avoid enumeral type changes.
12494 2011-01-19 Mike Stump <mikestump@comcast.net>
12496 * doc/tm.texi.in (BRANCH_COST): Englishify.
12497 * doc/tm.texi (BRANCH_COST): Likewise.
12499 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12502 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12503 (gen_scheduled_generic_parms_dies): New functions.
12504 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12505 generation for the end of CU compilation.
12506 (dwarf2out_finish): Generate template parameters DIEs here.
12508 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12511 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12512 debug bind stmt on merge edges.
12514 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12518 * function.c (instantiate_expr): Instantiate incoming rtl of
12519 implicit arguments, and recurse on VALUE_EXPRs.
12520 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12521 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12523 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12525 * c-parser.c (c_parser_for_statement): Initialize
12526 collection_expression.
12528 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12530 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12532 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12534 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12535 (LINK_SHLIB_SPEC): Don't use %(link_path).
12536 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12538 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12540 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12541 (NO_SHARED_LIB_SUPPORT): Remove.
12542 (LINK_SHLIB_SPEC): Remove one conditional definition.
12544 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12546 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12548 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12549 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12550 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12551 %{call_shared} and conditionals on these options not being passed.
12552 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12555 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12557 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12560 * ipa-split.c: Spelling fixes.
12562 2011-01-19 Richard Henderson <rth@redhat.com>
12564 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12565 (*mulsi3): Likewise.
12567 * longlong.h [__mn10300__] (count_leading_zeros): New.
12568 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12569 [__mn10300__] (add_ssaaaa, subddmmss): New.
12570 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12571 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12573 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12575 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12577 2011-01-19 Richard Henderson <rth@redhat.com>
12579 * config/mn10300/mn10300.md (addsi3_flags): New.
12580 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12581 (subsi3_flags, subc_internal, subdi3): New.
12582 (subdi3_internal, *subdi3_degenerate): New.
12583 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12585 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12586 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12587 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12588 * config/mn10300/mn10300-protos.h: Update.
12589 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12590 (return_ret): Likewise. Rename from return_internal_regs.
12591 (return_internal): Remove.
12593 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12594 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12595 (mn10300_legitimate_constant_p): Likewise.
12596 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12597 (mn10300_frame_size): New.
12598 (mn10300_expand_prologue): Use it.
12599 (mn10300_expand_epilogue): Likewise.
12600 (mn10300_initial_offset): Likewise.
12601 * config/mn10300/mn10300-protos.h: Update.
12602 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12603 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12604 (prologue, epilogue, return_internal): Tidy output code.
12605 (mn10300_store_multiple_operation, return): Likewise.
12606 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12607 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12608 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12609 (load_pic, am33_load_pic): New.
12610 (mn10300_load_pic0, mn10300_load_pic1): New.
12612 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12613 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12614 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12615 (cc_flags_for_mode, cc_flags_for_code): New.
12616 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12617 overflow flag is not valid. Validate that the flags we need
12618 for the comparison are valid.
12619 (mn10300_output_cmp): Remove.
12620 (mn10300_output_add): New.
12621 (mn10300_select_cc_mode): Use cc_flags_for_code.
12622 (mn10300_split_cbranch): New.
12623 (mn10300_match_ccmode): New.
12624 (mn10300_split_and_operand_count): New.
12625 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12627 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12628 (addsi3): ... here. Use mn10300_output_add.
12629 (*addsi3_flags): New.
12630 (*am33_subsi3, *mn10300_subsi3): Merge...
12631 (subsi3): ... here. Use attribute isa.
12632 (*subsi3_flags): New.
12633 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12635 (*am33_andsi3, *mn10300_andsi3): Merge...
12636 (andsi3): ... here.
12637 (*andsi3_flags): New.
12638 (andsi3 splitters): New.
12639 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12640 (iorsi3): ... here.
12641 (*iorsi3_flags): New.
12642 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12643 (xorsi3): ... here.
12644 (*xorsi3_flags): New.
12645 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12646 (one_cmplsi2): ... here.
12647 (*one_cmplsi2_flags): New.
12648 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12649 instead of "dax" in constraints. Use mn10300_split_cbranch.
12650 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12651 use matching constraints to eliminate a self-comparison.
12652 (*integer_conditional_branch): Rename from integer_conditional_branch.
12653 Use int_mode_flags to match CC_REG.
12654 (*cbranchsi4_btst, *btstsi): New.
12655 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12656 mn10300_split_cbranch.
12657 (*am33_cmpsf): Rename from am33_cmpsf.
12658 (*float_conditional_branch): Rename from float_conditional_branch.
12659 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12660 (zero_extendqisi2): ... here.
12661 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12662 (zero_extendhisi2): ... here.
12663 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12664 (extendqisi2): ... here.
12665 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12666 (extendhisi2): ... here.
12667 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12668 (ashlsi3): ... here.
12669 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12670 (lshrsi3): ... here.
12671 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12672 (ashrsi3): ... here.
12673 (consecutive add peephole): Remove.
12674 * config/mn10300/predicates.md (label_ref_operand): New.
12675 (int_mode_flags): New.
12676 (CCZN_comparison_operator): New.
12678 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12679 (throughput_42_latency_43): New reservation.
12680 (mulsidi3, umulsidi3): New expanders.
12681 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12682 the MDR register to allocation; separately allocate the low and
12683 high parts of the DImode result.
12684 (umulsidi3_internal): Similarly.
12685 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12686 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12687 (udivsi3, umodsi3): Remove.
12688 (udivmodsi4, divmodsi4): New expanders.
12689 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12690 (*divmodsi4): Simiarly.
12691 (ext_internal): New.
12693 * config/mn10300/constraints.md ("z"): New constraint.
12694 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12695 (FIXED_REGISTERS): Don't fix MDR.
12696 (CALL_USED_REGSITERS): Reformat nicely.
12697 (REG_ALLOC_ORDER): Add MDR.
12698 (enum regclass): Add MDR_REGS.
12699 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12700 (IRA_COVER_CLASSES): Add MDR_REGS.
12701 (REGNO_REG_CLASS): Handle MDR_REG.
12702 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12703 (mn10300_register_move_cost): Likewise.
12704 * config/mn10300/mn10300.md (MDR_REG): New.
12705 (*movsi_internal): Handle moves to/from MDR_REGS.
12707 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12709 (mn10300_secondary_reload): Tidy combination reload classes.
12710 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12711 addresses for AM33. Allow symbolic offsets for reg+imm.
12712 (mn10300_regno_in_class_p): New.
12713 (mn10300_legitimize_reload_address): New.
12714 * config/mn10300/mn10300.h (enum reg_class): Remove
12715 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12716 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12717 SP_OR_GENERAL_REGS.
12718 (REG_CLASS_NAMES): Update to match.
12719 (REG_CLASS_CONTENTS): Likewise.
12720 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12721 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12722 (REGNO_IN_RANGE_P): Remove.
12723 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12724 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12725 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12726 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12727 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12728 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12729 (REGNO_GENERAL_P): New.
12730 (HAVE_POST_MODIFY_DISP): New.
12731 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12732 (LEGITIMIZE_RELOAD_ADDRESS): New.
12733 * config/mn10300/mn10300-protos.h: Update.
12735 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12736 DATA_REGS for AM33 stack-pointer destination.
12737 (mn10300_preferred_output_reload_class): Likewise.
12738 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12739 into a form appropriate for ...
12740 (TARGET_SECONDARY_RELOAD): New.
12741 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12742 * config/mn10300/mn10300-protos.h: Update.
12743 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12744 reload_insi; use the "A" constraint for the scratch; handle AM33
12745 moves of sp to non-address registers.
12747 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12748 (*movqi_internal): ... here.
12749 (*am33_movhi, *mn10300_movhi): Merge into...
12750 (*movhi_internal): ... here.
12751 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12752 as the source/destination of moves from/to SP.
12753 (movsf): Only allow for AM33-2.
12754 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12755 any integer constant constraint. Only allow for AM33-2. Tidy
12756 all of the alternative outputs.
12757 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12758 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12760 (udivsi3, umodsi3): New patterns for MN103 only.
12762 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12764 * doc/tm.texi.in: Spell out that a lack of register class unions
12766 * doc/tm.texi: Regenerate.
12768 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12770 PR rtl-optimization/47337
12771 * dce.c (check_argument_store): New function.
12772 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12774 PR tree-optimization/47290
12775 * tree-eh.c (infinite_empty_loop_p): New function.
12776 (cleanup_empty_eh): Use it.
12778 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12781 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12782 (a64_expand_widen_sum): Ditto.
12783 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12784 (vec_extract_evenodd_help): Ditto.
12785 (vec_extract_evenv4hi): Ditto.
12786 (vec_extract_oddv4hi): Ditto.
12787 (vec_extract_evenv2si): Ditto.
12788 (vec_extract_oddv2si): Ditto.
12789 (vec_extract_evenv2sf): Ditto.
12790 (vec_extract_oddv2sf): Ditto.
12791 (vec_pack_trunc_v4hi: Ditto.
12792 (vec_pack_trunc_v2si): Ditto.
12793 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12794 (vec_interleave_highv8qi): Ditto.
12796 (vec_extract_oddv8qi): Ditto.
12797 (vec_interleave_lowv4hi): Ditto.
12798 (vec_interleave_highv4hi): Ditto.
12799 (vec_interleave_lowv2si): Ditto.
12800 (vec_interleave_highv2si): Ditto.
12802 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12804 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12805 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12806 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12807 (pa_c_mode_for_suffix): New.
12808 (TARGET_EXPAND_BUILTIN): Define.
12809 (TARGET_C_MODE_FOR_SUFFIX): Define.
12810 (pa_builtins): Define.
12811 (pa_init_builtins): Register __float128 type and init new support
12813 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12814 * config/pa/quadlib.c (_U_Qfcopysign): New.
12816 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12818 PR middle-end/46894
12819 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12820 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12823 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12825 PR tree-optimization/47179
12826 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12827 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12829 2011-01-18 Richard Guenther <rguenther@suse.de>
12831 PR rtl-optimization/47216
12832 * emit-rtl.c: Include tree-flow.h.
12833 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12834 of replicating it with different semantics.
12835 * Makefile.in (emit-rtl.o): Adjust.
12837 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12839 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12840 (cortex_a9_dp): Handle neon types correctly.
12842 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12844 PR rtl-optimization/47299
12845 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12846 subtarget. Use normal multiplication if both operands are constants.
12847 * expmed.c (expand_widening_mult): Don't try to optimize constant
12848 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12851 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12853 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12854 spacing after 'e.g.', typos, comma, hyphenation.
12856 2011-01-17 Richard Henderson <rth@redhat.com>
12858 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12859 (rx_restricted_mem_operand): New.
12860 (rx_shift_operand): Use register_operand.
12861 (rx_source_operand, rx_compare_operand): Likewise.
12862 * config/rx/rx.md (addsi3_flags): New expander.
12863 (adddi3): Rewrite as expander.
12864 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12865 (subsi3_flags): New expander.
12866 (subdi3): Rewrite as expander.
12867 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12869 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12870 (rx_init_builtins): Remove sat builtin.
12871 (rx_expand_builtin): Likewise.
12872 * config/rx/rx.md (ssaddsi3): New.
12873 (*sat): Rename from sat. Represent the CC_REG input.
12875 * config/rx/predicates.md (rshift_operator): New.
12876 * config/rx/rx.c (rx_expand_insv): Remove.
12877 * config/rx/rx-protos.h: Update.
12878 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12879 operand to the canonical position.
12880 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12881 (*bitclr, *bitclr_in_memory): Similarly.
12882 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12883 (insv): Retain the zero_extract in the expansion.
12885 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12886 (bswaphi2, bitinvert, revw): Likewise.
12888 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12889 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12890 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12891 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12892 (bitset, bitset_in_memory): Likewise.
12893 (bitinvert, bitinvert_in_memory): Likewise.
12894 (bitclr, bitclr_in_memory): Likewise.
12895 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12896 (rx_strend, rx_cmpstrn): Likewise.
12897 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12898 (bitop peep2 patterns): Remove.
12900 * config/rx/rx.c (rx_match_ccmode): New.
12901 * config/rx/rx-protos.h: Update.
12902 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12903 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12904 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12905 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12906 (fix_truncsfsi2, floatsisf2): Likewise.
12907 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12908 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12909 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12910 (*subsi3_flags, *xorsi3_flags): New.
12912 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12914 * config/rx/rx.c (rx_print_operand): Remove workaround for
12915 unsplit comparison operations.
12917 * config/rx/rx.md (movsicc): Split after reload.
12918 (*movsicc): Merge *movsieq and *movsine via match_operator.
12919 (*stcc): New pattern.
12921 * config/rx/rx.c (rx_float_compare_mode): Remove.
12922 * config/rx/rx.h (rx_float_compare_mode): Remove.
12923 * config/rx/rx.md (cstoresi4): Split after reload.
12924 (*sccc): New pattern.
12926 * config/rx/predicates.md (label_ref_operand): New.
12927 (rx_z_comparison_operator): New.
12928 (rx_zs_comparison_operator): New.
12929 (rx_fp_comparison_operator): New.
12930 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12931 Validate that the flags are set properly for the comparison.
12932 (rx_gen_cond_branch_template): Remove.
12933 (rx_cc_modes_compatible): Remove.
12934 (mode_from_flags): New.
12935 (flags_from_code): Rename from flags_needed_for_conditional.
12936 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12937 (rx_select_cc_mode): Likewise.
12938 (rx_split_fp_compare): New.
12939 (rx_split_cbranch): New.
12940 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12941 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12942 (*cbranchsf4): Similarly.
12943 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12944 match_operator and rx_split_cbranch.
12945 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12946 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12947 (*cmpsi): Rename from cmpsi.
12948 (*tstsi): Rename from tstsi.
12949 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12950 (*conditional_branch): Rename from conditional_branch.
12951 (*reveresed_conditional_branch): Remove.
12952 (b<code>): Remove expander.
12953 * config/rx/rx-protos.h: Update.
12955 * config/rx/rx.c (rx_compare_redundant): Remove.
12956 * config/rx/rx.md (cmpsi): Don't use it.
12957 * config/rx/rx-protos.h: Update.
12959 * config/rx/rx-modes.def (CC_F): New mode.
12960 * config/rx/rx.c (rx_select_cc_mode): New.
12961 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12962 * config/rx/rx-protos.h: Update.
12964 2011-01-17 Richard Henderson <rth@redhat.com>
12966 * except.c (dump_eh_tree): Fix stray ; after for statement.
12968 2011-01-17 Richard Guenther <rguenther@suse.de>
12970 PR tree-optimization/47313
12971 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12972 handling before copying the body. Properly deal with
12973 by-reference result in SSA form.
12975 2011-01-17 Ian Lance Taylor <iant@google.com>
12978 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12979 (struct_value_alias_set): Don't define.
12980 (sparc_option_override): Don't set sparc_sr_alias_set and
12981 struct_value_alias_set.
12982 (save_or_restore_regs): Use gen_frame_mem rather than calling
12984 (sparc_struct_value_rtx): Likewise.
12986 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12989 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12990 (_mm_maskstore_pd): Likewise.
12991 (_mm_maskload_ps): Likewise.
12992 (_mm_maskstore_ps): Likewise.
12993 (_mm256_maskload_pd): Change mask to __m256i.
12994 (_mm256_maskstore_pd): Likewise.
12995 (_mm256_maskload_ps): Likewise.
12996 (_mm256_maskstore_ps): Likewise.
12998 * config/i386/i386-builtin-types.def: Updated.
12999 (ix86_expand_special_args_builtin): Likewise.
13001 * config/i386/i386.c (bdesc_special_args): Update
13002 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13003 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13004 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13005 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13007 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13008 Use <avxpermvecmode> on mask register.
13009 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13011 2011-01-17 Olivier Hainque <hainque@adacore.com>
13012 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13013 Eric Botcazou <ebotcazou@adacore.com>
13016 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13017 if <= USHRT_MAX in 32-bit mode.
13019 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13021 * doc/install.texi (Configuration, Specific): Wrap long
13022 lines in examples. Allow line wrapping in long options
13023 and URLs where beneficial for PDF output.
13025 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13027 * config/mips/mips.c (mips_classify_symbol): Don't return
13028 SYMBOL_PC_RELATIVE for nonlocal labels.
13030 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13032 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13034 2011-01-15 Jan Hubicka <jh@suse.cz>
13036 PR tree-optimization/47276
13037 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13038 declarations as needed.
13040 2011-01-15 Martin Jambor <mjambor@suse.cz>
13042 * common.opt (fdevirtualize): New flag.
13043 * doc/invoke.texi (Option Summary): Document it.
13044 * opts.c (default_options_table): Add devirtualize flag.
13045 * ipa-prop.c (detect_type_change): Return immediately if
13046 devirtualize flag is not set.
13047 (detect_type_change_ssa): Likewise.
13048 (compute_known_type_jump_func): Likewise.
13049 (ipa_analyze_virtual_call_uses): Likewise.
13051 2011-01-14 Martin Jambor <mjambor@suse.cz>
13053 PR tree-optimization/45934
13054 PR tree-optimization/46302
13055 * ipa-prop.c (type_change_info): New type.
13056 (stmt_may_be_vtbl_ptr_store): New function.
13057 (check_stmt_for_type_change): Likewise.
13058 (detect_type_change): Likewise.
13059 (detect_type_change_ssa): Likewise.
13060 (compute_complex_assign_jump_func): Check for dynamic type change.
13061 (compute_complex_ancestor_jump_func): Likewise.
13062 (compute_known_type_jump_func): Likewise.
13063 (compute_scalar_jump_functions): Likewise.
13064 (ipa_analyze_virtual_call_uses): Likewise.
13065 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13067 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13069 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13070 * config/i386/i386.opt (msse5): New Alias.
13072 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13074 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13075 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13076 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13077 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13079 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13081 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13083 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13084 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13085 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13086 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13088 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13092 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13094 2011-01-14 Mike Stump <mikestump@comcast.net>
13096 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13097 * config/fr30/fr30.md: Likweise
13098 (movsi_push): Likewise.
13099 (movsi_pop): Likewise.
13100 (enter_func): Likewise.
13101 * config/moxie/moxie.md (movsi_push): Likewise.
13102 (movsi_pop): Likewise.
13104 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13106 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13107 %{no_archive} %{exact_version}.
13108 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13109 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13110 %{no_archive} %{exact_version}.
13111 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13112 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13113 * config/mips/vxworks.h: Likewise.
13115 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13117 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13119 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13121 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13122 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13124 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13126 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13129 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13131 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13133 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13134 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13136 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13137 Don't handle -shlib.
13139 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13141 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13142 (CC1_SPEC): Don't handle -profile.
13144 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13146 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13147 * config/mips/mips.h (CC1_SPEC): Likewise.
13149 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13151 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13152 * config/mips/mips.h (CC1_SPEC): Likewise.
13154 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13156 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13157 * config/m32r/linux.h (LINK_SPEC): Likewise.
13158 * config/mips/linux.h (LINK_SPEC): Likewise.
13159 * config/mips/linux64.h (LINK_SPEC): Likewise.
13160 * config/sparc/linux.h (LINK_SPEC): Likewise.
13161 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13162 LINK_SPEC): Likewise.
13163 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13165 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13167 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13169 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13171 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13173 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13174 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13176 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13178 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13180 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13182 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13183 supports -Bstatic/-Bdynamic.
13184 * configure: Regenerate.
13186 2011-01-14 Jan Hubicka <jh@suse.cz>
13187 Jack Howarth <howarth@bromo.med.uc.edu>
13190 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13191 when checking debug_info_level. Test write_symbols instead of
13192 debug_hooks->var_location when setting flag_var_tracking_uninit.
13194 2011-01-14 Richard Guenther <rguenther@suse.de>
13196 PR tree-optimization/47179
13197 * target.def (ref_may_alias_errno): New target hook.
13198 * targhooks.h (default_ref_may_alias_errno): Declare.
13199 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13200 (default_ref_may_alias_errno): New function.
13201 * target.h (struct ao_ref_s): Declare.
13202 * tree-ssa-alias.c: Include target.h.
13203 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13204 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13205 (targhooks.o): Likewise.
13206 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13207 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13209 2011-01-14 Richard Guenther <rguenther@suse.de>
13211 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13213 2011-01-14 Richard Guenther <rguenther@suse.de>
13215 PR tree-optimization/47280
13216 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13217 return CFG changes.
13218 (tree_ssa_forward_propagate_single_use_vars): Deal with
13219 CFG changes from associate_plusminus.
13221 2011-01-14 Richard Guenther <rguenther@suse.de>
13223 PR middle-end/47281
13225 2011-01-11 Richard Guenther <rguenther@suse.de>
13227 PR tree-optimization/46076
13228 * tree-ssa.c (useless_type_conversion_p): Conversions from
13229 unprototyped to empty argument list function types are useless.
13231 2011-01-14 Richard Guenther <rguenther@suse.de>
13233 PR tree-optimization/47286
13234 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13236 2011-01-14 Martin Jambor <mjambor@suse.cz>
13238 PR middle-end/46823
13239 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13241 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13243 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13244 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13245 * config/xtensa/xtensa.c (xtensa_libcall_value,
13246 xtensa_function_value_regno_p): New functions.
13247 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13249 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13252 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13254 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13255 New function prototype.
13256 * config/i386/winnt.c (i386_pe_assemble_visibility):
13257 Warn only if attribute was specified by user.
13259 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13262 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13264 (floatunsdidf2_fcfidu): Ditto.
13266 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13268 * config/s390/s390.c (print_operand_address): Replace 'error' with
13269 'output_operand_lossage'.
13270 (print_operand): Likewise.
13272 2011-01-13 Jeff Law <law@redhat.com>
13274 PR rtl-optimization/39077
13275 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13276 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13277 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13278 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13279 * gcse.c (prune_insertions_deletions): New function.
13280 (compute_pre_data): Use it.
13282 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13285 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13287 (prune_unused_types_mark): Use it.
13289 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13291 PR rtl-optimization/45352
13292 * sel-sched.c: Update copyright years.
13293 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13294 in the advancing loop when we have issued issue_rate insns.
13296 2011-01-12 Richard Henderson <rth@redhat.com>
13298 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13299 (TARGET_MD_ASM_CLOBBERS): New.
13301 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13302 (TARGET_DELEGITIMIZE_ADDRESS): New.
13304 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13305 (clzsi2, *bsch): New patterns.
13307 * config/mn10300/mn10300.md (INT): New mode iterator.
13308 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13310 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13311 flag_split_wide_types.
13313 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13314 (mn10300_trampoline_init): Rewrite without a template, an immediate
13315 load and a direct branch.
13316 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13318 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13320 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13321 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13322 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13323 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13325 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13328 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13331 2011-01-12 Jan Hubicka <jh@suse.cz>
13334 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13335 (PLUGIN_COND_CLOSE): New macro.
13336 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13338 2011-01-12 Richard Guenther <rguenther@suse.de>
13341 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13342 register variables in a MEM_REF.
13344 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13346 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13347 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13348 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13349 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13350 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13351 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13352 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13353 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13354 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13355 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13356 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13357 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13358 * config/gnu-user.h: New. Copied from linux.h.
13359 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13360 GNU_USER_TARGET_STARTFILE_SPEC.
13361 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13362 GNU_USER_TARGET_ENDFILE_SPEC.
13363 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13364 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13365 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13366 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13367 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13368 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13369 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13370 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13371 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13372 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13373 * config/arm/linux-eabi.h (CC1_SPEC): Use
13374 GNU_USER_TARGET_CC1_SPEC.
13375 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13376 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13377 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13378 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13379 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13380 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13381 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13382 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13384 2011-01-12 Richard Guenther <rguenther@suse.de>
13387 * doc/invoke.texi (ffast-math): Document it is turned on
13390 2011-01-12 Jan Hubicka <jh@suse.cz>
13392 PR tree-optimization/47233
13393 * opts.c (common_handle_option): Disable ipa-reference with profile
13396 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13398 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13401 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13403 * c-parser.c (c_lex_one_token): Updated and reindented some
13404 comments. No changes in code.
13406 2011-01-11 Ian Lance Taylor <iant@google.com>
13408 * godump.c (go_output_var): Don't output the variable if there is
13409 already a type with the same name.
13411 2011-01-11 Ian Lance Taylor <iant@google.com>
13413 * godump.c (go_format_type): Don't generate float80.
13415 2011-01-11 Richard Henderson <rth@redhat.com>
13417 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13418 declaration. Rewrite for both speed and size.
13419 (mn10300_address_cost_1): Remove.
13420 (mn10300_register_move_cost): New.
13421 (mn10300_memory_move_cost): New.
13422 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13423 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13424 extensions, shifts, BSWAP, CLZ.
13425 (mn10300_wide_const_load_uses_clr): Remove.
13426 (TARGET_REGISTER_MOVE_COST): New.
13427 (TARGET_MEMORY_MOVE_COST): New.
13428 * config/mn10300/mn10300-protos.h: Update.
13429 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13431 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13432 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13433 * config/mn10300/mn10300-protos.h: Update.
13434 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13435 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13436 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13437 (*test_int_bitfield, *test_byte_bitfield): Remove.
13438 (*bit_test, *subreg_bit_test): Remove.
13439 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13441 * config/mn10300/constraints.md ("c"): Rename from "A".
13442 ("A", "D"): New constraint letters.
13443 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13444 (fmssf4, fnmasf4, fnmssf4): Likewise.
13446 * config/mn10300/mn10300.md (isa): New attribute.
13447 (enabled): New attribute.
13449 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13450 (abssf2, negsf2): Define only for hardware fp.
13451 (sqrtsf2): Reformat.
13452 (addsf3, subsf3, mulsf3): Merge expander and insn.
13454 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13455 (DEBUGGER_AUTO_OFFSET): Remove.
13456 (DEBUGGER_ARG_OFFSET): Remove.
13458 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13459 Emit register stores with the same offsets as the hardware.
13460 (mn10300_store_multiple_operation): Don't check that the register
13461 save offsets are monotonic.
13462 * config/mn10300/mn10300-protos.h: Update.
13464 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13466 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13467 in terms of the value on the stack, not the MDR register.
13469 2011-01-11 Jan Hubicka <jh@suse.cz>
13473 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13474 (symbol_alias_set_destroy, symbol_alias_set_contains,
13475 propagate_aliases_backward): Declare.
13476 * lto-streamer-out.c (struct sets): New sturcture.
13477 (trivally_defined_alias): New function.
13478 (output_alias_pair_p): Rewrite.
13479 (output_unreferenced_globals): Fix output of alias pairs.
13480 (produce_symtab): Likewise.
13481 * ipa.c (function_and_variable_visibility): Set weak alias destination
13483 * varasm.c (symbol_alias_set_t): Remove.
13484 (symbol_alias_set_destroy): Export.
13485 (propagate_aliases_forward, propagate_aliases_backward): New functions
13487 (compute_visible_aliases): ... this one; remove.
13488 (trivially_visible_alias): New
13489 (trivially_defined_alias): New.
13490 (remove_unreachable_alias_pairs): Rewrite.
13491 (finish_aliases_1): Reorganize code checking if alias is defined.
13492 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13495 2011-01-11 Richard Guenther <rguenther@suse.de>
13497 PR tree-optimization/46076
13498 * tree-ssa.c (useless_type_conversion_p): Conversions from
13499 unprototyped to empty argument list function types are useless.
13501 2011-01-11 Richard Guenther <rguenther@suse.de>
13503 PR middle-end/45235
13504 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13505 volatile MEMs as MEM_READONLY_P.
13507 2011-01-11 Richard Guenther <rguenther@suse.de>
13509 PR tree-optimization/47239
13510 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13512 2011-01-11 Jeff Law <law@redhat.com>
13514 PR tree-optimization/47086
13515 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13516 IVs from statements that might throw.
13518 2011-01-10 Jan Hubicka <jh@suse.cz>
13521 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13523 2011-01-10 Jan Hubicka <jh@suse.cz>
13526 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13527 when correcting profile.
13529 2011-01-10 Jan Hubicka <jh@suse.cz>
13532 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13533 DECL_FINI_PRIORITY.
13534 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13535 Restore DECL_FINI_PRIORITY.
13537 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13539 * doc/gimple.texi: Fix quoting of multi-word return values in
13540 @deftypefn statements. Ensure presence of return value. Wrap
13541 overlong @deftypefn lines.
13542 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13543 descriptions of removed functions.
13544 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13545 of multi-word return value in @deftypefn statement.
13547 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13549 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13550 (Conditional Expressions, Logical Operators)
13551 (Statement and operand traversals): Do not indent smallexample
13552 code. Fix duplicate function argument in example.
13554 2011-01-10 Jeff Law <law@redhat.com>
13556 PR tree-optimization/47141
13557 * ipa-split.c (split_function): Handle case where we are
13558 returning a value and the return block has a virtual operand phi.
13560 2011-01-10 Jan Hubicka <jh@suse.cz>
13562 PR tree-optimization/47234
13563 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13564 (pass_feedback_split_functions): Declare.
13565 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13567 * ipa-split.c (gate_split_functions): Update comments; disable
13568 split-functions for profile_arc_flag and branch_probabilities.
13569 (gate_feedback_split_functions): New function.
13570 (execute_feedback_split_functions): New function.
13571 (pass_feedback_split_functions): New global var.
13573 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13576 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13577 calling gimple_call_set_cannot_inline.
13579 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13581 * config/darwin-sections.def: Remove unused section.
13583 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13586 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13588 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13591 * c-parser.c (c_parser_declaration_or_fndef): Improved
13594 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13596 * config/i386/winnt.c (i386_pe_start_function): Make sure
13597 to switch back to function's section.
13599 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13603 * plugin.c: Move include of dlfcn.h from here...
13604 * system.h: ... to here.
13606 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13608 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13610 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13611 two extra empty pages in PDF output.
13613 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13616 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13617 for error recovery purposes behave as if it was not specified so
13618 that the default type is usd.
13620 2011-01-07 Jan Hubicka <jh@suse.cz>
13622 PR tree-optmization/46469
13623 * ipa.c (function_and_variable_visibility): Clear needed flags on
13624 nodes with external decls; handle weakrefs merging correctly.
13626 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13628 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13631 2011-01-07 Jan Hubicka <jh@suse.cz>
13633 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13634 and no longer claim that gold is required for linker plugin.
13635 * configure: Regenerate.
13636 * gcc.c (PLUGIN_COND): New macro.
13637 (LINK_COMMAND_SPEC): Use it.
13638 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13639 * config.in (HAVE_LTO_PLUGIN): New.
13640 * configure.ac (--with-lto-plugin): New parameter; autodetect
13643 2011-01-07 Jan Hubicka <jh@suse.cz>
13645 PR tree-optimization/46367
13646 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13647 when we can update original.
13648 (cgraph_mark_inline_edge): Sanity check.
13649 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13651 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13653 * config/spu/spu.h (ASM_COMMENT_START): Define.
13655 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13658 * gcc.c (%>S): New.
13659 (SWITCH_KEEP_FOR_GCC): Likewise.
13660 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13661 (do_spec_1): Handle "%>".
13663 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13665 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13668 * config/i386/i386.c (ix86_delegitimize_address): If
13669 simplify_gen_subreg fails, return orig_x.
13672 * value-prof.c (gimple_stringop_fixed_value): Handle
13673 lhs of the call properly.
13675 2011-01-07 Jan Hubicka <jh@suse.cz>
13678 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13680 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13682 * target.def (function_switched_text_sections): New hook.
13683 * doc/tm.texi: Regenerated.
13684 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13685 * final.c (default_function_switched_text_sections): New.
13686 (final_scan_insn): Call function_switched_text_sections when a
13687 mid-function section change occurs.
13688 * output.h (default_function_switched_text_sections): Declare.
13689 * config/darwin-protos.h (darwin_function_switched_text_sections):
13691 * config/darwin.c (darwin_function_switched_text_sections): New.
13692 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13694 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13696 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13697 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13698 the secondary code fragment when outputting for DWARF == 2.
13700 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13702 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13703 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13705 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13706 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13708 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13711 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13712 when it is not empty.
13714 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13717 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13718 (case ${target}): Add btver1.
13719 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13720 -march=native recognize btver1 processors.
13721 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13722 btver1 def_and_undef
13723 * config/i386/i386.c (struct processor_costs btver1_cost): New
13725 (m_BTVER1): New definition.
13726 (m_AMD_MULTIPLE): Includes m_BTVER1.
13727 (initial_ix86_tune_features): Add btver1 tune.
13728 (processor_target_table): Add btver1 entry.
13729 (static const char *const cpu_names): Add btver1 entry.
13730 (software_prefetching_beneficial_p): Add btver1.
13731 (ix86_option_override_internal): Add btver1 instruction sets.
13732 (ix86_issue_rate): Add btver1.
13733 (ix86_adjust_cost): Add btver1.
13734 * config/i386/i386.h (TARGET_BTVER1): New definition.
13735 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13736 (enum processor_type): Add PROCESSOR_BTVER1.
13737 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13739 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13742 * config/i386/i386.c (legitimize_tls_address)
13743 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13744 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13745 (tls_initial_exec_64_sun): New pattern.
13747 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13749 * doc/invoke.texi (Overall Options): Improve wording and markup
13750 of the description of -wrapper.
13752 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13754 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13755 rdynamic, threads): New Driver options.
13757 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13760 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13761 if coming from .tdata.
13762 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13764 2011-01-06 Jan Hubicka <jh@suse.cz>
13767 * collect2.c (main): Do not enable LTOmode when plugin is active.
13769 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13772 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13773 --version output if supported.
13774 * configure: Regenerate.
13776 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13778 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13781 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13784 * c-convert.c (convert): When converting a complex expression
13785 other than COMPLEX_EXPR to a different complex type, ensure
13786 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13787 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13788 when converting COMPLEX_TYPE.
13790 2011-01-06 Ira Rosen <irar@il.ibm.com>
13792 PR tree-optimization/47139
13793 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13794 only the last reduction value is used outside the loop. Update
13797 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13799 * config/rtems.opt: New.
13800 * config.gcc (*-*-rtems*): Use rtems.opt.
13802 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13804 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13805 processors do not support 3DNow instructions.
13807 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13809 * config/spu/spu.c (spu_option_override): Set parameter
13810 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13812 2011-01-05 Jan Hubicka <jh@suse.cz>
13814 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13815 at the command line.
13817 2011-01-05 Martin Jambor <mjambor@suse.cz>
13820 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13821 deltas on streamed outgoing edges.
13822 (output_node_opt_summary): Output info for outgoing edges only when
13823 the node is in new parameter set.
13824 (output_cgraph_opt_summary): New parameter set, passed to the two
13825 aforementioned functions. Update its forward declaration and its
13828 2011-01-05 Tom Tromey <tromey@redhat.com>
13830 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13831 operator to c_finish_omp_atomic.
13832 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13833 (build_unary_op): Update.
13834 (build_modify_expr): Update.
13835 (build_asm_expr): Update.
13837 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13839 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13840 newly inserted insns.
13841 (pad_bb): Likewise.
13842 (spu_emit_branch_hint): Likewise.
13843 (insert_hbrp_for_ilb_runout): Likewise.
13844 (spu_machine_dependent_reorg): Call df_finish_pass after
13845 schedule_insns returns.
13847 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13849 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13851 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13853 PR tree-optimization/47005
13854 * tree-sra.c (struct access): Add 'non_addressable' bit.
13855 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13856 (decide_one_param_reduction): Return 0 if the parameter is passed by
13857 reference and one of the accesses in the group is non_addressable.
13859 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13861 PR tree-optimization/47056
13862 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13863 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13864 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13866 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13868 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13869 initializer. Skip view conversions from aggregate types.
13871 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13874 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13876 2011-01-04 Philipp Thomas <pth@suse.de>
13878 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13881 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13883 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13884 on empty epilogue sequences.
13886 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13888 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13889 non-static): New Driver options.
13891 2011-01-04 Jie Zhang <jie@codesourcery.com>
13894 * gcc.c (default_compilers[]): Set combinable field to 0
13895 for all assembly languages.
13897 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13899 * config/mips/loongson3a.md: New file.
13900 * config/mips/mips.md: Include loongson3a.md.
13901 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13904 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13906 PR middle-end/47017
13907 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13908 instead of convert_memory_address_addr_space on the base expression.
13910 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13912 * config/spu/spu.c (spu_option_override): Update error text
13913 for bad -march= / -mtune= values.
13915 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13917 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13918 if branch-hint optimization will be performed.
13920 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13922 PR tree-optimization/47148
13923 * ipa-split.c (split_function): Convert arguments to
13924 DECL_ARG_TYPE if possible.
13926 PR tree-optimization/47155
13927 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13928 when computing uns.
13930 PR rtl-optimization/47157
13931 * combine.c (try_combine): If undobuf.other_insn becomes
13932 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13933 and set *new_direct_jump_p too.
13935 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13937 PR tree-optimization/47021
13938 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13940 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13942 * gcc.c (process_command): Update copyright notice dates.
13943 * gcov.c (print_version): Likewise.
13944 * gcov-dump.c (print_version): Likewise.
13945 * mips-tfile.c (main): Likewise.
13946 * mips-tdump.c (main): Likewise.
13948 2011-01-03 Martin Jambor <mjambor@suse.cz>
13950 PR tree-optimization/46801
13951 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13952 aggregate fields start at byte boundary instead of the bit-field flag.
13954 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13957 * gcc.c (main): Revert revision 168407.
13959 2011-01-03 Martin Jambor <mjambor@suse.cz>
13961 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13963 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13965 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13966 vector optab to expand vector/scalar shift, update gimple to vector.
13968 2011-01-03 Martin Jambor <mjambor@suse.cz>
13970 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13973 2011-01-03 Martin Jambor <mjambor@suse.cz>
13975 PR tree-optimization/46984
13976 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13978 (cgraph_create_indirect_edge): Fixed line length.
13979 (cgraph_indirect_call_info): Declare.
13980 (cgraph_make_edge_direct) Update declaration.
13981 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13982 (cgraph_create_indirect_edge): Use it.
13983 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13985 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13986 the new thunk_delta representation.
13987 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13989 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13990 (ipa_read_indirect_edge_info): Likewise.
13991 * lto-cgraph.c (output_edge_opt_summary): New function.
13992 (output_node_opt_summary): Call it on all outgoing edges.
13993 (input_edge_opt_summary): New function.
13994 (input_node_opt_summary): Call it on all outgoing edges.
13996 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13999 * gcc.c (main): Don't check have_o when settting combine_inputs.
14001 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14003 * regrename.c: Add general comment describing the pass.
14004 (struct du_head): Remove 'length' field.
14005 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14006 (regrename_optimize): Do not sort chains. Rework comments, add others.
14007 Force renaming to the preferred class (if any) in the first pass and do
14008 not consider registers that belong to it in the second pass.
14009 (create_new_chain): Do not set 'length' field.
14010 (scan_rtx_reg): Likewise.
14012 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14014 PR tree-optimization/47140
14015 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14016 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14017 to bit_value_binop.
14019 PR rtl-optimization/47028
14020 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14021 parm_birth_insn instead of at the beginning of first bb.
14023 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14025 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14026 Remove the word "see" before "@pxref".
14027 * doc/rtl.texi: Remove the word "see" before "@pxref".
14029 2011-01-01 Jan Hubicka <jh@suse.cz>
14031 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14034 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14037 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14040 Copyright (C) 2011 Free Software Foundation, Inc.
14042 Copying and distribution of this file, with or without modification,
14043 are permitted in any medium without royalty provided the copyright
14044 notice and this notice are preserved.