1 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4 for !flag_prefer_avx128.
5 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
7 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
9 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
10 (fold_ternary_loc): Use expr_location_or.
12 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
15 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
17 Pmode and mem_mode is not VOIDmode.
19 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
21 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
22 TYPE_QUAL_RESTRICT): Convert to enum.
24 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
27 (const_pow2_1_to_8_operand): Ditto.
28 (const_pow2_1_to_128_operand): Ditto.
29 (const_pow2_1_to_32768_operand): Ditto.
30 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
31 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
32 in insn constraint to check integer value of operand 3.
33 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
35 (PINSR_MODE): New mode iterator.
36 (sse2p4_1): New mode attribute.
37 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
38 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
39 iterator. Use const_int_operand instead of
40 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
41 exact_log2 in insn constraint to check integer value of operand 3.
43 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
45 * config/i386/sse.md (blendbits): Remove mode attribute.
46 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
47 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
48 Check integer value of operand 3 in insn constraint.
50 2011-05-09 Richard Guenther <rguenther@suse.de>
52 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
54 (lto_symtab_merge): Likewise. Do not register types here.
55 (lto_symtab_merge_decls_2): Likewise.
56 (lto_symtab_merge_decls_1): Likewise.
57 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
58 * gimple.c (enum gtc_mode): Declare.
59 (gimple_types_compatible_p): Make static.
61 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
63 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
64 temporary register to match Pmode.
66 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
68 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
69 and *vec_concatv4si_1_avx.
71 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
73 PR rtl-optimization/48927
74 * ira-conflicts.c (commutative_constraint_p): Use
75 recog_data.alternative_enabled_p to disable alternatives where
76 "enabled" attribute is false.
78 * ira-lives.c (single_reg_class): Ditto.
79 (ira_implicitly_set_insn_hard_regs): Ditto.
81 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
83 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
84 (dataflow_set_preserve_mem_locs): Likewise.
86 2011-05-09 Philipp Thomas <pth@suse.de>
88 * config/mep/mep.c (mep_validate_vliw): Syntax description
89 should not be translated.
91 2011-05-09 Joseph Myers <joseph@codesourcery.com>
93 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
94 * config/mips/mips-tables.opt: New file (generated).
95 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
96 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
97 MIPS_ARCH_OPTION_NATIVE): Define.
98 * config/mips/mips.c (mips_cpu_info_table): Move contents to
100 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
101 mips_parse_cpu): Remove.
102 (mips_cpu_info_from_opt, mips_default_arch): New.
103 (mips_handle_option): Don't assert that global structures are in
104 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
105 (mips_option_override): Use new variables and functions to set
106 state of these options. Use strcmp to check for individual CPU names.
107 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
109 * config/mips/mips.opt (march=): Use ToLower and Enum.
110 (mips): Use ToLower, Enum and Var.
111 (mtune=): Use ToLower and Enum.
112 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
114 2011-05-08 Jan Hubicka <jh@suse.cz>
116 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
117 Arrange type pairs to be UID ordered.
118 (gimple_lookup_type_leader): Make inline.
120 2011-05-09 Nick Clifton <nickc@redhat.com>
123 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
127 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
130 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
132 * combine.c (simplify_comparison): Abstract out parts into...
133 (simplify_compare_const): ... new function.
134 (try_combine): Generalize parallel arithmetic/compare combining
135 to call simplify_compare_const() and CANONICALIZE_COMPARE().
137 2011-05-08 Jan Hubicka <jh@suse.cz>
139 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
140 (cgraph_create_virtual_clone): Call hooks once virtual clone
142 * cgraph.h (cgraph_clone_node): Update prototype.
143 * ipa-cp.c (ipcp_estimate_growth): Use
144 estimate_ipcp_clone_size_and_time.
145 * ipa-inline-transform.c (clone_inlined_nodes): Update.
146 * lto-cgraph.c (input_node): Update.
147 * ipa-inline.c (recursive_inlining): Update.
148 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
149 (evaluate_conditions_for_known_args): Break out from ...
150 (evaluate_conditions_for_edge): ... here.
151 (evaluate_conditions_for_ipcp_clone): New function.
152 (inline_node_duplication_hook): Update clone summary based
154 (estimate_callee_size_and_time): Rename to ...
155 (estimate_node_size_and_time): take NODE instead of EDGE;
156 take POSSIBLE_TRUTHS as argument.
157 (estimate_callee_size_and_time): Update.
158 (estimate_ipcp_clone_size_and_time): New function.
159 (do_estimate_edge_time): Update.
161 2011-05-08 Richard Guenther <rguenther@suse.de>
165 * expmed.c (expand_shift_1): Compute adjusted constant shift
168 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
170 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
172 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
174 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
176 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
178 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
180 2011-05-07 Jan Hubicka <jh@suse.cz>
182 * ipa-inline-transform.c (inline_call): Account when program size
184 * ipa-inline.c (relative_time_benefit): New function.
185 (edge_badness): Reorganize to be power 2 based; fix thinko when
186 computing badness for negative growth; update comments to match
187 reality; better dumps.
189 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
191 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
192 type to bool and adjust comment.
193 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
194 (fold_mathfn_compare): Remove calls to global_bindings_p.
195 (fold_inf_compare): Likewise.
196 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
197 * c-tree.h (global_bindings_p): Adjust prototype.
198 * c-decl.c (global_bindings_p): Return bool and simplify.
200 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
202 PR tree-optimization/48837
203 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
204 when accumulator transformation is performed.
206 2011-05-06 Jan Hubicka <jh@suse.cz>
208 * i386.h (ix86_tune_indices): Add
209 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
210 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
211 * i386.c (initial_ix86_tune_features): Add
212 X86_SOFTARE_PREFETCHING_BENEFICIAL.
213 (software_prefetching_beneficial_p): Remove predicate.
214 (ix86_option_override_internal): Use new macro.
216 2011-05-06 Jan Hubicka <jh@suse.cz>
218 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
220 2011-05-06 Jan Hubicka <jh@suse.cz>
222 * cgraph.c (cgraph_add_thunk): Create real function node instead
223 of alias node; finalize it and mark needed/reachale; arrange visibility
224 to be right and add it into the corresponding same comdat group list.
225 (dump_cgraph_node): Dump thunks.
226 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
227 cgraph_function_with_gimple_body_p,
228 cgraph_first_function_with_gimple_body,
229 cgraph_next_function_with_gimple_body): New functions.
230 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
232 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
233 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
234 * cgraphunit.c (cgraph_finalize_function): Only look into possible
235 devirtualization when optimizing.
236 (verify_cgraph_node): Verify thunks.
237 (cgraph_analyze_function): Analyze thunks.
238 (cgraph_mark_functions_to_output): Output thunks only in combination
239 with function they are assigned to.
240 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
241 alias into normal node.
242 (assemble_thunks): New functoin.
243 (cgraph_expand_function): Use it.
244 * lto-cgraph.c (lto_output_node): Stream thunks.
245 (input_overwrite_node): Stream in thunks.
246 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
247 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
248 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
249 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
250 (inline_analyze_function): Do not care about thunk jump functions.
251 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
252 * ipa-prop.c (ipa_prop_write_jump_functions): Use
253 cgraph_function_with_gimple_body_p.
254 * passes.c (do_per_function_toporder): Use
255 cgraph_function_with_gimple_body_p.
256 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
257 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
258 (function_called_by_processed_nodes_p): Likewise.
260 2011-05-06 Joseph Myers <joseph@codesourcery.com>
262 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
263 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
265 (mabi=): Replace with separate entries for mabi=altivec,
266 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
267 mabi=ieeelongdouble and mabi=ibmlongdouble.
268 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
269 check for -mabi=spe without SPE ABI support here.
270 (rs6000_handle_option): Replace OPT_mabi_ handling with
271 OPT_mabi_altivec and OPT_mabi_spe handling.
273 2011-05-06 Cary Coutant <ccoutant@google.com>
275 * dwarf2out.c (contains_subprogram_definition): New function.
276 (should_move_die_to_comdat): Call it.
278 2011-05-06 Jeff Law <law@redhat.com>
280 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
281 remove_ctrl_stmt_and_useless_edges.
282 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
283 (fixup_template_block, thread_single_edge): Likewise.
284 (mark_threaded_blocks): Use THREAD_TARGET.
286 2011-05-06 Alan Modra <amodra@gmail.com>
289 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
290 const0_rtx as the arg to the dummy __tls_get_addr libcall.
292 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
294 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
295 constraint modifier to "r".
297 2011-05-06 Joseph Myers <joseph@codesourcery.com>
299 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
300 fall through for OPT_mcmodel_.
302 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
304 * config/s390/s390.c (s390_asm_trampoline_template): Comment
306 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
308 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
311 * config/arm/arm.opt (marm): Document it.
312 (mthumb): Reject negative variant.
314 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
317 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
318 Fix typo in "ccvt" variable name.
320 2011-05-06 Tristan Gingold <gingold@adacore.com>
323 * config/vms/vms-ar.c (main): Remove cwd variable.
325 2011-05-06 Jakub Jelinek <jakub@redhat.com>
328 * var-tracking.c (prepare_call_arguments): Move else before #endif.
330 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
332 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
333 * gimplify.c (gimplify_switch_expr): Likewise.
334 * omp-low.c (expand_omp_sections): Likewise.
335 * tree-eh.c (lower_try_finally_switch): Likewise.
336 (lower_eh_dispatch): Likewise.
337 * tree.h (build_case_label): Declare.
338 * tree.c (build_case_label): Define.
340 2011-05-05 Jason Merrill <jason@redhat.com>
343 * tree-inline.c (copy_tree_r): Use copy_statement_list.
344 (copy_statement_list): Don't recurse.
345 * stor-layout.c (copy_self_referential_tree_r): Don't allow
348 2011-05-05 Joseph Myers <joseph@codesourcery.com>
350 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
351 through from -mfpu= handling.
352 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
354 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
356 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
359 2011-05-05 Steve Ellcey <sje@cup.hp.com>
361 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
363 (hppa[12]*-*-hpux11*): Ditto.
364 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
365 * config/ia64/hpux-unix2003.h: New.
366 * config/pa/pa-hpux1131.opt: New.
367 * config/pa/pa-hpux1131.h: New.
368 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
369 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
370 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
372 2011-05-05 Jakub Jelinek <jakub@redhat.com>
375 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
376 instead of mode as 3rd argument to recursive call.
377 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
378 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
380 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
381 don't give up if mode is Pmode and mem_mode is not VOIDmode.
382 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
383 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
385 2011-05-05 Julian Brown <julian@codesourcery.com>
387 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
388 parenthesis in D-register case.
390 2011-05-05 Joseph Myers <joseph@codesourcery.com>
392 * opt-functions.awk (var_type_struct): Handle Enum options.
393 * optc-gen.awk: Don't check range of variables of character type.
394 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
395 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
396 rs6000_sdata_name, rs6000_explicit_options): Remove.
397 (rs6000_option_override_internal): Check for -malign-power here.
398 Use global_options_set instead of rs6000_explicit_options.
399 (rs6000_parse_fpu_option): Remove.
400 (rs6000_handle_option): Access variables via opts and opts_set
401 pointers. Use error_at and warning_at. Add fall-through
402 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
403 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
404 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
405 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
406 here. Don't use rs6000_parse_fpu_option.
407 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
408 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
409 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
411 (mspe): Use Var and Save.
412 (mtraceback=): Use Enum and Var.
413 (rs6000_traceback_type): New Enum and EnumValue entries.
414 (mfloat-gprs=): Use Enum, Var and Save.
415 (rs6000_float_gprs): New Enum and EnumValue entries.
416 (mlong-double-): use Var and Save.
417 (msched-costly-dep=, minsert-sched-nops=): Use Var.
418 (malign-): Use Enum and Var.
419 (rs6000_alignment_flags): New Enum and EnumValue entries.
421 (fpu_type_t): New Enum and EnumValue entries.
422 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
423 global_options_set instead of rs6000_explicit_options.
424 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
425 global_options_set instead of rs6000_explicit_options.
426 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
427 global_options_set instead of rs6000_explicit_options.
428 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
429 global_options_set instead of rs6000_explicit_options.
430 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
431 global_options_set instead of rs6000_explicit_options.
432 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
433 global_options_set instead of rs6000_explicit_options.
434 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
436 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
437 global_options_set instead of rs6000_explicit_options.
438 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
439 (rs6000_cmodel): New Enum and EnumValue entries.
440 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
441 global_options_set instead of rs6000_explicit_options.
442 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
443 (mtls-size=): Use Enum and Var.
444 (rs6000_tls_size): New Enum and EnumValue entries.
446 2011-05-05 Michael Matz <matz@suse.de>
448 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
449 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
450 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
451 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
452 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
453 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
454 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
455 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
456 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
457 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
458 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
459 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
460 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
461 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
462 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
463 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
465 2011-05-05 Richard Guenther <rguenther@suse.de>
467 * expmed.c (expand_variable_shift): Rename to ...
468 (expand_shift_1): ... this. Take an expanded shift amount.
469 For rotates recurse directly not building trees for the shift amount.
470 (expand_variable_shift): Wrap around expand_shift_1.
471 (expand_shift): Adjust.
473 2011-05-05 Jakub Jelinek <jakub@redhat.com>
475 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
477 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
479 * tree.h (get_pending_sizes): Remove prototype.
480 (put_pending_size): Likewise.
481 (put_pending_sizes): Likewise.
482 * stor-layout.c (pending_sizes): Delete.
483 (get_pending_sizes): Likewise.
484 (put_pending_size): Likewise.
485 (put_pending_sizes): Likewise.
486 (variable_size): Do not call put_pending_size and tidy up.
487 * function.h (struct function): Remove dont_save_pending_sizes_p.
488 * lto-streamer-in.c (input_function): Do not stream it.
489 * lto-streamer-out.c (output_function): Likewise.
490 * tree-inline.c (initialize_cfun): Do not copy it.
491 * c-decl.c (store_parm_decls): Do not set it.
492 * omp-low.c (create_task_copyfn): Likewise.
493 * tree-optimize.c (tree_rest_of_compilation): Likewise.
495 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
497 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
499 (*movdf_internal): Ditto.
500 (*movdf_internal_nointeger): Ditto.
501 (*movsf_internal): Ditto.
503 2011-05-05 Joseph Myers <joseph@codesourcery.com>
505 * c-decl.c (finish_decl): Don't call get_pending_sizes.
506 (grokparm): Add parameter expr. Pass it to grokdeclarator.
507 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
508 (c_variable_size): Remove.
509 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
510 call put_pending_sizes.
511 (get_parm_info): Add parameter expr. Use it to set
512 arg_info->pending_sizes.
513 (store_parm_decls): Use arg_info->pending_sizes instead or calling
515 * c-parser.c (c_parser_parms_declarator): Update call to
516 c_parser_parms_list_declarator.
517 (c_parser_parms_list_declarator): Take parameter expr. Update
518 call to push_parm_decl. Update recursive call. Don't call
519 get_pending_sizes. Update calls to get_parm_info.
520 (c_parser_objc_method_definition): Update calls to
521 c_parser_objc_method_decl and objc_start_method_definition.
522 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
523 (c_parser_objc_method_decl): Add parameter expr. Update call to
525 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
526 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
527 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
529 2011-05-05 Michael Hope <michael.hope@linaro.org>
532 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
535 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
537 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
538 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
539 (spu_output_mi_thunk): New function.
541 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
543 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
544 targetm.asm_out.print_operand.
545 * config/sol2.c: Include target.h.
547 2011-05-04 Jan Hubicka <jh@suse.cz>
549 * ipa-inline.c (reset_edge_caches): New function.
550 (update_caller_keys): Add check_inlinablity_for; do not
551 reset edge caches; remove now unnecesary loop.
552 (update_callee_keys): Add comments; reset node_growth_cache of callee.
553 (update_all_callee_keys): Likewise.
554 (inline_small_functions): Sanity check cache; update code
557 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
559 PR rtl-optimization/47612
560 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
561 as the last insn of the sequence to be moved.
563 2011-05-04 Tobias Burnus <burnus@net-b.de>
566 * doc/invoke.texi (Ofast): Document that it
567 enables Fortran's -fno-protect-parens.
569 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
571 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
573 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
575 * stor-layout.c (variable_size): Do not issue errors.
577 2011-05-04 Richard Guenther <rguenther@suse.de>
579 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
580 for array-ref indices.
581 (tree_coverage_counter_addr): Likewise.
582 (build_fn_info_type): Use size_int for index types.
583 (build_gcov_info): Likewise.
585 2011-05-04 Richard Guenther <rguenther@suse.de>
587 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
589 * c-typeck.c (really_start_incremental_init): Use bitsize_int
590 for constructor indices.
591 (push_init_level): Likewise.
593 2011-05-04 Richard Guenther <rguenther@suse.de>
595 * explow.c (promote_mode): Move variable declarations before code.
597 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
599 * tree.h (build_function_type_array): Declare.
600 (build_varargs_function_type_array): Declare.
601 (build_function_type_vec, build_varargs_function_type_vec): Define.
602 * tree.c (build_function_type_array_1): New function.
603 (build_function_type_array): New function.
604 (build_varargs_function_type_array): New function.
606 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
608 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
609 before setting STMT_VINFO_TYPE.
611 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
613 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
614 instead of spu_pass_by_reference.
616 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
618 * calls.c (emit_library_call_value_1): Invoke
619 promote_function_mode hook on libcall arguments.
620 * explow.c (promote_function_mode, promote_mode): Handle TYPE
622 * targhooks.c (default_promote_function_mode): Lisewise.
623 * config/s390/s390.c (s390_promote_function_mode): Likewise.
624 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
626 * doc/tm.texi: Document that TYPE argument might be NULL.
628 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
630 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
632 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
635 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
637 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
639 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
640 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
642 * mips-tfile.c: ... here.
643 Don't include coretypes.h, tm.h, filenames.h.
644 (saber_stop): Remove definition and all calls.
646 (__LINE__): Remove default.
647 (Size_t, Ptrdiff_t): Remove definitions.
648 Replace by size_t, ptrdiff_t.
649 [!MIPS_DEBUGGING_INFO]: Remove.
650 (SHASH_SIZE, THASH_SIZE): Remove defaults.
651 (progname): Add const.
653 Replace all uses by static.
654 (ALIGN_SYMTABLE_OFFSET): Remove default.
655 * mips-tdump.c: Don't include coretypes.h, tm.h.
656 Remove !MIPS_IS_STAB guard.
657 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
658 $(TM_H), filenames.h dependencies.
659 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
661 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
664 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
665 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
667 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
670 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
671 account and save/restore RETS.
672 (PROFILE_BEFORE_PROLOGUE): Define.
673 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
674 the push insn to use predecrement.
676 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
679 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
681 2011-05-04 Nick Clifton <nickc@redhat.com>
683 * config/mn10300/mn10300.c: Include cfgloop.h.
685 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
686 Lcc or a FLcc insn into the instruction stream.
687 (mn10300_block_contains_call): New function. Returns true if the
688 given basic block contains a CALL insn.
689 (mn10300_loop_contains_call_insn): New function. Returns true if
690 the given loop contains a CALL insn.
691 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
692 to use the SETLB and Lcc or FLcc insns.
693 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
694 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
695 * config/mn10300/mn10300.opt (msetlb): New option. Used to
696 disable the SETLB optimization.
697 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
698 __SETLB__ or __NO_SETLB__.
699 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
700 (movsf_internal): Handle MDR register.
701 (cmpsi): Make visible.
702 (setlb): New pattern.
706 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
709 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
711 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
712 (vec_concatv2di_rex64_sse): Ditto.
713 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
714 (*vec_extractv2di_1_rex64): Ditto.
717 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
719 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
721 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
723 2011-05-04 Richard Guenther <rguenther@suse.de>
725 * tree.h (int_const_binop): Remove notrunc argument.
726 * fold-const.c (int_const_binop): Remove notrunc argument. Always
727 create integer constants that are properly truncated.
728 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
729 (const_binop): Remove zero notrunc argument to int_const_binop.
730 (size_binop_loc): Likewise.
731 (fold_div_compare): Likewise.
732 (maybe_canonicalize_comparison_1): Likewise.
733 (fold_comparison): Likewise.
734 (fold_binary_loc): Likewise.
735 (multiple_of_p): Likewise.
736 * expr.c (store_constructor): Likewise.
737 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
738 (maybe_fold_stmt_addition): Likewise.
739 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
740 * stor-layout.c (layout_type): Likewise.
741 * tree-data-ref.c (tree_fold_divides_p): Likewise.
742 * tree-sra.c (build_ref_for_offset): Likewise.
743 (build_user_friendly_ref_for_offset): Likewise.
744 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
745 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
746 * tree-ssa-loop-niter.c (inverse): Likewise.
747 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
748 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
749 * tree-switch-conversion.c (check_range): Likewise.
750 (build_constructors): Likewise.
751 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
752 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
753 (extract_range_from_assert): Likewise.
754 (vrp_int_const_binop): Likewise.
755 (extract_range_from_binary_expr): Likewise.
756 (extract_range_from_unary_expr): Likewise.
757 (check_array_ref): Likewise.
758 (find_case_label_range): Likewise.
759 (simplify_div_or_mod_using_ranges): Likewise.
760 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
761 comparing case labels for merging.
763 2011-05-03 Mark Wielaard <mjw@redhat.com>
765 * dwarf2out.c (debug_str_hash_forced): Removed.
766 (gen_label_for_indirect_string): Removed.
767 (get_debug_string_label): Removed.
768 (AT_string_form): Generate label directly.
769 (output_indirect_string): Test indirect_string_node for
770 DW_FORM_strp instead of checking label and refcount.
771 (prune_indirect_string): Removed.
772 (prune_unused_types): Don't check debug_str_hash_forced or
773 call prune_indirect_string.
775 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
778 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
780 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
784 * combine.c (try_combine): Skip debug insns at m_split tests.
786 2011-04-26 Mark Wielaard <mjw@redhat.com>
789 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
790 when info_section_emitted.
792 2011-05-03 Joseph Myers <joseph@codesourcery.com>
794 * config/mips/mips-opts.h: New.
795 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
797 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
798 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
799 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
801 * config/mips/mips.h (enum mips_code_readable_setting): Move to
803 (mips_abi, mips_code_readable): Don't declare.
804 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
805 (mabi=): Use Enum and Var.
806 (mips_abi): New Enum and EnumValue entries.
807 (mcode-readable=): Use Enum and Var.
808 (mips_code_readable_setting): New Enum and EnumValue entries.
809 (mr10k-cache-barrier=): Use Enum and Var.
810 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
812 2011-05-03 Jan Hubicka <jh@suse.cz>
814 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
815 replace hash by pointer map.
816 (cgraph_node_set_element_def, cgraph_node_set_element,
817 const_cgraph_node_set_element, varpool_node_set_element_def,
818 varpool_node_set_element, const_varpool_node_set_element): Remove.
819 (free_cgraph_node_set, free_varpool_node_set): New function.
820 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
821 * tree-emutls.c: Free varpool node set.
822 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
823 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
824 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
825 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
826 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
827 Move here from ipa.c; implement using pointer_map
828 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
829 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
830 debug_cgraph_node_set, varpool_node_set_new,
831 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
832 dump_varpool_node_set, debug_varpool_node_set):
834 * passes.c (ipa_write_summaries): Update.
836 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
839 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
840 bf542/bf544/bf547/bf548/bf549.
842 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
844 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
846 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
849 * config/bfin/bfin.md (MOVCC): New mode_macro.
850 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
851 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
852 comments from generated assembly.
854 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
857 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
858 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
859 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
860 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
861 * config/bfin/lib1funcs.asm (___muldi3): New function.
863 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
865 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
866 build_function_type_list instead of build_function_type.
867 Rearrange initialization of `args' to do so.
869 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
871 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
872 instead of build_function_type.
874 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
876 * config/rs6000/rs6000.c (spe_init_builtins): Call
877 build_function_type_list instead of build_function_type.
878 (paired_init_builtins, altivec_init_builtins): Likewise.
879 (builtin_function_type): Likewise.
881 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
883 * config/sh/sh.c (sh_media_init_builtins): Call
884 build_function_type_list instead of build_function_type.
886 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
888 * config/sparc/sparc.c (sparc_file_end): Call
889 build_function_type_list instead of build_function_type.
891 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
893 * config/alpha/alpha.c (alpha_init_builtins): Call
894 build_function_type_list instead of build_function_type.
896 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
898 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
899 build_function_type_list instead of build_function_type.
901 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
903 * config/iq2000/i2000.c (iq2000_init_builtins): Call
904 build_function_type_list instead of build_function_type.
905 Delete `endlink' variable.
907 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
909 * config/avr/avr.c (avr_init_builtins): Call
910 build_function_type_list instead of build_function_type.
912 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
914 * config/picochip/picochip.c (picochip_init_builtins): Call
915 build_function_type_list instead of build_function_type.
916 Delete `endlink' variable.
918 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
920 * config/bfin/bfin.c (bfin_init_builtins): Call
921 build_function_type_list instead of build_function_type.
923 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
926 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
927 that's not CONST_INT. Seemingly redundant check is due to PR39768.
929 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
932 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
933 libbffastfp overrides libgcc when -mfast-fp.
935 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
937 Originally from Bernd Schmidt
938 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
939 * config/bfin/bfin.c (override_options): Test it and error if
942 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
944 Originally From Bernd Schmidt
945 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
948 2011-05-03 Jeff Law <law@redhat.com>
950 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
951 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
952 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
953 than accessing AUX field directly. Free the AUX field before
955 (thread_block, thread_through_loop_header): Likewise.
956 (thread_single_edge, mark_threaded_blocks): Likewise.
957 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
958 (register_jump_thread): Do not attempt to thread to a NULL edge.
960 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
962 * function.c (init_function_start): Call decide_function_section.
963 * varasm.c (decide_function_section): New function.
964 (assemble_start_function): When not using
965 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
966 or first_function_block_is_cold.
967 * rtl.h (decide_function_section): Declare.
969 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
970 Jakub Jelinek <jakub@redhat.com>
973 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
974 only succeed if req_mode is the same as set_mode.
976 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
978 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
979 * genemit.c (gen_exp): Handle RETURN.
980 * emit-rtl.c (verify_rtx_sharing): Likewise.
981 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
982 * rtl.c (copy_rtx): RETURN is shared.
983 * rtl.h (enum global_rtl_index): Add GR_RETURN.
985 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
986 * config/s390/s390.c (s390_emit_epilogue): Likewise.
987 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
988 * config/cris/cris.c (cris_expand_return): Likewise.
989 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
990 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
991 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
992 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
993 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
995 * config/v850/v850.c (expand_epilogue): Likewise.
996 * config/bfin/bfin.c (bfin_expand_call): Likewise.
997 * config/arm/arm.md (epilogue): Likewise.
998 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
999 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1000 variable to ret_reg.
1002 2011-05-03 Richard Guenther <rguenther@suse.de>
1005 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1006 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1007 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1009 2011-05-03 Richard Guenther <rguenther@suse.de>
1011 * c-decl.c (grokdeclarator): Instead of looking at
1012 TREE_OVERFLOW check if the constant fits in the index type.
1014 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1016 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1017 (vec_store_lanes<mode><mode>): Likewise.
1019 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1021 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1022 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1023 convert_optab_index values.
1024 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1025 * genopinit.c (optabs): Initialize the new optabs.
1026 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1027 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1028 (expand_STORE_LANES): New functions.
1029 * tree.h (build_array_type_nelts): Declare.
1030 * tree.c (build_array_type_nelts): New function.
1031 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1032 (vect_model_load_cost): Likewise.
1033 (vect_store_lanes_supported, vect_load_lanes_supported)
1034 (vect_record_strided_load_vectors): Declare.
1035 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1036 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1037 (vect_transform_strided_load): Split out statement recording into...
1038 (vect_record_strided_load_vectors): ...this new function.
1039 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1040 (write_vector_array, create_array_ref): New functions.
1041 (vect_model_store_cost): Add store_lanes_p argument.
1042 (vect_model_load_cost): Add load_lanes_p argument.
1043 (vectorizable_store): Try to use store-lanes functions for
1045 (vectorizable_load): Likewise load-lanes and loads.
1046 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1047 to vect_model_store_cost.
1048 (vect_build_slp_tree): Likewise vect_model_load_cost.
1050 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1052 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1053 * hooks.c (hook_bool_mode_uhwi_false): New function.
1054 * target.def (array_mode_supported_p): New hook.
1055 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1056 * doc/tm.texi: Regenerate.
1057 * stor-layout.c (mode_for_array): New function.
1058 (layout_type): Use it.
1059 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1060 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1062 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1065 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1066 for -fstack-check if the size to allocate is negative.
1068 2011-05-02 Lawrence Crowl <crowl@google.com>
1070 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1071 (timevar_cond_start): New for starting a timer only when it is not
1073 (timevar_cond_stop): New for stopping a timer when it was not already
1076 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1077 (timevar_cond_start): New as above.
1078 (timevar_cond_stop): New as above.
1080 * timevar.def: Add start/stop timers for compiler phases,
1081 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1082 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1083 and TV_PHASE_FINALIZE.
1084 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1085 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1086 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1087 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1088 Make unused TV_OVERLOAD into a start/stop timer.
1090 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1091 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1092 to indicate that they are start/stop timers.
1094 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1095 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1096 Move initialization to do_compile.
1097 (do_compile): Add initialization from above.
1098 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1100 * c-decl.c (c_write_global_declarations): Add start/stop of
1101 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1103 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1104 or TV_PARSE_INLINE, as appropriate.
1105 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1106 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1108 2011-05-02 Jason Merrill <jason@redhat.com>
1111 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1113 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1116 * c-decl.c (finish_decl): Only create a composite if the types are
1119 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1121 * config/fr30/fr30-protos.h (Mmode): Don't define.
1122 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1123 definition where used.
1124 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1125 define. Expand definitions where used.
1126 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1127 Expand definitions where used.
1128 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1129 rx_function_arg, rx_function_arg_advance,
1130 rx_function_arg_boundary): Expand definitions of those macros.
1131 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1132 definition where used.
1134 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1136 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1138 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1139 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1140 with *movv2sf_internal_rex64_avx.
1141 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1142 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1143 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1144 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1145 "vex" in "prefix" attribute calculation.
1146 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1148 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1151 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1152 inputs match the output.
1154 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1157 * config/m68k/m68k.c (m68k_expand_prologue): Set
1158 current_function_static_stack_size.
1160 2011-05-02 Jan Hubicka <jh@suse.cz>
1162 * lto-streamer.c (lto_streamer_cache_insert_1,
1163 lto_streamer_cache_lookup, lto_streamer_cache_create,
1164 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1165 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1167 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1169 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1170 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1171 config/m68k/t-opts: New files.
1172 * config/m68k/m68k-tables.opt: New file (generated).
1173 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1174 extra_options and m68k/t-opts to tmake_file.
1175 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1176 (all_isas): Initialize using m68k-isas.def.
1177 (all_microarchs): Initialize using m68k-microarchs.def.
1178 (m68k_find_selection): Remove.
1179 (m68k_handle_option): Don't assert that global structures are in
1180 use. Use error_at. Access variables via opts pointer. Don't
1181 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1182 directly for -m68020-40 and -m68020-60.
1183 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1184 m68k_tune_entry here.
1185 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1187 (m68k_library_id_string): Remove declaration.
1188 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1189 (m68k_library_id_string): New Variable.
1190 (march=, mcpu=, mtune=): Use Enum and Var.
1192 2011-05-02 Richard Guenther <rguenther@suse.de>
1194 * varasm.c (output_constructor_regular_field): Compute zero-based
1195 index with double-ints. Make sure to ICE instead of producing
1197 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1198 in asserts. Properly use a signed type.
1200 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1202 * config/i386/sse.md (V): New mode iterator.
1203 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1205 (V_256): Rename from AVX256MODE.
1206 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1207 condition to all users.
1209 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1210 condition to all users.
1211 (VF_128): Make V4SF mode unconditional.
1212 (VF_256): Rename from AVX256MODEF2P.
1213 (VI4F_128): Rename from SSEMODE4S.
1214 (VI8F_128): Rename from SSEMODE2D.
1215 (VI4F_256): Rename from AVX256MODE8P.
1216 (VI8F_256): Rename from AVX256MODE4P.
1217 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1218 (ssescalarmodesuffix): Remove SF and DF modes.
1219 (SSEMODE124): Remove.
1220 (SSEMODE1248): Ditto.
1221 (SSEMODEF2P): Ditto.
1222 (AVXMODEF2P): Ditto.
1223 (AVXMODEFDP): Ditto.
1224 (AVXMODEFSP): Ditto.
1225 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1227 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1229 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1230 xop_pcmov_<mode>256. Use V mode iterator.
1232 Adjust RTX patterns globally for renamed mode attributes.
1234 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1236 * haifa-sched.c (sched_emit_insn): Emit insn before first
1237 non-scheduled insn. Inform back-end about new insn. Add
1238 new insn to scheduled_insns list.
1240 2011-05-02 Richard Guenther <rguenther@suse.de>
1242 PR tree-optimization/48822
1243 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1244 (process_scc): Indicate which iteration we start.
1246 2011-05-02 Jan Hubicka <jh@suse.cz>
1248 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1249 (lto_section_overrun): New.
1250 * lto-section-out.c (append_block): Rename to ...
1251 (lto_append_block): ... this one; export.
1252 (lto_output_1_stream): Move lto lto-streamer.h
1253 (lto_output_data_stream): Update.
1254 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1255 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1258 2011-05-02 Richard Guenther <rguenther@suse.de>
1260 * tree.c (tree_code_counts): New global array.
1261 (record_node_allocation_statistics): Count individual tree codes.
1262 (dump_tree_statistics): Dump individual code stats.
1264 2011-05-01 Jan Hubicka <jh@suse.cz>
1266 * ipa-inline.c (caller_growth_limits): Fix thinko when
1267 looking for largest stack frame.
1268 * ipa-inline.h (dump_inline_summary): Declare.
1269 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1271 (dump_inline_summary): Export.
1272 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1274 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1276 * reginfo.c (memory_move_cost): Change rclass argument type form
1277 'enum reg_class' to reg_class_t.
1278 * reload.h (memory_move_cost): Update prototype.
1279 * postreload.c reload_cse_simplify_set): Change type dclass var to
1281 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1283 (ira_allocate_and_set_costs): Change aclass argument type form
1284 'enum reg_class' to reg_class_t.
1285 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1286 Change aclass argument type to reg_class_t.
1287 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1289 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1290 memory_move_cost call.
1292 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1293 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1294 Change type tmp var to reg_class_t.
1296 2011-04-30 Jan Hubicka <jh@suse.cz>
1298 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1299 inlining into function with flatten attribute.
1300 (want_inline_small_function_p): Be more realistic about inlining
1301 cold calls where callee size grows.
1303 2011-04-30 Jan Hubicka <jh@suse.cz>
1305 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1308 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1310 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1311 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1312 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1313 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1314 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1315 (print_operand): Rename to...
1316 (sparc_print_operand): ...this. Make static. Adjust
1317 sparc_print_operand function call.
1318 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1321 2011-04-30 Jan Hubicka <jh@suse.cz>
1324 * ipa-inline.c (early_inliner): Disable when doing late
1325 addition of function.
1327 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1329 * dwarf2out.c (get_address_mode): New inline.
1330 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1331 if not dwarf_strict emit
1332 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1333 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1334 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1335 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1336 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1337 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1338 mem_loc_descriptor callers.
1339 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1340 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1341 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1342 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1343 (base_types): New variable.
1344 (get_base_type_offset, calc_base_type_die_sizes,
1345 base_type_for_mode, mark_base_types, base_type_cmp,
1346 move_marked_base_types): New functions.
1347 (calc_die_sizes): Assert that die_offset is 0 or equal to
1349 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1350 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1351 callers. If not dwarf_strict, call mem_loc_descriptor even for
1352 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1353 (gen_subprogram_die): Don't give up on call site parameters
1354 with non-integral or large integral modes. Adjust
1355 mem_loc_descriptor callers.
1356 (prune_unused_types): Call prune_unused_types_mark on base_types
1358 (resolve_addr): Call mark_base_types.
1359 (dwarf2out_finish): Call move_marked_base_types.
1361 PR tree-optimization/48809
1362 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1364 (gen_inbound_check): Don't compute index_expr - range_min in utype
1365 again, instead reuse SSA_NAME initialized in build_arrays.
1366 Remove two useless gsi_for_stmt calls.
1368 2011-04-29 Jeff Law <law@redhat.com>
1370 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1372 2011-04-29 Martin Jambor <mjambor@suse.cz>
1374 * cgraph.h (cgraph_postorder): Remove declaration.
1375 * ipa-utils.h (ipa_free_postorder_info): Declare.
1376 (ipa_reverse_postorder): Likewise.
1377 * cgraphunit.c: Include ipa-utils.h.
1378 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1379 * ipa-inline.c: Include ipa-utils.h.
1380 (ipa_inline): Update call to ipa_reverse_postorder.
1381 * ipa-pure-const.c (propagate_pure_const): Update call to
1382 ipa_reduced_postorder and ipa_print_order. Call
1383 ipa_free_postorder_info to clean up.
1384 (propagate_nothrow): Likewise.
1385 * ipa-reference.c (propagate): Removed a useless call to
1386 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1387 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1388 * ipa.c: Include ipa-utils.h.
1389 (ipa_profile): Update call to ipa_reverse_postorder.
1390 (cgraph_postorder): Moved to...
1391 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1392 (ipa_utils_print_order): Renamed to ipa_print_order.
1393 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1395 (ipa_free_postorder_info): New function.
1396 * passes.c: Include ipa-utils.h.
1397 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1398 (ipa_write_summaries): Likewise.
1399 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1400 (cgraphunit.o): Likewise.
1402 (ipa-inline.o): Likewise.
1404 2011-04-29 Jan Hubicka <jh@suse.cz>
1406 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1407 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1408 * ipa-inline.h (clause_t): Turn into unsigned int.
1409 * ipa-inline-analysis.c (add_clause): Do more simplification.
1410 (and_predicates): Shortcut more cases.
1411 (predicates_equal_p): Move forward; check that clauses are properly
1413 (or_predicates): Shortcut more cases.
1414 (edge_execution_predicate): Rewrite as...
1415 (set_cond_stmt_execution_predicate): ... this function; handle
1416 __builtin_constant_p.
1417 (set_switch_stmt_execution_predicate): New .
1418 (compute_bb_predicates): New.
1419 (will_be_nonconstant_predicate): Update TODO.
1420 (estimate_function_body_sizes): Use compute_bb_predicates
1421 and free them later, always try to estimate if stmt is constant.
1422 (estimate_time_after_inlining, estimate_size_after_inlining):
1423 Gracefully handle optimized out edges.
1424 (read_predicate): Fix off by one error.
1426 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1428 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1430 2011-04-27 Xinliang David Li <davidxl@google.com>
1432 * tree-profile.c (init_ic_make_global_vars): Set
1433 tls attribute on ic vars.
1434 * coverage.c (coverage_end_function): Initialize
1435 function_list with zero.
1437 2011-04-29 Richard Guenther <rguenther@suse.de>
1439 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1440 for the type of the result.
1441 (fold_builtin_isascii): Likewise.
1442 (fold_builtin_toascii): Use integer_type_node where appropriate.
1443 (fold_builtin_logb): Likewise.
1444 (fold_builtin_frexp): Likewise.
1445 (fold_builtin_strstr): Likewise.
1446 (fold_builtin_strpbrk): Likewise.
1447 (fold_builtin_fputs): Likewise.
1448 (fold_builtin_sprintf): Likewise.
1449 (fold_builtin_snprintf): Likewise.
1450 (fold_builtin_printf): Likewise.
1451 (do_mpfr_remquo): Use a proper type for the assigned constant.
1452 (do_mpfr_lgamma_r): Likewise.
1453 * dwarf2out.c (resolve_one_addr): Use size_int.
1454 * except.c (init_eh): Likewise.
1455 (assign_filter_values): Use integer_type_node for filter values.
1456 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1458 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1459 for EH region numbers.
1460 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1461 for the shift amount.
1463 2011-04-29 Richard Guenther <rguenther@suse.de>
1465 * expr.h (expand_shift): Rename to ...
1466 (expand_variable_shift): ... this.
1467 (expand_shift): Take a constant shift amount.
1468 * expmed.c (expand_shift): Rename to ...
1469 (expand_variable_shift): ... this.
1470 (expand_shift): New wrapper around expand_variable_shift.
1471 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1472 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1473 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1474 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1475 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1476 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1477 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1478 emit_store_flag_1, emit_store_flag): Likewise.
1479 * builtins.c (expand_builtin_signbit): Likewise.
1480 * calls.c (load_register_parameters): Likewise.
1481 * function.c (assign_parm_setup_block): Likewise.
1482 * lower-subreg.c (resolve_shift_zext): Likewise.
1483 * optabs.c (widen_bswap, expand_abs_nojump,
1484 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1485 * spu/spu.c (spu_expand_extv): Likewise.
1486 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1488 2011-04-29 Richard Guenther <rguenther@suse.de>
1490 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1491 for the remapped region number.
1492 * predict.c (build_predict_expr): Use integer_type_node for the
1494 * fold-const.c (fold_binary_loc): Use integer_type_node for
1495 the shift amount. Use a proper type for the PLUS_EXPR operand.
1497 2011-04-29 Michael Matz <matz@suse.de>
1499 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1500 other trees that just builtins.
1501 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1503 2011-04-29 Richard Guenther <rguenther@suse.de>
1505 * tree-nested.c (get_trampoline_type): Use size_int.
1506 (get_nl_goto_field): Likewise.
1507 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1509 (lower_eh_constructs_2): Likewise.
1510 (lower_resx): Likewise.
1511 (lower_eh_dispatch): Likewise.
1512 * tree-mudflap.c (mf_build_string): Use size_int.
1513 (mudflap_register_call): Use integer_type_node for the flag.
1514 (mudflap_enqueue_constant): Use size_int.
1515 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1516 instead of rebuilding it.
1518 2011-04-29 Richard Guenther <rguenther@suse.de>
1520 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1521 Handle OBJ_TYPE_REF.
1522 (find_func_aliases_for_call): Use it more consistently.
1524 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1526 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1527 (rank_for_schedule): Use it.
1528 (schedule_block): Set it.
1530 2011-04-28 David Li <davidxl@google.com>
1532 * tree.c (crc32_string): Use crc32_byte.
1533 (crc32_byte): New function.
1534 * tree.h (crc32_byte): New function.
1535 * gcov.c (read_graph_file): Handle new cfg_cksum.
1536 (read_count_file): Ditto.
1537 * profile.c (instrument_values): Ditto.
1538 (get_exec_counts): Ditto.
1539 (read_profile_edge_counts): Ditto.
1540 (compute_branch_probabilities): Ditto.
1541 (compute_value_histograms): Ditto.
1542 (branch_prob): Ditto.
1543 (end_branch_prob): Ditto.
1544 * coverage.c (read_counts_file): Ditto.
1545 (get_coverage_counts): Ditto.
1546 (tree_coverage_counter_addr): Ditto.
1547 (coverage_checksum_string): Ditto.
1548 (coverage_begin_output): Ditto.
1549 (coverage_end_function): Ditto.
1550 (build_fn_info_type): Ditto.
1551 (build_fn_info_value): Ditto.
1552 * libgcov.c (gcov_exit): Ditto.
1553 * gcov-dump.c (tag_function): Ditto.
1554 (compute_checksum): Remove.
1556 2011-04-29 Alan Modra <amodra@gmail.com>
1558 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1559 unspec plus offset. Tidy macho code.
1561 2011-04-29 Martin Jambor <mjambor@suse.cz>
1563 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1564 node instead of a decl. Update all callers.
1565 * cgraph.h: Update declaration.
1567 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1569 PR tree-optimization/48765
1570 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1571 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1572 to indicate if loop aware SLP is being used. Scan the statements
1573 and update the vectorization factor according to the type of
1574 vectorization before statement analysis.
1575 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1576 pass it to vect_analyze_loop_operations.
1577 (vectorizable_reduction): Set number of copies to 1 in case of pure
1579 * tree-vect-stmts.c (vectorizable_conversion,
1580 vectorizable_assignment, vectorizable_shift,
1581 vectorizable_operation, vectorizable_type_demotion,
1582 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1584 (vectorizable_condition): Move the check that it is not SLP
1585 vectorization before the number of copies check.
1586 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1587 to vectorize the loop using SLP.
1589 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1592 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1595 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1597 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1598 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1599 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1600 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1601 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1603 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1604 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1605 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1606 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1607 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1608 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1610 * config/i386/linux.h (REG_NAME): Don't define.
1611 * config/i386/linux64.h (REG_NAME): Don't define.
1612 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1613 Undefine before defining.
1615 2011-04-28 Jan Hubicka <jh@suse.cz>
1617 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1618 nonconstant_names array.
1619 (estimate_function_body_sizes): Build nonconstant_names array; handle
1620 BUILT_IN_CONSTANT_P.
1622 2011-04-28 Richard Guenther <rguenther@suse.de>
1626 2011-04-28 Richard Guenther <rguenther@suse.de>
1628 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1629 as late as possible.
1631 2011-04-28 Richard Guenther <rguenther@suse.de>
1633 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1634 (debug_constraint): Do it here.
1635 (dump_constraints): And here.
1636 (rewrite_constraints): And here.
1637 (dump_constraint_edge): Remove.
1638 (dump_constraint_graph): Rewrite to produce DOT output.
1639 (solve_constraints): Build succ graph as late as possible.
1640 Dump constraint graphs before and after solving.
1642 2011-04-28 Richard Guenther <rguenther@suse.de>
1644 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1645 New function split out from ...
1646 (find_func_aliases): ... here. Call it.
1647 (find_func_aliases_for_call): Likewise.
1649 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1651 * internal-fn.h (internal_fn_name_array): Declare.
1652 (internal_fn_flags_array): Likewise.
1654 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1656 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1657 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1659 (ssemodefsuffix): Remove.
1660 (ssevecmodesuffix): New mode attribute.
1661 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1662 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1663 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1664 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1665 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1666 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1667 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1668 ssemodesuffix mode attribute.
1669 (float splitters): Use ssevecmodesuffix mode attribute.
1670 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1671 (sseinsmode): Rename from avxvecmode.
1672 (avxsizesuffix): Rename from avxmodesuffix.
1673 (sseintvecmode): Rename from avxpermvecmode.
1674 (ssedoublevecmode): Rename from ssedoublesizemode.
1675 (ssehalfvecmode): Rename from avxhalfvecmode.
1676 (ssescalarmode): Rename from avxscalarmode.
1677 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1678 templates for ssemodesuffix mode attribute.
1679 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1682 Adjust RTX patterns globally for renamed mode attributes.
1684 2011-04-27 Jan Hubcika <jh@suse.cz>
1686 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1687 * ipa-inline-analysis.c: Include alloc-pool.h.
1688 (edge_predicate_pool): New.
1689 (trye_predicate_p): New function
1690 (false_predicate_p): New function.
1691 (add_clause): Sanity check that false clauses are "optimized";
1692 never add clauses to predicate that is already known to be false.
1693 (and_predicate): Use flase_predicate_p.
1694 (evaulate_predicate): Rename to ...
1695 (evaluate_predicate): ... this one; update all callers; assert
1696 that false is not listed among possible truths.
1697 (dump_predicate): Use true_predicate_p.
1698 (account_size_time): Use false_predicate_p.
1699 (evaulate_conditions_for_edge): Rename to ...
1700 (evaluate_conditions_for_edge) ... this one.
1701 (edge_set_predicate): New function.
1702 (inline_edge_duplication_hook): Duplicate edge predicates.
1703 (inline_edge_removal_hook): Free edge predicates.
1704 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1705 (dump_inline_summary): Update.
1706 (estimate_function_body_sizes): Set edge predicates.
1707 (estimate_calls_size_and_time): Handle predicates.
1708 (estimate_callee_size_and_time): Update.
1709 (remap_predicate): Add toplev_predicate; update comment.
1710 (remap_edge_predicates): New function.
1711 (inline_merge_summary): Compute toplev predicate; update.
1712 (read_predicate): New function.
1713 (read_inline_edge_summary): Use it.
1714 (inline_read_section): Likewise.
1715 (write_predicate): New function.
1716 (write_inline_edge_summary): Use it.
1717 (inline_write_summary): Likewise.
1718 (inline_free_summary): Free alloc pool and edge summary vec.
1720 2011-04-27 Richard Guenther <rguenther@suse.de>
1722 * tree-ssa-structalias.c (changed_count): Remove.
1723 (changed): Use a bitmap.
1724 (unify_nodes): Adjust.
1725 (do_sd_constraint): Likewise.
1726 (do_ds_constraint): Likewise.
1727 (do_complex_constraint): Likewise.
1728 (solve_graph): Likewise.
1730 2011-04-27 Jan Hubicka <jh@suse.cz>
1732 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1734 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1736 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1737 (avx_vperm2f128_*_operand): Ditto.
1738 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1739 Use avx_vpermilp_parallel in insn condition.
1740 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1741 Use avx_vperm2f128_parallel in insn condition.
1743 2011-04-27 Richard Guenther <rguenther@suse.de>
1745 * Makefile.in (tree-ssa-structalias.o): Remove
1746 gt-tree-ssa-structalias.h dependency.
1747 (GTFILES): Remove tree-ssa-structalias.c.
1748 * tree.c (allocate_decl_uid): New function.
1749 (make_node_stat): Use it.
1750 (copy_node_stat): Likewise.
1751 * tree.h (allocate_decl_uid): Declare.
1752 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1753 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1754 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1755 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1756 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1757 (struct heapvar_map): Likewise.
1758 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1759 heapvar_insert): Likewise.
1760 (make_heapvar_for): Rename to ...
1761 (make_heapvar): ... this. Simplify.
1762 (fake_var_decl_obstack): New global var.
1763 (build_fake_var_decl): New function.
1764 (make_constraint_from_heapvar): Adjust.
1765 (handle_lhs_call): Likewise.
1766 (create_function_info_for): Likewise.
1767 (intra_create_variable_infos): Likewise.
1768 (init_alias_vars): Allocate fake_var_decl_obstack.
1769 (init_alias_heapvars, delete_alias_heapvars): Remove.
1770 (compute_points_to_sets): Do not call init_alias_heapvars.
1771 (ipa_pta_execute): Likewise.
1772 (delete_points_to_sets): Free fake_var_decl_obstack.
1774 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1776 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1777 (si_from_UTItype, si_to_UTItype): New functions.
1778 (__udivmodti4): Use them to implement type-punning.
1779 * config/spu/multi3.c (union qword_TItype): New data type.
1780 (si_from_TItype, si_to_TItype): New functions.
1781 (__multi3): Use them to implement type-punning.
1783 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1785 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1787 2011-04-27 Jan Hubicka <jh@suse.cz>
1789 * ipa-prop.c (function_insertion_hook_holder): New holder.
1790 (ipa_add_new_function): New function.
1791 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1792 Register/deregister holder.
1794 2011-04-27 Richard Guenther <rguenther@suse.de>
1796 PR tree-optimization/48772
1797 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1799 2011-04-27 Richard Guenther <rguenther@suse.de>
1801 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1802 TARGET_MEM_REF handling.
1804 2011-04-27 Nick Clifton <nickc@redhat.com>
1806 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1807 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1808 (REG_CLASS_NAMES): Likewise.
1809 (REG_CLASS_CONTENTS): Likewise.
1810 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1811 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1812 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1813 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1814 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1815 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1816 duplicate register classes.
1817 (frv_class_likely_spilled_p): Likewise.
1818 (frv_register_move_cost): Likewise.
1820 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1821 end of the regno_reg_class array.
1823 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1826 * c-typeck.c (build_binary_op): Don't wrap arguments if
1827 int_operands is true.
1829 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1832 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1833 targetm.calls.must_pass_in_stack for void type.
1835 2011-04-26 Jan Hubicka <jh@suse.cz>
1837 * cgraphbuild.c (build_cgraph_edges): Update call
1838 of cgraph_create_edge and cgraph_create_indirect_edge.
1839 * cgraph.c (cgraph_create_edge_including_clones,
1840 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1841 cgraph_update_edges_for_call_stmt_node): Do not take nest
1842 argument; do not initialize call_stmt_size/time.
1843 (dump_cgraph_node): Do not dump nest.
1844 (cgraph_clone_edge): Do not take loop_nest argument;
1845 do not propagate it; do not clone call_stmt_size/time.
1846 (cgraph_clone_node): Likewise.
1847 (cgraph_create_virtual_clone): Update.
1848 * cgraph.h (struct cgraph_edge): Remove
1849 call_stmt_size/call_stmt_time/loop_nest.
1850 (cgraph_create_edge, cgraph_create_indirect_edge,
1851 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1853 * tree-emutls.c (gen_emutls_addr): Update.
1854 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1855 loop_nest; handle indirect calls, too.
1856 (clone_inlined_nodes): Do not care about updating inline summaries.
1857 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1858 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1859 stream call_stmt_size/call_stmt_time/loop_nest.
1860 * ipa-inline.c (edge_badness): Update.
1861 (ipa_inline): dump summaries after inlining.
1862 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1864 (inline_edge_summary): New function.
1865 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1866 (inline_edge_removal_hook): Handle edge summaries.
1867 (inline_edge_duplication_hook): New hook.
1868 (inline_summary_alloc): Alloc hooks.
1869 (initialize_growth_caches): Do not register removal hooks.
1870 (free_growth_caches); Do not free removal hook.
1871 (dump_inline_edge_summary): New function.
1872 (dump_inline_summary): Use it.
1873 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1874 (inline_update_callee_summaries): New function.
1875 (inline_merge_summary): Use it.
1876 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1877 (read_inline_edge_summary): New function.
1878 (inline_read_section): Use it.
1879 (write_inline_edge_summary): New function.
1880 (inline_write_summary): Use it.
1881 (inline_free_summary): Free edge new holders.
1882 * tree-inline.c (copy_bb): Update.
1884 2011-04-26 Jason Merrill <jason@redhat.com>
1886 * tree-eh.c (lower_try_finally_switch): Create the label along with
1887 the CASE_LABEL_EXPR.
1889 2011-04-26 David S. Miller <davem@davemloft.net>
1890 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1892 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1893 * configure: Regenerate.
1895 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1898 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1900 (VEC_reduc): New code iterator and splitters for vector reduction.
1901 (VEC_reduc_name): Ditto.
1902 (VEC_reduc_rtx): Ditto.
1903 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1904 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1906 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1907 support for extracting SF on VSX.
1909 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1910 generating xscvspdp.
1911 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1912 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1913 double add, minimum, maximum vector reduction.
1914 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1915 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1916 optimize double vector reduction.
1917 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1919 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1921 * config/fr30/fr30.h (inhibit_libc): Don't define.
1922 * config/m32r/m32r-protos.h: Correct comment.
1923 * config/v850/v850.h (GHS_default_section_names,
1924 GHS_current_section_names): Use tree, not union tree_node *.
1926 2011-04-26 Xinliang David Li <davidxl@google.com>
1928 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1929 * c-family/c-opts.c (c_common_handle_option): Set
1930 warn_maybe_uninitialized.
1931 * opts.c (common_handle_option): Ditto.
1932 * common.opt: New option.
1933 * tree-ssa.c (warn_uninit): Add one more parameter.
1934 (warn_uninitialized_var): Pass warning code.
1935 * tree-flow.h: Interface change.
1938 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1940 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1941 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1942 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1944 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1946 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1947 * config/mips/mips.opt (mmips-tfile): Remove.
1949 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1950 mips-tdump reference to ...
1951 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1952 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1953 reference by Tru64 UNIX.
1955 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1958 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1959 is error_mark_node, set value to NULL.
1961 PR tree-optimization/48734
1962 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1963 if return value from maybe_fold_*_comparsions isn't something
1964 the code is prepared to handle.
1966 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1968 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1970 (ext_QIreg_nomode_operands): Remove.
1971 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1975 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1977 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1979 2011-04-26 Richard Guenther <rguenther@suse.de>
1981 * c-typeck.c (build_unary_op): Do not expand array-refs via
1982 pointer arithmetic. Only adjust qualifiers for function types.
1984 2011-04-26 Richard Guenther <rguenther@suse.de>
1987 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1988 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1989 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1990 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1992 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1994 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1995 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1996 * doc/extend.texi: Document __underlying_type.
1998 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2000 * config/rs6000/titan.md (automata_option "progress"): Remove.
2002 2011-04-25 Jeff Law <law@redhat.com>
2004 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2006 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2008 * system.h (ENUM_BITFIELD): Remove.
2010 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2011 Eric Botcazou <ebotcazou@adacore.com>
2013 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2014 for STORE_FLAG_VALUE==-1 case.
2016 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2019 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2020 LEGITIMATE_PIC_OPERAND_P.
2022 2011-04-24 Jan Hubicka <jh@suse.cz>
2024 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2026 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2027 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2028 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2029 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2030 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2031 Sanity check predicate length.
2032 (remap_predicate): Likewise; sanity check jump functions.
2033 (inline_read_section, inline_write_summary): Sanity check
2036 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2039 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2040 __is_literal_type, and __is_trivial; update throughout about
2041 possibly cv-qualified void types.
2043 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2045 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2046 testsuite and make it version agnostic.
2048 2011-04-22 Jan Hubicka <jh@suse.cz>
2050 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2052 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2055 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2056 to VOID_TYPE even around MODIFY_EXPR.
2058 2011-04-22 Mike Stump <mikestump@comcast.net>
2060 * gensupport.c (read_md_rtx): Fix typo in comment.
2061 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2064 2011-04-22 Jan Hubicka <jh@suse.cz>
2066 * gengtype.c (open_base_files): Add ipa-inline.h include.
2067 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2068 ipa-prop.c; update all uses.
2069 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2070 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2071 merge summary of inlined function into former caller.
2072 * ipa-inline.c (max_benefit): Remove.
2073 (edge_badness): Compensate for removal of benefits.
2074 (update_caller_keys): Use
2075 reset_node_growth_cache/reset_edge_growth_cache.
2076 (update_callee_keys): Likewise.
2077 (update_all_callee_keys): Likewise.
2078 (inline_small_functions): Do not collect max_benefit; do not reset
2079 estimated_growth; call free_growth_caches and initialize_growth_caches.
2080 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2081 struct size_time_entry): New structures.
2082 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2083 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2084 and estimated_growth.
2085 (edge_growth_cache_entry): New structure.
2086 (node_growth_cache, edge_growth_cache): New global vars.
2087 (estimate_growth): Turn into inline.
2088 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2089 initialize_growth_caches, free_growth_caches): Declare.
2090 (estimate_edge_growth): Rewrite.
2091 (estimate_edge_time): Implement as inline cache lookup.
2092 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2094 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2095 (NUM_CONDITIONS): New constant.
2096 (predicate_conditions): New enum.
2097 (IS_NOT_CONSTANT): New constant.
2098 (edge_removal_hook_holder): New var.
2099 (node_growth_cache, edge_growth_cache): New global vars.
2100 (true_predicate, single_cond_predicate, false_predicate,
2101 not_inlined_predicate, add_condition, add_clause, and_predicates,
2102 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2103 dump_clause, dump_predicate, account_size_time,
2104 evaulate_conditions_for_edge): New functions.
2105 (inline_summary_alloc): Move to heap.
2106 (inline_node_removal_hook): Clear condition and entry vectors.
2107 (inline_edge_removal_hook): New function.
2108 (initialize_growth_caches, free_growth_caches): New function.
2109 (dump_inline_summary): Update.
2110 (edge_execution_predicate): New function.
2111 (will_be_nonconstant_predicate): New function.
2112 (estimate_function_body_sizes): Compute BB and constantness predicates.
2113 (compute_inline_parameters): Do not clear estimated_growth.
2114 (estimate_edge_size_and_time): New function.
2115 (estimate_calls_size_and_time): New function.
2116 (estimate_callee_size_and_time): New function.
2117 (remap_predicate): New function.
2118 (inline_merge_summary): New function.
2119 (do_estimate_edge_time): New function based on...
2120 (estimate_edge_time): ... this one.
2121 (do_estimate_edge_growth): New function.
2122 (do_estimate_growth): New function based on....
2123 (estimate_growth): ... this one.
2124 (inline_analyze_function): Analyze after deciding on jump functions.
2125 (inline_read_section): New function.
2126 (inline_read_summary): Use it.
2127 (inline_write_summary): Write all the new data.
2128 * ipa-prop.c (ipa_get_param_decl_index): Export.
2129 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2130 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2132 (ipa_get_lattice): Move here from ipa-cp.c
2133 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2134 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2135 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2136 cgraph_edge_inlinable_p): Remove.
2137 * cgraphunit.c: Include ipainline.h
2138 (cgraph_process_new_functions): Update call of
2139 compute_inline_parameters.
2141 2011-04-22 Richard Guenther <rguenther@suse.de>
2143 * tree.c (build_int_cst): Properly create canonicalized integer
2145 (build_int_cst_type): Remove scary comments.
2147 2011-04-22 Xinliang David Li <davidxl@google.com>
2149 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2150 by default when -Wno-error is not specified.
2151 * opts-global.c (decode_options): Remove call to
2152 control_warning_options.
2154 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2156 PR tree-optimization/48717
2157 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2158 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2160 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2162 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2163 definition where used.
2165 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2168 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2169 TREE_STATIC variables declared inside of some OpenMP construct.
2171 2011-04-22 Martin Jambor <mjambor@suse.cz>
2174 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2176 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2179 * c-typeck.c (pop_init_level): Do not warn about initializing
2182 2011-04-22 Alan Modra <amodra@gmail.com>
2184 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2185 when returning call_cookie.
2186 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2187 pointers, to functions with no more vector args than the current
2188 function, and some non-local calls for ABI_V4.
2189 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2190 sibcall_nonlocal_aix64): Combine to ..
2191 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2192 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2193 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2194 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2195 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2197 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2198 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2199 sibcall_value_symbolic_64): Delete.
2201 2011-04-21 Xinliang David Li <davidxl@google.com>
2203 * cgraph.h: Remove pid.
2204 * cgraph.c: Remove pid.
2205 * value-prof.c (init_node_map): New function.
2206 (del_node_map): New function.
2207 (find_func_by_funcdef_no): New function.
2208 (gimple_ic_transform): Call new function.
2209 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2210 * function.c (get_last_funcdef_no): New function.
2211 * function.h (get_last_funcdef_no): New function.
2212 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2213 to libgcov function.
2214 (tree-profiling): Call node map init and delete function.
2216 2011-04-21 Ian Lance Taylor <iant@google.com>
2218 * godump.c (go_format_type): Use exported Go name for anonymous
2221 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2223 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2224 Call builtin_function_type_list instead of builtin_function_type.
2225 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2227 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2229 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2230 build_function_type_list instead of build_function_type.
2231 Delete variable `endlink'.
2233 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2235 * config/s390/s390.c (s390_init_builtins): Call
2236 build_function_type_list instead of build_function_type.
2238 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2240 * config/ia64/ia64.c (ia64_init_builtins): Call
2241 build_function_type_list instead of builtin_function_type.
2243 2011-04-21 Easwaran Raman <eraman@google.com>
2245 * cfgexpand.c (stack_var): Remove OFFSET...
2246 (add_stack_var): ...and its reference here...
2247 (expand_stack_vars): ...and here.
2248 (stack_var_cmp): Sort by descending order of size.
2249 (partition_stack_vars): Change heuristic.
2250 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2251 (dump_stack_var_partition): Add newline after each partition.
2253 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2254 Jeff Law <law@redhat.com>
2256 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2257 * gengtype.c (matching_file_name_substitute): Likewise.
2259 2011-04-21 Richard Guenther <rguenther@suse.de>
2262 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2264 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2266 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2268 2011-04-21 Richard Guenther <rguenther@suse.de>
2270 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2273 2011-04-21 Richard Guenther <rguenther@suse.de>
2275 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2276 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2277 Use DECL_P, not SSA_VAR_P.
2278 (ptr_derefs_may_alias_p): Likewise.
2279 (ptr_deref_may_alias_ref_p_1): Likewise.
2280 (decl_refs_may_alias_p): Likewise.
2281 (refs_may_alias_p_1): Likewise.
2282 (ref_maybe_used_by_call_p_1): Likewise.
2283 (call_may_clobber_ref_p_1): Likewise.
2284 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2285 are either MEM_REF or TARGET_MEM_REF.
2286 (indirect_refs_may_alias_p): Likewise.
2287 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2288 for MEM_EXPR of indirect calls.
2290 2011-04-21 Tristan Gingold <gingold@adacore.com>
2292 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2293 (dst_file_info_struct): Remove flen field.
2294 (lookup_filename): Remove code that set flen field.
2296 2011-04-21 Tristan Gingold <gingold@adacore.com>
2298 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2300 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2303 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2304 vec_extract and vec_concat for non-SSE4_1 targets.
2306 2011-04-21 Richard Guenther <rguenther@suse.de>
2308 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2311 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2313 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2315 (FILE): Don't undefine.
2317 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2319 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2321 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2323 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2324 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2325 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2327 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2328 definitions where used.
2329 * config/microblaze/microblaze.h (struct microblaze_args): Use
2330 rtx, not struct rtx_def *.
2331 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2333 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2334 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2335 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2336 not struct rtx_def *.
2337 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2339 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2341 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2343 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2345 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2346 operand_equal_p to compare DR_BASE_ADDRESSes.
2347 (vect_check_interleaving): Likewise.
2349 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2352 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2353 for all Neon struct constants.
2355 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2357 * target.def (legitimate_constant_p): New hook.
2358 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2359 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2360 * doc/tm.texi: Regenerate.
2361 * hooks.h (hook_bool_mode_rtx_true): Declare.
2362 * hooks.c (hook_bool_mode_rtx_true): Define.
2363 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2364 * calls.c (precompute_register_parameters): Replace uses of
2365 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2366 (emit_library_call_value_1): Likewise.
2367 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2368 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2369 * ira-costs.c (scan_one_insn): Likewise.
2370 * recog.c (general_operand, immediate_operand): Likewise.
2371 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2372 * reload1.c (init_eliminable_invariants): Likewise.
2374 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2376 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2377 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2379 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2380 * config/alpha/predicates.md (input_operand): Update call to
2381 alpha_legitimate_constant_p.
2383 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2384 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2385 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2386 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2387 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2388 (arm_legitimate_constant_p): New functions.
2389 (arm_cannot_force_const_mem): Make static.
2391 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2393 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2394 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2395 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2396 instead of bfin_legitimate_constant_p.
2397 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2398 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2400 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2402 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2404 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2405 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2406 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2407 (frv_legitimate_constant_p): Make static. Add a mode argument.
2409 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2410 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2411 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2413 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2414 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2415 * config/i386/i386.c (legitimate_constant_p): Rename to...
2416 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2418 (ix86_cannot_force_const_mem): Update accordingly.
2419 (ix86_legitimate_address_p): Likewise.
2420 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2421 * config/i386/i386.md: Update commentary.
2423 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2424 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2425 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2426 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2428 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2430 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2431 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2432 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2433 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2435 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2436 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2437 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2439 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2440 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2441 (m32r_legitimate_constant_p): New function.
2443 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2444 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2445 LEGITIMATE_CONSTANT_P.
2446 (LEGITIMATE_CONSTANT_P): Delete.
2447 * config/m68k/m68k.c (m68k_expand_prologue): Call
2448 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2449 (m68k_legitimate_constant_p): New function.
2450 * config/m68k/m68k.md: Update comments.
2452 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2453 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2454 (mcore_legitimate_constant_p): New function.
2456 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2457 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2458 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2459 Add a mode argument.
2460 (mep_legitimate_address): Update accordingly.
2461 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2463 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2465 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2466 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2467 static. Check OP's mode for VOIDmode.
2468 (microblaze_legitimate_constant_p): New function.
2469 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2471 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2472 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2473 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2474 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2475 * config/mips/predicates.md: Update comments.
2477 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2478 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2479 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2480 (mmix_legitimate_constant_p): Make static, return a bool, and take
2482 (mmix_print_operand_address): Update accordingly.
2484 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2486 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2487 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2488 static. Add a mode argument.
2489 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2491 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2493 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2494 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2495 (pa_legitimate_constant_p): New function.
2497 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2499 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2500 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2501 (pdp11_legitimate_constant_p): New function.
2503 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2504 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2505 (rs6000_legitimate_constant_p): New function.
2507 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2508 (rx_legitimate_constant_p): ...this.
2509 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2510 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2511 (rx_legitimate_constant_p): ...this.
2512 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2513 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2515 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2516 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2517 * config/s390/s390.c (legitimate_constant_p): Rename to...
2518 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2519 and add a mode argument.
2520 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2522 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2524 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2525 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2526 (sh_legitimate_constant_p): New function.
2528 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2529 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2530 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2531 (legitimate_constant_p): Rename to...
2532 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2534 (constant_address_p): Update accordingly.
2536 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2537 argument and return a bool.
2538 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2539 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2540 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2541 (spu_rtx_costs): Update accordingly.
2542 * config/spu/predicates.md (vec_imm_operand): Likewise.
2544 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2546 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2547 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2548 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2550 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2551 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2552 * config/vax/vax.c (legitimate_constant_p): Likewise.
2554 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2555 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2556 (xtensa_legitimate_constant_p): New function.
2558 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2560 * target.def (cannot_force_const_mem): Add a mode argument.
2561 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2562 * doc/tm.texi: Regenerate.
2563 * hooks.h (hook_bool_mode_rtx_false): Declare.
2564 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2565 (hook_bool_mode_const_rtx_true): Likewise.
2566 (hook_bool_mode_rtx_false): New function.
2567 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2568 to be non-VOID. Update call to cannot_force_const_mem.
2569 (find_reloads): Update accordingly.
2570 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2571 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2573 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2574 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2575 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2576 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2577 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2578 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2579 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2580 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2581 (m68k_cannot_force_const_mem): ...this new function.
2582 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2584 (mips_const_insns, mips_legitimize_const_move): Update calls.
2585 (mips_secondary_reload_class): Likewise.
2586 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2587 (pa_cannot_force_const_mem): ...this new function.
2588 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2589 (rs6000_cannot_force_const_mem): ...this new function.
2590 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2592 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2593 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2595 (xtensa_cannot_force_const_mem): ...this new function.
2597 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2599 * config/mips/mips.c (mips16_build_function_stub): Call
2600 build_function_type_list instead of build_function_type.
2601 (mips16_build_call_stub): Likewise.
2603 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2605 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2606 instead of build_function_type.
2608 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2610 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2611 instead of build_function_type.
2613 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2616 * config/i386/i386.md (insv): Change operand 0 constraint to
2617 "register_operand". Change operand 1 and 2 constraint to
2618 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2619 * config/i386/sse.md (sse4_1_pinsrb): Export.
2620 (sse2_pinsrw): Ditto.
2621 (sse4_1_pinsrd): Ditto.
2622 (sse4_1_pinsrq): Ditto.
2623 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2624 * config/i386/i386.c (ix86_expand_pinsr): New.
2626 2011-04-20 Easwaran Raman <eraman@google.com>
2628 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2629 containing union type only with -fstrict-aliasing.
2631 2011-04-20 Jim Meyering <meyering@redhat.com>
2633 Remove useless if-before-free tests.
2634 * calls.c (expand_call, save_area): Likewise.
2635 * cfgcleanup.c (try_forward_edges): Likewise.
2636 * collect2.c (collect_execute): Likewise.
2637 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2638 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2639 * coverage.c (coverage_checksum_string): Likewise.
2640 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2641 * cselib.c (cselib_init): Likewise.
2642 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2643 (df_set_clean_cfg): Likewise.
2644 * function.c (free_after_compilation): Likewise.
2645 * gcc.c (do_spec_1, main): Likewise.
2646 * gcov.c (create_file_names): Likewise.
2647 * gensupport.c (identify_predicable_attribute): Likewise.
2648 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2649 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2650 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2651 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2652 * ipa-pure-const.c (local_pure_const): Likewise.
2653 * ipa-reference.c (propagate): Likewise.
2654 * ira-costs.c (free_ira_costs): Likewise.
2655 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2656 * matrix-reorg.c (mat_free): Likewise.
2657 * prefix.c (get_key_value): Likewise.
2658 * profile.c (compute_value_histograms): Likewise.
2659 * reload1.c (free_reg_equiv): Likewise.
2660 * sched-deps.c (free_deps): Likewise.
2661 * sel-sched-ir.c (fence_clear): Likewise.
2662 * sese.c (set_rename, if_region_set_false_region): Likewise.
2663 * tree-data-ref.c (free_rdg): Likewise.
2664 * tree-eh.c (lower_try_finally): Likewise.
2665 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2666 * tree-ssa-live.c (delete_var_map): Likewise.
2667 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2668 * tree-ssa-pre.c (phi_trans_add): Likewise.
2670 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2672 PR tree-optimization/48611
2673 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2674 beyond ERT_MUST_NOT_THROW region.
2676 2011-04-20 Catherine Moore <clm@codesourcery.com>
2678 * config/mips/mips.opt (mfix-24k): New.
2679 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2680 * config/mips/mips.md (length): Increase by 4 for stores if
2682 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2683 all noreorder if fixing 24K errata.
2684 * doc/invoke.texi: Document mfix-24k.
2686 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2688 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2689 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2691 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2693 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2694 (const_ok_for_op): ... to here.
2696 2011-04-20 Kai Tietz <ktietz@redhat.com>
2698 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2699 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2701 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2703 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2705 2011-04-20 Richard Guenther <rguenther@suse.de>
2707 PR tree-optimization/47892
2708 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2711 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2713 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2715 2011-04-20 Tristan Gingold <gingold@adacore.com>
2717 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2719 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2723 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2724 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2725 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2726 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2727 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2729 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2732 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2733 (avr_asm_named_section, avr_asm_output_aligned_common,
2734 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2735 New functions to update...
2736 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2737 (avr_asm_init_sections): Overwrite section callbacks for
2738 data_section, bss_section.
2739 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2741 (avr_file_end): ...here.
2743 2011-04-20 Richard Guenther <rguenther@suse.de>
2746 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2747 objects and types here. Adjust for their offset before comparing.
2749 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2751 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2754 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2756 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2757 (GIMPLE_H): Include $(INTERNAL_FN_H).
2758 (OBJS-common): Add internal-fn.o.
2759 (internal-fn.o): New rule.
2760 * internal-fn.def: New file.
2761 * internal-fn.h: Likewise.
2762 * internal-fn.c: Likewise.
2763 * gimple.h: Include internal-fn.h.
2764 (GF_CALL_INTERNAL): New gf_mask.
2765 (gimple_statement_call): Put fntype into a union with a new
2767 (gimple_build_call_internal): Declare.
2768 (gimple_build_call_internal_vec): Likewise.
2769 (gimple_call_same_target_p): Likewise.
2770 (gimple_call_internal_p): New function.
2771 (gimple_call_internal_fn): Likewise.
2772 (gimple_call_fntype): Return null for internal calls.
2773 (gimple_call_set_fntype): Assert that the function is not internal.
2774 (gimple_call_set_fn): Likewise.
2775 (gimple_call_set_fndecl): Likewise.
2776 (gimple_call_set_internal_fn): New function.
2777 (gimple_call_addr_fndecl): Handle null functions.
2778 (gimple_call_return_type): Likewise null types.
2779 * gimple.c (gimple_build_call_internal_1): New function.
2780 (gimple_build_call_internal): Likewise.
2781 (gimple_build_call_internal_vec): Likewise.
2782 (gimple_call_same_target_p): Likewise.
2783 (gimple_call_flags): Handle calls to internal functions.
2784 (gimple_call_fnspec): New function.
2785 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2786 (gimple_has_side_effects): Handle null functions.
2787 (gimple_rhs_has_side_effects): Likewise.
2788 (gimple_call_copy_skip_args): Handle calls to internal functions.
2789 * cfgexpand.c (expand_call_stmt): Likewise.
2790 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2791 * gimple-fold.c (gimple_fold_call): Handle null functions.
2792 (gimple_fold_stmt_to_constant_1): Don't fold
2793 calls to internal functions.
2794 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2796 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2797 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2798 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2799 (do_warn_unused_result): Likewise.
2800 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2801 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2802 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2803 the target of a call.
2804 (initialize_hash_element): Update accordingly.
2805 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2806 (iterative_hash_hashable_expr): Handle calls to internal functions.
2807 (print_expr_hash_elt): Likewise.
2808 * tree-ssa-pre.c (can_value_number_call): Likewise.
2809 (eliminate): Handle null functions.
2810 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2811 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2812 (find_func_aliases): Likewise.
2813 * value-prof.c (gimple_ic_transform): Likewise.
2814 (gimple_indirect_call_to_profile): Likewise.
2815 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2816 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2818 2011-04-19 Jan Hubicka <jh@suse.cz>
2820 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2821 * ipa-inline.c (inline_small_functions): Compute summaries first,
2822 populate heap later.
2824 2011-04-19 Jan Hubicka <jh@suse.cz>
2826 * cgraph.h (save_inline_function_body): Remove.
2827 * ipa-inline-transform.c: New file, broke out of...
2828 * ipa-inline.c: ... this one; Update toplevel comment.
2829 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2831 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2832 (cgraph_mark_inline_edge): Rename to inline_call; move to
2833 ipa-inline-transform.c.
2834 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2835 move to ipa-inline-transform.c
2836 (recursive_inlining, inline_small_functions, flatten_function,
2837 ipa_inline, inline_always_inline_functions,
2838 early_inline_small_functions): Update.
2839 (inline_transform): Move to ipa-inline-transform.c.
2840 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2842 * Makefile.in (ipa-inline-transform.o): New file.
2843 * cgraphunit.c (save_inline_function_body): Move to
2844 ipa-inline-transform.c
2846 2011-04-19 DJ Delorie <dj@redhat.com>
2848 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2849 registers if we already know there aren't any.
2850 (m32c_emit_epilogue): Don't emit a barrier here.
2851 (m32c_emit_eh_epilogue): Likewise.
2852 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2853 operands at expand time.
2854 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2856 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2857 duplicates. Provide aliases instead.
2858 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2859 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2862 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2864 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2865 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2866 (general_or_i64_p, sparc_register_move_cost): New function.
2868 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2870 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2871 Add lynx, mipssde. Sort table.
2873 2011-04-19 Xinliang David Li <davidxl@google.com>
2875 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2878 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2881 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2882 is a SUBREG with non-MODE_INT mode inside of it.
2884 2011-04-19 Martin Jambor <mjambor@suse.cz>
2886 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2887 also according to actual contants.
2888 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2889 (gimple_fold_call): Use it.
2890 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2892 2011-04-19 Martin Jambor <mjambor@suse.cz>
2894 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2895 non-pointer assignments.
2897 2011-04-19 Martin Jambor <mjambor@suse.cz>
2899 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2900 account anc_offset and otr_type from the indirect edge info.
2901 * ipa-prop.c (get_ancestor_addr_info): New function.
2902 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2903 get_ancestor_addr_info, call it.
2904 (ipa_note_param_call): Do not initialize information about polymorphic
2905 calls, return the indirect call graph edge. Remove the last
2906 parameter, adjust all callers.
2907 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2908 parameters. Initialize polymorphic information in the indirect edge.
2910 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2913 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2914 the types if they have different enumeration identifiers.
2916 2011-04-19 Jan Hubicka <jh@suse.cz>
2918 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2919 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2920 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2921 (optimize_function_for_size_p) ... here.
2923 2011-04-19 Richard Guenther <rguenther@suse.de>
2926 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2929 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2931 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2932 if DECL_NO_INLINE_WARNING_P is set on the function.
2934 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2937 * reload1.c (inc_for_reload): Return void. All callers changed.
2938 (emit_input_reload_insns): Don't try to delete previous output
2939 reloads to a register, or record spill_reg_store for autoincs.
2941 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2943 * gengtype.h: Updated copyright year.
2944 (struct input_file_st): Add inpisplugin field.
2945 (type_fileloc): New function.
2947 (write_typed_struct_alloc_def): Add gcc_assert.
2948 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2949 (write_typed_alloc_defns): Don't output for plugin files.
2950 (input_file_by_name): Clear inpisplugin field.
2951 (main): Set inpisplugin field for plugin files.
2953 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2955 * gengtype-state.c (string_eq): New.
2956 (read_state): Use string_eq instead of strcmp when creating the
2959 2011-04-19 Wei Guozhi <carrot@google.com>
2962 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2963 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2965 * config/arm/constraints.md (Uu): New constraint.
2966 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2968 2011-04-19 Tristan Gingold <gingold@adacore.com>
2970 * config.gcc (-*-*-*vms): Added.
2971 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2973 * config/vms/vms-ld.c: New file.
2974 * config/vms/vms-ar.c: New file.
2975 * config/vms/t-vmsnative: New file.
2977 2011-04-18 Xinliang David Li <davidxl@google.com>
2979 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2981 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2984 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2985 if TREE_TYPE (v) is non-NULL.
2987 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2988 gimple_get_virt_mehtod_for_binfo.
2989 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2990 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2992 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2994 2011-04-18 Michael Matz <matz@suse.de>
2995 Steve Ellcey <sje@cup.hp.com>
2997 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2998 use its mode as source mode if it isn't VOIDmode.
3000 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3002 * doc/passes.texi: Fill crossref nodes.
3004 2011-04-18 Jim Meyering <meyering@redhat.com>
3006 Fix doubled-word typos in comments and strings
3007 * config/alpha/vms-unwind.h: s/for for/for/
3008 * config/arm/unwind-arm.h: Likewise.
3009 * config/microblaze/microblaze.c: Likewise.
3010 * config/sh/constraints.md: s/in in/in/
3011 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3013 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3015 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3016 (AVX_FLOAT_MODE_P): Ditto.
3017 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3018 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3019 (AVX_VEC_FLOAT_MODE_P): Ditto.
3020 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3021 (UNSPEC_MASKSTORE): Ditto.
3022 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3023 Merge from <sse>_movmsk<ssemodesuffix> and
3024 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3025 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3027 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3028 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3029 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3031 2011-04-18 Jan Hubicka <jh@suse.cz>
3033 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3035 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3036 (want_inline_function_called_once_p): Break out the logic from
3038 (edge_badness): Ensure that profile is not misupdated.
3039 (lookup_recursive_calls): Prioritize by call frequencies.
3040 (inline_small_functions): Move program size estimates here;
3041 actually process whole queue even when unit growth has been
3042 met. (to properly compute inline_failed reasons and for the
3043 case unit size decrease.) Revisit comments on recursive inlining.
3044 (ipa_inline): Remove unit summary code; first inline hot calls
3045 of functions called once, cold calls next.
3046 (order, nnodes): Remove unused variables.
3047 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3048 (GTFILES): Remove ipa-inline.c
3049 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3051 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3053 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3055 2011-04-18 Jie Zhang <jie@codesourcery.com>
3056 Richard Earnshaw <rearnsha@arm.com>
3058 * arm.c (neon_builtin_type_bits): Remove.
3059 (typedef enum neon_builtin_mode): New.
3060 (T_MAX): Don't define.
3061 (typedef enum neon_builtin_datum): Remove bits, codes[],
3062 num_vars and base_fcode. Add mode, code and fcode.
3063 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3064 VAR10): Change accordingly.
3065 (neon_builtin_data[]): Change accordingly
3066 (arm_init_neon_builtins): Change accordingly.
3067 (neon_builtin_compare): Remove.
3068 (locate_neon_builtin_icode): Remove.
3069 (arm_expand_neon_builtin): Change accordingly.
3071 * arm.h (enum arm_builtins): Move to ...
3072 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3074 * arm.c (arm_builtin_decl): Declare.
3075 (TARGET_BUILTIN_DECL): Define.
3076 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3077 (arm_builtin_decls[]): New.
3078 (arm_init_neon_builtins): Store builtin declarations in
3079 arm_builtin_decls[].
3080 (arm_init_tls_builtins): Likewise.
3081 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3082 (arm_builtin_decl): New.
3084 2011-04-18 Richard Guenther <rguenther@suse.de>
3086 * tree.c (upper_bound_in_type): Build properly canonicalized
3088 (lower_bound_in_type): Likewise.
3090 2011-04-18 Richard Guenther <rguenther@suse.de>
3092 * gimple.h (gimple_call_addr_fndecl): New function.
3093 (gimple_call_fndecl): Use it.
3094 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3096 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3097 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3099 2011-04-18 Richard Guenther <rguenther@suse.de>
3102 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3104 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3107 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3108 DECL_IN_CONSTANT_POOL without RTL.
3110 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3111 Ira Rosen <ira.rosen@linaro.org>
3114 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3115 to match neon_vzip/vuzp/vtrn_internal.
3116 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3117 outputs explicitly dependent on both inputs.
3118 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3120 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3122 PR tree-optimization/48616
3123 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3124 whether the shift is by scalar or vector based on whether all SLP
3125 scalar stmts have the same rhs.
3127 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3129 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3132 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3134 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3137 2011-04-17 Jan Hubicka <jh@suse.cz>
3139 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3140 * cgrpahunit.c (cgraph_finalize_function): Do not set
3141 finalized_by_frontend.
3142 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3143 finalized_by_frontend.
3145 2011-04-17 Jan Hubicka <jh@suse.cz>
3147 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3148 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3149 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3150 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3152 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3154 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3156 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3159 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3160 is non-null before accessing it.
3161 (input_cgraph): Remove trailing spaces.
3163 2011-04-17 Revital Eres <revital.eres@linaro.org>
3165 * params.def (sms-min-sc): New param flag.
3166 * modulo-sched.c (sms_schedule): Use it.
3167 * doc/invoke.texi (sms-min-sc): Document it.
3169 2011-04-17 Jan Hubicka <jh@suse.cz>
3171 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3172 present, also set gimple_call_set_cannot_inline.
3173 * ipa-inline.c: Update toplevel comment.
3175 (cgraph_clone_inlined_nodes): Fix linebreaks.
3176 (cgraph_check_inline_limits): Restructure to ...
3177 (caller_growth_limits): ... this one; be more tolerant
3178 on growth in nested inline chains; add explanatory comment;
3179 fix stack accounting thinko introduced by previous patch.
3180 (cgraph_default_inline_p): Remove.
3181 (report_inline_failed_reason): New function.
3182 (can_inline_edge_p): New function.
3183 (can_early_inline_edge_p): New function.
3184 (leaf_node_p): Move upwards in file.
3185 (want_early_inline_function_p): New function.
3186 (want_inline_small_function_p): New function.
3187 (want_inline_self_recursive_call_p): New function.
3188 (cgraph_edge_badness): Rename to ...
3189 (edge_badness) ... this one; fix linebreaks.
3190 (update_edge_key): Update call of edge_baddness; add
3191 detailed dump about queue updates.
3192 (update_caller_keys): Use can_inline_edge_p and
3193 want_inline_small_function_p.
3194 (cgraph_decide_recursive_inlining): Rename to...
3195 (recursive_inlining): Use can_inline_edge_p and
3196 want_inline_self_recursive_call_p; simplify and remove no longer
3198 (cgraph_set_inline_failed): Remove.
3199 (add_new_edges_to_heap): Use can_inline_edge_p and
3200 want_inline_small_function_p.
3201 (cgraph_decide_inlining_of_small_functions): Rename to ...
3202 (inline_small_functions): ... this one; cleanup; use
3203 can/want predicates; cleanup debug ouput; work edges till fibheap
3204 is exhausted and do not stop once unit growth is reached; remove
3205 later loop processing remaining edges.
3206 (cgraph_flatten): Rename to ...
3207 (flatten_function): ... this one; use can_inline_edge_p
3208 and can_early_inline_edge_p predicates.
3209 (cgraph_decide_inlining): Rename to ...
3210 (ipa_inline): ... this one; remove unreachable nodes before
3211 inlining functions called once; simplify the pass.
3212 (cgraph_perform_always_inlining): Rename to ...
3213 (inline_always_inline_functions): ... this one; use
3214 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3215 (cgraph_decide_inlining_incrementally): Rename to ...
3216 (early_inline_small_functions): ... this one; simplify
3217 using new predicates; cleanup; make dumps prettier.
3218 (cgraph_early_inlining): Rename to ...
3219 (early_inliner): newer inline regular functions into always-inlines;
3220 fix updating of call stmt summaries.
3221 (pass_early_inline): Update for new names.
3222 (inline_transform): Fix formating.
3223 (gate_cgraph_decide_inlining): Rename to ...
3224 (pass_ipa_inline): ... this one.
3225 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3226 * ipa-inline-analysis.c (dump_inline_summary): Update.
3227 (compute_inline_parameters): Do not compute disregard_inline_limits;
3228 look for mismatching arguments.
3229 (estimate_growth): Fix handlig of non-trivial self recursion.
3230 (inline_read_summary): Do not read info->disregard_inline_limits.
3231 (inline_write_summary): Do not write info->disregard_inline_limits.
3232 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3233 and move all checks into can_inline_edge_p predicate; re-enable code
3234 comparing optimization levels.
3235 (expand_call_inline): Do not test inline_forbidden_into_p.
3236 * Makefile.in (ipa-inline.o): Update arguments.
3238 2011-04-17 Revital Eres <revital.eres@linaro.org>
3240 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3242 2011-04-17 Revital Eres <revital.eres@linaro.org>
3244 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3246 2011-04-17 Michael Matz <matz@suse.de>
3248 PR tree-optimization/48622
3250 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3251 in same order as they're written.
3253 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3255 * config/pa/predicates.md: Reorganize and simplify predicates.
3256 Eliminate duplicate code checks.
3257 (arith_operand): Rename to arith14_operand
3258 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3259 * config/pa/pa.md: Use renamed operands.
3260 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3261 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3262 arith11_operand, adddi3_operand, indexed_memory_operand,
3263 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3264 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3265 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3266 move_dest_operand, move_src_operand, prefetch_cc_operand,
3267 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3268 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3269 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3270 div_operand, int5_operand, movb_comparison_operator,
3271 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3272 arith_double_operand, ireg_operand, lhs_lshift_operand,
3273 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3274 integer_store_memory_operand): Likewise.
3275 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3276 (integer_store_memory_operand, read_only_operand,
3277 function_label_operand, borx_reg_operand,
3278 non_hard_reg_operand): Likewise.
3279 (eq_neq_comparison_operator): Delete unused operator.
3280 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3281 function_label_operand.
3282 (emit_move_sequence): Likewise.
3284 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3286 * config/i386/sse.md (sseunpackmode): New mode attribute.
3287 (ssepackmode): Ditto.
3288 (vec_pack_trunc_<mode>): Macroize expander from
3289 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3290 (vec_unpacks_lo_<mode>): Macroize expander from
3291 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3292 (vec_unpacks_hi_<mode>): Macroize expander from
3293 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3294 (vec_unpacku_lo_<mode>): Macroize expander from
3295 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3296 (vec_unpacku_hi_<mode>): Macroize expander from
3297 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3298 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3299 ix86_expand_sse4_unpack.
3300 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3302 2011-04-16 Jan Hubicka <jh@suse.cz>
3304 * cgraphbuild.c: Include ipa-inline.h.
3305 (reset_inline_failed): Use initialize_inline_failed.
3306 * cgraph.c: Include ipa-inline.h.
3307 (cgraph_create_node_1): Do not initialize estimated_growth.
3308 (initialize_inline_failed): More to ipa-inline-analysis.c
3309 (dump_cgraph_node): Do not dump inline flags.
3310 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3311 and disregard_inline_limits flags.
3312 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3313 time, size, estimated_growth.
3314 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3316 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3317 DECL_DISREGARD_INLINE_LIMITS.
3318 (cgraph_analyze_function): Do not initialize
3319 node->local.disregard_inline_limits.
3320 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3321 inlinable, versionable and disregard_inline_limits.
3322 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3323 cgraph_check_inline_limits, cgraph_default_inline_p,
3324 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3325 add_new_edges_to_heap): Update.
3326 (cgraph_decide_inlining_of_small_function): Update; set
3327 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3328 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3329 cgraph_decide_inlining_incrementally): Update.
3330 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3331 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3332 time, size and estimated_growth parameters.
3333 (estimate_edge_growth): Update.
3334 (initialize_inline_failed): Declare.
3335 * ipa-split.c: Include ipa-inline.h
3336 (execute_split_functions): Update.
3337 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3338 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3339 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3340 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3341 estimated_growth to INT_MIN.
3342 (inline_node_duplication_hook): Likewise.
3343 (dump_inline_summary): Dump new fields.
3344 (compute_inline_parameters): Update.
3345 (estimate_edge_time, estimate_time_after_inlining,
3346 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3347 inline_write_summary):
3348 (initialize_inline_failed): Move here from cgraph.c.
3349 * tree-sra.c: Include ipa-inline.h.
3350 (ipa_sra_preliminary_function_checks): Update.
3351 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3354 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3356 * config/i386/sse.md (V16): New mode iterator.
3358 (AVXMODEQI, AVXMODEDI): Remove.
3359 (sse2, sse3): New mode attribute.
3360 (mov<mode>): Use V16 mode iterator.
3361 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3362 (push<mode>1): Use V16 mode iterator.
3363 (movmisalign<mode>): Ditto.
3364 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3365 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3366 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3367 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3368 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3369 avx_movdqu<avxmodesuffix>.
3370 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3371 *avx_movdqu<avxmodesuffix>.
3372 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3373 avx_lddqu<avxmodesuffix>.
3374 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3375 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3376 avx_movnt<AVXMODEDI:mode>.
3377 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3378 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3380 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3383 * haifa-sched.c (prune_ready_list, schedule_block): Use
3384 sched_pressure_p rather than flag_sched_pressure.
3386 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3388 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3389 cgraph_get_node instead of cgraph_get_create_node.
3391 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3393 * cfgexpand.c (expand_debug_expr): Use
3394 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3396 2011-04-15 Michael Matz <matz@suse.de>
3398 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3399 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3400 * function.c (gimplify_parameters): Ditto.
3401 * gimplify.c (gimplify_vla_decl): Ditto.
3403 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3404 (gimple_call_set_alloca_for_var): New inline function.
3405 (gimple_call_alloca_for_var_p): Ditto.
3406 * gimple.c (gimple_build_call_from_tree): Remember
3407 CALL_ALLOCA_FOR_VAR_P state.
3408 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3410 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3411 calls if they were for VLA objects.
3413 2011-04-15 Martin Jambor <mjambor@suse.cz>
3415 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3418 2011-04-15 Martin Jambor <mjambor@suse.cz>
3421 * tree-emutls.c (lower_emutls_function_body): Call
3422 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3425 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3427 * c-decl.c (detect_field_duplicates): Call
3428 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3430 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3432 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3433 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3434 * ipa-pure-const.c (check_stmt): Call it.
3435 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3437 2011-04-15 Richard Guenther <rguenther@suse.de>
3439 PR tree-optimization/48290
3440 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3441 Properly decide inhibiting propagation based on the valueized
3442 operand. Do loop-closed SSA form preserving here ...
3443 (init_copy_prop): ... not here.
3445 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3448 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3449 (*ieee_smax<mode>3): Likewise.
3451 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3453 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3454 Replace match_operand with match_dup for the third operand in
3457 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3459 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3460 to track processing of conditionals. Update all callers.
3461 (try_combine, simplify_if_then_else): Update.
3463 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3465 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3468 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3470 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3471 instead of match_operand for operand 3.
3473 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3475 * recog.h (insn_operand_data): Add an "allows_mem" field.
3476 * genoutput.c (output_operand_data): Initialize it.
3477 * optabs.c (maybe_legitimize_operand_same_code): New function.
3478 (maybe_legitimize_operand): Use it when matching the original
3481 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3483 * gimplify.c: Fix issues in comments throughout.
3484 (voidify_wrapper_expr): Fix long line.
3485 (build_stack_save_restore): Likewise.
3486 (gimplify_loop_expr): Likewise.
3487 (gimplify_compound_lval): Likewise.
3488 (gimplify_init_ctor_eval): Likewise.
3489 (gimplify_modify_expr_rhs): Likewise.
3490 (omp_notice_threadprivate_variable): Likewise.
3492 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3494 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3495 original one if this is not a builtin function.
3497 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3500 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3501 offset it as needed based on top 2 bits in operands[3], change
3502 MEM mode to SFmode and mask those 2 bits away from operands[3].
3504 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3506 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3507 change from objc_declare_protocols() to objc_declare_protocol().
3509 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3511 * config/i386/sse.md (sse4_1): New mode attribute.
3512 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3513 avx_blend<ssemodesuffix><avxmodesuffix> and
3514 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3515 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3516 avx_blendv<ssemodesuffix><avxmodesuffix> and
3517 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3518 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3519 avx_dp<ssemodesuffix><avxmodesuffix> and
3520 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3521 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3522 (sse4_1_packusdw): Merge with *avx_packusdw.
3523 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3524 (sse4_1_pblendw): Merge with *avx_pblendw.
3525 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3526 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3527 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3529 (sse4_1_round<ssescalarmodesuffix>): Merge with
3530 *avx_round<ssescalarmodesuffix>.
3531 (aesenc): Merge with *avx_aesenc.
3532 (aesenclast): Merge with *avx_aesenclast.
3533 (aesdec): Merge with *avx_aesdec.
3534 (aesdeclast): Merge with *avx_aesdeclast.
3535 (pclmulqdq): Merge with *pclmulqdq.
3536 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3538 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3540 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3543 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3544 (align_local_variable): This. Update DECL_ALIGN.
3545 (add_stack_var): Updated.
3546 (expand_one_stack_var): Likewise.
3548 2011-04-14 Richard Guenther <rguenther@suse.de>
3550 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3552 (dse_initialize_block_local_data, dse_leave_block,
3553 record_voperand_set, get_stmt_uid): Likewise.
3554 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3555 (dse_optimize_stmt): Remove voperand set handling code.
3556 Simplify and improve to handle any kind of killing stmt.
3557 (dse_record_phi): Remove.
3558 (dse_enter_block): Simplify.
3559 (tree_ssa_dse): Likewise.
3560 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3562 2011-04-14 Jan Hubicka <jh@suse.cz>
3564 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3565 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3566 (cgraph_local_info): Remove inline_summary.
3567 * ipa-cp.c: Include ipa-inline.h.
3568 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3569 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3571 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3572 (input_overwrite_node): Do not set inline summary.
3573 (input_node): Do not stream inline summary.
3574 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3575 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3576 growth; we do not have inline parameters computed for that anyway.
3577 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3578 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3579 (inline_summary_t): New type and VECtor.
3580 (debug_inline_summary, dump_inline_summaries): Declare.
3581 (inline_summary): Use VOCtor.
3582 (estimate_edge_growth): Kill hack computing call stmt size directly.
3583 * lto-section-in.c (lto_section_name): Add inline section.
3584 * ipa-inline-analysis.c: Include lto-streamer.h
3585 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3586 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3587 (inline_summary_vec): Define.
3588 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3589 dump_inline_summaries): New functions.
3590 (estimate_function_body_sizes): Properly compute size/time of outgoing
3592 (compute_inline_parameters): Alloc inline_summary; do not compute
3593 size/time of incomming calls.
3594 (estimate_edge_time): Avoid missing time summary hack.
3595 (inline_read_summary): Read inline summary info.
3596 (inline_write_summary): Write inline summary info.
3597 (inline_free_summary): Free all hooks and inline summary vector.
3598 * lto-streamer.h: Add LTO_section_inline_summary section.
3599 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3600 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3602 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3604 * tree-vectorizer.h (vect_strided_store_supported): Add a
3605 HOST_WIDE_INT argument.
3606 (vect_strided_load_supported): Likewise.
3607 (vect_permute_store_chain): Return void.
3608 (vect_transform_strided_load): Likewise.
3609 (vect_permute_load_chain): Delete.
3610 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3611 count argument. Check that the count is a power of two.
3612 (vect_strided_load_supported): Likewise.
3613 (vect_permute_store_chain): Return void. Update after above changes.
3614 Assert that the access is supported.
3615 (vect_permute_load_chain): Likewise.
3616 (vect_transform_strided_load): Return void.
3617 * tree-vect-stmts.c (vectorizable_store): Update calls after
3618 above interface changes.
3619 (vectorizable_load): Likewise.
3620 (vect_analyze_stmt): Don't check for strided powers of two here.
3622 2011-04-14 Richard Guenther <rguenther@suse.de>
3624 PR tree-optimization/48590
3625 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3626 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3627 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3628 BUILT_IN_STACK_SAVE.
3629 * tree-ssa-dce.c (propagate_necessity): Handle
3630 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3632 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3634 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3637 2011-04-14 Richard Guenther <rguenther@suse.de>
3639 * tree.h (get_object_alignment_1): Declare.
3640 * builtins.c (get_object_alignment_1): Split out worker from ...
3641 (get_object_alignment): ... here.
3642 * fold-const.c (get_pointer_modulus_and_residue): Use
3643 get_object_alignment_1.
3645 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3647 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3649 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3650 parameter. Generalise code to handle arrays as well as vectors.
3651 (vect_setup_realignment): Update accordingly.
3652 * tree-vect-stmts.c (vectorizable_store): Likewise.
3653 (vectorizable_load): Likewise.
3655 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3657 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3658 within the per-copy loop.
3660 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3662 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3665 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3667 * doc/options.texi (Negative): Explicitly mention that the
3668 Negative chain must be circular.
3670 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3672 * function.h (block_chainon): Declare.
3673 * function.c (block_chainon): Define.
3675 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3676 Eric Weddington <eric.weddington@atmel.com>
3677 Georg-Johann Lay <avr@gjlay.de>
3679 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3681 (avr_init_builtins, avr_expand_builtin,
3682 avr_expand_delay_cycles, avr_expand_unop_builtin,
3683 avr_expand_binop_builtin ): New functions.
3684 (avr_builtin_id): New enum
3685 (struct avr_builtin_description): New struct
3686 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3687 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3689 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3690 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3691 UNSPECV_DELAY_CYCLES): new enumeration values
3692 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3693 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3694 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3695 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3696 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3697 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3698 "fmulsu"): New insns
3700 * config/avr/avr-c.c: fix line endings
3701 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3702 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3703 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3704 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3705 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3707 * doc/extend.texi (AVR Built-in Functions): New node
3708 (Target Builtins): Add documentation of AVR
3711 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3714 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3715 alone. Error if non-const data has attribute progmem.
3717 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3719 * tree.h (struct tree_constructor): Include tree_typed instead of
3721 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3722 TS_TYPED instead of TS_COMMON.
3724 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3726 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3727 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3728 (sse2_psadbw): Merge with *avx_psadbw.
3729 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3730 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3731 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3732 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3733 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3734 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3735 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3736 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3737 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3738 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3739 (ssse3_palignrti): Merge with *avx_palignrti.
3741 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3743 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3744 * tree-ssanames.c (fini_ssanames): VEC_free it.
3745 (make_ssa_name_fn): Update for VECness of free_ssanames.
3746 (release_ssa_name, release_dead_ssa_names): Likewise.
3747 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3749 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3750 TS_TYPED instead of TS_COMMON.
3752 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3754 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3755 statistics_counter_event.
3756 * tree-ssa-copyrename.c (stats): Define.
3757 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3758 statistics_counter_event.
3759 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3760 (bswap_stats, widen_mul_stats): Define.
3761 (insert_reciprocals): Increment rdivs_inserted.
3762 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3763 rfuncs_inserted. Add calls to statistics_counter_event.
3764 (execute_cse_sincos_1): Increment inserted.
3765 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3766 statistics_counter_event.
3767 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3768 of bswap_stats. Add calls to statistics_counter_event.
3769 (convert_mult_to_widen): Increment widen_mults_inserted.
3770 (convert_plusminus_to_widen): Increment maccs_inserted.
3771 (convert_mult_to_fma): Increment fmas_inserted.
3772 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3773 calls to statistics_counter_event.
3775 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3777 PR rtl-optimization/48455
3778 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3779 `temp_costs->mem_cost'.
3781 2011-04-13 Jan Hubicka <jh@suse.cz>
3783 * ipa-inline.h: New file.
3784 * ipa-inline-analysis.c: New file. Broken out of ...
3785 * ipa-inline.c: ... this file; update toplevel comment;
3786 include ipa-inline.h
3787 (inline_summary): Move to ipa-inline.h
3788 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3789 ipa-inline-analysis.c.
3790 (cgraph_estimate_time_after_inlining): Rename to
3791 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3792 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3793 to estimate_edge_growth.
3794 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3795 rename to estimate_size_after_inlining.
3796 (cgraph_mark_inline_edge): Update for new naming convention.
3797 (cgraph_check_inline_limits): Likewise.
3798 (cgraph_edge_badness): Likewise.
3799 (cgraph_decide_recursive_inlining): Likewise.
3800 (cgraph_decide_inlining_of_small_functions): Likewise.
3801 (cgraph_decide_inlining_incrementally): Likewise.
3802 (cgraph_estimate_growth): Rename to estimate_growth; move to
3803 ipa-inline-analysis.c.
3804 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3805 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3806 (compute_inline_parameters): Likewise.
3807 (compute_inline_parameters_for_current): Likewise.
3808 (pass_inline_parameters): Likewise.
3809 (inline_indirect_intraprocedural_analysis): Likewise.
3810 (analyze_function): Rename to inline_analyze_function; likewise.
3811 (add_new_function): Move to ipa-inline-analysis.c.
3812 (inline_generate_summary): Likewise.
3813 (inline_read_summary): Likewise.
3814 (inline_write_summary): Likewise.
3815 * Makefile.in (ipa-inline-analysis.c): New file.
3817 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3819 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3820 * configure: Regenerate.
3822 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3824 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3825 instead of tree_common.
3826 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3828 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3829 TS_TYPED rather than TS_COMMON.
3830 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3832 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3835 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3836 r20 around calls of __tablejump_elpm__
3838 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3841 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3843 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3845 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3847 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3848 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3849 (cfi_vec): New typedef.
3850 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3851 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3852 (cie_cfi_vec): New static variable.
3853 (cie_cfi_head): Delete.
3854 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3855 declaration changed. Use vector rather than list operations.
3856 (new_cfi): Don't initialize the dw_cfi_next field.
3857 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3858 rather than list operations.
3859 (lookup_cfa): Use vector rather than list operations.
3860 (output_cfis): New argument upto. Accept a cfi_vec rather than
3861 a dw_cfi_ref list head as argument. All callers changed.
3862 Iterate over the vector using upto as a maximum index.
3863 (output_all_cfis): New static function.
3864 (output_fde): Use vector rather than list operations. Use the
3865 new upto argument for output_cfis rather than manipulating a
3867 (dwarf2out_begin_prologue): Change initializations to match
3869 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3870 from the vector length rather than searching for the end of a list.
3871 Use output_all_cfis.
3872 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3874 2011-04-13 Nick Clifton <nickc@redhat.com>
3876 * config/rx/rx.md (movmemsi): Do not use this pattern when
3877 volatile pointers are involved.
3879 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3881 * config/i386/sse.md (pinsrbits): Remove.
3882 (sse2_packsswb): Merge with *avx_packsswb.
3883 (sse2_packssdw): Merge with *avx_packssdw.
3884 (sse2_packuswb): Merge with *avx_packuswb.
3885 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3886 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3887 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3888 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3889 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3890 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3891 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3892 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3893 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3894 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3895 (sse2_loadld): Merge with *avx_loadld.
3896 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3897 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3898 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3899 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3900 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3902 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3904 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3906 * print-tree.c (print_node): Likewise.
3907 * tree-inline.c (copy_tree_r): Likewise.
3908 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3909 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3910 instead of TS_COMMON.
3911 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3912 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3913 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3914 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3915 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3917 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3919 (TREE_CHAIN): Check for a TS_COMMON structure.
3920 (TREE_TYPE): Check for a TS_TYPED structure.
3922 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3924 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3925 cgraph_get_create_node instead of cgraph_node.
3927 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3929 * c-parser.c (c_parser_initelt): Updated call to
3930 objc_build_message_expr.
3931 (c_parser_postfix_expression): Likewise.
3933 2011-04-12 Kai Tietz <ktietz@redhat.com>
3935 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3936 MASK_MS_BITFIELD_LAYOUT bit.
3938 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3940 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3941 assert it is always true.
3942 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3945 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3947 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3948 compiling Objective-C to be more efficient.
3950 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3952 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3955 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3957 * recog.h, genoutput.c, optabs.c: Revert last patch.
3959 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3962 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3964 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3966 * recog.h (insn_operand_data): Add an "allows_mem" field.
3967 * genoutput.c (output_operand_data): Initialize it.
3968 * optabs.c (maybe_legitimize_operand_same_code): New function.
3969 (maybe_legitimize_operand): Use it when matching the original
3972 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3974 * genpreds.c (process_define_predicate): Move most processing
3975 to gensupport.c. Continue to validate the expression.
3976 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3977 (process_define_predicate): Move processing to gensupport.c.
3978 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3979 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3980 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3982 (valid_predicate_name_p): New function, split out from old
3983 genpreds.c:process_define_predicate.
3984 (process_define_predicate): New function, combining code from
3985 old genpreds.c and genrecog.c functions.
3986 (process_rtx): Call it for DEFINE_PREDICATE and
3987 DEFINE_SPECIAL_PREDICATE.
3989 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3991 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3992 size of a '%A' memory reference.
3993 (T_DREG, T_QREG): New neon_builtin_type_bits.
3994 (arm_init_neon_builtins): Assert that the load and store operands
3995 are neon_struct_operands.
3996 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3997 (NEON_ARG_MEMORY): New builtin_arg.
3998 (neon_dereference_pointer): New function.
3999 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4000 Handle NEON_ARG_MEMORY.
4001 (arm_expand_neon_builtin): Update after above interface changes.
4002 Use NEON_ARG_MEMORY for loads and stores.
4003 * config/arm/predicates.md (neon_struct_operand): New predicate.
4004 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4005 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4006 (V_four_elem): Tweak formatting.
4007 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4008 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4009 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4010 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4011 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4012 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4013 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4014 Use %A in the output template.
4015 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4016 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4017 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4018 the width of the memory access. Remove post-increment.
4019 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4021 2011-04-12 Nick Clifton <nickc@redhat.com>
4023 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4024 instruction for interrupt handlers if the target is the basic V850
4026 (expand_epilogue): Likewise.
4028 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4030 PR rtl-optimization/48549
4031 * combine.c (propagate_for_debug): Also stop after BB_END of
4032 this_basic_block. Process LAST and just stop processing after it.
4033 (combine_instructions): If last_combined_insn has been deleted,
4034 set last_combined_insn to its PREV_INSN.
4036 2011-04-12 Richard Guenther <rguenther@suse.de>
4038 PR tree-optimization/46076
4039 * gimple.h (struct gimple_statement_call): Add fntype field.
4040 (gimple_call_fntype): Adjust.
4041 (gimple_call_set_fntype): New function.
4042 * gimple.c (gimple_build_call_1): Set the call function type.
4043 * gimplify.c (gimplify_call_expr): Preserve the function
4044 type the frontend used for the call.
4045 (gimplify_modify_expr): Likewise.
4046 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4048 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4050 * tree-ssa.c (useless_type_conversion_p): Function pointer
4051 conversions are useless.
4053 2011-04-12 Martin Jambor <mjambor@suse.cz>
4055 * cgraph.h (cgraph_node): Remove function declaration.
4056 (cgraph_create_node): Declare.
4057 (cgraph_get_create_node): Likewise.
4058 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4059 Updated all callers.
4060 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4061 the decl does not already exist. Call cgraph_get_create_node instead
4063 (cgraph_get_create_node): New function.
4064 (cgraph_same_body_alias): Update comment.
4065 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4066 assert it does not return NULL.
4067 (cgraph_update_edges_for_call_stmt): Likewise.
4068 (cgraph_clone_edge): Likewise.
4069 (cgraph_create_virtual_clone): Likewise.
4070 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4071 instead of cgraph_node.
4072 (cgraph_add_new_function): Call cgraph_create_node or
4073 cgraph_get_create_node instead of cgraph_node.
4074 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4075 instead of cgraph_node.
4076 (record_eh_tables): Likewise.
4077 (mark_address): Likewise.
4078 (mark_load): Likewise.
4079 (build_cgraph_edges): Call cgraph_get_create_node instead
4081 (rebuild_cgraph_edges): Likewise.
4082 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4083 instead of cgraph_node.
4084 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4086 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4087 cgraph_create_node instead of cgraph_node.
4088 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4090 * lto-cgraph.c (input_node): Likewise.
4091 * lto-streamer-in.c (input_function): Likewise.
4092 * varasm.c (mark_decl_referenced): Likewise.
4093 (assemble_alias): Likewise.
4095 2011-04-12 Martin Jambor <mjambor@suse.cz>
4097 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4098 instead of cgraph_node and assert it does not return NULL.
4099 * lto-streamer-in.c (lto_read_body): Likewise.
4100 * omp-low.c (new_omp_context): Likewise.
4101 (create_task_copyfn): Likewise.
4102 * tree-emutls.c (lower_emutls_function_body): Likewise.
4103 * matrix-reorg.c (transform_allocation_sites): Likewise.
4105 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4108 * c-typeck.c (build_asm_expr): Error out on attempts to use
4109 void type outputs or inputs for constraints that allow reg or
4112 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4113 Richard Earnshaw <rearnsha@arm.com>
4116 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4117 to use sign-magnitude offsets. Reject unsupported unaligned
4118 cases. Add detailed description in comments.
4119 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4120 condition from TARGET_32BIT to TARGET_ARM.
4122 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4124 * tree.h (struct typed_tree): New.
4125 (struct tree_common): Include it instead of tree_base.
4126 (TREE_TYPE): Update for new location of type field.
4127 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4128 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4129 (union tree_node): Add typed field.
4130 * treestruct.def (TS_TYPED): New.
4131 * lto-streamer.c (check_handled_ts_structures): Handle it.
4132 * tree.c (MARK_TS_TYPED): New macro.
4133 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4135 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4137 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4138 (force_nonfallthru): Do not alter the loop nest if no basic block
4141 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4143 * config/i386/sse.md (VI): New mode iterator.
4145 (AVX256MODEI): Ditto.
4146 (AVXMODEF4P): Ditto.
4147 (avxvecpsmode): Ditto.
4148 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4149 (sse2_andnot<mode>3): New expander.
4150 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4151 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4152 (<any_logic:code><mode>3): Use VI mode iterator.
4153 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4154 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4155 (*andnottf3): Handle AVX three-operand constraints.
4156 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4158 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4159 Robert Millan <rmh@gnu.org>
4161 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4162 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4163 GNU_USER_DYNAMIC_LINKER64): Define.
4164 (REG_NAME): Don't undefine.
4165 (MD_UNWIND_SUPPORT): Undefine.
4166 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4167 (REG_NAME): Don't undefine.
4168 (MD_UNWIND_SUPPORT): Undefine.
4169 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4171 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4173 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4174 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4176 2011-04-11 Xinliang David Li <davidxl@google.com>
4178 * value-profile.c (check_ic_target): New function.
4179 (gimple_ic_transform): Sanity check indirect call target.
4180 * gimple-low.c (gimple_check_call_args): Interface change.
4181 (gimple_check_call_matching_types): New function.
4182 * tree-inline.c (tree_can_inline_p): Call new function.
4184 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4186 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4187 tree-pretty-print.h & realmpfr.h.
4189 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4192 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4193 (setup_allocno_and_important_classes): Ditto.
4195 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4197 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4198 GNU_USER_DYNAMIC_LINKER.
4199 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4200 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4201 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4202 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4203 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4204 GNU_USER_TARGET_OS_CPP_BUILTINS.
4205 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4206 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4207 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4208 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4209 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4210 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4211 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4212 GNU_USER_TARGET_OS_CPP_BUILTINS.
4213 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4214 GNU_USER_DYNAMIC_LINKER.
4215 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4216 GNU_USER_TARGET_OS_CPP_BUILTINS.
4217 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4218 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4219 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4220 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4221 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4222 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4223 GNU_USER_DYNAMIC_LINKER64): Remove.
4224 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4225 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4226 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4227 GNU_USER_DYNAMIC_LINKER.
4228 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4229 GNU_USER_TARGET_OS_CPP_BUILTINS.
4230 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4231 GNU_USER_TARGET_OS_CPP_BUILTINS.
4232 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4233 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4234 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4235 GNU_USER_TARGET_OS_CPP_BUILTINS.
4236 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4237 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4238 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4239 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4240 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4241 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4242 GNU_USER_DYNAMIC_LINKER.
4243 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4244 GNU_USER_TARGET_OS_CPP_BUILTINS.
4245 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4246 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4247 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4248 GNU_USER_DYNAMIC_LINKER.
4249 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4250 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4251 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4252 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4253 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4254 GNU_USER_DYNAMIC_LINKER.
4255 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4256 GNU_USER_DYNAMIC_LINKERN32.
4257 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4258 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4259 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4260 GNU_USER_DYNAMIC_LINKER32.
4261 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4262 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4263 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4264 GNU_USER_DYNAMIC_LINKER.
4265 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4266 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4267 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4268 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4269 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4270 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4271 GNU_USER_DYNAMIC_LINKER32.
4272 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4273 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4274 GNU_USER_DYNAMIC_LINKER.
4275 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4276 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4277 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4278 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4279 GNU_USER_DYNAMIC_LINKER64.
4280 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4281 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4282 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4283 GNU_USER_DYNAMIC_LINKER.
4284 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4285 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4286 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4287 GNU_USER_DYNAMIC_LINKER.
4288 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4289 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4290 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4291 GNU_USER_DYNAMIC_LINKER32.
4292 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4293 GNU_USER_DYNAMIC_LINKER64.
4294 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4295 GNU_USER_DYNAMIC_LINKER64.
4296 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4297 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4298 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4299 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4300 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4302 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4304 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4305 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4306 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4307 GNU_USER_DYNAMIC_LINKER.
4308 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4309 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4310 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4311 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4312 GNU_USER_DYNAMIC_LINKER64.
4313 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4314 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4315 GNU_USER_LINK_EMULATION.
4316 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4317 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4318 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4319 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4320 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4321 CPP_SPEC, CC1_SPEC): Remove.
4322 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4323 (GNU_USER_DYNAMIC_LINKER): Define.
4324 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4325 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4326 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4327 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4328 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4329 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4330 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4331 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4332 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4333 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4334 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4335 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4336 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4337 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4338 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4339 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4340 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4341 GNU_USER_DYNAMIC_LINKER.
4342 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4343 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4344 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4345 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4346 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4347 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4348 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4349 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4350 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4351 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4353 2011-04-11 Kai Tietz <ktietz@redhat.com>
4357 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4358 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4360 (ix86_is_msabi_thiscall): Removed.
4361 (ix86_is_type_thiscall): Likewise.
4362 (ix86_get_callcvt): New function.
4363 (ix86_comp_type_attributes): Simplify check.
4364 (ix86_function_regparm): Use ix86_get_callcvt for calling
4365 convention attribute checks.
4366 (ix86_return_pops_args): Likewise.
4367 (ix86_static_chain): Likewise.
4368 (x86_this_parameter): Likewise.
4369 (x86_output_mi_thunk): Likewise.
4370 (ix86_function_type_abi): Optimize check for types without attributes.
4371 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4372 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4373 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4375 (IX86_BASE_CALLCVT): Helper macro.
4376 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4377 Use ix86_get_callcvt for calling convention attribute checks and avoid
4378 symbol-decoration for stdcall in TARGET_RTD case.
4379 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4381 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4384 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4386 * config/i386/sse.md (VI_128): New mode iterator.
4387 (VI12_128): Rename from SSEMODE12.
4388 (VI14_128): Rename from SSEMODE14.
4389 (VI124_128): New mode iterator.
4390 (VI24_128): Rename from SSEMODE248.
4391 (VI248_128): Rename from SSEMODE248.
4392 (SSEMODE124C8): Remove.
4393 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4394 (*sse2_<plusminus_insn><mode>3): Merge with
4395 *avx_<plusminus_insn><mode>3.
4396 (*mulv8hi3): Merge with *avx_mulv8hi3.
4397 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4398 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4399 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4400 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4401 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4402 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4403 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4404 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4405 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4406 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4407 (*<smaxmin:code>v8hi3): Ditto.
4408 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4409 (*<smaxmin:code>v16qi3): Ditto.
4410 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4411 (*sse2_eq<mode>3): Ditto.
4412 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4413 (*sse2_gt<mode>3): Ditto.
4414 (vcondv2di): Split out of vcond<mode>.
4415 (vconduv2di): Split out of vcondu<mode>.
4417 2011-04-11 Richard Guenther <rguenther@suse.de>
4419 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4420 before calling tree_low_cst.
4422 2011-04-11 Richard Guenther <rguenther@suse.de>
4424 * stor-layout.c (layout_type): Compute all array index size operations
4425 in the original type.
4426 (initialize_sizetypes): Add comment.
4427 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4429 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4431 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4433 2011-04-11 Martin Jambor <mjambor@suse.cz>
4435 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4436 of cgraph_node, handle NULL return value.
4437 (cgraph_global_info): Likewise.
4438 (cgraph_rtl_info): Likewise.
4439 * tree-inline.c (estimate_num_insns): Likewise.
4440 * gimplify.c (unshare_body): Likewise.
4441 (unvisit_body): Likewise.
4442 (gimplify_body): Likewise.
4443 * predict.c (optimize_function_for_size_p): Likewise.
4444 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4445 (call_may_clobber_ref_p_1): Likewise.
4446 * varasm.c (function_section_1): Likewise.
4447 (assemble_start_function): Likewise.
4449 2011-04-11 Martin Jambor <mjambor@suse.cz>
4451 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4453 * final.c (rest_of_clean_state): Likewise.
4454 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4455 * passes.c (pass_init_dump_file): Likewise.
4456 (execute_all_ipa_transforms): Likewise.
4457 (function_called_by_processed_nodes_p): Likewise.
4458 * predict.c (maybe_hot_frequency_p): Likewise.
4459 (probably_never_executed_bb_p): Likewise.
4460 (compute_function_frequency): Likewise.
4461 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4462 (unnest_nesting_tree_1): Likewise.
4463 (lower_nested_functions): Likewise.
4464 * tree-optimize.c (execute_fixup_cfg): Likewise.
4465 (tree_rest_of_compilation): Likewise.
4466 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4467 * tree-sra.c (ipa_early_sra): Likewise.
4468 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4469 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4470 * ipa.c (record_cdtor_fn): Likewise.
4471 * ipa-inline.c (cgraph_early_inlining): Likewise.
4472 (compute_inline_parameters_for_current): Likewise.
4473 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4474 * ipa-pure-const.c (local_pure_const): Likewise.
4475 * ipa-split.c (split_function): Likewise.
4476 (execute_split_functions): Likewise.
4477 * cgraphbuild.c (build_cgraph_edges): Likewise.
4478 (rebuild_cgraph_edges): Likewise.
4479 (cgraph_rebuild_references): Likewise.
4480 (remove_cgraph_callee_edges): Likewise.
4481 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4482 (verify_cgraph_node): Likewise.
4483 (cgraph_analyze_functions): Likewise.
4484 (cgraph_preserve_function_body_p): Likewise.
4485 (save_inline_function_body): Likewise.
4486 (save_inline_function_body): Likewise.
4487 * tree-inline.c (copy_bb): Likewise.
4488 (optimize_inline_calls): Likewise.
4490 2011-04-11 Martin Jambor <mjambor@suse.cz>
4492 PR tree-optimization/48195
4493 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4494 ipa_check_create_edge_args.
4495 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4496 ipa_check_create_edge_args.
4497 * ipa-inline.c (inline_generate_summary): Do not call
4498 ipa_check_create_node_params and ipa_check_create_edge_args.
4499 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4500 ipa_check_create_edge_args.
4502 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4504 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4506 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4507 * function.c (record_hard_reg_sets): Likewise.
4508 * ira.c (compute_regs_asm_clobbered): Likewise.
4509 * sched-deps.c (sched_analyze_1): Likewise.
4510 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4512 2011-04-09 Xinliang David Li <davidxl@google.com>
4514 PR tree-optimization/PR48484
4515 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4516 has_valid_pred lazily
4518 2011-04-09 Duncan Sands <baldrick@free.fr>
4520 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4522 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4524 * combine.c (combine_validate_cost): Adjust comments. Set registered
4525 cost of I0 to zero at the end, if any.
4527 2011-04-08 Xinliang David Li <davidxl@google.com>
4529 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4530 to insane profile data.
4532 2011-04-08 Xinliang David Li <davidxl@google.com>
4534 * ipa-cp.c (ipcp_update_profiling): Correct
4535 negative scale factor due to insane profile data.
4537 2011-04-08 Xinliang David Li <davidxl@google.com>
4539 * final.c (dump_basic_block_info): New function.
4540 (final): Dump basic block.
4541 (final_scan_insn): Remove old dump.
4543 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4546 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4549 2011-04-08 Michael Matz <matz@suse.de>
4552 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4554 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4555 * rtl.h (rebuild_jump_labels_chain): Declare.
4556 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4557 insns inserted on edges.
4559 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4561 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4562 * config/arm/arm-arches.def: New.
4563 * config/arm/arm-opts.h: New.
4564 * config/arm/genopt.sh: New.
4565 * config/arm/arm-tables.opt: New (generated).
4566 * config/arm/arm.c (arm_handle_option, arm_target_help,
4567 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4568 (all_architectures): Get most table contents from arm-arches.def.
4569 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4570 arm_selected_tune here.
4571 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4572 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4573 (march=, mcpu=, mtune=): Use Enum and Var.
4574 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4575 (arm.o): Update dependencies.
4577 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4579 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4581 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4582 (write_typed_alloc_defns): Likewise.
4583 (main): Calls write_typed_alloc_defns with output_header.
4585 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4588 * ira-color.c (setup_profitable_hard_regs): Add comments.
4589 Don't take prohibited hard regs into account.
4590 (setup_conflict_profitable_regs): Rename to
4591 get_conflict_profitable_regs.
4592 (check_hard_reg_p): Check prohibited hard regs.
4594 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4596 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4597 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4598 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4600 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4603 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4604 move from floating point to shift amount register.
4605 (emit_move_sequence): Remove secondary reload support for floating
4606 point to shift amount amount register copies.
4607 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4608 amount register copies.
4609 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4610 register, return false if mode isn't a scalar integer mode.
4611 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4613 2011-04-08 Richard Guenther <rguenther@suse.de>
4615 * gimple.c (gimple_call_flags): Remove kludge.
4617 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4619 * sel-sched.c (sel_region_init): Move call to
4620 sel_setup_region_sched_flags after setup_current_loop_nest.
4622 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4624 PR rtl-optimization/48272
4625 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4626 init_insn_reg_pressure_info. Adjust a caller.
4627 * sched-int.h (init_insn_reg_pressure_info): Declare.
4628 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4629 when sched-pressure is enabled.
4631 2011-04-08 Richard Guenther <rguenther@suse.de>
4633 * gimple.c (gimple_set_modified): Do not queue calls to
4634 MODIFIED_NORETURN_CALLS here ...
4635 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4637 2011-04-08 Richard Guenther <rguenther@suse.de>
4640 * toplev.c (lang_dependent_init): Do not open asm_out_file
4641 in WPA mode, nor perform debug machinery initialization.
4642 (finalize): Do not unlink asm_out_file in WPA mode.
4644 2011-04-08 Richard Guenther <rguenther@suse.de>
4646 * gimple.h (gimple_call_fntype): New function.
4647 (gimple_call_return_type): Use it.
4648 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4649 * gimple-low.c (gimple_check_call_args): Likewise.
4650 * gimple.c (gimple_call_flags): Likewise.
4651 (gimple_call_arg_flags): Likewise.
4652 (gimple_call_return_flags): Likewise.
4653 * tree-cfg.c (verify_gimple_call): Likewise.
4654 (do_warn_unused_result): Likewise.
4655 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4656 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4658 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4660 PR rtl-optimization/48235
4661 * sel-sched.c (code_motion_process_successors): Recompute the last
4662 insn in basic block if control flow changed.
4663 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4664 Update condition for ilist_remove.
4666 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4668 PR rtl-optimization/48302
4669 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4670 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4671 it to record added preheader blocks.
4672 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4673 on to sel_add_loop_preheaders.
4674 (sel_region_init): Move call to setup_current_loop_nest after
4677 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4680 * cfgloop.h (loop_has_exit_edges): New helper.
4681 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4683 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4684 that have no exit edges.
4686 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4688 PR rtl-optimization/48442
4689 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4690 all callers. Adjust assert.
4692 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4694 PR tree-optimization/48377
4695 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4696 is_packed to true even for types with smaller TYPE_ALIGN than
4699 2011-04-08 Richard Guenther <rguenther@suse.de>
4702 * doc/tm.texi: Re-generate.
4704 2011-04-08 Wei Guozhi <carrot@google.com>
4707 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4708 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4709 * config/arm/arm.md (*push_multi): Change the length computation to
4712 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4714 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4715 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4716 * doc/tm.texi: Regenerate.
4717 * system.h (ASM_OUTPUT_BSS): Poison.
4718 * varasm.c (asm_output_bss): Remove function.
4719 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4721 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4722 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4723 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4724 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4726 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4728 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4730 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4732 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4734 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4737 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4739 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4740 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4741 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4743 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4744 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4745 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4746 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4747 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4748 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4749 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4750 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4751 options. Don't map other m68k options manually. Don't handle
4752 old-style options as canonical.
4753 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4754 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4756 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4758 * basic-block.h (force_nonfallthru): Move to...
4759 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4760 (force_nonfallthru): ...here.
4761 * cfghooks.c (force_nonfallthru): New function.
4762 * cfgrtl.c (force_nonfallthru): Rename into...
4763 (rtl_force_nonfallthru): ...this.
4764 (commit_one_edge_insertion): Do not set AUX field.
4765 (commit_edge_insertions): Do not discover new basic blocks.
4766 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4767 (cfg_layout_rtl_cfg_hooks): Likewise.
4768 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4769 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4770 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4772 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4774 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4777 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4779 * config/i386/sse.md: Update copyright year.
4780 (avxcvtvecmode): Remove.
4781 (sse_movhlps): Merge with *avx_movhlps.
4782 (sse_movlhps): Merge with *avx_movlhps.
4783 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4784 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4785 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4786 (sse_loadhps): Merge with *avx_loadhps.
4787 (sse_storelps): Merge with *avx_storelps.
4788 (sse_loadlps): Merge with *avx_loadlps.
4789 (sse_movss): Merge with *avx_movss.
4790 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4791 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4792 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4793 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4794 (vec_set<mode>_0): Ditto.
4795 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4796 (sse4_1_insertps): Merge with *avx_insertps.
4797 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4798 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4799 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4800 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4801 (sse2_storehpd): Merge with *avx_storehpd.
4802 (sse2_loadhpd): Merge with *avx_loadhpd.
4803 (sse2_loadlpd): Merge with *avx_loadlpd.
4804 (sse2_movsd): Merge with *avx_movsd.
4805 (*vec_concatv2df): Merge with *vec_concatv2df.
4807 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4810 * combine.c (combine_instructions): Add last_combined_insn,
4811 update it if insn is after it, pass it to all try_combine calls.
4812 (try_combine): Add last_combined_insn parameter, pass it instead of
4813 i3 to propagate_for_debug.
4815 2011-04-07 Nick Clifton <nickc@redhat.com>
4817 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4818 to handle MDR <-> data register transfers.
4819 (movhi_internal): Likewise.
4821 2011-04-07 Alan Modra <amodra@gmail.com>
4823 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4824 previous stack info.
4826 2011-04-07 Tom de Vries <tom@codesourcery.com>
4829 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4830 flow_find_cross_jump. Swap variables to implement backward replacement.
4831 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4833 2011-04-07 Tom de Vries <tom@codesourcery.com>
4836 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4837 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4839 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4840 src1 or src2. Redirect edges to the last basic block. Update
4841 frequency and count on multiple basic blocks in case of fallthru.
4843 2011-04-07 Tom de Vries <tom@codesourcery.com>
4846 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4848 (old_insns_match_p): Change return type. Replace return false/true
4849 with return dir_none/dir_both. Use can_replace_by.
4850 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4851 direction from dir_p. Register replacement direction in dir, last_dir
4852 and afterlast_dir. Handle new return type of old_insns_match_p using
4853 merge_dir. Return replacement direction in dir_p.
4854 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4855 return type of old_insns_match_p.
4856 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4857 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4858 flow_find_cross_jump.
4859 * basic-block.h (enum replace_direction): New type.
4860 (flow_find_cross_jump): Add parameter to declaration.
4862 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4864 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4865 (AVXMODEDCVTPS2DQ): Ditto.
4866 (VEC_FLOAT_MODE): Ditto.
4867 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4868 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4869 (<any_logic:code><mode>3): Use VF mode iterator.
4870 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4871 Use VF mode iterator.
4872 (copysign<mode>3): Use VF mode iterator.
4873 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4874 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4875 (*<any_logic:code><MODEF:mode>3): Merge with
4876 *avx_<any_logic:code><MODEF:mode>3.
4877 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4878 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4879 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4880 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4881 (sse2_cvtdq2ps): Use %v modifier.
4882 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4883 (avx_cvtps2dq<avxmodesuffix>): Remove.
4884 (sse2_cvtps2dq): Use %v modifier.
4885 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4886 (avx_cvttps2dq<avxmodesuffix>): Remove.
4887 (sse2_cvttps2dq): Use %v modifier.
4888 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4889 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4890 (sse2_cvtsd2siq): Fix insn template.
4891 (sse2_cvtsd2siq_2): Ditto.
4892 (sse2_cvttsd2siq): Ditto.
4893 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4894 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4896 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4898 * gcov-io.c: Use GCC Runtime Library Exception.
4900 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4903 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4904 as base_reg whatever register reg has been eliminated to, instead
4905 of hardcoding STACK_POINTER_REGNUM.
4907 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4909 * doc/tm.texi.in: Document C target hooks as separate from general
4911 * doc/tm.texi: Regenerate.
4912 * genhooks.c (struct hook_desc): Add docname field.
4913 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4915 (hook_array): Include c-target.def.
4916 (emit_documentation): Use docname field in output.
4917 (emit_init_macros): Take docname argument. Only emit definitions
4918 for hooks matching docname.
4919 (main): Expect additional arguments in all cases. Pass argument
4920 to emit_init_macros.
4921 * target.def: Move initial macro definitions and comments to
4922 target-hooks-macros.h.
4923 (gcc_targetcm): Move to c-family/c-target.def.
4924 * target.h (targetcm): Move declaration to c-family/c-target.h.
4925 * targhooks.c (default_handle_c_option): Move to
4927 * targhooks.h (default_handle_c_option): Move declaration to
4928 c-family/c-common.h.
4929 * target-hooks-macros.h: New file.
4930 * config.gcc (target_has_targetcm): Define and use to add to
4931 c_target_objs and cxx_target_objs.
4932 * config/default-c.c: New file.
4933 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4934 of target.h and target-def.h.
4935 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4936 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4937 darwin_check_cfstring_format_arg): Make static.
4938 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4939 TARGET_STRING_OBJECT_REF_TYPE_P,
4940 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4941 * config/darwin-protos.h (darwin_objc_construct_string,
4942 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4944 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4945 TARGET_STRING_OBJECT_REF_TYPE_P,
4946 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4947 * config/t-darwin (darwin-c.o): Update dependencies.
4948 * system.h (TARGET_HAS_TARGETCM): Poison.
4949 * Makefile.in (TARGET_H): Update.
4950 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4951 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4952 (default-c.o): New target.
4953 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4954 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4955 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4957 (build/genhooks.o): Update dependencies.
4959 2011-04-06 Richard Guenther <rguenther@suse.de>
4961 * ipa-inline.c (enum inlining_mode): Remove.
4962 (cgraph_flatten): Use some other token.
4963 (cgraph_edge_early_inlinable_p): New function, split out from ...
4964 (cgraph_perform_always_inlining): New function, split out from ...
4965 (cgraph_decide_inlining_incrementally): ... here.
4966 (cgraph_mark_inline_edge): Adjust.
4967 (cgraph_early_inlining): Re-structure.
4968 (pass_early_inline): Require SSA form.
4970 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4971 Julian Brown <julian@codesourcery.com>
4972 Mark Shinwell <shinwell@codesourcery.com>
4974 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4975 LO_REGS only for Thumb-1.
4976 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4977 be used in short instructions when optimising for size on Thumb-2.
4979 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4981 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4982 associated with user returns to be preserved.
4984 2011-04-06 Tristan Gingold <gingold@adacore.com>
4986 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4987 symbol_queue_size, DBXOUT_DECR_NESTING,
4988 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4989 if XCOFF_DEBUGGING_INFO.
4991 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4993 * config/i386/i386.md (attribute isa): New.
4994 (attribute enabled): New.
4995 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4996 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4997 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4998 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4999 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5000 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5001 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5002 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5004 * config/i386/sse.md (VF): New mode iterator.
5008 (SSEMODEF4): Remove.
5009 (attribute sse): Handle V8SF and V4DF modes.
5010 (<absneg:code><mode>2): Use VF mode iterator.
5011 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5013 (<plusminus_insn><mode>3): Use VF mode iterator.
5014 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5015 Use VF mode iterator.
5016 (<sse>_vm<plusminus_insn><mode>3): Merge with
5017 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5018 (mul<mode>3): Use VF mode iterator.
5019 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5020 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5022 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5023 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5024 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5025 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5027 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5028 Use VF1 mode iterator.
5029 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5030 (sqrt<VF2:mode>2): New expander.
5031 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5032 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5033 and sqrtv2df2. Use VF mode iterator.
5034 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5036 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5037 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5038 Use VF1 mode iterator.
5039 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5040 (<smaxmin:code><mode>3): Use VF mode iterator.
5041 (*<smaxmin:code><mode>3_finite): Merge with
5042 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5043 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5044 (<sse>_vm<smaxmin:code><mode>2): Merge with
5045 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5046 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5048 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5050 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5051 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5052 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5053 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5054 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5056 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5057 Use VF_128 mode iterator.
5058 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5060 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5061 VF_128 mode iterator.
5062 (vcond<mode>): Use VF mode iterator.
5063 * config/i386/predicates.md (sse_comparison_operator): Merge with
5064 avx_comparison_float_operator. Do not declare as special_predicate.
5065 * config/i386/i386.c (struct builtin_description): Update for renamed
5067 (ix86_expand_args_builtin): Ditto.
5068 (ix86_expand_sse_compare_mask): Ditto.
5070 2011-04-06 Richard Guenther <rguenther@suse.de>
5072 * tree-inline.c (estimate_num_insns): For calls simply account
5073 for all passed arguments and a used return value.
5075 2011-04-06 Richard Guenther <rguenther@suse.de>
5077 PR tree-optimization/47663
5078 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5079 call_stmt_time fields.
5080 (cgraph_edge_inlinable_p): Declare.
5081 (cgraph_edge_recursive_p): New inline function.
5082 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5083 (cgraph_clone_edge): Copy it.
5084 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5085 Account for call stmt time.
5086 (cgraph_estimate_time_after_inlining): Take edge argument.
5087 (cgraph_estimate_edge_growth): Account call stmt size.
5088 (cgraph_estimate_size_after_inlining): Take edge argument.
5089 (cgraph_mark_inline_edge): Adjust.
5090 (cgraph_check_inline_limits): Likewise.
5091 (cgraph_recursive_inlining_p): Remove.
5092 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5093 (cgraph_decide_recursive_inlining): Take edge argument and
5095 (cgraph_decide_inlining_of_small_functions): Do not avoid
5096 diags for recursive inlining here.
5097 (cgraph_flatten): Adjust.
5098 (cgraph_decide_inlining_incrementally): Likewise.
5099 (estimate_function_body_sizes): Remove call cost handling.
5100 (compute_inline_parameters): Initialize caller edge call costs.
5101 (cgraph_estimate_edge_growth): New function.
5102 (cgraph_estimate_growth): Use it.
5103 (cgraph_edge_badness): Likewise.
5104 (cgraph_check_inline_limits): Take an edge argument.
5105 (cgraph_decide_inlining_of_small_functions): Adjust.
5106 (cgraph_decide_inlining): Likewise.
5107 * tree-inline.c (estimate_num_insns): Only account for call
5108 return value if it is used.
5109 (expand_call_inline): Avoid diagnostics on recursive inline
5111 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5112 (input_edge): Input edge call costs.
5114 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5116 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5118 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5120 * doc/invoke.texi (Spec Files): Fix typo.
5122 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5124 * profile.c (branch_prob): Move declaration of local variable. Remove
5125 obsolete ??? comment. Expand the location explicitly instead of using
5126 the LOCATION_FILE and LOCATION_LINE macros.
5128 2011-04-06 Wei Guozhi <carrot@google.com>
5131 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5132 (arm_cond_branch): Likewise.
5133 (arm_cond_branch_reversed): Likewise.
5134 (arm_jump): Likewise.
5135 (push_multi): Likewise.
5136 * config/arm/constraints.md (Py): New constraint.
5138 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5141 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5143 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5144 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5145 #ifdef DBX_DEBUGGING_INFO.
5147 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5150 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5151 if old and new states differ.
5153 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5155 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5156 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5157 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5158 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5159 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5161 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5162 ColdFire options to -mcpu= options.
5164 2011-04-05 Jeff Law <law@redhat.com>
5166 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5167 check if BB is a successor of LOOP->header and return
5168 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5170 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5172 * cprop.c (struct reg_use): Remove.
5173 (reg_use_table): Make an array of RTX.
5174 (find_used_regs, constprop_register, local_cprop_pass,
5175 bypass_block): Simplify users of reg_use_table.
5176 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5177 on one of the uses found by find_used_regs.
5179 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5182 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5185 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5187 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5189 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5191 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5194 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5196 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5198 * combine.c: Include obstack.h.
5199 (struct insn_link): Define.
5200 (uid_log_links): Adjust type.
5201 (FOR_EACH_LOG_LINK): New macro.
5202 (insn_link_obstack): Declare.
5203 (alloc_insn_link): Define.
5204 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5205 type of link variables.
5206 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5207 (try_combine, record_promoted_values, distribute_notes): Likewise.
5208 (distribute_links): Likewise. Tweak prototype.
5209 (clear_log_links): Delete.
5210 (adjust_for_new_dest): Call alloc_insn_link.
5211 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5213 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5215 * gcse.c (modify_mem_list): Convert to an array of VECs.
5216 (canon_modify_mem_list, compute_transp): Tweak formatting.
5217 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5218 (load_killed_in_block_p): Likewise.
5219 (record_last_mem_set_info): Likewise.
5220 (clear_modify_mem_tables): Likewise.
5222 2011-04-05 Tom de Vries <tom@codesourcery.com>
5225 * function.c (emit_use_return_register_into_block): Only define if
5228 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5230 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5232 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5234 * config/rx/rx-opts.h: New.
5235 * config/rx/rx.c (rx_cpu_type): Remove.
5236 (rx_handle_option): Don't assert that global structures are in
5237 use. Access variables via opts pointer. Defer most handling of
5238 OPT_mint_register_. Use error_at.
5239 (rx_option_override): Handle deferred OPT_mint_register_ here.
5240 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5241 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5242 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5243 (rx_cpu_types): New Enum and EnumValue entries.
5244 (mint-register=): Use Defer and use Var accordingly.
5246 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5248 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5249 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5250 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5252 (debug_free_queue, debug_nesting, symbol_queue_index):
5254 * dbxout.c: ...to here. Make static.
5256 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5258 * gcse.c (modify_pair): Define. Define a VEC of it.
5259 (canon_modify_mem_list): Convert to an array of VECs.
5260 (free_insn_expr_list_list): Delete.
5261 (clear_modify_mem_tables): Call VEC_free instead.
5262 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5263 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5264 (canon_list_insert, compute_transp): Likewise.
5266 2011-04-05 Tom de Vries <tom@codesourcery.com>
5269 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5272 2011-04-05 Tom de Vries <tom@codesourcery.com>
5275 * function.c (emit_use_return_register_into_block): New function.
5276 (thread_prologue_and_epilogue_insns): Use
5277 emit_use_return_register_into_block.
5279 2011-04-05 Tom de Vries <tom@codesourcery.com>
5282 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5285 2011-04-05 Tom de Vries <tom@codesourcery.com>
5287 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5289 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5291 * config/arm/arm.md (define_constants for unspec): Replace with
5293 (define_constants for unspecv): Replace with define_c_enum.
5294 * config/arm/neon.md (define_constants for unspec): Replace with
5297 2011-04-04 Richard Henderson <rth@redhat.com>
5300 * dwarf2out.c (output_line_info): Always emit line info from
5301 at least one section.
5302 (dwarf2out_init): Create text_section_line_info here ...
5303 (set_cur_line_info_table): ... not here.
5305 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5308 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5311 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5313 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5315 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5316 (expr_equiv_p): Remove.
5317 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5318 (hash_scan_set): Update call to insert_set_in_table.
5319 (dump_hash_table): Dump <dest, src> pair.
5320 (lookup_set): Simplify. Lookup <dest, src> pair.
5321 (compute_transp): Remove, fold heavily simplified code into...
5322 (compute_local_properties): ...here. Expect COMP and TRANSP
5324 (find_avail_set): Take set directly from struct expr.
5325 (find_bypass-set): Likewise.
5326 (bypass_block): Likewise.
5327 (cprop_insn): Likewise. Remove redundant INSN_P test.
5329 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5330 checks on form of COND from find_implicit_sets to here.
5331 (find_implicit_sets): Cleanup control flow. Split critical edges
5332 if it exposes implicit sets. Allocate/resize implicit_sets as
5334 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5335 changed something. Run df_analyze after find_implicit_sets if any
5336 edges were split. Do not allocate implicit_sets here.
5338 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5339 (gcse_obstack): Renamed to cprop_obstack.
5340 (GNEW, GNEWVEC, GNEWVAR): Remove.
5342 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5343 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5344 (gcse_alloc): Likewise, and rename to cprop_alloc.
5345 (alloc_gcse_men, free_gcse_mem): Remove.
5346 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5347 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5348 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5350 * cprop.c (oprs_not_set_p): Remove.
5351 (mark_set, mark_clobber): Remove.
5352 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5353 (reg_not_set_p): New function.
5354 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5355 (cprop_insn): Likewise.
5356 (cprop_jump): Use FOR_EACH_EDGE.
5358 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5361 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5362 (rank_for_schedule): Use scheduled_insns vector instead of
5363 last_scheduled_insn.
5364 (ok_for_early_queue_removal): Likewise.
5365 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5367 (choose_ready): Likewise.
5368 (commit_schedule): Use VEC_iterate.
5369 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5370 a dbg_cnt, use it and ensure the first insn is in the ready list.
5371 (haifa_sched_init): Allocate scheduled_insns.
5372 (sched_extend_ready_list): Don't allocate it; reserve space.
5373 (haifa_sched_finish): Free it.
5375 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5377 * optc-gen.awk: Always remove type from Variable entry before
5378 recording in var_seen.
5380 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5382 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5383 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5384 call to tidy_fallthru_edges.
5386 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5388 * doc/options.texi (ToLower): Document.
5389 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5390 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5391 * opts.h (cl_option): Add cl_tolower field.
5392 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5393 arguments with lowercase strings.
5394 * config/rx/rx.opt (mcpu=): Add ToLower.
5395 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5398 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5400 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5402 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5404 * config/vax/vax.c: Include reload.h.
5406 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5408 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5409 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5410 (sparc_preferred_reload_class): New function.
5412 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5415 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5416 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5418 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5420 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5421 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5423 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5425 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5426 (ASM_OUTPUT_ALIGNED_BSS): Define.
5428 2011-04-03 Michael Matz <matz@suse.de>
5430 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5431 and next_slot members.
5432 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5433 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5434 (lto_streamer_cache_append): Declare.
5435 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5436 unsigned index, remove offset parameter, ensure that we append
5437 or update existing entries.
5438 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5439 parameter, update next_slot for append.
5440 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5442 (lto_streamer_cache_insert_at): Likewise.
5443 (lto_streamer_cache_append): New function.
5444 (lto_streamer_cache_lookup): Use unsigned index.
5445 (lto_streamer_cache_get): Likewise.
5446 (lto_record_common_node): Don't test tree_node_can_be_shared.
5447 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5448 (lto_streamer_cache_delete): Don't free offsets member.
5449 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5450 (lto_output_string_with_length): Use lto_output_data_stream.
5451 (lto_output_tree_header): Remove ix parameter, don't write it.
5452 (lto_output_builtin_tree): Likewise.
5453 (lto_write_tree): Adjust callers to above, don't track and write
5454 offset, write unsigned index.
5455 (output_unreferenced_globals): Don't emit all global vars.
5456 (write_global_references): Use unsigned indices.
5457 (lto_output_decl_state_refs): Likewise.
5458 (write_symbol): Likewise.
5459 * lto-streamer-in.c (lto_input_chain): Move earlier.
5460 (input_function): Use unsigned index.
5461 (input_alias_pairs): Don't read and then ignore all global vars.
5462 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5463 don't pass it back, use lto_streamer_cache_append.
5464 (lto_register_var_decl_in_symtab): Use unsigned index.
5465 (lto_register_function_decl_in_symtab): Likewise.
5466 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5468 (lto_get_builtin_tree): Don't read index, use
5469 lto_streamer_cache_append.
5470 (lto_read_tree): Adjust call to lto_materialize_tree.
5472 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5473 don't use function calls in arguments to MIN.
5475 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5478 * gimple.c (gimple_type_leader_entry): Mark deletable.
5480 2011-04-03 Alan Modra <amodra@gmail.com>
5482 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5484 2011-04-03 Michael Matz <matz@suse.de>
5486 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5488 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5490 2011-04-03 Michael Matz <matz@suse.de>
5492 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5493 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5494 without function context.
5495 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5496 current_function_decl and cfun.
5498 2011-04-03 Michael Matz <matz@suse.de>
5500 * tree.c (decl_init_priority_insert): Don't create entry for
5502 (decl_fini_priority_insert): Ditto.
5503 (fields_compatible_p, find_compatible_field): Remove.
5504 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5505 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5507 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5509 * combine.c (try_combine): Remove useless local variable.
5511 2011-04-03 Richard Guenther <rguenther@suse.de>
5512 Ira Rosen <ira.rosen@linaro.org>
5514 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5515 non-variable offsets and compare the remaining bases of the two
5516 accesses instead of looking for exact same data-ref.
5518 2011-04-02 Kai Tietz <ktietz@redhat.com>
5521 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5523 * i386.c (ix86_is_msabi_thiscall): New helper function.
5524 (ix86_is_type_thiscall): New helper function.
5525 (ix86_comp_type_attributes): Handle thiscall for method-functions
5527 (init_cumulative_args): Likewise.
5528 (find_drap_reg): Likewise.
5529 (ix86_static_chain): Likewise.
5530 (x86_this_parameter): Likewise.
5531 (x86_output_mi_thunk): Likewise.
5533 2011-04-01 Olivier Hainque <hainque@adacore.com>
5534 Nicolas Setton <setton@adacore.com>
5535 Eric Botcazou <ebotcazou@adacore.com>
5537 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5538 (add_gnat_descriptive_type_attribute): New function.
5539 (gen_array_type_die): Call it.
5540 (gen_enumeration_type_die): Likewise.
5541 (gen_struct_or_union_type_die): Likewise.
5542 (modified_type_die): Likewise.
5543 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5544 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5545 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5547 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5550 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5551 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5554 2011-03-17 Richard Guenther <rguenther@suse.de>
5557 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5558 origin for decls in other ltrans units.
5559 (input_varpool_node): Likewise.
5561 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5564 * expr.c (expand_assignment): Handle all possibilities
5565 if TO_RTX is CONCAT.
5566 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5567 (store_split_bit_field): If SUBREG_REG (op0) or
5568 op0 itself has smaller mode than word, return it
5569 for offset 0 and const0_rtx for out-of-bounds stores.
5570 If word is const0_rtx, skip it.
5572 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5574 * config/h8300/h8300.c (print_operand_address): Rename to...
5575 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5576 Call h8300_print_operand and h8300_print_operand_address instead of
5577 print_operand and print_operand_address. Declare.
5578 (print_operand): Renake to...
5579 (h8300_print_operand): ...this. Make static. Adjust comments.
5580 Call h8300_print_operand instead of print_operand. Declare.
5581 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5582 (h8300_register_move_cost): Likewise.
5583 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5584 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5585 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5586 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5587 * config/h8300/h8300-protos.h (print_operand): Delete.
5588 (print_operand_address): Delete.
5590 2011-04-01 Richard Henderson <rth@redhat.com>
5593 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5594 in strict mode before dwarf4. Re-order tests to early out
5595 before switching sections.
5597 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5599 * config/h8300/constraints.md: New file.
5600 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5601 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5602 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5603 * config/h8300/predicates.md (bit_operand): Likewise.
5604 (incdec_operand): Use satisfies_constraint_M and
5605 satisfies_constraint_O. Don't use C code block.
5606 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5607 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5608 (compute_mov_length): Use satisfies_constraint_G.
5609 (fix_bit_operand): Use satisfies_constraint_U.
5610 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5611 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5612 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5613 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5614 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5615 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5616 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5617 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5618 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5619 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5620 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5621 (EXTRA_MEMORY_CONSTRAINT): Delete.
5623 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5624 Michael Meissner <meissner@linux.vnet.ibm.com>
5627 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5628 operands, as per the specifications.
5630 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5631 (vec_extract_evenv4sf): Ditto.
5632 (vec_extract_evenv8hi): Ditto.
5633 (vec_extract_evenv16qi): Ditto.
5634 (vec_extract_oddv4si): Ditto.
5636 2011-03-31 Mark Wielaard <mjw@redhat.com>
5638 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5639 high_pc attribute if the CU has no associated code. Only output
5640 DW_AT_entry_pc for CU if not generating strict dwarf and
5643 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5645 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5646 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5648 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5649 * final.c (final_start_function): Call the new function rather
5650 than using a NULL argument for dwarf2out_frame_debug.
5652 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5653 that contains the prologue.
5655 * haifa-sched.c (queue_insn): New arg REASON. All callers
5656 changed. Print it in debugging output.
5658 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5660 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5661 Split most of the code into...
5662 (begin_move_insn): ... here. New function.
5663 (ebb_sched_info): Add a pointer to it.
5664 * haifa-sched.c (scheduled_insns): New static variable.
5665 (sched_extend_ready_list): Allocate it.
5666 (schedule_block): Use it to record the order of scheduled insns.
5667 Perform RTL changes to move insns only after all scheduling
5668 decisions have been made.
5669 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5670 begin_move_insn field.
5671 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5672 * sched-int.h (struct haifa_sched_info): Remove second argument
5673 from begin_schedule_ready hook. Add new member begin_move_insn.
5674 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5675 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5677 * haifa-sched.c (prune_ready_list): New function, broken out of
5679 (schedule_block): Use it.
5681 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5683 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5685 2011-04-01 Kai Tietz <ktietz@redhat.com>
5687 * config.gcc (*-*-mingw*): Allow as option the
5688 posix threading model.
5689 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5690 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5692 (CPP_SPEC): Add pthread/no-pthread handling.
5693 (LIB_SPEC): Likewise.
5694 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5695 (LIB_SPEC): Likewise.
5696 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5697 flag to pass -pthread option for shared libgcc build.
5698 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5699 for shared libgcc build.
5700 * config/i386/t-mingw-pthread: New file.
5701 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5702 New define to enable use of library pthread by default.
5703 * config/i386/mingw.opt (pthread): New driver option.
5704 (no-pthread): New driver option.
5705 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5706 * config/i386/mingw-w64.opt: Likewise.
5708 2011-04-01 Gary Funck <gary@intrepid.com>
5710 * c-decl.c (grokdeclarator): Fix formatting.
5712 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5714 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5715 instead of n_operands.
5716 (set_storage_via_setmem): Likewise.
5717 * optabs.c (maybe_gen_insn): Likewise.
5718 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5719 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5720 (mips_expand_builtin_direct): Likewise.
5721 * config/spu/spu.c (expand_builtin_args): Likewise.
5723 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5725 * recog.h (insn_data_d): Add n_generator_args.
5726 * genoutput.c (data): Likewise.
5727 (output_insn_data): Print it.
5728 (max_opno, num_dups): Delete.
5729 (scan_operands): Just fill in "d->operand[...]".
5730 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5732 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5734 * gensupport.h (pattern_stats): New structure.
5735 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5736 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5737 (max_operand_1, max_operand_vec): Delete.
5738 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5740 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5742 * emit-rtl.c (emit_pattern_after_setloc): New function.
5743 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5744 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5745 (emit_pattern_after): New function.
5746 (emit_insn_after, emit_jump_insn_after): Call it.
5747 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5748 (emit_pattern_before_setloc): New function.
5749 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5750 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5752 (emit_pattern_before): New function.
5753 (emit_insn_before, emit_jump_insn_before): Call it.
5754 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5756 2011-03-31 Richard Henderson <rth@redhat.com>
5758 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5759 (dw_separate_line_info_entry): Remove.
5760 (enum dw_line_info_opcode): New.
5761 (dw_line_info_entry): Use it.
5762 (dw_line_info_table, dw_line_info_table_p): New.
5763 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5764 (line_info_table, line_info_label_num): Remove.
5765 (line_info_table_in_use): Remove.
5766 (separate_line_info_table): Remove.
5767 (separate_line_info_table_allocated): Remove.
5768 (separate_line_info_table_in_use): Remove.
5769 (LINE_INFO_TABLE_INCREMENT): Remove.
5770 (line_info_label_num): New.
5771 (cur_line_info_table): New.
5772 (text_section_line_info, cold_text_section_line_info): New.
5773 (separate_line_info): New.
5774 (SEPARATE_LINE_CODE_LABEL): Remove.
5775 (print_dwarf_line_table): Remove.
5776 (debug_dwarf): Don't dump it.
5777 (output_one_line_info_table): New.
5778 (output_line_info): Use it.
5779 (new_line_info_table): New.
5780 (set_cur_line_info_table): New.
5781 (dwarf2out_switch_text_section): Use it.
5782 (dwarf2out_begin_function): Likewise.
5783 (push_dw_line_info_entry): New.
5784 (dwarf2out_source_line): Rewrite for new line info tables.
5785 (dwarf2out_init): Remove dead initailizations.
5787 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5789 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5791 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5792 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5793 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5794 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5795 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5796 * opt-functions.awk (flag_init, switch_bit_fields): New.
5797 (switch_flags): Don't handle flags moved to bit-fields. Don't
5798 generate CL_MISSING_OK or CL_SAVE.
5799 * optc-gen.awk: Update to generate bit-field output as well as
5801 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5802 bit-field instead of CL_REJECT_DRIVER flag.
5803 * opts-common.c (generate_canonical_option,
5804 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5805 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5806 instead of CL_REJECT_NEGATIVE flag.
5807 * toplev.c (print_switch_values): Use cl_report bit-field instead
5810 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5812 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5813 a zero minimum index only if it is redundant.
5815 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5817 PR rtl-optimization/48381
5818 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5819 instead of ira_class_hard_reg_index for calculating conflicting
5822 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5824 * cprop.c: Clean up hash table building.
5825 (reg_avail_info): Remove.
5826 (oprs_available_p): Remove.
5827 (record_last_reg_set_info): Remove.
5828 (record_last_set_info): Remove.
5829 (reg_available_p): New function.
5830 (gcse_constant_p): Do not treat unfolded conditions as constants.
5831 (make_set_regs_unavailable): New function.
5832 (hash_scan_set): Simplify with new reg_available_p.
5833 (compute_hash_table_work): Traverse insns stream only once.
5834 Do not compute reg_avail_info. Traverse insns in reverse order.
5835 Record implicit sets after recording explicit sets from the block.
5837 2011-03-31 Michael Matz <matz@suse.de>
5839 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5841 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5843 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5844 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5845 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5846 (h8300_mode_dependent_address_p): New function.
5847 (h8300_get_index): Make static.
5849 2011-03-31 Jeff Law <law@redhat.com>
5851 * reload1.c (elimination_effects): Fix typo in recent change.
5853 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5854 typo potentially leading to null pointer dereference.
5856 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5857 (setup_save_areas): Corresponding changes to avoid useless
5860 * jump.c (reversed_comparison_code_parts): Avoid successive return
5861 statements when REVERSE_CONDITION is defined.
5863 * expr.c (expand_assignment): Avoid useless assignments.
5864 (expand_expr_real_1): Likewise.
5865 (expand_expr_real_2): Avoid useless statements.
5867 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5869 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5871 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5874 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5876 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5879 * doc/tm.texi.in (TARGET_VERSION): Remove.
5880 * doc/tm.texi: Regenerate.
5881 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5882 * collect2.c (main): Don't use TARGET_VERSION.
5883 * mips-tdump.c (main): Don't use TARGET_VERSION.
5884 * mips-tfile.c (main): Don't use TARGET_VERSION.
5885 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5886 * config/rs6000/vxworksae.h: Remove.
5887 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5888 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5889 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5890 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5891 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5892 * config/arm/arm.h (TARGET_VERSION): Remove.
5893 * config/arm/coff.h (TARGET_VERSION): Remove.
5894 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5895 * config/arm/elf.h (TARGET_VERSION): Remove.
5896 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5897 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5898 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5899 * config/arm/pe.h (TARGET_VERSION): Remove.
5900 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5901 * config/arm/semi.h (TARGET_VERSION): Remove.
5902 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5903 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5904 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5905 * config/avr/avr.h (TARGET_VERSION): Remove.
5906 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5907 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5908 * config/frv/frv.h (TARGET_VERSION): Remove.
5909 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5910 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5911 * config/i386/darwin.h (TARGET_VERSION): Remove.
5912 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5913 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5914 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5915 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5916 * config/i386/gnu.h (TARGET_VERSION): Remove.
5917 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5918 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5919 * config/i386/linux.h (TARGET_VERSION): Remove.
5920 * config/i386/linux64.h (TARGET_VERSION): Remove.
5921 * config/i386/lynx.h (TARGET_VERSION): Remove.
5922 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5923 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5924 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5925 * config/i386/netware.h (TARGET_VERSION): Remove.
5926 * config/i386/nto.h (TARGET_VERSION): Remove.
5927 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5928 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5929 * config/ia64/elf.h (TARGET_VERSION): Remove.
5930 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5931 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5932 * config/ia64/linux.h (TARGET_VERSION): Remove.
5933 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5934 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5935 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5936 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5937 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5938 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5939 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5940 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5941 * config/m68k/linux.h (TARGET_VERSION): Remove.
5942 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5943 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5944 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5945 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5946 * config/mep/mep.h (TARGET_VERSION): Remove.
5947 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5948 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5949 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5950 * config/mips/linux.h (TARGET_VERSION): Remove.
5951 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5952 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5953 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5954 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5955 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5956 * config/pa/pa.h (TARGET_VERSION): Remove.
5957 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5958 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5959 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5960 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5961 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5962 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5963 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5964 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5965 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5966 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5967 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5968 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5969 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5970 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5971 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5972 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5973 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5974 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5975 * config/s390/linux.h (TARGET_VERSION): Remove.
5976 * config/s390/s390.h (TARGET_VERSION): Remove.
5977 * config/s390/tpf.h (TARGET_VERSION): Remove.
5978 * config/score/score.h (TARGET_VERSION): Remove.
5979 * config/sh/linux.h (TARGET_VERSION): Remove.
5980 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5981 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5982 * config/sh/sh.h (TARGET_VERSION): Remove.
5983 * config/sh/sh64.h (TARGET_VERSION): Remove.
5984 * config/sh/superh.h (TARGET_VERSION): Remove.
5985 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5986 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5987 * config/sparc/linux.h (TARGET_VERSION): Remove.
5988 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5989 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5990 TARGET_NAME32, TARGET_NAME): Remove.
5991 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5992 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5993 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5994 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5995 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5996 * config/spu/spu.h (TARGET_VERSION): Remove.
5997 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5998 * config/v850/v850.h (TARGET_VERSION): Remove.
5999 * config/vax/linux.h (TARGET_VERSION): Remove.
6000 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6001 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6002 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6004 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6007 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6008 frame-related from frame-unrelated adjustments to the stack pointer.
6010 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6012 * common.opt (fdebug-types-section): Move earlier.
6013 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6015 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6017 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6020 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6022 * tree.h (CASE_CHAIN): Define.
6023 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6024 (gimple_redirect_edge_and_branch): Likewise.
6026 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6029 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6032 2011-03-30 Jeff Law <law@redhat.com>
6034 * PR bootstrap/48371
6035 * reload1.c (reload): Fix botch in last change.
6037 * reload.h (struct reload): Fix typo introduced in last change.
6039 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6041 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6042 Undocumented. Remove help text.
6043 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6046 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6048 * doc/options.texi (NegativeAlias): Document.
6049 (Alias): Mention NegativeAlias.
6050 * opt-functions.awk: Handle NegativeAlias.
6051 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6052 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6053 * opts.h (CL_NEGATIVE_ALIAS): Define.
6054 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6055 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6057 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6059 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6060 mno-spe and mno-isel instead of mspe=no and -misel=no.
6062 2011-03-29 Mark Wielaard <mjw@redhat.com>
6064 * common.opt (fdebug-types-section): New flag.
6065 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6066 * dwarf2out.c (use_debug_types): New define.
6067 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6068 (print_die): Guard output of type unit signatures using
6070 (build_abbrev_table): Replace assert of dwarf_version >= 4
6071 with assert on use_debug_types.
6072 (size_of_die): Likewise.
6073 (unmark_dies): Likewise.
6074 (value_format): Decide AT_ref_external form on use_debug_types.
6075 (output_die): Replace dwarf_version version check guard with
6076 use_debug_types where appropriate.
6077 (modified_type_die): Likewise.
6078 (gen_reference_type_die): Likewise.
6079 (dwarf2out_start_source_file): Likewise.
6080 (dwarf2out_end_source_file): Likewise.
6081 (prune_unused_types_walk_attribs): Likewise.
6082 (dwarf2out_finish): Likewise.
6084 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6086 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6088 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6090 PR rtl-optimization/48332
6091 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6092 mode of input operand N and modeN to its actual mode.
6094 2011-03-30 Jeff Law <law@redhat.com>
6096 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6097 define accessor macro.
6098 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6099 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6100 (reg_equiv_init): Likewise.
6101 (reg_equivs_size): New variable.
6102 (reg_equiv_init_size): Remove.
6103 (allocate_initial_values): Move prototype to here from....
6104 * integrate.h (allocate_initial_values): Remove prototype.
6105 * integrate.c: Include reload.h.
6106 (allocate_initial_values): Corresponding changes.
6107 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6108 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6109 (update_equiv_regs): Corresponding changes.
6110 (ira): Corresponding changes.
6111 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6112 (push_secondary_reload): Corresponding changes.
6113 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6114 (make_memloc, find_reloads_address): Corresponding changes.
6115 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6116 (find_reloads_address_1): Corresponding changes.
6117 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6118 (refers_to_regno_for_reload_p): Corresponding changes.
6119 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6120 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6121 * reload1.c: Include ggc.h.
6122 (grow_reg_equivs): New function.
6123 (replace_pseudos_in, reload): Corresponding changes.
6124 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6125 (eliminate_regs_1, elimination_effects): Corresponding changes.
6126 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6127 (delete_output_reload): Likewise.
6128 * caller-save.c (mark_referenced_regs): Corresponding changes.
6129 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6130 * frv/predicates.md (frv_load_operand): Corresponding changes.
6131 * microblaze/microblaze.c (double_memory_operand): Corresponding
6133 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6134 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6135 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6136 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6137 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6139 * pa/pa.c (emit_move_sequence): Corresponding changes.
6140 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6142 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6145 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6146 structure modes. Don't check neon_vector_mem_operand for
6147 vector or structure modes.
6149 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6150 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6153 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6154 operand 1 and reshuffle the operands to match.
6155 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6157 2011-03-30 Christian Schüler <cschueler@gmx.de>
6160 * config/c.opt (F): Added 'Driver' to -F option.
6163 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6165 * config/darwin.opt: Added '-arch' option.
6167 2011-03-30 Nick Clifton <nickc@redhat.com>
6169 * config/rx/rx.md: Add peepholes and patterns to combine
6170 extending loads and simple arithmetic instructions.
6171 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6172 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6173 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6174 modes to use pre-decrement and post-increment addressing.
6175 (rx_is_restricted_memory_address): Add range checking of REG+INT
6177 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6178 (rx_memory_move_cost): Adjust cost of stores.
6179 (rx_adjust_insn_length): New function.
6181 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6184 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6185 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6186 matching arg00/arg01 types.
6188 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6190 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6191 last_location to UNKNOWN_LOCATION.
6193 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6196 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6199 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6200 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6203 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6205 (sparc_cpu): Likewise.
6206 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6209 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6213 PR rtl-optimization/48345
6214 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6215 hard regs for given mode from profitable regs when doing secondary
6218 2011-03-29 Jeff Law <law@redhat.com>
6221 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6222 do_not_duplicate field.
6223 (lookup_redirection_data): Corresponding changes.
6224 (create_duplicates): Always create a template block.
6225 (redirect_edges): Remove code which reused the original block
6226 when it was going to become unreachable code.
6227 (thread_block): Don't set do_not_duplicate field.
6229 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6231 * lto-opts.c (register_user_option_p, lto_register_user_option):
6232 Make type argument unsigned.
6233 * lto-streamer.h (lto_register_user_option): Make type argument
6235 * opth-gen.awk: Make CL_* macros unsigned.
6236 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6237 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6238 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6239 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6240 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6241 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6242 (find_opt): Make lang_mask argument unsigned.
6244 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6246 PR rtl-optimization/48331
6247 PR rtl-optimization/48334
6248 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6249 for any used algorithm.
6251 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6253 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6256 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6258 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6259 (alpha_option_override): Don't set alpha_sr_alias_set.
6260 (emit_frame_store_1): Use gen_frame_mem rather than calling
6262 (alpha_expand_epilogue): Ditto.
6264 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6266 PR tree-optimization/48290
6267 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6268 vectorization, check that relevant phis in the basic block after
6269 the inner loop are really inner loop's exit phis.
6271 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6274 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6275 (cached_dw_loc_list_def): New structure.
6276 (cached_dw_loc_list): New typedef.
6277 (cached_dw_loc_list_table): New variable.
6278 (cached_dw_loc_list_table_hash): New function.
6279 (cached_dw_loc_list_table_eq): Likewise.
6280 (add_location_or_const_value_attribute): Take a bool cache_p.
6281 Cache the list when the parameter is true.
6282 (gen_formal_parameter_die): Update caller.
6283 (gen_variable_die): Likewise.
6284 (dwarf2out_finish): Likewise.
6285 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6286 while generating debug info for the decl.
6287 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6288 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6289 (resolve_addr): Cache the result of resolving a chain of
6292 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6294 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6295 conflict object hard regset nodes have intersecting hard reg sets.
6297 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6298 after regstat_init_n_sets_and_refs.
6300 * ira.c: Add more comments at the top.
6301 (setup_stack_reg_pressure_class, setup_pressure_classes):
6302 Add comments how we compute the register pressure classes.
6303 (setup_allocno_and_important_classes): Add more comments.
6304 (setup_class_translate_array, reorder_important_classes)
6305 (setup_reg_class_relations): Add comments.
6307 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6310 * ira-color.c: Add 2011 to the Copyright line.
6311 (assign_hard_reg): Add more comments.
6312 (improve_allocation): Ditto.
6314 * ira-costs.c: Add 2011 to the Copyright line.
6315 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6317 (setup_regno_cost_classes_by_mode): Ditto.
6319 Initial patches from ira-improv branch:
6321 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6323 * ira-build.c (ira_create_object): Remove initialization of
6324 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6325 (ira_create_allocno): Remove initialization of
6326 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6327 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6328 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6329 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6330 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6331 Initialize ALLOCNO_ADD_DATA.
6332 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6333 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6335 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6336 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6338 * ira.c (ira_reallocate): Remove.
6339 (setup_pressure_classes): Call
6340 ira_init_register_move_cost_if_necessary. Use
6341 ira_register_move_cost instead of ira_get_register_move_cost.
6342 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6343 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6345 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6346 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6347 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6348 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6349 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6350 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6352 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6353 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6354 (struct allocno_color_data): New.
6355 (allocno_color_data_t): New typedef.
6356 (allocno_color_data): New definition.
6357 (ALLOCNO_COLOR_DATA): New macro.
6358 (struct object_color_data): New.
6359 (object_color_data_t): New typedef.
6360 (object_color_data): New definition.
6361 (OBJECT_COLOR_DATA): New macro.
6362 (update_copy_costs, calculate_allocno_spill_cost): Call
6363 ira_init_register_move_cost_if_necessary. Use
6364 ira_register_move_cost instead of ira_get_register_move_cost.
6365 (move_spill_restore, update_curr_costs): Ditto.
6366 (allocno_spill_priority): Make it inline.
6367 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6368 (struct coalesce_data, coalesce_data_t): New.
6369 (allocno_coalesce_data): New definition.
6370 (ALLOCNO_COALESCE_DATA): New macro.
6371 (merge_allocnos, coalesced_allocno_conflict_p): Use
6372 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6373 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6374 (coalesce_allocnos): Ditto.
6375 (setup_coalesced_allocno_costs_and_nums): Ditto.
6376 (collect_spilled_coalesced_allocnos): Ditto.
6377 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6378 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6379 (coalesce_spill_slots): Ditto.
6380 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6381 free allocno_coalesce_data.
6383 * ira-conflicts.c: Fix formatting.
6384 (process_regs_for_copy): Call
6385 ira_init_register_move_cost_if_necessary. Use
6386 ira_register_move_cost instead of ira_get_register_move_cost.
6387 (build_object_conflicts): Optimize.
6389 * ira-costs.c (record_reg_classes): Optimize. Call
6390 ira_init_register_move_cost_if_necessary. Use
6391 ira_register_move_cost, ira_may_move_in_cost, and
6392 ira_may_move_out_cost instead of ira_get_register_move_cost and
6393 ira_get_may_move_cost.
6394 (record_address_regs): Ditto.
6395 (scan_one_insn): Optimize.
6396 (find_costs_and_classes): Optimize.
6397 (process_bb_node_for_hard_reg_moves): Call
6398 ira_init_register_move_cost_if_necessary. Use
6399 ira_register_move_cost instead of ira_get_register_move_cost.
6401 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6402 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6403 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6404 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6406 (ira_initiate_emit_data, ira_finish_emit_data)
6407 (create_new_allocno): New functions.
6408 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6409 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6410 Use ira_register_move_cost instead of ira_get_register_move_cost.
6412 * ira-int.h: Fix some comments.
6413 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6414 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6415 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6416 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6418 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6419 bitfield after mode. Make hard_regno a short int. Make
6420 hard_regno short. Remove first_coalesced_allocno and
6421 next_coalesced_allocno. Move mem_optimized_dest_p,
6422 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6423 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6424 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6425 temp, colorable_p. Add new member add_data.
6426 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6427 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6428 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6429 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6430 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6431 (ALLOCNO_ADD_DATA): New macro.
6432 (ira_emit_data_t): New typedef.
6433 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6434 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6435 from struct ira_allocno.
6436 (ALLOCNO_EMIT_DATA): New macro.
6437 (ira_allocno_emit_data, allocno_emit_reg): New.
6438 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6439 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6440 (OBJECT_ADD_DATA): New macro.
6441 (ira_reallocate): Remove.
6442 (ira_initiate_emit_data, ira_finish_emit_data): New.
6443 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6444 (ira_init_register_move_cost_if_necessary): New.
6445 (ira_object_conflict_iter_next): Merge into
6446 ira_object_conflict_iter_cond.
6447 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6449 * ira-live.c (process_single_reg_class_operands): Call
6450 ira_init_register_move_cost_if_necessary. Use
6451 ira_register_move_cost instead of ira_get_register_move_cost.
6453 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6455 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6457 * ira-costs.c: Fix formatting.
6458 (cost_classes, cost_classes_num): Remove.
6459 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6460 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6461 (cost_classes_del, cost_classes_htab): New.
6462 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6463 (initiate_regno_cost_classes, setup_cost_classes): New.
6464 (setup_regno_cost_classes_by_aclass): New.
6465 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6466 (record_reg_classes): Use regno_cost_classes instead of
6467 cost_classes. Move checking opposite operand up.
6468 (record_address_regs): Use regno_cost_classes
6469 instead of cost_classes.
6470 (scan_one_insn): Ditto. Use always general register.
6471 (print_allocno_costs): Use regno_cost_classes instead of
6473 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6474 (find_costs_and_classes): Set up cost classes for each registers.
6475 Use also their mode for this. Use regno_cost_classes instead of
6477 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6479 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6480 (ira_costs, ira_set_pseudo_classes): Call
6481 initiate_regno_cost_classes and finish_regno_cost_classes.
6483 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6485 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6487 * target.def (ira_cover_classes): Remove.
6489 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6491 * doc/tm.texi.in: Ditto.
6493 * ira-conflicts.c: Remove mentioning cover classes from the file.
6494 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6495 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6497 * targhooks.c (default_ira_cover_classes): Remove.
6499 * targhooks.h (default_ira_cover_classes): Ditto.
6501 * haifa-sched.c: Remove mentioning cover classes from the file.
6502 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6503 ira_pressure_classes and ira_pressure_classes_num instead of
6504 ira_reg_class_cover_size and ira_reg_class_cover. Use
6505 sched_regno_pressure_class instead of sched_regno_cover_class.
6506 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6507 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6509 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6510 classes from the file.
6511 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6512 (struct object_hard_regs, struct object_hard_regs_node): New.
6513 (struct ira_object): New members profitable_hard_regs,
6514 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6515 (struct ira_allocno): Rename cover_class to aclass. Rename
6516 cover_class_cost and updated_cover_class_cost to class_cost and
6517 updated_class_cost. Remove splay_removed_p and
6518 left_conflict_size. Add new members colorable_p.
6519 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6520 (ALLOCNO_COLORABLE_P): New macro.
6521 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6522 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6523 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6524 (OBJECT_...): Rename parameter C to O.
6525 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6526 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6527 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6528 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6529 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6530 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6531 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6532 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6533 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6534 x_ira_reg_class_subunion.
6535 (ira_max_memory_move_cost, ira_max_register_move_cost)
6536 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6537 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6538 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6539 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6540 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6541 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6542 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6543 (ira_tune_allocno_costs_and_cover_classes): Rename to
6544 ira_tune_allocno_costs.
6545 (ira_debug_hard_regs_forest): New.
6546 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6547 (ira_object_conflict_iter_next): Fix comments.
6548 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6549 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6550 cover_class to aclass.
6551 (ira_allocate_and_accumulate_costs): Ditto.
6552 (ira_allocate_and_set_or_copy_costs): Ditto.
6554 * opts.c (decode_options): Remove ira_cover_class check.
6556 * ira-color.c: Remove mentioning cover classes from the file. Use
6557 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6558 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6559 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6560 (splay-tree.h): Remove include.
6561 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6562 before copy_freq_compare_func.
6563 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6564 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6566 (hard_regs_roots, hard_regs_node_vec): Ditto.
6567 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6568 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6569 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6570 (create_new_object_hard_regs_node): Ditto.
6571 (add_new_object_hard_regs_node_to_forest): Ditto.
6572 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6573 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6575 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6576 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6577 (remove_unused_object_hard_regs_nodes): Ditto.
6578 (enumerate_object_hard_regs_nodes): Ditto.
6579 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6580 (object_hard_regs_subnode_t): Ditto.
6581 (struct object_hard_regs_subnode): Ditto.
6582 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6583 (setup_object_hard_regs_subnode_index): Ditto.
6584 (get_object_hard_regs_subnodes_num): Ditto.
6585 (form_object_hard_regs_nodes_forest): Ditto.
6586 (finish_object_hard_regs_nodes_tree): Ditto.
6587 (finish_object_hard_regs_nodes_forest): Ditto.
6588 (allocnos_have_intersected_live_ranges_p): Rename to
6589 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6590 (pseudos_have_intersected_live_ranges_p): Rename to
6591 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6592 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6593 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6594 (update_copy_costs): Remove assert. Skip cost update if the hard
6595 reg does not belong the class.
6596 (assign_hard_reg): Process only profitable hard regs.
6597 (uncolorable_allocnos_num): Make it scalar.
6598 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6599 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6600 and ira_reg_class_max_nregs.
6601 (bucket_allocno_compare_func): Check frequency first.
6602 (sort_bucket): Add compare function as a parameter.
6603 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6604 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6605 (push_allocno_to_stack): Rewrite for checking new allocno
6607 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6608 (push_only_colorable): Pass new parameter to sort_bucket.
6609 (push_allocno_to_spill): Remove.
6610 (allocno_spill_priority_compare): Make it inline and rewrite.
6611 (splay_tree_allocate, splay_tree_free): Remove.
6612 (allocno_spill_sort_compare): New function.
6613 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6614 build and use splay tree. Choose first allocno in uncolorable
6615 allocno bucket to spill. Remove setting spill cost.
6616 (all_conflicting_hard_regs): Remove.
6617 (setup_allocno_available_regs_num): Check only profitable hard
6618 regs. Print info about hard regs nodes.
6619 (setup_allocno_left_conflicts_size): Remove.
6620 (put_allocno_into_bucket): Don't call
6621 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6622 (improve_allocation): New.
6623 (color_allocnos): Call setup_profitable_hard_regs,
6624 form_object_hard_regs_nodes_forest, improve_allocation,
6625 finish_object_hard_regs_nodes_forest. Setup spill cost.
6626 (print_loop_title): Use pressure classes.
6627 (color_allocnso): Ditto.
6628 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6629 and allocnos_for_spilling.
6630 (ira_sort_regnos_for_alter_reg): Don't setup members
6631 {first,next}_coalesced_allocno.
6632 (color): Remove allocating and freeing removed_splay_allocno_vec.
6633 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6634 prohibited_class_mode_regs.
6636 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6638 (update_allocno_pressure_excess_length): Use pressure classes.
6639 (inc_register_pressure, dec_register_pressure): Check for pressure
6641 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6642 pressure class. Use ira_reg_class_nregs instead of
6643 ira_reg_class_max_nregs.
6644 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6645 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6646 (single_reg_class): Use ira_reg_class_nregs instead of
6647 ira_reg_class_max_nregs.
6648 (process_bb_node_lives): Use pressure classes.
6650 * ira-emit.c: Remove mentioning cover classes from the file. Use
6651 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6652 (change_loop): Use pressure classes.
6653 (modify_move_list): Call ira_set_allocno_class instead of
6654 ira_set_allocno_cover_class.
6656 * ira-build.c: Remove mentioning cover classes from the file. Use
6657 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6658 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6659 ALLOCNO_UPDATED_CLASS_COST instead of
6660 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6661 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6662 (ira_create_allocno): Remove initialization of
6663 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6664 ALLOCNO_COLORABLE_P.
6665 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6666 Update conflict regs for the objects.
6667 (create_cap_allocno): Remove assert. Don't propagate
6668 ALLOCNO_AVAILABLE_REGS_NUM.
6669 (ira_free_allocno_costs): New function.
6670 (finish_allocno): Change a part of code into call of
6671 ira_free_allocno_costs.
6672 (low_pressure_loop_node_p): Use pressure classes.
6673 (object_range_compare_func): Don't compare classes.
6674 (setup_min_max_conflict_allocno_ids): Ditto.
6676 * loop-invariant.c: Remove mentioning cover classes from the file.
6677 Use ira_pressure_classes and ira_pressure_classes_num instead of
6678 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6679 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6680 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6681 Use reg_allocno_class instead of reg_cover_class.
6682 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6683 STACK_REG_COVER_CLASS.
6684 (get_regno_cover_class): Rename to get_regno_pressure_class.
6685 (move_loop_invariants): Initialize and finalize regstat.
6687 * ira.c: Remove mentioning cover classes from the file. Add
6688 comments about coloring without cover classes. Use ALLOCNO_CLASS
6689 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6690 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6691 setup_class_subset_and_memory_move_costs.
6692 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6693 (setup_cover_and_important_classes): Rename to
6694 setup_allocno_and_important_classes.
6695 (setup_class_translate_array): New.
6696 (setup_class_translate): Call it for allocno and pressure classes.
6697 (cover_class_order): Rename to allocno_class_order.
6698 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6699 of ira_class_translate.
6700 (reorder_important_classes): Set up ira_important_class_nums.
6701 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6702 (print_class_cover): Rename to print_classes. Add parameter.
6703 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6704 Print pressure classes too.
6705 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6706 setup_reg_subclasses.
6707 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6708 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6709 (setup_prohibited_class_mode_regs): Use
6710 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6711 (clarify_prohibited_class_mode_regs): New function.
6712 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6713 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6714 (ira_init_once): Initialize them.
6715 (free_register_move_costs): Process them.
6716 (ira_init): Move calls of find_reg_classes and
6717 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6718 Call clarify_prohibited_class_mode_regs.
6719 (ira_no_alloc_reg): Remove.
6720 (too_high_register_pressure_p): Use pressure classes.
6722 * sched-deps.c: Remove mentioning cover classes from the file.
6723 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6724 ira_pressure_classes and ira_pressure_classes_num instead of
6725 ira_reg_class_cover_size and ira_reg_class_cover.
6726 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6727 sched_regno_pressure_class instead of sched_regno_cover_class.
6728 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6729 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6731 * ira.h: Add 2010 to Copyright.
6732 (ira_no_alloc_reg): Remove external.
6733 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6734 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6735 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6736 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6737 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6738 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6739 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6740 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6741 x_ira_no_alloc_regs.
6742 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6743 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6744 ira_allocno_classes_num and ira_allocno_classes.
6745 (ira_class_translate): Rename to ira_allocno_class_translate.
6746 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6747 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6748 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6749 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6750 (ira_no_alloc_regs): New.
6752 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6753 classes from the file. Use ALLOCNO_CLASS instead of
6754 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6755 ALLOCNO_COVER_CLASS_COST.
6756 (regno_cover_class): Rename to regno_aclass.
6757 (record_reg_classes): Use ira_reg_class_subunion instead of
6758 ira_reg_class_union.
6759 (record_address_regs): Check overflow.
6760 (scan_one_insn): Ditto.
6761 (print_allocno_costs): Print total mem cost fore regional allocation.
6762 (print_pseudo_costs): Use REG_N_REFS.
6763 (find_costs_and_classes): Use classes intersected with them on the
6764 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6765 ira_reg_class_union. Use ira_allocno_class_translate and
6766 regno_aclass instead of ira_class_translate and regno_cover_class.
6767 Modify code for finding regno_aclass. Setup preferred classes for
6769 (setup_allocno_cover_class_and_costs): Rename to
6770 setup_allocno_class_and_costs. Use regno_aclass instead of
6771 regno_cover_class. Use ira_set_allocno_class instead of
6772 ira_set_allocno_cover_class.
6773 (init_costs, finish_costs): Use regno_aclass instead of
6775 (ira_costs): Use setup_allocno_class_and_costs instead of
6776 setup_allocno_cover_class_and_costs.
6777 (ira_tune_allocno_costs_and_cover_classes): Rename to
6778 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6779 by processing objects. Use ira_reg_class_max_nregs instead of
6780 ira_reg_class_nregs.
6782 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6784 * sched-int.h: Remove mentioning cover classes from the file.
6785 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6787 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6788 classes from the file.
6789 (struct reg_pref): Rename coverclass into allocnoclass.
6790 (reg_cover_class): Rename to reg_allocno_class.
6792 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6794 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6796 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6798 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6800 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6802 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6804 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6806 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6808 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6810 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6812 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6813 (i386_ira_cover_classes): Ditto.
6815 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6817 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6819 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6821 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6823 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6825 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6827 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6828 (mips_ira_cover_classes): Ditto.
6830 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6832 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6834 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6836 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6838 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6840 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6841 (IRA_COVER_CLASSES_VSX): Ditto.
6843 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6844 (rs6000_ira_cover_classes): Ditto.
6846 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6848 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6850 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6852 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6854 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6856 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6858 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6860 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6862 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6864 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6866 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6869 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6870 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6871 dw_fde_unlikely_section_end_label, cold_in_std_section,
6872 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6873 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6875 (output_fde): Use dw_fde_second_{begin,end} if second is
6876 true, otherwise dw_fde_{begin,end}.
6877 (output_call_frame_info): Test dw_fde_second_begin != NULL
6878 instead of dw_fde_switched_sections.
6879 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6880 fields, initialize new fields. Initialize in_std_section
6881 unconditionally from the first partition.
6882 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6883 dw_fde_second_begin is non-NULL.
6884 (dwarf2out_switch_text_section): Stop initializing removed
6885 dw_fde_struct fields, initialize new fields, initialize
6886 also dw_fde_end here. Set dw_fde_switch_cfi even when
6887 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6888 (struct var_loc_list_def): Add last_before_switch field.
6889 (arange_table, arange_table_allocated, arange_table_in_use,
6890 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6891 (size_of_aranges): Count !in_std_section and !second_in_std_section
6892 hunks in fdes, instead of looking at arange_table_in_use.
6893 (output_aranges): Add aranges_length argument, don't call
6894 size_of_aranges here. Instead of using aranges_table*
6895 emit ranges for fdes when !in_std_section resp.
6896 !second_in_std_section.
6897 (dw_loc_list): Break ranges crossing section switch.
6898 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6899 use dw_fde_second_end instead of dw_fde_end as end of last range.
6900 (gen_subprogram_die): Don't call add_arange. Use
6901 dw_fde_{begin,end} for first partition and if switched
6902 section dw_fde_second_{begin,end} for the second.
6903 (var_location_switch_text_section_1,
6904 var_location_switch_text_section): New functions.
6905 (dwarf2out_begin_function): Initialize cold_text_section even
6906 when function_section () isn't text_section.
6907 (prune_unused_types): Don't walk arange_table.
6908 (dwarf2out_finish): Don't needlessly test
6909 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6910 If info_section_emitted, call size_of_aranges and if it indicates
6911 non-empty .debug_aranges, call output_aranges with the computed
6912 size. Stop using removed dw_fde_struct fields, use
6913 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6917 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6918 create ENTRY_VALUE if incoming or address of incoming's MEM
6920 * dwarf2out.c (mem_loc_descriptor): Don't emit
6921 DW_OP_GNU_entry_value of DW_OP_fbreg.
6922 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6923 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6924 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6925 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6927 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6928 is a REG_P or MEM_P with REG_P address, compute hash directly
6929 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6930 (preserve_only_constants): Don't clear VALUES forwaring
6931 ENTRY_VALUE to some other VALUE.
6933 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6935 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6938 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6940 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6941 block before expanding the statement.
6942 (expand_gimple_stmt_1): Likewise. Set them here...
6943 (expand_gimple_stmt): ...and not here. Tidy.
6944 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6947 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6949 * Makefile.in: New rule for cprop.o.
6950 * gcse.c: Move constant/copy propagation to cprop.c.
6951 (compute_local_properties): Only handle expression tables.
6952 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6953 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6954 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6955 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6956 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6957 compute_cprop_data, find_used_regs, try_replace_reg,
6958 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6959 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6960 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6961 find_bypass_set, reg_killed_on_edge, bypass_block,
6962 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6963 execute_rtl_cprop, pass_rtl_cprop): Move to...
6964 * cprop.c: ...here. New file, constant/copy propagation for RTL
6965 moved from gcse.c to here with minor cleanups in duplicated code.
6967 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6969 * config/i386/i386.c (flag_opts): Fix a typo in
6970 -mavx256-split-unaligned-store.
6972 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6974 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6975 LIBCALL_VALUE): Remove macros.
6976 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6977 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6978 (h8300_function_value, h8300_libcall_value,
6979 h8300_function_value_regno_p): New functions.
6981 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6983 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6985 2011-03-28 Jeff Law <law@redhat.com>
6987 * tree-ssa-threadupdate.c (redirect_edges): Call
6988 create_edge_and_update_destination_phis as needed.
6989 (create_edge_and_update_destination_phis): Accept new BB argument.
6990 All callers updated.
6991 (thread_block): Do not update the profile when threading around
6992 intermediate blocks.
6993 (thread_single_edge): Likewise.
6994 (determine_bb_domination_status): If BB is not a successor of the
6995 loop header, return NONDOMINATING.
6996 (register_jump_thread): Note when we register a jump thread around
6997 an intermediate block.
6998 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6999 (thread_across_edge): Use it.
7001 2011-03-28 Tristan Gingold <gingold@adacore.com>
7003 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7004 when for_return is 2.
7006 2011-03-28 Jeff Law <law@redhat.com>
7008 * var-tracking.c (canonicalize_values_mark): Delete unused
7010 (canonicalize_values_star, set_variable_part): Likewise.
7011 (clobber_variable_part, delete_variable_part): Likewise.
7013 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7015 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7017 2011-03-28 Martin Jambor <mjambor@suse.cz>
7019 * tree-inline.c (expand_call_inline): Do not check that destination
7021 (optimize_inline_calls): Assert that destination node is analyzed.
7022 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7023 not call tree_lowering_passes.
7024 * cgraph.h (cgraph_analyze_function): Declare.
7025 * cgraphunit.c (cgraph_analyze_function): Make public.
7027 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7029 * config/sparc/sparc-opts.h: New.
7030 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7031 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7032 (sparc_option_override): Store processor_type enumeration rather
7033 than string in cpu_default. Remove name and enumeration from
7034 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7035 without using sparc_select. Use target_flags_explicit instead of
7037 * config/sparc/sparc.h (enum processor_type): Move to
7039 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7040 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7041 HeaderInclude entry.
7042 (mcpu=, mtune=): Use Var and Enum.
7043 (sparc_processor_type): New Enum and EnumValue entries.
7045 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7046 Iain Sandoe <iains@gcc.gnu.org>
7049 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7051 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7053 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7054 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7055 Insert new statements at it in lieu of STMT.
7056 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7057 * tree-vect-stmts.c (vectorizable_store): Likewise.
7058 (vectorizable_load): Likewise.
7060 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7062 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7067 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7069 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7070 unaligned 256bit load/store.
7071 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7072 (*avx_movdqu<avxmodesuffix>): Likewise.
7074 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7077 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7078 * config/pa/pa.md (iordi3): Use new predicate in expander.
7081 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7083 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7084 FUNCTION_VALUE_REGNO_P): Remove macros.
7085 * config/mips/mips-protos.h (mips_function_value): Remove.
7086 * config/mips/mips.c (mips_function_value): Rename to...
7087 (mips_function_value_1): ... this. Make static. Handle receiving
7088 the function type in 'fn_decl_or_type' argument.
7089 (mips_function_value, mips_libcall_value,
7090 mips_function_value_regno_p): New function.
7091 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7092 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7094 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7096 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7097 and -mavx256-split-unaligned-store.
7098 (ix86_option_override_internal): Split 32-byte AVX unaligned
7099 load/store by default.
7100 (ix86_avx256_split_vector_move_misalign): New.
7101 (ix86_expand_vector_move_misalign): Use it.
7103 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7104 -mavx256-split-unaligned-store.
7106 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7107 256bit load/store. Generate unaligned store on misaligned memory
7109 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7111 (*avx_movdqu<avxmodesuffix>): Likewise.
7113 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7114 -mavx256-split-unaligned-store.
7116 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7119 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7122 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7124 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7125 opno arguments with an expand_operand. Use create_input_operand.
7126 (mips_prepare_builtin_target): Delete.
7127 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7129 (mips_expand_builtin_direct): Use create_output_operand and
7130 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7131 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7132 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7134 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7136 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7138 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7140 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7142 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7143 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7144 basic blocks and call commit_edge_insertions directly.
7145 (fixup_abnormal_edges): Move from here to...
7146 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7147 on the edges and return whether some have actually been inserted.
7148 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7151 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7153 PR rtl-optimization/48144
7154 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7155 (merge_expr_data): ... here.
7156 (av_set_intersect): Rename to av_set_code_motion_filter.
7157 Update all callers. Call merge_history_vect when an expression
7158 is found in both sets.
7159 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7161 2011-03-26 Alan Modra <amodra@gmail.com>
7163 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7164 cmodel medium addresses.
7165 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7166 64-bit gpr loads and stores.
7167 (rs6000_secondary_reload_ppc64): New function.
7168 * config/rs6000/rs6000-protos.h: Declare it.
7169 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7171 2011-03-26 Alan Modra <amodra@gmail.com>
7174 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7175 GNU Go in traceback table.
7177 2011-03-25 Richard Henderson <rth@redhat.com>
7179 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7180 if there are exactly 6 operands.
7181 (set_storage_via_setmem): Similarly.
7183 2011-03-25 Kai Tietz <ktietz@redhat.com>
7185 * collect2.c (write_c_file_stat): Handle backslash
7186 as right-hand directory separator.
7187 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7188 checking just for slash.
7189 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7190 instead of checking for trailing slash.
7191 * gcc.c (record_temp_file): Use filename_cmp instead
7193 (do_spec_1): Likewise.
7194 (replace_outfile_spec_function): Likewise.
7195 (is_directory): Use filename_ncmp instead of strncmp.
7196 (print_multilib_info): Likewise.
7197 * gcov.c (find_source): Use filename_cmp instead
7199 (make_gcov_file_name): Fix order of slash/backslash
7201 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7202 (add_standard_paths): Likewise.
7203 * mips-tfile.c (saber_stop): Handle backslash.
7204 * prefix.c (update_path): Use filename_ncmp instead of
7206 * profile.c (output_location): Use filename_cmp instead
7208 * read-md.c (handle_toplevel_file): Handle backslash.
7209 * tlink.c (frob_extension): Likewise.
7210 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7212 * tree-dump.c (dequeue_and_dump): Handle backslash.
7213 * tree.c (get_file_function_name): Likewise.
7214 * gengtype.c (read_input_list): Likewise.
7215 (get_file_realbasename): Likewise.
7216 (get_output_file_with_visibility): Use filename_cmp
7219 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7221 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7224 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7226 * fold-const.c (expr_location_or): New function.
7227 (fold_truth_not_expr): Call it.
7229 2011-03-25 Jeff Law <law@redhat.com>
7231 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7233 * c-family/c-common.c (def_fn_type): Likewise.
7234 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7235 * emit-rtl.c (gen_rtvec): Likewise.
7236 * lto/lto-lang.c (def_fn_type): Likewise.
7238 2011-03-25 Richard Guenther <rguenther@suse.de>
7240 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7241 also generate copies.
7242 (fini_copy_prop): Handle constant values properly.
7244 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7246 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7247 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7248 (hash_loc_operands, compare_loc_operands): Handle
7249 DW_OP_GNU_entry_value.
7251 2011-03-25 Kai Tietz <ktietz@redhat.com>
7253 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7254 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7255 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7256 comment and use macro TARGET_64BIT_MS_ABI instead.
7257 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7258 and change default behavior for 32-bit MS_ABI.
7259 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7260 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7262 (ix86_cfun_abi): Likewise.
7263 (ix86_maybe_switch_abi): Adjust comment.
7264 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7265 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7266 instead of checking for SYSV_ABI.
7267 (ix86_nsaved_sseregs): Likewise.
7268 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7270 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7271 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7272 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7273 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7274 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7276 2011-03-25 Richard Guenther <rguenther@suse.de>
7278 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7279 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7280 (verify_gimple): Remove.
7281 * tree-cfg.c (verify_gimple_call): Merge verification
7283 (verify_gimple_phi): Merge verification from verify_stmts.
7284 (verify_gimple_label): New function.
7285 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7286 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7287 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7288 (verify_stmts): Rename to verify_gimple_in_cfg.
7289 (verify_gimple_in_cfg): New function.
7290 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7291 * tree-ssa.c (verify_ssa): Likewise.
7292 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7294 2011-03-25 Richard Guenther <rguenther@suse.de>
7296 * passes.c (init_optimization_passes): Add FRE pass after
7299 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7300 Andrew Stubbs <ams@codesourcery.com>
7302 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7304 (arm_movdi_vfp_cortexa8): New pattern.
7305 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7306 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7307 instructions when tuning for Cortex-A8. Set attribute "arch".
7308 * config/arm/arm.md: Move include arm-tune.md up a bit.
7309 (define_attr "arch"): Add "onlya8" and "nota8" values.
7310 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7312 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7316 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7318 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7319 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7320 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7321 * passes.c (init_optimization_passes): Move
7322 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7324 2011-03-25 Kai Tietz <ktietz@redhat.com>
7326 * c-typeck.c (comptypes_internal): Replace target
7327 hook call of comp_type_attributes by version in tree.c file.
7328 * gimple.c (gimple_types_compatible_p_1): Likewise.
7329 * tree-ssa.c (useless_type_conversion_p): Likewise.
7330 * tree.c (build_type_attribute_qual_variant): Likewise.
7331 (attribute_value_equal): New static helper function.
7332 (comp_type_attributes): New function.
7333 (merge_attributes): Use attribute_value_equal for comparison.
7334 (attribute_list_contained): Likewise.
7335 * tree.h (comp_type_attributes): New prototype.
7337 2011-03-25 Richard Guenther <rguenther@suse.de>
7339 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7340 of complex types at -O0.
7341 (verify_gimple_assign_binary): Likewise.
7342 (verify_gimple_assign_ternary): Likewise.
7344 2011-03-24 Mark Wielaard <mjw@redhat.com>
7346 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7347 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7349 2011-03-24 Mark Wielaard <mjw@redhat.com>
7352 * dwarf2out.c (output_abbrev_section): Only write table when
7353 abbrev_die_table_in_use > 1.
7355 2011-02-24 Richard Henderson <rth@redhat.com>
7357 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7358 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7359 (alpha_expand_unaligned_load_words): Use extql.
7360 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7361 (emit_insxl): Handle all modes for consistency.
7363 2011-02-24 Richard Henderson <rth@redhat.com>
7365 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7366 (alpha_expand_unaligned_load): Likewise.
7367 (alpha_expand_unaligned_store): Likewise.
7368 (alpha_expand_unaligned_load_words): Likewise.
7369 (alpha_expand_unaligned_store_words): Likewise.
7370 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7371 (alpha_split_lock_test_and_set_12): Likewise.
7372 (print_operand, alpha_fold_builtin_extxx): Likewise.
7373 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7374 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7375 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7376 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7377 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7378 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7379 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7380 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7381 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7382 (extwl, extll, extql): Similarly.
7383 (inswh, inslh, insqh): Similarly.
7384 (mskbl, mskwl, mskll, mskql): Similarly.
7385 (mskwh, msklh, mskqh): Similarly.
7387 2011-02-24 Richard Henderson <rth@redhat.com>
7389 * config/alpha/alpha.md (attribute isa): Add er, ner.
7390 (attribute enabled): Handle them.
7391 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7393 2011-02-24 Richard Henderson <rth@redhat.com>
7395 * config/alpha/alpha.md (attribute isa): Add vms.
7396 (attribute enabled): Handle it.
7397 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7398 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7399 (*movtf): Rename from *movtf_internal for consistency.
7400 (*movsi): Merge with *movsi_nt_vms.
7401 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7402 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7403 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7404 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7406 2011-02-24 Richard Henderson <rth@redhat.com>
7408 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7409 (extendqisi2, extendhisi2): Likewise.
7410 (extendqidi2): Simplify BWX/non-BWX expansions.
7411 (extendhidi2): Similarly.
7413 2011-02-24 Richard Henderson <rth@redhat.com>
7415 * config/alpha/alpha.md (attribute isa): New.
7416 (attribute enabled): New.
7417 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7418 (zero_extendqisi2, zero_extendqidi2): Similarly.
7419 (zero_extendhisi2, zero_extendhidi2): Similarly.
7420 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7422 2011-02-24 Richard Henderson <rth@redhat.com>
7424 * config/alpha/predicates.md (input_operand): Revert last change;
7425 update comment to mention 32-bit VMS rather than Windows.
7427 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7429 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7430 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7431 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7432 * passes.c (init_optimization_passes): Move
7433 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7435 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7437 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7439 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7441 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7444 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7447 * simplify-rtx.c (simplify_const_unary_operation): Call
7448 real_convert when changing mode class with FLOAT_EXTEND.
7450 2011-03-24 Nick Clifton <nickc@redhat.com>
7452 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7453 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7454 * config/rx/rx.c (rx_option_override): Set align_jumps,
7455 align_loops and align_labels if not set by the user.
7456 (rx_align_for_label): New function.
7457 (rx_max_skip_for_label): New function.
7458 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7459 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7460 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7461 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7462 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7464 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7466 PR rtl-optimization/48263
7467 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7468 and original commutative_p handling. Use maybe_gen_insn.
7470 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7472 * reload.c (find_reloads_subreg_address): Add address_reloaded
7473 parameter and return true there if the full address has been
7475 (find_reloads_toplev): Pass address_reloaded flag.
7476 (find_reloads_address_1): Don't use address_reloaded parameter.
7478 2011-03-24 Jeff Law <law@redhat.com>
7480 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7481 unused variable "ann".
7482 (remove_unused_locals): Likewise.
7484 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7487 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7490 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7492 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7493 for invalid symbolic addresses.
7494 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7497 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7499 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7500 the argument in calls to fold_truth_not_expr.
7502 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7504 * tree.c (record_node_allocation_statistics): New function.
7505 (make_node_stat, copy_node_stat, build_string): Call it.
7506 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7507 (build1_stat, build_omp_clause): Likewise.
7509 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7511 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7514 2011-03-24 Richard Guenther <rguenther@suse.de>
7516 PR tree-optimization/48271
7517 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7518 blocks that still exist.
7520 2011-03-24 Richard Guenther <rguenther@suse.de>
7522 PR tree-optimization/48270
7523 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7524 not free datarefs before ddrs.
7526 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7528 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7529 from the address built for a reference with variable offset.
7531 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7534 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7535 alternatives that can be handled with movq or movabsq insn.
7536 (*movdf_internal): Disable for !TARGET_64BIT.
7537 (*movdf_internal_nointeger): Ditto.
7538 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7540 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7542 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7543 (FUNCTION_ARG_ADVANCE): Likewise.
7544 * tm.texi.in: Change references to them to hook references.
7545 * tm.texi: Regenerate.
7546 * targhooks.c (default_function_arg): Eliminate check for target macro.
7547 (default_function_incoming_arg): Likewise.
7548 (default_function_arg_advance): Likewise.
7549 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7550 (function_arg_advance): Likewise.
7551 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7553 2011-03-24 Richard Guenther <rguenther@suse.de>
7556 * tree-object-size.c (addr_object_size): Do not double-account
7557 for MEM_REF offsets.
7559 2011-03-24 Diego Novillo <dnovillo@google.com>
7561 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7562 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7563 (lto_input_data_block): Move from lto-opts.c. Make extern.
7565 (lto_input_string): Rename from input_string. Make extern.
7567 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7568 output_string_with_length.
7569 Output 0 to indicate a non-NULL string. Update all callers to
7571 (lto_output_string): Rename from output_string. Make extern.
7573 (lto_output_decl_state_streams): Make extern.
7574 (lto_output_decl_state_refs): Make extern.
7575 * lto-streamer.h (lto_input_string): Declare.
7576 (lto_input_data_block): Declare.
7577 (lto_output_string): Declare.
7578 (lto_output_string_with_length): Declare.
7579 (lto_output_decl_state_streams): Declare.
7580 (lto_output_decl_state_refs): Declare.
7582 2011-03-24 Richard Guenther <rguenther@suse.de>
7584 PR tree-optimization/46562
7585 * tree.c (build_invariant_address): New function.
7586 * tree.h (build_invariant_address): Declare.
7587 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7588 a renamed function moved ...
7589 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7590 Take valueization callback parameter.
7591 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7592 * gimple-fold.h: New file.
7593 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7594 (ccp_fold, fold_const_aggregate_ref,
7595 fold_ctor_reference, fold_nonarray_ctor_reference,
7596 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7597 get_base_constructor): Move ...
7598 * gimple-fold.c: ... here.
7599 (gimple_fold_stmt_to_constant_1): New function
7600 split out from ccp_fold. Take a valueization callback parameter.
7601 Valueize all operands.
7602 (gimple_fold_stmt_to_constant): New wrapper function.
7603 (fold_const_aggregate_ref_1): New function split out from
7604 fold_const_aggregate_ref. Take a valueization callback parameter.
7605 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7606 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7607 invariant POINTER_PLUS_EXPRs to invariant form.
7608 (vn_valueize): New function.
7609 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7610 * tree-vrp.c (vrp_valueize): New function.
7611 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7612 to fold statements to constants.
7613 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7614 function declarations.
7615 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7616 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7618 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7620 * config/h8300/predicates.md (jump_address_operand): Fix register
7623 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7625 * doc/invoke.texi (max-stores-to-sink): Document.
7626 * params.h (MAX_STORES_TO_SINK): Define.
7627 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7628 if either vectorization or if-conversion is disabled.
7629 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7630 tree-vect-data-refs.c vect_equal_offsets.
7631 (dr_equal_offsets_p): New function.
7632 (find_data_references_in_bb): Remove static.
7633 * tree-data-ref.h (find_data_references_in_bb): Declare.
7634 (dr_equal_offsets_p): Likewise.
7635 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7636 (vect_drs_dependent_in_basic_block): Update calls to
7638 (vect_check_interleaving): Likewise.
7639 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7640 (cond_if_else_store_replacement): Rename to...
7641 (cond_if_else_store_replacement_1): ... this. Change arguments and
7643 (cond_if_else_store_replacement): New function.
7644 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7645 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7647 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7650 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7651 to subtract lower bound instead of GEN_INT().
7653 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7658 * doc/extend.texi (Alignment): Move section to match order in TOC.
7659 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7660 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7662 2011-03-23 Jeff Law <law@redhat.com>
7664 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7665 before removing the edge.
7667 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7668 it may have been freed by redirect_branch_edge or
7669 redirect_edge_succ_nodup.
7671 2011-03-23 Richard Guenther <rguenther@suse.de>
7673 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7674 (check_va_list_escapes): Likewise.
7675 (check_all_va_list_escapes): Likewise.
7677 2011-03-23 Richard Guenther <rguenther@suse.de>
7679 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7680 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7681 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7682 (alias.o): Likewise.
7683 (ipa-type-escape.o): Remove.
7684 (ipa-struct-reorg.o): Likewise.
7685 (GTFILES): Remove ipa-struct-reorg.c.
7686 * alias.c: Do not include ipa-type-escape.h.
7687 * tree-ssa-alias.c: Likewise.
7688 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7689 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7690 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7691 and ipa-type-escape passes.
7692 * tree-pass.h (pass_ipa_type_escape): Remove.
7693 (pass_ipa_struct_reorg): Likewise.
7694 * ipa-struct-reorg.h: Remove.
7695 * ipa-struct-reorg.c: Likewise.
7696 * ipa-type-escape.h: Likewise.
7697 * ipa-type-escape.c: Likewise.
7698 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7699 (--param struct-reorg-cold-struct-ratio): Likewise.
7700 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7701 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7702 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7704 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7706 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7707 cpu attribute value.
7708 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7709 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7710 * config/s390/s390.c (processor_flags_table): New constant array.
7711 (s390_handle_arch_option): Remove.
7712 (s390_handle_option): Remove s390_handle_arch_option invocations
7713 and OPT_mwarn_framesize_ handling.
7714 (s390_option_override): Remove s390_handle_arch_option invocation.
7715 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7717 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7718 * config/s390/s390.opt (s390_tune, s390_arch)
7719 (march=): Replace s390_arch_option enum and values with
7720 processor_type. Set variable name to s390_arch. Set
7721 initialization value.
7722 (mtune=): Replace s390_arch_option with processor_type. Set
7723 variable name to s390_tune. Set initialization value.
7725 2011-03-23 Julian Brown <julian@codesourcery.com>
7727 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7728 accesses which are not naturally aligned.
7730 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7733 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7735 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7737 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7738 parameter from "int" to "enum insn_code".
7739 (expand_operand_type): New enum.
7740 (expand_operand): New structure.
7741 (create_expand_operand): New function.
7742 (create_fixed_operand, create_output_operand): Likewise
7743 (create_input_operand, create_convert_operand_to): Likewise.
7744 (create_convert_operand_from, create_address_operand): Likewise.
7745 (create_integer_operand): Likewise.
7746 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7747 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7748 (expand_insn, expand_jump_insn): Likewise.
7749 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7750 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7751 (expand_movstr, expand_builtin___clear_cache): Likewise.
7752 (expand_builtin_lock_release): Likewise.
7753 * explow.c (allocate_dynamic_stack_space): Likewise.
7754 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7755 and use the default handling in that case.
7756 * expmed.c (check_predicate_volatile_ok): Delete.
7757 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7758 (emit_cstore): Likewise.
7759 * expr.c (emit_block_move_via_movmem): Likewise.
7760 (set_storage_via_setmem, expand_assignment): Likewise.
7761 (emit_storent_insn, try_casesi): Likewise.
7762 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7763 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7764 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7765 (expand_twoval_unop, expand_twoval_binop): Likewise.
7766 (expand_unop_direct, emit_indirect_jump): Likewise.
7767 (emit_conditional_move, vector_compare_rtx): Likewise.
7768 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7769 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7770 (expand_sync_lock_test_and_set): Likewise.
7771 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7772 (emit_unop_insn): Likewise.
7773 (expand_copysign_absneg): Change icode to an insn_code.
7774 (create_convert_operand_from_type): New function.
7775 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7776 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7777 (expand_insn, expand_jump_insn): Likewise.
7778 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7779 than const_int_operand for operand 2.
7781 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7783 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7786 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7788 * emit-rtl.c (emit_pattern_before_noloc): New function.
7789 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7790 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7791 (emit_pattern_after_noloc): New function.
7792 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7793 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7795 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7797 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7798 (__ffsDI2): Likewise.
7800 2011-03-22 Richard Henderson <rth@redhat.com>
7802 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7803 of !TARGET_ABI_OPEN_VMS.
7804 (alpha_trampoline_init, alpha_start_function): Likewise.
7805 (alpha_expand_epilogue, alpha_file_start): Likewise.
7806 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7807 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7808 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7809 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7810 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7812 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7814 * config/s390/s390-opts.h: New.
7815 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7816 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7817 s390_stack_guard): Remove.
7818 (s390_handle_arch_option): Return void. Take enum
7819 s390_arch_option value instead of string and searching array.
7820 (s390_handle_option): Don't assert that global structures are in
7821 use. Access variables via opts pointer. Use error_at. Don't use
7822 sscanf for -mstack-guard= or -mstack-size=. Update call to
7823 s390_handle_arch_option.
7824 (s390_option_override): Update call to s390_handle_arch_option.
7825 (s390_emit_prologue): Use %d format for s390_stack_size in
7826 diagnostic. Use %wd for HOST_WIDE_INT.
7827 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7828 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7829 * config/s390/s390.opt (config/s390/s390-opts.h): New
7830 HeaderInclude entry.
7831 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7832 s390_arch_flags, s390_warn_framesize): New Variable entries.
7833 (s390_arch_option): New Enum and EnumValue entries.
7834 (march=): Use Enum instead of Var.
7835 (mstack-guard=, mstack-size=): Use UInteger and Var.
7838 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7840 * config/score/score.c (score_handle_option): Don't assert that
7841 global structures are in use. Access target_flags via opts
7842 pointer. Use value of -march= option to determine target_flags
7844 * config/score/score.opt (march=): Use Enum.
7845 (score_arch): New Enum and EnumValue entries.
7847 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7849 * config/mep/mep.c (option_mtiny_specified): Remove.
7850 (mep_option_override): Move register handling for -mivc2 from
7851 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7852 instead of option_mtiny_specified.
7853 (mep_handle_option): Access target_flags via opts pointer. Don't
7854 assert that global structures are in use. Defer part of -mivc2
7855 handling and move it to mep_option_override.
7856 * config/mep/mep.opt (IVC2): New Mask entry.
7857 (mivc2): Use Var and Defer instead of Mask.
7859 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7861 * config/v850/v850-opts.h: New.
7862 * config/v850/v850.c (small_memory): Replace with
7863 small_memory_physical_max array. Make that array static const.
7864 (v850_handle_memory_option): Take integer value of argument. Take
7865 gcc_options pointer, option text and location. Return void.
7866 Update for changes to small memory structures.
7867 (v850_handle_option): Access target_flags via opts pointer. Don't
7868 assert that global structures are in use. Update calls to
7869 v850_handle_memory_option.
7870 (v850_encode_data_area): Update references to small memory settings.
7871 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7872 (enum small_memory_type): Move to v850-opts.h.
7873 * config/v850/v850.opt (config/v850/v850-opts.h): New
7874 HeaderInclude entry.
7875 (small_memory_max): New Variable entry.
7876 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7877 (mtda, mzda): Likewise.
7879 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7881 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7882 pointer. Don't assert that global structures are in use.
7884 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7886 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7887 via opts pointer. Don't assert that global structures are in use.
7889 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7891 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7892 (munix=93): Use Var.
7893 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7894 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7895 * config/pa/pa-opts.h: New.
7896 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7897 (pa_handle_option): Don't assert that global structures are in
7898 use. Access target_flags via opts pointer. Don't handle
7899 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7901 (pa_option_override): Handle deferred OPT_mfixed_range_.
7903 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7905 * config/mn10300/mn10300-opts.h: New.
7906 * config/mn10300/mn10300.c (mn10300_processor,
7907 mn10300_tune_string): Remove.
7908 (mn10300_handle_option): Don't assert that global structures are
7909 in use. Access mn10300_processor via opts pointer. Don't handle
7911 * config/mn10300/mn10300.h (enum processor_type): Move to
7913 (mn10300_processor): Remove.
7914 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7915 HeaderInclude entry.
7916 (mn10300_processor): New Variable entry.
7919 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7921 * config/microblaze/microblaze.c: Don't include opts.h.
7922 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7923 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7924 (mno-clearbss): Use Var and Warn.
7926 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7928 * config/m32r/m32r-opts.h: New.
7929 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7930 (m32r_handle_option): Don't assert that global structures are in
7931 use. Access target_flags and m32r_cache_flush_func via opts
7932 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7933 OPT_mno_flush_trap here.
7934 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7935 include of m32r-opts.h.
7936 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7937 HeaderInclude entry.
7938 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7939 (mmodel=): Use Enum and Var.
7940 (m32r_model): New Enum and EnumValue entries.
7941 (mno-flush-trap): Use Var.
7942 (msdata=): Use Enum and Var.
7943 (m32r_sdata): New Enum and EnumValue entries.
7945 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7947 * config/m32c/m32c.c: Don't include opts.h.
7948 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7949 m32c_handle_option): Remove.
7950 (m32c_option_override): Check global_options_set.x_target_memregs
7951 instead of target_memregs_set.
7952 * config/m32c/m32c.h (target_memregs): Remove.
7953 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7956 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7958 * config/iq2000/iq2000-opts.h: New.
7959 * config/iq2000/iq2000.c: Don't include opts.h.
7960 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7961 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7962 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7963 HeaderInclude entry.
7964 (iq2000_tune): New Variable entry.
7965 (march=): Add comment. Use Enum.
7966 (iq2000_arch): New Enum and EnumValue entries.
7967 (mcpu=): Use Enum and Var.
7968 (iq2000_tune): New Enum and EnumValue entries.
7970 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7972 * config/ia64/ia64-opts.h: New.
7973 * config/ia64/ia64.c (ia64_tune): Remove.
7974 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7976 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7977 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7978 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7979 HeaderInclude entry.
7980 (ia64_tune): New Variable entry.
7981 (mfixed-range=): Use Defer and Var.
7982 (mtune=): Use Enum and Var.
7983 (ia64_tune): New Enum and EnumValue entries.
7985 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7987 * config/frv/frv-opts.h: New.
7988 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7990 (frv_cpu_type): Remove.
7991 * config/frv/frv.c: Don't include opts.h.
7992 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7993 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7994 (frv_cpu_type): New Variable entry.
7995 (frv_cpu): New Enum and EnumValue entries.
7997 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7999 * config/cris/cris.c (cris_handle_option): Access target_flags via
8000 opts pointer. Don't assert that global structures are in use.
8001 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8002 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8004 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8006 * config/bfin/bfin-opts.h: New.
8007 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8008 bfin_si_revision, bfin_workarounds): Remove.
8009 (bfin_cpus): Make static const.
8010 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8011 not bfin_lib_id_given.
8012 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8013 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8014 pointer. Use error_at. Don't assert that global structures are in use.
8015 * config/bfin/bfin.h: Include bfin-opts.h.
8016 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8017 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8018 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8019 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8022 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8024 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8025 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8026 or -msoft-float here.
8027 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8028 -msoft-float and -mhard-float.
8029 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8030 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8032 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8034 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8035 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8037 (LIBGCC_SPEC): Don't handle -msoft-float.
8038 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8040 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8042 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8043 -mfloat-abi=*, not -msoft-float and -mhard-float.
8044 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8046 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8047 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8048 mhard-float and msoft-float.
8049 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8050 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8051 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8052 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8054 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8055 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8057 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8059 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8062 2011-03-22 Richard Henderson <rth@redhat.com>
8064 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8065 TARGET_ABI_WINDOWS_NT.
8066 (alpha_output_function_end_prologue): Likewise.
8067 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8068 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8069 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8070 (trap, *movsi_nt_vms): Likewise.
8071 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8072 (*tablejump_osf_nt_internal): Remove.
8073 * config/alpha/predicates.md (input_operand): Only test Pmode.
8075 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8077 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8078 via opts pointer. Use error_at. Don't assert that global
8079 structures are in use.
8081 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8083 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8084 (ix86_handle_option): Access ix86_isa_flags and
8085 ix86_isa_flags_explicit via opts pointer. Don't assert that
8086 global structures are in use.
8087 (ix86_function_specific_save, ix86_function_specific_restore):
8088 Update ix86_isa_flags_explicit field name.
8089 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8090 (ix86_isa_flags_explicit): Rename TargetSave entry to
8091 x_ix86_isa_flags_explicit.
8093 2011-03-22 Richard Henderson <rth@redhat.com>
8095 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8096 (alpha_option_override, direct_return): Likewise.
8097 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8098 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8099 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8100 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8101 (alpha_expand_epilogue, alpha_end_function): Likewise.
8102 (alpha_init_libfuncs): Likewise.
8103 (struct machine_function): Remove unicosmk members.
8104 (print_operand) ['t']: Remove.
8105 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8106 unicosmk_output_module_name, unicosmk_output_common,
8107 current_section_align, unicosmk_output_text_section_asm_op,
8108 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8109 unicosmk_section_type_flags, unicosmk_unique_section,
8110 unicosmk_asm_named_section, unicosmk_insert_attributes,
8111 unicosmk_output_align, unicosmk_defer_case_vector,
8112 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8113 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8114 unicosmk_output_ssib, unicosmk_add_call_info_word,
8115 unicosmk_extern_head, unicosmk_output_default_externs,
8116 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8117 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8118 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8119 * config/alpha/alpha-protos.h: Update.
8120 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8121 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8122 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8123 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8124 (*mulsi_se, mulvsi3): Likewise.
8125 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8126 (*divmodsi_internal, call, call_value, realign): Likewise.
8127 (moddi3, umoddi3): Likewise; remove duplicate expander.
8128 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8129 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8130 (*movdi_nofix): Remove r/U alternative.
8131 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8132 * config/alpha/constraints.md ("U"): Remove.
8133 * config/alpha/predicates.md (call_operand"): Don't test
8134 TARGET_ABI_UNICOSMK.
8136 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8138 * target.def (handle_option): Take gcc_options and
8139 cl_decoded_option pointers and location_t.
8140 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8141 * doc/tm.texi: Regenerate.
8142 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8143 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8144 * lto-opts.c (lto_reissue_options): Generate option structure for
8145 targetm.handle_option call.
8146 * opts.c (target_handle_option): Update call to
8147 targetm.handle_option. Remove assertions about values now passed
8149 * targhooks.c (default_target_handle_option): New.
8150 * targhooks.h (default_target_handle_option): Declare.
8151 * config/alpha/alpha.c: Include opts.h.
8152 (alpha_handle_option): Update to new hook interface.
8153 * config/arm/arm.c: Include opts.h.
8154 (arm_handle_option): Update to new hook interface.
8155 * config/arm/t-arm (arm.o): Update dependencies.
8156 * config/bfin/bfin.c: Include opts.h.
8157 (bfin_handle_option): Update to new hook interface.
8158 * config/cris/cris.c: Include opts.h.
8159 (cris_handle_option): Update to new hook interface.
8160 * config/frv/frv.c: Include opts.h.
8161 (frv_handle_option): Update to new hook interface.
8162 * config/i386/i386.c: Include opts.h.
8163 (ix86_handle_option): Update to new hook interface.
8164 (ix86_valid_target_attribute_inner_p): Generate option structure
8165 for call to ix86_handle_option.
8166 * config/i386/t-i386 (i386.o): Update dependencies.
8167 * config/ia64/ia64.c: Include opts.h.
8168 (ia64_handle_option): Update to new hook interface.
8169 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8170 * config/iq2000/iq2000.c: Include opts.h.
8171 (iq2000_handle_option): Update to new hook interface.
8172 * config/m32c/m32c.c: Include opts.h.
8173 (m32c_handle_option): Update to new hook interface.
8174 * config/m32r/m32r.c: Include opts.h.
8175 (m32r_handle_option): Update to new hook interface.
8176 * config/m68k/m68k.c: Include opts.h.
8177 (m68k_handle_option): Update to new hook interface.
8178 * config/mep/mep.c: Include opts.h.
8179 (mep_handle_option): Update to new hook interface.
8180 * config/microblaze/microblaze.c: Include opts.h.
8181 (microblaze_handle_option): Update to new hook interface.
8182 * config/mips/mips.c: Include opts.h.
8183 (mips_handle_option): Update to new hook interface.
8184 * config/mn10300/mn10300.c: Include opts.h.
8185 (mn10300_handle_option): Update to new hook interface.
8186 * config/pa/pa.c: Include opts.h.
8187 (pa_handle_option): Update to new hook interface.
8188 * config/pdp11/pdp11.c: Include opts.h.
8189 (pdp11_handle_option): Update to new hook interface.
8190 * config/rs6000/rs6000.c: Include opts.h.
8191 (rs6000_handle_option): Update to new hook interface.
8192 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8193 * config/rx/rx.c: Include opts.h.
8194 (rx_handle_option): Update to new hook interface.
8195 * config/s390/s390.c: Include opts.h.
8196 (s390_handle_option): Update to new hook interface.
8197 * config/score/score.c: Include opts.h.
8198 (score_handle_option): Update to new hook interface.
8199 * config/sh/sh.c: Include opts.h.
8200 (sh_handle_option): Update to new hook interface.
8201 * config/sparc/sparc.c: Include opts.h.
8202 (sparc_handle_option): Update to new hook interface.
8203 * config/v850/v850.c: Include opts.h.
8204 (v850_handle_option): Update to new hook interface.
8206 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8208 * gcc.c (driver_unknown_option_callback): Only permit and save
8209 unknown -Wno- options.
8210 (driver_wrong_lang_callback): Save options directly instead of via
8211 driver_unknown_option_callback.
8213 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8215 * combine.c (simplify_set): Try harder to find the best CC mode when
8216 simplifying a nested COMPARE on the RHS.
8218 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8220 * config/alpha/gnu.h: Remove.
8221 * config/arc: Remove directory.
8222 * config/arm/netbsd.h: Remove.
8223 * config/arm/t-pe: Remove.
8224 * config/crx: Remove directory.
8225 * config/i386/netbsd.h: Remove.
8226 * config/m68hc11: Remove directory.
8227 * config/m68k/uclinux-oldabi.h: Remove.
8228 * config/mcore/mcore-pe.h: Remove.
8229 * config/mcore/t-mcore-pe: Remove.
8230 * config/netbsd-aout.h: Remove.
8231 * config/rs6000/gnu.h: Remove.
8232 * config/sh/sh-symbian.h: Remove.
8233 * config/sh/symbian-base.c: Remove.
8234 * config/sh/symbian-c.c: Remove.
8235 * config/sh/symbian-cxx.c: Remove.
8236 * config/sh/symbian-post.h: Remove.
8237 * config/sh/symbian-pre.h: Remove.
8238 * config/sh/t-symbian: Remove.
8239 * config/svr3.h: Remove.
8240 * config/vax/netbsd.h: Remove.
8241 * config.build: Don't handle i[34567]86-*-pe.
8242 * config.gcc: Remove handling of deprecations for most deprecated
8244 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8245 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8246 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8247 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8248 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8249 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8251 * config.host: Don't handle i[34567]86-*-pe.
8252 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8253 (ASM_SPEC32): Don't handle -mcall-gnu.
8254 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8256 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8257 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8258 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8259 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8260 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8261 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8262 conditional on SYMBIAN.
8263 * configure.ac: Don't handle powerpc*-*-gnu*.
8264 * configure: Regenerate.
8265 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8266 * doc/install-old.texi (m6811, m6812): Don't mention.
8267 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8268 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8269 (m68k-uclinuxoldabi): Don't mention.
8270 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8272 (-mcall-gnu): Remove.
8273 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8274 families): Remove constraint documentation.
8276 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8278 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8279 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8280 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8282 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8285 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8286 vector when peeking at the next token for vector, don't expand the
8289 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8291 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8292 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8293 * config/avr/avr.c (init_cumulative_args)
8294 (avr_function_arg_advance): Use it.
8295 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8297 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8298 (avr_function_ok_for_sibcall): ...this new function.
8299 (avr_lookup_function_attribute1): New static Function.
8300 (avr_naked_function_p, interrupt_function_p)
8301 (signal_function_p, avr_OS_task_function_p)
8302 (avr_OS_main_function_p): Use it.
8303 * config/avr/avr.md ("sibcall", "sibcall_value")
8304 ("sibcall_epilogue"): New expander.
8305 ("*call_insn", "*call_value_insn"): New insn.
8306 ("call_insn", "call_value_insn"): Remove
8307 ("call", "call_value", "epilogue"): Change expander to handle
8310 2011-03-21 Nick Clifton <nickc@redhat.com>
8312 * doc/invoke.texi (Overall Options): Move closing brace to end of
8314 (Optimization Options): Add missing @gol.
8315 (Directory Options): Likewise.
8316 (i386 and x86-64 Options): Likewise.
8317 (RS6000 and PowerPC Options): Likewise.
8318 (i386 and x86-64 Windows Options): Likewise.
8319 (V850 Options): Add text missing from descriptions.
8321 2011-03-22 Richard Henderson <rth@redhat.com>
8323 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8324 (avr_incoming_return_addr_rtx): New.
8325 (emit_push_byte): New.
8326 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8327 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8328 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8329 (emit_pop_byte): New.
8330 (expand_epilogue): Use it. Pop frame pointer by bytes.
8331 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8332 (INCOMING_RETURN_ADDR_RTX): New.
8333 (INCOMING_FRAME_SP_OFFSET): New.
8334 (ARG_POINTER_CFA_OFFSET): New.
8335 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8336 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8339 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8341 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8343 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8344 (FUNCTION_ARG_ADVANCE): Likewise.
8345 * tm.texi.in: Change references to them to hook references.
8346 * tm.texi: Regenerate.
8347 * targhooks.c (default_function_arg): Eliminate check for target
8349 (default_function_incoming_arg): Likewise.
8350 (default_function_arg_advance): Likewise.
8351 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8352 (function_arg_advance): Likewise.
8353 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8355 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8357 * tree.c (build_call_1): New function.
8358 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8360 2011-03-22 Richard Guenther <rguenther@suse.de>
8362 PR tree-optimization/48228
8363 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8364 for single-arg PHIs.
8366 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8368 PR rtl-optimization/48143
8369 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8370 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8371 sse2_cvtps2pd): Likewise.
8373 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8375 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8377 2011-03-22 Richard Guenther <rguenther@suse.de>
8379 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8380 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8381 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8382 and REALIGN_LOAD_EXPR.
8383 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8384 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8385 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8386 DOT_PROD_EXPR case ...
8387 (expand_expr_real_2): ... here.
8388 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8389 and REALIGN_LOAD_EXPR.
8390 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8391 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8392 (vect_create_epilog_for_reduction): Likewise.
8393 (vectorizable_reduction): Likewise.
8394 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8395 * tree-vect-stmts.c (vectorizable_load): Likewise.
8397 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8399 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8401 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8403 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8404 handling for PLTOFF/GOTOFF.
8406 2011-03-22 Nick Clifton <nickc@redhat.com>
8408 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8409 trailing backslash from the end of the macro definition.
8411 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8413 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8416 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8418 * expr.h (prepare_operand): Move to...
8419 * optabs.h (prepare_operand): ...here and change the insn code
8420 parameter from "int" to "enum insn_code".
8421 (insn_operand_matches): Declare.
8422 * expr.c (init_expr_target): Use insn_operand_matches.
8423 (compress_float_constant): Likewise.
8424 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8425 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8426 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8427 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8429 (gen_cond_trap): Likewise.
8430 (prepare_operand): Likewise. Change icode to an insn_code.
8431 (insn_operand_matches): New function.
8432 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8433 * reload1.c (gen_reload): Likewise.
8434 * targhooks.c (default_secondary_reload): Likewise.
8436 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8438 * config/alpha/alpha.md (unspec): New define_c_enum.
8441 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8444 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8445 between a call and its CALL_ARG_LOCATION note.
8447 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8449 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8451 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8455 * c-common.c (shorten_compare): If primopN is first sign-extended
8456 to opN and then zero-extended to result type, set primopN to opN.
8458 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8460 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8461 for barrier handlers.
8463 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8465 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8466 UNSPEC constants to be in the unspec enumeration, and redefine
8467 all UNSPECV constants to be in the unspecv enumeration, so that
8468 dumps print which unspec/unspec_volatile this is.
8469 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8470 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8471 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8472 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8473 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8475 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8476 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8477 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8478 * config/rs6000/sync.md (isync, lwsync): Ditto.
8480 2011-03-21 Richard Guenther <rguenther@suse.de>
8482 * params.def (lto-min-partition): Fix typo.
8484 2011-03-21 Richard Guenther <rguenther@suse.de>
8487 * c-decl.c (grokdeclarator): Drop to the main variant only
8488 for array types. Drop flag_gen_aux_info check.
8490 2011-03-21 Richard Guenther <rguenther@suse.de>
8492 PR translation/47911
8493 * params.def (lto-partitions): Fix typo.
8494 (lto-min-partition): Fix wording.
8496 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8498 * config/rs6000/t-freebsd: Remove duplication from file.
8500 2011-03-21 Richard Guenther <rguenther@suse.de>
8503 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8505 2011-03-21 Richard Guenther <rguenther@suse.de>
8508 * params.def (lto-partitions): Require at least 1 partition.
8510 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8512 * gthr-solaris.h: Remove.
8513 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8514 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8515 (LIB_SPEC): Likewise.
8516 * config/sol2.opt (threads): Remove.
8517 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8518 (sparc*-*-solaris2*): Likewise.
8519 * configure.ac (enable_threads): Enable solaris support.
8520 * configure: Regenerate.
8521 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8522 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8525 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8527 * config.gcc: Obsolete *-*-solaris2.8*.
8528 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8530 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8533 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8534 reference. Solaris 8 perl works.
8536 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8539 * doc/install.texi (Prerequisites): Move jar etc. up.
8540 Explain support library version requirements.
8542 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8545 * doc/install.texi (Prerequisites): Move Perl to build
8546 requirements. Always necessary on Solaris 2 with Sun ld.
8548 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8550 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8552 (Specific, i?86-*-solaris2.[89]): Likewise.
8553 (Specific, i?86-*-solaris2.10): Likewise.
8554 (Specific, mips-sgi-irix6): Likewise.
8555 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8556 Update for binutils 2.21.
8558 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8560 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8561 Allow -fuse-linker-plugin for non-default plugin linker.
8562 * configure: Regenerate.
8564 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8567 * gengtype.c (files_rules): Added rule for cp/parser.h.
8569 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8572 * config/s390/s390.c (s390_delegitimize_address): Don't call
8573 lowpart_subreg if orig_x has BLKmode.
8575 2011-03-21 Kai Tietz <ktietz@redhat.com>
8578 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8579 * tree.h (attribute_spec): Add new member affects_type_identity.
8580 * attribs.c (empty_attribute_table): Adjust attribute_spec
8582 * config/alpha/alpha.c: Likewise.
8583 * config/arc/arc.c: Likewise.
8584 * config/arm/arm.c: Likewise.
8585 * config/avr/avr.c: Likewise.
8586 * config/bfin/bfin.c: Likewise.
8587 * config/crx/crx.c: Likewise.
8588 * config/darwin.h: Likewise.
8589 * config/h8300/h8300.c: Likewise.
8590 * config/i386/cygming.h: Likewise.
8591 * config/i386/i386.c: Likewise.
8592 * config/ia64/ia64.c: Likewise.
8593 * config/m32c/m32c.c: Likewise.
8594 * config/m32r/m32r.c: Likewise.
8595 * config/m68hc11/m68hc11.c: Likewise.
8596 * config/m68k/m68k.c: Likewise.
8597 * config/mcore/mcore.c: Likewise.
8598 * config/mep/mep.c: Likewise.
8599 * config/microblaze/microblaze.c: Likewise.
8600 * config/mips/mips.c: Likewise.
8601 * config/rs6000/rs6000.c: Likewise.
8602 * config/rx/rx.c: Likewise.
8603 * config/sh/sh.c: Likewise.
8604 * config/sol2.h: Likewise.
8605 * config/sparc/sparc.c: Likewise.
8606 * config/spu/spu.c: Likewise.
8607 * config/stormy16/stormy16.c: Likewise.
8608 * config/v850/v850.c: Likewise.
8610 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8612 * simplify-rtx.c (simplify_binary_operation_1): Handle
8613 (xor (and A B) C) case when B and C are both constants.
8615 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8617 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8619 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8622 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8624 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8626 PR rtl-optimization/48156
8627 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8628 assume df and df_lr are not NULL.
8630 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8633 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8634 between a call and its CALL_ARG_LOCATION note.
8636 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8639 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8640 between a call and its corresponding CALL_ARG_LOCATION note.
8642 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8644 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8645 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8646 * haifa-sched.c (setup_ref_regs): Ditto.
8647 * caller-save.c (add_used_regs_1): Ditto.
8648 * dse.c (look_for_hardregs): Ditto.
8649 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8650 * sched-rgn.c (check_live_1): Ditto.
8652 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8654 * c-decl.c (diagnose_mismatched_decls): Give an error for
8655 redefining a typedef with variably modified type.
8657 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8659 * c-decl.c (grokfield): Don't allow typedefs for structures or
8660 unions with no tag by default.
8661 * doc/extend.texi (Unnamed Fields): Update.
8663 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8665 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8666 Rewrite using indirect functions.
8667 (lwp_slwpcb): Ditto.
8668 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8669 (avx_vinsertf128<mode>): Ditto.
8671 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8673 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8676 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8678 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8679 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8681 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8683 PR rtl-optimization/48170
8684 * gcse.c (hoist_code): Remove bogus asserts.
8686 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8688 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8689 computation for prologue/epilogue.
8691 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8693 * Makefile.in (check-consistency): Remove.
8695 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8698 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8699 arange_table_in_use is 0, but either text_section_used or
8700 cold_text_section_used is true. Don't call it if
8701 !info_section_emitted.
8703 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8705 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8706 FUNCTION_VALUE_REGNO_P): Remove.
8707 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8709 * config/avr/avr.c (avr_ret_register): Make static inline.
8710 (avr_function_value_regno_p): New function.
8711 (avr_libcall_value): Make static. Add 'func' argument.
8712 (avr_function_value): Make static. Rename 'func' argument to
8713 'fn_decl_or_type', forward it to avr_libcall_value. Call
8714 avr_ret_register function instead of RET_REGISTER macro.
8715 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8717 2011-03-18 Jason Merrill <jason@redhat.com>
8720 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8722 2011-03-18 Richard Guenther <rguenther@suse.de>
8724 * doc/install.texi (--enable-gold): Remove.
8725 (--with-plugin-ld): Document.
8726 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8728 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8731 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8732 again after expansion changes.
8734 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8736 * combine.c (try_combine): Do simplification only call of
8737 subst() on i2 even when i1 is present. Update comments.
8739 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8741 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8742 and UNSPEC_PCREL_SYMOFF.
8744 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8746 * config/s390/s390.md: Use define_c_enum for the unspec constant
8749 2011-03-18 Richard Henderson <rth@redhat.com>
8750 Jakub Jelinek <jakub@redhat.com>
8753 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8754 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8756 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8759 * combine.c (cant_combine_insn_p): Don't check zero/sign
8760 extended hard registers.
8762 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8765 * combine.c (cant_combine_insn_p): Check zero/sign extended
8768 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8770 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8771 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8772 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8773 Change return type to bool.
8774 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8776 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8779 * var-tracking.c (prepare_call_arguments): If CALL target
8780 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8781 pc instead of looking it up using cselib_lookup and use
8782 Pmode for it if x has VOIDmode.
8783 * dwarf2out.c (gen_subprogram_die): If also both first and
8784 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8787 * function.c (assign_parms): For data.passed_pointer parms
8788 use MEM of data.entry_parm instead of data.entry_parm itself
8789 as DECL_INCOMING_RTL.
8790 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8791 also when passed and declared mode is the same, DECL_RTL
8792 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8795 2011-03-16 Jeff Law <law@redhat.com>
8797 PR rtl-optimization/37273
8798 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8799 handle them like argument loads from stack slots. Do not double
8800 count memory for memory constants and argument loads from stack slots.
8802 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8805 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8807 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8810 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8812 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8815 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8817 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8818 Clear call_arg_locations and call_arg_loc_last always.
8821 * var-tracking.c (prepare_call_arguments): If argument needs to be
8822 passed by reference, adjust argtype and mode.
8824 2011-03-17 Richard Guenther <rguenther@suse.de>
8827 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8828 a value make sure to fold the statement.
8830 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8833 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8834 return condition with !cfun->calls_alloca.
8836 2011-03-17 Richard Guenther <rguenther@suse.de>
8839 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8840 origin for decls in other ltrans units.
8841 (input_varpool_node): Likewise.
8843 2011-03-17 Richard Guenther <rguenther@suse.de>
8846 * tree-object-size.c (compute_object_offset): Properly return
8847 the offset operand of MEM_REFs as sizetype.
8849 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8851 PR rtl-optimization/48141
8852 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8853 * dse.c: Include params.h.
8854 (active_local_stores_len): New variable.
8855 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8857 (record_store, check_mem_read_rtx): Decrease it when removing
8859 (scan_insn): Likewise. Increase it when adding to chain, if it
8860 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8861 set active_local_stores to NULL before the addition.
8862 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8864 PR rtl-optimization/48141
8865 * dse.c (record_store): If no positions are needed in an insn
8866 that cannot be deleted, at least unchain it from active_local_stores.
8868 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8871 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8872 (lookup_type_die_strip_naming_typedef): ... here.
8873 (get_context_die): Use it.
8874 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8875 the anonymous struct named by the naming typedef.
8877 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8880 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8881 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8883 2011-03-16 Jeff Law <law@redhat.com>
8885 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8886 check for operands of conditional. Allow type to be a pointer.
8888 2011-03-16 Richard Guenther <rguenther@suse.de>
8890 PR tree-optimization/48149
8891 * fold-const.c (fold_binary_loc): Fold
8892 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8894 2011-03-16 Richard Guenther <rguenther@suse.de>
8896 PR tree-optimization/26134
8897 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8898 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8899 (non_rewritable_mem_ref_base): Handle complex type component
8900 accesses, constrain offsets for vector and complex extracts
8903 2011-03-16 Richard Guenther <rguenther@suse.de>
8905 PR tree-optimization/48146
8906 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8907 operands avoiding the need for renaming.
8909 2011-03-16 Richard Guenther <rguenther@suse.de>
8911 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8912 constant folding. Move MEM_REF canonicalization first.
8913 Rely on fold_const_aggregate_ref for initializer folding.
8914 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8916 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8919 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8920 arg0/arg1 or their arguments are always fold converted to matching
8923 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8926 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8929 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8930 Handle in-tree gold.
8931 (ld_vers): Extract binutils version for gold.
8932 (gcc_cv_ld_hidden): Handle gold here.
8933 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8934 * configure: Regenerate.
8935 * config.in: Regenerate.
8936 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8937 -fuse-linker-plugin otherwise.
8938 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8939 (LINK_COMMAND_SPEC): Use it.
8940 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8942 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8944 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8945 * calls.c: Remove debug.h include.
8946 (emit_call_1): Don't call virtual_call_token debug hook.
8947 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8948 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8949 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8950 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8951 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8952 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8953 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8954 dwarf2out_virtual_call): Remove.
8955 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8956 copy_call_info and virtual_call hooks.
8957 (dwarf2out_init): Don't initialize vcall_insn_table,
8958 debug_dcall_section and debug_vcall_section.
8959 (prune_unused_types): Don't mark nodes from dcall_table.
8960 (dwarf2out_finish): Don't output dcall or vcall tables.
8961 * final.c (final_scan_insn): Don't call direct_call or
8962 virtual_call debug hooks.
8963 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8964 virtual_call_token, copy_call_info and virtual_call hooks.
8965 (debug_nothing_uid): Remove prototype.
8966 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8967 copy_call_info and virtual_call hooks.
8968 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8969 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8970 * debug.c (do_nothing_debug_hooks): Likewise.
8971 (debug_nothing_uid): Remove.
8972 * doc/invoke.texi (-fenable-icf-debug): Remove.
8973 * common.opt (-fenable-icf-debug): Likewise.
8975 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8976 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8977 call's MEM. Handle functions returning aggregate through a hidden
8978 first pointer. For virtual calls add clobbered pc to call arguments
8980 * dwarf2out.c (gen_subprogram_die): Emit
8981 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8985 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8986 * rtl.h (ENTRY_VALUE_EXP): Define.
8987 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8988 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8989 * print-rtl.c (print_rtx): Likewise.
8990 * gengtype.c (adjust_field_rtx_def): Likewise.
8991 * var-tracking.c (vt_add_function_parameter): Adjust
8992 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8993 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8994 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8995 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8996 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8998 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8999 Call var_location debug hook even on CALL_INSNs.
9000 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9001 * rtl.def (ENTRY_VALUE): New.
9002 * dwarf2out.c: Include cfglayout.h.
9003 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9004 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9005 (struct call_arg_loc_node): New type.
9006 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9007 tail_call_site_count): New variables.
9008 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9009 DW_TAG_GNU_call_site_parameter.
9010 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9011 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9012 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9013 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9014 and DW_AT_GNU_all_source_call_sites.
9015 (mem_loc_descriptor): Handle ENTRY_VALUE.
9016 (add_src_coords_attributes): Don't add enything if
9017 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9018 (dwarf2out_abstract_function): Save and clear call_arg_location,
9019 call_site_count and tail_call_site_count around dwarf2out_decl call.
9020 (gen_call_site_die): New function.
9021 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9022 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9023 (dwarf2out_function_decl): Clear call_arg_locations,
9024 call_arg_loc_last, set call_site_count and tail_call_site_count
9025 to -1 and free block_map.
9026 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9027 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9028 followed by any real instructions.
9029 (dwarf2out_begin_function): Set call_site_count and
9030 tail_call_site_count to 0.
9031 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9032 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9033 attempt to force a DIE for it and worst case remove the attribute.
9034 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9035 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9037 * var-tracking.c: Include tm_p.h.
9038 (vt_stack_adjustments): For calls call note_register_arguments.
9039 (argument_reg_set): New variable.
9040 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9041 ensure the VALUE is resolved.
9042 (call_arguments): New variable.
9043 (prepare_call_arguments): New function.
9044 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9045 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9046 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9047 always use the best expression.
9048 (vt_expand_loc): Add ignore_cur_loc argument.
9049 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9050 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9051 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9053 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9054 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9055 argument. Don't call cselib_preserve_only_values and
9057 (note_register_arguments): New function.
9058 (vt_initialize): Compute argument_reg_set. Call
9059 vt_add_function_parameters before processing basic blocks instead of
9060 afterwards. For calls call prepare_call_arguments before calling
9061 cselib_process_insn.
9062 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9063 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9064 (var-tracking.o): Depend on $(TM_P_H).
9065 * cfglayout.h (insn_scope): New prototype.
9066 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9067 * cfglayout.c (insn_scope): No longer static.
9068 * insn-notes.def (CALL_ARG_LOCATION): New.
9069 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9070 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9071 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9072 nothing for DECL_EXTERNAL BLOCK_VARS.
9074 2011-03-16 Alan Modra <amodra@gmail.com>
9077 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9078 create invalid offset address for vsx splat insn.
9079 * config/rs6000/predicates.md (splat_input_operand): New.
9080 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9082 2011-03-15 Xinliang David Li <davidxl@google.com>
9085 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9086 (normalize_preds): New function.
9087 (is_use_properly_guarded): Normalize def predicates.
9089 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9092 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9093 in the output template.
9095 2011-03-15 Richard Guenther <rguenther@suse.de>
9098 * tree-pretty-print.c (dump_function_declaration): Properly
9099 dump unprototyped and varargs function types.
9101 2011-03-15 Richard Guenther <rguenther@suse.de>
9103 PR tree-optimization/13954
9104 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9107 2011-03-15 Richard Guenther <rguenther@suse.de>
9109 PR tree-optimization/48037
9110 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9111 selects into BIT_FIELD_REFs.
9112 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9115 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9117 PR tree-optimization/48129
9118 * builtins.c (fold_builtin_snprintf): Convert to type of
9119 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9120 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9122 2011-03-15 Richard Guenther <rguenther@suse.de>
9124 PR tree-optimization/41490
9125 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9126 value but with VUSE.
9127 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9129 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9130 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9131 * tree-tailcall.c (find_tail_calls): Ignore returns.
9133 2011-03-15 Richard Guenther <rguenther@suse.de>
9136 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9137 or variable-indexed array accesses when in gimple form.
9139 2011-03-15 Richard Guenther <rguenther@suse.de>
9141 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9143 2011-03-15 Alan Modra <amodra@gmail.com>
9146 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9147 presume symbol_refs without a symbol_ref_decl are suitably
9148 aligned, nor other trees we may see here. Handle anchor symbols.
9149 (legitimate_constant_pool_address_p): Comment. Add mode param.
9150 Check cmodel=medium addresses. Adjust all calls.
9151 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9152 creating cmodel=medium optimized access to locals.
9153 * config/rs6000/constraints.md (R): Pass QImode to
9154 legitimate_constant_pool_address_p.
9155 * config/rs6000/predicates.md (input_operand): Pass mode to
9156 legitimate_constant_pool_address_p.
9157 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9160 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9163 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9164 64-bit constants being loaded into registers other than GPRs such
9165 as loading 0 into a VSX register.
9167 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9169 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9171 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9174 * builtins.c (fold_builtin_snprintf): New function.
9175 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9176 (fold_builtin_4): Likewise.
9179 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9180 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9181 and C - X == X also strip nops from +/-/p+ operand.
9182 When optimizing -X == C, fold C to arg0's type.
9185 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9186 emit it as add_AT_int instead of add_AT_unsigned.
9188 2011-03-14 Tom Tromey <tromey@redhat.com>
9190 * unwind-dw2.c: Include sys/sdt.h if it exists.
9191 (_Unwind_DebugHook): Use STAP_PROBE2.
9192 * config.in, configure: Rebuild.
9193 * configure.ac: Check for sys/sdt.h.
9195 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9197 * config/i386/i386.md (ROUND_FLOOR): New constant.
9198 (ROUND_CEIL): Ditto.
9199 (ROUND_TRUNC): Ditto.
9200 (ROUND_MXCSR): Ditto.
9201 (ROUND_NO_EXC): Ditto.
9202 (rint<mode>2): Use new defines instead of numerical constants.
9203 (floor<mode>2): Ditto.
9204 (ceil<mode>2): Ditto.
9205 (btrunc<mode>2): Ditto.
9206 * config/i386/i386-builtin-types.def: Define ROUND function type
9208 * config/i386/i386.c (enum ix86_builtins): Add
9209 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9210 (struct builtin_description): Add
9211 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9212 (ix86_expand_sse_round): New static function.
9213 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9215 (ix86_builtin_vectorized_function): Handle
9216 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9218 2011-03-14 Tom Tromey <tromey@redhat.com>
9220 * c-parser.c (c_parser_asm_string_literal): Clear
9221 warn_overlength_strings.
9223 2011-03-14 Tom Tromey <tromey@redhat.com>
9225 * c-parser.c (disable_extension_diagnostics): Save
9226 warn_overlength_strings.
9227 (restore_extension_diagnostics): Restore warn_overlength_strings.
9229 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9231 * BASE-VER: Change to 4.7.0.
9233 2011-03-14 Richard Guenther <rguenther@suse.de>
9236 * tree.c (build_vector_from_val): Adjust assert to requirements
9239 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9242 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9244 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9246 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9247 terms of target_flags_explicit. Adjust copyright year.
9249 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9250 * config/rs6000/t-freebsd: New file. Add override for
9253 2011-03-13 Chris Demetriou <cgd@google.com>
9255 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9256 (-fno-diagnostics-show-option): this, to reflect current default.
9257 (-Werror=): Update text about -fno-diagnostics-show-option.
9259 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9262 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9263 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9264 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9265 mode is not V2DImode or V2DFmode.
9266 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9267 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9268 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9270 (movdi_internal64): Likewise.
9272 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9274 PR tree-optimization/47127
9275 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9277 (set_cloog_options): Same.
9278 (scop_to_clast): Same.
9279 (print_clast_stmt): Do not call cloog_state_malloc and
9281 (print_generated_program): Same.
9283 * graphite-clast-to-gimple.h (cloog_state): Declared.
9284 (scop_to_clast): Adjust declaration.
9285 * graphite.c (cloog_state): Defined here.
9286 (graphite_initialize): Call cloog_state_malloc.
9287 (graphite_finalize): Call cloog_state_free.
9289 2011-03-11 Jason Merrill <jason@redhat.com>
9291 * attribs.c (lookup_attribute_spec): Take const_tree.
9294 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9296 * config/sparc/sparc.c (sparc_option_override): Use
9297 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9299 2011-03-11 Richard Guenther <rguenther@suse.de>
9301 PR tree-optimization/48067
9302 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9303 multiplication result will be only used once on the target
9306 2011-03-11 Richard Guenther <rguenther@suse.de>
9308 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9310 2011-03-11 Richard Guenther <rguenther@suse.de>
9313 * tree.c (find_decls_types_r): Do not walk types only reachable
9314 from IDENTIFIER_NODEs.
9316 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9319 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9320 all vnode->force_output nodes as needed.
9322 2011-03-11 Jason Merrill <jason@redhat.com>
9325 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9326 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9328 2011-03-11 Martin Jambor <mjambor@suse.cz>
9330 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9333 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9335 PR tree-optimization/48063
9336 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9337 inline functions called once if !tree_can_inline_p (node->callers).
9339 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9341 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9343 * config/score/score3.c: Delete.
9344 * config/score/score3.h: Delete.
9345 * config/score/mul-div.S: Delete.
9346 * config/score/sfp-machine.h: Add new file.
9347 * config/score/constraints.md: Add new file.
9348 * config/score/t-score-softfp: Add new file.
9349 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9350 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9351 (score7_extra_constraint): Delete.
9352 (score7_option_override): Remove unused code.
9353 * config/score/score.c: Remove score3 and score5 define and code.
9354 * config/score/score.h: Remove score3 and score5 define and code.
9355 * config/score/score.md: Remove score3 template and unusual insn.
9356 * config/score/score.opt: Remove score3 and score5 options.
9358 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9360 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9361 when _HPUX_SOURCE is defined.
9362 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9364 2011-03-10 Jason Merrill <jason@redhat.com>
9367 * stor-layout.c (layout_type): Don't set structural equality
9368 on arrays of incomplete type.
9369 * tree.c (type_hash_eq): Handle comparing them properly.
9371 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9374 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9375 result mode matches original rtl mode.
9377 2011-03-10 Nick Clifton <nickc@redhat.com>
9379 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9380 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9382 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9384 PR rtl-optimization/47866
9385 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9386 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9387 if target wasn't scalar.
9388 * function.c (assign_stack_temp_for_type): Assert that neither
9389 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9390 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9392 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9394 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9396 * config/s390/s390-protos.h (s390_label_align): New prototype.
9397 * config/s390/s390.c (s390_label_align): New function.
9398 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9400 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9403 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9404 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9405 (output_vec_const_move): Ditto.
9407 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9409 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9410 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9411 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9412 Change 'rclass' argument and result type to reg_class_t.
9413 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9415 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9417 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9418 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9419 (TARGET_MEMORY_MOVE_COST): Define.
9420 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9422 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9425 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9428 PR tree-optimization/48022
9429 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9432 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9435 * var-tracking.c (find_use_val): Return NULL for
9436 cui->sets && cui->store_p BLKmode MEMs.
9438 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9440 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9442 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9443 xstormy16_print_operand_address): Remove.
9444 * config/stormy16/stormy16.c (xstormy16_print_operand,
9445 xstormy16_print_operand_address): Make static.
9446 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9448 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9451 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9452 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9455 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9458 * cfgloopmanip.c (fix_bb_placements): Return immediately
9459 if FROM is BASE_LOOP's header.
9461 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9463 * gimplify.c (gimplify_function_tree): Fix building calls
9464 to __builtin_return_address.
9466 2011-03-07 Alan Modra <amodra@gmail.com>
9468 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9469 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9470 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9471 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9473 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9474 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9475 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9476 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9477 * config/rs6000/rs6000.c
9478 (rs6000_elf_end_indicate_exec_stack): Rename to..
9479 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9480 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9481 (rs6000_file_start): ..here.
9482 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9483 file scope variables.
9484 (call_ABI_of_interest): New function.
9485 (init_cumulative_args): Set above vars when function return value
9486 is a float, vector, or small struct.
9487 (rs6000_function_arg_advance_1): Likewise for function args.
9488 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9489 references float args.
9491 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9493 * doc/cfg.texi: Remove "See" before @ref.
9494 * doc/invoke.texi: Likewise.
9496 2011-03-05 Jason Merrill <jason@redhat.com>
9498 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9500 2011-03-05 Anthony Green <green@moxielogic.com>
9502 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9504 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9506 PR rtl-optimization/47899
9507 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9508 to flow_loop_nested_p when moving the loop upward.
9510 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9513 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9515 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9517 PR tree-optimization/47967
9518 * ipa-cp.c (build_const_val): Return NULL instead of creating
9519 VIEW_CONVERT_EXPR for mismatching sizes.
9520 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9521 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9522 give up on versioning.
9524 2011-03-05 Alan Modra <amodra@gmail.com>
9527 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9528 full cmodel medium/large lo_sum + high addresses.
9530 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9532 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9533 pool references in UNSPEC_LTREL_OFFSET.
9535 2011-03-04 Jan Hubicka <jh@suse.cz>
9538 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9539 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9540 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9542 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9543 cgraph_add_thunk): Add node pointers.
9544 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9545 associated to right node.
9546 (input_node): Update use of cgraph_same_body_alias
9547 and cgraph_add_thunk.
9549 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9551 * config/i386/i386.opt (mprefer-avx128): New flag.
9552 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9553 modes when the flag -mprefer-avx128 is on.
9555 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9557 * dwarf2out.c (compare_loc_operands): Fix address handling.
9559 2011-03-04 Alan Modra <amodra@gmail.com>
9561 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9563 2011-03-04 Richard Guenther <rguenther@suse.de>
9566 * expmed.c (extract_bit_field_1): Prefer vector modes that
9567 vec_extract patterns can handle.
9569 2011-03-04 Richard Guenther <rguenther@suse.de>
9572 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9574 2011-03-04 Richard Henderson <rth@redhat.com>
9576 * explow.c (emit_stack_save): Remove 'after' parameter.
9577 (emit_stack_restore): Likewise.
9578 * expr.h: Update to match.
9579 * builtins.c, calls.c, stmt.c: Likewise.
9580 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9581 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9582 * function.c (expand_function_end): Insert the emit_stack_save
9583 sequence before parm_birth_insn instead of after.
9585 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9587 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9588 (ssse3_pmaddubsw128): Ditto.
9589 (ssse3_pmaddubsw): Ditto.
9591 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9593 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9595 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9598 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9599 on TYPE_SIZE_UNIT if it is a DECL.
9602 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9603 first operand is not is_gimple_mem_ref_addr, try to fold it.
9604 If the operand still isn't is_gimple_mem_ref_addr, clear
9607 2011-03-03 Richard Guenther <rguenther@suse.de>
9610 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9612 (refs_may_alias_p_1): For release branches return true if
9613 we are confused by our input.
9615 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9617 * config/s390/s390.c (s390_function_value): Rename to ...
9618 (s390_function_and_libcall_value): ... this.
9619 (s390_function_value): New function.
9620 (s390_libcall_value): New function.
9621 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9622 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9623 target macro definitions.
9624 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9626 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9628 * config/i386/freebsd64.h (CC1_SPEC): Define.
9629 * config/i386/linux64.h (CC1_SPEC): Define.
9630 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9632 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9634 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9636 * config/stormy16/stormy16.c: Include reload.h.
9637 (xstormy16_memory_move_cost): New function.
9638 (TARGET_MEMORY_MOVE_COST): Define.
9640 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9642 PR rtl-optimization/47925
9643 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9644 with side effects. Remove the more-specific check for volatile asms.
9646 2011-03-02 Alan Modra <amodra@gmail.com>
9649 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9650 toc relative addresses for valid offsets.
9652 2011-03-01 Richard Guenther <rguenther@suse.de>
9654 PR tree-optimization/47890
9655 * tree-vect-loop.c (get_initial_def_for_induction): Set
9656 related stmt properly.
9658 2011-03-01 Richard Guenther <rguenther@suse.de>
9661 * lto-streamer.c (lto_record_common_node): Also register
9664 2011-03-01 Richard Guenther <rguenther@suse.de>
9667 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9668 Do not stream DECL_ABSTRACT_ORIGIN.
9669 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9670 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9671 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9672 Do not stream DECL_ABSTRACT_ORIGIN.
9673 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9674 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9676 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9678 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9679 FUNCTION_VALUE_REGNO_P): Remove.
9680 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9681 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9682 Add 'outgoing' argument.
9683 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9685 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9686 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9688 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9691 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9692 (lookup_filename): Likewise.
9693 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9695 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9696 Jakub Jelinek <jakub@redhat.com>
9699 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9700 (assign_stack_local_1): Change last argument type to int.
9701 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9702 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9703 don't record padding space into frame_space_list nor use those areas.
9704 (assign_stack_local): Adjust caller.
9705 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9706 of assign_stack_local, pass 0 as last argument.
9707 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9710 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9713 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9714 Use target address_mode and pointer_mode hooks instead of hardcoded
9715 Pmode and ptr_mode. Handle some simple cases of extending if
9716 POINTERS_EXTEND_UNSIGNED < 0.
9717 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9718 Call convert_debug_memory_address.
9719 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9720 convert_debug_memory_address.
9723 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9724 * configure: Regenerated.
9725 * config.in: Regenerated.
9726 * varasm.c (default_function_section): Return NULL
9727 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9729 2011-02-28 Martin Jambor <mjambor@suse.cz>
9731 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9732 the description to match the printed values.
9734 2011-02-28 Richard Guenther <rguenther@suse.de>
9736 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9737 of the copied scope tree.
9739 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9741 * doc/extend.texi (Function Attributes): Avoid deeply (and
9742 wrongly) nested tables.
9744 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9747 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9748 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9749 r isn't op0 nor op1.
9751 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9753 * config/avr/avr.md: Remove magic comment for emacs.
9755 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9758 * config/avr/avr.c (avr_option_override): Use error on bad options.
9759 (avr_help): New function.
9760 (TARGET_HELP): Define.
9762 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9765 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9766 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9768 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9770 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9771 (ARM Options): Ditto.
9772 (i386 and x86-64 Options): Ditto.
9773 (RX Options): Ditto.
9774 (SPARC Options): Ditto.
9776 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9778 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9779 FreeBSD 6 and later. Generally use cpu generic.
9781 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9783 * doc/cpp.texi: Update copyright years.
9785 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9788 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9790 2011-02-25 Jon Beniston <jon@beniston.com>
9793 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9794 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9795 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9796 (lm32_block_move_inline): Add type cast to remove warning.
9797 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9798 (gen_int_relational): Move declarations to start of function.
9800 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9802 PR tree-optimization/45470
9803 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9804 can throw internally only.
9805 * tree-vect-stmts.c (vectorizable_call): Likewise.
9807 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9809 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9810 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9811 * config/stormy16/stormy16-protos.h
9812 (xstormy16_preferred_reload_class): Remove.
9813 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9814 static. Change 'rclass' argument and return type to reg_class_t.
9815 (TARGET_PREFERRED_RELOAD_CLASS,
9816 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9818 2011-02-24 Richard Guenther <rguenther@suse.de>
9820 * lto-streamer-in.c (input_bb): Do not find referenced vars
9821 in debug statements.
9823 2011-02-23 Jason Merrill <jason@redhat.com>
9825 * common.opt (fabi-version): Document v5 and v6.
9827 2011-02-23 Richard Guenther <rguenther@suse.de>
9829 PR tree-optimization/47849
9830 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9832 2011-02-23 Jie Zhang <jie@codesourcery.com>
9834 * opts-common.c (decode_cmdline_option): Print empty string
9835 argument as "" in decoded->orig_option_with_args_text.
9836 * gcc.c (execute): Print empty string argument as ""
9837 in the verbose output.
9838 (do_spec_1): Keep empty string argument.
9840 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9842 * config.gcc: Declare score-* and crx-* obsolete.
9844 2011-02-23 Jie Zhang <jie@codesourcery.com>
9846 PR rtl-optimization/47763
9847 * web.c (web_main): Ignore naked clobber when replacing register.
9849 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9851 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9854 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9857 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9859 2011-02-22 Mike Stump <mikestump@comcast.net>
9861 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9863 * configure: Regenerate.
9865 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9867 PR rtl-optimization/46002
9868 * ira-color.c (update_copy_costs): Change class intersection
9869 test to reg_class_contents[] test of 'hard_regno'.
9871 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9873 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9875 * config/hpux11.opt (mt): Likewise.
9876 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9877 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9878 * config/vax/elf.opt (mno-asm-pic): Likewise.
9879 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9881 2011-02-21 Mike Stump <mikestump@comcast.net>
9884 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9885 tree so we can get save the type.
9886 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9887 for CFString instead of trying to use past the end of the builtins.
9888 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9889 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9890 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9891 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9892 Rename to darwin_builtin_cfstring.
9893 (darwin_init_cfstring_builtins): Return the built type.
9895 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9898 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9899 (_mm256_insert_epi64): Use _mm_insert_epi64.
9901 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9903 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9904 * config/stormy16/stormy16-protos.h
9905 (xstormy16_mode_dependent_address_p): Remove.
9906 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9907 Make static. Change return type to bool. Change argument type to
9908 const_rtx. Remove dead code.
9909 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9911 2011-02-21 Richard Guenther <rguenther@suse.de>
9914 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9915 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9916 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9918 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9919 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9921 2011-02-20 Richard Guenther <rguenther@suse.de>
9924 * tree.c (free_lang_data_in_decl): Clean builtins from
9925 the TU decl BLOCK_VARS.
9927 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9931 * haifa-sched.c (fix_tick_ready): Skip tick computation
9934 2011-02-19 Richard Guenther <rguenther@suse.de>
9937 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9938 Remove lazy BLOCK_VARS streaming.
9939 (lto_input_ts_block_tree_pointers): Likewise.
9940 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9942 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9944 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9946 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9948 * config/i386/biarch32.h, config/i386/mach.h,
9949 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9951 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9954 * config/i386/i386.md (peephole2 for shift and plus): Use
9955 operands[1] original mode in the first insn.
9957 2011-02-18 Mike Stump <mikestump@comcast.net>
9959 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9961 2011-02-18 Jan Hubicka <jh@suse.cz>
9964 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9965 to zero when the function is not inlinable at all.
9967 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9969 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9970 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9971 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9972 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9973 * config/pa/t-pa64: Likewise.
9974 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9976 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9979 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9981 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9984 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9986 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9988 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9989 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9990 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9991 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9992 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9993 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9994 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9995 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9996 m32r_legitimate_address_p): New functions.
9997 * config/m32r/constraints.md (constraint "S"): Don't use
9998 STORE_PREINC_PREDEC_P.
9999 (constraint "U"): Don't use LOAD_POSTINC_P.
10001 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10003 PR rtl-optimization/46178
10004 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10005 compute ira_hard_regno_cover_class[].
10007 2011-02-18 Richard Guenther <rguenther@suse.de>
10010 * lto-streamer.h (lto_global_var_decls): Declare.
10011 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10012 statics for global var processing.
10014 2011-02-18 Richard Guenther <rguenther@suse.de>
10016 PR tree-optimization/47737
10017 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10018 edge dominance check.
10020 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10023 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10024 avoid invalid rtx sharing.
10026 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10028 * doc/cpp.texi (Obsolete Features): Add background on the
10029 origin of assertions.
10031 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10033 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10035 * config/darwin.c (output_objc_section_asm_op): Added support for
10037 (is_objc_metadata): New.
10038 (darwin_objc2_section): New.
10039 (darwin_objc1_section): New.
10040 (machopic_select_section): Added support for ABI v1 and v2.
10041 (darwin_emit_objc_zeroed): New.
10042 (darwin_output_aligned_bss): Detect objc metadata and treat it
10044 (darwin_asm_output_aligned_decl_common): Same.
10045 (darwin_asm_output_aligned_decl_local): Same.
10046 * config/darwin-sections.def: Updated for ABI v1 and v2.
10047 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10048 compiling Objective-C code for the NeXT runtime, default to using
10049 ABI version 0 for 32-bit, and version 2 for 64-bit.
10051 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10053 * common.opt (optimize_fast): New Variable.
10054 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10055 instead of local variable ofast.
10057 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10059 * doc/invoke.texi (fobjc-abi-version): Documented.
10060 (fobjc-nilcheck): Documented.
10061 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10064 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10067 * common.opt (export-dynamic): New Driver option.
10068 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10070 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10072 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10074 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10075 Jan Hubicka <jh@suse.cz>
10079 * cfgexpand.c (account_used_vars_for_block): Remove.
10080 (estimated_stack_frame_size): Use referenced vars.
10081 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10082 that were referenced in the original function. Test src_fn
10083 rather than cfun. Drop redundant get_var_ann.
10084 (setup_one_parameter): Drop redundant get_var_ann.
10085 (declare_return_variable): Likewise.
10086 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10087 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10088 * ipa-inline.c (compute_inline_parameters): Do not compute
10089 disregard_inline_limits here.
10090 (compute_inlinable_for_current, pass_inlinable): New.
10091 (pass_inline_parameters): Require PROP_referenced_vars.
10092 * cgraphunit.c (cgraph_process_new_functions): Don't run
10093 compute_inline_parameters explicitly unless function is in SSA form.
10094 (cgraph_analyze_function): Set .disregard_inline_limits.
10095 * tree-sra.c (convert_callers): Compute inliner parameters
10096 only for functions already in SSA form.
10098 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10100 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10101 -mlittle-endian-data.
10103 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10105 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10106 -mno-fpu, not -fpu and -no-fpu.
10107 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10108 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10110 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10113 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10114 input reload with PLUS RTX.
10116 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10118 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10119 of InverseVar(MDMX).
10121 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10123 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10126 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10128 * config/mn10300/mn10300.opt (mno-crt0): New.
10130 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10132 * config/m68k/uclinux.opt (static-libc): New Driver option.
10134 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10136 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10138 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10140 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10141 %{muser-extend-enabled}.
10143 2011-02-16 Richard Guenther <rguenther@suse.de>
10145 PR tree-optimization/47738
10146 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10147 the TODO from tree_predictive_commoning.
10149 2011-02-15 Jeff Law <law@redhat.com>
10152 2011-01-25 Jeff Law <law@redhat.com>
10154 PR rtl-optimization/37273
10155 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10156 handle them like argument loads from stack slots. Do not double
10157 count memory for memory constants and argument loads from stack slots.
10159 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10161 PR middle-end/47725
10162 * combine.c (cant_combine_insn_p): Revert the last change.
10164 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10167 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10168 mode for vector constants. Remove code that checks for TImode.
10170 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10174 * cgraph.h (compute_inline_parameters): Return void.
10175 * ipa-inline.c (compute_inline_parameters): Adjust.
10177 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10181 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10183 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10184 * ipa-inline.c (compute_inline_parameters): Adjust.
10186 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10190 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10191 Adjust all users. Pass FN to...
10192 * tree-flow-inline.h (first_referenced_var): ... this. Add
10194 * ipa-struct-reorg.c: Adjust.
10195 * tree-dfa.c: Adjust.
10196 * tree-into-ssa.c: Adjust.
10197 * tree-sra.c: Adjust.
10198 * tree-ssa-alias.c: Adjust.
10199 * tree-ssa-live.c: Adjust.
10200 * tree-ssa.c: Adjust.
10201 * tree-ssanames.c: Adjust.
10202 * tree-tailcall.c: Adjust.
10204 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10208 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10209 Adjust all callers.
10210 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10211 * tree-flow-inline.h: Adjust.
10212 * gimple-pretty-print.c: Adjust.
10213 * tree-into-ssa.c: Adjust.
10214 * tree-ssa.c: Adjust.
10215 * cfgexpand.c: Adjust.
10217 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10219 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10220 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10221 (EXTRA_CONSTRAINT): Delete.
10222 * config/iq2000/constraints.md: New file.
10223 * config/iq2000/iq2000.md: Include it.
10224 (define_insn ""): Delete.
10225 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10226 unsupported constraint letters from patterns.
10227 (call_value, call_value_internal1): Likewise.
10228 (call_value_multiple_internal1): Likewise.
10230 2011-02-15 Nick Clifton <nickc@redhat.com>
10232 * config/mn10300/mn10300.c: Include tm-constrs.h.
10233 (struct liw_data): New data structure describing an LIW candidate
10235 (extract_bundle): Use struct liw_data. Allow small integer
10236 operands for some instructions.
10237 (check_liw_constraints): Use struct liw_data. Remove swapped
10238 parameter. Add comments describing the checks. Fix bug when
10239 assigning the source of liw1 to the source of liw2.
10240 (liw_candidate): Delete. Code moved into extract_bundle.
10241 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10243 * config/mn10300/predicates.md (liw_operand): New predicate.
10244 Allows registers and small integer constants.
10245 * config/mn10300/constraints.md (O): New constraint. Accetps
10246 integers in the range -8 to +7 inclusive.
10247 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10248 for moving a small integer into a register. Give this alternative
10250 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10251 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10252 using the J,K,L and M constraints,
10253 (liw): Remove SI mode on second operands to allow for HI and QI
10255 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10258 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10260 PR middle-end/47725
10261 * combine.c (cant_combine_insn_p): Check zero/sign extended
10264 2011-02-15 Richard Guenther <rguenther@suse.de>
10266 PR tree-optimization/47743
10267 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10268 for a non-type-compatible VN lookup bail out.
10270 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10272 * config/fr30/constraints.md: New file.
10273 * config/fr30/fr30.md: Include it.
10274 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10275 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10276 (EXTRA_CONSTRAINT): Delete.
10278 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10280 * config/frv/constraints.md: New file.
10281 * config/frv/predicates.md: Include it.
10282 * config/frv/frv.c (reg_class_from_letter): Delete.
10283 (frv_option_override): Don't initialize it.
10284 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10285 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10286 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10287 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10288 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10289 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10290 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10291 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10292 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10293 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10294 (REG_CLASS_FROM_CONSTRAINT): Delete.
10296 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10298 PR middle-end/47581
10299 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10300 if frame size is 0 in a leaf function.
10302 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10305 * config/alpha/host-osf.c: New file.
10306 * config/alpha/x-osf: New file.
10307 * config.host (alpha*-dec-osf*): Use it.
10309 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10311 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10312 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10313 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10314 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10316 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10318 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10320 * config/stormy16/constraints.md: New file.
10321 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10322 Use satisfies_constraint_Q and satisfies_constraint_R.
10323 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10325 (xstormy16_legitiamte_address_p): Declare.
10326 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10327 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10328 (EXTRA_CONSTRAINT): Delete.
10329 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10331 (xstormy16_extra_constraint_p): Delete.
10333 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10335 PR tree-optimization/46494
10336 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10337 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10338 (pass_rtl_loop_done): Add TODO_verify_flow.
10339 * fwprop.c (pass_rtl_fwprop): Likewise.
10340 * modulo-sched.c (pass_sms): Likewise.
10341 * tree-ssa-dom.c (pass_dominator): Likewise.
10342 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10343 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10344 (pass_tree_loop_done): Likewise.
10345 * tree-ssa-pre.c (execute_pre): Likewise.
10346 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10347 * tree-ssa-sink.c (pass_sink_code): Likewise.
10348 * tree-vrp.c (pass_vrp): Likewise.
10350 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10352 * config/v850/constraints.md: New file.
10353 * config/v850/v850.md: Include it.
10354 * config/v850/predicates.md (reg_or_0_operand): Use
10355 satisfies_constraint_G.
10356 (special_symbolref_operand): Use satisfies_constraint_K.
10357 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10358 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10359 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10360 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10361 (EXTRA_CONSTRAINT): Delete.
10362 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10363 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10364 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10366 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10369 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10372 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10374 * config/mcore/constraints.md: New file.
10375 * config/mcore/mcore.md: Include it.
10376 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10377 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10378 (REG_CLASS_FROM_LETTER): Delete.
10379 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10380 insn_const_int_ok_for_constraint.
10381 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10382 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10383 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10384 (EXTRA_CONSTRAINT): Delete.
10386 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10389 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10390 (IS_SIGHANDLER): Define.
10391 (sparc64_is_sighandler): New function, split off from
10392 sparc64_fallback_frame_state.
10393 (sparc_is_sighandler): New function, split off from
10394 sparc_fallback_frame_state.
10395 (sparc64_fallback_frame_state): Merge with ...
10396 (sparc_fallback_frame_state): ... this into ...
10397 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10398 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10399 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10400 stack instead of hardcoded offsets.
10402 2011-02-14 Andriy Gapon <avg@freebsd.org>
10405 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10407 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10409 * configure: Regenerate.
10411 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10414 * gcc.c (asm_options): Correct spec matching --target-help.
10416 2011-02-12 Martin Jambor <mjambor@suse.cz>
10418 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10419 to gimple call error.
10421 2011-02-12 Mike Stump <mikestump@comcast.net>
10423 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10424 comments in backslash regions.
10426 2011-02-12 Mike Stump <mikestump@comcast.net>
10427 Jakub Jelinek <jakub@redhat.com>
10428 Iain Sandoe <iains@gcc.gnu.org>
10431 * dwarf2out.c (output_cfa_loc): When required, apply the
10432 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10433 (output_loc_sequence): Likewise.
10434 (output_loc_operands_raw): Likewise.
10435 (output_loc_sequence_raw): Likewise.
10436 (output_cfa_loc): Likewise.
10437 (output_loc_list): Suppress register number adjustment when
10438 calling output_loc_sequence()
10439 (output_die): Likewise.
10441 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10443 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10445 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10446 xtensa_memory_move_cost): New functions.
10447 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10449 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10452 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10453 in the current directory.
10454 * configure: Rebuilt.
10456 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10458 * config/darwin.c (darwin_override_options): Add a hunk missed
10459 from the commit of r168571. Trim comment line lengths and
10460 correct indents of the preceding block.
10462 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10464 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10467 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10469 * common.opt (nostartfiles): New Driver option.
10471 2011-02-11 Xinliang David Li <davidxl@google.com>
10473 PR tree-optimization/47707
10474 * tree-chrec.c (convert_affine_scev): Keep type precision.
10476 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10478 PR tree-optimization/47420
10479 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10481 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10483 PR rtl-optimization/47614
10484 * rtl.h (check_for_inc_dec): Declare.
10485 * dse.c (check_for_inc_dec): Externalize...
10486 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10487 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10489 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10492 * gcc.c (main): Do not compile inputs if there were errors in
10494 * opts-common.c (read_cmdline_option): Check for wrong language
10495 after other error checks.
10497 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10499 * cgraph.c: Fix comment typos.
10500 * cgraph.h: Likewise.
10501 * cgraphunit.c: Likewise.
10502 * ipa-cp.c: Likewise.
10503 * ipa-inline.c: Likewise.
10504 * ipa-prop.c: Likewise.
10505 * ipa-pure-const.c: Likewise.
10506 * ipa-ref.c: Likewise.
10507 * ipa-reference.c: Likewise.
10509 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10512 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10514 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10517 * doc/sourcebuild.texi (Require Support): Document
10518 dg-require-ascii-locale.
10520 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10522 * doc/lto.texi (Write summary): Fix missing parentheses.
10524 2011-02-10 DJ Delorie <dj@redhat.com>
10526 * config/m32c/m32c.c (m32c_option_override): Disable
10527 -fcombine-stack-adjustments until flag value tracking and compare
10528 optimization can be rewritten.
10530 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10532 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10534 (PROCESSOR_DEFAULT64): Likewise.
10536 2011-02-10 Richard Henderson <rth@redhat.com>
10538 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10539 change from 2011-02-03.
10540 * config/rx/rx.c (flags_from_code): Likewise.
10541 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10542 is valid, n/pz otherwise.
10543 (rx_select_cc_mode): Return CCmode if Y is not zero.
10545 2011-02-10 Richard Guenther <rguenther@suse.de>
10547 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10549 2011-02-10 Richard Guenther <rguenther@suse.de>
10551 PR tree-optimization/47677
10552 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10554 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10557 * combine.c (make_compound_operation): Only change shifts into
10558 multiplication for SCALAR_INT_MODE_P.
10560 2011-02-10 Jie Zhang <jie@codesourcery.com>
10564 2011-02-05 Jie Zhang <jie@codesourcery.com>
10566 * web.c (entry_register): Don't clobber the number of the
10567 first uninitialized reference in used[].
10569 2011-02-09 Richard Guenther <rguenther@suse.de>
10571 PR tree-optimization/47664
10572 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10575 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10579 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10581 (PROCESSOR_DEFAULT64): Same.
10582 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10584 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10586 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10588 2011-02-09 Martin Jambor <mjambor@suse.cz>
10590 PR middle-end/45505
10591 * tree-sra.c (struct access): New flags grp_scalar_read and
10592 grp_scalar_write. Changed description of assignment read and write
10594 (dump_access): Dump new flags, reorder all of them.
10595 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10596 to detect multiple scalar reads.
10597 (analyze_access_subtree): Use the new scalar read write flags instead
10598 of the old flags. Adjusted comments.
10600 2011-02-08 DJ Delorie <dj@redhat.com>
10603 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10606 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10608 * config/m68k/uclinux.opt: New.
10609 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10611 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10613 * config/cris/elf.opt (sim): New Driver option.
10615 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10617 * config/xtensa/elf.opt: New.
10618 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10620 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10622 * config/vax/elf.opt: New.
10623 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10625 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10627 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10629 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10631 * config/gnu-user.opt: New.
10632 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10633 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10634 *-*-uclinux*): Use gnu-user.opt.
10636 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10638 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10639 * config/i386/gnu.h (CPP_SPEC): Likewise.
10641 2011-02-08 Ian Lance Taylor <iant@google.com>
10643 * common.opt (fcx-limited-range): Add SetByCombined flag.
10644 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10645 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10646 (fassociative-math, freciprocal-math): Likewise.
10647 (funsafe-math-optimizations): Likewise.
10648 * opth-gen.awk: Handle SetByCombined.
10649 * optc-gen.awk: Likewise.
10650 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10651 (set_unsafe_math_optimizations_flags): Likewise.
10652 * doc/options.texi (Option properties): Document SetByCombined.
10654 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10656 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10657 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10658 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10659 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10660 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10662 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10664 PR tree-optimization/46834
10665 PR tree-optimization/46994
10666 PR tree-optimization/46995
10667 * graphite-sese-to-poly.c (used_outside_reduction): New.
10668 (detect_commutative_reduction): Call used_outside_reduction.
10669 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10670 translate_scalar_reduction_to_array only when at least one
10671 loop-phi/close-phi tuple has been detected.
10673 2011-02-08 Richard Guenther <rguenther@suse.de>
10675 PR middle-end/47639
10676 * tree-vect-generic.c (expand_vector_operations_1): Update
10678 (expand_vector_operations): ... not here. Cleanup EH info
10679 and the CFG if required.
10681 2011-02-08 Richard Guenther <rguenther@suse.de>
10683 PR tree-optimization/47641
10684 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10685 require type compatibility.
10687 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10689 * gimple-low.c (lower_function_body): Don't remove the location of
10690 the return statement here.
10691 (lower_gimple_return): Do it here instead but only if the return
10692 statement is actually used twice.
10694 2011-02-08 Richard Guenther <rguenther@suse.de>
10696 PR tree-optimization/47632
10697 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10698 unused up_to_stmt parameter, return whether cfg-cleanup is
10699 necessary, remove EH info properly.
10700 (forward_propagate_into_gimple_cond): Adjust caller.
10701 (forward_propagate_into_cond): Likewise.
10702 (forward_propagate_comparison): Likewise.
10703 (tree_ssa_forward_propagate_single_use_vars): Make
10704 forward_propagate_comparison case similar to the two others.
10706 2011-02-08 Nick Clifton <nickc@redhat.com>
10708 * config/mn10300/mn10300.opt (mliw): New command line option.
10709 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10710 (liw_bundling): New automaton.
10711 (liw): New attribute.
10712 (liw_op): New attribute.
10713 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10714 (movsi_internal): Add LIW attributes.
10715 (andsi3): Likewise.
10716 (iorsi3): Likewise.
10717 (xorsi3): Likewise.
10718 (addsi3): Separate register and immediate alternatives.
10719 Add LIW attributes.
10720 (subsi3): Likewise.
10722 (aslsi3): Likewise.
10723 (lshrsi3): Likewise.
10724 (ashrsi3): Likewise.
10725 (liw): New pattern.
10726 * config/mn10300/mn10300.c (liw_op_names): New
10727 (mn10300_print_operand): Handle 'W' operand descriptor.
10728 (extract_bundle): New function.
10729 (check_liw_constraints): New function.
10730 (liw_candidate): New function.
10731 (mn10300_bundle_liw): New function.
10732 (mn10300_reorg): New function.
10733 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10734 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10735 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10736 __LIW__ or __NO_LIW__.
10737 * doc/invoke.texi: Describe the -mliw command line option.
10739 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10741 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10742 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10743 pthread_mutex_unlock): Remove.
10744 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10745 * config/pa/t-pa64: Likewise.
10746 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10747 shared libc if not linking against libpthread.
10748 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10750 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10753 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10754 on 10.6 and later to ensure that we always use the unwinder from
10755 the system. Only add -no_compact_unwind when tarteting darwin
10758 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10761 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10762 (vec_interleave_lowv2sf): Ditto.
10763 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10764 (vec_extract_oddv2sf): Ditto.
10766 2011-02-07 Mike Stump <mikestump@comcast.net>
10769 Add __ieee_divdc3 entry point.
10770 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10772 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10773 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10774 * config/darwin.c (darwin_rename_builtins): Add.
10775 * config/darwin-protos.h (darwin_rename_builtins): Add.
10777 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10780 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10783 2011-02-07 Mike Stump <mikestump@comcast.net>
10785 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10787 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10790 * config/avr/libgcc.S (exit): Move .endfunc
10792 2011-02-07 Richard Guenther <rguenther@suse.de>
10794 PR tree-optimization/47615
10795 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10796 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10797 (run_scc_vn): Initialize it.
10798 (visit_reference_op_load): Use it.
10799 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10801 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10803 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10804 DImode trapping arithmetic libfuncs.
10806 2011-02-07 Richard Guenther <rguenther@suse.de>
10808 PR tree-optimization/47621
10809 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10811 (execute_update_addresses_taken): ... here. Make it more
10812 conservative in what we accept.
10814 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10816 * config/sparc/freebsd.h (ASM_SPEC): Define.
10817 * config/sparc/vxworks.h (ASM_SPEC): Define.
10819 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10821 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10823 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10825 * doc/invoke.texi: Remove reference to compiler internals from
10826 user documentation.
10828 * reg-notes.def: Remove REG_VALUE_PROFILE.
10829 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10831 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10833 PR middle-end/47610
10834 * varasm.c (default_section_type_flags): If decl is NULL,
10835 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10837 2011-02-05 Jie Zhang <jie@codesourcery.com>
10840 * web.c (entry_register): Don't clobber the number of the
10841 first uninitialized reference in used[].
10843 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10845 PR tree-optimization/46194
10846 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10847 (build_classic_dist_vector_1): Do not represent classic distance
10848 vectors when the access functions are variating in different loops.
10850 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10852 * config/mips/iris6.opt: New.
10853 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10855 2011-02-04 Richard Henderson <rth@redhat.com>
10856 Steve Ellcey <sje@cup.hp.com>
10859 * config/ia64/predicates.md (mux1_brcst_element): New.
10860 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10861 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10862 (ia64_unpack_sign): New.
10863 (ia64_expand_unpack): Rewrite using new routines.
10864 (ia64_expand_widen_sum): Ditto.
10865 (ia64_expand_dot_prod_v8qi): Ditto.
10866 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10867 routines, add endian check.
10868 (pmpy2_even): Rename from pmpy2_r, add endian check.
10869 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10870 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10871 (vec_widen_smult_hi_v4hi): Ditto.
10872 (vec_widen_umult_lo_v4hi): Ditto.
10873 (vec_widen_umult_hi_v4hi): Ditto.
10874 (mulv2si3): Change endian checks.
10875 (sdot_prodv4hi): Rewrite with new calls.
10876 (udot_prodv4hi): New.
10877 (vec_pack_ssat_v4hi): Add endian check.
10878 (vec_pack_usat_v4hi): Ditto.
10879 (vec_pack_ssat_v2si): Ditto.
10880 (max1_even): Rename from max1_r, add endian check.
10881 (max1_odd): Rename from max1_l, add endian check.
10882 (*mux1_rev): Format change.
10883 (*mux1_mix): Ditto.
10884 (*mux1_shuf): Ditto.
10885 (*mux1_alt): Ditto.
10886 (*mux1_brcst_v8qi): Use new predicate.
10887 (vec_extract_evenv8qi): Remove endian check.
10888 (vec_extract_oddv8qi): Ditto.
10889 (vec_interleave_lowv4hi): Format change.
10890 (vec_interleave_highv4hi): Ditto.
10891 (mix2_even): Rename from mix2_r, add endian check.
10892 (mix2_odd): Rename from mux2_l, add endian check.
10893 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10894 (vec_extract_evenodd_helper): Format change.
10895 (vec_extract_evenv4hi): Remove endian check.
10896 (vec_extract_oddv4hi): Remove endian check.
10897 (vec_interleave_lowv2si): Format change.
10898 (vec_interleave_highv2si): Format change.
10899 (vec_initv2si): Remove endian check.
10900 (vecinit_v2si): Add endian check.
10901 (reduc_splus_v2sf): Add endian check.
10902 (reduc_smax_v2sf): Ditto.
10903 (reduc_smin_v2sf): Ditto.
10904 (vec_initv2sf): Remove endian check.
10905 (fpack): Add endian check.
10906 (fswap): Add endian check.
10907 (vec_interleave_highv2sf): Add endian check.
10908 (vec_interleave_lowv2sf): Add endian check.
10909 (fmix_lr): Add endian check.
10910 (vec_setv2sf): Format change.
10911 (*vec_extractv2sf_0_be): Use shift to extract operand.
10912 (*vec_extractv2sf_1_be): New.
10913 (vec_pack_trunc_v4hi): Add endian check.
10914 (vec_pack_trunc_v2si): Format change.
10916 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10918 PR inline-asm/23200
10919 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10920 do bb, locus and block comparison and disallow loads if it is not set.
10921 (stmt_is_replaceable_p): New function.
10922 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10924 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10925 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10927 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10929 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10931 * config/rs6000/xilinx.opt: New.
10932 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10934 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10936 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10938 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10940 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10941 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10942 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10943 secondary_reload_info, xtensa_secondary_reload): Remove.
10944 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10945 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10946 (xtensa_preferred_reload_class): Make static. Change return and
10947 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10948 Use CONST_DOUBLE_P predicate.
10949 (xtensa_preferred_output_reload_class): New function.
10950 (xtensa_secondary_reload): Make static.
10952 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10954 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10955 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10956 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10958 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10960 PR middle-end/31490
10961 * output.h (SECTION_RELRO): Define.
10962 (SECTION_MACH_DEP): Adjust.
10963 (get_variable_section): New prototype.
10964 * varpool.c (varpool_finalize_named_section_flags): New function.
10965 (varpool_assemble_pending_decls): Call it.
10966 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10967 * cgraphunit.c (cgraph_output_in_order): Call
10968 varpool_finalize_named_section_flags.
10969 * varasm.c (get_section): Allow section flags conflicts between
10970 relro and read-only sections if the section hasn't been declared yet.
10971 Set SECTION_OVERRIDE after diagnosing section type conflict.
10972 (get_variable_section): No longer static.
10973 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10974 readonly sections that need relocations.
10975 (decl_readonly_section_1): New function.
10976 (decl_readonly_section): Use it.
10979 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10980 Steve Ellcey <sje@cup.hp.com>
10982 PR middle-end/31490
10983 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10984 if section attribute used.
10986 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10988 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10989 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10990 (darwin_init_sections): Remove assertion.
10992 2011-02-03 Nick Clifton <nickc@redhat.com>
10994 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10996 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10997 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10998 instead of "n" and "pz".
10999 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11002 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11005 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11006 fma, expand FMA_EXPR as fma{,f,l} call.
11009 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11010 copy them into a unsigned char variable and pass address of it to
11011 lto_output_data_stream.
11014 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11015 around backend_init_target and lang_dependent_init_target calls.
11016 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11017 (verify_cgraph_node): Don't call set_cfun here. Use
11018 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11019 Set error_found for incorrectly represented calls to thunks.
11021 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11024 PR rtl-optimization/43494
11025 * rtl.h (for_each_inc_dec_fn): New type.
11026 (for_each_inc_dec): Declare.
11027 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11028 (for_each_inc_dec_find_inc_dec): New fn.
11029 (for_each_inc_dec_find_mem): New fn.
11030 (for_each_inc_dec): New fn.
11031 * dse.c (struct insn_size): Remove.
11032 (replace_inc_dec, replace_inc_dec_mem): Remove.
11033 (emit_inc_dec_insn_before): New fn.
11034 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11035 (canon_address): Pass mem modes to cselib_lookup.
11036 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11037 (cselib_lookup_from_insn): Likewise.
11038 (cselib_subst_to_values): Likewise.
11039 * cselib.c (find_slot_memmode): New var.
11040 (cselib_find_slot): New fn. Use it instead of
11041 htab_find_slot_with_hash everywhere.
11042 (entry_and_rtx_equal_p): Use find_slot_memmode.
11043 (autoinc_split): New fn.
11044 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11045 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11046 Deal with autoinc. Special-case recursion into MEMs.
11047 (cselib_hash_rtx): Likewise.
11048 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11049 address and MEM modes.
11050 (cselib_subst_to_values): Add memmode, pass it on.
11052 (cselib_lookup): Add memmode argument, pass it on.
11053 (cselib_lookup_from_insn): Add memmode.
11054 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11055 (struct cselib_record_autoinc_data): New.
11056 (cselib_record_autoinc_cb): New fn.
11057 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11058 mode to cselib_lookup. Reset autoinced REGs here instead of...
11059 (cselib_process_insn): ... here.
11060 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11062 (add_uses): Likewise, also to cselib_subst_to_values.
11063 (add_stores): Likewise.
11064 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11065 cselib_subst_to_values.
11066 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11067 * gcse.c (do_local_cprop): Adjusted.
11068 * postreload.c (reload_cse_simplify_set): Adjusted.
11069 (reload_cse_simplify_operands): Adjusted.
11070 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11072 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11074 PR tree-optimization/45122
11075 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11076 unsafe assumptions when there's more than one loop exit.
11078 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11081 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11082 Document using vector double with the load/store builtins, and
11083 that the load/store builtins always use Altivec instructions.
11085 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11086 to use altivec memory instructions, even on VSX.
11087 (vector_altivec_store_<mode>): Ditto.
11089 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11092 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11093 V2DF, V2DI support to load/store overloaded builtins.
11095 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11096 altivec load/store builtins for V2DF/V2DI types.
11098 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11099 set avoid indexed addresses on power6 if -maltivec.
11100 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11101 vector_altivec_load/vector_altivec_store builtins.
11102 (altivec_expand_st_builtin): Ditto.
11103 (altivec_expand_builtin): Add VSX memory builtins.
11104 (rs6000_init_builtins): Add V2DI types to internal types.
11105 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11106 load/store builtins.
11107 (rs6000_address_for_altivec): Insure memory address is appropriate
11110 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11111 vec_vsx_ld and vec_vsx_st.
11112 (vsx_store_<mode>): Ditto.
11114 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11115 variables to hold long long types for VSX vector memory builtins.
11116 (RS6000_BTI_unsigned_long_long): Ditto.
11117 (long_long_integer_type_internal_node): Ditti.
11118 (long_long_unsigned_type_internal_node): Ditti.
11120 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11121 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11122 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11124 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11126 (vec_vsx_st): Ditto.
11128 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11130 * config/pa/pa-hpux10.opt: New.
11131 * config/hpux11.opt (pthread): New Driver option.
11132 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11133 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11135 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11137 * config/ia64/vms.opt: New.
11138 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11140 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11143 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11144 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11145 generator functions.
11146 (vsx_floatuns<VSi><mode>2): Ditto.
11147 (vsx_fix_trunc<mode><VSi>2): Ditto.
11148 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11150 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11152 * config/i386/djgpp.opt (posix): New Driver option.
11154 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11156 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11157 Move to the unsupported targets list.
11159 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11161 PR rtl-optimization/47525
11162 * df-scan.c: Update copyright years.
11163 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11164 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11166 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11168 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11169 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11170 (ASM_OUTPUT_ASCII): Remove.
11171 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11173 2011-02-02 Jeff Law <law@redhat.com>
11175 PR middle-end/47543
11176 * reload.c (find_reloads_address): Handle reg+d address where both
11177 components are invalid by reloading the entire address.
11179 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11180 Richard Guenther <rguenther@suse.de>
11182 PR tree-optimization/40979
11184 * passes.c (init_optimization_passes): After LIM call copy_prop
11185 and DCE to clean up.
11186 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11188 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11190 PR tree-optimization/47576
11191 PR tree-optimization/47555
11192 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11193 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11194 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11195 * tree-scalar-evolution.c (follow_ssa_edge): Use
11196 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11198 2011-02-02 Richard Guenther <rguenther@suse.de>
11200 PR tree-optimization/47566
11201 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11203 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11207 * tree-inline.c (declare_return_variable): Remove unused caller
11212 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11213 * cfgexpand.c (account_used_vars_for_block): Use them.
11214 * tree-nrv.c (tree_nrv): Likewise.
11215 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11216 (dump_scope_block): Likewise.
11217 (remove_unused_locals): Likewise.
11221 * tree-inline.c (declare_return_variable): Add result decl to
11222 local decls only once.
11223 * gimple-low.c (record_vars_into): Mark newly-created variables
11226 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11232 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11234 (no_real_insns_p, schedule_block, set_priorities): Drop special
11235 treatment of boundary debug insns.
11236 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11237 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11238 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11239 (BOUNDARY_DEBUG_INSN_P): Likewise.
11240 (SCHEDULE_DEBUG_INSN_P): Likewise.
11241 * sched-rgn.c (init_ready_list): Drop special treatment of
11242 boundary debug insns.
11243 * final.c (rest_of_clean_state): Clear notes' BB.
11245 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11247 * config/openbsd.opt (assert=): New Driver option.
11249 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11251 * config/i386/nto.opt: New.
11252 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11254 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11256 * config/i386/netware.opt: New.
11257 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11259 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11261 * config/interix.opt (posix): New Driver option.
11263 2011-02-01 DJ Delorie <dj@redhat.com>
11265 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11267 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11270 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11272 PR tree-optimization/47561
11273 * toplev.c (process_options): Print the Graphite flags. Add
11274 flag_loop_flatten to the list of options requiring Graphite.
11276 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11278 * config/i386/cygming.opt (posix): New Driver option.
11280 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11282 * config/arm/vxworks.opt: New.
11283 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11285 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11287 * config/alpha/elf.opt: New.
11288 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11289 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11291 2011-02-01 Richard Guenther <rguenther@suse.de>
11293 PR tree-optimization/47559
11294 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11295 store-motion on references that can throw.
11297 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11299 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11300 * tree-pass.h (TDF_CSELIB): New macro.
11301 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11302 cselib_lookup): Check for it rather than for TDF_DETAILS.
11304 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11307 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11308 is HOST_BIT_BUCKET.
11310 * opts.c (finish_options): Don't add x_aux_base_name if it is
11313 2011-02-01 Richard Guenther <rguenther@suse.de>
11315 PR tree-optimization/47555
11317 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11319 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11321 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11324 * config/lm32/t-lm32: Add multilib for all CPU options.
11326 2011-02-01 Richard Guenther <rguenther@suse.de>
11328 PR tree-optimization/47541
11329 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11330 sure to have a field at offset zero.
11332 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11334 * config/arc/arc.opt (EB, EL): New Driver options.
11336 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11338 * config/alpha/osf5.opt: New.
11339 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11341 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11343 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11345 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11347 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11348 -floop-interchange.
11349 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11350 is an alias of -floop-interchange and that it requires the
11351 Graphite infrastructure.
11352 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11353 flag_loop_interchange based on the value of flag_tree_loop_linear.
11355 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11356 Richard Guenther <rguenther@suse.de>
11358 PR tree-optimization/47538
11359 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11360 type instead of r1type, except for comparisons. For right
11361 shifts and comparisons punt if there are mismatches in
11362 sizetype vs. non-sizetype types.
11364 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11366 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11369 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11371 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11373 * configure: Regenerate.
11375 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11377 * configure.ac (gcc_cv_ld_static_option): Define.
11378 (gcc_cv_ld_dynamic_option): Define.
11379 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11381 (HAVE_LD_STATIC_DYNAMIC): Update message.
11382 (LD_STATIC_OPTION): Define.
11383 (LD_DYNAMIC_OPTION): Define.
11384 * configure: Regenerate.
11385 * config.in: Regenerate.
11386 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11387 HAVE_LD_STATIC_DYNAMIC]: Use them.
11389 2011-01-31 Nick Clifton <nickc@redhat.com>
11391 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11392 registers inside interrupt handlers if the handler is not a leaf
11395 2011-01-31 Nick Clifton <nickc@redhat.com>
11397 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11398 reg_renumber returning an INVALID_REGNUM.
11400 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11403 * doc/install.texi: Document host options discarded when cross
11404 configuring target libraries.
11406 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11409 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11412 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11414 (no_real_insns_p, schedule_block, set_priorities): Drop special
11415 treatment of boundary debug insns.
11416 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11417 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11418 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11419 (BOUNDARY_DEBUG_INSN_P): Likewise.
11420 (SCHEDULE_DEBUG_INSN_P): Likewise.
11421 * sched-rgn.c (init_ready_list): Drop special treatment of
11422 boundary debug insns.
11423 * final.c (rest_of_clean-state): Clear notes' BB.
11425 2011-01-31 Alan Modra <amodra@gmail.com>
11427 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11428 toc relative expressions as we do in print_operand_address.
11430 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11432 * doc/extend.texi: Follow spelling conventions.
11433 * doc/invoke.texi: Fix a typo.
11435 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11437 * config/hpux11.opt: New.
11438 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11439 ia64*-*-hpux*): Use hpux11.opt.
11441 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11443 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11446 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11448 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11451 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11453 * doc/install.texi (Binaries): Remove outdated reference for
11454 Motorola 68HC11/68HC12 downloads.
11456 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11458 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11461 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11464 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11467 2011-01-28 Ahmad Sharif <asharif@google.com>
11469 * value-prof.c (check_counter): Corrected error message.
11471 2011-01-29 Jie Zhang <jie@codesourcery.com>
11473 * config/arm/arm.c (arm_legitimize_reload_address): New.
11474 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11475 arm_legitimize_reload_address.
11476 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11478 2011-01-28 Ian Lance Taylor <iant@google.com>
11480 * godump.c (go_define): Ignore macros whose definitions include
11481 two adjacent operands.
11483 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11486 * varasm.c (force_const_mem): Store copy of x in desc->constant
11487 instead of x itself.
11488 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11489 itself into REG_EQUAL note.
11491 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11493 * config/freebsd.opt (posix, rdynamic): New Driver options.
11495 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11497 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11498 -Bstatic/-Bdynamic.
11499 * configure: Regenerate.
11501 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11503 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11504 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11506 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11508 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11509 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11510 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11511 (s390_preferred_reload_class): Make static. Change return and
11512 'rclass' argument type to reg_class_t.
11514 2011-01-27 Jan Hubicka <jh@suse.cz>
11516 PR middle-end/46949
11517 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11518 (process_function_and_variable_attributes): Check defined weakrefs.
11520 2011-01-27 Martin Jambor <mjambor@suse.cz>
11522 PR tree-optimization/47228
11523 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11524 build_ref_for_offset.
11526 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11528 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11530 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11532 PR rtl-optimization/46856
11533 * postreload.c (reload_combine_recognize_const_pattern): Do not
11534 separate cc0 setter and user on cc0 targets.
11536 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11539 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11540 passed a VOID_TYPE expression, immediately emit an error and
11541 return error_mark_node.
11543 2011-01-26 Jeff Law <law@redhat.com>
11545 PR rtl-optimization/47464
11546 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11547 rather than may_trap_p as needed.
11549 2011-01-26 DJ Delorie <dj@redhat.com>
11551 PR rtl-optimization/46878
11552 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11553 setter/user dependency as well.
11555 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11557 PR rtl-optimization/44469
11558 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11559 after removing trivially dead basic blocks.
11561 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11563 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11564 * config/frv/frv.h (LINK_SPEC): Likewise.
11565 * config/i386/netware.h (LINK_SPEC): Likewise.
11566 * config/m68k/linux.h (ASM_SPEC): Likewise.
11567 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11568 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11569 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11570 * config/sparc/linux.h (ASM_SPEC): Likewise.
11571 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11572 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11574 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11576 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11577 * config/frv/frv.h (ASM_SPEC): Likewise.
11578 * config/m68k/linux.h (ASM_SPEC): Likewise.
11579 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11580 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11581 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11582 * config/sparc/linux.h (ASM_SPEC): Likewise.
11583 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11584 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11586 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11588 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11589 * config/frv/frv.h (LINK_SPEC): Likewise.
11590 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11592 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11594 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11595 * config/frv/frv.h (ASM_SPEC): Likewise.
11596 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11597 * config/m68k/linux.h (ASM_SPEC): Likewise.
11598 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11599 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11600 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11601 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11602 * config/sparc/linux.h (ASM_SPEC): Likewise.
11603 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11604 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11605 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11607 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11610 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11612 (vec_extract_evenodd_help): Ditto.
11613 (vec_extract_evenv4hi): Ditto.
11614 (vec_extract_oddv4hi): Ditto.
11615 (vec_interleave_lowv2si): Ditto.
11616 (vec_interleave_highv2si): Ditto.
11617 (vec_extract_evenv2si): Ditto.
11618 (vec_extract_oddv2si: Ditto.
11619 (vec_pack_trunc_v2si): Ditto.
11621 2011-01-22 Jan Hubicka <jh@suse.cz>
11624 * cgraph.h (cgraph_local_info): New field can_change_signature.
11625 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11626 signature can change.
11627 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11629 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11630 (cgraph_function_versioning): We can not change signature of functions
11631 that don't allow that.
11632 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11633 (lto_input_node): Likewise.
11634 * ipa-inline.c (compute_inline_parameters): Compute
11635 local.can_change_signature.
11636 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11637 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11638 functions that can not change signature.
11639 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11640 init_cumulative_args): Do not use local calling conventions
11641 for functions that can not change signature.
11643 2011-01-22 Jan Hubicka <jh@suse.cz>
11645 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11647 2011-01-26 Richard Guenther <rguenther@suse.de>
11649 PR tree-optimization/47190
11650 * cgraphunit.c (process_common_attributes): New function.
11651 (process_function_and_variable_attributes): Use it.
11653 2011-01-26 Richard Guenther <rguenther@suse.de>
11656 * cgraphbuild.c (record_eh_tables): Record reference to personality
11659 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11662 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11663 non-debug insns from moving up.
11665 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11668 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11669 t-dlldir{,-x} fragment for build and add it to tmake_file.
11670 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11671 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11672 * config/i386/t-dlldir: New file.
11673 (SHLIB_DLLDIR): Define.
11674 * config/i386/t-dlldir-x: New file.
11675 (SHLIB_DLLDIR): Define.
11676 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11677 (SHLIB_INSTALL): Use it.
11679 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11682 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11683 lower bound of the allowed Thumb-2 coprocessor load/store
11684 index range to -256. Add explaining comment.
11686 2011-01-25 Ian Lance Taylor <iant@google.com>
11688 * godump.c (go_define): Improve lexing of macro expansion to only
11689 accept expressions which match Go spec.
11691 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11694 * tree.c (handle_dll_attribute): Handle it.
11695 * doc/extend.texi (@item dllexport): Mention it.
11696 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11698 2011-01-25 Ian Lance Taylor <iant@google.com>
11700 PR tree-optimization/26854
11701 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11702 (decl_jump_unsafe): Move higher in file, with no other change.
11703 (bind): Set has_jump_unsafe_decl if appropriate.
11704 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11705 (check_earlier_gotos): Likewise.
11706 (c_check_switch_jump_warnings): Likewise.
11708 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11710 * doc/invoke.texi (Warning Options): Add missing hyphen.
11711 (-fprofile-dir): Minor grammatical fixes.
11712 (-fbranch-probabilities): Likewise.
11714 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11718 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11720 (no_real_insns_p, schedule_block, set_priorities): Drop special
11721 treatment of boundary debug insns.
11722 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11723 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11724 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11725 (BOUNDARY_DEBUG_INSN_P): Likewise.
11726 (SCHEDULE_DEBUG_INSN_P): Likewise.
11727 * sched-rgn.c (init_ready_list): Drop special treatment of
11728 boundary debug insns.
11729 * final.c (rest_of_clean-state): Clear notes' BB.
11731 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11733 * Makefile.in (LAMBDA_H): Removed.
11734 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11735 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11736 lambda-trans.o, and tree-loop-linear.o.
11737 (lto-symtab.o): Remove dependence on LAMBDA_H.
11738 (tree-loop-linear.o): Remove rule.
11739 (lambda-mat.o): Same.
11740 (lambda-trans.o): Same.
11741 (lambda-code.o): Same.
11742 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11743 (tree-vect-slp.o): Same.
11744 * hwint.h (gcd): Moved here.
11745 (least_common_multiple): Same.
11746 * lambda-code.c: Removed.
11747 * lambda-mat.c: Removed.
11748 * lambda-trans.c: Removed.
11749 * lambda.h: Removed.
11750 * tree-loop-linear.c: Removed.
11751 * lto-symtab.c: Do not include lambda.h.
11752 * omega.c (gcd): Removed.
11753 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11754 * tree-data-ref.c (print_lambda_vector): Moved here.
11755 (lambda_vector_copy): Same.
11756 (lambda_matrix_copy): Same.
11757 (lambda_matrix_id): Same.
11758 (lambda_vector_first_nz): Same.
11759 (lambda_matrix_row_add): Same.
11760 (lambda_matrix_row_exchange): Same.
11761 (lambda_vector_mult_const): Same.
11762 (lambda_vector_negate): Same.
11763 (lambda_matrix_row_negate): Same.
11764 (lambda_vector_equal): Same.
11765 (lambda_matrix_right_hermite): Same.
11766 * tree-data-ref.h: Do not include lambda.h.
11767 (lambda_vector): Moved here.
11768 (lambda_matrix): Same.
11769 (dependence_level): Same.
11770 (lambda_transform_legal_p): Removed declaration.
11771 (lambda_collect_parameters): Same.
11772 (lambda_compute_access_matrices): Same.
11773 (lambda_vector_gcd): Same.
11774 (lambda_vector_new): Same.
11775 (lambda_vector_clear): Same.
11776 (lambda_vector_lexico_pos): Same.
11777 (lambda_vector_zerop): Same.
11778 (lambda_matrix_new): Same.
11779 * tree-flow.h (least_common_multiple): Removed declaration.
11780 * tree-parloops.c (lambda_trans_matrix): Moved here.
11781 (LTM_MATRIX): Same.
11782 (LTM_ROWSIZE): Same.
11783 (LTM_COLSIZE): Same.
11784 (LTM_DENOMINATOR): Same.
11785 (lambda_trans_matrix_new): Same.
11786 (lambda_matrix_vector_mult): Same.
11787 (lambda_transform_legal_p): Same.
11788 * tree-pass.h (pass_linear_transform): Removed declaration.
11789 * tree-ssa-loop.c (tree_linear_transform): Removed.
11790 (gate_tree_linear_transform): Removed.
11791 (pass_linear_transform): Removed.
11792 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11793 flag_loop_interchange.
11795 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11797 PR tree-optimization/47265
11798 PR tree-optimization/47443
11799 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11800 if name still has some uses.
11802 2011-01-25 Martin Jambor <mjambor@suse.cz>
11804 PR tree-optimization/47382
11805 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11806 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11808 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11810 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11811 sjlj_except_unwind_info.
11813 2011-01-25 Richard Guenther <rguenther@suse.de>
11815 PR tree-optimization/47426
11816 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11817 visible functions results escape.
11819 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11822 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11823 (arm_get_frame_offsets): Use it.
11825 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11826 Jakub Jelinek <jakub@redhat.com>
11828 PR tree-optimization/47271
11829 * tree-if-conv.c (bb_postdominates_preds): New.
11830 (if_convertible_bb_p): Call bb_postdominates_preds.
11831 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11832 (predicate_scalar_phi): Call bb_postdominates_preds.
11834 2011-01-25 Nick Clifton <nickc@redhat.com>
11836 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11837 * config/rx/rx.c (rx_function_value): Likewise.
11838 (rx_promote_function_mode): Likewise.
11839 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11840 in order to make it legitimate.
11841 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11842 make sure that the first operand is the same as the result register.
11843 (addsi3_unspec): Delete.
11844 (subdi3): Do not accept immediate operands.
11845 (subdi3_internal): Likewise.
11847 2011-01-25 Jeff Law <law@redhat.com>
11849 PR rtl-optimization/37273
11850 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11851 handle them like argument loads from stack slots. Do not double
11852 count memory for memory constants and argument loads from stack slots.
11854 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11856 PR tree-optimization/47427
11857 PR tree-optimization/47428
11858 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11859 coalesce if the new root var would be TREE_READONLY.
11861 2011-01-25 Richard Guenther <rguenther@suse.de>
11863 PR middle-end/47414
11864 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11865 correct type for TBAA.
11867 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11869 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11870 (close_phi_written_to_memory): Call for_each_index with
11871 dr_indices_valid_in_loop.
11873 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11875 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11876 when it is initialized.
11878 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11880 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11881 call to graphite_find_data_references_in_stmt.
11882 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11883 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11884 call to graphite_find_data_references_in_stmt.
11885 (analyze_drs_in_stmts): Same.
11886 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11887 in which the scalar analysis of indices is performed.
11888 (create_data_ref): Same. Update call to dr_analyze_indices.
11889 (find_data_references_in_stmt): Update call to create_data_ref.
11890 (graphite_find_data_references_in_stmt): Same.
11891 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11893 (create_data_ref): Same.
11894 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11895 call to create_data_ref.
11897 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11899 * graphite-sese-to-poly.c (build_poly_scop): Move
11900 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11902 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11904 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11905 VAR_DECL, PARM_DECL, and RESULT_DECL.
11907 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11909 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11910 in a reduction PBB.
11911 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11912 that have already been marked as PBB_IS_REDUCTION.
11914 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11916 * graphite-scop-detection.c (same_close_phi_node): New.
11917 (remove_duplicate_close_phi): New.
11918 (make_close_phi_nodes_unique): New.
11919 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11921 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11923 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11924 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11925 of both data references to be the same.
11927 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11929 * graphite-dependences.c (build_lexicographical_constraint): Remove
11930 the gdim parameter.
11931 (build_lexicographical_constraint): Adjust call to
11932 ppl_powerset_is_empty.
11933 (dependence_polyhedron): Same.
11934 (graphite_legal_transform_dr): Same.
11935 (graphite_carried_dependence_level_k): Same.
11936 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11938 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11940 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11942 * graphite-sese-to-poly.c
11943 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11944 (close_phi_written_to_memory): New.
11945 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11948 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11950 * doc/install.texi: Update the expected version number of PPL to 0.11.
11951 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11952 #if PPL_VERSION_MINOR < 11.
11954 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11956 * graphite-dependences.c: Include graphite-cloog-util.h.
11957 (new_poly_ddr): Inlined into dependence_polyhedron.
11958 (free_poly_ddr): Moved close by new_poly_ddr.
11959 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11960 Early return NULL when ppl_powerset_is_empty returns true.
11961 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11962 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11963 (graphite_legal_transform_dr): Call new_poly_ddr.
11964 (graphite_carried_dependence_level_k): Same.
11965 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11966 (dot_transformed_deps_stmt_1): Removed.
11967 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11968 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11969 (dot_deps_1): Call dot_deps_2.
11970 * Makefile.in (graphite-dependences.o): Add missing dependence on
11971 graphite-cloog-util.h.
11973 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11975 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11976 (build_lexicographical_constraint): Same.
11977 (dependence_polyhedron_1): Same.
11978 (graphite_legal_transform_dr): Same.
11979 (graphite_carried_dependence_level_k): Same.
11980 * graphite-ppl.c (ppl_powerset_is_empty): New.
11981 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11982 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11984 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11986 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11987 the "a followed by b" relation and document it.
11989 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11991 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11992 iteration when the bag of constraints is empty.
11994 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11996 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11998 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12000 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12001 nest and two loop depths as parameters.
12002 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12003 lst_perfect_nestify.
12005 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12007 * graphite-dependences.c (print_pddr): Call
12008 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12010 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12012 * graphite-ppl.c (debug_gmp_value): New.
12013 * graphite-ppl.h (debug_gmp_value): Declared.
12015 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12017 * doc/install.texi: Document availability of cloog-0.16.
12019 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12021 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12022 invalid postdominance info.
12024 2011-01-24 Jan Hubicka <jh@suse.cz>
12027 * doc/extend.texi (weak pragma): Drop claim that it must
12028 appear before definition.
12029 * varasm.c (merge_weak, declare_weak): Only sanity check
12030 that DECL is not output at a time it is declared weak.
12032 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12034 * machmode.def: Fixed comments.
12036 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12038 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12040 2011-01-24 Paul Koning <ni1d@arrl.net>
12042 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12045 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12048 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12049 (block_info): Add scanned and prev.
12050 (move_or_delete_vzeroupper_2): Return if the basic block
12051 has been scanned and the upper 128bit state is unchanged
12052 from the last scan.
12053 (move_or_delete_vzeroupper_1): Return true if the exit
12055 (move_or_delete_vzeroupper): Visit basic blocks using the
12056 work-list based algorithm based on vt_find_locations in
12059 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12061 2011-01-24 Nick Clifton <nickc@redhat.com>
12063 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12064 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12065 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12066 then define __v850e1__.
12067 * doc/invoke.texi: Document -mv850es.
12069 2011-01-24 Richard Henderson <rth@redhat.com>
12071 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12072 compound unordered comparisons.
12073 * config/rx/rx.c (rx_split_fp_compare): Remove.
12074 * config/rx/rx-protos.h: Update.
12075 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12076 (cbranchsf4): Don't call rx_split_fp_compare.
12077 (*cbranchsf4): Use rx_split_cbranch.
12078 (*cmpsf): Don't accept "i" constraint.
12079 (*conditional_branch): Only valid after reload.
12080 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12082 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12085 * config/rs6000/altivec.md (vector constant splitters): Add
12086 support for creating vector single precision constants if -mvsx is
12087 used and we would create the constant using Altivec primitives.
12089 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12090 Richard Sandiford <rdsandiford@googlemail.com>
12092 PR rtl-optimization/47166
12093 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12094 mechanism for PRE_MODIFY and POST_MODIFY.
12095 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12098 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12100 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12102 2011-01-22 Jan Hubicka <jh@suse.cz>
12105 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12107 2011-01-22 Jan Hubicka <jh@suse.cz>
12109 PR tree-optimization/43884
12111 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12112 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12114 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12116 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12117 * config/s390/s390.c (s390_register_move_cost,
12118 s390_memory_move_cost): New.
12119 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12121 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12123 PR middle-end/47401
12124 * except.c (sjlj_assign_call_site_values): Move setting the
12125 crtl->uses_eh_lsda flag to ...
12126 (sjlj_mark_call_sites): ... here.
12127 (sjlj_emit_function_enter): Support NULL dispatch label.
12128 (sjlj_build_landing_pads): In a function with no landing pads
12129 that still has must-not-throw regions, generate code to register
12130 a personality function with empty LSDA.
12132 2011-01-21 Richard Henderson <rth@redhat.com>
12134 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12136 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12138 * compare-elim.c: New file.
12139 * Makefile.in (OBJS-common): Add it.
12140 (compare-elim.o): New.
12141 * common.opt (fcompare-elim): New.
12142 * opts.c (default_options_table): Add OPT_fcompare_elim.
12143 * tree-pass.h (pass_compare_elim_after_reload): New.
12144 * passes.c (init_optimization_passes): Add it.
12145 * recog.h: Protect against re-inclusion.
12146 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12147 * doc/invoke.texi (-fcompare-elim): Document it.
12148 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12149 * doc/tm.texi: Rebuild.
12151 2011-01-22 Nick Clifton <nickc@redhat.com>
12153 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12154 rx_split_fp_compare.
12156 2011-01-22 Nick Clifton <nickc@redhat.com>
12158 * config/rx/rx.md (UNSPEC_CONST): New.
12159 (deallocate_and_return): Wrap the amount popped off the stack in
12160 an UNSPEC_CONST in order to stop it being rejected by
12161 -mmax-constant-size.
12162 (pop_and_return): Add a "(return)" rtx.
12163 (call): Drop the immediate operand.
12164 (call_internal): Likewise.
12165 (call_value): Likewise.
12166 (call_value_internal): Likewise.
12167 (sibcall_internal): Likewise.
12168 (sibcall_value_internal): Likewise.
12169 (sibcall): Likewise. Generate an explicit call using
12171 (sibcall_value): Likewise.
12172 (mov<>): FAIL if a constant operand is not legitimate.
12173 (addsi3_unpsec): New pattern.
12175 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12176 (ok_for_max_constant): New function.
12177 (gen_safe_add): New function.
12178 (rx_expand_prologue): Use gen_safe_add.
12179 (rx_expand_epilogue): Likewise.
12180 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12183 2011-01-21 Jeff Law <law@redhat.com>
12185 PR tree-optimization/47053
12186 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12187 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12188 statements are deleted.
12189 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12190 is nonempty, then purge dead edges and cleanup the CFG.
12192 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12195 Temporarily revert:
12196 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12198 * tree-dfa.c (create_var_ann): Mark variable as used.
12200 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12202 PR middle-end/45566
12203 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12204 notes from other section in hot/cold partitioning even if
12205 last_action is -3. Increment call_site_base.
12207 PR rtl-optimization/47366
12208 * fwprop.c (forward_propagate_into): Return bool. If
12209 any changes are made, -fnon-call-exceptions is used and
12210 REG_EH_REGION note is present, call purge_dead_edges
12211 and return true if it purged anything.
12212 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12213 any EH edges were purged.
12215 2011-01-21 Jeff Law <law@redhat.com>
12217 PR rtl-optimization/41619
12218 * caller-save.c (setup_save_areas): Break out code to determine
12219 which hard regs are live across calls by examining the reload chains
12220 so that it is always used.
12221 Eliminate code which checked REG_N_CALLS_CROSSED.
12223 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12225 PR tree-optimization/47355
12226 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12227 NOP has non-debug uses beyond PHIs in new_bb.
12229 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12232 * cfgexpand.c (account_used_vars_for_block): Only account vars
12233 that are annotated as used.
12234 (estimated_stack_frame_size): Don't set TREE_USED.
12235 * tree-dfa.c (create_var_ann): Mark variable as used.
12237 2011-01-21 Richard Guenther <rguenther@suse.de>
12239 PR middle-end/47395
12240 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12242 2011-01-21 Richard Guenther <rguenther@suse.de>
12244 PR tree-optimization/47365
12245 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12246 (vn_reference_lookup_pieces): Adjust.
12247 (vn_reference_lookup): Likewise.
12248 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12249 (vn_reference_lookup_3): Only look through kills if in
12250 VN_WALKREWRITE mode.
12251 (vn_reference_lookup_pieces): Adjust.
12252 (vn_reference_lookup): Likewise.
12253 (visit_reference_op_load): Likewise.
12254 (visit_reference_op_store): Likewise.
12255 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12256 (compute_avail): Likewise.
12257 (eliminate): Likewise.
12259 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12261 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12262 DECL_IGNORED_P non-reg vars if they are used.
12264 PR tree-optimization/47391
12265 * varpool.c (const_value_known_p): Return false if
12268 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12271 * config/i386/i386.c (ix86_local_alignment): Handle
12272 case for va_list_type_node is nil.
12273 (ix86_canonical_va_list_type): Likewise.
12275 2011-01-21 Alan Modra <amodra@gmail.com>
12277 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12278 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12280 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12282 * config/arm/arm.md (define_attr type): Rename f_load
12283 and f_store to f_fpa_load and f_fpa_store. Update.
12284 (write_conflict): Deal with rename fallout.
12285 (*push_fp_multi): Likewise.
12286 * config/arm/fpa.md (f_load): Use f_fpa_load.
12287 (f_store): Use f_fpa_store.
12288 (*movsf_fpa): Likewise.
12289 (*movdf_fpa): Likewise.
12290 (*movxf_fpa): Likewise.
12291 (*thumb2_movsf_fpa): Likewise.
12292 (*thumb2_movdf_fpa): Likewise.
12293 (*thumb2_movxf_fpa): Likewise.
12294 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12295 f_loadd and f_stored.
12296 (*thumb2_movdi_vfp): Likewise.
12297 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12298 (*thumb2_movsi_vfp): Likewise.
12299 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12300 Use f_loads instead of f_load.
12301 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12303 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12305 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12306 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12307 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12308 (xtensa_mode_dependent_address_p): New function.
12309 (constantpool_address_p): Make static. Change return type to bool.
12310 Change argument type to const_rtx. Use CONST_INT_P predicate.
12312 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12315 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12317 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12320 * cfgexpand.c (expand_debug_expr): Instead of generating
12321 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12324 2011-01-20 Richard Guenther <rguenther@suse.de>
12326 PR middle-end/47370
12327 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12328 the pointer operand of MEM_REFs.
12330 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12332 PR tree-optimization/46130
12333 * ipa-split.c (consider_split): If return_bb contains non-virtual
12334 PHIs other than for retval or if split_function would not adjust it,
12337 2011-01-20 Richard Guenther <rguenther@suse.de>
12339 PR tree-optimization/47167
12340 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12341 Revert previous change, only avoid enumeral type changes.
12343 2011-01-19 Mike Stump <mikestump@comcast.net>
12345 * doc/tm.texi.in (BRANCH_COST): Englishify.
12346 * doc/tm.texi (BRANCH_COST): Likewise.
12348 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12351 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12352 (gen_scheduled_generic_parms_dies): New functions.
12353 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12354 generation for the end of CU compilation.
12355 (dwarf2out_finish): Generate template parameters DIEs here.
12357 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12360 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12361 debug bind stmt on merge edges.
12363 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12367 * function.c (instantiate_expr): Instantiate incoming rtl of
12368 implicit arguments, and recurse on VALUE_EXPRs.
12369 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12370 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12372 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12374 * c-parser.c (c_parser_for_statement): Initialize
12375 collection_expression.
12377 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12379 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12381 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12383 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12384 (LINK_SHLIB_SPEC): Don't use %(link_path).
12385 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12387 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12389 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12390 (NO_SHARED_LIB_SUPPORT): Remove.
12391 (LINK_SHLIB_SPEC): Remove one conditional definition.
12393 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12395 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12397 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12398 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12399 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12400 %{call_shared} and conditionals on these options not being passed.
12401 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12404 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12406 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12409 * ipa-split.c: Spelling fixes.
12411 2011-01-19 Richard Henderson <rth@redhat.com>
12413 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12414 (*mulsi3): Likewise.
12416 * longlong.h [__mn10300__] (count_leading_zeros): New.
12417 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12418 [__mn10300__] (add_ssaaaa, subddmmss): New.
12419 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12420 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12422 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12424 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12426 2011-01-19 Richard Henderson <rth@redhat.com>
12428 * config/mn10300/mn10300.md (addsi3_flags): New.
12429 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12430 (subsi3_flags, subc_internal, subdi3): New.
12431 (subdi3_internal, *subdi3_degenerate): New.
12432 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12434 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12435 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12436 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12437 * config/mn10300/mn10300-protos.h: Update.
12438 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12439 (return_ret): Likewise. Rename from return_internal_regs.
12440 (return_internal): Remove.
12442 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12443 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12444 (mn10300_legitimate_constant_p): Likewise.
12445 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12446 (mn10300_frame_size): New.
12447 (mn10300_expand_prologue): Use it.
12448 (mn10300_expand_epilogue): Likewise.
12449 (mn10300_initial_offset): Likewise.
12450 * config/mn10300/mn10300-protos.h: Update.
12451 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12452 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12453 (prologue, epilogue, return_internal): Tidy output code.
12454 (mn10300_store_multiple_operation, return): Likewise.
12455 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12456 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12457 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12458 (load_pic, am33_load_pic): New.
12459 (mn10300_load_pic0, mn10300_load_pic1): New.
12461 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12462 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12463 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12464 (cc_flags_for_mode, cc_flags_for_code): New.
12465 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12466 overflow flag is not valid. Validate that the flags we need
12467 for the comparison are valid.
12468 (mn10300_output_cmp): Remove.
12469 (mn10300_output_add): New.
12470 (mn10300_select_cc_mode): Use cc_flags_for_code.
12471 (mn10300_split_cbranch): New.
12472 (mn10300_match_ccmode): New.
12473 (mn10300_split_and_operand_count): New.
12474 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12476 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12477 (addsi3): ... here. Use mn10300_output_add.
12478 (*addsi3_flags): New.
12479 (*am33_subsi3, *mn10300_subsi3): Merge...
12480 (subsi3): ... here. Use attribute isa.
12481 (*subsi3_flags): New.
12482 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12484 (*am33_andsi3, *mn10300_andsi3): Merge...
12485 (andsi3): ... here.
12486 (*andsi3_flags): New.
12487 (andsi3 splitters): New.
12488 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12489 (iorsi3): ... here.
12490 (*iorsi3_flags): New.
12491 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12492 (xorsi3): ... here.
12493 (*xorsi3_flags): New.
12494 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12495 (one_cmplsi2): ... here.
12496 (*one_cmplsi2_flags): New.
12497 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12498 instead of "dax" in constraints. Use mn10300_split_cbranch.
12499 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12500 use matching constraints to eliminate a self-comparison.
12501 (*integer_conditional_branch): Rename from integer_conditional_branch.
12502 Use int_mode_flags to match CC_REG.
12503 (*cbranchsi4_btst, *btstsi): New.
12504 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12505 mn10300_split_cbranch.
12506 (*am33_cmpsf): Rename from am33_cmpsf.
12507 (*float_conditional_branch): Rename from float_conditional_branch.
12508 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12509 (zero_extendqisi2): ... here.
12510 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12511 (zero_extendhisi2): ... here.
12512 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12513 (extendqisi2): ... here.
12514 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12515 (extendhisi2): ... here.
12516 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12517 (ashlsi3): ... here.
12518 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12519 (lshrsi3): ... here.
12520 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12521 (ashrsi3): ... here.
12522 (consecutive add peephole): Remove.
12523 * config/mn10300/predicates.md (label_ref_operand): New.
12524 (int_mode_flags): New.
12525 (CCZN_comparison_operator): New.
12527 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12528 (throughput_42_latency_43): New reservation.
12529 (mulsidi3, umulsidi3): New expanders.
12530 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12531 the MDR register to allocation; separately allocate the low and
12532 high parts of the DImode result.
12533 (umulsidi3_internal): Similarly.
12534 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12535 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12536 (udivsi3, umodsi3): Remove.
12537 (udivmodsi4, divmodsi4): New expanders.
12538 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12539 (*divmodsi4): Simiarly.
12540 (ext_internal): New.
12542 * config/mn10300/constraints.md ("z"): New constraint.
12543 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12544 (FIXED_REGISTERS): Don't fix MDR.
12545 (CALL_USED_REGSITERS): Reformat nicely.
12546 (REG_ALLOC_ORDER): Add MDR.
12547 (enum regclass): Add MDR_REGS.
12548 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12549 (IRA_COVER_CLASSES): Add MDR_REGS.
12550 (REGNO_REG_CLASS): Handle MDR_REG.
12551 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12552 (mn10300_register_move_cost): Likewise.
12553 * config/mn10300/mn10300.md (MDR_REG): New.
12554 (*movsi_internal): Handle moves to/from MDR_REGS.
12556 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12558 (mn10300_secondary_reload): Tidy combination reload classes.
12559 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12560 addresses for AM33. Allow symbolic offsets for reg+imm.
12561 (mn10300_regno_in_class_p): New.
12562 (mn10300_legitimize_reload_address): New.
12563 * config/mn10300/mn10300.h (enum reg_class): Remove
12564 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12565 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12566 SP_OR_GENERAL_REGS.
12567 (REG_CLASS_NAMES): Update to match.
12568 (REG_CLASS_CONTENTS): Likewise.
12569 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12570 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12571 (REGNO_IN_RANGE_P): Remove.
12572 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12573 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12574 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12575 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12576 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12577 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12578 (REGNO_GENERAL_P): New.
12579 (HAVE_POST_MODIFY_DISP): New.
12580 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12581 (LEGITIMIZE_RELOAD_ADDRESS): New.
12582 * config/mn10300/mn10300-protos.h: Update.
12584 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12585 DATA_REGS for AM33 stack-pointer destination.
12586 (mn10300_preferred_output_reload_class): Likewise.
12587 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12588 into a form appropriate for ...
12589 (TARGET_SECONDARY_RELOAD): New.
12590 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12591 * config/mn10300/mn10300-protos.h: Update.
12592 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12593 reload_insi; use the "A" constraint for the scratch; handle AM33
12594 moves of sp to non-address registers.
12596 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12597 (*movqi_internal): ... here.
12598 (*am33_movhi, *mn10300_movhi): Merge into...
12599 (*movhi_internal): ... here.
12600 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12601 as the source/destination of moves from/to SP.
12602 (movsf): Only allow for AM33-2.
12603 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12604 any integer constant constraint. Only allow for AM33-2. Tidy
12605 all of the alternative outputs.
12606 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12607 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12609 (udivsi3, umodsi3): New patterns for MN103 only.
12611 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12613 * doc/tm.texi.in: Spell out that a lack of register class unions
12615 * doc/tm.texi: Regenerate.
12617 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12619 PR rtl-optimization/47337
12620 * dce.c (check_argument_store): New function.
12621 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12623 PR tree-optimization/47290
12624 * tree-eh.c (infinite_empty_loop_p): New function.
12625 (cleanup_empty_eh): Use it.
12627 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12630 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12631 (a64_expand_widen_sum): Ditto.
12632 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12633 (vec_extract_evenodd_help): Ditto.
12634 (vec_extract_evenv4hi): Ditto.
12635 (vec_extract_oddv4hi): Ditto.
12636 (vec_extract_evenv2si): Ditto.
12637 (vec_extract_oddv2si): Ditto.
12638 (vec_extract_evenv2sf): Ditto.
12639 (vec_extract_oddv2sf): Ditto.
12640 (vec_pack_trunc_v4hi: Ditto.
12641 (vec_pack_trunc_v2si): Ditto.
12642 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12643 (vec_interleave_highv8qi): Ditto.
12645 (vec_extract_oddv8qi): Ditto.
12646 (vec_interleave_lowv4hi): Ditto.
12647 (vec_interleave_highv4hi): Ditto.
12648 (vec_interleave_lowv2si): Ditto.
12649 (vec_interleave_highv2si): Ditto.
12651 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12653 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12654 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12655 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12656 (pa_c_mode_for_suffix): New.
12657 (TARGET_EXPAND_BUILTIN): Define.
12658 (TARGET_C_MODE_FOR_SUFFIX): Define.
12659 (pa_builtins): Define.
12660 (pa_init_builtins): Register __float128 type and init new support
12662 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12663 * config/pa/quadlib.c (_U_Qfcopysign): New.
12665 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12667 PR middle-end/46894
12668 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12669 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12672 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12674 PR tree-optimization/47179
12675 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12676 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12678 2011-01-18 Richard Guenther <rguenther@suse.de>
12680 PR rtl-optimization/47216
12681 * emit-rtl.c: Include tree-flow.h.
12682 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12683 of replicating it with different semantics.
12684 * Makefile.in (emit-rtl.o): Adjust.
12686 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12688 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12689 (cortex_a9_dp): Handle neon types correctly.
12691 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12693 PR rtl-optimization/47299
12694 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12695 subtarget. Use normal multiplication if both operands are constants.
12696 * expmed.c (expand_widening_mult): Don't try to optimize constant
12697 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12700 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12702 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12703 spacing after 'e.g.', typos, comma, hyphenation.
12705 2011-01-17 Richard Henderson <rth@redhat.com>
12707 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12708 (rx_restricted_mem_operand): New.
12709 (rx_shift_operand): Use register_operand.
12710 (rx_source_operand, rx_compare_operand): Likewise.
12711 * config/rx/rx.md (addsi3_flags): New expander.
12712 (adddi3): Rewrite as expander.
12713 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12714 (subsi3_flags): New expander.
12715 (subdi3): Rewrite as expander.
12716 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12718 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12719 (rx_init_builtins): Remove sat builtin.
12720 (rx_expand_builtin): Likewise.
12721 * config/rx/rx.md (ssaddsi3): New.
12722 (*sat): Rename from sat. Represent the CC_REG input.
12724 * config/rx/predicates.md (rshift_operator): New.
12725 * config/rx/rx.c (rx_expand_insv): Remove.
12726 * config/rx/rx-protos.h: Update.
12727 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12728 operand to the canonical position.
12729 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12730 (*bitclr, *bitclr_in_memory): Similarly.
12731 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12732 (insv): Retain the zero_extract in the expansion.
12734 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12735 (bswaphi2, bitinvert, revw): Likewise.
12737 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12738 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12739 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12740 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12741 (bitset, bitset_in_memory): Likewise.
12742 (bitinvert, bitinvert_in_memory): Likewise.
12743 (bitclr, bitclr_in_memory): Likewise.
12744 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12745 (rx_strend, rx_cmpstrn): Likewise.
12746 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12747 (bitop peep2 patterns): Remove.
12749 * config/rx/rx.c (rx_match_ccmode): New.
12750 * config/rx/rx-protos.h: Update.
12751 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12752 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12753 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12754 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12755 (fix_truncsfsi2, floatsisf2): Likewise.
12756 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12757 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12758 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12759 (*subsi3_flags, *xorsi3_flags): New.
12761 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12763 * config/rx/rx.c (rx_print_operand): Remove workaround for
12764 unsplit comparison operations.
12766 * config/rx/rx.md (movsicc): Split after reload.
12767 (*movsicc): Merge *movsieq and *movsine via match_operator.
12768 (*stcc): New pattern.
12770 * config/rx/rx.c (rx_float_compare_mode): Remove.
12771 * config/rx/rx.h (rx_float_compare_mode): Remove.
12772 * config/rx/rx.md (cstoresi4): Split after reload.
12773 (*sccc): New pattern.
12775 * config/rx/predicates.md (label_ref_operand): New.
12776 (rx_z_comparison_operator): New.
12777 (rx_zs_comparison_operator): New.
12778 (rx_fp_comparison_operator): New.
12779 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12780 Validate that the flags are set properly for the comparison.
12781 (rx_gen_cond_branch_template): Remove.
12782 (rx_cc_modes_compatible): Remove.
12783 (mode_from_flags): New.
12784 (flags_from_code): Rename from flags_needed_for_conditional.
12785 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12786 (rx_select_cc_mode): Likewise.
12787 (rx_split_fp_compare): New.
12788 (rx_split_cbranch): New.
12789 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12790 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12791 (*cbranchsf4): Similarly.
12792 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12793 match_operator and rx_split_cbranch.
12794 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12795 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12796 (*cmpsi): Rename from cmpsi.
12797 (*tstsi): Rename from tstsi.
12798 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12799 (*conditional_branch): Rename from conditional_branch.
12800 (*reveresed_conditional_branch): Remove.
12801 (b<code>): Remove expander.
12802 * config/rx/rx-protos.h: Update.
12804 * config/rx/rx.c (rx_compare_redundant): Remove.
12805 * config/rx/rx.md (cmpsi): Don't use it.
12806 * config/rx/rx-protos.h: Update.
12808 * config/rx/rx-modes.def (CC_F): New mode.
12809 * config/rx/rx.c (rx_select_cc_mode): New.
12810 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12811 * config/rx/rx-protos.h: Update.
12813 2011-01-17 Richard Henderson <rth@redhat.com>
12815 * except.c (dump_eh_tree): Fix stray ; after for statement.
12817 2011-01-17 Richard Guenther <rguenther@suse.de>
12819 PR tree-optimization/47313
12820 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12821 handling before copying the body. Properly deal with
12822 by-reference result in SSA form.
12824 2011-01-17 Ian Lance Taylor <iant@google.com>
12827 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12828 (struct_value_alias_set): Don't define.
12829 (sparc_option_override): Don't set sparc_sr_alias_set and
12830 struct_value_alias_set.
12831 (save_or_restore_regs): Use gen_frame_mem rather than calling
12833 (sparc_struct_value_rtx): Likewise.
12835 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12838 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12839 (_mm_maskstore_pd): Likewise.
12840 (_mm_maskload_ps): Likewise.
12841 (_mm_maskstore_ps): Likewise.
12842 (_mm256_maskload_pd): Change mask to __m256i.
12843 (_mm256_maskstore_pd): Likewise.
12844 (_mm256_maskload_ps): Likewise.
12845 (_mm256_maskstore_ps): Likewise.
12847 * config/i386/i386-builtin-types.def: Updated.
12848 (ix86_expand_special_args_builtin): Likewise.
12850 * config/i386/i386.c (bdesc_special_args): Update
12851 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12852 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12853 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12854 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12856 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12857 Use <avxpermvecmode> on mask register.
12858 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12860 2011-01-17 Olivier Hainque <hainque@adacore.com>
12861 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12862 Eric Botcazou <ebotcazou@adacore.com>
12865 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12866 if <= USHRT_MAX in 32-bit mode.
12868 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12870 * doc/install.texi (Configuration, Specific): Wrap long
12871 lines in examples. Allow line wrapping in long options
12872 and URLs where beneficial for PDF output.
12874 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12876 * config/mips/mips.c (mips_classify_symbol): Don't return
12877 SYMBOL_PC_RELATIVE for nonlocal labels.
12879 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12881 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12883 2011-01-15 Jan Hubicka <jh@suse.cz>
12885 PR tree-optimization/47276
12886 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12887 declarations as needed.
12889 2011-01-15 Martin Jambor <mjambor@suse.cz>
12891 * common.opt (fdevirtualize): New flag.
12892 * doc/invoke.texi (Option Summary): Document it.
12893 * opts.c (default_options_table): Add devirtualize flag.
12894 * ipa-prop.c (detect_type_change): Return immediately if
12895 devirtualize flag is not set.
12896 (detect_type_change_ssa): Likewise.
12897 (compute_known_type_jump_func): Likewise.
12898 (ipa_analyze_virtual_call_uses): Likewise.
12900 2011-01-14 Martin Jambor <mjambor@suse.cz>
12902 PR tree-optimization/45934
12903 PR tree-optimization/46302
12904 * ipa-prop.c (type_change_info): New type.
12905 (stmt_may_be_vtbl_ptr_store): New function.
12906 (check_stmt_for_type_change): Likewise.
12907 (detect_type_change): Likewise.
12908 (detect_type_change_ssa): Likewise.
12909 (compute_complex_assign_jump_func): Check for dynamic type change.
12910 (compute_complex_ancestor_jump_func): Likewise.
12911 (compute_known_type_jump_func): Likewise.
12912 (compute_scalar_jump_functions): Likewise.
12913 (ipa_analyze_virtual_call_uses): Likewise.
12914 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12916 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12918 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12919 * config/i386/i386.opt (msse5): New Alias.
12921 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12923 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12924 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12925 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12926 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12928 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12930 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12932 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12933 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12934 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12935 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12937 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12939 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12941 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12943 2011-01-14 Mike Stump <mikestump@comcast.net>
12945 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12946 * config/fr30/fr30.md: Likweise
12947 (movsi_push): Likewise.
12948 (movsi_pop): Likewise.
12949 (enter_func): Likewise.
12950 * config/moxie/moxie.md (movsi_push): Likewise.
12951 (movsi_pop): Likewise.
12953 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12955 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12956 %{no_archive} %{exact_version}.
12957 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12958 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12959 %{no_archive} %{exact_version}.
12960 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12961 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12962 * config/mips/vxworks.h: Likewise.
12964 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12966 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12968 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12970 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12971 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12973 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12975 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12978 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12980 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12982 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12983 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12985 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12986 Don't handle -shlib.
12988 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12990 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12991 (CC1_SPEC): Don't handle -profile.
12993 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12995 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12996 * config/mips/mips.h (CC1_SPEC): Likewise.
12998 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13000 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13001 * config/mips/mips.h (CC1_SPEC): Likewise.
13003 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13005 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13006 * config/m32r/linux.h (LINK_SPEC): Likewise.
13007 * config/mips/linux.h (LINK_SPEC): Likewise.
13008 * config/mips/linux64.h (LINK_SPEC): Likewise.
13009 * config/sparc/linux.h (LINK_SPEC): Likewise.
13010 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13011 LINK_SPEC): Likewise.
13012 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13014 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13016 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13018 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13020 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13022 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13023 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13025 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13027 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13029 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13031 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13032 supports -Bstatic/-Bdynamic.
13033 * configure: Regenerate.
13035 2011-01-14 Jan Hubicka <jh@suse.cz>
13036 Jack Howarth <howarth@bromo.med.uc.edu>
13039 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13040 when checking debug_info_level. Test write_symbols instead of
13041 debug_hooks->var_location when setting flag_var_tracking_uninit.
13043 2011-01-14 Richard Guenther <rguenther@suse.de>
13045 PR tree-optimization/47179
13046 * target.def (ref_may_alias_errno): New target hook.
13047 * targhooks.h (default_ref_may_alias_errno): Declare.
13048 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13049 (default_ref_may_alias_errno): New function.
13050 * target.h (struct ao_ref_s): Declare.
13051 * tree-ssa-alias.c: Include target.h.
13052 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13053 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13054 (targhooks.o): Likewise.
13055 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13056 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13058 2011-01-14 Richard Guenther <rguenther@suse.de>
13060 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13062 2011-01-14 Richard Guenther <rguenther@suse.de>
13064 PR tree-optimization/47280
13065 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13066 return CFG changes.
13067 (tree_ssa_forward_propagate_single_use_vars): Deal with
13068 CFG changes from associate_plusminus.
13070 2011-01-14 Richard Guenther <rguenther@suse.de>
13072 PR middle-end/47281
13074 2011-01-11 Richard Guenther <rguenther@suse.de>
13076 PR tree-optimization/46076
13077 * tree-ssa.c (useless_type_conversion_p): Conversions from
13078 unprototyped to empty argument list function types are useless.
13080 2011-01-14 Richard Guenther <rguenther@suse.de>
13082 PR tree-optimization/47286
13083 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13085 2011-01-14 Martin Jambor <mjambor@suse.cz>
13087 PR middle-end/46823
13088 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13090 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13092 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13093 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13094 * config/xtensa/xtensa.c (xtensa_libcall_value,
13095 xtensa_function_value_regno_p): New functions.
13096 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13098 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13101 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13103 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13104 New function prototype.
13105 * config/i386/winnt.c (i386_pe_assemble_visibility):
13106 Warn only if attribute was specified by user.
13108 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13111 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13113 (floatunsdidf2_fcfidu): Ditto.
13115 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13117 * config/s390/s390.c (print_operand_address): Replace 'error' with
13118 'output_operand_lossage'.
13119 (print_operand): Likewise.
13121 2011-01-13 Jeff Law <law@redhat.com>
13123 PR rtl-optimization/39077
13124 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13125 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13126 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13127 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13128 * gcse.c (prune_insertions_deletions): New function.
13129 (compute_pre_data): Use it.
13131 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13134 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13136 (prune_unused_types_mark): Use it.
13138 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13140 PR rtl-optimization/45352
13141 * sel-sched.c: Update copyright years.
13142 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13143 in the advancing loop when we have issued issue_rate insns.
13145 2011-01-12 Richard Henderson <rth@redhat.com>
13147 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13148 (TARGET_MD_ASM_CLOBBERS): New.
13150 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13151 (TARGET_DELEGITIMIZE_ADDRESS): New.
13153 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13154 (clzsi2, *bsch): New patterns.
13156 * config/mn10300/mn10300.md (INT): New mode iterator.
13157 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13159 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13160 flag_split_wide_types.
13162 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13163 (mn10300_trampoline_init): Rewrite without a template, an immediate
13164 load and a direct branch.
13165 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13167 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13169 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13170 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13171 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13172 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13174 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13177 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13180 2011-01-12 Jan Hubicka <jh@suse.cz>
13183 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13184 (PLUGIN_COND_CLOSE): New macro.
13185 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13187 2011-01-12 Richard Guenther <rguenther@suse.de>
13190 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13191 register variables in a MEM_REF.
13193 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13195 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13196 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13197 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13198 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13199 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13200 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13201 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13202 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13203 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13204 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13205 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13206 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13207 * config/gnu-user.h: New. Copied from linux.h.
13208 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13209 GNU_USER_TARGET_STARTFILE_SPEC.
13210 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13211 GNU_USER_TARGET_ENDFILE_SPEC.
13212 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13213 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13214 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13215 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13216 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13217 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13218 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13219 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13220 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13221 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13222 * config/arm/linux-eabi.h (CC1_SPEC): Use
13223 GNU_USER_TARGET_CC1_SPEC.
13224 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13225 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13226 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13227 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13228 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13229 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13230 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13231 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13233 2011-01-12 Richard Guenther <rguenther@suse.de>
13236 * doc/invoke.texi (ffast-math): Document it is turned on
13239 2011-01-12 Jan Hubicka <jh@suse.cz>
13241 PR tree-optimization/47233
13242 * opts.c (common_handle_option): Disable ipa-reference with profile
13245 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13247 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13250 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13252 * c-parser.c (c_lex_one_token): Updated and reindented some
13253 comments. No changes in code.
13255 2011-01-11 Ian Lance Taylor <iant@google.com>
13257 * godump.c (go_output_var): Don't output the variable if there is
13258 already a type with the same name.
13260 2011-01-11 Ian Lance Taylor <iant@google.com>
13262 * godump.c (go_format_type): Don't generate float80.
13264 2011-01-11 Richard Henderson <rth@redhat.com>
13266 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13267 declaration. Rewrite for both speed and size.
13268 (mn10300_address_cost_1): Remove.
13269 (mn10300_register_move_cost): New.
13270 (mn10300_memory_move_cost): New.
13271 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13272 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13273 extensions, shifts, BSWAP, CLZ.
13274 (mn10300_wide_const_load_uses_clr): Remove.
13275 (TARGET_REGISTER_MOVE_COST): New.
13276 (TARGET_MEMORY_MOVE_COST): New.
13277 * config/mn10300/mn10300-protos.h: Update.
13278 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13280 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13281 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13282 * config/mn10300/mn10300-protos.h: Update.
13283 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13284 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13285 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13286 (*test_int_bitfield, *test_byte_bitfield): Remove.
13287 (*bit_test, *subreg_bit_test): Remove.
13288 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13290 * config/mn10300/constraints.md ("c"): Rename from "A".
13291 ("A", "D"): New constraint letters.
13292 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13293 (fmssf4, fnmasf4, fnmssf4): Likewise.
13295 * config/mn10300/mn10300.md (isa): New attribute.
13296 (enabled): New attribute.
13298 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13299 (abssf2, negsf2): Define only for hardware fp.
13300 (sqrtsf2): Reformat.
13301 (addsf3, subsf3, mulsf3): Merge expander and insn.
13303 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13304 (DEBUGGER_AUTO_OFFSET): Remove.
13305 (DEBUGGER_ARG_OFFSET): Remove.
13307 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13308 Emit register stores with the same offsets as the hardware.
13309 (mn10300_store_multiple_operation): Don't check that the register
13310 save offsets are monotonic.
13311 * config/mn10300/mn10300-protos.h: Update.
13313 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13315 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13316 in terms of the value on the stack, not the MDR register.
13318 2011-01-11 Jan Hubicka <jh@suse.cz>
13322 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13323 (symbol_alias_set_destroy, symbol_alias_set_contains,
13324 propagate_aliases_backward): Declare.
13325 * lto-streamer-out.c (struct sets): New sturcture.
13326 (trivally_defined_alias): New function.
13327 (output_alias_pair_p): Rewrite.
13328 (output_unreferenced_globals): Fix output of alias pairs.
13329 (produce_symtab): Likewise.
13330 * ipa.c (function_and_variable_visibility): Set weak alias destination
13332 * varasm.c (symbol_alias_set_t): Remove.
13333 (symbol_alias_set_destroy): Export.
13334 (propagate_aliases_forward, propagate_aliases_backward): New functions
13336 (compute_visible_aliases): ... this one; remove.
13337 (trivially_visible_alias): New
13338 (trivially_defined_alias): New.
13339 (remove_unreachable_alias_pairs): Rewrite.
13340 (finish_aliases_1): Reorganize code checking if alias is defined.
13341 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13344 2011-01-11 Richard Guenther <rguenther@suse.de>
13346 PR tree-optimization/46076
13347 * tree-ssa.c (useless_type_conversion_p): Conversions from
13348 unprototyped to empty argument list function types are useless.
13350 2011-01-11 Richard Guenther <rguenther@suse.de>
13352 PR middle-end/45235
13353 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13354 volatile MEMs as MEM_READONLY_P.
13356 2011-01-11 Richard Guenther <rguenther@suse.de>
13358 PR tree-optimization/47239
13359 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13361 2011-01-11 Jeff Law <law@redhat.com>
13363 PR tree-optimization/47086
13364 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13365 IVs from statements that might throw.
13367 2011-01-10 Jan Hubicka <jh@suse.cz>
13370 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13372 2011-01-10 Jan Hubicka <jh@suse.cz>
13375 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13376 when correcting profile.
13378 2011-01-10 Jan Hubicka <jh@suse.cz>
13381 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13382 DECL_FINI_PRIORITY.
13383 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13384 Restore DECL_FINI_PRIORITY.
13386 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13388 * doc/gimple.texi: Fix quoting of multi-word return values in
13389 @deftypefn statements. Ensure presence of return value. Wrap
13390 overlong @deftypefn lines.
13391 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13392 descriptions of removed functions.
13393 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13394 of multi-word return value in @deftypefn statement.
13396 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13398 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13399 (Conditional Expressions, Logical Operators)
13400 (Statement and operand traversals): Do not indent smallexample
13401 code. Fix duplicate function argument in example.
13403 2011-01-10 Jeff Law <law@redhat.com>
13405 PR tree-optimization/47141
13406 * ipa-split.c (split_function): Handle case where we are
13407 returning a value and the return block has a virtual operand phi.
13409 2011-01-10 Jan Hubicka <jh@suse.cz>
13411 PR tree-optimization/47234
13412 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13413 (pass_feedback_split_functions): Declare.
13414 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13416 * ipa-split.c (gate_split_functions): Update comments; disable
13417 split-functions for profile_arc_flag and branch_probabilities.
13418 (gate_feedback_split_functions): New function.
13419 (execute_feedback_split_functions): New function.
13420 (pass_feedback_split_functions): New global var.
13422 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13425 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13426 calling gimple_call_set_cannot_inline.
13428 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13430 * config/darwin-sections.def: Remove unused section.
13432 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13435 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13437 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13440 * c-parser.c (c_parser_declaration_or_fndef): Improved
13443 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13445 * config/i386/winnt.c (i386_pe_start_function): Make sure
13446 to switch back to function's section.
13448 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13452 * plugin.c: Move include of dlfcn.h from here...
13453 * system.h: ... to here.
13455 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13457 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13459 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13460 two extra empty pages in PDF output.
13462 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13465 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13466 for error recovery purposes behave as if it was not specified so
13467 that the default type is usd.
13469 2011-01-07 Jan Hubicka <jh@suse.cz>
13471 PR tree-optmization/46469
13472 * ipa.c (function_and_variable_visibility): Clear needed flags on
13473 nodes with external decls; handle weakrefs merging correctly.
13475 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13477 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13480 2011-01-07 Jan Hubicka <jh@suse.cz>
13482 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13483 and no longer claim that gold is required for linker plugin.
13484 * configure: Regenerate.
13485 * gcc.c (PLUGIN_COND): New macro.
13486 (LINK_COMMAND_SPEC): Use it.
13487 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13488 * config.in (HAVE_LTO_PLUGIN): New.
13489 * configure.ac (--with-lto-plugin): New parameter; autodetect
13492 2011-01-07 Jan Hubicka <jh@suse.cz>
13494 PR tree-optimization/46367
13495 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13496 when we can update original.
13497 (cgraph_mark_inline_edge): Sanity check.
13498 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13500 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13502 * config/spu/spu.h (ASM_COMMENT_START): Define.
13504 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13507 * gcc.c (%>S): New.
13508 (SWITCH_KEEP_FOR_GCC): Likewise.
13509 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13510 (do_spec_1): Handle "%>".
13512 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13514 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13517 * config/i386/i386.c (ix86_delegitimize_address): If
13518 simplify_gen_subreg fails, return orig_x.
13521 * value-prof.c (gimple_stringop_fixed_value): Handle
13522 lhs of the call properly.
13524 2011-01-07 Jan Hubicka <jh@suse.cz>
13527 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13529 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13531 * target.def (function_switched_text_sections): New hook.
13532 * doc/tm.texi: Regenerated.
13533 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13534 * final.c (default_function_switched_text_sections): New.
13535 (final_scan_insn): Call function_switched_text_sections when a
13536 mid-function section change occurs.
13537 * output.h (default_function_switched_text_sections): Declare.
13538 * config/darwin-protos.h (darwin_function_switched_text_sections):
13540 * config/darwin.c (darwin_function_switched_text_sections): New.
13541 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13543 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13545 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13546 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13547 the secondary code fragment when outputting for DWARF == 2.
13549 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13551 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13552 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13554 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13555 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13557 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13560 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13561 when it is not empty.
13563 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13566 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13567 (case ${target}): Add btver1.
13568 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13569 -march=native recognize btver1 processors.
13570 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13571 btver1 def_and_undef
13572 * config/i386/i386.c (struct processor_costs btver1_cost): New
13574 (m_BTVER1): New definition.
13575 (m_AMD_MULTIPLE): Includes m_BTVER1.
13576 (initial_ix86_tune_features): Add btver1 tune.
13577 (processor_target_table): Add btver1 entry.
13578 (static const char *const cpu_names): Add btver1 entry.
13579 (software_prefetching_beneficial_p): Add btver1.
13580 (ix86_option_override_internal): Add btver1 instruction sets.
13581 (ix86_issue_rate): Add btver1.
13582 (ix86_adjust_cost): Add btver1.
13583 * config/i386/i386.h (TARGET_BTVER1): New definition.
13584 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13585 (enum processor_type): Add PROCESSOR_BTVER1.
13586 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13588 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13591 * config/i386/i386.c (legitimize_tls_address)
13592 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13593 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13594 (tls_initial_exec_64_sun): New pattern.
13596 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13598 * doc/invoke.texi (Overall Options): Improve wording and markup
13599 of the description of -wrapper.
13601 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13603 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13604 rdynamic, threads): New Driver options.
13606 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13609 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13610 if coming from .tdata.
13611 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13613 2011-01-06 Jan Hubicka <jh@suse.cz>
13616 * collect2.c (main): Do not enable LTOmode when plugin is active.
13618 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13621 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13622 --version output if supported.
13623 * configure: Regenerate.
13625 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13627 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13630 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13633 * c-convert.c (convert): When converting a complex expression
13634 other than COMPLEX_EXPR to a different complex type, ensure
13635 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13636 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13637 when converting COMPLEX_TYPE.
13639 2011-01-06 Ira Rosen <irar@il.ibm.com>
13641 PR tree-optimization/47139
13642 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13643 only the last reduction value is used outside the loop. Update
13646 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13648 * config/rtems.opt: New.
13649 * config.gcc (*-*-rtems*): Use rtems.opt.
13651 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13653 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13654 processors do not support 3DNow instructions.
13656 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13658 * config/spu/spu.c (spu_option_override): Set parameter
13659 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13661 2011-01-05 Jan Hubicka <jh@suse.cz>
13663 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13664 at the command line.
13666 2011-01-05 Martin Jambor <mjambor@suse.cz>
13669 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13670 deltas on streamed outgoing edges.
13671 (output_node_opt_summary): Output info for outgoing edges only when
13672 the node is in new parameter set.
13673 (output_cgraph_opt_summary): New parameter set, passed to the two
13674 aforementioned functions. Update its forward declaration and its
13677 2011-01-05 Tom Tromey <tromey@redhat.com>
13679 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13680 operator to c_finish_omp_atomic.
13681 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13682 (build_unary_op): Update.
13683 (build_modify_expr): Update.
13684 (build_asm_expr): Update.
13686 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13688 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13689 newly inserted insns.
13690 (pad_bb): Likewise.
13691 (spu_emit_branch_hint): Likewise.
13692 (insert_hbrp_for_ilb_runout): Likewise.
13693 (spu_machine_dependent_reorg): Call df_finish_pass after
13694 schedule_insns returns.
13696 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13698 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13700 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13702 PR tree-optimization/47005
13703 * tree-sra.c (struct access): Add 'non_addressable' bit.
13704 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13705 (decide_one_param_reduction): Return 0 if the parameter is passed by
13706 reference and one of the accesses in the group is non_addressable.
13708 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13710 PR tree-optimization/47056
13711 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13712 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13713 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13715 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13717 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13718 initializer. Skip view conversions from aggregate types.
13720 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13723 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13725 2011-01-04 Philipp Thomas <pth@suse.de>
13727 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13730 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13732 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13733 on empty epilogue sequences.
13735 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13737 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13738 non-static): New Driver options.
13740 2011-01-04 Jie Zhang <jie@codesourcery.com>
13743 * gcc.c (default_compilers[]): Set combinable field to 0
13744 for all assembly languages.
13746 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13748 * config/mips/loongson3a.md: New file.
13749 * config/mips/mips.md: Include loongson3a.md.
13750 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13753 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13755 PR middle-end/47017
13756 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13757 instead of convert_memory_address_addr_space on the base expression.
13759 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13761 * config/spu/spu.c (spu_option_override): Update error text
13762 for bad -march= / -mtune= values.
13764 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13766 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13767 if branch-hint optimization will be performed.
13769 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13771 PR tree-optimization/47148
13772 * ipa-split.c (split_function): Convert arguments to
13773 DECL_ARG_TYPE if possible.
13775 PR tree-optimization/47155
13776 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13777 when computing uns.
13779 PR rtl-optimization/47157
13780 * combine.c (try_combine): If undobuf.other_insn becomes
13781 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13782 and set *new_direct_jump_p too.
13784 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13786 PR tree-optimization/47021
13787 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13789 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13791 * gcc.c (process_command): Update copyright notice dates.
13792 * gcov.c (print_version): Likewise.
13793 * gcov-dump.c (print_version): Likewise.
13794 * mips-tfile.c (main): Likewise.
13795 * mips-tdump.c (main): Likewise.
13797 2011-01-03 Martin Jambor <mjambor@suse.cz>
13799 PR tree-optimization/46801
13800 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13801 aggregate fields start at byte boundary instead of the bit-field flag.
13803 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13806 * gcc.c (main): Revert revision 168407.
13808 2011-01-03 Martin Jambor <mjambor@suse.cz>
13810 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13812 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13814 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13815 vector optab to expand vector/scalar shift, update gimple to vector.
13817 2011-01-03 Martin Jambor <mjambor@suse.cz>
13819 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13822 2011-01-03 Martin Jambor <mjambor@suse.cz>
13824 PR tree-optimization/46984
13825 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13827 (cgraph_create_indirect_edge): Fixed line length.
13828 (cgraph_indirect_call_info): Declare.
13829 (cgraph_make_edge_direct) Update declaration.
13830 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13831 (cgraph_create_indirect_edge): Use it.
13832 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13834 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13835 the new thunk_delta representation.
13836 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13838 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13839 (ipa_read_indirect_edge_info): Likewise.
13840 * lto-cgraph.c (output_edge_opt_summary): New function.
13841 (output_node_opt_summary): Call it on all outgoing edges.
13842 (input_edge_opt_summary): New function.
13843 (input_node_opt_summary): Call it on all outgoing edges.
13845 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13848 * gcc.c (main): Don't check have_o when settting combine_inputs.
13850 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13852 * regrename.c: Add general comment describing the pass.
13853 (struct du_head): Remove 'length' field.
13854 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13855 (regrename_optimize): Do not sort chains. Rework comments, add others.
13856 Force renaming to the preferred class (if any) in the first pass and do
13857 not consider registers that belong to it in the second pass.
13858 (create_new_chain): Do not set 'length' field.
13859 (scan_rtx_reg): Likewise.
13861 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13863 PR tree-optimization/47140
13864 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13865 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13866 to bit_value_binop.
13868 PR rtl-optimization/47028
13869 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13870 parm_birth_insn instead of at the beginning of first bb.
13872 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13874 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13875 Remove the word "see" before "@pxref".
13876 * doc/rtl.texi: Remove the word "see" before "@pxref".
13878 2011-01-01 Jan Hubicka <jh@suse.cz>
13880 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13883 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13886 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13889 Copyright (C) 2011 Free Software Foundation, Inc.
13891 Copying and distribution of this file, with or without modification,
13892 are permitted in any medium without royalty provided the copyright
13893 notice and this notice are preserved.