1 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3 PR tree-optimization/48611
4 PR tree-optimization/48794
5 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6 referenced from RESX or EH_DISPATCH arguments.
9 * dfp.c (decimal_to_decnumber): Handle conversion from
12 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
15 for !flag_prefer_avx128.
16 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
18 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
20 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
21 (fold_ternary_loc): Use expr_location_or.
23 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
26 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
27 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
28 Pmode and mem_mode is not VOIDmode.
30 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
32 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
33 TYPE_QUAL_RESTRICT): Convert to enum.
35 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
37 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
38 (const_pow2_1_to_8_operand): Ditto.
39 (const_pow2_1_to_128_operand): Ditto.
40 (const_pow2_1_to_32768_operand): Ditto.
41 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
42 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
43 in insn constraint to check integer value of operand 3.
44 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
46 (PINSR_MODE): New mode iterator.
47 (sse2p4_1): New mode attribute.
48 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
49 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
50 iterator. Use const_int_operand instead of
51 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
52 exact_log2 in insn constraint to check integer value of operand 3.
54 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
56 * config/i386/sse.md (blendbits): Remove mode attribute.
57 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
58 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
59 Check integer value of operand 3 in insn constraint.
61 2011-05-09 Richard Guenther <rguenther@suse.de>
63 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
65 (lto_symtab_merge): Likewise. Do not register types here.
66 (lto_symtab_merge_decls_2): Likewise.
67 (lto_symtab_merge_decls_1): Likewise.
68 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
69 * gimple.c (enum gtc_mode): Declare.
70 (gimple_types_compatible_p): Make static.
72 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
74 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
75 temporary register to match Pmode.
77 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
79 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
80 and *vec_concatv4si_1_avx.
82 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
84 PR rtl-optimization/48927
85 * ira-conflicts.c (commutative_constraint_p): Use
86 recog_data.alternative_enabled_p to disable alternatives where
87 "enabled" attribute is false.
89 * ira-lives.c (single_reg_class): Ditto.
90 (ira_implicitly_set_insn_hard_regs): Ditto.
92 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
94 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
95 (dataflow_set_preserve_mem_locs): Likewise.
97 2011-05-09 Philipp Thomas <pth@suse.de>
99 * config/mep/mep.c (mep_validate_vliw): Syntax description
100 should not be translated.
102 2011-05-09 Joseph Myers <joseph@codesourcery.com>
104 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
105 * config/mips/mips-tables.opt: New file (generated).
106 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
107 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
108 MIPS_ARCH_OPTION_NATIVE): Define.
109 * config/mips/mips.c (mips_cpu_info_table): Move contents to
111 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
112 mips_parse_cpu): Remove.
113 (mips_cpu_info_from_opt, mips_default_arch): New.
114 (mips_handle_option): Don't assert that global structures are in
115 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
116 (mips_option_override): Use new variables and functions to set
117 state of these options. Use strcmp to check for individual CPU names.
118 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
120 * config/mips/mips.opt (march=): Use ToLower and Enum.
121 (mips): Use ToLower, Enum and Var.
122 (mtune=): Use ToLower and Enum.
123 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
125 2011-05-08 Jan Hubicka <jh@suse.cz>
127 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
128 Arrange type pairs to be UID ordered.
129 (gimple_lookup_type_leader): Make inline.
131 2011-05-09 Nick Clifton <nickc@redhat.com>
134 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
138 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
141 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
143 * combine.c (simplify_comparison): Abstract out parts into...
144 (simplify_compare_const): ... new function.
145 (try_combine): Generalize parallel arithmetic/compare combining
146 to call simplify_compare_const() and CANONICALIZE_COMPARE().
148 2011-05-08 Jan Hubicka <jh@suse.cz>
150 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
151 (cgraph_create_virtual_clone): Call hooks once virtual clone
153 * cgraph.h (cgraph_clone_node): Update prototype.
154 * ipa-cp.c (ipcp_estimate_growth): Use
155 estimate_ipcp_clone_size_and_time.
156 * ipa-inline-transform.c (clone_inlined_nodes): Update.
157 * lto-cgraph.c (input_node): Update.
158 * ipa-inline.c (recursive_inlining): Update.
159 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
160 (evaluate_conditions_for_known_args): Break out from ...
161 (evaluate_conditions_for_edge): ... here.
162 (evaluate_conditions_for_ipcp_clone): New function.
163 (inline_node_duplication_hook): Update clone summary based
165 (estimate_callee_size_and_time): Rename to ...
166 (estimate_node_size_and_time): take NODE instead of EDGE;
167 take POSSIBLE_TRUTHS as argument.
168 (estimate_callee_size_and_time): Update.
169 (estimate_ipcp_clone_size_and_time): New function.
170 (do_estimate_edge_time): Update.
172 2011-05-08 Richard Guenther <rguenther@suse.de>
176 * expmed.c (expand_shift_1): Compute adjusted constant shift
179 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
181 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
183 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
185 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
187 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
189 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
191 2011-05-07 Jan Hubicka <jh@suse.cz>
193 * ipa-inline-transform.c (inline_call): Account when program size
195 * ipa-inline.c (relative_time_benefit): New function.
196 (edge_badness): Reorganize to be power 2 based; fix thinko when
197 computing badness for negative growth; update comments to match
198 reality; better dumps.
200 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
202 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
203 type to bool and adjust comment.
204 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
205 (fold_mathfn_compare): Remove calls to global_bindings_p.
206 (fold_inf_compare): Likewise.
207 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
208 * c-tree.h (global_bindings_p): Adjust prototype.
209 * c-decl.c (global_bindings_p): Return bool and simplify.
211 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
213 PR tree-optimization/48837
214 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
215 when accumulator transformation is performed.
217 2011-05-06 Jan Hubicka <jh@suse.cz>
219 * i386.h (ix86_tune_indices): Add
220 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
221 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
222 * i386.c (initial_ix86_tune_features): Add
223 X86_SOFTARE_PREFETCHING_BENEFICIAL.
224 (software_prefetching_beneficial_p): Remove predicate.
225 (ix86_option_override_internal): Use new macro.
227 2011-05-06 Jan Hubicka <jh@suse.cz>
229 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
231 2011-05-06 Jan Hubicka <jh@suse.cz>
233 * cgraph.c (cgraph_add_thunk): Create real function node instead
234 of alias node; finalize it and mark needed/reachale; arrange visibility
235 to be right and add it into the corresponding same comdat group list.
236 (dump_cgraph_node): Dump thunks.
237 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
238 cgraph_function_with_gimple_body_p,
239 cgraph_first_function_with_gimple_body,
240 cgraph_next_function_with_gimple_body): New functions.
241 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
243 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
244 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
245 * cgraphunit.c (cgraph_finalize_function): Only look into possible
246 devirtualization when optimizing.
247 (verify_cgraph_node): Verify thunks.
248 (cgraph_analyze_function): Analyze thunks.
249 (cgraph_mark_functions_to_output): Output thunks only in combination
250 with function they are assigned to.
251 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
252 alias into normal node.
253 (assemble_thunks): New functoin.
254 (cgraph_expand_function): Use it.
255 * lto-cgraph.c (lto_output_node): Stream thunks.
256 (input_overwrite_node): Stream in thunks.
257 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
258 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
259 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
260 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
261 (inline_analyze_function): Do not care about thunk jump functions.
262 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
263 * ipa-prop.c (ipa_prop_write_jump_functions): Use
264 cgraph_function_with_gimple_body_p.
265 * passes.c (do_per_function_toporder): Use
266 cgraph_function_with_gimple_body_p.
267 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
268 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
269 (function_called_by_processed_nodes_p): Likewise.
271 2011-05-06 Joseph Myers <joseph@codesourcery.com>
273 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
274 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
276 (mabi=): Replace with separate entries for mabi=altivec,
277 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
278 mabi=ieeelongdouble and mabi=ibmlongdouble.
279 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
280 check for -mabi=spe without SPE ABI support here.
281 (rs6000_handle_option): Replace OPT_mabi_ handling with
282 OPT_mabi_altivec and OPT_mabi_spe handling.
284 2011-05-06 Cary Coutant <ccoutant@google.com>
286 * dwarf2out.c (contains_subprogram_definition): New function.
287 (should_move_die_to_comdat): Call it.
289 2011-05-06 Jeff Law <law@redhat.com>
291 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
292 remove_ctrl_stmt_and_useless_edges.
293 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
294 (fixup_template_block, thread_single_edge): Likewise.
295 (mark_threaded_blocks): Use THREAD_TARGET.
297 2011-05-06 Alan Modra <amodra@gmail.com>
300 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
301 const0_rtx as the arg to the dummy __tls_get_addr libcall.
303 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
305 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
306 constraint modifier to "r".
308 2011-05-06 Joseph Myers <joseph@codesourcery.com>
310 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
311 fall through for OPT_mcmodel_.
313 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
315 * config/s390/s390.c (s390_asm_trampoline_template): Comment
317 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
319 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
322 * config/arm/arm.opt (marm): Document it.
323 (mthumb): Reject negative variant.
325 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
328 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
329 Fix typo in "ccvt" variable name.
331 2011-05-06 Tristan Gingold <gingold@adacore.com>
334 * config/vms/vms-ar.c (main): Remove cwd variable.
336 2011-05-06 Jakub Jelinek <jakub@redhat.com>
339 * var-tracking.c (prepare_call_arguments): Move else before #endif.
341 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
343 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
344 * gimplify.c (gimplify_switch_expr): Likewise.
345 * omp-low.c (expand_omp_sections): Likewise.
346 * tree-eh.c (lower_try_finally_switch): Likewise.
347 (lower_eh_dispatch): Likewise.
348 * tree.h (build_case_label): Declare.
349 * tree.c (build_case_label): Define.
351 2011-05-05 Jason Merrill <jason@redhat.com>
354 * tree-inline.c (copy_tree_r): Use copy_statement_list.
355 (copy_statement_list): Don't recurse.
356 * stor-layout.c (copy_self_referential_tree_r): Don't allow
359 2011-05-05 Joseph Myers <joseph@codesourcery.com>
361 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
362 through from -mfpu= handling.
363 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
365 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
367 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
370 2011-05-05 Steve Ellcey <sje@cup.hp.com>
372 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
374 (hppa[12]*-*-hpux11*): Ditto.
375 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
376 * config/ia64/hpux-unix2003.h: New.
377 * config/pa/pa-hpux1131.opt: New.
378 * config/pa/pa-hpux1131.h: New.
379 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
380 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
381 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
383 2011-05-05 Jakub Jelinek <jakub@redhat.com>
386 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
387 instead of mode as 3rd argument to recursive call.
388 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
389 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
391 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
392 don't give up if mode is Pmode and mem_mode is not VOIDmode.
393 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
394 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
396 2011-05-05 Julian Brown <julian@codesourcery.com>
398 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
399 parenthesis in D-register case.
401 2011-05-05 Joseph Myers <joseph@codesourcery.com>
403 * opt-functions.awk (var_type_struct): Handle Enum options.
404 * optc-gen.awk: Don't check range of variables of character type.
405 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
406 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
407 rs6000_sdata_name, rs6000_explicit_options): Remove.
408 (rs6000_option_override_internal): Check for -malign-power here.
409 Use global_options_set instead of rs6000_explicit_options.
410 (rs6000_parse_fpu_option): Remove.
411 (rs6000_handle_option): Access variables via opts and opts_set
412 pointers. Use error_at and warning_at. Add fall-through
413 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
414 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
415 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
416 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
417 here. Don't use rs6000_parse_fpu_option.
418 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
419 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
420 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
422 (mspe): Use Var and Save.
423 (mtraceback=): Use Enum and Var.
424 (rs6000_traceback_type): New Enum and EnumValue entries.
425 (mfloat-gprs=): Use Enum, Var and Save.
426 (rs6000_float_gprs): New Enum and EnumValue entries.
427 (mlong-double-): use Var and Save.
428 (msched-costly-dep=, minsert-sched-nops=): Use Var.
429 (malign-): Use Enum and Var.
430 (rs6000_alignment_flags): New Enum and EnumValue entries.
432 (fpu_type_t): New Enum and EnumValue entries.
433 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
434 global_options_set instead of rs6000_explicit_options.
435 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
436 global_options_set instead of rs6000_explicit_options.
437 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
438 global_options_set instead of rs6000_explicit_options.
439 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
440 global_options_set instead of rs6000_explicit_options.
441 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
442 global_options_set instead of rs6000_explicit_options.
443 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
444 global_options_set instead of rs6000_explicit_options.
445 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
447 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
448 global_options_set instead of rs6000_explicit_options.
449 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
450 (rs6000_cmodel): New Enum and EnumValue entries.
451 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
452 global_options_set instead of rs6000_explicit_options.
453 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
454 (mtls-size=): Use Enum and Var.
455 (rs6000_tls_size): New Enum and EnumValue entries.
457 2011-05-05 Michael Matz <matz@suse.de>
459 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
460 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
461 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
462 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
463 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
464 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
465 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
466 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
467 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
468 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
469 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
470 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
471 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
472 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
473 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
474 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
476 2011-05-05 Richard Guenther <rguenther@suse.de>
478 * expmed.c (expand_variable_shift): Rename to ...
479 (expand_shift_1): ... this. Take an expanded shift amount.
480 For rotates recurse directly not building trees for the shift amount.
481 (expand_variable_shift): Wrap around expand_shift_1.
482 (expand_shift): Adjust.
484 2011-05-05 Jakub Jelinek <jakub@redhat.com>
486 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
488 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
490 * tree.h (get_pending_sizes): Remove prototype.
491 (put_pending_size): Likewise.
492 (put_pending_sizes): Likewise.
493 * stor-layout.c (pending_sizes): Delete.
494 (get_pending_sizes): Likewise.
495 (put_pending_size): Likewise.
496 (put_pending_sizes): Likewise.
497 (variable_size): Do not call put_pending_size and tidy up.
498 * function.h (struct function): Remove dont_save_pending_sizes_p.
499 * lto-streamer-in.c (input_function): Do not stream it.
500 * lto-streamer-out.c (output_function): Likewise.
501 * tree-inline.c (initialize_cfun): Do not copy it.
502 * c-decl.c (store_parm_decls): Do not set it.
503 * omp-low.c (create_task_copyfn): Likewise.
504 * tree-optimize.c (tree_rest_of_compilation): Likewise.
506 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
508 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
510 (*movdf_internal): Ditto.
511 (*movdf_internal_nointeger): Ditto.
512 (*movsf_internal): Ditto.
514 2011-05-05 Joseph Myers <joseph@codesourcery.com>
516 * c-decl.c (finish_decl): Don't call get_pending_sizes.
517 (grokparm): Add parameter expr. Pass it to grokdeclarator.
518 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
519 (c_variable_size): Remove.
520 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
521 call put_pending_sizes.
522 (get_parm_info): Add parameter expr. Use it to set
523 arg_info->pending_sizes.
524 (store_parm_decls): Use arg_info->pending_sizes instead or calling
526 * c-parser.c (c_parser_parms_declarator): Update call to
527 c_parser_parms_list_declarator.
528 (c_parser_parms_list_declarator): Take parameter expr. Update
529 call to push_parm_decl. Update recursive call. Don't call
530 get_pending_sizes. Update calls to get_parm_info.
531 (c_parser_objc_method_definition): Update calls to
532 c_parser_objc_method_decl and objc_start_method_definition.
533 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
534 (c_parser_objc_method_decl): Add parameter expr. Update call to
536 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
537 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
538 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
540 2011-05-05 Michael Hope <michael.hope@linaro.org>
543 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
546 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
548 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
549 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
550 (spu_output_mi_thunk): New function.
552 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
554 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
555 targetm.asm_out.print_operand.
556 * config/sol2.c: Include target.h.
558 2011-05-04 Jan Hubicka <jh@suse.cz>
560 * ipa-inline.c (reset_edge_caches): New function.
561 (update_caller_keys): Add check_inlinablity_for; do not
562 reset edge caches; remove now unnecesary loop.
563 (update_callee_keys): Add comments; reset node_growth_cache of callee.
564 (update_all_callee_keys): Likewise.
565 (inline_small_functions): Sanity check cache; update code
568 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
570 PR rtl-optimization/47612
571 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
572 as the last insn of the sequence to be moved.
574 2011-05-04 Tobias Burnus <burnus@net-b.de>
577 * doc/invoke.texi (Ofast): Document that it
578 enables Fortran's -fno-protect-parens.
580 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
582 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
584 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
586 * stor-layout.c (variable_size): Do not issue errors.
588 2011-05-04 Richard Guenther <rguenther@suse.de>
590 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
591 for array-ref indices.
592 (tree_coverage_counter_addr): Likewise.
593 (build_fn_info_type): Use size_int for index types.
594 (build_gcov_info): Likewise.
596 2011-05-04 Richard Guenther <rguenther@suse.de>
598 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
600 * c-typeck.c (really_start_incremental_init): Use bitsize_int
601 for constructor indices.
602 (push_init_level): Likewise.
604 2011-05-04 Richard Guenther <rguenther@suse.de>
606 * explow.c (promote_mode): Move variable declarations before code.
608 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
610 * tree.h (build_function_type_array): Declare.
611 (build_varargs_function_type_array): Declare.
612 (build_function_type_vec, build_varargs_function_type_vec): Define.
613 * tree.c (build_function_type_array_1): New function.
614 (build_function_type_array): New function.
615 (build_varargs_function_type_array): New function.
617 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
619 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
620 before setting STMT_VINFO_TYPE.
622 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
624 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
625 instead of spu_pass_by_reference.
627 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
629 * calls.c (emit_library_call_value_1): Invoke
630 promote_function_mode hook on libcall arguments.
631 * explow.c (promote_function_mode, promote_mode): Handle TYPE
633 * targhooks.c (default_promote_function_mode): Lisewise.
634 * config/s390/s390.c (s390_promote_function_mode): Likewise.
635 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
637 * doc/tm.texi: Document that TYPE argument might be NULL.
639 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
641 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
643 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
646 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
648 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
650 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
651 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
653 * mips-tfile.c: ... here.
654 Don't include coretypes.h, tm.h, filenames.h.
655 (saber_stop): Remove definition and all calls.
657 (__LINE__): Remove default.
658 (Size_t, Ptrdiff_t): Remove definitions.
659 Replace by size_t, ptrdiff_t.
660 [!MIPS_DEBUGGING_INFO]: Remove.
661 (SHASH_SIZE, THASH_SIZE): Remove defaults.
662 (progname): Add const.
664 Replace all uses by static.
665 (ALIGN_SYMTABLE_OFFSET): Remove default.
666 * mips-tdump.c: Don't include coretypes.h, tm.h.
667 Remove !MIPS_IS_STAB guard.
668 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
669 $(TM_H), filenames.h dependencies.
670 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
672 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
675 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
676 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
678 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
681 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
682 account and save/restore RETS.
683 (PROFILE_BEFORE_PROLOGUE): Define.
684 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
685 the push insn to use predecrement.
687 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
690 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
692 2011-05-04 Nick Clifton <nickc@redhat.com>
694 * config/mn10300/mn10300.c: Include cfgloop.h.
696 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
697 Lcc or a FLcc insn into the instruction stream.
698 (mn10300_block_contains_call): New function. Returns true if the
699 given basic block contains a CALL insn.
700 (mn10300_loop_contains_call_insn): New function. Returns true if
701 the given loop contains a CALL insn.
702 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
703 to use the SETLB and Lcc or FLcc insns.
704 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
705 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
706 * config/mn10300/mn10300.opt (msetlb): New option. Used to
707 disable the SETLB optimization.
708 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
709 __SETLB__ or __NO_SETLB__.
710 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
711 (movsf_internal): Handle MDR register.
712 (cmpsi): Make visible.
713 (setlb): New pattern.
717 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
720 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
722 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
723 (vec_concatv2di_rex64_sse): Ditto.
724 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
725 (*vec_extractv2di_1_rex64): Ditto.
728 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
730 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
732 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
734 2011-05-04 Richard Guenther <rguenther@suse.de>
736 * tree.h (int_const_binop): Remove notrunc argument.
737 * fold-const.c (int_const_binop): Remove notrunc argument. Always
738 create integer constants that are properly truncated.
739 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
740 (const_binop): Remove zero notrunc argument to int_const_binop.
741 (size_binop_loc): Likewise.
742 (fold_div_compare): Likewise.
743 (maybe_canonicalize_comparison_1): Likewise.
744 (fold_comparison): Likewise.
745 (fold_binary_loc): Likewise.
746 (multiple_of_p): Likewise.
747 * expr.c (store_constructor): Likewise.
748 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
749 (maybe_fold_stmt_addition): Likewise.
750 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
751 * stor-layout.c (layout_type): Likewise.
752 * tree-data-ref.c (tree_fold_divides_p): Likewise.
753 * tree-sra.c (build_ref_for_offset): Likewise.
754 (build_user_friendly_ref_for_offset): Likewise.
755 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
756 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
757 * tree-ssa-loop-niter.c (inverse): Likewise.
758 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
759 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
760 * tree-switch-conversion.c (check_range): Likewise.
761 (build_constructors): Likewise.
762 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
763 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
764 (extract_range_from_assert): Likewise.
765 (vrp_int_const_binop): Likewise.
766 (extract_range_from_binary_expr): Likewise.
767 (extract_range_from_unary_expr): Likewise.
768 (check_array_ref): Likewise.
769 (find_case_label_range): Likewise.
770 (simplify_div_or_mod_using_ranges): Likewise.
771 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
772 comparing case labels for merging.
774 2011-05-03 Mark Wielaard <mjw@redhat.com>
776 * dwarf2out.c (debug_str_hash_forced): Removed.
777 (gen_label_for_indirect_string): Removed.
778 (get_debug_string_label): Removed.
779 (AT_string_form): Generate label directly.
780 (output_indirect_string): Test indirect_string_node for
781 DW_FORM_strp instead of checking label and refcount.
782 (prune_indirect_string): Removed.
783 (prune_unused_types): Don't check debug_str_hash_forced or
784 call prune_indirect_string.
786 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
789 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
791 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
795 * combine.c (try_combine): Skip debug insns at m_split tests.
797 2011-04-26 Mark Wielaard <mjw@redhat.com>
800 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
801 when info_section_emitted.
803 2011-05-03 Joseph Myers <joseph@codesourcery.com>
805 * config/mips/mips-opts.h: New.
806 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
808 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
809 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
810 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
812 * config/mips/mips.h (enum mips_code_readable_setting): Move to
814 (mips_abi, mips_code_readable): Don't declare.
815 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
816 (mabi=): Use Enum and Var.
817 (mips_abi): New Enum and EnumValue entries.
818 (mcode-readable=): Use Enum and Var.
819 (mips_code_readable_setting): New Enum and EnumValue entries.
820 (mr10k-cache-barrier=): Use Enum and Var.
821 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
823 2011-05-03 Jan Hubicka <jh@suse.cz>
825 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
826 replace hash by pointer map.
827 (cgraph_node_set_element_def, cgraph_node_set_element,
828 const_cgraph_node_set_element, varpool_node_set_element_def,
829 varpool_node_set_element, const_varpool_node_set_element): Remove.
830 (free_cgraph_node_set, free_varpool_node_set): New function.
831 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
832 * tree-emutls.c: Free varpool node set.
833 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
834 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
835 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
836 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
837 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
838 Move here from ipa.c; implement using pointer_map
839 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
840 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
841 debug_cgraph_node_set, varpool_node_set_new,
842 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
843 dump_varpool_node_set, debug_varpool_node_set):
845 * passes.c (ipa_write_summaries): Update.
847 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
850 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
851 bf542/bf544/bf547/bf548/bf549.
853 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
855 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
857 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
860 * config/bfin/bfin.md (MOVCC): New mode_macro.
861 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
862 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
863 comments from generated assembly.
865 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
868 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
869 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
870 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
871 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
872 * config/bfin/lib1funcs.asm (___muldi3): New function.
874 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
876 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
877 build_function_type_list instead of build_function_type.
878 Rearrange initialization of `args' to do so.
880 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
882 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
883 instead of build_function_type.
885 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
887 * config/rs6000/rs6000.c (spe_init_builtins): Call
888 build_function_type_list instead of build_function_type.
889 (paired_init_builtins, altivec_init_builtins): Likewise.
890 (builtin_function_type): Likewise.
892 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
894 * config/sh/sh.c (sh_media_init_builtins): Call
895 build_function_type_list instead of build_function_type.
897 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
899 * config/sparc/sparc.c (sparc_file_end): Call
900 build_function_type_list instead of build_function_type.
902 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
904 * config/alpha/alpha.c (alpha_init_builtins): Call
905 build_function_type_list instead of build_function_type.
907 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
909 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
910 build_function_type_list instead of build_function_type.
912 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
914 * config/iq2000/i2000.c (iq2000_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/avr/avr.c (avr_init_builtins): Call
921 build_function_type_list instead of build_function_type.
923 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
925 * config/picochip/picochip.c (picochip_init_builtins): Call
926 build_function_type_list instead of build_function_type.
927 Delete `endlink' variable.
929 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
931 * config/bfin/bfin.c (bfin_init_builtins): Call
932 build_function_type_list instead of build_function_type.
934 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
937 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
938 that's not CONST_INT. Seemingly redundant check is due to PR39768.
940 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
943 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
944 libbffastfp overrides libgcc when -mfast-fp.
946 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
948 Originally from Bernd Schmidt
949 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
950 * config/bfin/bfin.c (override_options): Test it and error if
953 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
955 Originally From Bernd Schmidt
956 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
959 2011-05-03 Jeff Law <law@redhat.com>
961 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
962 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
963 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
964 than accessing AUX field directly. Free the AUX field before
966 (thread_block, thread_through_loop_header): Likewise.
967 (thread_single_edge, mark_threaded_blocks): Likewise.
968 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
969 (register_jump_thread): Do not attempt to thread to a NULL edge.
971 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
973 * function.c (init_function_start): Call decide_function_section.
974 * varasm.c (decide_function_section): New function.
975 (assemble_start_function): When not using
976 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
977 or first_function_block_is_cold.
978 * rtl.h (decide_function_section): Declare.
980 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
981 Jakub Jelinek <jakub@redhat.com>
984 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
985 only succeed if req_mode is the same as set_mode.
987 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
989 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
990 * genemit.c (gen_exp): Handle RETURN.
991 * emit-rtl.c (verify_rtx_sharing): Likewise.
992 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
993 * rtl.c (copy_rtx): RETURN is shared.
994 * rtl.h (enum global_rtl_index): Add GR_RETURN.
996 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
997 * config/s390/s390.c (s390_emit_epilogue): Likewise.
998 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
999 * config/cris/cris.c (cris_expand_return): Likewise.
1000 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1001 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1002 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1003 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1004 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1006 * config/v850/v850.c (expand_epilogue): Likewise.
1007 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1008 * config/arm/arm.md (epilogue): Likewise.
1009 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1010 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1011 variable to ret_reg.
1013 2011-05-03 Richard Guenther <rguenther@suse.de>
1016 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1017 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1018 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1020 2011-05-03 Richard Guenther <rguenther@suse.de>
1022 * c-decl.c (grokdeclarator): Instead of looking at
1023 TREE_OVERFLOW check if the constant fits in the index type.
1025 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1027 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1028 (vec_store_lanes<mode><mode>): Likewise.
1030 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1032 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1033 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1034 convert_optab_index values.
1035 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1036 * genopinit.c (optabs): Initialize the new optabs.
1037 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1038 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1039 (expand_STORE_LANES): New functions.
1040 * tree.h (build_array_type_nelts): Declare.
1041 * tree.c (build_array_type_nelts): New function.
1042 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1043 (vect_model_load_cost): Likewise.
1044 (vect_store_lanes_supported, vect_load_lanes_supported)
1045 (vect_record_strided_load_vectors): Declare.
1046 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1047 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1048 (vect_transform_strided_load): Split out statement recording into...
1049 (vect_record_strided_load_vectors): ...this new function.
1050 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1051 (write_vector_array, create_array_ref): New functions.
1052 (vect_model_store_cost): Add store_lanes_p argument.
1053 (vect_model_load_cost): Add load_lanes_p argument.
1054 (vectorizable_store): Try to use store-lanes functions for
1056 (vectorizable_load): Likewise load-lanes and loads.
1057 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1058 to vect_model_store_cost.
1059 (vect_build_slp_tree): Likewise vect_model_load_cost.
1061 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1063 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1064 * hooks.c (hook_bool_mode_uhwi_false): New function.
1065 * target.def (array_mode_supported_p): New hook.
1066 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1067 * doc/tm.texi: Regenerate.
1068 * stor-layout.c (mode_for_array): New function.
1069 (layout_type): Use it.
1070 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1071 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1073 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1076 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1077 for -fstack-check if the size to allocate is negative.
1079 2011-05-02 Lawrence Crowl <crowl@google.com>
1081 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1082 (timevar_cond_start): New for starting a timer only when it is not
1084 (timevar_cond_stop): New for stopping a timer when it was not already
1087 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1088 (timevar_cond_start): New as above.
1089 (timevar_cond_stop): New as above.
1091 * timevar.def: Add start/stop timers for compiler phases,
1092 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1093 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1094 and TV_PHASE_FINALIZE.
1095 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1096 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1097 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1098 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1099 Make unused TV_OVERLOAD into a start/stop timer.
1101 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1102 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1103 to indicate that they are start/stop timers.
1105 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1106 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1107 Move initialization to do_compile.
1108 (do_compile): Add initialization from above.
1109 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1111 * c-decl.c (c_write_global_declarations): Add start/stop of
1112 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1114 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1115 or TV_PARSE_INLINE, as appropriate.
1116 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1117 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1119 2011-05-02 Jason Merrill <jason@redhat.com>
1122 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1124 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1127 * c-decl.c (finish_decl): Only create a composite if the types are
1130 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1132 * config/fr30/fr30-protos.h (Mmode): Don't define.
1133 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1134 definition where used.
1135 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1136 define. Expand definitions where used.
1137 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1138 Expand definitions where used.
1139 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1140 rx_function_arg, rx_function_arg_advance,
1141 rx_function_arg_boundary): Expand definitions of those macros.
1142 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1143 definition where used.
1145 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1147 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1149 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1150 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1151 with *movv2sf_internal_rex64_avx.
1152 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1153 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1154 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1155 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1156 "vex" in "prefix" attribute calculation.
1157 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1159 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1162 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1163 inputs match the output.
1165 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1168 * config/m68k/m68k.c (m68k_expand_prologue): Set
1169 current_function_static_stack_size.
1171 2011-05-02 Jan Hubicka <jh@suse.cz>
1173 * lto-streamer.c (lto_streamer_cache_insert_1,
1174 lto_streamer_cache_lookup, lto_streamer_cache_create,
1175 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1176 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1178 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1180 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1181 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1182 config/m68k/t-opts: New files.
1183 * config/m68k/m68k-tables.opt: New file (generated).
1184 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1185 extra_options and m68k/t-opts to tmake_file.
1186 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1187 (all_isas): Initialize using m68k-isas.def.
1188 (all_microarchs): Initialize using m68k-microarchs.def.
1189 (m68k_find_selection): Remove.
1190 (m68k_handle_option): Don't assert that global structures are in
1191 use. Use error_at. Access variables via opts pointer. Don't
1192 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1193 directly for -m68020-40 and -m68020-60.
1194 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1195 m68k_tune_entry here.
1196 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1198 (m68k_library_id_string): Remove declaration.
1199 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1200 (m68k_library_id_string): New Variable.
1201 (march=, mcpu=, mtune=): Use Enum and Var.
1203 2011-05-02 Richard Guenther <rguenther@suse.de>
1205 * varasm.c (output_constructor_regular_field): Compute zero-based
1206 index with double-ints. Make sure to ICE instead of producing
1208 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1209 in asserts. Properly use a signed type.
1211 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1213 * config/i386/sse.md (V): New mode iterator.
1214 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1216 (V_256): Rename from AVX256MODE.
1217 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1218 condition to all users.
1220 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1221 condition to all users.
1222 (VF_128): Make V4SF mode unconditional.
1223 (VF_256): Rename from AVX256MODEF2P.
1224 (VI4F_128): Rename from SSEMODE4S.
1225 (VI8F_128): Rename from SSEMODE2D.
1226 (VI4F_256): Rename from AVX256MODE8P.
1227 (VI8F_256): Rename from AVX256MODE4P.
1228 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1229 (ssescalarmodesuffix): Remove SF and DF modes.
1230 (SSEMODE124): Remove.
1231 (SSEMODE1248): Ditto.
1232 (SSEMODEF2P): Ditto.
1233 (AVXMODEF2P): Ditto.
1234 (AVXMODEFDP): Ditto.
1235 (AVXMODEFSP): Ditto.
1236 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1238 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1240 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1241 xop_pcmov_<mode>256. Use V mode iterator.
1243 Adjust RTX patterns globally for renamed mode attributes.
1245 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1247 * haifa-sched.c (sched_emit_insn): Emit insn before first
1248 non-scheduled insn. Inform back-end about new insn. Add
1249 new insn to scheduled_insns list.
1251 2011-05-02 Richard Guenther <rguenther@suse.de>
1253 PR tree-optimization/48822
1254 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1255 (process_scc): Indicate which iteration we start.
1257 2011-05-02 Jan Hubicka <jh@suse.cz>
1259 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1260 (lto_section_overrun): New.
1261 * lto-section-out.c (append_block): Rename to ...
1262 (lto_append_block): ... this one; export.
1263 (lto_output_1_stream): Move lto lto-streamer.h
1264 (lto_output_data_stream): Update.
1265 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1266 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1269 2011-05-02 Richard Guenther <rguenther@suse.de>
1271 * tree.c (tree_code_counts): New global array.
1272 (record_node_allocation_statistics): Count individual tree codes.
1273 (dump_tree_statistics): Dump individual code stats.
1275 2011-05-01 Jan Hubicka <jh@suse.cz>
1277 * ipa-inline.c (caller_growth_limits): Fix thinko when
1278 looking for largest stack frame.
1279 * ipa-inline.h (dump_inline_summary): Declare.
1280 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1282 (dump_inline_summary): Export.
1283 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1285 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1287 * reginfo.c (memory_move_cost): Change rclass argument type form
1288 'enum reg_class' to reg_class_t.
1289 * reload.h (memory_move_cost): Update prototype.
1290 * postreload.c reload_cse_simplify_set): Change type dclass var to
1292 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1294 (ira_allocate_and_set_costs): Change aclass argument type form
1295 'enum reg_class' to reg_class_t.
1296 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1297 Change aclass argument type to reg_class_t.
1298 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1300 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1301 memory_move_cost call.
1303 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1304 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1305 Change type tmp var to reg_class_t.
1307 2011-04-30 Jan Hubicka <jh@suse.cz>
1309 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1310 inlining into function with flatten attribute.
1311 (want_inline_small_function_p): Be more realistic about inlining
1312 cold calls where callee size grows.
1314 2011-04-30 Jan Hubicka <jh@suse.cz>
1316 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1319 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1321 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1322 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1323 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1324 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1325 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1326 (print_operand): Rename to...
1327 (sparc_print_operand): ...this. Make static. Adjust
1328 sparc_print_operand function call.
1329 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1332 2011-04-30 Jan Hubicka <jh@suse.cz>
1335 * ipa-inline.c (early_inliner): Disable when doing late
1336 addition of function.
1338 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1340 * dwarf2out.c (get_address_mode): New inline.
1341 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1342 if not dwarf_strict emit
1343 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1344 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1345 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1346 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1347 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1348 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1349 mem_loc_descriptor callers.
1350 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1351 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1352 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1353 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1354 (base_types): New variable.
1355 (get_base_type_offset, calc_base_type_die_sizes,
1356 base_type_for_mode, mark_base_types, base_type_cmp,
1357 move_marked_base_types): New functions.
1358 (calc_die_sizes): Assert that die_offset is 0 or equal to
1360 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1361 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1362 callers. If not dwarf_strict, call mem_loc_descriptor even for
1363 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1364 (gen_subprogram_die): Don't give up on call site parameters
1365 with non-integral or large integral modes. Adjust
1366 mem_loc_descriptor callers.
1367 (prune_unused_types): Call prune_unused_types_mark on base_types
1369 (resolve_addr): Call mark_base_types.
1370 (dwarf2out_finish): Call move_marked_base_types.
1372 PR tree-optimization/48809
1373 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1375 (gen_inbound_check): Don't compute index_expr - range_min in utype
1376 again, instead reuse SSA_NAME initialized in build_arrays.
1377 Remove two useless gsi_for_stmt calls.
1379 2011-04-29 Jeff Law <law@redhat.com>
1381 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1383 2011-04-29 Martin Jambor <mjambor@suse.cz>
1385 * cgraph.h (cgraph_postorder): Remove declaration.
1386 * ipa-utils.h (ipa_free_postorder_info): Declare.
1387 (ipa_reverse_postorder): Likewise.
1388 * cgraphunit.c: Include ipa-utils.h.
1389 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1390 * ipa-inline.c: Include ipa-utils.h.
1391 (ipa_inline): Update call to ipa_reverse_postorder.
1392 * ipa-pure-const.c (propagate_pure_const): Update call to
1393 ipa_reduced_postorder and ipa_print_order. Call
1394 ipa_free_postorder_info to clean up.
1395 (propagate_nothrow): Likewise.
1396 * ipa-reference.c (propagate): Removed a useless call to
1397 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1398 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1399 * ipa.c: Include ipa-utils.h.
1400 (ipa_profile): Update call to ipa_reverse_postorder.
1401 (cgraph_postorder): Moved to...
1402 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1403 (ipa_utils_print_order): Renamed to ipa_print_order.
1404 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1406 (ipa_free_postorder_info): New function.
1407 * passes.c: Include ipa-utils.h.
1408 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1409 (ipa_write_summaries): Likewise.
1410 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1411 (cgraphunit.o): Likewise.
1413 (ipa-inline.o): Likewise.
1415 2011-04-29 Jan Hubicka <jh@suse.cz>
1417 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1418 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1419 * ipa-inline.h (clause_t): Turn into unsigned int.
1420 * ipa-inline-analysis.c (add_clause): Do more simplification.
1421 (and_predicates): Shortcut more cases.
1422 (predicates_equal_p): Move forward; check that clauses are properly
1424 (or_predicates): Shortcut more cases.
1425 (edge_execution_predicate): Rewrite as...
1426 (set_cond_stmt_execution_predicate): ... this function; handle
1427 __builtin_constant_p.
1428 (set_switch_stmt_execution_predicate): New .
1429 (compute_bb_predicates): New.
1430 (will_be_nonconstant_predicate): Update TODO.
1431 (estimate_function_body_sizes): Use compute_bb_predicates
1432 and free them later, always try to estimate if stmt is constant.
1433 (estimate_time_after_inlining, estimate_size_after_inlining):
1434 Gracefully handle optimized out edges.
1435 (read_predicate): Fix off by one error.
1437 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1439 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1441 2011-04-27 Xinliang David Li <davidxl@google.com>
1443 * tree-profile.c (init_ic_make_global_vars): Set
1444 tls attribute on ic vars.
1445 * coverage.c (coverage_end_function): Initialize
1446 function_list with zero.
1448 2011-04-29 Richard Guenther <rguenther@suse.de>
1450 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1451 for the type of the result.
1452 (fold_builtin_isascii): Likewise.
1453 (fold_builtin_toascii): Use integer_type_node where appropriate.
1454 (fold_builtin_logb): Likewise.
1455 (fold_builtin_frexp): Likewise.
1456 (fold_builtin_strstr): Likewise.
1457 (fold_builtin_strpbrk): Likewise.
1458 (fold_builtin_fputs): Likewise.
1459 (fold_builtin_sprintf): Likewise.
1460 (fold_builtin_snprintf): Likewise.
1461 (fold_builtin_printf): Likewise.
1462 (do_mpfr_remquo): Use a proper type for the assigned constant.
1463 (do_mpfr_lgamma_r): Likewise.
1464 * dwarf2out.c (resolve_one_addr): Use size_int.
1465 * except.c (init_eh): Likewise.
1466 (assign_filter_values): Use integer_type_node for filter values.
1467 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1469 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1470 for EH region numbers.
1471 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1472 for the shift amount.
1474 2011-04-29 Richard Guenther <rguenther@suse.de>
1476 * expr.h (expand_shift): Rename to ...
1477 (expand_variable_shift): ... this.
1478 (expand_shift): Take a constant shift amount.
1479 * expmed.c (expand_shift): Rename to ...
1480 (expand_variable_shift): ... this.
1481 (expand_shift): New wrapper around expand_variable_shift.
1482 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1483 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1484 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1485 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1486 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1487 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1488 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1489 emit_store_flag_1, emit_store_flag): Likewise.
1490 * builtins.c (expand_builtin_signbit): Likewise.
1491 * calls.c (load_register_parameters): Likewise.
1492 * function.c (assign_parm_setup_block): Likewise.
1493 * lower-subreg.c (resolve_shift_zext): Likewise.
1494 * optabs.c (widen_bswap, expand_abs_nojump,
1495 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1496 * spu/spu.c (spu_expand_extv): Likewise.
1497 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1499 2011-04-29 Richard Guenther <rguenther@suse.de>
1501 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1502 for the remapped region number.
1503 * predict.c (build_predict_expr): Use integer_type_node for the
1505 * fold-const.c (fold_binary_loc): Use integer_type_node for
1506 the shift amount. Use a proper type for the PLUS_EXPR operand.
1508 2011-04-29 Michael Matz <matz@suse.de>
1510 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1511 other trees that just builtins.
1512 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1514 2011-04-29 Richard Guenther <rguenther@suse.de>
1516 * tree-nested.c (get_trampoline_type): Use size_int.
1517 (get_nl_goto_field): Likewise.
1518 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1520 (lower_eh_constructs_2): Likewise.
1521 (lower_resx): Likewise.
1522 (lower_eh_dispatch): Likewise.
1523 * tree-mudflap.c (mf_build_string): Use size_int.
1524 (mudflap_register_call): Use integer_type_node for the flag.
1525 (mudflap_enqueue_constant): Use size_int.
1526 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1527 instead of rebuilding it.
1529 2011-04-29 Richard Guenther <rguenther@suse.de>
1531 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1532 Handle OBJ_TYPE_REF.
1533 (find_func_aliases_for_call): Use it more consistently.
1535 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1537 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1538 (rank_for_schedule): Use it.
1539 (schedule_block): Set it.
1541 2011-04-28 David Li <davidxl@google.com>
1543 * tree.c (crc32_string): Use crc32_byte.
1544 (crc32_byte): New function.
1545 * tree.h (crc32_byte): New function.
1546 * gcov.c (read_graph_file): Handle new cfg_cksum.
1547 (read_count_file): Ditto.
1548 * profile.c (instrument_values): Ditto.
1549 (get_exec_counts): Ditto.
1550 (read_profile_edge_counts): Ditto.
1551 (compute_branch_probabilities): Ditto.
1552 (compute_value_histograms): Ditto.
1553 (branch_prob): Ditto.
1554 (end_branch_prob): Ditto.
1555 * coverage.c (read_counts_file): Ditto.
1556 (get_coverage_counts): Ditto.
1557 (tree_coverage_counter_addr): Ditto.
1558 (coverage_checksum_string): Ditto.
1559 (coverage_begin_output): Ditto.
1560 (coverage_end_function): Ditto.
1561 (build_fn_info_type): Ditto.
1562 (build_fn_info_value): Ditto.
1563 * libgcov.c (gcov_exit): Ditto.
1564 * gcov-dump.c (tag_function): Ditto.
1565 (compute_checksum): Remove.
1567 2011-04-29 Alan Modra <amodra@gmail.com>
1569 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1570 unspec plus offset. Tidy macho code.
1572 2011-04-29 Martin Jambor <mjambor@suse.cz>
1574 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1575 node instead of a decl. Update all callers.
1576 * cgraph.h: Update declaration.
1578 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1580 PR tree-optimization/48765
1581 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1582 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1583 to indicate if loop aware SLP is being used. Scan the statements
1584 and update the vectorization factor according to the type of
1585 vectorization before statement analysis.
1586 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1587 pass it to vect_analyze_loop_operations.
1588 (vectorizable_reduction): Set number of copies to 1 in case of pure
1590 * tree-vect-stmts.c (vectorizable_conversion,
1591 vectorizable_assignment, vectorizable_shift,
1592 vectorizable_operation, vectorizable_type_demotion,
1593 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1595 (vectorizable_condition): Move the check that it is not SLP
1596 vectorization before the number of copies check.
1597 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1598 to vectorize the loop using SLP.
1600 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1603 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1606 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1608 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1609 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1610 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1611 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1612 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1614 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1615 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1616 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1617 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1618 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1619 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1621 * config/i386/linux.h (REG_NAME): Don't define.
1622 * config/i386/linux64.h (REG_NAME): Don't define.
1623 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1624 Undefine before defining.
1626 2011-04-28 Jan Hubicka <jh@suse.cz>
1628 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1629 nonconstant_names array.
1630 (estimate_function_body_sizes): Build nonconstant_names array; handle
1631 BUILT_IN_CONSTANT_P.
1633 2011-04-28 Richard Guenther <rguenther@suse.de>
1637 2011-04-28 Richard Guenther <rguenther@suse.de>
1639 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1640 as late as possible.
1642 2011-04-28 Richard Guenther <rguenther@suse.de>
1644 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1645 (debug_constraint): Do it here.
1646 (dump_constraints): And here.
1647 (rewrite_constraints): And here.
1648 (dump_constraint_edge): Remove.
1649 (dump_constraint_graph): Rewrite to produce DOT output.
1650 (solve_constraints): Build succ graph as late as possible.
1651 Dump constraint graphs before and after solving.
1653 2011-04-28 Richard Guenther <rguenther@suse.de>
1655 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1656 New function split out from ...
1657 (find_func_aliases): ... here. Call it.
1658 (find_func_aliases_for_call): Likewise.
1660 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1662 * internal-fn.h (internal_fn_name_array): Declare.
1663 (internal_fn_flags_array): Likewise.
1665 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1667 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1668 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1670 (ssemodefsuffix): Remove.
1671 (ssevecmodesuffix): New mode attribute.
1672 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1673 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1674 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1675 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1676 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1677 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1678 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1679 ssemodesuffix mode attribute.
1680 (float splitters): Use ssevecmodesuffix mode attribute.
1681 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1682 (sseinsmode): Rename from avxvecmode.
1683 (avxsizesuffix): Rename from avxmodesuffix.
1684 (sseintvecmode): Rename from avxpermvecmode.
1685 (ssedoublevecmode): Rename from ssedoublesizemode.
1686 (ssehalfvecmode): Rename from avxhalfvecmode.
1687 (ssescalarmode): Rename from avxscalarmode.
1688 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1689 templates for ssemodesuffix mode attribute.
1690 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1693 Adjust RTX patterns globally for renamed mode attributes.
1695 2011-04-27 Jan Hubcika <jh@suse.cz>
1697 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1698 * ipa-inline-analysis.c: Include alloc-pool.h.
1699 (edge_predicate_pool): New.
1700 (trye_predicate_p): New function
1701 (false_predicate_p): New function.
1702 (add_clause): Sanity check that false clauses are "optimized";
1703 never add clauses to predicate that is already known to be false.
1704 (and_predicate): Use flase_predicate_p.
1705 (evaulate_predicate): Rename to ...
1706 (evaluate_predicate): ... this one; update all callers; assert
1707 that false is not listed among possible truths.
1708 (dump_predicate): Use true_predicate_p.
1709 (account_size_time): Use false_predicate_p.
1710 (evaulate_conditions_for_edge): Rename to ...
1711 (evaluate_conditions_for_edge) ... this one.
1712 (edge_set_predicate): New function.
1713 (inline_edge_duplication_hook): Duplicate edge predicates.
1714 (inline_edge_removal_hook): Free edge predicates.
1715 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1716 (dump_inline_summary): Update.
1717 (estimate_function_body_sizes): Set edge predicates.
1718 (estimate_calls_size_and_time): Handle predicates.
1719 (estimate_callee_size_and_time): Update.
1720 (remap_predicate): Add toplev_predicate; update comment.
1721 (remap_edge_predicates): New function.
1722 (inline_merge_summary): Compute toplev predicate; update.
1723 (read_predicate): New function.
1724 (read_inline_edge_summary): Use it.
1725 (inline_read_section): Likewise.
1726 (write_predicate): New function.
1727 (write_inline_edge_summary): Use it.
1728 (inline_write_summary): Likewise.
1729 (inline_free_summary): Free alloc pool and edge summary vec.
1731 2011-04-27 Richard Guenther <rguenther@suse.de>
1733 * tree-ssa-structalias.c (changed_count): Remove.
1734 (changed): Use a bitmap.
1735 (unify_nodes): Adjust.
1736 (do_sd_constraint): Likewise.
1737 (do_ds_constraint): Likewise.
1738 (do_complex_constraint): Likewise.
1739 (solve_graph): Likewise.
1741 2011-04-27 Jan Hubicka <jh@suse.cz>
1743 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1745 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1747 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1748 (avx_vperm2f128_*_operand): Ditto.
1749 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1750 Use avx_vpermilp_parallel in insn condition.
1751 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1752 Use avx_vperm2f128_parallel in insn condition.
1754 2011-04-27 Richard Guenther <rguenther@suse.de>
1756 * Makefile.in (tree-ssa-structalias.o): Remove
1757 gt-tree-ssa-structalias.h dependency.
1758 (GTFILES): Remove tree-ssa-structalias.c.
1759 * tree.c (allocate_decl_uid): New function.
1760 (make_node_stat): Use it.
1761 (copy_node_stat): Likewise.
1762 * tree.h (allocate_decl_uid): Declare.
1763 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1764 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1765 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1766 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1767 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1768 (struct heapvar_map): Likewise.
1769 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1770 heapvar_insert): Likewise.
1771 (make_heapvar_for): Rename to ...
1772 (make_heapvar): ... this. Simplify.
1773 (fake_var_decl_obstack): New global var.
1774 (build_fake_var_decl): New function.
1775 (make_constraint_from_heapvar): Adjust.
1776 (handle_lhs_call): Likewise.
1777 (create_function_info_for): Likewise.
1778 (intra_create_variable_infos): Likewise.
1779 (init_alias_vars): Allocate fake_var_decl_obstack.
1780 (init_alias_heapvars, delete_alias_heapvars): Remove.
1781 (compute_points_to_sets): Do not call init_alias_heapvars.
1782 (ipa_pta_execute): Likewise.
1783 (delete_points_to_sets): Free fake_var_decl_obstack.
1785 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1787 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1788 (si_from_UTItype, si_to_UTItype): New functions.
1789 (__udivmodti4): Use them to implement type-punning.
1790 * config/spu/multi3.c (union qword_TItype): New data type.
1791 (si_from_TItype, si_to_TItype): New functions.
1792 (__multi3): Use them to implement type-punning.
1794 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1796 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1798 2011-04-27 Jan Hubicka <jh@suse.cz>
1800 * ipa-prop.c (function_insertion_hook_holder): New holder.
1801 (ipa_add_new_function): New function.
1802 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1803 Register/deregister holder.
1805 2011-04-27 Richard Guenther <rguenther@suse.de>
1807 PR tree-optimization/48772
1808 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1810 2011-04-27 Richard Guenther <rguenther@suse.de>
1812 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1813 TARGET_MEM_REF handling.
1815 2011-04-27 Nick Clifton <nickc@redhat.com>
1817 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1818 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1819 (REG_CLASS_NAMES): Likewise.
1820 (REG_CLASS_CONTENTS): Likewise.
1821 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1822 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1823 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1824 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1825 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1826 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1827 duplicate register classes.
1828 (frv_class_likely_spilled_p): Likewise.
1829 (frv_register_move_cost): Likewise.
1831 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1832 end of the regno_reg_class array.
1834 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1837 * c-typeck.c (build_binary_op): Don't wrap arguments if
1838 int_operands is true.
1840 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1843 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1844 targetm.calls.must_pass_in_stack for void type.
1846 2011-04-26 Jan Hubicka <jh@suse.cz>
1848 * cgraphbuild.c (build_cgraph_edges): Update call
1849 of cgraph_create_edge and cgraph_create_indirect_edge.
1850 * cgraph.c (cgraph_create_edge_including_clones,
1851 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1852 cgraph_update_edges_for_call_stmt_node): Do not take nest
1853 argument; do not initialize call_stmt_size/time.
1854 (dump_cgraph_node): Do not dump nest.
1855 (cgraph_clone_edge): Do not take loop_nest argument;
1856 do not propagate it; do not clone call_stmt_size/time.
1857 (cgraph_clone_node): Likewise.
1858 (cgraph_create_virtual_clone): Update.
1859 * cgraph.h (struct cgraph_edge): Remove
1860 call_stmt_size/call_stmt_time/loop_nest.
1861 (cgraph_create_edge, cgraph_create_indirect_edge,
1862 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1864 * tree-emutls.c (gen_emutls_addr): Update.
1865 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1866 loop_nest; handle indirect calls, too.
1867 (clone_inlined_nodes): Do not care about updating inline summaries.
1868 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1869 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1870 stream call_stmt_size/call_stmt_time/loop_nest.
1871 * ipa-inline.c (edge_badness): Update.
1872 (ipa_inline): dump summaries after inlining.
1873 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1875 (inline_edge_summary): New function.
1876 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1877 (inline_edge_removal_hook): Handle edge summaries.
1878 (inline_edge_duplication_hook): New hook.
1879 (inline_summary_alloc): Alloc hooks.
1880 (initialize_growth_caches): Do not register removal hooks.
1881 (free_growth_caches); Do not free removal hook.
1882 (dump_inline_edge_summary): New function.
1883 (dump_inline_summary): Use it.
1884 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1885 (inline_update_callee_summaries): New function.
1886 (inline_merge_summary): Use it.
1887 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1888 (read_inline_edge_summary): New function.
1889 (inline_read_section): Use it.
1890 (write_inline_edge_summary): New function.
1891 (inline_write_summary): Use it.
1892 (inline_free_summary): Free edge new holders.
1893 * tree-inline.c (copy_bb): Update.
1895 2011-04-26 Jason Merrill <jason@redhat.com>
1897 * tree-eh.c (lower_try_finally_switch): Create the label along with
1898 the CASE_LABEL_EXPR.
1900 2011-04-26 David S. Miller <davem@davemloft.net>
1901 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1903 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1904 * configure: Regenerate.
1906 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1909 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1911 (VEC_reduc): New code iterator and splitters for vector reduction.
1912 (VEC_reduc_name): Ditto.
1913 (VEC_reduc_rtx): Ditto.
1914 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1915 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1917 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1918 support for extracting SF on VSX.
1920 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1921 generating xscvspdp.
1922 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1923 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1924 double add, minimum, maximum vector reduction.
1925 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1926 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1927 optimize double vector reduction.
1928 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1930 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1932 * config/fr30/fr30.h (inhibit_libc): Don't define.
1933 * config/m32r/m32r-protos.h: Correct comment.
1934 * config/v850/v850.h (GHS_default_section_names,
1935 GHS_current_section_names): Use tree, not union tree_node *.
1937 2011-04-26 Xinliang David Li <davidxl@google.com>
1939 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1940 * c-family/c-opts.c (c_common_handle_option): Set
1941 warn_maybe_uninitialized.
1942 * opts.c (common_handle_option): Ditto.
1943 * common.opt: New option.
1944 * tree-ssa.c (warn_uninit): Add one more parameter.
1945 (warn_uninitialized_var): Pass warning code.
1946 * tree-flow.h: Interface change.
1949 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1951 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1952 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1953 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1955 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1957 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1958 * config/mips/mips.opt (mmips-tfile): Remove.
1960 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1961 mips-tdump reference to ...
1962 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1963 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1964 reference by Tru64 UNIX.
1966 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1969 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1970 is error_mark_node, set value to NULL.
1972 PR tree-optimization/48734
1973 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1974 if return value from maybe_fold_*_comparsions isn't something
1975 the code is prepared to handle.
1977 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1979 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1981 (ext_QIreg_nomode_operands): Remove.
1982 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1986 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1988 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1990 2011-04-26 Richard Guenther <rguenther@suse.de>
1992 * c-typeck.c (build_unary_op): Do not expand array-refs via
1993 pointer arithmetic. Only adjust qualifiers for function types.
1995 2011-04-26 Richard Guenther <rguenther@suse.de>
1998 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1999 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2000 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2001 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2003 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2005 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2006 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2007 * doc/extend.texi: Document __underlying_type.
2009 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2011 * config/rs6000/titan.md (automata_option "progress"): Remove.
2013 2011-04-25 Jeff Law <law@redhat.com>
2015 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2017 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2019 * system.h (ENUM_BITFIELD): Remove.
2021 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2022 Eric Botcazou <ebotcazou@adacore.com>
2024 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2025 for STORE_FLAG_VALUE==-1 case.
2027 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2030 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2031 LEGITIMATE_PIC_OPERAND_P.
2033 2011-04-24 Jan Hubicka <jh@suse.cz>
2035 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2037 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2038 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2039 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2040 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2041 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2042 Sanity check predicate length.
2043 (remap_predicate): Likewise; sanity check jump functions.
2044 (inline_read_section, inline_write_summary): Sanity check
2047 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2050 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2051 __is_literal_type, and __is_trivial; update throughout about
2052 possibly cv-qualified void types.
2054 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2056 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2057 testsuite and make it version agnostic.
2059 2011-04-22 Jan Hubicka <jh@suse.cz>
2061 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2063 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2066 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2067 to VOID_TYPE even around MODIFY_EXPR.
2069 2011-04-22 Mike Stump <mikestump@comcast.net>
2071 * gensupport.c (read_md_rtx): Fix typo in comment.
2072 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2075 2011-04-22 Jan Hubicka <jh@suse.cz>
2077 * gengtype.c (open_base_files): Add ipa-inline.h include.
2078 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2079 ipa-prop.c; update all uses.
2080 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2081 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2082 merge summary of inlined function into former caller.
2083 * ipa-inline.c (max_benefit): Remove.
2084 (edge_badness): Compensate for removal of benefits.
2085 (update_caller_keys): Use
2086 reset_node_growth_cache/reset_edge_growth_cache.
2087 (update_callee_keys): Likewise.
2088 (update_all_callee_keys): Likewise.
2089 (inline_small_functions): Do not collect max_benefit; do not reset
2090 estimated_growth; call free_growth_caches and initialize_growth_caches.
2091 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2092 struct size_time_entry): New structures.
2093 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2094 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2095 and estimated_growth.
2096 (edge_growth_cache_entry): New structure.
2097 (node_growth_cache, edge_growth_cache): New global vars.
2098 (estimate_growth): Turn into inline.
2099 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2100 initialize_growth_caches, free_growth_caches): Declare.
2101 (estimate_edge_growth): Rewrite.
2102 (estimate_edge_time): Implement as inline cache lookup.
2103 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2105 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2106 (NUM_CONDITIONS): New constant.
2107 (predicate_conditions): New enum.
2108 (IS_NOT_CONSTANT): New constant.
2109 (edge_removal_hook_holder): New var.
2110 (node_growth_cache, edge_growth_cache): New global vars.
2111 (true_predicate, single_cond_predicate, false_predicate,
2112 not_inlined_predicate, add_condition, add_clause, and_predicates,
2113 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2114 dump_clause, dump_predicate, account_size_time,
2115 evaulate_conditions_for_edge): New functions.
2116 (inline_summary_alloc): Move to heap.
2117 (inline_node_removal_hook): Clear condition and entry vectors.
2118 (inline_edge_removal_hook): New function.
2119 (initialize_growth_caches, free_growth_caches): New function.
2120 (dump_inline_summary): Update.
2121 (edge_execution_predicate): New function.
2122 (will_be_nonconstant_predicate): New function.
2123 (estimate_function_body_sizes): Compute BB and constantness predicates.
2124 (compute_inline_parameters): Do not clear estimated_growth.
2125 (estimate_edge_size_and_time): New function.
2126 (estimate_calls_size_and_time): New function.
2127 (estimate_callee_size_and_time): New function.
2128 (remap_predicate): New function.
2129 (inline_merge_summary): New function.
2130 (do_estimate_edge_time): New function based on...
2131 (estimate_edge_time): ... this one.
2132 (do_estimate_edge_growth): New function.
2133 (do_estimate_growth): New function based on....
2134 (estimate_growth): ... this one.
2135 (inline_analyze_function): Analyze after deciding on jump functions.
2136 (inline_read_section): New function.
2137 (inline_read_summary): Use it.
2138 (inline_write_summary): Write all the new data.
2139 * ipa-prop.c (ipa_get_param_decl_index): Export.
2140 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2141 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2143 (ipa_get_lattice): Move here from ipa-cp.c
2144 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2145 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2146 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2147 cgraph_edge_inlinable_p): Remove.
2148 * cgraphunit.c: Include ipainline.h
2149 (cgraph_process_new_functions): Update call of
2150 compute_inline_parameters.
2152 2011-04-22 Richard Guenther <rguenther@suse.de>
2154 * tree.c (build_int_cst): Properly create canonicalized integer
2156 (build_int_cst_type): Remove scary comments.
2158 2011-04-22 Xinliang David Li <davidxl@google.com>
2160 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2161 by default when -Wno-error is not specified.
2162 * opts-global.c (decode_options): Remove call to
2163 control_warning_options.
2165 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2167 PR tree-optimization/48717
2168 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2169 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2171 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2173 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2174 definition where used.
2176 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2179 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2180 TREE_STATIC variables declared inside of some OpenMP construct.
2182 2011-04-22 Martin Jambor <mjambor@suse.cz>
2185 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2187 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2190 * c-typeck.c (pop_init_level): Do not warn about initializing
2193 2011-04-22 Alan Modra <amodra@gmail.com>
2195 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2196 when returning call_cookie.
2197 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2198 pointers, to functions with no more vector args than the current
2199 function, and some non-local calls for ABI_V4.
2200 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2201 sibcall_nonlocal_aix64): Combine to ..
2202 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2203 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2204 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2205 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2206 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2208 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2209 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2210 sibcall_value_symbolic_64): Delete.
2212 2011-04-21 Xinliang David Li <davidxl@google.com>
2214 * cgraph.h: Remove pid.
2215 * cgraph.c: Remove pid.
2216 * value-prof.c (init_node_map): New function.
2217 (del_node_map): New function.
2218 (find_func_by_funcdef_no): New function.
2219 (gimple_ic_transform): Call new function.
2220 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2221 * function.c (get_last_funcdef_no): New function.
2222 * function.h (get_last_funcdef_no): New function.
2223 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2224 to libgcov function.
2225 (tree-profiling): Call node map init and delete function.
2227 2011-04-21 Ian Lance Taylor <iant@google.com>
2229 * godump.c (go_format_type): Use exported Go name for anonymous
2232 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2234 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2235 Call builtin_function_type_list instead of builtin_function_type.
2236 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2238 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2240 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2241 build_function_type_list instead of build_function_type.
2242 Delete variable `endlink'.
2244 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2246 * config/s390/s390.c (s390_init_builtins): Call
2247 build_function_type_list instead of build_function_type.
2249 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2251 * config/ia64/ia64.c (ia64_init_builtins): Call
2252 build_function_type_list instead of builtin_function_type.
2254 2011-04-21 Easwaran Raman <eraman@google.com>
2256 * cfgexpand.c (stack_var): Remove OFFSET...
2257 (add_stack_var): ...and its reference here...
2258 (expand_stack_vars): ...and here.
2259 (stack_var_cmp): Sort by descending order of size.
2260 (partition_stack_vars): Change heuristic.
2261 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2262 (dump_stack_var_partition): Add newline after each partition.
2264 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2265 Jeff Law <law@redhat.com>
2267 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2268 * gengtype.c (matching_file_name_substitute): Likewise.
2270 2011-04-21 Richard Guenther <rguenther@suse.de>
2273 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2275 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2277 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2279 2011-04-21 Richard Guenther <rguenther@suse.de>
2281 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2284 2011-04-21 Richard Guenther <rguenther@suse.de>
2286 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2287 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2288 Use DECL_P, not SSA_VAR_P.
2289 (ptr_derefs_may_alias_p): Likewise.
2290 (ptr_deref_may_alias_ref_p_1): Likewise.
2291 (decl_refs_may_alias_p): Likewise.
2292 (refs_may_alias_p_1): Likewise.
2293 (ref_maybe_used_by_call_p_1): Likewise.
2294 (call_may_clobber_ref_p_1): Likewise.
2295 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2296 are either MEM_REF or TARGET_MEM_REF.
2297 (indirect_refs_may_alias_p): Likewise.
2298 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2299 for MEM_EXPR of indirect calls.
2301 2011-04-21 Tristan Gingold <gingold@adacore.com>
2303 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2304 (dst_file_info_struct): Remove flen field.
2305 (lookup_filename): Remove code that set flen field.
2307 2011-04-21 Tristan Gingold <gingold@adacore.com>
2309 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2311 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2314 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2315 vec_extract and vec_concat for non-SSE4_1 targets.
2317 2011-04-21 Richard Guenther <rguenther@suse.de>
2319 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2322 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2324 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2326 (FILE): Don't undefine.
2328 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2330 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2332 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2334 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2335 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2336 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2338 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2339 definitions where used.
2340 * config/microblaze/microblaze.h (struct microblaze_args): Use
2341 rtx, not struct rtx_def *.
2342 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2344 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2345 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2346 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2347 not struct rtx_def *.
2348 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2350 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2352 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2354 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2356 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2357 operand_equal_p to compare DR_BASE_ADDRESSes.
2358 (vect_check_interleaving): Likewise.
2360 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2363 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2364 for all Neon struct constants.
2366 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2368 * target.def (legitimate_constant_p): New hook.
2369 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2370 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2371 * doc/tm.texi: Regenerate.
2372 * hooks.h (hook_bool_mode_rtx_true): Declare.
2373 * hooks.c (hook_bool_mode_rtx_true): Define.
2374 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2375 * calls.c (precompute_register_parameters): Replace uses of
2376 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2377 (emit_library_call_value_1): Likewise.
2378 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2379 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2380 * ira-costs.c (scan_one_insn): Likewise.
2381 * recog.c (general_operand, immediate_operand): Likewise.
2382 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2383 * reload1.c (init_eliminable_invariants): Likewise.
2385 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2387 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2388 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2390 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2391 * config/alpha/predicates.md (input_operand): Update call to
2392 alpha_legitimate_constant_p.
2394 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2395 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2396 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2397 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2398 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2399 (arm_legitimate_constant_p): New functions.
2400 (arm_cannot_force_const_mem): Make static.
2402 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2404 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2405 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2406 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2407 instead of bfin_legitimate_constant_p.
2408 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2409 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2411 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2413 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2415 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2416 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2417 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2418 (frv_legitimate_constant_p): Make static. Add a mode argument.
2420 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2421 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2422 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2424 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2425 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2426 * config/i386/i386.c (legitimate_constant_p): Rename to...
2427 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2429 (ix86_cannot_force_const_mem): Update accordingly.
2430 (ix86_legitimate_address_p): Likewise.
2431 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2432 * config/i386/i386.md: Update commentary.
2434 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2435 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2436 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2437 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2439 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2441 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2442 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2443 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2444 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2446 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2447 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2448 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2450 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2451 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2452 (m32r_legitimate_constant_p): New function.
2454 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2455 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2456 LEGITIMATE_CONSTANT_P.
2457 (LEGITIMATE_CONSTANT_P): Delete.
2458 * config/m68k/m68k.c (m68k_expand_prologue): Call
2459 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2460 (m68k_legitimate_constant_p): New function.
2461 * config/m68k/m68k.md: Update comments.
2463 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2464 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2465 (mcore_legitimate_constant_p): New function.
2467 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2468 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2469 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2470 Add a mode argument.
2471 (mep_legitimate_address): Update accordingly.
2472 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2474 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2476 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2477 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2478 static. Check OP's mode for VOIDmode.
2479 (microblaze_legitimate_constant_p): New function.
2480 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2482 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2483 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2484 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2485 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2486 * config/mips/predicates.md: Update comments.
2488 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2489 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2490 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2491 (mmix_legitimate_constant_p): Make static, return a bool, and take
2493 (mmix_print_operand_address): Update accordingly.
2495 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2497 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2498 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2499 static. Add a mode argument.
2500 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2502 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2504 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2505 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2506 (pa_legitimate_constant_p): New function.
2508 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2510 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2511 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2512 (pdp11_legitimate_constant_p): New function.
2514 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2515 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2516 (rs6000_legitimate_constant_p): New function.
2518 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2519 (rx_legitimate_constant_p): ...this.
2520 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2521 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2522 (rx_legitimate_constant_p): ...this.
2523 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2524 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2526 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2527 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2528 * config/s390/s390.c (legitimate_constant_p): Rename to...
2529 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2530 and add a mode argument.
2531 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2533 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2535 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2536 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2537 (sh_legitimate_constant_p): New function.
2539 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2540 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2541 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2542 (legitimate_constant_p): Rename to...
2543 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2545 (constant_address_p): Update accordingly.
2547 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2548 argument and return a bool.
2549 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2550 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2551 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2552 (spu_rtx_costs): Update accordingly.
2553 * config/spu/predicates.md (vec_imm_operand): Likewise.
2555 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2557 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2558 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2559 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2561 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2562 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2563 * config/vax/vax.c (legitimate_constant_p): Likewise.
2565 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2566 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2567 (xtensa_legitimate_constant_p): New function.
2569 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2571 * target.def (cannot_force_const_mem): Add a mode argument.
2572 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2573 * doc/tm.texi: Regenerate.
2574 * hooks.h (hook_bool_mode_rtx_false): Declare.
2575 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2576 (hook_bool_mode_const_rtx_true): Likewise.
2577 (hook_bool_mode_rtx_false): New function.
2578 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2579 to be non-VOID. Update call to cannot_force_const_mem.
2580 (find_reloads): Update accordingly.
2581 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2582 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2584 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2585 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2586 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2587 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2588 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2589 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2590 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2591 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2592 (m68k_cannot_force_const_mem): ...this new function.
2593 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2595 (mips_const_insns, mips_legitimize_const_move): Update calls.
2596 (mips_secondary_reload_class): Likewise.
2597 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2598 (pa_cannot_force_const_mem): ...this new function.
2599 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2600 (rs6000_cannot_force_const_mem): ...this new function.
2601 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2603 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2604 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2606 (xtensa_cannot_force_const_mem): ...this new function.
2608 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2610 * config/mips/mips.c (mips16_build_function_stub): Call
2611 build_function_type_list instead of build_function_type.
2612 (mips16_build_call_stub): Likewise.
2614 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2616 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2617 instead of build_function_type.
2619 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2621 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2622 instead of build_function_type.
2624 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2627 * config/i386/i386.md (insv): Change operand 0 constraint to
2628 "register_operand". Change operand 1 and 2 constraint to
2629 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2630 * config/i386/sse.md (sse4_1_pinsrb): Export.
2631 (sse2_pinsrw): Ditto.
2632 (sse4_1_pinsrd): Ditto.
2633 (sse4_1_pinsrq): Ditto.
2634 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2635 * config/i386/i386.c (ix86_expand_pinsr): New.
2637 2011-04-20 Easwaran Raman <eraman@google.com>
2639 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2640 containing union type only with -fstrict-aliasing.
2642 2011-04-20 Jim Meyering <meyering@redhat.com>
2644 Remove useless if-before-free tests.
2645 * calls.c (expand_call, save_area): Likewise.
2646 * cfgcleanup.c (try_forward_edges): Likewise.
2647 * collect2.c (collect_execute): Likewise.
2648 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2649 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2650 * coverage.c (coverage_checksum_string): Likewise.
2651 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2652 * cselib.c (cselib_init): Likewise.
2653 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2654 (df_set_clean_cfg): Likewise.
2655 * function.c (free_after_compilation): Likewise.
2656 * gcc.c (do_spec_1, main): Likewise.
2657 * gcov.c (create_file_names): Likewise.
2658 * gensupport.c (identify_predicable_attribute): Likewise.
2659 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2660 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2661 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2662 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2663 * ipa-pure-const.c (local_pure_const): Likewise.
2664 * ipa-reference.c (propagate): Likewise.
2665 * ira-costs.c (free_ira_costs): Likewise.
2666 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2667 * matrix-reorg.c (mat_free): Likewise.
2668 * prefix.c (get_key_value): Likewise.
2669 * profile.c (compute_value_histograms): Likewise.
2670 * reload1.c (free_reg_equiv): Likewise.
2671 * sched-deps.c (free_deps): Likewise.
2672 * sel-sched-ir.c (fence_clear): Likewise.
2673 * sese.c (set_rename, if_region_set_false_region): Likewise.
2674 * tree-data-ref.c (free_rdg): Likewise.
2675 * tree-eh.c (lower_try_finally): Likewise.
2676 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2677 * tree-ssa-live.c (delete_var_map): Likewise.
2678 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2679 * tree-ssa-pre.c (phi_trans_add): Likewise.
2681 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2683 PR tree-optimization/48611
2684 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2685 beyond ERT_MUST_NOT_THROW region.
2687 2011-04-20 Catherine Moore <clm@codesourcery.com>
2689 * config/mips/mips.opt (mfix-24k): New.
2690 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2691 * config/mips/mips.md (length): Increase by 4 for stores if
2693 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2694 all noreorder if fixing 24K errata.
2695 * doc/invoke.texi: Document mfix-24k.
2697 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2699 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2700 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2702 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2704 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2705 (const_ok_for_op): ... to here.
2707 2011-04-20 Kai Tietz <ktietz@redhat.com>
2709 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2710 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2712 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2714 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2716 2011-04-20 Richard Guenther <rguenther@suse.de>
2718 PR tree-optimization/47892
2719 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2722 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2724 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2726 2011-04-20 Tristan Gingold <gingold@adacore.com>
2728 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2730 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2734 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2735 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2736 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2737 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2738 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2740 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2743 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2744 (avr_asm_named_section, avr_asm_output_aligned_common,
2745 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2746 New functions to update...
2747 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2748 (avr_asm_init_sections): Overwrite section callbacks for
2749 data_section, bss_section.
2750 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2752 (avr_file_end): ...here.
2754 2011-04-20 Richard Guenther <rguenther@suse.de>
2757 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2758 objects and types here. Adjust for their offset before comparing.
2760 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2762 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2765 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2767 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2768 (GIMPLE_H): Include $(INTERNAL_FN_H).
2769 (OBJS-common): Add internal-fn.o.
2770 (internal-fn.o): New rule.
2771 * internal-fn.def: New file.
2772 * internal-fn.h: Likewise.
2773 * internal-fn.c: Likewise.
2774 * gimple.h: Include internal-fn.h.
2775 (GF_CALL_INTERNAL): New gf_mask.
2776 (gimple_statement_call): Put fntype into a union with a new
2778 (gimple_build_call_internal): Declare.
2779 (gimple_build_call_internal_vec): Likewise.
2780 (gimple_call_same_target_p): Likewise.
2781 (gimple_call_internal_p): New function.
2782 (gimple_call_internal_fn): Likewise.
2783 (gimple_call_fntype): Return null for internal calls.
2784 (gimple_call_set_fntype): Assert that the function is not internal.
2785 (gimple_call_set_fn): Likewise.
2786 (gimple_call_set_fndecl): Likewise.
2787 (gimple_call_set_internal_fn): New function.
2788 (gimple_call_addr_fndecl): Handle null functions.
2789 (gimple_call_return_type): Likewise null types.
2790 * gimple.c (gimple_build_call_internal_1): New function.
2791 (gimple_build_call_internal): Likewise.
2792 (gimple_build_call_internal_vec): Likewise.
2793 (gimple_call_same_target_p): Likewise.
2794 (gimple_call_flags): Handle calls to internal functions.
2795 (gimple_call_fnspec): New function.
2796 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2797 (gimple_has_side_effects): Handle null functions.
2798 (gimple_rhs_has_side_effects): Likewise.
2799 (gimple_call_copy_skip_args): Handle calls to internal functions.
2800 * cfgexpand.c (expand_call_stmt): Likewise.
2801 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2802 * gimple-fold.c (gimple_fold_call): Handle null functions.
2803 (gimple_fold_stmt_to_constant_1): Don't fold
2804 calls to internal functions.
2805 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2807 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2808 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2809 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2810 (do_warn_unused_result): Likewise.
2811 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2812 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2813 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2814 the target of a call.
2815 (initialize_hash_element): Update accordingly.
2816 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2817 (iterative_hash_hashable_expr): Handle calls to internal functions.
2818 (print_expr_hash_elt): Likewise.
2819 * tree-ssa-pre.c (can_value_number_call): Likewise.
2820 (eliminate): Handle null functions.
2821 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2822 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2823 (find_func_aliases): Likewise.
2824 * value-prof.c (gimple_ic_transform): Likewise.
2825 (gimple_indirect_call_to_profile): Likewise.
2826 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2827 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2829 2011-04-19 Jan Hubicka <jh@suse.cz>
2831 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2832 * ipa-inline.c (inline_small_functions): Compute summaries first,
2833 populate heap later.
2835 2011-04-19 Jan Hubicka <jh@suse.cz>
2837 * cgraph.h (save_inline_function_body): Remove.
2838 * ipa-inline-transform.c: New file, broke out of...
2839 * ipa-inline.c: ... this one; Update toplevel comment.
2840 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2842 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2843 (cgraph_mark_inline_edge): Rename to inline_call; move to
2844 ipa-inline-transform.c.
2845 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2846 move to ipa-inline-transform.c
2847 (recursive_inlining, inline_small_functions, flatten_function,
2848 ipa_inline, inline_always_inline_functions,
2849 early_inline_small_functions): Update.
2850 (inline_transform): Move to ipa-inline-transform.c.
2851 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2853 * Makefile.in (ipa-inline-transform.o): New file.
2854 * cgraphunit.c (save_inline_function_body): Move to
2855 ipa-inline-transform.c
2857 2011-04-19 DJ Delorie <dj@redhat.com>
2859 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2860 registers if we already know there aren't any.
2861 (m32c_emit_epilogue): Don't emit a barrier here.
2862 (m32c_emit_eh_epilogue): Likewise.
2863 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2864 operands at expand time.
2865 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2867 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2868 duplicates. Provide aliases instead.
2869 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2870 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2873 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2875 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2876 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2877 (general_or_i64_p, sparc_register_move_cost): New function.
2879 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2881 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2882 Add lynx, mipssde. Sort table.
2884 2011-04-19 Xinliang David Li <davidxl@google.com>
2886 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2889 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2892 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2893 is a SUBREG with non-MODE_INT mode inside of it.
2895 2011-04-19 Martin Jambor <mjambor@suse.cz>
2897 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2898 also according to actual contants.
2899 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2900 (gimple_fold_call): Use it.
2901 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2903 2011-04-19 Martin Jambor <mjambor@suse.cz>
2905 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2906 non-pointer assignments.
2908 2011-04-19 Martin Jambor <mjambor@suse.cz>
2910 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2911 account anc_offset and otr_type from the indirect edge info.
2912 * ipa-prop.c (get_ancestor_addr_info): New function.
2913 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2914 get_ancestor_addr_info, call it.
2915 (ipa_note_param_call): Do not initialize information about polymorphic
2916 calls, return the indirect call graph edge. Remove the last
2917 parameter, adjust all callers.
2918 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2919 parameters. Initialize polymorphic information in the indirect edge.
2921 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2924 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2925 the types if they have different enumeration identifiers.
2927 2011-04-19 Jan Hubicka <jh@suse.cz>
2929 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2930 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2931 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2932 (optimize_function_for_size_p) ... here.
2934 2011-04-19 Richard Guenther <rguenther@suse.de>
2937 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2940 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2942 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2943 if DECL_NO_INLINE_WARNING_P is set on the function.
2945 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2948 * reload1.c (inc_for_reload): Return void. All callers changed.
2949 (emit_input_reload_insns): Don't try to delete previous output
2950 reloads to a register, or record spill_reg_store for autoincs.
2952 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2954 * gengtype.h: Updated copyright year.
2955 (struct input_file_st): Add inpisplugin field.
2956 (type_fileloc): New function.
2958 (write_typed_struct_alloc_def): Add gcc_assert.
2959 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2960 (write_typed_alloc_defns): Don't output for plugin files.
2961 (input_file_by_name): Clear inpisplugin field.
2962 (main): Set inpisplugin field for plugin files.
2964 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2966 * gengtype-state.c (string_eq): New.
2967 (read_state): Use string_eq instead of strcmp when creating the
2970 2011-04-19 Wei Guozhi <carrot@google.com>
2973 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2974 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2976 * config/arm/constraints.md (Uu): New constraint.
2977 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2979 2011-04-19 Tristan Gingold <gingold@adacore.com>
2981 * config.gcc (-*-*-*vms): Added.
2982 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2984 * config/vms/vms-ld.c: New file.
2985 * config/vms/vms-ar.c: New file.
2986 * config/vms/t-vmsnative: New file.
2988 2011-04-18 Xinliang David Li <davidxl@google.com>
2990 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2992 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2995 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2996 if TREE_TYPE (v) is non-NULL.
2998 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2999 gimple_get_virt_mehtod_for_binfo.
3000 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3001 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3003 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3005 2011-04-18 Michael Matz <matz@suse.de>
3006 Steve Ellcey <sje@cup.hp.com>
3008 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3009 use its mode as source mode if it isn't VOIDmode.
3011 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3013 * doc/passes.texi: Fill crossref nodes.
3015 2011-04-18 Jim Meyering <meyering@redhat.com>
3017 Fix doubled-word typos in comments and strings
3018 * config/alpha/vms-unwind.h: s/for for/for/
3019 * config/arm/unwind-arm.h: Likewise.
3020 * config/microblaze/microblaze.c: Likewise.
3021 * config/sh/constraints.md: s/in in/in/
3022 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3024 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3026 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3027 (AVX_FLOAT_MODE_P): Ditto.
3028 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3029 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3030 (AVX_VEC_FLOAT_MODE_P): Ditto.
3031 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3032 (UNSPEC_MASKSTORE): Ditto.
3033 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3034 Merge from <sse>_movmsk<ssemodesuffix> and
3035 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3036 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3038 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3039 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3040 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3042 2011-04-18 Jan Hubicka <jh@suse.cz>
3044 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3046 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3047 (want_inline_function_called_once_p): Break out the logic from
3049 (edge_badness): Ensure that profile is not misupdated.
3050 (lookup_recursive_calls): Prioritize by call frequencies.
3051 (inline_small_functions): Move program size estimates here;
3052 actually process whole queue even when unit growth has been
3053 met. (to properly compute inline_failed reasons and for the
3054 case unit size decrease.) Revisit comments on recursive inlining.
3055 (ipa_inline): Remove unit summary code; first inline hot calls
3056 of functions called once, cold calls next.
3057 (order, nnodes): Remove unused variables.
3058 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3059 (GTFILES): Remove ipa-inline.c
3060 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3062 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3064 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3066 2011-04-18 Jie Zhang <jie@codesourcery.com>
3067 Richard Earnshaw <rearnsha@arm.com>
3069 * arm.c (neon_builtin_type_bits): Remove.
3070 (typedef enum neon_builtin_mode): New.
3071 (T_MAX): Don't define.
3072 (typedef enum neon_builtin_datum): Remove bits, codes[],
3073 num_vars and base_fcode. Add mode, code and fcode.
3074 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3075 VAR10): Change accordingly.
3076 (neon_builtin_data[]): Change accordingly
3077 (arm_init_neon_builtins): Change accordingly.
3078 (neon_builtin_compare): Remove.
3079 (locate_neon_builtin_icode): Remove.
3080 (arm_expand_neon_builtin): Change accordingly.
3082 * arm.h (enum arm_builtins): Move to ...
3083 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3085 * arm.c (arm_builtin_decl): Declare.
3086 (TARGET_BUILTIN_DECL): Define.
3087 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3088 (arm_builtin_decls[]): New.
3089 (arm_init_neon_builtins): Store builtin declarations in
3090 arm_builtin_decls[].
3091 (arm_init_tls_builtins): Likewise.
3092 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3093 (arm_builtin_decl): New.
3095 2011-04-18 Richard Guenther <rguenther@suse.de>
3097 * tree.c (upper_bound_in_type): Build properly canonicalized
3099 (lower_bound_in_type): Likewise.
3101 2011-04-18 Richard Guenther <rguenther@suse.de>
3103 * gimple.h (gimple_call_addr_fndecl): New function.
3104 (gimple_call_fndecl): Use it.
3105 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3107 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3108 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3110 2011-04-18 Richard Guenther <rguenther@suse.de>
3113 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3115 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3118 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3119 DECL_IN_CONSTANT_POOL without RTL.
3121 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3122 Ira Rosen <ira.rosen@linaro.org>
3125 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3126 to match neon_vzip/vuzp/vtrn_internal.
3127 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3128 outputs explicitly dependent on both inputs.
3129 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3131 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3133 PR tree-optimization/48616
3134 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3135 whether the shift is by scalar or vector based on whether all SLP
3136 scalar stmts have the same rhs.
3138 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3140 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3143 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3145 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3148 2011-04-17 Jan Hubicka <jh@suse.cz>
3150 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3151 * cgrpahunit.c (cgraph_finalize_function): Do not set
3152 finalized_by_frontend.
3153 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3154 finalized_by_frontend.
3156 2011-04-17 Jan Hubicka <jh@suse.cz>
3158 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3159 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3160 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3161 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3163 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3165 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3167 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3170 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3171 is non-null before accessing it.
3172 (input_cgraph): Remove trailing spaces.
3174 2011-04-17 Revital Eres <revital.eres@linaro.org>
3176 * params.def (sms-min-sc): New param flag.
3177 * modulo-sched.c (sms_schedule): Use it.
3178 * doc/invoke.texi (sms-min-sc): Document it.
3180 2011-04-17 Jan Hubicka <jh@suse.cz>
3182 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3183 present, also set gimple_call_set_cannot_inline.
3184 * ipa-inline.c: Update toplevel comment.
3186 (cgraph_clone_inlined_nodes): Fix linebreaks.
3187 (cgraph_check_inline_limits): Restructure to ...
3188 (caller_growth_limits): ... this one; be more tolerant
3189 on growth in nested inline chains; add explanatory comment;
3190 fix stack accounting thinko introduced by previous patch.
3191 (cgraph_default_inline_p): Remove.
3192 (report_inline_failed_reason): New function.
3193 (can_inline_edge_p): New function.
3194 (can_early_inline_edge_p): New function.
3195 (leaf_node_p): Move upwards in file.
3196 (want_early_inline_function_p): New function.
3197 (want_inline_small_function_p): New function.
3198 (want_inline_self_recursive_call_p): New function.
3199 (cgraph_edge_badness): Rename to ...
3200 (edge_badness) ... this one; fix linebreaks.
3201 (update_edge_key): Update call of edge_baddness; add
3202 detailed dump about queue updates.
3203 (update_caller_keys): Use can_inline_edge_p and
3204 want_inline_small_function_p.
3205 (cgraph_decide_recursive_inlining): Rename to...
3206 (recursive_inlining): Use can_inline_edge_p and
3207 want_inline_self_recursive_call_p; simplify and remove no longer
3209 (cgraph_set_inline_failed): Remove.
3210 (add_new_edges_to_heap): Use can_inline_edge_p and
3211 want_inline_small_function_p.
3212 (cgraph_decide_inlining_of_small_functions): Rename to ...
3213 (inline_small_functions): ... this one; cleanup; use
3214 can/want predicates; cleanup debug ouput; work edges till fibheap
3215 is exhausted and do not stop once unit growth is reached; remove
3216 later loop processing remaining edges.
3217 (cgraph_flatten): Rename to ...
3218 (flatten_function): ... this one; use can_inline_edge_p
3219 and can_early_inline_edge_p predicates.
3220 (cgraph_decide_inlining): Rename to ...
3221 (ipa_inline): ... this one; remove unreachable nodes before
3222 inlining functions called once; simplify the pass.
3223 (cgraph_perform_always_inlining): Rename to ...
3224 (inline_always_inline_functions): ... this one; use
3225 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3226 (cgraph_decide_inlining_incrementally): Rename to ...
3227 (early_inline_small_functions): ... this one; simplify
3228 using new predicates; cleanup; make dumps prettier.
3229 (cgraph_early_inlining): Rename to ...
3230 (early_inliner): newer inline regular functions into always-inlines;
3231 fix updating of call stmt summaries.
3232 (pass_early_inline): Update for new names.
3233 (inline_transform): Fix formating.
3234 (gate_cgraph_decide_inlining): Rename to ...
3235 (pass_ipa_inline): ... this one.
3236 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3237 * ipa-inline-analysis.c (dump_inline_summary): Update.
3238 (compute_inline_parameters): Do not compute disregard_inline_limits;
3239 look for mismatching arguments.
3240 (estimate_growth): Fix handlig of non-trivial self recursion.
3241 (inline_read_summary): Do not read info->disregard_inline_limits.
3242 (inline_write_summary): Do not write info->disregard_inline_limits.
3243 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3244 and move all checks into can_inline_edge_p predicate; re-enable code
3245 comparing optimization levels.
3246 (expand_call_inline): Do not test inline_forbidden_into_p.
3247 * Makefile.in (ipa-inline.o): Update arguments.
3249 2011-04-17 Revital Eres <revital.eres@linaro.org>
3251 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3253 2011-04-17 Revital Eres <revital.eres@linaro.org>
3255 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3257 2011-04-17 Michael Matz <matz@suse.de>
3259 PR tree-optimization/48622
3261 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3262 in same order as they're written.
3264 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3266 * config/pa/predicates.md: Reorganize and simplify predicates.
3267 Eliminate duplicate code checks.
3268 (arith_operand): Rename to arith14_operand
3269 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3270 * config/pa/pa.md: Use renamed operands.
3271 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3272 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3273 arith11_operand, adddi3_operand, indexed_memory_operand,
3274 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3275 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3276 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3277 move_dest_operand, move_src_operand, prefetch_cc_operand,
3278 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3279 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3280 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3281 div_operand, int5_operand, movb_comparison_operator,
3282 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3283 arith_double_operand, ireg_operand, lhs_lshift_operand,
3284 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3285 integer_store_memory_operand): Likewise.
3286 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3287 (integer_store_memory_operand, read_only_operand,
3288 function_label_operand, borx_reg_operand,
3289 non_hard_reg_operand): Likewise.
3290 (eq_neq_comparison_operator): Delete unused operator.
3291 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3292 function_label_operand.
3293 (emit_move_sequence): Likewise.
3295 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3297 * config/i386/sse.md (sseunpackmode): New mode attribute.
3298 (ssepackmode): Ditto.
3299 (vec_pack_trunc_<mode>): Macroize expander from
3300 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3301 (vec_unpacks_lo_<mode>): Macroize expander from
3302 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3303 (vec_unpacks_hi_<mode>): Macroize expander from
3304 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3305 (vec_unpacku_lo_<mode>): Macroize expander from
3306 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3307 (vec_unpacku_hi_<mode>): Macroize expander from
3308 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3309 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3310 ix86_expand_sse4_unpack.
3311 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3313 2011-04-16 Jan Hubicka <jh@suse.cz>
3315 * cgraphbuild.c: Include ipa-inline.h.
3316 (reset_inline_failed): Use initialize_inline_failed.
3317 * cgraph.c: Include ipa-inline.h.
3318 (cgraph_create_node_1): Do not initialize estimated_growth.
3319 (initialize_inline_failed): More to ipa-inline-analysis.c
3320 (dump_cgraph_node): Do not dump inline flags.
3321 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3322 and disregard_inline_limits flags.
3323 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3324 time, size, estimated_growth.
3325 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3327 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3328 DECL_DISREGARD_INLINE_LIMITS.
3329 (cgraph_analyze_function): Do not initialize
3330 node->local.disregard_inline_limits.
3331 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3332 inlinable, versionable and disregard_inline_limits.
3333 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3334 cgraph_check_inline_limits, cgraph_default_inline_p,
3335 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3336 add_new_edges_to_heap): Update.
3337 (cgraph_decide_inlining_of_small_function): Update; set
3338 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3339 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3340 cgraph_decide_inlining_incrementally): Update.
3341 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3342 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3343 time, size and estimated_growth parameters.
3344 (estimate_edge_growth): Update.
3345 (initialize_inline_failed): Declare.
3346 * ipa-split.c: Include ipa-inline.h
3347 (execute_split_functions): Update.
3348 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3349 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3350 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3351 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3352 estimated_growth to INT_MIN.
3353 (inline_node_duplication_hook): Likewise.
3354 (dump_inline_summary): Dump new fields.
3355 (compute_inline_parameters): Update.
3356 (estimate_edge_time, estimate_time_after_inlining,
3357 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3358 inline_write_summary):
3359 (initialize_inline_failed): Move here from cgraph.c.
3360 * tree-sra.c: Include ipa-inline.h.
3361 (ipa_sra_preliminary_function_checks): Update.
3362 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3365 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3367 * config/i386/sse.md (V16): New mode iterator.
3369 (AVXMODEQI, AVXMODEDI): Remove.
3370 (sse2, sse3): New mode attribute.
3371 (mov<mode>): Use V16 mode iterator.
3372 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3373 (push<mode>1): Use V16 mode iterator.
3374 (movmisalign<mode>): Ditto.
3375 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3376 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3377 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3378 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3379 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3380 avx_movdqu<avxmodesuffix>.
3381 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3382 *avx_movdqu<avxmodesuffix>.
3383 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3384 avx_lddqu<avxmodesuffix>.
3385 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3386 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3387 avx_movnt<AVXMODEDI:mode>.
3388 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3389 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3391 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3394 * haifa-sched.c (prune_ready_list, schedule_block): Use
3395 sched_pressure_p rather than flag_sched_pressure.
3397 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3399 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3400 cgraph_get_node instead of cgraph_get_create_node.
3402 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3404 * cfgexpand.c (expand_debug_expr): Use
3405 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3407 2011-04-15 Michael Matz <matz@suse.de>
3409 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3410 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3411 * function.c (gimplify_parameters): Ditto.
3412 * gimplify.c (gimplify_vla_decl): Ditto.
3414 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3415 (gimple_call_set_alloca_for_var): New inline function.
3416 (gimple_call_alloca_for_var_p): Ditto.
3417 * gimple.c (gimple_build_call_from_tree): Remember
3418 CALL_ALLOCA_FOR_VAR_P state.
3419 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3421 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3422 calls if they were for VLA objects.
3424 2011-04-15 Martin Jambor <mjambor@suse.cz>
3426 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3429 2011-04-15 Martin Jambor <mjambor@suse.cz>
3432 * tree-emutls.c (lower_emutls_function_body): Call
3433 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3436 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3438 * c-decl.c (detect_field_duplicates): Call
3439 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3441 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3443 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3444 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3445 * ipa-pure-const.c (check_stmt): Call it.
3446 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3448 2011-04-15 Richard Guenther <rguenther@suse.de>
3450 PR tree-optimization/48290
3451 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3452 Properly decide inhibiting propagation based on the valueized
3453 operand. Do loop-closed SSA form preserving here ...
3454 (init_copy_prop): ... not here.
3456 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3459 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3460 (*ieee_smax<mode>3): Likewise.
3462 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3464 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3465 Replace match_operand with match_dup for the third operand in
3468 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3470 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3471 to track processing of conditionals. Update all callers.
3472 (try_combine, simplify_if_then_else): Update.
3474 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3476 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3479 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3481 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3482 instead of match_operand for operand 3.
3484 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3486 * recog.h (insn_operand_data): Add an "allows_mem" field.
3487 * genoutput.c (output_operand_data): Initialize it.
3488 * optabs.c (maybe_legitimize_operand_same_code): New function.
3489 (maybe_legitimize_operand): Use it when matching the original
3492 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3494 * gimplify.c: Fix issues in comments throughout.
3495 (voidify_wrapper_expr): Fix long line.
3496 (build_stack_save_restore): Likewise.
3497 (gimplify_loop_expr): Likewise.
3498 (gimplify_compound_lval): Likewise.
3499 (gimplify_init_ctor_eval): Likewise.
3500 (gimplify_modify_expr_rhs): Likewise.
3501 (omp_notice_threadprivate_variable): Likewise.
3503 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3505 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3506 original one if this is not a builtin function.
3508 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3511 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3512 offset it as needed based on top 2 bits in operands[3], change
3513 MEM mode to SFmode and mask those 2 bits away from operands[3].
3515 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3517 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3518 change from objc_declare_protocols() to objc_declare_protocol().
3520 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3522 * config/i386/sse.md (sse4_1): New mode attribute.
3523 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3524 avx_blend<ssemodesuffix><avxmodesuffix> and
3525 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3526 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3527 avx_blendv<ssemodesuffix><avxmodesuffix> and
3528 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3529 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3530 avx_dp<ssemodesuffix><avxmodesuffix> and
3531 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3532 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3533 (sse4_1_packusdw): Merge with *avx_packusdw.
3534 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3535 (sse4_1_pblendw): Merge with *avx_pblendw.
3536 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3537 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3538 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3540 (sse4_1_round<ssescalarmodesuffix>): Merge with
3541 *avx_round<ssescalarmodesuffix>.
3542 (aesenc): Merge with *avx_aesenc.
3543 (aesenclast): Merge with *avx_aesenclast.
3544 (aesdec): Merge with *avx_aesdec.
3545 (aesdeclast): Merge with *avx_aesdeclast.
3546 (pclmulqdq): Merge with *pclmulqdq.
3547 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3549 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3551 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3554 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3555 (align_local_variable): This. Update DECL_ALIGN.
3556 (add_stack_var): Updated.
3557 (expand_one_stack_var): Likewise.
3559 2011-04-14 Richard Guenther <rguenther@suse.de>
3561 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3563 (dse_initialize_block_local_data, dse_leave_block,
3564 record_voperand_set, get_stmt_uid): Likewise.
3565 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3566 (dse_optimize_stmt): Remove voperand set handling code.
3567 Simplify and improve to handle any kind of killing stmt.
3568 (dse_record_phi): Remove.
3569 (dse_enter_block): Simplify.
3570 (tree_ssa_dse): Likewise.
3571 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3573 2011-04-14 Jan Hubicka <jh@suse.cz>
3575 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3576 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3577 (cgraph_local_info): Remove inline_summary.
3578 * ipa-cp.c: Include ipa-inline.h.
3579 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3580 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3582 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3583 (input_overwrite_node): Do not set inline summary.
3584 (input_node): Do not stream inline summary.
3585 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3586 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3587 growth; we do not have inline parameters computed for that anyway.
3588 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3589 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3590 (inline_summary_t): New type and VECtor.
3591 (debug_inline_summary, dump_inline_summaries): Declare.
3592 (inline_summary): Use VOCtor.
3593 (estimate_edge_growth): Kill hack computing call stmt size directly.
3594 * lto-section-in.c (lto_section_name): Add inline section.
3595 * ipa-inline-analysis.c: Include lto-streamer.h
3596 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3597 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3598 (inline_summary_vec): Define.
3599 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3600 dump_inline_summaries): New functions.
3601 (estimate_function_body_sizes): Properly compute size/time of outgoing
3603 (compute_inline_parameters): Alloc inline_summary; do not compute
3604 size/time of incomming calls.
3605 (estimate_edge_time): Avoid missing time summary hack.
3606 (inline_read_summary): Read inline summary info.
3607 (inline_write_summary): Write inline summary info.
3608 (inline_free_summary): Free all hooks and inline summary vector.
3609 * lto-streamer.h: Add LTO_section_inline_summary section.
3610 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3611 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3613 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3615 * tree-vectorizer.h (vect_strided_store_supported): Add a
3616 HOST_WIDE_INT argument.
3617 (vect_strided_load_supported): Likewise.
3618 (vect_permute_store_chain): Return void.
3619 (vect_transform_strided_load): Likewise.
3620 (vect_permute_load_chain): Delete.
3621 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3622 count argument. Check that the count is a power of two.
3623 (vect_strided_load_supported): Likewise.
3624 (vect_permute_store_chain): Return void. Update after above changes.
3625 Assert that the access is supported.
3626 (vect_permute_load_chain): Likewise.
3627 (vect_transform_strided_load): Return void.
3628 * tree-vect-stmts.c (vectorizable_store): Update calls after
3629 above interface changes.
3630 (vectorizable_load): Likewise.
3631 (vect_analyze_stmt): Don't check for strided powers of two here.
3633 2011-04-14 Richard Guenther <rguenther@suse.de>
3635 PR tree-optimization/48590
3636 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3637 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3638 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3639 BUILT_IN_STACK_SAVE.
3640 * tree-ssa-dce.c (propagate_necessity): Handle
3641 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3643 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3645 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3648 2011-04-14 Richard Guenther <rguenther@suse.de>
3650 * tree.h (get_object_alignment_1): Declare.
3651 * builtins.c (get_object_alignment_1): Split out worker from ...
3652 (get_object_alignment): ... here.
3653 * fold-const.c (get_pointer_modulus_and_residue): Use
3654 get_object_alignment_1.
3656 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3658 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3660 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3661 parameter. Generalise code to handle arrays as well as vectors.
3662 (vect_setup_realignment): Update accordingly.
3663 * tree-vect-stmts.c (vectorizable_store): Likewise.
3664 (vectorizable_load): Likewise.
3666 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3668 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3669 within the per-copy loop.
3671 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3673 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3676 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3678 * doc/options.texi (Negative): Explicitly mention that the
3679 Negative chain must be circular.
3681 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3683 * function.h (block_chainon): Declare.
3684 * function.c (block_chainon): Define.
3686 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3687 Eric Weddington <eric.weddington@atmel.com>
3688 Georg-Johann Lay <avr@gjlay.de>
3690 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3692 (avr_init_builtins, avr_expand_builtin,
3693 avr_expand_delay_cycles, avr_expand_unop_builtin,
3694 avr_expand_binop_builtin ): New functions.
3695 (avr_builtin_id): New enum
3696 (struct avr_builtin_description): New struct
3697 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3698 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3700 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3701 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3702 UNSPECV_DELAY_CYCLES): new enumeration values
3703 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3704 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3705 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3706 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3707 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3708 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3709 "fmulsu"): New insns
3711 * config/avr/avr-c.c: fix line endings
3712 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3713 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3714 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3715 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3716 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3718 * doc/extend.texi (AVR Built-in Functions): New node
3719 (Target Builtins): Add documentation of AVR
3722 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3725 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3726 alone. Error if non-const data has attribute progmem.
3728 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3730 * tree.h (struct tree_constructor): Include tree_typed instead of
3732 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3733 TS_TYPED instead of TS_COMMON.
3735 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3737 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3738 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3739 (sse2_psadbw): Merge with *avx_psadbw.
3740 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3741 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3742 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3743 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3744 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3745 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3746 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3747 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3748 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3749 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3750 (ssse3_palignrti): Merge with *avx_palignrti.
3752 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3754 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3755 * tree-ssanames.c (fini_ssanames): VEC_free it.
3756 (make_ssa_name_fn): Update for VECness of free_ssanames.
3757 (release_ssa_name, release_dead_ssa_names): Likewise.
3758 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3760 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3761 TS_TYPED instead of TS_COMMON.
3763 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3765 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3766 statistics_counter_event.
3767 * tree-ssa-copyrename.c (stats): Define.
3768 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3769 statistics_counter_event.
3770 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3771 (bswap_stats, widen_mul_stats): Define.
3772 (insert_reciprocals): Increment rdivs_inserted.
3773 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3774 rfuncs_inserted. Add calls to statistics_counter_event.
3775 (execute_cse_sincos_1): Increment inserted.
3776 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3777 statistics_counter_event.
3778 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3779 of bswap_stats. Add calls to statistics_counter_event.
3780 (convert_mult_to_widen): Increment widen_mults_inserted.
3781 (convert_plusminus_to_widen): Increment maccs_inserted.
3782 (convert_mult_to_fma): Increment fmas_inserted.
3783 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3784 calls to statistics_counter_event.
3786 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3788 PR rtl-optimization/48455
3789 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3790 `temp_costs->mem_cost'.
3792 2011-04-13 Jan Hubicka <jh@suse.cz>
3794 * ipa-inline.h: New file.
3795 * ipa-inline-analysis.c: New file. Broken out of ...
3796 * ipa-inline.c: ... this file; update toplevel comment;
3797 include ipa-inline.h
3798 (inline_summary): Move to ipa-inline.h
3799 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3800 ipa-inline-analysis.c.
3801 (cgraph_estimate_time_after_inlining): Rename to
3802 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3803 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3804 to estimate_edge_growth.
3805 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3806 rename to estimate_size_after_inlining.
3807 (cgraph_mark_inline_edge): Update for new naming convention.
3808 (cgraph_check_inline_limits): Likewise.
3809 (cgraph_edge_badness): Likewise.
3810 (cgraph_decide_recursive_inlining): Likewise.
3811 (cgraph_decide_inlining_of_small_functions): Likewise.
3812 (cgraph_decide_inlining_incrementally): Likewise.
3813 (cgraph_estimate_growth): Rename to estimate_growth; move to
3814 ipa-inline-analysis.c.
3815 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3816 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3817 (compute_inline_parameters): Likewise.
3818 (compute_inline_parameters_for_current): Likewise.
3819 (pass_inline_parameters): Likewise.
3820 (inline_indirect_intraprocedural_analysis): Likewise.
3821 (analyze_function): Rename to inline_analyze_function; likewise.
3822 (add_new_function): Move to ipa-inline-analysis.c.
3823 (inline_generate_summary): Likewise.
3824 (inline_read_summary): Likewise.
3825 (inline_write_summary): Likewise.
3826 * Makefile.in (ipa-inline-analysis.c): New file.
3828 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3830 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3831 * configure: Regenerate.
3833 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3835 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3836 instead of tree_common.
3837 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3839 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3840 TS_TYPED rather than TS_COMMON.
3841 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3843 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3846 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3847 r20 around calls of __tablejump_elpm__
3849 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3852 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3854 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3856 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3858 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3859 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3860 (cfi_vec): New typedef.
3861 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3862 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3863 (cie_cfi_vec): New static variable.
3864 (cie_cfi_head): Delete.
3865 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3866 declaration changed. Use vector rather than list operations.
3867 (new_cfi): Don't initialize the dw_cfi_next field.
3868 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3869 rather than list operations.
3870 (lookup_cfa): Use vector rather than list operations.
3871 (output_cfis): New argument upto. Accept a cfi_vec rather than
3872 a dw_cfi_ref list head as argument. All callers changed.
3873 Iterate over the vector using upto as a maximum index.
3874 (output_all_cfis): New static function.
3875 (output_fde): Use vector rather than list operations. Use the
3876 new upto argument for output_cfis rather than manipulating a
3878 (dwarf2out_begin_prologue): Change initializations to match
3880 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3881 from the vector length rather than searching for the end of a list.
3882 Use output_all_cfis.
3883 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3885 2011-04-13 Nick Clifton <nickc@redhat.com>
3887 * config/rx/rx.md (movmemsi): Do not use this pattern when
3888 volatile pointers are involved.
3890 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3892 * config/i386/sse.md (pinsrbits): Remove.
3893 (sse2_packsswb): Merge with *avx_packsswb.
3894 (sse2_packssdw): Merge with *avx_packssdw.
3895 (sse2_packuswb): Merge with *avx_packuswb.
3896 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3897 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3898 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3899 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3900 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3901 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3902 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3903 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3904 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3905 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3906 (sse2_loadld): Merge with *avx_loadld.
3907 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3908 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3909 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3910 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3911 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3913 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3915 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3917 * print-tree.c (print_node): Likewise.
3918 * tree-inline.c (copy_tree_r): Likewise.
3919 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3920 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3921 instead of TS_COMMON.
3922 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3923 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3924 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3925 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3926 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3928 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3930 (TREE_CHAIN): Check for a TS_COMMON structure.
3931 (TREE_TYPE): Check for a TS_TYPED structure.
3933 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3935 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3936 cgraph_get_create_node instead of cgraph_node.
3938 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3940 * c-parser.c (c_parser_initelt): Updated call to
3941 objc_build_message_expr.
3942 (c_parser_postfix_expression): Likewise.
3944 2011-04-12 Kai Tietz <ktietz@redhat.com>
3946 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3947 MASK_MS_BITFIELD_LAYOUT bit.
3949 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3951 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3952 assert it is always true.
3953 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3956 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3958 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3959 compiling Objective-C to be more efficient.
3961 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3963 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3966 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3968 * recog.h, genoutput.c, optabs.c: Revert last patch.
3970 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3973 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3975 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3977 * recog.h (insn_operand_data): Add an "allows_mem" field.
3978 * genoutput.c (output_operand_data): Initialize it.
3979 * optabs.c (maybe_legitimize_operand_same_code): New function.
3980 (maybe_legitimize_operand): Use it when matching the original
3983 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3985 * genpreds.c (process_define_predicate): Move most processing
3986 to gensupport.c. Continue to validate the expression.
3987 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3988 (process_define_predicate): Move processing to gensupport.c.
3989 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3990 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3991 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3993 (valid_predicate_name_p): New function, split out from old
3994 genpreds.c:process_define_predicate.
3995 (process_define_predicate): New function, combining code from
3996 old genpreds.c and genrecog.c functions.
3997 (process_rtx): Call it for DEFINE_PREDICATE and
3998 DEFINE_SPECIAL_PREDICATE.
4000 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4002 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4003 size of a '%A' memory reference.
4004 (T_DREG, T_QREG): New neon_builtin_type_bits.
4005 (arm_init_neon_builtins): Assert that the load and store operands
4006 are neon_struct_operands.
4007 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4008 (NEON_ARG_MEMORY): New builtin_arg.
4009 (neon_dereference_pointer): New function.
4010 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4011 Handle NEON_ARG_MEMORY.
4012 (arm_expand_neon_builtin): Update after above interface changes.
4013 Use NEON_ARG_MEMORY for loads and stores.
4014 * config/arm/predicates.md (neon_struct_operand): New predicate.
4015 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4016 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4017 (V_four_elem): Tweak formatting.
4018 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4019 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4020 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4021 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4022 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4023 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4024 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4025 Use %A in the output template.
4026 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4027 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4028 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4029 the width of the memory access. Remove post-increment.
4030 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4032 2011-04-12 Nick Clifton <nickc@redhat.com>
4034 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4035 instruction for interrupt handlers if the target is the basic V850
4037 (expand_epilogue): Likewise.
4039 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4041 PR rtl-optimization/48549
4042 * combine.c (propagate_for_debug): Also stop after BB_END of
4043 this_basic_block. Process LAST and just stop processing after it.
4044 (combine_instructions): If last_combined_insn has been deleted,
4045 set last_combined_insn to its PREV_INSN.
4047 2011-04-12 Richard Guenther <rguenther@suse.de>
4049 PR tree-optimization/46076
4050 * gimple.h (struct gimple_statement_call): Add fntype field.
4051 (gimple_call_fntype): Adjust.
4052 (gimple_call_set_fntype): New function.
4053 * gimple.c (gimple_build_call_1): Set the call function type.
4054 * gimplify.c (gimplify_call_expr): Preserve the function
4055 type the frontend used for the call.
4056 (gimplify_modify_expr): Likewise.
4057 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4059 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4061 * tree-ssa.c (useless_type_conversion_p): Function pointer
4062 conversions are useless.
4064 2011-04-12 Martin Jambor <mjambor@suse.cz>
4066 * cgraph.h (cgraph_node): Remove function declaration.
4067 (cgraph_create_node): Declare.
4068 (cgraph_get_create_node): Likewise.
4069 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4070 Updated all callers.
4071 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4072 the decl does not already exist. Call cgraph_get_create_node instead
4074 (cgraph_get_create_node): New function.
4075 (cgraph_same_body_alias): Update comment.
4076 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4077 assert it does not return NULL.
4078 (cgraph_update_edges_for_call_stmt): Likewise.
4079 (cgraph_clone_edge): Likewise.
4080 (cgraph_create_virtual_clone): Likewise.
4081 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4082 instead of cgraph_node.
4083 (cgraph_add_new_function): Call cgraph_create_node or
4084 cgraph_get_create_node instead of cgraph_node.
4085 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4086 instead of cgraph_node.
4087 (record_eh_tables): Likewise.
4088 (mark_address): Likewise.
4089 (mark_load): Likewise.
4090 (build_cgraph_edges): Call cgraph_get_create_node instead
4092 (rebuild_cgraph_edges): Likewise.
4093 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4094 instead of cgraph_node.
4095 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4097 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4098 cgraph_create_node instead of cgraph_node.
4099 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4101 * lto-cgraph.c (input_node): Likewise.
4102 * lto-streamer-in.c (input_function): Likewise.
4103 * varasm.c (mark_decl_referenced): Likewise.
4104 (assemble_alias): Likewise.
4106 2011-04-12 Martin Jambor <mjambor@suse.cz>
4108 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4109 instead of cgraph_node and assert it does not return NULL.
4110 * lto-streamer-in.c (lto_read_body): Likewise.
4111 * omp-low.c (new_omp_context): Likewise.
4112 (create_task_copyfn): Likewise.
4113 * tree-emutls.c (lower_emutls_function_body): Likewise.
4114 * matrix-reorg.c (transform_allocation_sites): Likewise.
4116 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4119 * c-typeck.c (build_asm_expr): Error out on attempts to use
4120 void type outputs or inputs for constraints that allow reg or
4123 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4124 Richard Earnshaw <rearnsha@arm.com>
4127 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4128 to use sign-magnitude offsets. Reject unsupported unaligned
4129 cases. Add detailed description in comments.
4130 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4131 condition from TARGET_32BIT to TARGET_ARM.
4133 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4135 * tree.h (struct typed_tree): New.
4136 (struct tree_common): Include it instead of tree_base.
4137 (TREE_TYPE): Update for new location of type field.
4138 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4139 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4140 (union tree_node): Add typed field.
4141 * treestruct.def (TS_TYPED): New.
4142 * lto-streamer.c (check_handled_ts_structures): Handle it.
4143 * tree.c (MARK_TS_TYPED): New macro.
4144 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4146 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4148 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4149 (force_nonfallthru): Do not alter the loop nest if no basic block
4152 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4154 * config/i386/sse.md (VI): New mode iterator.
4156 (AVX256MODEI): Ditto.
4157 (AVXMODEF4P): Ditto.
4158 (avxvecpsmode): Ditto.
4159 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4160 (sse2_andnot<mode>3): New expander.
4161 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4162 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4163 (<any_logic:code><mode>3): Use VI mode iterator.
4164 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4165 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4166 (*andnottf3): Handle AVX three-operand constraints.
4167 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4169 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4170 Robert Millan <rmh@gnu.org>
4172 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4173 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4174 GNU_USER_DYNAMIC_LINKER64): Define.
4175 (REG_NAME): Don't undefine.
4176 (MD_UNWIND_SUPPORT): Undefine.
4177 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4178 (REG_NAME): Don't undefine.
4179 (MD_UNWIND_SUPPORT): Undefine.
4180 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4182 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4184 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4185 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4187 2011-04-11 Xinliang David Li <davidxl@google.com>
4189 * value-profile.c (check_ic_target): New function.
4190 (gimple_ic_transform): Sanity check indirect call target.
4191 * gimple-low.c (gimple_check_call_args): Interface change.
4192 (gimple_check_call_matching_types): New function.
4193 * tree-inline.c (tree_can_inline_p): Call new function.
4195 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4197 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4198 tree-pretty-print.h & realmpfr.h.
4200 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4203 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4204 (setup_allocno_and_important_classes): Ditto.
4206 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4208 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4209 GNU_USER_DYNAMIC_LINKER.
4210 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4211 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4212 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4213 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4214 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4215 GNU_USER_TARGET_OS_CPP_BUILTINS.
4216 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4217 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4218 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4219 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4220 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4221 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4222 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4223 GNU_USER_TARGET_OS_CPP_BUILTINS.
4224 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4225 GNU_USER_DYNAMIC_LINKER.
4226 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4227 GNU_USER_TARGET_OS_CPP_BUILTINS.
4228 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4229 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4230 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4231 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4232 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4233 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4234 GNU_USER_DYNAMIC_LINKER64): Remove.
4235 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4236 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4237 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4238 GNU_USER_DYNAMIC_LINKER.
4239 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4240 GNU_USER_TARGET_OS_CPP_BUILTINS.
4241 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4242 GNU_USER_TARGET_OS_CPP_BUILTINS.
4243 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4244 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4245 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4246 GNU_USER_TARGET_OS_CPP_BUILTINS.
4247 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4248 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4249 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4250 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4251 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4252 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4253 GNU_USER_DYNAMIC_LINKER.
4254 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4255 GNU_USER_TARGET_OS_CPP_BUILTINS.
4256 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4257 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4258 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4259 GNU_USER_DYNAMIC_LINKER.
4260 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4261 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4262 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4263 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4264 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4265 GNU_USER_DYNAMIC_LINKER.
4266 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4267 GNU_USER_DYNAMIC_LINKERN32.
4268 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4269 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4270 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4271 GNU_USER_DYNAMIC_LINKER32.
4272 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4273 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4274 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4275 GNU_USER_DYNAMIC_LINKER.
4276 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4277 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4278 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4279 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4280 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4281 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4282 GNU_USER_DYNAMIC_LINKER32.
4283 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4284 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4285 GNU_USER_DYNAMIC_LINKER.
4286 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4287 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4288 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4289 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4290 GNU_USER_DYNAMIC_LINKER64.
4291 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4292 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4293 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4294 GNU_USER_DYNAMIC_LINKER.
4295 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4296 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4297 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4298 GNU_USER_DYNAMIC_LINKER.
4299 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4300 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4301 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4302 GNU_USER_DYNAMIC_LINKER32.
4303 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4304 GNU_USER_DYNAMIC_LINKER64.
4305 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4306 GNU_USER_DYNAMIC_LINKER64.
4307 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4308 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4309 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4310 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4311 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4313 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4315 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4316 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4317 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4318 GNU_USER_DYNAMIC_LINKER.
4319 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4320 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4321 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4322 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4323 GNU_USER_DYNAMIC_LINKER64.
4324 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4325 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4326 GNU_USER_LINK_EMULATION.
4327 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4328 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4329 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4330 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4331 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4332 CPP_SPEC, CC1_SPEC): Remove.
4333 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4334 (GNU_USER_DYNAMIC_LINKER): Define.
4335 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4336 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4337 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4338 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4339 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4340 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4341 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4342 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4343 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4344 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4345 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4346 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4347 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4348 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4349 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4350 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4351 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4352 GNU_USER_DYNAMIC_LINKER.
4353 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4354 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4355 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4356 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4357 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4358 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4359 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4360 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4361 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4362 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4364 2011-04-11 Kai Tietz <ktietz@redhat.com>
4368 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4369 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4371 (ix86_is_msabi_thiscall): Removed.
4372 (ix86_is_type_thiscall): Likewise.
4373 (ix86_get_callcvt): New function.
4374 (ix86_comp_type_attributes): Simplify check.
4375 (ix86_function_regparm): Use ix86_get_callcvt for calling
4376 convention attribute checks.
4377 (ix86_return_pops_args): Likewise.
4378 (ix86_static_chain): Likewise.
4379 (x86_this_parameter): Likewise.
4380 (x86_output_mi_thunk): Likewise.
4381 (ix86_function_type_abi): Optimize check for types without attributes.
4382 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4383 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4384 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4386 (IX86_BASE_CALLCVT): Helper macro.
4387 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4388 Use ix86_get_callcvt for calling convention attribute checks and avoid
4389 symbol-decoration for stdcall in TARGET_RTD case.
4390 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4392 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4395 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4397 * config/i386/sse.md (VI_128): New mode iterator.
4398 (VI12_128): Rename from SSEMODE12.
4399 (VI14_128): Rename from SSEMODE14.
4400 (VI124_128): New mode iterator.
4401 (VI24_128): Rename from SSEMODE248.
4402 (VI248_128): Rename from SSEMODE248.
4403 (SSEMODE124C8): Remove.
4404 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4405 (*sse2_<plusminus_insn><mode>3): Merge with
4406 *avx_<plusminus_insn><mode>3.
4407 (*mulv8hi3): Merge with *avx_mulv8hi3.
4408 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4409 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4410 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4411 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4412 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4413 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4414 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4415 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4416 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4417 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4418 (*<smaxmin:code>v8hi3): Ditto.
4419 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4420 (*<smaxmin:code>v16qi3): Ditto.
4421 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4422 (*sse2_eq<mode>3): Ditto.
4423 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4424 (*sse2_gt<mode>3): Ditto.
4425 (vcondv2di): Split out of vcond<mode>.
4426 (vconduv2di): Split out of vcondu<mode>.
4428 2011-04-11 Richard Guenther <rguenther@suse.de>
4430 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4431 before calling tree_low_cst.
4433 2011-04-11 Richard Guenther <rguenther@suse.de>
4435 * stor-layout.c (layout_type): Compute all array index size operations
4436 in the original type.
4437 (initialize_sizetypes): Add comment.
4438 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4440 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4442 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4444 2011-04-11 Martin Jambor <mjambor@suse.cz>
4446 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4447 of cgraph_node, handle NULL return value.
4448 (cgraph_global_info): Likewise.
4449 (cgraph_rtl_info): Likewise.
4450 * tree-inline.c (estimate_num_insns): Likewise.
4451 * gimplify.c (unshare_body): Likewise.
4452 (unvisit_body): Likewise.
4453 (gimplify_body): Likewise.
4454 * predict.c (optimize_function_for_size_p): Likewise.
4455 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4456 (call_may_clobber_ref_p_1): Likewise.
4457 * varasm.c (function_section_1): Likewise.
4458 (assemble_start_function): Likewise.
4460 2011-04-11 Martin Jambor <mjambor@suse.cz>
4462 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4464 * final.c (rest_of_clean_state): Likewise.
4465 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4466 * passes.c (pass_init_dump_file): Likewise.
4467 (execute_all_ipa_transforms): Likewise.
4468 (function_called_by_processed_nodes_p): Likewise.
4469 * predict.c (maybe_hot_frequency_p): Likewise.
4470 (probably_never_executed_bb_p): Likewise.
4471 (compute_function_frequency): Likewise.
4472 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4473 (unnest_nesting_tree_1): Likewise.
4474 (lower_nested_functions): Likewise.
4475 * tree-optimize.c (execute_fixup_cfg): Likewise.
4476 (tree_rest_of_compilation): Likewise.
4477 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4478 * tree-sra.c (ipa_early_sra): Likewise.
4479 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4480 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4481 * ipa.c (record_cdtor_fn): Likewise.
4482 * ipa-inline.c (cgraph_early_inlining): Likewise.
4483 (compute_inline_parameters_for_current): Likewise.
4484 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4485 * ipa-pure-const.c (local_pure_const): Likewise.
4486 * ipa-split.c (split_function): Likewise.
4487 (execute_split_functions): Likewise.
4488 * cgraphbuild.c (build_cgraph_edges): Likewise.
4489 (rebuild_cgraph_edges): Likewise.
4490 (cgraph_rebuild_references): Likewise.
4491 (remove_cgraph_callee_edges): Likewise.
4492 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4493 (verify_cgraph_node): Likewise.
4494 (cgraph_analyze_functions): Likewise.
4495 (cgraph_preserve_function_body_p): Likewise.
4496 (save_inline_function_body): Likewise.
4497 (save_inline_function_body): Likewise.
4498 * tree-inline.c (copy_bb): Likewise.
4499 (optimize_inline_calls): Likewise.
4501 2011-04-11 Martin Jambor <mjambor@suse.cz>
4503 PR tree-optimization/48195
4504 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4505 ipa_check_create_edge_args.
4506 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4507 ipa_check_create_edge_args.
4508 * ipa-inline.c (inline_generate_summary): Do not call
4509 ipa_check_create_node_params and ipa_check_create_edge_args.
4510 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4511 ipa_check_create_edge_args.
4513 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4515 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4517 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4518 * function.c (record_hard_reg_sets): Likewise.
4519 * ira.c (compute_regs_asm_clobbered): Likewise.
4520 * sched-deps.c (sched_analyze_1): Likewise.
4521 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4523 2011-04-09 Xinliang David Li <davidxl@google.com>
4525 PR tree-optimization/PR48484
4526 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4527 has_valid_pred lazily
4529 2011-04-09 Duncan Sands <baldrick@free.fr>
4531 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4533 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4535 * combine.c (combine_validate_cost): Adjust comments. Set registered
4536 cost of I0 to zero at the end, if any.
4538 2011-04-08 Xinliang David Li <davidxl@google.com>
4540 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4541 to insane profile data.
4543 2011-04-08 Xinliang David Li <davidxl@google.com>
4545 * ipa-cp.c (ipcp_update_profiling): Correct
4546 negative scale factor due to insane profile data.
4548 2011-04-08 Xinliang David Li <davidxl@google.com>
4550 * final.c (dump_basic_block_info): New function.
4551 (final): Dump basic block.
4552 (final_scan_insn): Remove old dump.
4554 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4557 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4560 2011-04-08 Michael Matz <matz@suse.de>
4563 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4565 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4566 * rtl.h (rebuild_jump_labels_chain): Declare.
4567 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4568 insns inserted on edges.
4570 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4572 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4573 * config/arm/arm-arches.def: New.
4574 * config/arm/arm-opts.h: New.
4575 * config/arm/genopt.sh: New.
4576 * config/arm/arm-tables.opt: New (generated).
4577 * config/arm/arm.c (arm_handle_option, arm_target_help,
4578 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4579 (all_architectures): Get most table contents from arm-arches.def.
4580 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4581 arm_selected_tune here.
4582 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4583 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4584 (march=, mcpu=, mtune=): Use Enum and Var.
4585 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4586 (arm.o): Update dependencies.
4588 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4590 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4592 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4593 (write_typed_alloc_defns): Likewise.
4594 (main): Calls write_typed_alloc_defns with output_header.
4596 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4599 * ira-color.c (setup_profitable_hard_regs): Add comments.
4600 Don't take prohibited hard regs into account.
4601 (setup_conflict_profitable_regs): Rename to
4602 get_conflict_profitable_regs.
4603 (check_hard_reg_p): Check prohibited hard regs.
4605 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4607 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4608 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4609 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4611 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4614 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4615 move from floating point to shift amount register.
4616 (emit_move_sequence): Remove secondary reload support for floating
4617 point to shift amount amount register copies.
4618 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4619 amount register copies.
4620 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4621 register, return false if mode isn't a scalar integer mode.
4622 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4624 2011-04-08 Richard Guenther <rguenther@suse.de>
4626 * gimple.c (gimple_call_flags): Remove kludge.
4628 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4630 * sel-sched.c (sel_region_init): Move call to
4631 sel_setup_region_sched_flags after setup_current_loop_nest.
4633 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4635 PR rtl-optimization/48272
4636 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4637 init_insn_reg_pressure_info. Adjust a caller.
4638 * sched-int.h (init_insn_reg_pressure_info): Declare.
4639 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4640 when sched-pressure is enabled.
4642 2011-04-08 Richard Guenther <rguenther@suse.de>
4644 * gimple.c (gimple_set_modified): Do not queue calls to
4645 MODIFIED_NORETURN_CALLS here ...
4646 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4648 2011-04-08 Richard Guenther <rguenther@suse.de>
4651 * toplev.c (lang_dependent_init): Do not open asm_out_file
4652 in WPA mode, nor perform debug machinery initialization.
4653 (finalize): Do not unlink asm_out_file in WPA mode.
4655 2011-04-08 Richard Guenther <rguenther@suse.de>
4657 * gimple.h (gimple_call_fntype): New function.
4658 (gimple_call_return_type): Use it.
4659 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4660 * gimple-low.c (gimple_check_call_args): Likewise.
4661 * gimple.c (gimple_call_flags): Likewise.
4662 (gimple_call_arg_flags): Likewise.
4663 (gimple_call_return_flags): Likewise.
4664 * tree-cfg.c (verify_gimple_call): Likewise.
4665 (do_warn_unused_result): Likewise.
4666 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4667 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4669 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4671 PR rtl-optimization/48235
4672 * sel-sched.c (code_motion_process_successors): Recompute the last
4673 insn in basic block if control flow changed.
4674 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4675 Update condition for ilist_remove.
4677 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4679 PR rtl-optimization/48302
4680 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4681 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4682 it to record added preheader blocks.
4683 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4684 on to sel_add_loop_preheaders.
4685 (sel_region_init): Move call to setup_current_loop_nest after
4688 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4691 * cfgloop.h (loop_has_exit_edges): New helper.
4692 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4694 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4695 that have no exit edges.
4697 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4699 PR rtl-optimization/48442
4700 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4701 all callers. Adjust assert.
4703 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4705 PR tree-optimization/48377
4706 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4707 is_packed to true even for types with smaller TYPE_ALIGN than
4710 2011-04-08 Richard Guenther <rguenther@suse.de>
4713 * doc/tm.texi: Re-generate.
4715 2011-04-08 Wei Guozhi <carrot@google.com>
4718 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4719 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4720 * config/arm/arm.md (*push_multi): Change the length computation to
4723 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4725 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4726 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4727 * doc/tm.texi: Regenerate.
4728 * system.h (ASM_OUTPUT_BSS): Poison.
4729 * varasm.c (asm_output_bss): Remove function.
4730 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4732 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4733 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4734 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4735 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4737 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4739 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4741 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4743 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4745 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4748 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4750 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4751 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4752 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4754 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4755 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4756 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4757 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4758 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4759 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4760 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4761 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4762 options. Don't map other m68k options manually. Don't handle
4763 old-style options as canonical.
4764 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4765 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4767 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4769 * basic-block.h (force_nonfallthru): Move to...
4770 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4771 (force_nonfallthru): ...here.
4772 * cfghooks.c (force_nonfallthru): New function.
4773 * cfgrtl.c (force_nonfallthru): Rename into...
4774 (rtl_force_nonfallthru): ...this.
4775 (commit_one_edge_insertion): Do not set AUX field.
4776 (commit_edge_insertions): Do not discover new basic blocks.
4777 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4778 (cfg_layout_rtl_cfg_hooks): Likewise.
4779 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4780 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4781 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4783 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4785 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4788 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4790 * config/i386/sse.md: Update copyright year.
4791 (avxcvtvecmode): Remove.
4792 (sse_movhlps): Merge with *avx_movhlps.
4793 (sse_movlhps): Merge with *avx_movlhps.
4794 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4795 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4796 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4797 (sse_loadhps): Merge with *avx_loadhps.
4798 (sse_storelps): Merge with *avx_storelps.
4799 (sse_loadlps): Merge with *avx_loadlps.
4800 (sse_movss): Merge with *avx_movss.
4801 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4802 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4803 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4804 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4805 (vec_set<mode>_0): Ditto.
4806 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4807 (sse4_1_insertps): Merge with *avx_insertps.
4808 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4809 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4810 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4811 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4812 (sse2_storehpd): Merge with *avx_storehpd.
4813 (sse2_loadhpd): Merge with *avx_loadhpd.
4814 (sse2_loadlpd): Merge with *avx_loadlpd.
4815 (sse2_movsd): Merge with *avx_movsd.
4816 (*vec_concatv2df): Merge with *vec_concatv2df.
4818 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4821 * combine.c (combine_instructions): Add last_combined_insn,
4822 update it if insn is after it, pass it to all try_combine calls.
4823 (try_combine): Add last_combined_insn parameter, pass it instead of
4824 i3 to propagate_for_debug.
4826 2011-04-07 Nick Clifton <nickc@redhat.com>
4828 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4829 to handle MDR <-> data register transfers.
4830 (movhi_internal): Likewise.
4832 2011-04-07 Alan Modra <amodra@gmail.com>
4834 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4835 previous stack info.
4837 2011-04-07 Tom de Vries <tom@codesourcery.com>
4840 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4841 flow_find_cross_jump. Swap variables to implement backward replacement.
4842 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4844 2011-04-07 Tom de Vries <tom@codesourcery.com>
4847 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4848 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4850 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4851 src1 or src2. Redirect edges to the last basic block. Update
4852 frequency and count on multiple basic blocks in case of fallthru.
4854 2011-04-07 Tom de Vries <tom@codesourcery.com>
4857 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4859 (old_insns_match_p): Change return type. Replace return false/true
4860 with return dir_none/dir_both. Use can_replace_by.
4861 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4862 direction from dir_p. Register replacement direction in dir, last_dir
4863 and afterlast_dir. Handle new return type of old_insns_match_p using
4864 merge_dir. Return replacement direction in dir_p.
4865 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4866 return type of old_insns_match_p.
4867 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4868 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4869 flow_find_cross_jump.
4870 * basic-block.h (enum replace_direction): New type.
4871 (flow_find_cross_jump): Add parameter to declaration.
4873 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4875 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4876 (AVXMODEDCVTPS2DQ): Ditto.
4877 (VEC_FLOAT_MODE): Ditto.
4878 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4879 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4880 (<any_logic:code><mode>3): Use VF mode iterator.
4881 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4882 Use VF mode iterator.
4883 (copysign<mode>3): Use VF mode iterator.
4884 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4885 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4886 (*<any_logic:code><MODEF:mode>3): Merge with
4887 *avx_<any_logic:code><MODEF:mode>3.
4888 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4889 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4890 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4891 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4892 (sse2_cvtdq2ps): Use %v modifier.
4893 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4894 (avx_cvtps2dq<avxmodesuffix>): Remove.
4895 (sse2_cvtps2dq): Use %v modifier.
4896 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4897 (avx_cvttps2dq<avxmodesuffix>): Remove.
4898 (sse2_cvttps2dq): Use %v modifier.
4899 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4900 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4901 (sse2_cvtsd2siq): Fix insn template.
4902 (sse2_cvtsd2siq_2): Ditto.
4903 (sse2_cvttsd2siq): Ditto.
4904 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4905 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4907 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4909 * gcov-io.c: Use GCC Runtime Library Exception.
4911 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4914 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4915 as base_reg whatever register reg has been eliminated to, instead
4916 of hardcoding STACK_POINTER_REGNUM.
4918 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4920 * doc/tm.texi.in: Document C target hooks as separate from general
4922 * doc/tm.texi: Regenerate.
4923 * genhooks.c (struct hook_desc): Add docname field.
4924 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4926 (hook_array): Include c-target.def.
4927 (emit_documentation): Use docname field in output.
4928 (emit_init_macros): Take docname argument. Only emit definitions
4929 for hooks matching docname.
4930 (main): Expect additional arguments in all cases. Pass argument
4931 to emit_init_macros.
4932 * target.def: Move initial macro definitions and comments to
4933 target-hooks-macros.h.
4934 (gcc_targetcm): Move to c-family/c-target.def.
4935 * target.h (targetcm): Move declaration to c-family/c-target.h.
4936 * targhooks.c (default_handle_c_option): Move to
4938 * targhooks.h (default_handle_c_option): Move declaration to
4939 c-family/c-common.h.
4940 * target-hooks-macros.h: New file.
4941 * config.gcc (target_has_targetcm): Define and use to add to
4942 c_target_objs and cxx_target_objs.
4943 * config/default-c.c: New file.
4944 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4945 of target.h and target-def.h.
4946 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4947 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4948 darwin_check_cfstring_format_arg): Make static.
4949 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4950 TARGET_STRING_OBJECT_REF_TYPE_P,
4951 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4952 * config/darwin-protos.h (darwin_objc_construct_string,
4953 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4955 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4956 TARGET_STRING_OBJECT_REF_TYPE_P,
4957 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4958 * config/t-darwin (darwin-c.o): Update dependencies.
4959 * system.h (TARGET_HAS_TARGETCM): Poison.
4960 * Makefile.in (TARGET_H): Update.
4961 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4962 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4963 (default-c.o): New target.
4964 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4965 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4966 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4968 (build/genhooks.o): Update dependencies.
4970 2011-04-06 Richard Guenther <rguenther@suse.de>
4972 * ipa-inline.c (enum inlining_mode): Remove.
4973 (cgraph_flatten): Use some other token.
4974 (cgraph_edge_early_inlinable_p): New function, split out from ...
4975 (cgraph_perform_always_inlining): New function, split out from ...
4976 (cgraph_decide_inlining_incrementally): ... here.
4977 (cgraph_mark_inline_edge): Adjust.
4978 (cgraph_early_inlining): Re-structure.
4979 (pass_early_inline): Require SSA form.
4981 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4982 Julian Brown <julian@codesourcery.com>
4983 Mark Shinwell <shinwell@codesourcery.com>
4985 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4986 LO_REGS only for Thumb-1.
4987 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4988 be used in short instructions when optimising for size on Thumb-2.
4990 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4992 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4993 associated with user returns to be preserved.
4995 2011-04-06 Tristan Gingold <gingold@adacore.com>
4997 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4998 symbol_queue_size, DBXOUT_DECR_NESTING,
4999 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5000 if XCOFF_DEBUGGING_INFO.
5002 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5004 * config/i386/i386.md (attribute isa): New.
5005 (attribute enabled): New.
5006 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5007 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5008 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5009 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5010 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5011 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5012 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5013 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5015 * config/i386/sse.md (VF): New mode iterator.
5019 (SSEMODEF4): Remove.
5020 (attribute sse): Handle V8SF and V4DF modes.
5021 (<absneg:code><mode>2): Use VF mode iterator.
5022 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5024 (<plusminus_insn><mode>3): Use VF mode iterator.
5025 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5026 Use VF mode iterator.
5027 (<sse>_vm<plusminus_insn><mode>3): Merge with
5028 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5029 (mul<mode>3): Use VF mode iterator.
5030 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5031 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5033 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5034 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5035 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5036 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5038 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5039 Use VF1 mode iterator.
5040 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5041 (sqrt<VF2:mode>2): New expander.
5042 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5043 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5044 and sqrtv2df2. Use VF mode iterator.
5045 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5047 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5048 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5049 Use VF1 mode iterator.
5050 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5051 (<smaxmin:code><mode>3): Use VF mode iterator.
5052 (*<smaxmin:code><mode>3_finite): Merge with
5053 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5054 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5055 (<sse>_vm<smaxmin:code><mode>2): Merge with
5056 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5057 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5059 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5061 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5062 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5063 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5064 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5065 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5067 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5068 Use VF_128 mode iterator.
5069 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5071 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5072 VF_128 mode iterator.
5073 (vcond<mode>): Use VF mode iterator.
5074 * config/i386/predicates.md (sse_comparison_operator): Merge with
5075 avx_comparison_float_operator. Do not declare as special_predicate.
5076 * config/i386/i386.c (struct builtin_description): Update for renamed
5078 (ix86_expand_args_builtin): Ditto.
5079 (ix86_expand_sse_compare_mask): Ditto.
5081 2011-04-06 Richard Guenther <rguenther@suse.de>
5083 * tree-inline.c (estimate_num_insns): For calls simply account
5084 for all passed arguments and a used return value.
5086 2011-04-06 Richard Guenther <rguenther@suse.de>
5088 PR tree-optimization/47663
5089 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5090 call_stmt_time fields.
5091 (cgraph_edge_inlinable_p): Declare.
5092 (cgraph_edge_recursive_p): New inline function.
5093 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5094 (cgraph_clone_edge): Copy it.
5095 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5096 Account for call stmt time.
5097 (cgraph_estimate_time_after_inlining): Take edge argument.
5098 (cgraph_estimate_edge_growth): Account call stmt size.
5099 (cgraph_estimate_size_after_inlining): Take edge argument.
5100 (cgraph_mark_inline_edge): Adjust.
5101 (cgraph_check_inline_limits): Likewise.
5102 (cgraph_recursive_inlining_p): Remove.
5103 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5104 (cgraph_decide_recursive_inlining): Take edge argument and
5106 (cgraph_decide_inlining_of_small_functions): Do not avoid
5107 diags for recursive inlining here.
5108 (cgraph_flatten): Adjust.
5109 (cgraph_decide_inlining_incrementally): Likewise.
5110 (estimate_function_body_sizes): Remove call cost handling.
5111 (compute_inline_parameters): Initialize caller edge call costs.
5112 (cgraph_estimate_edge_growth): New function.
5113 (cgraph_estimate_growth): Use it.
5114 (cgraph_edge_badness): Likewise.
5115 (cgraph_check_inline_limits): Take an edge argument.
5116 (cgraph_decide_inlining_of_small_functions): Adjust.
5117 (cgraph_decide_inlining): Likewise.
5118 * tree-inline.c (estimate_num_insns): Only account for call
5119 return value if it is used.
5120 (expand_call_inline): Avoid diagnostics on recursive inline
5122 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5123 (input_edge): Input edge call costs.
5125 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5127 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5129 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5131 * doc/invoke.texi (Spec Files): Fix typo.
5133 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5135 * profile.c (branch_prob): Move declaration of local variable. Remove
5136 obsolete ??? comment. Expand the location explicitly instead of using
5137 the LOCATION_FILE and LOCATION_LINE macros.
5139 2011-04-06 Wei Guozhi <carrot@google.com>
5142 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5143 (arm_cond_branch): Likewise.
5144 (arm_cond_branch_reversed): Likewise.
5145 (arm_jump): Likewise.
5146 (push_multi): Likewise.
5147 * config/arm/constraints.md (Py): New constraint.
5149 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5152 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5154 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5155 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5156 #ifdef DBX_DEBUGGING_INFO.
5158 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5161 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5162 if old and new states differ.
5164 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5166 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5167 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5168 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5169 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5170 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5172 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5173 ColdFire options to -mcpu= options.
5175 2011-04-05 Jeff Law <law@redhat.com>
5177 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5178 check if BB is a successor of LOOP->header and return
5179 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5181 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5183 * cprop.c (struct reg_use): Remove.
5184 (reg_use_table): Make an array of RTX.
5185 (find_used_regs, constprop_register, local_cprop_pass,
5186 bypass_block): Simplify users of reg_use_table.
5187 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5188 on one of the uses found by find_used_regs.
5190 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5193 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5196 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5198 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5200 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5202 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5205 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5207 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5209 * combine.c: Include obstack.h.
5210 (struct insn_link): Define.
5211 (uid_log_links): Adjust type.
5212 (FOR_EACH_LOG_LINK): New macro.
5213 (insn_link_obstack): Declare.
5214 (alloc_insn_link): Define.
5215 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5216 type of link variables.
5217 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5218 (try_combine, record_promoted_values, distribute_notes): Likewise.
5219 (distribute_links): Likewise. Tweak prototype.
5220 (clear_log_links): Delete.
5221 (adjust_for_new_dest): Call alloc_insn_link.
5222 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5224 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5226 * gcse.c (modify_mem_list): Convert to an array of VECs.
5227 (canon_modify_mem_list, compute_transp): Tweak formatting.
5228 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5229 (load_killed_in_block_p): Likewise.
5230 (record_last_mem_set_info): Likewise.
5231 (clear_modify_mem_tables): Likewise.
5233 2011-04-05 Tom de Vries <tom@codesourcery.com>
5236 * function.c (emit_use_return_register_into_block): Only define if
5239 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5241 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5243 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5245 * config/rx/rx-opts.h: New.
5246 * config/rx/rx.c (rx_cpu_type): Remove.
5247 (rx_handle_option): Don't assert that global structures are in
5248 use. Access variables via opts pointer. Defer most handling of
5249 OPT_mint_register_. Use error_at.
5250 (rx_option_override): Handle deferred OPT_mint_register_ here.
5251 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5252 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5253 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5254 (rx_cpu_types): New Enum and EnumValue entries.
5255 (mint-register=): Use Defer and use Var accordingly.
5257 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5259 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5260 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5261 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5263 (debug_free_queue, debug_nesting, symbol_queue_index):
5265 * dbxout.c: ...to here. Make static.
5267 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5269 * gcse.c (modify_pair): Define. Define a VEC of it.
5270 (canon_modify_mem_list): Convert to an array of VECs.
5271 (free_insn_expr_list_list): Delete.
5272 (clear_modify_mem_tables): Call VEC_free instead.
5273 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5274 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5275 (canon_list_insert, compute_transp): Likewise.
5277 2011-04-05 Tom de Vries <tom@codesourcery.com>
5280 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5283 2011-04-05 Tom de Vries <tom@codesourcery.com>
5286 * function.c (emit_use_return_register_into_block): New function.
5287 (thread_prologue_and_epilogue_insns): Use
5288 emit_use_return_register_into_block.
5290 2011-04-05 Tom de Vries <tom@codesourcery.com>
5293 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5296 2011-04-05 Tom de Vries <tom@codesourcery.com>
5298 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5300 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5302 * config/arm/arm.md (define_constants for unspec): Replace with
5304 (define_constants for unspecv): Replace with define_c_enum.
5305 * config/arm/neon.md (define_constants for unspec): Replace with
5308 2011-04-04 Richard Henderson <rth@redhat.com>
5311 * dwarf2out.c (output_line_info): Always emit line info from
5312 at least one section.
5313 (dwarf2out_init): Create text_section_line_info here ...
5314 (set_cur_line_info_table): ... not here.
5316 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5319 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5322 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5324 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5326 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5327 (expr_equiv_p): Remove.
5328 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5329 (hash_scan_set): Update call to insert_set_in_table.
5330 (dump_hash_table): Dump <dest, src> pair.
5331 (lookup_set): Simplify. Lookup <dest, src> pair.
5332 (compute_transp): Remove, fold heavily simplified code into...
5333 (compute_local_properties): ...here. Expect COMP and TRANSP
5335 (find_avail_set): Take set directly from struct expr.
5336 (find_bypass-set): Likewise.
5337 (bypass_block): Likewise.
5338 (cprop_insn): Likewise. Remove redundant INSN_P test.
5340 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5341 checks on form of COND from find_implicit_sets to here.
5342 (find_implicit_sets): Cleanup control flow. Split critical edges
5343 if it exposes implicit sets. Allocate/resize implicit_sets as
5345 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5346 changed something. Run df_analyze after find_implicit_sets if any
5347 edges were split. Do not allocate implicit_sets here.
5349 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5350 (gcse_obstack): Renamed to cprop_obstack.
5351 (GNEW, GNEWVEC, GNEWVAR): Remove.
5353 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5354 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5355 (gcse_alloc): Likewise, and rename to cprop_alloc.
5356 (alloc_gcse_men, free_gcse_mem): Remove.
5357 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5358 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5359 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5361 * cprop.c (oprs_not_set_p): Remove.
5362 (mark_set, mark_clobber): Remove.
5363 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5364 (reg_not_set_p): New function.
5365 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5366 (cprop_insn): Likewise.
5367 (cprop_jump): Use FOR_EACH_EDGE.
5369 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5372 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5373 (rank_for_schedule): Use scheduled_insns vector instead of
5374 last_scheduled_insn.
5375 (ok_for_early_queue_removal): Likewise.
5376 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5378 (choose_ready): Likewise.
5379 (commit_schedule): Use VEC_iterate.
5380 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5381 a dbg_cnt, use it and ensure the first insn is in the ready list.
5382 (haifa_sched_init): Allocate scheduled_insns.
5383 (sched_extend_ready_list): Don't allocate it; reserve space.
5384 (haifa_sched_finish): Free it.
5386 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5388 * optc-gen.awk: Always remove type from Variable entry before
5389 recording in var_seen.
5391 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5393 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5394 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5395 call to tidy_fallthru_edges.
5397 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5399 * doc/options.texi (ToLower): Document.
5400 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5401 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5402 * opts.h (cl_option): Add cl_tolower field.
5403 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5404 arguments with lowercase strings.
5405 * config/rx/rx.opt (mcpu=): Add ToLower.
5406 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5409 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5411 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5413 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5415 * config/vax/vax.c: Include reload.h.
5417 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5419 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5420 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5421 (sparc_preferred_reload_class): New function.
5423 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5426 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5427 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5429 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5431 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5432 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5434 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5436 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5437 (ASM_OUTPUT_ALIGNED_BSS): Define.
5439 2011-04-03 Michael Matz <matz@suse.de>
5441 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5442 and next_slot members.
5443 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5444 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5445 (lto_streamer_cache_append): Declare.
5446 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5447 unsigned index, remove offset parameter, ensure that we append
5448 or update existing entries.
5449 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5450 parameter, update next_slot for append.
5451 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5453 (lto_streamer_cache_insert_at): Likewise.
5454 (lto_streamer_cache_append): New function.
5455 (lto_streamer_cache_lookup): Use unsigned index.
5456 (lto_streamer_cache_get): Likewise.
5457 (lto_record_common_node): Don't test tree_node_can_be_shared.
5458 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5459 (lto_streamer_cache_delete): Don't free offsets member.
5460 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5461 (lto_output_string_with_length): Use lto_output_data_stream.
5462 (lto_output_tree_header): Remove ix parameter, don't write it.
5463 (lto_output_builtin_tree): Likewise.
5464 (lto_write_tree): Adjust callers to above, don't track and write
5465 offset, write unsigned index.
5466 (output_unreferenced_globals): Don't emit all global vars.
5467 (write_global_references): Use unsigned indices.
5468 (lto_output_decl_state_refs): Likewise.
5469 (write_symbol): Likewise.
5470 * lto-streamer-in.c (lto_input_chain): Move earlier.
5471 (input_function): Use unsigned index.
5472 (input_alias_pairs): Don't read and then ignore all global vars.
5473 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5474 don't pass it back, use lto_streamer_cache_append.
5475 (lto_register_var_decl_in_symtab): Use unsigned index.
5476 (lto_register_function_decl_in_symtab): Likewise.
5477 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5479 (lto_get_builtin_tree): Don't read index, use
5480 lto_streamer_cache_append.
5481 (lto_read_tree): Adjust call to lto_materialize_tree.
5483 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5484 don't use function calls in arguments to MIN.
5486 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5489 * gimple.c (gimple_type_leader_entry): Mark deletable.
5491 2011-04-03 Alan Modra <amodra@gmail.com>
5493 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5495 2011-04-03 Michael Matz <matz@suse.de>
5497 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5499 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5501 2011-04-03 Michael Matz <matz@suse.de>
5503 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5504 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5505 without function context.
5506 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5507 current_function_decl and cfun.
5509 2011-04-03 Michael Matz <matz@suse.de>
5511 * tree.c (decl_init_priority_insert): Don't create entry for
5513 (decl_fini_priority_insert): Ditto.
5514 (fields_compatible_p, find_compatible_field): Remove.
5515 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5516 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5518 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5520 * combine.c (try_combine): Remove useless local variable.
5522 2011-04-03 Richard Guenther <rguenther@suse.de>
5523 Ira Rosen <ira.rosen@linaro.org>
5525 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5526 non-variable offsets and compare the remaining bases of the two
5527 accesses instead of looking for exact same data-ref.
5529 2011-04-02 Kai Tietz <ktietz@redhat.com>
5532 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5534 * i386.c (ix86_is_msabi_thiscall): New helper function.
5535 (ix86_is_type_thiscall): New helper function.
5536 (ix86_comp_type_attributes): Handle thiscall for method-functions
5538 (init_cumulative_args): Likewise.
5539 (find_drap_reg): Likewise.
5540 (ix86_static_chain): Likewise.
5541 (x86_this_parameter): Likewise.
5542 (x86_output_mi_thunk): Likewise.
5544 2011-04-01 Olivier Hainque <hainque@adacore.com>
5545 Nicolas Setton <setton@adacore.com>
5546 Eric Botcazou <ebotcazou@adacore.com>
5548 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5549 (add_gnat_descriptive_type_attribute): New function.
5550 (gen_array_type_die): Call it.
5551 (gen_enumeration_type_die): Likewise.
5552 (gen_struct_or_union_type_die): Likewise.
5553 (modified_type_die): Likewise.
5554 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5555 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5556 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5558 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5561 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5562 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5565 2011-03-17 Richard Guenther <rguenther@suse.de>
5568 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5569 origin for decls in other ltrans units.
5570 (input_varpool_node): Likewise.
5572 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5575 * expr.c (expand_assignment): Handle all possibilities
5576 if TO_RTX is CONCAT.
5577 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5578 (store_split_bit_field): If SUBREG_REG (op0) or
5579 op0 itself has smaller mode than word, return it
5580 for offset 0 and const0_rtx for out-of-bounds stores.
5581 If word is const0_rtx, skip it.
5583 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5585 * config/h8300/h8300.c (print_operand_address): Rename to...
5586 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5587 Call h8300_print_operand and h8300_print_operand_address instead of
5588 print_operand and print_operand_address. Declare.
5589 (print_operand): Renake to...
5590 (h8300_print_operand): ...this. Make static. Adjust comments.
5591 Call h8300_print_operand instead of print_operand. Declare.
5592 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5593 (h8300_register_move_cost): Likewise.
5594 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5595 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5596 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5597 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5598 * config/h8300/h8300-protos.h (print_operand): Delete.
5599 (print_operand_address): Delete.
5601 2011-04-01 Richard Henderson <rth@redhat.com>
5604 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5605 in strict mode before dwarf4. Re-order tests to early out
5606 before switching sections.
5608 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5610 * config/h8300/constraints.md: New file.
5611 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5612 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5613 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5614 * config/h8300/predicates.md (bit_operand): Likewise.
5615 (incdec_operand): Use satisfies_constraint_M and
5616 satisfies_constraint_O. Don't use C code block.
5617 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5618 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5619 (compute_mov_length): Use satisfies_constraint_G.
5620 (fix_bit_operand): Use satisfies_constraint_U.
5621 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5622 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5623 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5624 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5625 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5626 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5627 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5628 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5629 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5630 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5631 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5632 (EXTRA_MEMORY_CONSTRAINT): Delete.
5634 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5635 Michael Meissner <meissner@linux.vnet.ibm.com>
5638 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5639 operands, as per the specifications.
5641 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5642 (vec_extract_evenv4sf): Ditto.
5643 (vec_extract_evenv8hi): Ditto.
5644 (vec_extract_evenv16qi): Ditto.
5645 (vec_extract_oddv4si): Ditto.
5647 2011-03-31 Mark Wielaard <mjw@redhat.com>
5649 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5650 high_pc attribute if the CU has no associated code. Only output
5651 DW_AT_entry_pc for CU if not generating strict dwarf and
5654 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5656 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5657 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5659 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5660 * final.c (final_start_function): Call the new function rather
5661 than using a NULL argument for dwarf2out_frame_debug.
5663 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5664 that contains the prologue.
5666 * haifa-sched.c (queue_insn): New arg REASON. All callers
5667 changed. Print it in debugging output.
5669 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5671 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5672 Split most of the code into...
5673 (begin_move_insn): ... here. New function.
5674 (ebb_sched_info): Add a pointer to it.
5675 * haifa-sched.c (scheduled_insns): New static variable.
5676 (sched_extend_ready_list): Allocate it.
5677 (schedule_block): Use it to record the order of scheduled insns.
5678 Perform RTL changes to move insns only after all scheduling
5679 decisions have been made.
5680 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5681 begin_move_insn field.
5682 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5683 * sched-int.h (struct haifa_sched_info): Remove second argument
5684 from begin_schedule_ready hook. Add new member begin_move_insn.
5685 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5686 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5688 * haifa-sched.c (prune_ready_list): New function, broken out of
5690 (schedule_block): Use it.
5692 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5694 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5696 2011-04-01 Kai Tietz <ktietz@redhat.com>
5698 * config.gcc (*-*-mingw*): Allow as option the
5699 posix threading model.
5700 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5701 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5703 (CPP_SPEC): Add pthread/no-pthread handling.
5704 (LIB_SPEC): Likewise.
5705 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5706 (LIB_SPEC): Likewise.
5707 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5708 flag to pass -pthread option for shared libgcc build.
5709 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5710 for shared libgcc build.
5711 * config/i386/t-mingw-pthread: New file.
5712 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5713 New define to enable use of library pthread by default.
5714 * config/i386/mingw.opt (pthread): New driver option.
5715 (no-pthread): New driver option.
5716 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5717 * config/i386/mingw-w64.opt: Likewise.
5719 2011-04-01 Gary Funck <gary@intrepid.com>
5721 * c-decl.c (grokdeclarator): Fix formatting.
5723 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5725 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5726 instead of n_operands.
5727 (set_storage_via_setmem): Likewise.
5728 * optabs.c (maybe_gen_insn): Likewise.
5729 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5730 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5731 (mips_expand_builtin_direct): Likewise.
5732 * config/spu/spu.c (expand_builtin_args): Likewise.
5734 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5736 * recog.h (insn_data_d): Add n_generator_args.
5737 * genoutput.c (data): Likewise.
5738 (output_insn_data): Print it.
5739 (max_opno, num_dups): Delete.
5740 (scan_operands): Just fill in "d->operand[...]".
5741 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5743 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5745 * gensupport.h (pattern_stats): New structure.
5746 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5747 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5748 (max_operand_1, max_operand_vec): Delete.
5749 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5751 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5753 * emit-rtl.c (emit_pattern_after_setloc): New function.
5754 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5755 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5756 (emit_pattern_after): New function.
5757 (emit_insn_after, emit_jump_insn_after): Call it.
5758 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5759 (emit_pattern_before_setloc): New function.
5760 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5761 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5763 (emit_pattern_before): New function.
5764 (emit_insn_before, emit_jump_insn_before): Call it.
5765 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5767 2011-03-31 Richard Henderson <rth@redhat.com>
5769 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5770 (dw_separate_line_info_entry): Remove.
5771 (enum dw_line_info_opcode): New.
5772 (dw_line_info_entry): Use it.
5773 (dw_line_info_table, dw_line_info_table_p): New.
5774 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5775 (line_info_table, line_info_label_num): Remove.
5776 (line_info_table_in_use): Remove.
5777 (separate_line_info_table): Remove.
5778 (separate_line_info_table_allocated): Remove.
5779 (separate_line_info_table_in_use): Remove.
5780 (LINE_INFO_TABLE_INCREMENT): Remove.
5781 (line_info_label_num): New.
5782 (cur_line_info_table): New.
5783 (text_section_line_info, cold_text_section_line_info): New.
5784 (separate_line_info): New.
5785 (SEPARATE_LINE_CODE_LABEL): Remove.
5786 (print_dwarf_line_table): Remove.
5787 (debug_dwarf): Don't dump it.
5788 (output_one_line_info_table): New.
5789 (output_line_info): Use it.
5790 (new_line_info_table): New.
5791 (set_cur_line_info_table): New.
5792 (dwarf2out_switch_text_section): Use it.
5793 (dwarf2out_begin_function): Likewise.
5794 (push_dw_line_info_entry): New.
5795 (dwarf2out_source_line): Rewrite for new line info tables.
5796 (dwarf2out_init): Remove dead initailizations.
5798 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5800 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5802 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5803 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5804 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5805 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5806 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5807 * opt-functions.awk (flag_init, switch_bit_fields): New.
5808 (switch_flags): Don't handle flags moved to bit-fields. Don't
5809 generate CL_MISSING_OK or CL_SAVE.
5810 * optc-gen.awk: Update to generate bit-field output as well as
5812 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5813 bit-field instead of CL_REJECT_DRIVER flag.
5814 * opts-common.c (generate_canonical_option,
5815 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5816 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5817 instead of CL_REJECT_NEGATIVE flag.
5818 * toplev.c (print_switch_values): Use cl_report bit-field instead
5821 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5823 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5824 a zero minimum index only if it is redundant.
5826 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5828 PR rtl-optimization/48381
5829 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5830 instead of ira_class_hard_reg_index for calculating conflicting
5833 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5835 * cprop.c: Clean up hash table building.
5836 (reg_avail_info): Remove.
5837 (oprs_available_p): Remove.
5838 (record_last_reg_set_info): Remove.
5839 (record_last_set_info): Remove.
5840 (reg_available_p): New function.
5841 (gcse_constant_p): Do not treat unfolded conditions as constants.
5842 (make_set_regs_unavailable): New function.
5843 (hash_scan_set): Simplify with new reg_available_p.
5844 (compute_hash_table_work): Traverse insns stream only once.
5845 Do not compute reg_avail_info. Traverse insns in reverse order.
5846 Record implicit sets after recording explicit sets from the block.
5848 2011-03-31 Michael Matz <matz@suse.de>
5850 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5852 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5854 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5855 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5856 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5857 (h8300_mode_dependent_address_p): New function.
5858 (h8300_get_index): Make static.
5860 2011-03-31 Jeff Law <law@redhat.com>
5862 * reload1.c (elimination_effects): Fix typo in recent change.
5864 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5865 typo potentially leading to null pointer dereference.
5867 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5868 (setup_save_areas): Corresponding changes to avoid useless
5871 * jump.c (reversed_comparison_code_parts): Avoid successive return
5872 statements when REVERSE_CONDITION is defined.
5874 * expr.c (expand_assignment): Avoid useless assignments.
5875 (expand_expr_real_1): Likewise.
5876 (expand_expr_real_2): Avoid useless statements.
5878 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5880 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5882 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5885 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5887 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5890 * doc/tm.texi.in (TARGET_VERSION): Remove.
5891 * doc/tm.texi: Regenerate.
5892 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5893 * collect2.c (main): Don't use TARGET_VERSION.
5894 * mips-tdump.c (main): Don't use TARGET_VERSION.
5895 * mips-tfile.c (main): Don't use TARGET_VERSION.
5896 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5897 * config/rs6000/vxworksae.h: Remove.
5898 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5899 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5900 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5901 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5902 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5903 * config/arm/arm.h (TARGET_VERSION): Remove.
5904 * config/arm/coff.h (TARGET_VERSION): Remove.
5905 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5906 * config/arm/elf.h (TARGET_VERSION): Remove.
5907 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5908 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5909 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5910 * config/arm/pe.h (TARGET_VERSION): Remove.
5911 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5912 * config/arm/semi.h (TARGET_VERSION): Remove.
5913 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5914 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5915 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5916 * config/avr/avr.h (TARGET_VERSION): Remove.
5917 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5918 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5919 * config/frv/frv.h (TARGET_VERSION): Remove.
5920 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5921 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5922 * config/i386/darwin.h (TARGET_VERSION): Remove.
5923 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5924 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5925 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5926 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5927 * config/i386/gnu.h (TARGET_VERSION): Remove.
5928 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5929 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5930 * config/i386/linux.h (TARGET_VERSION): Remove.
5931 * config/i386/linux64.h (TARGET_VERSION): Remove.
5932 * config/i386/lynx.h (TARGET_VERSION): Remove.
5933 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5934 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5935 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5936 * config/i386/netware.h (TARGET_VERSION): Remove.
5937 * config/i386/nto.h (TARGET_VERSION): Remove.
5938 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5939 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5940 * config/ia64/elf.h (TARGET_VERSION): Remove.
5941 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5942 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5943 * config/ia64/linux.h (TARGET_VERSION): Remove.
5944 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5945 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5946 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5947 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5948 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5949 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5950 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5951 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5952 * config/m68k/linux.h (TARGET_VERSION): Remove.
5953 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5954 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5955 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5956 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5957 * config/mep/mep.h (TARGET_VERSION): Remove.
5958 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5959 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5960 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5961 * config/mips/linux.h (TARGET_VERSION): Remove.
5962 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5963 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5964 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5965 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5966 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5967 * config/pa/pa.h (TARGET_VERSION): Remove.
5968 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5969 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5970 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5971 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5972 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5973 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5974 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5975 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5976 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5977 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5978 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5979 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5980 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5981 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5982 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5983 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5984 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5985 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5986 * config/s390/linux.h (TARGET_VERSION): Remove.
5987 * config/s390/s390.h (TARGET_VERSION): Remove.
5988 * config/s390/tpf.h (TARGET_VERSION): Remove.
5989 * config/score/score.h (TARGET_VERSION): Remove.
5990 * config/sh/linux.h (TARGET_VERSION): Remove.
5991 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5992 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5993 * config/sh/sh.h (TARGET_VERSION): Remove.
5994 * config/sh/sh64.h (TARGET_VERSION): Remove.
5995 * config/sh/superh.h (TARGET_VERSION): Remove.
5996 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5997 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5998 * config/sparc/linux.h (TARGET_VERSION): Remove.
5999 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6000 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6001 TARGET_NAME32, TARGET_NAME): Remove.
6002 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6003 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6004 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6005 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6006 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6007 * config/spu/spu.h (TARGET_VERSION): Remove.
6008 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6009 * config/v850/v850.h (TARGET_VERSION): Remove.
6010 * config/vax/linux.h (TARGET_VERSION): Remove.
6011 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6012 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6013 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6015 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6018 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6019 frame-related from frame-unrelated adjustments to the stack pointer.
6021 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6023 * common.opt (fdebug-types-section): Move earlier.
6024 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6026 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6028 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6031 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6033 * tree.h (CASE_CHAIN): Define.
6034 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6035 (gimple_redirect_edge_and_branch): Likewise.
6037 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6040 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6043 2011-03-30 Jeff Law <law@redhat.com>
6045 * PR bootstrap/48371
6046 * reload1.c (reload): Fix botch in last change.
6048 * reload.h (struct reload): Fix typo introduced in last change.
6050 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6052 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6053 Undocumented. Remove help text.
6054 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6057 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6059 * doc/options.texi (NegativeAlias): Document.
6060 (Alias): Mention NegativeAlias.
6061 * opt-functions.awk: Handle NegativeAlias.
6062 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6063 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6064 * opts.h (CL_NEGATIVE_ALIAS): Define.
6065 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6066 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6068 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6070 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6071 mno-spe and mno-isel instead of mspe=no and -misel=no.
6073 2011-03-29 Mark Wielaard <mjw@redhat.com>
6075 * common.opt (fdebug-types-section): New flag.
6076 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6077 * dwarf2out.c (use_debug_types): New define.
6078 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6079 (print_die): Guard output of type unit signatures using
6081 (build_abbrev_table): Replace assert of dwarf_version >= 4
6082 with assert on use_debug_types.
6083 (size_of_die): Likewise.
6084 (unmark_dies): Likewise.
6085 (value_format): Decide AT_ref_external form on use_debug_types.
6086 (output_die): Replace dwarf_version version check guard with
6087 use_debug_types where appropriate.
6088 (modified_type_die): Likewise.
6089 (gen_reference_type_die): Likewise.
6090 (dwarf2out_start_source_file): Likewise.
6091 (dwarf2out_end_source_file): Likewise.
6092 (prune_unused_types_walk_attribs): Likewise.
6093 (dwarf2out_finish): Likewise.
6095 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6097 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6099 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6101 PR rtl-optimization/48332
6102 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6103 mode of input operand N and modeN to its actual mode.
6105 2011-03-30 Jeff Law <law@redhat.com>
6107 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6108 define accessor macro.
6109 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6110 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6111 (reg_equiv_init): Likewise.
6112 (reg_equivs_size): New variable.
6113 (reg_equiv_init_size): Remove.
6114 (allocate_initial_values): Move prototype to here from....
6115 * integrate.h (allocate_initial_values): Remove prototype.
6116 * integrate.c: Include reload.h.
6117 (allocate_initial_values): Corresponding changes.
6118 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6119 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6120 (update_equiv_regs): Corresponding changes.
6121 (ira): Corresponding changes.
6122 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6123 (push_secondary_reload): Corresponding changes.
6124 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6125 (make_memloc, find_reloads_address): Corresponding changes.
6126 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6127 (find_reloads_address_1): Corresponding changes.
6128 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6129 (refers_to_regno_for_reload_p): Corresponding changes.
6130 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6131 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6132 * reload1.c: Include ggc.h.
6133 (grow_reg_equivs): New function.
6134 (replace_pseudos_in, reload): Corresponding changes.
6135 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6136 (eliminate_regs_1, elimination_effects): Corresponding changes.
6137 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6138 (delete_output_reload): Likewise.
6139 * caller-save.c (mark_referenced_regs): Corresponding changes.
6140 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6141 * frv/predicates.md (frv_load_operand): Corresponding changes.
6142 * microblaze/microblaze.c (double_memory_operand): Corresponding
6144 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6145 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6146 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6147 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6148 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6150 * pa/pa.c (emit_move_sequence): Corresponding changes.
6151 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6153 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6156 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6157 structure modes. Don't check neon_vector_mem_operand for
6158 vector or structure modes.
6160 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6161 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6164 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6165 operand 1 and reshuffle the operands to match.
6166 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6168 2011-03-30 Christian Schüler <cschueler@gmx.de>
6171 * config/c.opt (F): Added 'Driver' to -F option.
6174 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6176 * config/darwin.opt: Added '-arch' option.
6178 2011-03-30 Nick Clifton <nickc@redhat.com>
6180 * config/rx/rx.md: Add peepholes and patterns to combine
6181 extending loads and simple arithmetic instructions.
6182 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6183 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6184 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6185 modes to use pre-decrement and post-increment addressing.
6186 (rx_is_restricted_memory_address): Add range checking of REG+INT
6188 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6189 (rx_memory_move_cost): Adjust cost of stores.
6190 (rx_adjust_insn_length): New function.
6192 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6195 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6196 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6197 matching arg00/arg01 types.
6199 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6201 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6202 last_location to UNKNOWN_LOCATION.
6204 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6207 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6210 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6211 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6214 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6216 (sparc_cpu): Likewise.
6217 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6220 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6224 PR rtl-optimization/48345
6225 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6226 hard regs for given mode from profitable regs when doing secondary
6229 2011-03-29 Jeff Law <law@redhat.com>
6232 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6233 do_not_duplicate field.
6234 (lookup_redirection_data): Corresponding changes.
6235 (create_duplicates): Always create a template block.
6236 (redirect_edges): Remove code which reused the original block
6237 when it was going to become unreachable code.
6238 (thread_block): Don't set do_not_duplicate field.
6240 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6242 * lto-opts.c (register_user_option_p, lto_register_user_option):
6243 Make type argument unsigned.
6244 * lto-streamer.h (lto_register_user_option): Make type argument
6246 * opth-gen.awk: Make CL_* macros unsigned.
6247 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6248 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6249 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6250 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6251 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6252 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6253 (find_opt): Make lang_mask argument unsigned.
6255 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6257 PR rtl-optimization/48331
6258 PR rtl-optimization/48334
6259 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6260 for any used algorithm.
6262 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6264 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6267 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6269 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6270 (alpha_option_override): Don't set alpha_sr_alias_set.
6271 (emit_frame_store_1): Use gen_frame_mem rather than calling
6273 (alpha_expand_epilogue): Ditto.
6275 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6277 PR tree-optimization/48290
6278 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6279 vectorization, check that relevant phis in the basic block after
6280 the inner loop are really inner loop's exit phis.
6282 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6285 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6286 (cached_dw_loc_list_def): New structure.
6287 (cached_dw_loc_list): New typedef.
6288 (cached_dw_loc_list_table): New variable.
6289 (cached_dw_loc_list_table_hash): New function.
6290 (cached_dw_loc_list_table_eq): Likewise.
6291 (add_location_or_const_value_attribute): Take a bool cache_p.
6292 Cache the list when the parameter is true.
6293 (gen_formal_parameter_die): Update caller.
6294 (gen_variable_die): Likewise.
6295 (dwarf2out_finish): Likewise.
6296 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6297 while generating debug info for the decl.
6298 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6299 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6300 (resolve_addr): Cache the result of resolving a chain of
6303 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6305 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6306 conflict object hard regset nodes have intersecting hard reg sets.
6308 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6309 after regstat_init_n_sets_and_refs.
6311 * ira.c: Add more comments at the top.
6312 (setup_stack_reg_pressure_class, setup_pressure_classes):
6313 Add comments how we compute the register pressure classes.
6314 (setup_allocno_and_important_classes): Add more comments.
6315 (setup_class_translate_array, reorder_important_classes)
6316 (setup_reg_class_relations): Add comments.
6318 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6321 * ira-color.c: Add 2011 to the Copyright line.
6322 (assign_hard_reg): Add more comments.
6323 (improve_allocation): Ditto.
6325 * ira-costs.c: Add 2011 to the Copyright line.
6326 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6328 (setup_regno_cost_classes_by_mode): Ditto.
6330 Initial patches from ira-improv branch:
6332 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6334 * ira-build.c (ira_create_object): Remove initialization of
6335 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6336 (ira_create_allocno): Remove initialization of
6337 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6338 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6339 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6340 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6341 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6342 Initialize ALLOCNO_ADD_DATA.
6343 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6344 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6346 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6347 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6349 * ira.c (ira_reallocate): Remove.
6350 (setup_pressure_classes): Call
6351 ira_init_register_move_cost_if_necessary. Use
6352 ira_register_move_cost instead of ira_get_register_move_cost.
6353 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6354 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6356 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6357 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6358 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6359 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6360 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6361 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6363 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6364 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6365 (struct allocno_color_data): New.
6366 (allocno_color_data_t): New typedef.
6367 (allocno_color_data): New definition.
6368 (ALLOCNO_COLOR_DATA): New macro.
6369 (struct object_color_data): New.
6370 (object_color_data_t): New typedef.
6371 (object_color_data): New definition.
6372 (OBJECT_COLOR_DATA): New macro.
6373 (update_copy_costs, calculate_allocno_spill_cost): Call
6374 ira_init_register_move_cost_if_necessary. Use
6375 ira_register_move_cost instead of ira_get_register_move_cost.
6376 (move_spill_restore, update_curr_costs): Ditto.
6377 (allocno_spill_priority): Make it inline.
6378 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6379 (struct coalesce_data, coalesce_data_t): New.
6380 (allocno_coalesce_data): New definition.
6381 (ALLOCNO_COALESCE_DATA): New macro.
6382 (merge_allocnos, coalesced_allocno_conflict_p): Use
6383 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6384 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6385 (coalesce_allocnos): Ditto.
6386 (setup_coalesced_allocno_costs_and_nums): Ditto.
6387 (collect_spilled_coalesced_allocnos): Ditto.
6388 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6389 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6390 (coalesce_spill_slots): Ditto.
6391 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6392 free allocno_coalesce_data.
6394 * ira-conflicts.c: Fix formatting.
6395 (process_regs_for_copy): Call
6396 ira_init_register_move_cost_if_necessary. Use
6397 ira_register_move_cost instead of ira_get_register_move_cost.
6398 (build_object_conflicts): Optimize.
6400 * ira-costs.c (record_reg_classes): Optimize. Call
6401 ira_init_register_move_cost_if_necessary. Use
6402 ira_register_move_cost, ira_may_move_in_cost, and
6403 ira_may_move_out_cost instead of ira_get_register_move_cost and
6404 ira_get_may_move_cost.
6405 (record_address_regs): Ditto.
6406 (scan_one_insn): Optimize.
6407 (find_costs_and_classes): Optimize.
6408 (process_bb_node_for_hard_reg_moves): Call
6409 ira_init_register_move_cost_if_necessary. Use
6410 ira_register_move_cost instead of ira_get_register_move_cost.
6412 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6413 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6414 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6415 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6417 (ira_initiate_emit_data, ira_finish_emit_data)
6418 (create_new_allocno): New functions.
6419 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6420 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6421 Use ira_register_move_cost instead of ira_get_register_move_cost.
6423 * ira-int.h: Fix some comments.
6424 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6425 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6426 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6427 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6429 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6430 bitfield after mode. Make hard_regno a short int. Make
6431 hard_regno short. Remove first_coalesced_allocno and
6432 next_coalesced_allocno. Move mem_optimized_dest_p,
6433 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6434 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6435 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6436 temp, colorable_p. Add new member add_data.
6437 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6438 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6439 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6440 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6441 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6442 (ALLOCNO_ADD_DATA): New macro.
6443 (ira_emit_data_t): New typedef.
6444 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6445 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6446 from struct ira_allocno.
6447 (ALLOCNO_EMIT_DATA): New macro.
6448 (ira_allocno_emit_data, allocno_emit_reg): New.
6449 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6450 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6451 (OBJECT_ADD_DATA): New macro.
6452 (ira_reallocate): Remove.
6453 (ira_initiate_emit_data, ira_finish_emit_data): New.
6454 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6455 (ira_init_register_move_cost_if_necessary): New.
6456 (ira_object_conflict_iter_next): Merge into
6457 ira_object_conflict_iter_cond.
6458 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6460 * ira-live.c (process_single_reg_class_operands): Call
6461 ira_init_register_move_cost_if_necessary. Use
6462 ira_register_move_cost instead of ira_get_register_move_cost.
6464 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6466 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6468 * ira-costs.c: Fix formatting.
6469 (cost_classes, cost_classes_num): Remove.
6470 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6471 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6472 (cost_classes_del, cost_classes_htab): New.
6473 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6474 (initiate_regno_cost_classes, setup_cost_classes): New.
6475 (setup_regno_cost_classes_by_aclass): New.
6476 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6477 (record_reg_classes): Use regno_cost_classes instead of
6478 cost_classes. Move checking opposite operand up.
6479 (record_address_regs): Use regno_cost_classes
6480 instead of cost_classes.
6481 (scan_one_insn): Ditto. Use always general register.
6482 (print_allocno_costs): Use regno_cost_classes instead of
6484 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6485 (find_costs_and_classes): Set up cost classes for each registers.
6486 Use also their mode for this. Use regno_cost_classes instead of
6488 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6490 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6491 (ira_costs, ira_set_pseudo_classes): Call
6492 initiate_regno_cost_classes and finish_regno_cost_classes.
6494 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6496 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6498 * target.def (ira_cover_classes): Remove.
6500 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6502 * doc/tm.texi.in: Ditto.
6504 * ira-conflicts.c: Remove mentioning cover classes from the file.
6505 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6506 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6508 * targhooks.c (default_ira_cover_classes): Remove.
6510 * targhooks.h (default_ira_cover_classes): Ditto.
6512 * haifa-sched.c: Remove mentioning cover classes from the file.
6513 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6514 ira_pressure_classes and ira_pressure_classes_num instead of
6515 ira_reg_class_cover_size and ira_reg_class_cover. Use
6516 sched_regno_pressure_class instead of sched_regno_cover_class.
6517 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6518 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6520 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6521 classes from the file.
6522 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6523 (struct object_hard_regs, struct object_hard_regs_node): New.
6524 (struct ira_object): New members profitable_hard_regs,
6525 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6526 (struct ira_allocno): Rename cover_class to aclass. Rename
6527 cover_class_cost and updated_cover_class_cost to class_cost and
6528 updated_class_cost. Remove splay_removed_p and
6529 left_conflict_size. Add new members colorable_p.
6530 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6531 (ALLOCNO_COLORABLE_P): New macro.
6532 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6533 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6534 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6535 (OBJECT_...): Rename parameter C to O.
6536 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6537 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6538 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6539 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6540 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6541 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6542 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6543 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6544 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6545 x_ira_reg_class_subunion.
6546 (ira_max_memory_move_cost, ira_max_register_move_cost)
6547 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6548 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6549 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6550 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6551 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6552 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6553 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6554 (ira_tune_allocno_costs_and_cover_classes): Rename to
6555 ira_tune_allocno_costs.
6556 (ira_debug_hard_regs_forest): New.
6557 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6558 (ira_object_conflict_iter_next): Fix comments.
6559 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6560 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6561 cover_class to aclass.
6562 (ira_allocate_and_accumulate_costs): Ditto.
6563 (ira_allocate_and_set_or_copy_costs): Ditto.
6565 * opts.c (decode_options): Remove ira_cover_class check.
6567 * ira-color.c: Remove mentioning cover classes from the file. Use
6568 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6569 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6570 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6571 (splay-tree.h): Remove include.
6572 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6573 before copy_freq_compare_func.
6574 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6575 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6577 (hard_regs_roots, hard_regs_node_vec): Ditto.
6578 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6579 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6580 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6581 (create_new_object_hard_regs_node): Ditto.
6582 (add_new_object_hard_regs_node_to_forest): Ditto.
6583 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6584 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6586 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6587 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6588 (remove_unused_object_hard_regs_nodes): Ditto.
6589 (enumerate_object_hard_regs_nodes): Ditto.
6590 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6591 (object_hard_regs_subnode_t): Ditto.
6592 (struct object_hard_regs_subnode): Ditto.
6593 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6594 (setup_object_hard_regs_subnode_index): Ditto.
6595 (get_object_hard_regs_subnodes_num): Ditto.
6596 (form_object_hard_regs_nodes_forest): Ditto.
6597 (finish_object_hard_regs_nodes_tree): Ditto.
6598 (finish_object_hard_regs_nodes_forest): Ditto.
6599 (allocnos_have_intersected_live_ranges_p): Rename to
6600 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6601 (pseudos_have_intersected_live_ranges_p): Rename to
6602 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6603 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6604 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6605 (update_copy_costs): Remove assert. Skip cost update if the hard
6606 reg does not belong the class.
6607 (assign_hard_reg): Process only profitable hard regs.
6608 (uncolorable_allocnos_num): Make it scalar.
6609 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6610 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6611 and ira_reg_class_max_nregs.
6612 (bucket_allocno_compare_func): Check frequency first.
6613 (sort_bucket): Add compare function as a parameter.
6614 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6615 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6616 (push_allocno_to_stack): Rewrite for checking new allocno
6618 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6619 (push_only_colorable): Pass new parameter to sort_bucket.
6620 (push_allocno_to_spill): Remove.
6621 (allocno_spill_priority_compare): Make it inline and rewrite.
6622 (splay_tree_allocate, splay_tree_free): Remove.
6623 (allocno_spill_sort_compare): New function.
6624 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6625 build and use splay tree. Choose first allocno in uncolorable
6626 allocno bucket to spill. Remove setting spill cost.
6627 (all_conflicting_hard_regs): Remove.
6628 (setup_allocno_available_regs_num): Check only profitable hard
6629 regs. Print info about hard regs nodes.
6630 (setup_allocno_left_conflicts_size): Remove.
6631 (put_allocno_into_bucket): Don't call
6632 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6633 (improve_allocation): New.
6634 (color_allocnos): Call setup_profitable_hard_regs,
6635 form_object_hard_regs_nodes_forest, improve_allocation,
6636 finish_object_hard_regs_nodes_forest. Setup spill cost.
6637 (print_loop_title): Use pressure classes.
6638 (color_allocnso): Ditto.
6639 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6640 and allocnos_for_spilling.
6641 (ira_sort_regnos_for_alter_reg): Don't setup members
6642 {first,next}_coalesced_allocno.
6643 (color): Remove allocating and freeing removed_splay_allocno_vec.
6644 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6645 prohibited_class_mode_regs.
6647 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6649 (update_allocno_pressure_excess_length): Use pressure classes.
6650 (inc_register_pressure, dec_register_pressure): Check for pressure
6652 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6653 pressure class. Use ira_reg_class_nregs instead of
6654 ira_reg_class_max_nregs.
6655 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6656 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6657 (single_reg_class): Use ira_reg_class_nregs instead of
6658 ira_reg_class_max_nregs.
6659 (process_bb_node_lives): Use pressure classes.
6661 * ira-emit.c: Remove mentioning cover classes from the file. Use
6662 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6663 (change_loop): Use pressure classes.
6664 (modify_move_list): Call ira_set_allocno_class instead of
6665 ira_set_allocno_cover_class.
6667 * ira-build.c: Remove mentioning cover classes from the file. Use
6668 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6669 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6670 ALLOCNO_UPDATED_CLASS_COST instead of
6671 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6672 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6673 (ira_create_allocno): Remove initialization of
6674 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6675 ALLOCNO_COLORABLE_P.
6676 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6677 Update conflict regs for the objects.
6678 (create_cap_allocno): Remove assert. Don't propagate
6679 ALLOCNO_AVAILABLE_REGS_NUM.
6680 (ira_free_allocno_costs): New function.
6681 (finish_allocno): Change a part of code into call of
6682 ira_free_allocno_costs.
6683 (low_pressure_loop_node_p): Use pressure classes.
6684 (object_range_compare_func): Don't compare classes.
6685 (setup_min_max_conflict_allocno_ids): Ditto.
6687 * loop-invariant.c: Remove mentioning cover classes from the file.
6688 Use ira_pressure_classes and ira_pressure_classes_num instead of
6689 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6690 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6691 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6692 Use reg_allocno_class instead of reg_cover_class.
6693 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6694 STACK_REG_COVER_CLASS.
6695 (get_regno_cover_class): Rename to get_regno_pressure_class.
6696 (move_loop_invariants): Initialize and finalize regstat.
6698 * ira.c: Remove mentioning cover classes from the file. Add
6699 comments about coloring without cover classes. Use ALLOCNO_CLASS
6700 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6701 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6702 setup_class_subset_and_memory_move_costs.
6703 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6704 (setup_cover_and_important_classes): Rename to
6705 setup_allocno_and_important_classes.
6706 (setup_class_translate_array): New.
6707 (setup_class_translate): Call it for allocno and pressure classes.
6708 (cover_class_order): Rename to allocno_class_order.
6709 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6710 of ira_class_translate.
6711 (reorder_important_classes): Set up ira_important_class_nums.
6712 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6713 (print_class_cover): Rename to print_classes. Add parameter.
6714 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6715 Print pressure classes too.
6716 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6717 setup_reg_subclasses.
6718 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6719 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6720 (setup_prohibited_class_mode_regs): Use
6721 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6722 (clarify_prohibited_class_mode_regs): New function.
6723 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6724 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6725 (ira_init_once): Initialize them.
6726 (free_register_move_costs): Process them.
6727 (ira_init): Move calls of find_reg_classes and
6728 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6729 Call clarify_prohibited_class_mode_regs.
6730 (ira_no_alloc_reg): Remove.
6731 (too_high_register_pressure_p): Use pressure classes.
6733 * sched-deps.c: Remove mentioning cover classes from the file.
6734 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6735 ira_pressure_classes and ira_pressure_classes_num instead of
6736 ira_reg_class_cover_size and ira_reg_class_cover.
6737 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6738 sched_regno_pressure_class instead of sched_regno_cover_class.
6739 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6740 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6742 * ira.h: Add 2010 to Copyright.
6743 (ira_no_alloc_reg): Remove external.
6744 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6745 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6746 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6747 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6748 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6749 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6750 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6751 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6752 x_ira_no_alloc_regs.
6753 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6754 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6755 ira_allocno_classes_num and ira_allocno_classes.
6756 (ira_class_translate): Rename to ira_allocno_class_translate.
6757 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6758 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6759 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6760 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6761 (ira_no_alloc_regs): New.
6763 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6764 classes from the file. Use ALLOCNO_CLASS instead of
6765 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6766 ALLOCNO_COVER_CLASS_COST.
6767 (regno_cover_class): Rename to regno_aclass.
6768 (record_reg_classes): Use ira_reg_class_subunion instead of
6769 ira_reg_class_union.
6770 (record_address_regs): Check overflow.
6771 (scan_one_insn): Ditto.
6772 (print_allocno_costs): Print total mem cost fore regional allocation.
6773 (print_pseudo_costs): Use REG_N_REFS.
6774 (find_costs_and_classes): Use classes intersected with them on the
6775 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6776 ira_reg_class_union. Use ira_allocno_class_translate and
6777 regno_aclass instead of ira_class_translate and regno_cover_class.
6778 Modify code for finding regno_aclass. Setup preferred classes for
6780 (setup_allocno_cover_class_and_costs): Rename to
6781 setup_allocno_class_and_costs. Use regno_aclass instead of
6782 regno_cover_class. Use ira_set_allocno_class instead of
6783 ira_set_allocno_cover_class.
6784 (init_costs, finish_costs): Use regno_aclass instead of
6786 (ira_costs): Use setup_allocno_class_and_costs instead of
6787 setup_allocno_cover_class_and_costs.
6788 (ira_tune_allocno_costs_and_cover_classes): Rename to
6789 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6790 by processing objects. Use ira_reg_class_max_nregs instead of
6791 ira_reg_class_nregs.
6793 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6795 * sched-int.h: Remove mentioning cover classes from the file.
6796 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6798 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6799 classes from the file.
6800 (struct reg_pref): Rename coverclass into allocnoclass.
6801 (reg_cover_class): Rename to reg_allocno_class.
6803 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6805 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6807 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6809 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6811 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6813 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6815 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6817 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6819 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6821 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6823 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6824 (i386_ira_cover_classes): Ditto.
6826 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6828 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6830 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6832 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6834 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6836 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6838 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6839 (mips_ira_cover_classes): Ditto.
6841 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6843 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6845 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6847 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6849 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6851 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6852 (IRA_COVER_CLASSES_VSX): Ditto.
6854 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6855 (rs6000_ira_cover_classes): Ditto.
6857 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6859 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6861 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6863 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6865 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6867 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6869 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6871 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6873 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6875 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6877 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6880 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6881 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6882 dw_fde_unlikely_section_end_label, cold_in_std_section,
6883 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6884 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6886 (output_fde): Use dw_fde_second_{begin,end} if second is
6887 true, otherwise dw_fde_{begin,end}.
6888 (output_call_frame_info): Test dw_fde_second_begin != NULL
6889 instead of dw_fde_switched_sections.
6890 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6891 fields, initialize new fields. Initialize in_std_section
6892 unconditionally from the first partition.
6893 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6894 dw_fde_second_begin is non-NULL.
6895 (dwarf2out_switch_text_section): Stop initializing removed
6896 dw_fde_struct fields, initialize new fields, initialize
6897 also dw_fde_end here. Set dw_fde_switch_cfi even when
6898 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6899 (struct var_loc_list_def): Add last_before_switch field.
6900 (arange_table, arange_table_allocated, arange_table_in_use,
6901 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6902 (size_of_aranges): Count !in_std_section and !second_in_std_section
6903 hunks in fdes, instead of looking at arange_table_in_use.
6904 (output_aranges): Add aranges_length argument, don't call
6905 size_of_aranges here. Instead of using aranges_table*
6906 emit ranges for fdes when !in_std_section resp.
6907 !second_in_std_section.
6908 (dw_loc_list): Break ranges crossing section switch.
6909 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6910 use dw_fde_second_end instead of dw_fde_end as end of last range.
6911 (gen_subprogram_die): Don't call add_arange. Use
6912 dw_fde_{begin,end} for first partition and if switched
6913 section dw_fde_second_{begin,end} for the second.
6914 (var_location_switch_text_section_1,
6915 var_location_switch_text_section): New functions.
6916 (dwarf2out_begin_function): Initialize cold_text_section even
6917 when function_section () isn't text_section.
6918 (prune_unused_types): Don't walk arange_table.
6919 (dwarf2out_finish): Don't needlessly test
6920 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6921 If info_section_emitted, call size_of_aranges and if it indicates
6922 non-empty .debug_aranges, call output_aranges with the computed
6923 size. Stop using removed dw_fde_struct fields, use
6924 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6928 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6929 create ENTRY_VALUE if incoming or address of incoming's MEM
6931 * dwarf2out.c (mem_loc_descriptor): Don't emit
6932 DW_OP_GNU_entry_value of DW_OP_fbreg.
6933 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6934 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6935 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6936 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6938 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6939 is a REG_P or MEM_P with REG_P address, compute hash directly
6940 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6941 (preserve_only_constants): Don't clear VALUES forwaring
6942 ENTRY_VALUE to some other VALUE.
6944 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6946 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6949 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6951 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6952 block before expanding the statement.
6953 (expand_gimple_stmt_1): Likewise. Set them here...
6954 (expand_gimple_stmt): ...and not here. Tidy.
6955 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6958 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6960 * Makefile.in: New rule for cprop.o.
6961 * gcse.c: Move constant/copy propagation to cprop.c.
6962 (compute_local_properties): Only handle expression tables.
6963 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6964 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6965 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6966 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6967 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6968 compute_cprop_data, find_used_regs, try_replace_reg,
6969 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6970 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6971 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6972 find_bypass_set, reg_killed_on_edge, bypass_block,
6973 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6974 execute_rtl_cprop, pass_rtl_cprop): Move to...
6975 * cprop.c: ...here. New file, constant/copy propagation for RTL
6976 moved from gcse.c to here with minor cleanups in duplicated code.
6978 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6980 * config/i386/i386.c (flag_opts): Fix a typo in
6981 -mavx256-split-unaligned-store.
6983 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6985 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6986 LIBCALL_VALUE): Remove macros.
6987 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6988 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6989 (h8300_function_value, h8300_libcall_value,
6990 h8300_function_value_regno_p): New functions.
6992 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6994 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6996 2011-03-28 Jeff Law <law@redhat.com>
6998 * tree-ssa-threadupdate.c (redirect_edges): Call
6999 create_edge_and_update_destination_phis as needed.
7000 (create_edge_and_update_destination_phis): Accept new BB argument.
7001 All callers updated.
7002 (thread_block): Do not update the profile when threading around
7003 intermediate blocks.
7004 (thread_single_edge): Likewise.
7005 (determine_bb_domination_status): If BB is not a successor of the
7006 loop header, return NONDOMINATING.
7007 (register_jump_thread): Note when we register a jump thread around
7008 an intermediate block.
7009 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7010 (thread_across_edge): Use it.
7012 2011-03-28 Tristan Gingold <gingold@adacore.com>
7014 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7015 when for_return is 2.
7017 2011-03-28 Jeff Law <law@redhat.com>
7019 * var-tracking.c (canonicalize_values_mark): Delete unused
7021 (canonicalize_values_star, set_variable_part): Likewise.
7022 (clobber_variable_part, delete_variable_part): Likewise.
7024 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7026 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7028 2011-03-28 Martin Jambor <mjambor@suse.cz>
7030 * tree-inline.c (expand_call_inline): Do not check that destination
7032 (optimize_inline_calls): Assert that destination node is analyzed.
7033 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7034 not call tree_lowering_passes.
7035 * cgraph.h (cgraph_analyze_function): Declare.
7036 * cgraphunit.c (cgraph_analyze_function): Make public.
7038 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7040 * config/sparc/sparc-opts.h: New.
7041 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7042 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7043 (sparc_option_override): Store processor_type enumeration rather
7044 than string in cpu_default. Remove name and enumeration from
7045 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7046 without using sparc_select. Use target_flags_explicit instead of
7048 * config/sparc/sparc.h (enum processor_type): Move to
7050 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7051 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7052 HeaderInclude entry.
7053 (mcpu=, mtune=): Use Var and Enum.
7054 (sparc_processor_type): New Enum and EnumValue entries.
7056 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7057 Iain Sandoe <iains@gcc.gnu.org>
7060 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7062 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7064 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7065 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7066 Insert new statements at it in lieu of STMT.
7067 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7068 * tree-vect-stmts.c (vectorizable_store): Likewise.
7069 (vectorizable_load): Likewise.
7071 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7073 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7078 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7080 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7081 unaligned 256bit load/store.
7082 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7083 (*avx_movdqu<avxmodesuffix>): Likewise.
7085 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7088 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7089 * config/pa/pa.md (iordi3): Use new predicate in expander.
7092 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7094 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7095 FUNCTION_VALUE_REGNO_P): Remove macros.
7096 * config/mips/mips-protos.h (mips_function_value): Remove.
7097 * config/mips/mips.c (mips_function_value): Rename to...
7098 (mips_function_value_1): ... this. Make static. Handle receiving
7099 the function type in 'fn_decl_or_type' argument.
7100 (mips_function_value, mips_libcall_value,
7101 mips_function_value_regno_p): New function.
7102 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7103 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7105 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7107 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7108 and -mavx256-split-unaligned-store.
7109 (ix86_option_override_internal): Split 32-byte AVX unaligned
7110 load/store by default.
7111 (ix86_avx256_split_vector_move_misalign): New.
7112 (ix86_expand_vector_move_misalign): Use it.
7114 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7115 -mavx256-split-unaligned-store.
7117 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7118 256bit load/store. Generate unaligned store on misaligned memory
7120 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7122 (*avx_movdqu<avxmodesuffix>): Likewise.
7124 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7125 -mavx256-split-unaligned-store.
7127 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7130 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7133 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7135 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7136 opno arguments with an expand_operand. Use create_input_operand.
7137 (mips_prepare_builtin_target): Delete.
7138 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7140 (mips_expand_builtin_direct): Use create_output_operand and
7141 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7142 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7143 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7145 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7147 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7149 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7151 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7153 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7154 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7155 basic blocks and call commit_edge_insertions directly.
7156 (fixup_abnormal_edges): Move from here to...
7157 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7158 on the edges and return whether some have actually been inserted.
7159 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7162 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7164 PR rtl-optimization/48144
7165 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7166 (merge_expr_data): ... here.
7167 (av_set_intersect): Rename to av_set_code_motion_filter.
7168 Update all callers. Call merge_history_vect when an expression
7169 is found in both sets.
7170 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7172 2011-03-26 Alan Modra <amodra@gmail.com>
7174 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7175 cmodel medium addresses.
7176 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7177 64-bit gpr loads and stores.
7178 (rs6000_secondary_reload_ppc64): New function.
7179 * config/rs6000/rs6000-protos.h: Declare it.
7180 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7182 2011-03-26 Alan Modra <amodra@gmail.com>
7185 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7186 GNU Go in traceback table.
7188 2011-03-25 Richard Henderson <rth@redhat.com>
7190 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7191 if there are exactly 6 operands.
7192 (set_storage_via_setmem): Similarly.
7194 2011-03-25 Kai Tietz <ktietz@redhat.com>
7196 * collect2.c (write_c_file_stat): Handle backslash
7197 as right-hand directory separator.
7198 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7199 checking just for slash.
7200 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7201 instead of checking for trailing slash.
7202 * gcc.c (record_temp_file): Use filename_cmp instead
7204 (do_spec_1): Likewise.
7205 (replace_outfile_spec_function): Likewise.
7206 (is_directory): Use filename_ncmp instead of strncmp.
7207 (print_multilib_info): Likewise.
7208 * gcov.c (find_source): Use filename_cmp instead
7210 (make_gcov_file_name): Fix order of slash/backslash
7212 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7213 (add_standard_paths): Likewise.
7214 * mips-tfile.c (saber_stop): Handle backslash.
7215 * prefix.c (update_path): Use filename_ncmp instead of
7217 * profile.c (output_location): Use filename_cmp instead
7219 * read-md.c (handle_toplevel_file): Handle backslash.
7220 * tlink.c (frob_extension): Likewise.
7221 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7223 * tree-dump.c (dequeue_and_dump): Handle backslash.
7224 * tree.c (get_file_function_name): Likewise.
7225 * gengtype.c (read_input_list): Likewise.
7226 (get_file_realbasename): Likewise.
7227 (get_output_file_with_visibility): Use filename_cmp
7230 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7232 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7235 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7237 * fold-const.c (expr_location_or): New function.
7238 (fold_truth_not_expr): Call it.
7240 2011-03-25 Jeff Law <law@redhat.com>
7242 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7244 * c-family/c-common.c (def_fn_type): Likewise.
7245 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7246 * emit-rtl.c (gen_rtvec): Likewise.
7247 * lto/lto-lang.c (def_fn_type): Likewise.
7249 2011-03-25 Richard Guenther <rguenther@suse.de>
7251 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7252 also generate copies.
7253 (fini_copy_prop): Handle constant values properly.
7255 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7257 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7258 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7259 (hash_loc_operands, compare_loc_operands): Handle
7260 DW_OP_GNU_entry_value.
7262 2011-03-25 Kai Tietz <ktietz@redhat.com>
7264 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7265 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7266 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7267 comment and use macro TARGET_64BIT_MS_ABI instead.
7268 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7269 and change default behavior for 32-bit MS_ABI.
7270 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7271 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7273 (ix86_cfun_abi): Likewise.
7274 (ix86_maybe_switch_abi): Adjust comment.
7275 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7276 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7277 instead of checking for SYSV_ABI.
7278 (ix86_nsaved_sseregs): Likewise.
7279 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7281 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7282 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7283 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7284 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7285 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7287 2011-03-25 Richard Guenther <rguenther@suse.de>
7289 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7290 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7291 (verify_gimple): Remove.
7292 * tree-cfg.c (verify_gimple_call): Merge verification
7294 (verify_gimple_phi): Merge verification from verify_stmts.
7295 (verify_gimple_label): New function.
7296 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7297 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7298 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7299 (verify_stmts): Rename to verify_gimple_in_cfg.
7300 (verify_gimple_in_cfg): New function.
7301 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7302 * tree-ssa.c (verify_ssa): Likewise.
7303 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7305 2011-03-25 Richard Guenther <rguenther@suse.de>
7307 * passes.c (init_optimization_passes): Add FRE pass after
7310 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7311 Andrew Stubbs <ams@codesourcery.com>
7313 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7315 (arm_movdi_vfp_cortexa8): New pattern.
7316 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7317 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7318 instructions when tuning for Cortex-A8. Set attribute "arch".
7319 * config/arm/arm.md: Move include arm-tune.md up a bit.
7320 (define_attr "arch"): Add "onlya8" and "nota8" values.
7321 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7323 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7327 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7329 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7330 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7331 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7332 * passes.c (init_optimization_passes): Move
7333 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7335 2011-03-25 Kai Tietz <ktietz@redhat.com>
7337 * c-typeck.c (comptypes_internal): Replace target
7338 hook call of comp_type_attributes by version in tree.c file.
7339 * gimple.c (gimple_types_compatible_p_1): Likewise.
7340 * tree-ssa.c (useless_type_conversion_p): Likewise.
7341 * tree.c (build_type_attribute_qual_variant): Likewise.
7342 (attribute_value_equal): New static helper function.
7343 (comp_type_attributes): New function.
7344 (merge_attributes): Use attribute_value_equal for comparison.
7345 (attribute_list_contained): Likewise.
7346 * tree.h (comp_type_attributes): New prototype.
7348 2011-03-25 Richard Guenther <rguenther@suse.de>
7350 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7351 of complex types at -O0.
7352 (verify_gimple_assign_binary): Likewise.
7353 (verify_gimple_assign_ternary): Likewise.
7355 2011-03-24 Mark Wielaard <mjw@redhat.com>
7357 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7358 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7360 2011-03-24 Mark Wielaard <mjw@redhat.com>
7363 * dwarf2out.c (output_abbrev_section): Only write table when
7364 abbrev_die_table_in_use > 1.
7366 2011-02-24 Richard Henderson <rth@redhat.com>
7368 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7369 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7370 (alpha_expand_unaligned_load_words): Use extql.
7371 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7372 (emit_insxl): Handle all modes for consistency.
7374 2011-02-24 Richard Henderson <rth@redhat.com>
7376 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7377 (alpha_expand_unaligned_load): Likewise.
7378 (alpha_expand_unaligned_store): Likewise.
7379 (alpha_expand_unaligned_load_words): Likewise.
7380 (alpha_expand_unaligned_store_words): Likewise.
7381 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7382 (alpha_split_lock_test_and_set_12): Likewise.
7383 (print_operand, alpha_fold_builtin_extxx): Likewise.
7384 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7385 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7386 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7387 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7388 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7389 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7390 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7391 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7392 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7393 (extwl, extll, extql): Similarly.
7394 (inswh, inslh, insqh): Similarly.
7395 (mskbl, mskwl, mskll, mskql): Similarly.
7396 (mskwh, msklh, mskqh): Similarly.
7398 2011-02-24 Richard Henderson <rth@redhat.com>
7400 * config/alpha/alpha.md (attribute isa): Add er, ner.
7401 (attribute enabled): Handle them.
7402 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7404 2011-02-24 Richard Henderson <rth@redhat.com>
7406 * config/alpha/alpha.md (attribute isa): Add vms.
7407 (attribute enabled): Handle it.
7408 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7409 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7410 (*movtf): Rename from *movtf_internal for consistency.
7411 (*movsi): Merge with *movsi_nt_vms.
7412 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7413 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7414 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7415 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7417 2011-02-24 Richard Henderson <rth@redhat.com>
7419 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7420 (extendqisi2, extendhisi2): Likewise.
7421 (extendqidi2): Simplify BWX/non-BWX expansions.
7422 (extendhidi2): Similarly.
7424 2011-02-24 Richard Henderson <rth@redhat.com>
7426 * config/alpha/alpha.md (attribute isa): New.
7427 (attribute enabled): New.
7428 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7429 (zero_extendqisi2, zero_extendqidi2): Similarly.
7430 (zero_extendhisi2, zero_extendhidi2): Similarly.
7431 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7433 2011-02-24 Richard Henderson <rth@redhat.com>
7435 * config/alpha/predicates.md (input_operand): Revert last change;
7436 update comment to mention 32-bit VMS rather than Windows.
7438 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7440 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7441 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7442 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7443 * passes.c (init_optimization_passes): Move
7444 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7446 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7448 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7450 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7452 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7455 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7458 * simplify-rtx.c (simplify_const_unary_operation): Call
7459 real_convert when changing mode class with FLOAT_EXTEND.
7461 2011-03-24 Nick Clifton <nickc@redhat.com>
7463 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7464 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7465 * config/rx/rx.c (rx_option_override): Set align_jumps,
7466 align_loops and align_labels if not set by the user.
7467 (rx_align_for_label): New function.
7468 (rx_max_skip_for_label): New function.
7469 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7470 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7471 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7472 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7473 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7475 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7477 PR rtl-optimization/48263
7478 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7479 and original commutative_p handling. Use maybe_gen_insn.
7481 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7483 * reload.c (find_reloads_subreg_address): Add address_reloaded
7484 parameter and return true there if the full address has been
7486 (find_reloads_toplev): Pass address_reloaded flag.
7487 (find_reloads_address_1): Don't use address_reloaded parameter.
7489 2011-03-24 Jeff Law <law@redhat.com>
7491 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7492 unused variable "ann".
7493 (remove_unused_locals): Likewise.
7495 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7498 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7501 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7503 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7504 for invalid symbolic addresses.
7505 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7508 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7510 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7511 the argument in calls to fold_truth_not_expr.
7513 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7515 * tree.c (record_node_allocation_statistics): New function.
7516 (make_node_stat, copy_node_stat, build_string): Call it.
7517 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7518 (build1_stat, build_omp_clause): Likewise.
7520 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7522 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7525 2011-03-24 Richard Guenther <rguenther@suse.de>
7527 PR tree-optimization/48271
7528 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7529 blocks that still exist.
7531 2011-03-24 Richard Guenther <rguenther@suse.de>
7533 PR tree-optimization/48270
7534 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7535 not free datarefs before ddrs.
7537 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7539 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7540 from the address built for a reference with variable offset.
7542 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7545 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7546 alternatives that can be handled with movq or movabsq insn.
7547 (*movdf_internal): Disable for !TARGET_64BIT.
7548 (*movdf_internal_nointeger): Ditto.
7549 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7551 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7553 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7554 (FUNCTION_ARG_ADVANCE): Likewise.
7555 * tm.texi.in: Change references to them to hook references.
7556 * tm.texi: Regenerate.
7557 * targhooks.c (default_function_arg): Eliminate check for target macro.
7558 (default_function_incoming_arg): Likewise.
7559 (default_function_arg_advance): Likewise.
7560 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7561 (function_arg_advance): Likewise.
7562 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7564 2011-03-24 Richard Guenther <rguenther@suse.de>
7567 * tree-object-size.c (addr_object_size): Do not double-account
7568 for MEM_REF offsets.
7570 2011-03-24 Diego Novillo <dnovillo@google.com>
7572 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7573 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7574 (lto_input_data_block): Move from lto-opts.c. Make extern.
7576 (lto_input_string): Rename from input_string. Make extern.
7578 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7579 output_string_with_length.
7580 Output 0 to indicate a non-NULL string. Update all callers to
7582 (lto_output_string): Rename from output_string. Make extern.
7584 (lto_output_decl_state_streams): Make extern.
7585 (lto_output_decl_state_refs): Make extern.
7586 * lto-streamer.h (lto_input_string): Declare.
7587 (lto_input_data_block): Declare.
7588 (lto_output_string): Declare.
7589 (lto_output_string_with_length): Declare.
7590 (lto_output_decl_state_streams): Declare.
7591 (lto_output_decl_state_refs): Declare.
7593 2011-03-24 Richard Guenther <rguenther@suse.de>
7595 PR tree-optimization/46562
7596 * tree.c (build_invariant_address): New function.
7597 * tree.h (build_invariant_address): Declare.
7598 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7599 a renamed function moved ...
7600 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7601 Take valueization callback parameter.
7602 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7603 * gimple-fold.h: New file.
7604 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7605 (ccp_fold, fold_const_aggregate_ref,
7606 fold_ctor_reference, fold_nonarray_ctor_reference,
7607 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7608 get_base_constructor): Move ...
7609 * gimple-fold.c: ... here.
7610 (gimple_fold_stmt_to_constant_1): New function
7611 split out from ccp_fold. Take a valueization callback parameter.
7612 Valueize all operands.
7613 (gimple_fold_stmt_to_constant): New wrapper function.
7614 (fold_const_aggregate_ref_1): New function split out from
7615 fold_const_aggregate_ref. Take a valueization callback parameter.
7616 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7617 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7618 invariant POINTER_PLUS_EXPRs to invariant form.
7619 (vn_valueize): New function.
7620 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7621 * tree-vrp.c (vrp_valueize): New function.
7622 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7623 to fold statements to constants.
7624 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7625 function declarations.
7626 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7627 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7629 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7631 * config/h8300/predicates.md (jump_address_operand): Fix register
7634 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7636 * doc/invoke.texi (max-stores-to-sink): Document.
7637 * params.h (MAX_STORES_TO_SINK): Define.
7638 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7639 if either vectorization or if-conversion is disabled.
7640 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7641 tree-vect-data-refs.c vect_equal_offsets.
7642 (dr_equal_offsets_p): New function.
7643 (find_data_references_in_bb): Remove static.
7644 * tree-data-ref.h (find_data_references_in_bb): Declare.
7645 (dr_equal_offsets_p): Likewise.
7646 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7647 (vect_drs_dependent_in_basic_block): Update calls to
7649 (vect_check_interleaving): Likewise.
7650 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7651 (cond_if_else_store_replacement): Rename to...
7652 (cond_if_else_store_replacement_1): ... this. Change arguments and
7654 (cond_if_else_store_replacement): New function.
7655 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7656 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7658 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7661 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7662 to subtract lower bound instead of GEN_INT().
7664 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7669 * doc/extend.texi (Alignment): Move section to match order in TOC.
7670 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7671 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7673 2011-03-23 Jeff Law <law@redhat.com>
7675 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7676 before removing the edge.
7678 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7679 it may have been freed by redirect_branch_edge or
7680 redirect_edge_succ_nodup.
7682 2011-03-23 Richard Guenther <rguenther@suse.de>
7684 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7685 (check_va_list_escapes): Likewise.
7686 (check_all_va_list_escapes): Likewise.
7688 2011-03-23 Richard Guenther <rguenther@suse.de>
7690 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7691 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7692 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7693 (alias.o): Likewise.
7694 (ipa-type-escape.o): Remove.
7695 (ipa-struct-reorg.o): Likewise.
7696 (GTFILES): Remove ipa-struct-reorg.c.
7697 * alias.c: Do not include ipa-type-escape.h.
7698 * tree-ssa-alias.c: Likewise.
7699 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7700 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7701 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7702 and ipa-type-escape passes.
7703 * tree-pass.h (pass_ipa_type_escape): Remove.
7704 (pass_ipa_struct_reorg): Likewise.
7705 * ipa-struct-reorg.h: Remove.
7706 * ipa-struct-reorg.c: Likewise.
7707 * ipa-type-escape.h: Likewise.
7708 * ipa-type-escape.c: Likewise.
7709 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7710 (--param struct-reorg-cold-struct-ratio): Likewise.
7711 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7712 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7713 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7715 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7717 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7718 cpu attribute value.
7719 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7720 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7721 * config/s390/s390.c (processor_flags_table): New constant array.
7722 (s390_handle_arch_option): Remove.
7723 (s390_handle_option): Remove s390_handle_arch_option invocations
7724 and OPT_mwarn_framesize_ handling.
7725 (s390_option_override): Remove s390_handle_arch_option invocation.
7726 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7728 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7729 * config/s390/s390.opt (s390_tune, s390_arch)
7730 (march=): Replace s390_arch_option enum and values with
7731 processor_type. Set variable name to s390_arch. Set
7732 initialization value.
7733 (mtune=): Replace s390_arch_option with processor_type. Set
7734 variable name to s390_tune. Set initialization value.
7736 2011-03-23 Julian Brown <julian@codesourcery.com>
7738 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7739 accesses which are not naturally aligned.
7741 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7744 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7746 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7748 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7749 parameter from "int" to "enum insn_code".
7750 (expand_operand_type): New enum.
7751 (expand_operand): New structure.
7752 (create_expand_operand): New function.
7753 (create_fixed_operand, create_output_operand): Likewise
7754 (create_input_operand, create_convert_operand_to): Likewise.
7755 (create_convert_operand_from, create_address_operand): Likewise.
7756 (create_integer_operand): Likewise.
7757 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7758 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7759 (expand_insn, expand_jump_insn): Likewise.
7760 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7761 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7762 (expand_movstr, expand_builtin___clear_cache): Likewise.
7763 (expand_builtin_lock_release): Likewise.
7764 * explow.c (allocate_dynamic_stack_space): Likewise.
7765 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7766 and use the default handling in that case.
7767 * expmed.c (check_predicate_volatile_ok): Delete.
7768 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7769 (emit_cstore): Likewise.
7770 * expr.c (emit_block_move_via_movmem): Likewise.
7771 (set_storage_via_setmem, expand_assignment): Likewise.
7772 (emit_storent_insn, try_casesi): Likewise.
7773 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7774 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7775 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7776 (expand_twoval_unop, expand_twoval_binop): Likewise.
7777 (expand_unop_direct, emit_indirect_jump): Likewise.
7778 (emit_conditional_move, vector_compare_rtx): Likewise.
7779 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7780 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7781 (expand_sync_lock_test_and_set): Likewise.
7782 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7783 (emit_unop_insn): Likewise.
7784 (expand_copysign_absneg): Change icode to an insn_code.
7785 (create_convert_operand_from_type): New function.
7786 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7787 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7788 (expand_insn, expand_jump_insn): Likewise.
7789 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7790 than const_int_operand for operand 2.
7792 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7794 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7797 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7799 * emit-rtl.c (emit_pattern_before_noloc): New function.
7800 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7801 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7802 (emit_pattern_after_noloc): New function.
7803 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7804 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7806 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7808 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7809 (__ffsDI2): Likewise.
7811 2011-03-22 Richard Henderson <rth@redhat.com>
7813 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7814 of !TARGET_ABI_OPEN_VMS.
7815 (alpha_trampoline_init, alpha_start_function): Likewise.
7816 (alpha_expand_epilogue, alpha_file_start): Likewise.
7817 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7818 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7819 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7820 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7821 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7823 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7825 * config/s390/s390-opts.h: New.
7826 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7827 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7828 s390_stack_guard): Remove.
7829 (s390_handle_arch_option): Return void. Take enum
7830 s390_arch_option value instead of string and searching array.
7831 (s390_handle_option): Don't assert that global structures are in
7832 use. Access variables via opts pointer. Use error_at. Don't use
7833 sscanf for -mstack-guard= or -mstack-size=. Update call to
7834 s390_handle_arch_option.
7835 (s390_option_override): Update call to s390_handle_arch_option.
7836 (s390_emit_prologue): Use %d format for s390_stack_size in
7837 diagnostic. Use %wd for HOST_WIDE_INT.
7838 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7839 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7840 * config/s390/s390.opt (config/s390/s390-opts.h): New
7841 HeaderInclude entry.
7842 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7843 s390_arch_flags, s390_warn_framesize): New Variable entries.
7844 (s390_arch_option): New Enum and EnumValue entries.
7845 (march=): Use Enum instead of Var.
7846 (mstack-guard=, mstack-size=): Use UInteger and Var.
7849 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7851 * config/score/score.c (score_handle_option): Don't assert that
7852 global structures are in use. Access target_flags via opts
7853 pointer. Use value of -march= option to determine target_flags
7855 * config/score/score.opt (march=): Use Enum.
7856 (score_arch): New Enum and EnumValue entries.
7858 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7860 * config/mep/mep.c (option_mtiny_specified): Remove.
7861 (mep_option_override): Move register handling for -mivc2 from
7862 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7863 instead of option_mtiny_specified.
7864 (mep_handle_option): Access target_flags via opts pointer. Don't
7865 assert that global structures are in use. Defer part of -mivc2
7866 handling and move it to mep_option_override.
7867 * config/mep/mep.opt (IVC2): New Mask entry.
7868 (mivc2): Use Var and Defer instead of Mask.
7870 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7872 * config/v850/v850-opts.h: New.
7873 * config/v850/v850.c (small_memory): Replace with
7874 small_memory_physical_max array. Make that array static const.
7875 (v850_handle_memory_option): Take integer value of argument. Take
7876 gcc_options pointer, option text and location. Return void.
7877 Update for changes to small memory structures.
7878 (v850_handle_option): Access target_flags via opts pointer. Don't
7879 assert that global structures are in use. Update calls to
7880 v850_handle_memory_option.
7881 (v850_encode_data_area): Update references to small memory settings.
7882 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7883 (enum small_memory_type): Move to v850-opts.h.
7884 * config/v850/v850.opt (config/v850/v850-opts.h): New
7885 HeaderInclude entry.
7886 (small_memory_max): New Variable entry.
7887 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7888 (mtda, mzda): Likewise.
7890 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7892 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7893 pointer. Don't assert that global structures are in use.
7895 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7897 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7898 via opts pointer. Don't assert that global structures are in use.
7900 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7902 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7903 (munix=93): Use Var.
7904 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7905 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7906 * config/pa/pa-opts.h: New.
7907 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7908 (pa_handle_option): Don't assert that global structures are in
7909 use. Access target_flags via opts pointer. Don't handle
7910 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7912 (pa_option_override): Handle deferred OPT_mfixed_range_.
7914 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7916 * config/mn10300/mn10300-opts.h: New.
7917 * config/mn10300/mn10300.c (mn10300_processor,
7918 mn10300_tune_string): Remove.
7919 (mn10300_handle_option): Don't assert that global structures are
7920 in use. Access mn10300_processor via opts pointer. Don't handle
7922 * config/mn10300/mn10300.h (enum processor_type): Move to
7924 (mn10300_processor): Remove.
7925 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7926 HeaderInclude entry.
7927 (mn10300_processor): New Variable entry.
7930 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7932 * config/microblaze/microblaze.c: Don't include opts.h.
7933 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7934 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7935 (mno-clearbss): Use Var and Warn.
7937 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7939 * config/m32r/m32r-opts.h: New.
7940 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7941 (m32r_handle_option): Don't assert that global structures are in
7942 use. Access target_flags and m32r_cache_flush_func via opts
7943 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7944 OPT_mno_flush_trap here.
7945 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7946 include of m32r-opts.h.
7947 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7948 HeaderInclude entry.
7949 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7950 (mmodel=): Use Enum and Var.
7951 (m32r_model): New Enum and EnumValue entries.
7952 (mno-flush-trap): Use Var.
7953 (msdata=): Use Enum and Var.
7954 (m32r_sdata): New Enum and EnumValue entries.
7956 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7958 * config/m32c/m32c.c: Don't include opts.h.
7959 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7960 m32c_handle_option): Remove.
7961 (m32c_option_override): Check global_options_set.x_target_memregs
7962 instead of target_memregs_set.
7963 * config/m32c/m32c.h (target_memregs): Remove.
7964 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7967 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7969 * config/iq2000/iq2000-opts.h: New.
7970 * config/iq2000/iq2000.c: Don't include opts.h.
7971 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7972 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7973 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7974 HeaderInclude entry.
7975 (iq2000_tune): New Variable entry.
7976 (march=): Add comment. Use Enum.
7977 (iq2000_arch): New Enum and EnumValue entries.
7978 (mcpu=): Use Enum and Var.
7979 (iq2000_tune): New Enum and EnumValue entries.
7981 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7983 * config/ia64/ia64-opts.h: New.
7984 * config/ia64/ia64.c (ia64_tune): Remove.
7985 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7987 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7988 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7989 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7990 HeaderInclude entry.
7991 (ia64_tune): New Variable entry.
7992 (mfixed-range=): Use Defer and Var.
7993 (mtune=): Use Enum and Var.
7994 (ia64_tune): New Enum and EnumValue entries.
7996 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7998 * config/frv/frv-opts.h: New.
7999 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8001 (frv_cpu_type): Remove.
8002 * config/frv/frv.c: Don't include opts.h.
8003 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8004 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8005 (frv_cpu_type): New Variable entry.
8006 (frv_cpu): New Enum and EnumValue entries.
8008 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8010 * config/cris/cris.c (cris_handle_option): Access target_flags via
8011 opts pointer. Don't assert that global structures are in use.
8012 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8013 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8015 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8017 * config/bfin/bfin-opts.h: New.
8018 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8019 bfin_si_revision, bfin_workarounds): Remove.
8020 (bfin_cpus): Make static const.
8021 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8022 not bfin_lib_id_given.
8023 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8024 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8025 pointer. Use error_at. Don't assert that global structures are in use.
8026 * config/bfin/bfin.h: Include bfin-opts.h.
8027 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8028 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8029 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8030 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8033 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8035 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8036 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8037 or -msoft-float here.
8038 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8039 -msoft-float and -mhard-float.
8040 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8041 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8043 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8045 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8046 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8048 (LIBGCC_SPEC): Don't handle -msoft-float.
8049 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8051 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8053 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8054 -mfloat-abi=*, not -msoft-float and -mhard-float.
8055 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8057 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8058 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8059 mhard-float and msoft-float.
8060 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8061 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8062 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8063 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8065 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8066 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8068 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8070 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8073 2011-03-22 Richard Henderson <rth@redhat.com>
8075 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8076 TARGET_ABI_WINDOWS_NT.
8077 (alpha_output_function_end_prologue): Likewise.
8078 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8079 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8080 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8081 (trap, *movsi_nt_vms): Likewise.
8082 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8083 (*tablejump_osf_nt_internal): Remove.
8084 * config/alpha/predicates.md (input_operand): Only test Pmode.
8086 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8088 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8089 via opts pointer. Use error_at. Don't assert that global
8090 structures are in use.
8092 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8094 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8095 (ix86_handle_option): Access ix86_isa_flags and
8096 ix86_isa_flags_explicit via opts pointer. Don't assert that
8097 global structures are in use.
8098 (ix86_function_specific_save, ix86_function_specific_restore):
8099 Update ix86_isa_flags_explicit field name.
8100 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8101 (ix86_isa_flags_explicit): Rename TargetSave entry to
8102 x_ix86_isa_flags_explicit.
8104 2011-03-22 Richard Henderson <rth@redhat.com>
8106 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8107 (alpha_option_override, direct_return): Likewise.
8108 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8109 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8110 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8111 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8112 (alpha_expand_epilogue, alpha_end_function): Likewise.
8113 (alpha_init_libfuncs): Likewise.
8114 (struct machine_function): Remove unicosmk members.
8115 (print_operand) ['t']: Remove.
8116 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8117 unicosmk_output_module_name, unicosmk_output_common,
8118 current_section_align, unicosmk_output_text_section_asm_op,
8119 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8120 unicosmk_section_type_flags, unicosmk_unique_section,
8121 unicosmk_asm_named_section, unicosmk_insert_attributes,
8122 unicosmk_output_align, unicosmk_defer_case_vector,
8123 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8124 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8125 unicosmk_output_ssib, unicosmk_add_call_info_word,
8126 unicosmk_extern_head, unicosmk_output_default_externs,
8127 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8128 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8129 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8130 * config/alpha/alpha-protos.h: Update.
8131 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8132 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8133 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8134 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8135 (*mulsi_se, mulvsi3): Likewise.
8136 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8137 (*divmodsi_internal, call, call_value, realign): Likewise.
8138 (moddi3, umoddi3): Likewise; remove duplicate expander.
8139 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8140 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8141 (*movdi_nofix): Remove r/U alternative.
8142 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8143 * config/alpha/constraints.md ("U"): Remove.
8144 * config/alpha/predicates.md (call_operand"): Don't test
8145 TARGET_ABI_UNICOSMK.
8147 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8149 * target.def (handle_option): Take gcc_options and
8150 cl_decoded_option pointers and location_t.
8151 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8152 * doc/tm.texi: Regenerate.
8153 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8154 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8155 * lto-opts.c (lto_reissue_options): Generate option structure for
8156 targetm.handle_option call.
8157 * opts.c (target_handle_option): Update call to
8158 targetm.handle_option. Remove assertions about values now passed
8160 * targhooks.c (default_target_handle_option): New.
8161 * targhooks.h (default_target_handle_option): Declare.
8162 * config/alpha/alpha.c: Include opts.h.
8163 (alpha_handle_option): Update to new hook interface.
8164 * config/arm/arm.c: Include opts.h.
8165 (arm_handle_option): Update to new hook interface.
8166 * config/arm/t-arm (arm.o): Update dependencies.
8167 * config/bfin/bfin.c: Include opts.h.
8168 (bfin_handle_option): Update to new hook interface.
8169 * config/cris/cris.c: Include opts.h.
8170 (cris_handle_option): Update to new hook interface.
8171 * config/frv/frv.c: Include opts.h.
8172 (frv_handle_option): Update to new hook interface.
8173 * config/i386/i386.c: Include opts.h.
8174 (ix86_handle_option): Update to new hook interface.
8175 (ix86_valid_target_attribute_inner_p): Generate option structure
8176 for call to ix86_handle_option.
8177 * config/i386/t-i386 (i386.o): Update dependencies.
8178 * config/ia64/ia64.c: Include opts.h.
8179 (ia64_handle_option): Update to new hook interface.
8180 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8181 * config/iq2000/iq2000.c: Include opts.h.
8182 (iq2000_handle_option): Update to new hook interface.
8183 * config/m32c/m32c.c: Include opts.h.
8184 (m32c_handle_option): Update to new hook interface.
8185 * config/m32r/m32r.c: Include opts.h.
8186 (m32r_handle_option): Update to new hook interface.
8187 * config/m68k/m68k.c: Include opts.h.
8188 (m68k_handle_option): Update to new hook interface.
8189 * config/mep/mep.c: Include opts.h.
8190 (mep_handle_option): Update to new hook interface.
8191 * config/microblaze/microblaze.c: Include opts.h.
8192 (microblaze_handle_option): Update to new hook interface.
8193 * config/mips/mips.c: Include opts.h.
8194 (mips_handle_option): Update to new hook interface.
8195 * config/mn10300/mn10300.c: Include opts.h.
8196 (mn10300_handle_option): Update to new hook interface.
8197 * config/pa/pa.c: Include opts.h.
8198 (pa_handle_option): Update to new hook interface.
8199 * config/pdp11/pdp11.c: Include opts.h.
8200 (pdp11_handle_option): Update to new hook interface.
8201 * config/rs6000/rs6000.c: Include opts.h.
8202 (rs6000_handle_option): Update to new hook interface.
8203 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8204 * config/rx/rx.c: Include opts.h.
8205 (rx_handle_option): Update to new hook interface.
8206 * config/s390/s390.c: Include opts.h.
8207 (s390_handle_option): Update to new hook interface.
8208 * config/score/score.c: Include opts.h.
8209 (score_handle_option): Update to new hook interface.
8210 * config/sh/sh.c: Include opts.h.
8211 (sh_handle_option): Update to new hook interface.
8212 * config/sparc/sparc.c: Include opts.h.
8213 (sparc_handle_option): Update to new hook interface.
8214 * config/v850/v850.c: Include opts.h.
8215 (v850_handle_option): Update to new hook interface.
8217 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8219 * gcc.c (driver_unknown_option_callback): Only permit and save
8220 unknown -Wno- options.
8221 (driver_wrong_lang_callback): Save options directly instead of via
8222 driver_unknown_option_callback.
8224 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8226 * combine.c (simplify_set): Try harder to find the best CC mode when
8227 simplifying a nested COMPARE on the RHS.
8229 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8231 * config/alpha/gnu.h: Remove.
8232 * config/arc: Remove directory.
8233 * config/arm/netbsd.h: Remove.
8234 * config/arm/t-pe: Remove.
8235 * config/crx: Remove directory.
8236 * config/i386/netbsd.h: Remove.
8237 * config/m68hc11: Remove directory.
8238 * config/m68k/uclinux-oldabi.h: Remove.
8239 * config/mcore/mcore-pe.h: Remove.
8240 * config/mcore/t-mcore-pe: Remove.
8241 * config/netbsd-aout.h: Remove.
8242 * config/rs6000/gnu.h: Remove.
8243 * config/sh/sh-symbian.h: Remove.
8244 * config/sh/symbian-base.c: Remove.
8245 * config/sh/symbian-c.c: Remove.
8246 * config/sh/symbian-cxx.c: Remove.
8247 * config/sh/symbian-post.h: Remove.
8248 * config/sh/symbian-pre.h: Remove.
8249 * config/sh/t-symbian: Remove.
8250 * config/svr3.h: Remove.
8251 * config/vax/netbsd.h: Remove.
8252 * config.build: Don't handle i[34567]86-*-pe.
8253 * config.gcc: Remove handling of deprecations for most deprecated
8255 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8256 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8257 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8258 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8259 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8260 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8262 * config.host: Don't handle i[34567]86-*-pe.
8263 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8264 (ASM_SPEC32): Don't handle -mcall-gnu.
8265 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8267 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8268 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8269 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8270 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8271 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8272 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8273 conditional on SYMBIAN.
8274 * configure.ac: Don't handle powerpc*-*-gnu*.
8275 * configure: Regenerate.
8276 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8277 * doc/install-old.texi (m6811, m6812): Don't mention.
8278 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8279 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8280 (m68k-uclinuxoldabi): Don't mention.
8281 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8283 (-mcall-gnu): Remove.
8284 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8285 families): Remove constraint documentation.
8287 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8289 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8290 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8291 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8293 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8296 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8297 vector when peeking at the next token for vector, don't expand the
8300 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8302 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8303 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8304 * config/avr/avr.c (init_cumulative_args)
8305 (avr_function_arg_advance): Use it.
8306 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8308 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8309 (avr_function_ok_for_sibcall): ...this new function.
8310 (avr_lookup_function_attribute1): New static Function.
8311 (avr_naked_function_p, interrupt_function_p)
8312 (signal_function_p, avr_OS_task_function_p)
8313 (avr_OS_main_function_p): Use it.
8314 * config/avr/avr.md ("sibcall", "sibcall_value")
8315 ("sibcall_epilogue"): New expander.
8316 ("*call_insn", "*call_value_insn"): New insn.
8317 ("call_insn", "call_value_insn"): Remove
8318 ("call", "call_value", "epilogue"): Change expander to handle
8321 2011-03-21 Nick Clifton <nickc@redhat.com>
8323 * doc/invoke.texi (Overall Options): Move closing brace to end of
8325 (Optimization Options): Add missing @gol.
8326 (Directory Options): Likewise.
8327 (i386 and x86-64 Options): Likewise.
8328 (RS6000 and PowerPC Options): Likewise.
8329 (i386 and x86-64 Windows Options): Likewise.
8330 (V850 Options): Add text missing from descriptions.
8332 2011-03-22 Richard Henderson <rth@redhat.com>
8334 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8335 (avr_incoming_return_addr_rtx): New.
8336 (emit_push_byte): New.
8337 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8338 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8339 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8340 (emit_pop_byte): New.
8341 (expand_epilogue): Use it. Pop frame pointer by bytes.
8342 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8343 (INCOMING_RETURN_ADDR_RTX): New.
8344 (INCOMING_FRAME_SP_OFFSET): New.
8345 (ARG_POINTER_CFA_OFFSET): New.
8346 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8347 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8350 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8352 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8354 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8355 (FUNCTION_ARG_ADVANCE): Likewise.
8356 * tm.texi.in: Change references to them to hook references.
8357 * tm.texi: Regenerate.
8358 * targhooks.c (default_function_arg): Eliminate check for target
8360 (default_function_incoming_arg): Likewise.
8361 (default_function_arg_advance): Likewise.
8362 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8363 (function_arg_advance): Likewise.
8364 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8366 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8368 * tree.c (build_call_1): New function.
8369 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8371 2011-03-22 Richard Guenther <rguenther@suse.de>
8373 PR tree-optimization/48228
8374 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8375 for single-arg PHIs.
8377 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8379 PR rtl-optimization/48143
8380 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8381 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8382 sse2_cvtps2pd): Likewise.
8384 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8386 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8388 2011-03-22 Richard Guenther <rguenther@suse.de>
8390 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8391 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8392 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8393 and REALIGN_LOAD_EXPR.
8394 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8395 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8396 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8397 DOT_PROD_EXPR case ...
8398 (expand_expr_real_2): ... here.
8399 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8400 and REALIGN_LOAD_EXPR.
8401 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8402 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8403 (vect_create_epilog_for_reduction): Likewise.
8404 (vectorizable_reduction): Likewise.
8405 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8406 * tree-vect-stmts.c (vectorizable_load): Likewise.
8408 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8410 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8412 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8414 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8415 handling for PLTOFF/GOTOFF.
8417 2011-03-22 Nick Clifton <nickc@redhat.com>
8419 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8420 trailing backslash from the end of the macro definition.
8422 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8424 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8427 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8429 * expr.h (prepare_operand): Move to...
8430 * optabs.h (prepare_operand): ...here and change the insn code
8431 parameter from "int" to "enum insn_code".
8432 (insn_operand_matches): Declare.
8433 * expr.c (init_expr_target): Use insn_operand_matches.
8434 (compress_float_constant): Likewise.
8435 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8436 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8437 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8438 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8440 (gen_cond_trap): Likewise.
8441 (prepare_operand): Likewise. Change icode to an insn_code.
8442 (insn_operand_matches): New function.
8443 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8444 * reload1.c (gen_reload): Likewise.
8445 * targhooks.c (default_secondary_reload): Likewise.
8447 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8449 * config/alpha/alpha.md (unspec): New define_c_enum.
8452 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8455 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8456 between a call and its CALL_ARG_LOCATION note.
8458 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8460 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8462 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8466 * c-common.c (shorten_compare): If primopN is first sign-extended
8467 to opN and then zero-extended to result type, set primopN to opN.
8469 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8471 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8472 for barrier handlers.
8474 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8476 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8477 UNSPEC constants to be in the unspec enumeration, and redefine
8478 all UNSPECV constants to be in the unspecv enumeration, so that
8479 dumps print which unspec/unspec_volatile this is.
8480 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8481 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8482 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8483 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8484 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8486 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8487 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8488 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8489 * config/rs6000/sync.md (isync, lwsync): Ditto.
8491 2011-03-21 Richard Guenther <rguenther@suse.de>
8493 * params.def (lto-min-partition): Fix typo.
8495 2011-03-21 Richard Guenther <rguenther@suse.de>
8498 * c-decl.c (grokdeclarator): Drop to the main variant only
8499 for array types. Drop flag_gen_aux_info check.
8501 2011-03-21 Richard Guenther <rguenther@suse.de>
8503 PR translation/47911
8504 * params.def (lto-partitions): Fix typo.
8505 (lto-min-partition): Fix wording.
8507 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8509 * config/rs6000/t-freebsd: Remove duplication from file.
8511 2011-03-21 Richard Guenther <rguenther@suse.de>
8514 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8516 2011-03-21 Richard Guenther <rguenther@suse.de>
8519 * params.def (lto-partitions): Require at least 1 partition.
8521 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8523 * gthr-solaris.h: Remove.
8524 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8525 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8526 (LIB_SPEC): Likewise.
8527 * config/sol2.opt (threads): Remove.
8528 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8529 (sparc*-*-solaris2*): Likewise.
8530 * configure.ac (enable_threads): Enable solaris support.
8531 * configure: Regenerate.
8532 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8533 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8536 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8538 * config.gcc: Obsolete *-*-solaris2.8*.
8539 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8541 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8544 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8545 reference. Solaris 8 perl works.
8547 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8550 * doc/install.texi (Prerequisites): Move jar etc. up.
8551 Explain support library version requirements.
8553 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8556 * doc/install.texi (Prerequisites): Move Perl to build
8557 requirements. Always necessary on Solaris 2 with Sun ld.
8559 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8561 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8563 (Specific, i?86-*-solaris2.[89]): Likewise.
8564 (Specific, i?86-*-solaris2.10): Likewise.
8565 (Specific, mips-sgi-irix6): Likewise.
8566 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8567 Update for binutils 2.21.
8569 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8571 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8572 Allow -fuse-linker-plugin for non-default plugin linker.
8573 * configure: Regenerate.
8575 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8578 * gengtype.c (files_rules): Added rule for cp/parser.h.
8580 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8583 * config/s390/s390.c (s390_delegitimize_address): Don't call
8584 lowpart_subreg if orig_x has BLKmode.
8586 2011-03-21 Kai Tietz <ktietz@redhat.com>
8589 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8590 * tree.h (attribute_spec): Add new member affects_type_identity.
8591 * attribs.c (empty_attribute_table): Adjust attribute_spec
8593 * config/alpha/alpha.c: Likewise.
8594 * config/arc/arc.c: Likewise.
8595 * config/arm/arm.c: Likewise.
8596 * config/avr/avr.c: Likewise.
8597 * config/bfin/bfin.c: Likewise.
8598 * config/crx/crx.c: Likewise.
8599 * config/darwin.h: Likewise.
8600 * config/h8300/h8300.c: Likewise.
8601 * config/i386/cygming.h: Likewise.
8602 * config/i386/i386.c: Likewise.
8603 * config/ia64/ia64.c: Likewise.
8604 * config/m32c/m32c.c: Likewise.
8605 * config/m32r/m32r.c: Likewise.
8606 * config/m68hc11/m68hc11.c: Likewise.
8607 * config/m68k/m68k.c: Likewise.
8608 * config/mcore/mcore.c: Likewise.
8609 * config/mep/mep.c: Likewise.
8610 * config/microblaze/microblaze.c: Likewise.
8611 * config/mips/mips.c: Likewise.
8612 * config/rs6000/rs6000.c: Likewise.
8613 * config/rx/rx.c: Likewise.
8614 * config/sh/sh.c: Likewise.
8615 * config/sol2.h: Likewise.
8616 * config/sparc/sparc.c: Likewise.
8617 * config/spu/spu.c: Likewise.
8618 * config/stormy16/stormy16.c: Likewise.
8619 * config/v850/v850.c: Likewise.
8621 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8623 * simplify-rtx.c (simplify_binary_operation_1): Handle
8624 (xor (and A B) C) case when B and C are both constants.
8626 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8628 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8630 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8633 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8635 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8637 PR rtl-optimization/48156
8638 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8639 assume df and df_lr are not NULL.
8641 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8644 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8645 between a call and its CALL_ARG_LOCATION note.
8647 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8650 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8651 between a call and its corresponding CALL_ARG_LOCATION note.
8653 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8655 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8656 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8657 * haifa-sched.c (setup_ref_regs): Ditto.
8658 * caller-save.c (add_used_regs_1): Ditto.
8659 * dse.c (look_for_hardregs): Ditto.
8660 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8661 * sched-rgn.c (check_live_1): Ditto.
8663 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8665 * c-decl.c (diagnose_mismatched_decls): Give an error for
8666 redefining a typedef with variably modified type.
8668 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8670 * c-decl.c (grokfield): Don't allow typedefs for structures or
8671 unions with no tag by default.
8672 * doc/extend.texi (Unnamed Fields): Update.
8674 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8676 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8677 Rewrite using indirect functions.
8678 (lwp_slwpcb): Ditto.
8679 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8680 (avx_vinsertf128<mode>): Ditto.
8682 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8684 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8687 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8689 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8690 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8692 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8694 PR rtl-optimization/48170
8695 * gcse.c (hoist_code): Remove bogus asserts.
8697 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8699 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8700 computation for prologue/epilogue.
8702 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8704 * Makefile.in (check-consistency): Remove.
8706 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8709 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8710 arange_table_in_use is 0, but either text_section_used or
8711 cold_text_section_used is true. Don't call it if
8712 !info_section_emitted.
8714 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8716 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8717 FUNCTION_VALUE_REGNO_P): Remove.
8718 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8720 * config/avr/avr.c (avr_ret_register): Make static inline.
8721 (avr_function_value_regno_p): New function.
8722 (avr_libcall_value): Make static. Add 'func' argument.
8723 (avr_function_value): Make static. Rename 'func' argument to
8724 'fn_decl_or_type', forward it to avr_libcall_value. Call
8725 avr_ret_register function instead of RET_REGISTER macro.
8726 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8728 2011-03-18 Jason Merrill <jason@redhat.com>
8731 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8733 2011-03-18 Richard Guenther <rguenther@suse.de>
8735 * doc/install.texi (--enable-gold): Remove.
8736 (--with-plugin-ld): Document.
8737 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8739 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8742 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8743 again after expansion changes.
8745 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8747 * combine.c (try_combine): Do simplification only call of
8748 subst() on i2 even when i1 is present. Update comments.
8750 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8752 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8753 and UNSPEC_PCREL_SYMOFF.
8755 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8757 * config/s390/s390.md: Use define_c_enum for the unspec constant
8760 2011-03-18 Richard Henderson <rth@redhat.com>
8761 Jakub Jelinek <jakub@redhat.com>
8764 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8765 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8767 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8770 * combine.c (cant_combine_insn_p): Don't check zero/sign
8771 extended hard registers.
8773 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8776 * combine.c (cant_combine_insn_p): Check zero/sign extended
8779 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8781 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8782 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8783 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8784 Change return type to bool.
8785 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8787 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8790 * var-tracking.c (prepare_call_arguments): If CALL target
8791 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8792 pc instead of looking it up using cselib_lookup and use
8793 Pmode for it if x has VOIDmode.
8794 * dwarf2out.c (gen_subprogram_die): If also both first and
8795 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8798 * function.c (assign_parms): For data.passed_pointer parms
8799 use MEM of data.entry_parm instead of data.entry_parm itself
8800 as DECL_INCOMING_RTL.
8801 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8802 also when passed and declared mode is the same, DECL_RTL
8803 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8806 2011-03-16 Jeff Law <law@redhat.com>
8808 PR rtl-optimization/37273
8809 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8810 handle them like argument loads from stack slots. Do not double
8811 count memory for memory constants and argument loads from stack slots.
8813 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8816 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8818 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8821 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8823 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8826 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8828 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8829 Clear call_arg_locations and call_arg_loc_last always.
8832 * var-tracking.c (prepare_call_arguments): If argument needs to be
8833 passed by reference, adjust argtype and mode.
8835 2011-03-17 Richard Guenther <rguenther@suse.de>
8838 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8839 a value make sure to fold the statement.
8841 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8844 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8845 return condition with !cfun->calls_alloca.
8847 2011-03-17 Richard Guenther <rguenther@suse.de>
8850 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8851 origin for decls in other ltrans units.
8852 (input_varpool_node): Likewise.
8854 2011-03-17 Richard Guenther <rguenther@suse.de>
8857 * tree-object-size.c (compute_object_offset): Properly return
8858 the offset operand of MEM_REFs as sizetype.
8860 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8862 PR rtl-optimization/48141
8863 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8864 * dse.c: Include params.h.
8865 (active_local_stores_len): New variable.
8866 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8868 (record_store, check_mem_read_rtx): Decrease it when removing
8870 (scan_insn): Likewise. Increase it when adding to chain, if it
8871 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8872 set active_local_stores to NULL before the addition.
8873 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8875 PR rtl-optimization/48141
8876 * dse.c (record_store): If no positions are needed in an insn
8877 that cannot be deleted, at least unchain it from active_local_stores.
8879 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8882 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8883 (lookup_type_die_strip_naming_typedef): ... here.
8884 (get_context_die): Use it.
8885 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8886 the anonymous struct named by the naming typedef.
8888 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8891 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8892 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8894 2011-03-16 Jeff Law <law@redhat.com>
8896 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8897 check for operands of conditional. Allow type to be a pointer.
8899 2011-03-16 Richard Guenther <rguenther@suse.de>
8901 PR tree-optimization/48149
8902 * fold-const.c (fold_binary_loc): Fold
8903 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8905 2011-03-16 Richard Guenther <rguenther@suse.de>
8907 PR tree-optimization/26134
8908 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8909 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8910 (non_rewritable_mem_ref_base): Handle complex type component
8911 accesses, constrain offsets for vector and complex extracts
8914 2011-03-16 Richard Guenther <rguenther@suse.de>
8916 PR tree-optimization/48146
8917 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8918 operands avoiding the need for renaming.
8920 2011-03-16 Richard Guenther <rguenther@suse.de>
8922 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8923 constant folding. Move MEM_REF canonicalization first.
8924 Rely on fold_const_aggregate_ref for initializer folding.
8925 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8927 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8930 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8931 arg0/arg1 or their arguments are always fold converted to matching
8934 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8937 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8940 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8941 Handle in-tree gold.
8942 (ld_vers): Extract binutils version for gold.
8943 (gcc_cv_ld_hidden): Handle gold here.
8944 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8945 * configure: Regenerate.
8946 * config.in: Regenerate.
8947 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8948 -fuse-linker-plugin otherwise.
8949 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8950 (LINK_COMMAND_SPEC): Use it.
8951 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8953 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8955 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8956 * calls.c: Remove debug.h include.
8957 (emit_call_1): Don't call virtual_call_token debug hook.
8958 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8959 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8960 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8961 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8962 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8963 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8964 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8965 dwarf2out_virtual_call): Remove.
8966 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8967 copy_call_info and virtual_call hooks.
8968 (dwarf2out_init): Don't initialize vcall_insn_table,
8969 debug_dcall_section and debug_vcall_section.
8970 (prune_unused_types): Don't mark nodes from dcall_table.
8971 (dwarf2out_finish): Don't output dcall or vcall tables.
8972 * final.c (final_scan_insn): Don't call direct_call or
8973 virtual_call debug hooks.
8974 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8975 virtual_call_token, copy_call_info and virtual_call hooks.
8976 (debug_nothing_uid): Remove prototype.
8977 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8978 copy_call_info and virtual_call hooks.
8979 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8980 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8981 * debug.c (do_nothing_debug_hooks): Likewise.
8982 (debug_nothing_uid): Remove.
8983 * doc/invoke.texi (-fenable-icf-debug): Remove.
8984 * common.opt (-fenable-icf-debug): Likewise.
8986 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8987 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8988 call's MEM. Handle functions returning aggregate through a hidden
8989 first pointer. For virtual calls add clobbered pc to call arguments
8991 * dwarf2out.c (gen_subprogram_die): Emit
8992 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8996 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8997 * rtl.h (ENTRY_VALUE_EXP): Define.
8998 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8999 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9000 * print-rtl.c (print_rtx): Likewise.
9001 * gengtype.c (adjust_field_rtx_def): Likewise.
9002 * var-tracking.c (vt_add_function_parameter): Adjust
9003 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9004 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9005 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9006 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9007 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9009 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9010 Call var_location debug hook even on CALL_INSNs.
9011 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9012 * rtl.def (ENTRY_VALUE): New.
9013 * dwarf2out.c: Include cfglayout.h.
9014 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9015 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9016 (struct call_arg_loc_node): New type.
9017 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9018 tail_call_site_count): New variables.
9019 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9020 DW_TAG_GNU_call_site_parameter.
9021 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9022 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9023 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9024 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9025 and DW_AT_GNU_all_source_call_sites.
9026 (mem_loc_descriptor): Handle ENTRY_VALUE.
9027 (add_src_coords_attributes): Don't add enything if
9028 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9029 (dwarf2out_abstract_function): Save and clear call_arg_location,
9030 call_site_count and tail_call_site_count around dwarf2out_decl call.
9031 (gen_call_site_die): New function.
9032 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9033 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9034 (dwarf2out_function_decl): Clear call_arg_locations,
9035 call_arg_loc_last, set call_site_count and tail_call_site_count
9036 to -1 and free block_map.
9037 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9038 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9039 followed by any real instructions.
9040 (dwarf2out_begin_function): Set call_site_count and
9041 tail_call_site_count to 0.
9042 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9043 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9044 attempt to force a DIE for it and worst case remove the attribute.
9045 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9046 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9048 * var-tracking.c: Include tm_p.h.
9049 (vt_stack_adjustments): For calls call note_register_arguments.
9050 (argument_reg_set): New variable.
9051 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9052 ensure the VALUE is resolved.
9053 (call_arguments): New variable.
9054 (prepare_call_arguments): New function.
9055 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9056 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9057 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9058 always use the best expression.
9059 (vt_expand_loc): Add ignore_cur_loc argument.
9060 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9061 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9062 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9064 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9065 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9066 argument. Don't call cselib_preserve_only_values and
9068 (note_register_arguments): New function.
9069 (vt_initialize): Compute argument_reg_set. Call
9070 vt_add_function_parameters before processing basic blocks instead of
9071 afterwards. For calls call prepare_call_arguments before calling
9072 cselib_process_insn.
9073 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9074 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9075 (var-tracking.o): Depend on $(TM_P_H).
9076 * cfglayout.h (insn_scope): New prototype.
9077 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9078 * cfglayout.c (insn_scope): No longer static.
9079 * insn-notes.def (CALL_ARG_LOCATION): New.
9080 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9081 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9082 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9083 nothing for DECL_EXTERNAL BLOCK_VARS.
9085 2011-03-16 Alan Modra <amodra@gmail.com>
9088 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9089 create invalid offset address for vsx splat insn.
9090 * config/rs6000/predicates.md (splat_input_operand): New.
9091 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9093 2011-03-15 Xinliang David Li <davidxl@google.com>
9096 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9097 (normalize_preds): New function.
9098 (is_use_properly_guarded): Normalize def predicates.
9100 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9103 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9104 in the output template.
9106 2011-03-15 Richard Guenther <rguenther@suse.de>
9109 * tree-pretty-print.c (dump_function_declaration): Properly
9110 dump unprototyped and varargs function types.
9112 2011-03-15 Richard Guenther <rguenther@suse.de>
9114 PR tree-optimization/13954
9115 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9118 2011-03-15 Richard Guenther <rguenther@suse.de>
9120 PR tree-optimization/48037
9121 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9122 selects into BIT_FIELD_REFs.
9123 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9126 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9128 PR tree-optimization/48129
9129 * builtins.c (fold_builtin_snprintf): Convert to type of
9130 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9131 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9133 2011-03-15 Richard Guenther <rguenther@suse.de>
9135 PR tree-optimization/41490
9136 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9137 value but with VUSE.
9138 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9140 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9141 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9142 * tree-tailcall.c (find_tail_calls): Ignore returns.
9144 2011-03-15 Richard Guenther <rguenther@suse.de>
9147 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9148 or variable-indexed array accesses when in gimple form.
9150 2011-03-15 Richard Guenther <rguenther@suse.de>
9152 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9154 2011-03-15 Alan Modra <amodra@gmail.com>
9157 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9158 presume symbol_refs without a symbol_ref_decl are suitably
9159 aligned, nor other trees we may see here. Handle anchor symbols.
9160 (legitimate_constant_pool_address_p): Comment. Add mode param.
9161 Check cmodel=medium addresses. Adjust all calls.
9162 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9163 creating cmodel=medium optimized access to locals.
9164 * config/rs6000/constraints.md (R): Pass QImode to
9165 legitimate_constant_pool_address_p.
9166 * config/rs6000/predicates.md (input_operand): Pass mode to
9167 legitimate_constant_pool_address_p.
9168 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9171 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9174 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9175 64-bit constants being loaded into registers other than GPRs such
9176 as loading 0 into a VSX register.
9178 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9180 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9182 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9185 * builtins.c (fold_builtin_snprintf): New function.
9186 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9187 (fold_builtin_4): Likewise.
9190 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9191 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9192 and C - X == X also strip nops from +/-/p+ operand.
9193 When optimizing -X == C, fold C to arg0's type.
9196 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9197 emit it as add_AT_int instead of add_AT_unsigned.
9199 2011-03-14 Tom Tromey <tromey@redhat.com>
9201 * unwind-dw2.c: Include sys/sdt.h if it exists.
9202 (_Unwind_DebugHook): Use STAP_PROBE2.
9203 * config.in, configure: Rebuild.
9204 * configure.ac: Check for sys/sdt.h.
9206 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9208 * config/i386/i386.md (ROUND_FLOOR): New constant.
9209 (ROUND_CEIL): Ditto.
9210 (ROUND_TRUNC): Ditto.
9211 (ROUND_MXCSR): Ditto.
9212 (ROUND_NO_EXC): Ditto.
9213 (rint<mode>2): Use new defines instead of numerical constants.
9214 (floor<mode>2): Ditto.
9215 (ceil<mode>2): Ditto.
9216 (btrunc<mode>2): Ditto.
9217 * config/i386/i386-builtin-types.def: Define ROUND function type
9219 * config/i386/i386.c (enum ix86_builtins): Add
9220 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9221 (struct builtin_description): Add
9222 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9223 (ix86_expand_sse_round): New static function.
9224 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9226 (ix86_builtin_vectorized_function): Handle
9227 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9229 2011-03-14 Tom Tromey <tromey@redhat.com>
9231 * c-parser.c (c_parser_asm_string_literal): Clear
9232 warn_overlength_strings.
9234 2011-03-14 Tom Tromey <tromey@redhat.com>
9236 * c-parser.c (disable_extension_diagnostics): Save
9237 warn_overlength_strings.
9238 (restore_extension_diagnostics): Restore warn_overlength_strings.
9240 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9242 * BASE-VER: Change to 4.7.0.
9244 2011-03-14 Richard Guenther <rguenther@suse.de>
9247 * tree.c (build_vector_from_val): Adjust assert to requirements
9250 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9253 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9255 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9257 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9258 terms of target_flags_explicit. Adjust copyright year.
9260 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9261 * config/rs6000/t-freebsd: New file. Add override for
9264 2011-03-13 Chris Demetriou <cgd@google.com>
9266 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9267 (-fno-diagnostics-show-option): this, to reflect current default.
9268 (-Werror=): Update text about -fno-diagnostics-show-option.
9270 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9273 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9274 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9275 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9276 mode is not V2DImode or V2DFmode.
9277 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9278 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9279 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9281 (movdi_internal64): Likewise.
9283 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9285 PR tree-optimization/47127
9286 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9288 (set_cloog_options): Same.
9289 (scop_to_clast): Same.
9290 (print_clast_stmt): Do not call cloog_state_malloc and
9292 (print_generated_program): Same.
9294 * graphite-clast-to-gimple.h (cloog_state): Declared.
9295 (scop_to_clast): Adjust declaration.
9296 * graphite.c (cloog_state): Defined here.
9297 (graphite_initialize): Call cloog_state_malloc.
9298 (graphite_finalize): Call cloog_state_free.
9300 2011-03-11 Jason Merrill <jason@redhat.com>
9302 * attribs.c (lookup_attribute_spec): Take const_tree.
9305 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9307 * config/sparc/sparc.c (sparc_option_override): Use
9308 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9310 2011-03-11 Richard Guenther <rguenther@suse.de>
9312 PR tree-optimization/48067
9313 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9314 multiplication result will be only used once on the target
9317 2011-03-11 Richard Guenther <rguenther@suse.de>
9319 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9321 2011-03-11 Richard Guenther <rguenther@suse.de>
9324 * tree.c (find_decls_types_r): Do not walk types only reachable
9325 from IDENTIFIER_NODEs.
9327 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9330 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9331 all vnode->force_output nodes as needed.
9333 2011-03-11 Jason Merrill <jason@redhat.com>
9336 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9337 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9339 2011-03-11 Martin Jambor <mjambor@suse.cz>
9341 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9344 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9346 PR tree-optimization/48063
9347 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9348 inline functions called once if !tree_can_inline_p (node->callers).
9350 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9352 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9354 * config/score/score3.c: Delete.
9355 * config/score/score3.h: Delete.
9356 * config/score/mul-div.S: Delete.
9357 * config/score/sfp-machine.h: Add new file.
9358 * config/score/constraints.md: Add new file.
9359 * config/score/t-score-softfp: Add new file.
9360 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9361 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9362 (score7_extra_constraint): Delete.
9363 (score7_option_override): Remove unused code.
9364 * config/score/score.c: Remove score3 and score5 define and code.
9365 * config/score/score.h: Remove score3 and score5 define and code.
9366 * config/score/score.md: Remove score3 template and unusual insn.
9367 * config/score/score.opt: Remove score3 and score5 options.
9369 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9371 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9372 when _HPUX_SOURCE is defined.
9373 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9375 2011-03-10 Jason Merrill <jason@redhat.com>
9378 * stor-layout.c (layout_type): Don't set structural equality
9379 on arrays of incomplete type.
9380 * tree.c (type_hash_eq): Handle comparing them properly.
9382 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9385 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9386 result mode matches original rtl mode.
9388 2011-03-10 Nick Clifton <nickc@redhat.com>
9390 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9391 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9393 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9395 PR rtl-optimization/47866
9396 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9397 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9398 if target wasn't scalar.
9399 * function.c (assign_stack_temp_for_type): Assert that neither
9400 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9401 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9403 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9405 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9407 * config/s390/s390-protos.h (s390_label_align): New prototype.
9408 * config/s390/s390.c (s390_label_align): New function.
9409 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9411 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9414 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9415 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9416 (output_vec_const_move): Ditto.
9418 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9420 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9421 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9422 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9423 Change 'rclass' argument and result type to reg_class_t.
9424 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9426 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9428 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9429 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9430 (TARGET_MEMORY_MOVE_COST): Define.
9431 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9433 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9436 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9439 PR tree-optimization/48022
9440 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9443 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9446 * var-tracking.c (find_use_val): Return NULL for
9447 cui->sets && cui->store_p BLKmode MEMs.
9449 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9451 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9453 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9454 xstormy16_print_operand_address): Remove.
9455 * config/stormy16/stormy16.c (xstormy16_print_operand,
9456 xstormy16_print_operand_address): Make static.
9457 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9459 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9462 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9463 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9466 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9469 * cfgloopmanip.c (fix_bb_placements): Return immediately
9470 if FROM is BASE_LOOP's header.
9472 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9474 * gimplify.c (gimplify_function_tree): Fix building calls
9475 to __builtin_return_address.
9477 2011-03-07 Alan Modra <amodra@gmail.com>
9479 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9480 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9481 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9482 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9484 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9485 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9486 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9487 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9488 * config/rs6000/rs6000.c
9489 (rs6000_elf_end_indicate_exec_stack): Rename to..
9490 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9491 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9492 (rs6000_file_start): ..here.
9493 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9494 file scope variables.
9495 (call_ABI_of_interest): New function.
9496 (init_cumulative_args): Set above vars when function return value
9497 is a float, vector, or small struct.
9498 (rs6000_function_arg_advance_1): Likewise for function args.
9499 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9500 references float args.
9502 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9504 * doc/cfg.texi: Remove "See" before @ref.
9505 * doc/invoke.texi: Likewise.
9507 2011-03-05 Jason Merrill <jason@redhat.com>
9509 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9511 2011-03-05 Anthony Green <green@moxielogic.com>
9513 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9515 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9517 PR rtl-optimization/47899
9518 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9519 to flow_loop_nested_p when moving the loop upward.
9521 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9524 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9526 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9528 PR tree-optimization/47967
9529 * ipa-cp.c (build_const_val): Return NULL instead of creating
9530 VIEW_CONVERT_EXPR for mismatching sizes.
9531 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9532 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9533 give up on versioning.
9535 2011-03-05 Alan Modra <amodra@gmail.com>
9538 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9539 full cmodel medium/large lo_sum + high addresses.
9541 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9543 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9544 pool references in UNSPEC_LTREL_OFFSET.
9546 2011-03-04 Jan Hubicka <jh@suse.cz>
9549 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9550 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9551 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9553 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9554 cgraph_add_thunk): Add node pointers.
9555 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9556 associated to right node.
9557 (input_node): Update use of cgraph_same_body_alias
9558 and cgraph_add_thunk.
9560 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9562 * config/i386/i386.opt (mprefer-avx128): New flag.
9563 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9564 modes when the flag -mprefer-avx128 is on.
9566 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9568 * dwarf2out.c (compare_loc_operands): Fix address handling.
9570 2011-03-04 Alan Modra <amodra@gmail.com>
9572 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9574 2011-03-04 Richard Guenther <rguenther@suse.de>
9577 * expmed.c (extract_bit_field_1): Prefer vector modes that
9578 vec_extract patterns can handle.
9580 2011-03-04 Richard Guenther <rguenther@suse.de>
9583 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9585 2011-03-04 Richard Henderson <rth@redhat.com>
9587 * explow.c (emit_stack_save): Remove 'after' parameter.
9588 (emit_stack_restore): Likewise.
9589 * expr.h: Update to match.
9590 * builtins.c, calls.c, stmt.c: Likewise.
9591 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9592 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9593 * function.c (expand_function_end): Insert the emit_stack_save
9594 sequence before parm_birth_insn instead of after.
9596 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9598 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9599 (ssse3_pmaddubsw128): Ditto.
9600 (ssse3_pmaddubsw): Ditto.
9602 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9604 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9606 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9609 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9610 on TYPE_SIZE_UNIT if it is a DECL.
9613 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9614 first operand is not is_gimple_mem_ref_addr, try to fold it.
9615 If the operand still isn't is_gimple_mem_ref_addr, clear
9618 2011-03-03 Richard Guenther <rguenther@suse.de>
9621 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9623 (refs_may_alias_p_1): For release branches return true if
9624 we are confused by our input.
9626 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9628 * config/s390/s390.c (s390_function_value): Rename to ...
9629 (s390_function_and_libcall_value): ... this.
9630 (s390_function_value): New function.
9631 (s390_libcall_value): New function.
9632 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9633 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9634 target macro definitions.
9635 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9637 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9639 * config/i386/freebsd64.h (CC1_SPEC): Define.
9640 * config/i386/linux64.h (CC1_SPEC): Define.
9641 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9643 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9645 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9647 * config/stormy16/stormy16.c: Include reload.h.
9648 (xstormy16_memory_move_cost): New function.
9649 (TARGET_MEMORY_MOVE_COST): Define.
9651 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9653 PR rtl-optimization/47925
9654 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9655 with side effects. Remove the more-specific check for volatile asms.
9657 2011-03-02 Alan Modra <amodra@gmail.com>
9660 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9661 toc relative addresses for valid offsets.
9663 2011-03-01 Richard Guenther <rguenther@suse.de>
9665 PR tree-optimization/47890
9666 * tree-vect-loop.c (get_initial_def_for_induction): Set
9667 related stmt properly.
9669 2011-03-01 Richard Guenther <rguenther@suse.de>
9672 * lto-streamer.c (lto_record_common_node): Also register
9675 2011-03-01 Richard Guenther <rguenther@suse.de>
9678 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9679 Do not stream DECL_ABSTRACT_ORIGIN.
9680 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9681 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9682 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9683 Do not stream DECL_ABSTRACT_ORIGIN.
9684 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9685 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9687 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9689 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9690 FUNCTION_VALUE_REGNO_P): Remove.
9691 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9692 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9693 Add 'outgoing' argument.
9694 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9696 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9697 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9699 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9702 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9703 (lookup_filename): Likewise.
9704 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9706 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9707 Jakub Jelinek <jakub@redhat.com>
9710 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9711 (assign_stack_local_1): Change last argument type to int.
9712 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9713 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9714 don't record padding space into frame_space_list nor use those areas.
9715 (assign_stack_local): Adjust caller.
9716 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9717 of assign_stack_local, pass 0 as last argument.
9718 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9721 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9724 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9725 Use target address_mode and pointer_mode hooks instead of hardcoded
9726 Pmode and ptr_mode. Handle some simple cases of extending if
9727 POINTERS_EXTEND_UNSIGNED < 0.
9728 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9729 Call convert_debug_memory_address.
9730 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9731 convert_debug_memory_address.
9734 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9735 * configure: Regenerated.
9736 * config.in: Regenerated.
9737 * varasm.c (default_function_section): Return NULL
9738 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9740 2011-02-28 Martin Jambor <mjambor@suse.cz>
9742 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9743 the description to match the printed values.
9745 2011-02-28 Richard Guenther <rguenther@suse.de>
9747 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9748 of the copied scope tree.
9750 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9752 * doc/extend.texi (Function Attributes): Avoid deeply (and
9753 wrongly) nested tables.
9755 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9758 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9759 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9760 r isn't op0 nor op1.
9762 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9764 * config/avr/avr.md: Remove magic comment for emacs.
9766 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9769 * config/avr/avr.c (avr_option_override): Use error on bad options.
9770 (avr_help): New function.
9771 (TARGET_HELP): Define.
9773 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9776 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9777 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9779 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9781 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9782 (ARM Options): Ditto.
9783 (i386 and x86-64 Options): Ditto.
9784 (RX Options): Ditto.
9785 (SPARC Options): Ditto.
9787 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9789 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9790 FreeBSD 6 and later. Generally use cpu generic.
9792 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9794 * doc/cpp.texi: Update copyright years.
9796 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9799 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9801 2011-02-25 Jon Beniston <jon@beniston.com>
9804 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9805 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9806 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9807 (lm32_block_move_inline): Add type cast to remove warning.
9808 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9809 (gen_int_relational): Move declarations to start of function.
9811 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9813 PR tree-optimization/45470
9814 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9815 can throw internally only.
9816 * tree-vect-stmts.c (vectorizable_call): Likewise.
9818 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9820 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9821 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9822 * config/stormy16/stormy16-protos.h
9823 (xstormy16_preferred_reload_class): Remove.
9824 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9825 static. Change 'rclass' argument and return type to reg_class_t.
9826 (TARGET_PREFERRED_RELOAD_CLASS,
9827 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9829 2011-02-24 Richard Guenther <rguenther@suse.de>
9831 * lto-streamer-in.c (input_bb): Do not find referenced vars
9832 in debug statements.
9834 2011-02-23 Jason Merrill <jason@redhat.com>
9836 * common.opt (fabi-version): Document v5 and v6.
9838 2011-02-23 Richard Guenther <rguenther@suse.de>
9840 PR tree-optimization/47849
9841 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9843 2011-02-23 Jie Zhang <jie@codesourcery.com>
9845 * opts-common.c (decode_cmdline_option): Print empty string
9846 argument as "" in decoded->orig_option_with_args_text.
9847 * gcc.c (execute): Print empty string argument as ""
9848 in the verbose output.
9849 (do_spec_1): Keep empty string argument.
9851 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9853 * config.gcc: Declare score-* and crx-* obsolete.
9855 2011-02-23 Jie Zhang <jie@codesourcery.com>
9857 PR rtl-optimization/47763
9858 * web.c (web_main): Ignore naked clobber when replacing register.
9860 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9862 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9865 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9868 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9870 2011-02-22 Mike Stump <mikestump@comcast.net>
9872 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9874 * configure: Regenerate.
9876 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9878 PR rtl-optimization/46002
9879 * ira-color.c (update_copy_costs): Change class intersection
9880 test to reg_class_contents[] test of 'hard_regno'.
9882 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9884 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9886 * config/hpux11.opt (mt): Likewise.
9887 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9888 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9889 * config/vax/elf.opt (mno-asm-pic): Likewise.
9890 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9892 2011-02-21 Mike Stump <mikestump@comcast.net>
9895 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9896 tree so we can get save the type.
9897 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9898 for CFString instead of trying to use past the end of the builtins.
9899 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9900 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9901 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9902 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9903 Rename to darwin_builtin_cfstring.
9904 (darwin_init_cfstring_builtins): Return the built type.
9906 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9909 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9910 (_mm256_insert_epi64): Use _mm_insert_epi64.
9912 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9914 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9915 * config/stormy16/stormy16-protos.h
9916 (xstormy16_mode_dependent_address_p): Remove.
9917 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9918 Make static. Change return type to bool. Change argument type to
9919 const_rtx. Remove dead code.
9920 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9922 2011-02-21 Richard Guenther <rguenther@suse.de>
9925 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9926 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9927 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9929 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9930 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9932 2011-02-20 Richard Guenther <rguenther@suse.de>
9935 * tree.c (free_lang_data_in_decl): Clean builtins from
9936 the TU decl BLOCK_VARS.
9938 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9942 * haifa-sched.c (fix_tick_ready): Skip tick computation
9945 2011-02-19 Richard Guenther <rguenther@suse.de>
9948 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9949 Remove lazy BLOCK_VARS streaming.
9950 (lto_input_ts_block_tree_pointers): Likewise.
9951 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9953 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9955 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9957 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9959 * config/i386/biarch32.h, config/i386/mach.h,
9960 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9962 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9965 * config/i386/i386.md (peephole2 for shift and plus): Use
9966 operands[1] original mode in the first insn.
9968 2011-02-18 Mike Stump <mikestump@comcast.net>
9970 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9972 2011-02-18 Jan Hubicka <jh@suse.cz>
9975 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9976 to zero when the function is not inlinable at all.
9978 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9980 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9981 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9982 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9983 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9984 * config/pa/t-pa64: Likewise.
9985 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9987 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9990 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9992 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9995 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9997 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9999 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10000 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10001 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10002 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10003 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10004 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10005 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10006 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10007 m32r_legitimate_address_p): New functions.
10008 * config/m32r/constraints.md (constraint "S"): Don't use
10009 STORE_PREINC_PREDEC_P.
10010 (constraint "U"): Don't use LOAD_POSTINC_P.
10012 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10014 PR rtl-optimization/46178
10015 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10016 compute ira_hard_regno_cover_class[].
10018 2011-02-18 Richard Guenther <rguenther@suse.de>
10021 * lto-streamer.h (lto_global_var_decls): Declare.
10022 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10023 statics for global var processing.
10025 2011-02-18 Richard Guenther <rguenther@suse.de>
10027 PR tree-optimization/47737
10028 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10029 edge dominance check.
10031 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10034 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10035 avoid invalid rtx sharing.
10037 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10039 * doc/cpp.texi (Obsolete Features): Add background on the
10040 origin of assertions.
10042 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10044 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10046 * config/darwin.c (output_objc_section_asm_op): Added support for
10048 (is_objc_metadata): New.
10049 (darwin_objc2_section): New.
10050 (darwin_objc1_section): New.
10051 (machopic_select_section): Added support for ABI v1 and v2.
10052 (darwin_emit_objc_zeroed): New.
10053 (darwin_output_aligned_bss): Detect objc metadata and treat it
10055 (darwin_asm_output_aligned_decl_common): Same.
10056 (darwin_asm_output_aligned_decl_local): Same.
10057 * config/darwin-sections.def: Updated for ABI v1 and v2.
10058 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10059 compiling Objective-C code for the NeXT runtime, default to using
10060 ABI version 0 for 32-bit, and version 2 for 64-bit.
10062 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10064 * common.opt (optimize_fast): New Variable.
10065 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10066 instead of local variable ofast.
10068 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10070 * doc/invoke.texi (fobjc-abi-version): Documented.
10071 (fobjc-nilcheck): Documented.
10072 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10075 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10078 * common.opt (export-dynamic): New Driver option.
10079 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10081 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10083 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10085 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10086 Jan Hubicka <jh@suse.cz>
10090 * cfgexpand.c (account_used_vars_for_block): Remove.
10091 (estimated_stack_frame_size): Use referenced vars.
10092 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10093 that were referenced in the original function. Test src_fn
10094 rather than cfun. Drop redundant get_var_ann.
10095 (setup_one_parameter): Drop redundant get_var_ann.
10096 (declare_return_variable): Likewise.
10097 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10098 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10099 * ipa-inline.c (compute_inline_parameters): Do not compute
10100 disregard_inline_limits here.
10101 (compute_inlinable_for_current, pass_inlinable): New.
10102 (pass_inline_parameters): Require PROP_referenced_vars.
10103 * cgraphunit.c (cgraph_process_new_functions): Don't run
10104 compute_inline_parameters explicitly unless function is in SSA form.
10105 (cgraph_analyze_function): Set .disregard_inline_limits.
10106 * tree-sra.c (convert_callers): Compute inliner parameters
10107 only for functions already in SSA form.
10109 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10111 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10112 -mlittle-endian-data.
10114 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10116 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10117 -mno-fpu, not -fpu and -no-fpu.
10118 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10119 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10121 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10124 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10125 input reload with PLUS RTX.
10127 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10129 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10130 of InverseVar(MDMX).
10132 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10134 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10137 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10139 * config/mn10300/mn10300.opt (mno-crt0): New.
10141 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10143 * config/m68k/uclinux.opt (static-libc): New Driver option.
10145 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10147 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10149 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10151 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10152 %{muser-extend-enabled}.
10154 2011-02-16 Richard Guenther <rguenther@suse.de>
10156 PR tree-optimization/47738
10157 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10158 the TODO from tree_predictive_commoning.
10160 2011-02-15 Jeff Law <law@redhat.com>
10163 2011-01-25 Jeff Law <law@redhat.com>
10165 PR rtl-optimization/37273
10166 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10167 handle them like argument loads from stack slots. Do not double
10168 count memory for memory constants and argument loads from stack slots.
10170 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10172 PR middle-end/47725
10173 * combine.c (cant_combine_insn_p): Revert the last change.
10175 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10178 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10179 mode for vector constants. Remove code that checks for TImode.
10181 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10185 * cgraph.h (compute_inline_parameters): Return void.
10186 * ipa-inline.c (compute_inline_parameters): Adjust.
10188 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10192 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10194 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10195 * ipa-inline.c (compute_inline_parameters): Adjust.
10197 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10201 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10202 Adjust all users. Pass FN to...
10203 * tree-flow-inline.h (first_referenced_var): ... this. Add
10205 * ipa-struct-reorg.c: Adjust.
10206 * tree-dfa.c: Adjust.
10207 * tree-into-ssa.c: Adjust.
10208 * tree-sra.c: Adjust.
10209 * tree-ssa-alias.c: Adjust.
10210 * tree-ssa-live.c: Adjust.
10211 * tree-ssa.c: Adjust.
10212 * tree-ssanames.c: Adjust.
10213 * tree-tailcall.c: Adjust.
10215 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10219 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10220 Adjust all callers.
10221 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10222 * tree-flow-inline.h: Adjust.
10223 * gimple-pretty-print.c: Adjust.
10224 * tree-into-ssa.c: Adjust.
10225 * tree-ssa.c: Adjust.
10226 * cfgexpand.c: Adjust.
10228 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10230 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10231 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10232 (EXTRA_CONSTRAINT): Delete.
10233 * config/iq2000/constraints.md: New file.
10234 * config/iq2000/iq2000.md: Include it.
10235 (define_insn ""): Delete.
10236 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10237 unsupported constraint letters from patterns.
10238 (call_value, call_value_internal1): Likewise.
10239 (call_value_multiple_internal1): Likewise.
10241 2011-02-15 Nick Clifton <nickc@redhat.com>
10243 * config/mn10300/mn10300.c: Include tm-constrs.h.
10244 (struct liw_data): New data structure describing an LIW candidate
10246 (extract_bundle): Use struct liw_data. Allow small integer
10247 operands for some instructions.
10248 (check_liw_constraints): Use struct liw_data. Remove swapped
10249 parameter. Add comments describing the checks. Fix bug when
10250 assigning the source of liw1 to the source of liw2.
10251 (liw_candidate): Delete. Code moved into extract_bundle.
10252 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10254 * config/mn10300/predicates.md (liw_operand): New predicate.
10255 Allows registers and small integer constants.
10256 * config/mn10300/constraints.md (O): New constraint. Accetps
10257 integers in the range -8 to +7 inclusive.
10258 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10259 for moving a small integer into a register. Give this alternative
10261 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10262 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10263 using the J,K,L and M constraints,
10264 (liw): Remove SI mode on second operands to allow for HI and QI
10266 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10269 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10271 PR middle-end/47725
10272 * combine.c (cant_combine_insn_p): Check zero/sign extended
10275 2011-02-15 Richard Guenther <rguenther@suse.de>
10277 PR tree-optimization/47743
10278 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10279 for a non-type-compatible VN lookup bail out.
10281 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10283 * config/fr30/constraints.md: New file.
10284 * config/fr30/fr30.md: Include it.
10285 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10286 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10287 (EXTRA_CONSTRAINT): Delete.
10289 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10291 * config/frv/constraints.md: New file.
10292 * config/frv/predicates.md: Include it.
10293 * config/frv/frv.c (reg_class_from_letter): Delete.
10294 (frv_option_override): Don't initialize it.
10295 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10296 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10297 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10298 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10299 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10300 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10301 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10302 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10303 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10304 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10305 (REG_CLASS_FROM_CONSTRAINT): Delete.
10307 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10309 PR middle-end/47581
10310 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10311 if frame size is 0 in a leaf function.
10313 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10316 * config/alpha/host-osf.c: New file.
10317 * config/alpha/x-osf: New file.
10318 * config.host (alpha*-dec-osf*): Use it.
10320 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10322 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10323 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10324 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10325 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10327 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10329 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10331 * config/stormy16/constraints.md: New file.
10332 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10333 Use satisfies_constraint_Q and satisfies_constraint_R.
10334 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10336 (xstormy16_legitiamte_address_p): Declare.
10337 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10338 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10339 (EXTRA_CONSTRAINT): Delete.
10340 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10342 (xstormy16_extra_constraint_p): Delete.
10344 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10346 PR tree-optimization/46494
10347 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10348 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10349 (pass_rtl_loop_done): Add TODO_verify_flow.
10350 * fwprop.c (pass_rtl_fwprop): Likewise.
10351 * modulo-sched.c (pass_sms): Likewise.
10352 * tree-ssa-dom.c (pass_dominator): Likewise.
10353 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10354 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10355 (pass_tree_loop_done): Likewise.
10356 * tree-ssa-pre.c (execute_pre): Likewise.
10357 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10358 * tree-ssa-sink.c (pass_sink_code): Likewise.
10359 * tree-vrp.c (pass_vrp): Likewise.
10361 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10363 * config/v850/constraints.md: New file.
10364 * config/v850/v850.md: Include it.
10365 * config/v850/predicates.md (reg_or_0_operand): Use
10366 satisfies_constraint_G.
10367 (special_symbolref_operand): Use satisfies_constraint_K.
10368 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10369 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10370 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10371 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10372 (EXTRA_CONSTRAINT): Delete.
10373 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10374 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10375 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10377 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10380 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10383 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10385 * config/mcore/constraints.md: New file.
10386 * config/mcore/mcore.md: Include it.
10387 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10388 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10389 (REG_CLASS_FROM_LETTER): Delete.
10390 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10391 insn_const_int_ok_for_constraint.
10392 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10393 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10394 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10395 (EXTRA_CONSTRAINT): Delete.
10397 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10400 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10401 (IS_SIGHANDLER): Define.
10402 (sparc64_is_sighandler): New function, split off from
10403 sparc64_fallback_frame_state.
10404 (sparc_is_sighandler): New function, split off from
10405 sparc_fallback_frame_state.
10406 (sparc64_fallback_frame_state): Merge with ...
10407 (sparc_fallback_frame_state): ... this into ...
10408 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10409 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10410 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10411 stack instead of hardcoded offsets.
10413 2011-02-14 Andriy Gapon <avg@freebsd.org>
10416 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10418 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10420 * configure: Regenerate.
10422 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10425 * gcc.c (asm_options): Correct spec matching --target-help.
10427 2011-02-12 Martin Jambor <mjambor@suse.cz>
10429 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10430 to gimple call error.
10432 2011-02-12 Mike Stump <mikestump@comcast.net>
10434 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10435 comments in backslash regions.
10437 2011-02-12 Mike Stump <mikestump@comcast.net>
10438 Jakub Jelinek <jakub@redhat.com>
10439 Iain Sandoe <iains@gcc.gnu.org>
10442 * dwarf2out.c (output_cfa_loc): When required, apply the
10443 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10444 (output_loc_sequence): Likewise.
10445 (output_loc_operands_raw): Likewise.
10446 (output_loc_sequence_raw): Likewise.
10447 (output_cfa_loc): Likewise.
10448 (output_loc_list): Suppress register number adjustment when
10449 calling output_loc_sequence()
10450 (output_die): Likewise.
10452 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10454 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10456 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10457 xtensa_memory_move_cost): New functions.
10458 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10460 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10463 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10464 in the current directory.
10465 * configure: Rebuilt.
10467 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10469 * config/darwin.c (darwin_override_options): Add a hunk missed
10470 from the commit of r168571. Trim comment line lengths and
10471 correct indents of the preceding block.
10473 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10475 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10478 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10480 * common.opt (nostartfiles): New Driver option.
10482 2011-02-11 Xinliang David Li <davidxl@google.com>
10484 PR tree-optimization/47707
10485 * tree-chrec.c (convert_affine_scev): Keep type precision.
10487 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10489 PR tree-optimization/47420
10490 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10492 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10494 PR rtl-optimization/47614
10495 * rtl.h (check_for_inc_dec): Declare.
10496 * dse.c (check_for_inc_dec): Externalize...
10497 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10498 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10500 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10503 * gcc.c (main): Do not compile inputs if there were errors in
10505 * opts-common.c (read_cmdline_option): Check for wrong language
10506 after other error checks.
10508 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10510 * cgraph.c: Fix comment typos.
10511 * cgraph.h: Likewise.
10512 * cgraphunit.c: Likewise.
10513 * ipa-cp.c: Likewise.
10514 * ipa-inline.c: Likewise.
10515 * ipa-prop.c: Likewise.
10516 * ipa-pure-const.c: Likewise.
10517 * ipa-ref.c: Likewise.
10518 * ipa-reference.c: Likewise.
10520 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10523 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10525 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10528 * doc/sourcebuild.texi (Require Support): Document
10529 dg-require-ascii-locale.
10531 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10533 * doc/lto.texi (Write summary): Fix missing parentheses.
10535 2011-02-10 DJ Delorie <dj@redhat.com>
10537 * config/m32c/m32c.c (m32c_option_override): Disable
10538 -fcombine-stack-adjustments until flag value tracking and compare
10539 optimization can be rewritten.
10541 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10543 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10545 (PROCESSOR_DEFAULT64): Likewise.
10547 2011-02-10 Richard Henderson <rth@redhat.com>
10549 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10550 change from 2011-02-03.
10551 * config/rx/rx.c (flags_from_code): Likewise.
10552 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10553 is valid, n/pz otherwise.
10554 (rx_select_cc_mode): Return CCmode if Y is not zero.
10556 2011-02-10 Richard Guenther <rguenther@suse.de>
10558 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10560 2011-02-10 Richard Guenther <rguenther@suse.de>
10562 PR tree-optimization/47677
10563 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10565 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10568 * combine.c (make_compound_operation): Only change shifts into
10569 multiplication for SCALAR_INT_MODE_P.
10571 2011-02-10 Jie Zhang <jie@codesourcery.com>
10575 2011-02-05 Jie Zhang <jie@codesourcery.com>
10577 * web.c (entry_register): Don't clobber the number of the
10578 first uninitialized reference in used[].
10580 2011-02-09 Richard Guenther <rguenther@suse.de>
10582 PR tree-optimization/47664
10583 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10586 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10590 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10592 (PROCESSOR_DEFAULT64): Same.
10593 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10595 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10597 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10599 2011-02-09 Martin Jambor <mjambor@suse.cz>
10601 PR middle-end/45505
10602 * tree-sra.c (struct access): New flags grp_scalar_read and
10603 grp_scalar_write. Changed description of assignment read and write
10605 (dump_access): Dump new flags, reorder all of them.
10606 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10607 to detect multiple scalar reads.
10608 (analyze_access_subtree): Use the new scalar read write flags instead
10609 of the old flags. Adjusted comments.
10611 2011-02-08 DJ Delorie <dj@redhat.com>
10614 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10617 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10619 * config/m68k/uclinux.opt: New.
10620 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10622 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10624 * config/cris/elf.opt (sim): New Driver option.
10626 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10628 * config/xtensa/elf.opt: New.
10629 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10631 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10633 * config/vax/elf.opt: New.
10634 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10636 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10638 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10640 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10642 * config/gnu-user.opt: New.
10643 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10644 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10645 *-*-uclinux*): Use gnu-user.opt.
10647 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10649 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10650 * config/i386/gnu.h (CPP_SPEC): Likewise.
10652 2011-02-08 Ian Lance Taylor <iant@google.com>
10654 * common.opt (fcx-limited-range): Add SetByCombined flag.
10655 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10656 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10657 (fassociative-math, freciprocal-math): Likewise.
10658 (funsafe-math-optimizations): Likewise.
10659 * opth-gen.awk: Handle SetByCombined.
10660 * optc-gen.awk: Likewise.
10661 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10662 (set_unsafe_math_optimizations_flags): Likewise.
10663 * doc/options.texi (Option properties): Document SetByCombined.
10665 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10667 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10668 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10669 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10670 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10671 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10673 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10675 PR tree-optimization/46834
10676 PR tree-optimization/46994
10677 PR tree-optimization/46995
10678 * graphite-sese-to-poly.c (used_outside_reduction): New.
10679 (detect_commutative_reduction): Call used_outside_reduction.
10680 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10681 translate_scalar_reduction_to_array only when at least one
10682 loop-phi/close-phi tuple has been detected.
10684 2011-02-08 Richard Guenther <rguenther@suse.de>
10686 PR middle-end/47639
10687 * tree-vect-generic.c (expand_vector_operations_1): Update
10689 (expand_vector_operations): ... not here. Cleanup EH info
10690 and the CFG if required.
10692 2011-02-08 Richard Guenther <rguenther@suse.de>
10694 PR tree-optimization/47641
10695 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10696 require type compatibility.
10698 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10700 * gimple-low.c (lower_function_body): Don't remove the location of
10701 the return statement here.
10702 (lower_gimple_return): Do it here instead but only if the return
10703 statement is actually used twice.
10705 2011-02-08 Richard Guenther <rguenther@suse.de>
10707 PR tree-optimization/47632
10708 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10709 unused up_to_stmt parameter, return whether cfg-cleanup is
10710 necessary, remove EH info properly.
10711 (forward_propagate_into_gimple_cond): Adjust caller.
10712 (forward_propagate_into_cond): Likewise.
10713 (forward_propagate_comparison): Likewise.
10714 (tree_ssa_forward_propagate_single_use_vars): Make
10715 forward_propagate_comparison case similar to the two others.
10717 2011-02-08 Nick Clifton <nickc@redhat.com>
10719 * config/mn10300/mn10300.opt (mliw): New command line option.
10720 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10721 (liw_bundling): New automaton.
10722 (liw): New attribute.
10723 (liw_op): New attribute.
10724 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10725 (movsi_internal): Add LIW attributes.
10726 (andsi3): Likewise.
10727 (iorsi3): Likewise.
10728 (xorsi3): Likewise.
10729 (addsi3): Separate register and immediate alternatives.
10730 Add LIW attributes.
10731 (subsi3): Likewise.
10733 (aslsi3): Likewise.
10734 (lshrsi3): Likewise.
10735 (ashrsi3): Likewise.
10736 (liw): New pattern.
10737 * config/mn10300/mn10300.c (liw_op_names): New
10738 (mn10300_print_operand): Handle 'W' operand descriptor.
10739 (extract_bundle): New function.
10740 (check_liw_constraints): New function.
10741 (liw_candidate): New function.
10742 (mn10300_bundle_liw): New function.
10743 (mn10300_reorg): New function.
10744 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10745 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10746 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10747 __LIW__ or __NO_LIW__.
10748 * doc/invoke.texi: Describe the -mliw command line option.
10750 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10752 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10753 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10754 pthread_mutex_unlock): Remove.
10755 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10756 * config/pa/t-pa64: Likewise.
10757 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10758 shared libc if not linking against libpthread.
10759 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10761 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10764 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10765 on 10.6 and later to ensure that we always use the unwinder from
10766 the system. Only add -no_compact_unwind when tarteting darwin
10769 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10772 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10773 (vec_interleave_lowv2sf): Ditto.
10774 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10775 (vec_extract_oddv2sf): Ditto.
10777 2011-02-07 Mike Stump <mikestump@comcast.net>
10780 Add __ieee_divdc3 entry point.
10781 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10783 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10784 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10785 * config/darwin.c (darwin_rename_builtins): Add.
10786 * config/darwin-protos.h (darwin_rename_builtins): Add.
10788 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10791 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10794 2011-02-07 Mike Stump <mikestump@comcast.net>
10796 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10798 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10801 * config/avr/libgcc.S (exit): Move .endfunc
10803 2011-02-07 Richard Guenther <rguenther@suse.de>
10805 PR tree-optimization/47615
10806 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10807 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10808 (run_scc_vn): Initialize it.
10809 (visit_reference_op_load): Use it.
10810 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10812 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10814 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10815 DImode trapping arithmetic libfuncs.
10817 2011-02-07 Richard Guenther <rguenther@suse.de>
10819 PR tree-optimization/47621
10820 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10822 (execute_update_addresses_taken): ... here. Make it more
10823 conservative in what we accept.
10825 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10827 * config/sparc/freebsd.h (ASM_SPEC): Define.
10828 * config/sparc/vxworks.h (ASM_SPEC): Define.
10830 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10832 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10834 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10836 * doc/invoke.texi: Remove reference to compiler internals from
10837 user documentation.
10839 * reg-notes.def: Remove REG_VALUE_PROFILE.
10840 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10842 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10844 PR middle-end/47610
10845 * varasm.c (default_section_type_flags): If decl is NULL,
10846 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10848 2011-02-05 Jie Zhang <jie@codesourcery.com>
10851 * web.c (entry_register): Don't clobber the number of the
10852 first uninitialized reference in used[].
10854 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10856 PR tree-optimization/46194
10857 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10858 (build_classic_dist_vector_1): Do not represent classic distance
10859 vectors when the access functions are variating in different loops.
10861 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10863 * config/mips/iris6.opt: New.
10864 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10866 2011-02-04 Richard Henderson <rth@redhat.com>
10867 Steve Ellcey <sje@cup.hp.com>
10870 * config/ia64/predicates.md (mux1_brcst_element): New.
10871 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10872 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10873 (ia64_unpack_sign): New.
10874 (ia64_expand_unpack): Rewrite using new routines.
10875 (ia64_expand_widen_sum): Ditto.
10876 (ia64_expand_dot_prod_v8qi): Ditto.
10877 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10878 routines, add endian check.
10879 (pmpy2_even): Rename from pmpy2_r, add endian check.
10880 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10881 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10882 (vec_widen_smult_hi_v4hi): Ditto.
10883 (vec_widen_umult_lo_v4hi): Ditto.
10884 (vec_widen_umult_hi_v4hi): Ditto.
10885 (mulv2si3): Change endian checks.
10886 (sdot_prodv4hi): Rewrite with new calls.
10887 (udot_prodv4hi): New.
10888 (vec_pack_ssat_v4hi): Add endian check.
10889 (vec_pack_usat_v4hi): Ditto.
10890 (vec_pack_ssat_v2si): Ditto.
10891 (max1_even): Rename from max1_r, add endian check.
10892 (max1_odd): Rename from max1_l, add endian check.
10893 (*mux1_rev): Format change.
10894 (*mux1_mix): Ditto.
10895 (*mux1_shuf): Ditto.
10896 (*mux1_alt): Ditto.
10897 (*mux1_brcst_v8qi): Use new predicate.
10898 (vec_extract_evenv8qi): Remove endian check.
10899 (vec_extract_oddv8qi): Ditto.
10900 (vec_interleave_lowv4hi): Format change.
10901 (vec_interleave_highv4hi): Ditto.
10902 (mix2_even): Rename from mix2_r, add endian check.
10903 (mix2_odd): Rename from mux2_l, add endian check.
10904 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10905 (vec_extract_evenodd_helper): Format change.
10906 (vec_extract_evenv4hi): Remove endian check.
10907 (vec_extract_oddv4hi): Remove endian check.
10908 (vec_interleave_lowv2si): Format change.
10909 (vec_interleave_highv2si): Format change.
10910 (vec_initv2si): Remove endian check.
10911 (vecinit_v2si): Add endian check.
10912 (reduc_splus_v2sf): Add endian check.
10913 (reduc_smax_v2sf): Ditto.
10914 (reduc_smin_v2sf): Ditto.
10915 (vec_initv2sf): Remove endian check.
10916 (fpack): Add endian check.
10917 (fswap): Add endian check.
10918 (vec_interleave_highv2sf): Add endian check.
10919 (vec_interleave_lowv2sf): Add endian check.
10920 (fmix_lr): Add endian check.
10921 (vec_setv2sf): Format change.
10922 (*vec_extractv2sf_0_be): Use shift to extract operand.
10923 (*vec_extractv2sf_1_be): New.
10924 (vec_pack_trunc_v4hi): Add endian check.
10925 (vec_pack_trunc_v2si): Format change.
10927 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10929 PR inline-asm/23200
10930 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10931 do bb, locus and block comparison and disallow loads if it is not set.
10932 (stmt_is_replaceable_p): New function.
10933 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10935 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10936 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10938 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10940 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10942 * config/rs6000/xilinx.opt: New.
10943 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10945 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10947 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10949 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10951 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10952 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10953 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10954 secondary_reload_info, xtensa_secondary_reload): Remove.
10955 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10956 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10957 (xtensa_preferred_reload_class): Make static. Change return and
10958 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10959 Use CONST_DOUBLE_P predicate.
10960 (xtensa_preferred_output_reload_class): New function.
10961 (xtensa_secondary_reload): Make static.
10963 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10965 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10966 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10967 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10969 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10971 PR middle-end/31490
10972 * output.h (SECTION_RELRO): Define.
10973 (SECTION_MACH_DEP): Adjust.
10974 (get_variable_section): New prototype.
10975 * varpool.c (varpool_finalize_named_section_flags): New function.
10976 (varpool_assemble_pending_decls): Call it.
10977 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10978 * cgraphunit.c (cgraph_output_in_order): Call
10979 varpool_finalize_named_section_flags.
10980 * varasm.c (get_section): Allow section flags conflicts between
10981 relro and read-only sections if the section hasn't been declared yet.
10982 Set SECTION_OVERRIDE after diagnosing section type conflict.
10983 (get_variable_section): No longer static.
10984 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10985 readonly sections that need relocations.
10986 (decl_readonly_section_1): New function.
10987 (decl_readonly_section): Use it.
10990 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10991 Steve Ellcey <sje@cup.hp.com>
10993 PR middle-end/31490
10994 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10995 if section attribute used.
10997 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10999 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11000 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11001 (darwin_init_sections): Remove assertion.
11003 2011-02-03 Nick Clifton <nickc@redhat.com>
11005 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11007 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11008 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11009 instead of "n" and "pz".
11010 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11013 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11016 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11017 fma, expand FMA_EXPR as fma{,f,l} call.
11020 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11021 copy them into a unsigned char variable and pass address of it to
11022 lto_output_data_stream.
11025 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11026 around backend_init_target and lang_dependent_init_target calls.
11027 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11028 (verify_cgraph_node): Don't call set_cfun here. Use
11029 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11030 Set error_found for incorrectly represented calls to thunks.
11032 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11035 PR rtl-optimization/43494
11036 * rtl.h (for_each_inc_dec_fn): New type.
11037 (for_each_inc_dec): Declare.
11038 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11039 (for_each_inc_dec_find_inc_dec): New fn.
11040 (for_each_inc_dec_find_mem): New fn.
11041 (for_each_inc_dec): New fn.
11042 * dse.c (struct insn_size): Remove.
11043 (replace_inc_dec, replace_inc_dec_mem): Remove.
11044 (emit_inc_dec_insn_before): New fn.
11045 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11046 (canon_address): Pass mem modes to cselib_lookup.
11047 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11048 (cselib_lookup_from_insn): Likewise.
11049 (cselib_subst_to_values): Likewise.
11050 * cselib.c (find_slot_memmode): New var.
11051 (cselib_find_slot): New fn. Use it instead of
11052 htab_find_slot_with_hash everywhere.
11053 (entry_and_rtx_equal_p): Use find_slot_memmode.
11054 (autoinc_split): New fn.
11055 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11056 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11057 Deal with autoinc. Special-case recursion into MEMs.
11058 (cselib_hash_rtx): Likewise.
11059 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11060 address and MEM modes.
11061 (cselib_subst_to_values): Add memmode, pass it on.
11063 (cselib_lookup): Add memmode argument, pass it on.
11064 (cselib_lookup_from_insn): Add memmode.
11065 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11066 (struct cselib_record_autoinc_data): New.
11067 (cselib_record_autoinc_cb): New fn.
11068 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11069 mode to cselib_lookup. Reset autoinced REGs here instead of...
11070 (cselib_process_insn): ... here.
11071 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11073 (add_uses): Likewise, also to cselib_subst_to_values.
11074 (add_stores): Likewise.
11075 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11076 cselib_subst_to_values.
11077 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11078 * gcse.c (do_local_cprop): Adjusted.
11079 * postreload.c (reload_cse_simplify_set): Adjusted.
11080 (reload_cse_simplify_operands): Adjusted.
11081 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11083 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11085 PR tree-optimization/45122
11086 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11087 unsafe assumptions when there's more than one loop exit.
11089 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11092 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11093 Document using vector double with the load/store builtins, and
11094 that the load/store builtins always use Altivec instructions.
11096 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11097 to use altivec memory instructions, even on VSX.
11098 (vector_altivec_store_<mode>): Ditto.
11100 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11103 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11104 V2DF, V2DI support to load/store overloaded builtins.
11106 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11107 altivec load/store builtins for V2DF/V2DI types.
11109 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11110 set avoid indexed addresses on power6 if -maltivec.
11111 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11112 vector_altivec_load/vector_altivec_store builtins.
11113 (altivec_expand_st_builtin): Ditto.
11114 (altivec_expand_builtin): Add VSX memory builtins.
11115 (rs6000_init_builtins): Add V2DI types to internal types.
11116 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11117 load/store builtins.
11118 (rs6000_address_for_altivec): Insure memory address is appropriate
11121 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11122 vec_vsx_ld and vec_vsx_st.
11123 (vsx_store_<mode>): Ditto.
11125 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11126 variables to hold long long types for VSX vector memory builtins.
11127 (RS6000_BTI_unsigned_long_long): Ditto.
11128 (long_long_integer_type_internal_node): Ditti.
11129 (long_long_unsigned_type_internal_node): Ditti.
11131 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11132 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11133 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11135 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11137 (vec_vsx_st): Ditto.
11139 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11141 * config/pa/pa-hpux10.opt: New.
11142 * config/hpux11.opt (pthread): New Driver option.
11143 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11144 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11146 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11148 * config/ia64/vms.opt: New.
11149 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11151 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11154 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11155 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11156 generator functions.
11157 (vsx_floatuns<VSi><mode>2): Ditto.
11158 (vsx_fix_trunc<mode><VSi>2): Ditto.
11159 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11161 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11163 * config/i386/djgpp.opt (posix): New Driver option.
11165 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11167 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11168 Move to the unsupported targets list.
11170 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11172 PR rtl-optimization/47525
11173 * df-scan.c: Update copyright years.
11174 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11175 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11177 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11179 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11180 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11181 (ASM_OUTPUT_ASCII): Remove.
11182 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11184 2011-02-02 Jeff Law <law@redhat.com>
11186 PR middle-end/47543
11187 * reload.c (find_reloads_address): Handle reg+d address where both
11188 components are invalid by reloading the entire address.
11190 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11191 Richard Guenther <rguenther@suse.de>
11193 PR tree-optimization/40979
11195 * passes.c (init_optimization_passes): After LIM call copy_prop
11196 and DCE to clean up.
11197 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11199 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11201 PR tree-optimization/47576
11202 PR tree-optimization/47555
11203 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11204 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11205 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11206 * tree-scalar-evolution.c (follow_ssa_edge): Use
11207 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11209 2011-02-02 Richard Guenther <rguenther@suse.de>
11211 PR tree-optimization/47566
11212 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11214 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11218 * tree-inline.c (declare_return_variable): Remove unused caller
11223 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11224 * cfgexpand.c (account_used_vars_for_block): Use them.
11225 * tree-nrv.c (tree_nrv): Likewise.
11226 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11227 (dump_scope_block): Likewise.
11228 (remove_unused_locals): Likewise.
11232 * tree-inline.c (declare_return_variable): Add result decl to
11233 local decls only once.
11234 * gimple-low.c (record_vars_into): Mark newly-created variables
11237 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11243 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11245 (no_real_insns_p, schedule_block, set_priorities): Drop special
11246 treatment of boundary debug insns.
11247 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11248 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11249 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11250 (BOUNDARY_DEBUG_INSN_P): Likewise.
11251 (SCHEDULE_DEBUG_INSN_P): Likewise.
11252 * sched-rgn.c (init_ready_list): Drop special treatment of
11253 boundary debug insns.
11254 * final.c (rest_of_clean_state): Clear notes' BB.
11256 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11258 * config/openbsd.opt (assert=): New Driver option.
11260 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11262 * config/i386/nto.opt: New.
11263 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11265 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11267 * config/i386/netware.opt: New.
11268 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11270 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11272 * config/interix.opt (posix): New Driver option.
11274 2011-02-01 DJ Delorie <dj@redhat.com>
11276 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11278 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11281 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11283 PR tree-optimization/47561
11284 * toplev.c (process_options): Print the Graphite flags. Add
11285 flag_loop_flatten to the list of options requiring Graphite.
11287 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11289 * config/i386/cygming.opt (posix): New Driver option.
11291 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11293 * config/arm/vxworks.opt: New.
11294 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11296 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11298 * config/alpha/elf.opt: New.
11299 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11300 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11302 2011-02-01 Richard Guenther <rguenther@suse.de>
11304 PR tree-optimization/47559
11305 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11306 store-motion on references that can throw.
11308 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11310 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11311 * tree-pass.h (TDF_CSELIB): New macro.
11312 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11313 cselib_lookup): Check for it rather than for TDF_DETAILS.
11315 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11318 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11319 is HOST_BIT_BUCKET.
11321 * opts.c (finish_options): Don't add x_aux_base_name if it is
11324 2011-02-01 Richard Guenther <rguenther@suse.de>
11326 PR tree-optimization/47555
11328 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11330 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11332 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11335 * config/lm32/t-lm32: Add multilib for all CPU options.
11337 2011-02-01 Richard Guenther <rguenther@suse.de>
11339 PR tree-optimization/47541
11340 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11341 sure to have a field at offset zero.
11343 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11345 * config/arc/arc.opt (EB, EL): New Driver options.
11347 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11349 * config/alpha/osf5.opt: New.
11350 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11352 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11354 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11356 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11358 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11359 -floop-interchange.
11360 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11361 is an alias of -floop-interchange and that it requires the
11362 Graphite infrastructure.
11363 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11364 flag_loop_interchange based on the value of flag_tree_loop_linear.
11366 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11367 Richard Guenther <rguenther@suse.de>
11369 PR tree-optimization/47538
11370 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11371 type instead of r1type, except for comparisons. For right
11372 shifts and comparisons punt if there are mismatches in
11373 sizetype vs. non-sizetype types.
11375 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11377 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11380 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11382 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11384 * configure: Regenerate.
11386 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11388 * configure.ac (gcc_cv_ld_static_option): Define.
11389 (gcc_cv_ld_dynamic_option): Define.
11390 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11392 (HAVE_LD_STATIC_DYNAMIC): Update message.
11393 (LD_STATIC_OPTION): Define.
11394 (LD_DYNAMIC_OPTION): Define.
11395 * configure: Regenerate.
11396 * config.in: Regenerate.
11397 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11398 HAVE_LD_STATIC_DYNAMIC]: Use them.
11400 2011-01-31 Nick Clifton <nickc@redhat.com>
11402 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11403 registers inside interrupt handlers if the handler is not a leaf
11406 2011-01-31 Nick Clifton <nickc@redhat.com>
11408 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11409 reg_renumber returning an INVALID_REGNUM.
11411 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11414 * doc/install.texi: Document host options discarded when cross
11415 configuring target libraries.
11417 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11420 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11423 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11425 (no_real_insns_p, schedule_block, set_priorities): Drop special
11426 treatment of boundary debug insns.
11427 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11428 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11429 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11430 (BOUNDARY_DEBUG_INSN_P): Likewise.
11431 (SCHEDULE_DEBUG_INSN_P): Likewise.
11432 * sched-rgn.c (init_ready_list): Drop special treatment of
11433 boundary debug insns.
11434 * final.c (rest_of_clean-state): Clear notes' BB.
11436 2011-01-31 Alan Modra <amodra@gmail.com>
11438 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11439 toc relative expressions as we do in print_operand_address.
11441 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11443 * doc/extend.texi: Follow spelling conventions.
11444 * doc/invoke.texi: Fix a typo.
11446 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11448 * config/hpux11.opt: New.
11449 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11450 ia64*-*-hpux*): Use hpux11.opt.
11452 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11454 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11457 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11459 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11462 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11464 * doc/install.texi (Binaries): Remove outdated reference for
11465 Motorola 68HC11/68HC12 downloads.
11467 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11469 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11472 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11475 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11478 2011-01-28 Ahmad Sharif <asharif@google.com>
11480 * value-prof.c (check_counter): Corrected error message.
11482 2011-01-29 Jie Zhang <jie@codesourcery.com>
11484 * config/arm/arm.c (arm_legitimize_reload_address): New.
11485 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11486 arm_legitimize_reload_address.
11487 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11489 2011-01-28 Ian Lance Taylor <iant@google.com>
11491 * godump.c (go_define): Ignore macros whose definitions include
11492 two adjacent operands.
11494 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11497 * varasm.c (force_const_mem): Store copy of x in desc->constant
11498 instead of x itself.
11499 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11500 itself into REG_EQUAL note.
11502 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11504 * config/freebsd.opt (posix, rdynamic): New Driver options.
11506 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11508 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11509 -Bstatic/-Bdynamic.
11510 * configure: Regenerate.
11512 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11514 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11515 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11517 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11519 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11520 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11521 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11522 (s390_preferred_reload_class): Make static. Change return and
11523 'rclass' argument type to reg_class_t.
11525 2011-01-27 Jan Hubicka <jh@suse.cz>
11527 PR middle-end/46949
11528 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11529 (process_function_and_variable_attributes): Check defined weakrefs.
11531 2011-01-27 Martin Jambor <mjambor@suse.cz>
11533 PR tree-optimization/47228
11534 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11535 build_ref_for_offset.
11537 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11539 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11541 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11543 PR rtl-optimization/46856
11544 * postreload.c (reload_combine_recognize_const_pattern): Do not
11545 separate cc0 setter and user on cc0 targets.
11547 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11550 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11551 passed a VOID_TYPE expression, immediately emit an error and
11552 return error_mark_node.
11554 2011-01-26 Jeff Law <law@redhat.com>
11556 PR rtl-optimization/47464
11557 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11558 rather than may_trap_p as needed.
11560 2011-01-26 DJ Delorie <dj@redhat.com>
11562 PR rtl-optimization/46878
11563 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11564 setter/user dependency as well.
11566 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11568 PR rtl-optimization/44469
11569 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11570 after removing trivially dead basic blocks.
11572 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11574 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11575 * config/frv/frv.h (LINK_SPEC): Likewise.
11576 * config/i386/netware.h (LINK_SPEC): Likewise.
11577 * config/m68k/linux.h (ASM_SPEC): Likewise.
11578 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11579 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11580 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11581 * config/sparc/linux.h (ASM_SPEC): Likewise.
11582 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11583 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11585 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11587 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11588 * config/frv/frv.h (ASM_SPEC): Likewise.
11589 * config/m68k/linux.h (ASM_SPEC): Likewise.
11590 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11591 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11592 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11593 * config/sparc/linux.h (ASM_SPEC): Likewise.
11594 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11595 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11597 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11599 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11600 * config/frv/frv.h (LINK_SPEC): Likewise.
11601 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11603 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11605 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11606 * config/frv/frv.h (ASM_SPEC): Likewise.
11607 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11608 * config/m68k/linux.h (ASM_SPEC): Likewise.
11609 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11610 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11611 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11612 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11613 * config/sparc/linux.h (ASM_SPEC): Likewise.
11614 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11615 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11616 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11618 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11621 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11623 (vec_extract_evenodd_help): Ditto.
11624 (vec_extract_evenv4hi): Ditto.
11625 (vec_extract_oddv4hi): Ditto.
11626 (vec_interleave_lowv2si): Ditto.
11627 (vec_interleave_highv2si): Ditto.
11628 (vec_extract_evenv2si): Ditto.
11629 (vec_extract_oddv2si: Ditto.
11630 (vec_pack_trunc_v2si): Ditto.
11632 2011-01-22 Jan Hubicka <jh@suse.cz>
11635 * cgraph.h (cgraph_local_info): New field can_change_signature.
11636 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11637 signature can change.
11638 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11640 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11641 (cgraph_function_versioning): We can not change signature of functions
11642 that don't allow that.
11643 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11644 (lto_input_node): Likewise.
11645 * ipa-inline.c (compute_inline_parameters): Compute
11646 local.can_change_signature.
11647 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11648 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11649 functions that can not change signature.
11650 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11651 init_cumulative_args): Do not use local calling conventions
11652 for functions that can not change signature.
11654 2011-01-22 Jan Hubicka <jh@suse.cz>
11656 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11658 2011-01-26 Richard Guenther <rguenther@suse.de>
11660 PR tree-optimization/47190
11661 * cgraphunit.c (process_common_attributes): New function.
11662 (process_function_and_variable_attributes): Use it.
11664 2011-01-26 Richard Guenther <rguenther@suse.de>
11667 * cgraphbuild.c (record_eh_tables): Record reference to personality
11670 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11673 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11674 non-debug insns from moving up.
11676 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11679 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11680 t-dlldir{,-x} fragment for build and add it to tmake_file.
11681 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11682 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11683 * config/i386/t-dlldir: New file.
11684 (SHLIB_DLLDIR): Define.
11685 * config/i386/t-dlldir-x: New file.
11686 (SHLIB_DLLDIR): Define.
11687 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11688 (SHLIB_INSTALL): Use it.
11690 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11693 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11694 lower bound of the allowed Thumb-2 coprocessor load/store
11695 index range to -256. Add explaining comment.
11697 2011-01-25 Ian Lance Taylor <iant@google.com>
11699 * godump.c (go_define): Improve lexing of macro expansion to only
11700 accept expressions which match Go spec.
11702 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11705 * tree.c (handle_dll_attribute): Handle it.
11706 * doc/extend.texi (@item dllexport): Mention it.
11707 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11709 2011-01-25 Ian Lance Taylor <iant@google.com>
11711 PR tree-optimization/26854
11712 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11713 (decl_jump_unsafe): Move higher in file, with no other change.
11714 (bind): Set has_jump_unsafe_decl if appropriate.
11715 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11716 (check_earlier_gotos): Likewise.
11717 (c_check_switch_jump_warnings): Likewise.
11719 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11721 * doc/invoke.texi (Warning Options): Add missing hyphen.
11722 (-fprofile-dir): Minor grammatical fixes.
11723 (-fbranch-probabilities): Likewise.
11725 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11729 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11731 (no_real_insns_p, schedule_block, set_priorities): Drop special
11732 treatment of boundary debug insns.
11733 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11734 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11735 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11736 (BOUNDARY_DEBUG_INSN_P): Likewise.
11737 (SCHEDULE_DEBUG_INSN_P): Likewise.
11738 * sched-rgn.c (init_ready_list): Drop special treatment of
11739 boundary debug insns.
11740 * final.c (rest_of_clean-state): Clear notes' BB.
11742 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11744 * Makefile.in (LAMBDA_H): Removed.
11745 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11746 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11747 lambda-trans.o, and tree-loop-linear.o.
11748 (lto-symtab.o): Remove dependence on LAMBDA_H.
11749 (tree-loop-linear.o): Remove rule.
11750 (lambda-mat.o): Same.
11751 (lambda-trans.o): Same.
11752 (lambda-code.o): Same.
11753 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11754 (tree-vect-slp.o): Same.
11755 * hwint.h (gcd): Moved here.
11756 (least_common_multiple): Same.
11757 * lambda-code.c: Removed.
11758 * lambda-mat.c: Removed.
11759 * lambda-trans.c: Removed.
11760 * lambda.h: Removed.
11761 * tree-loop-linear.c: Removed.
11762 * lto-symtab.c: Do not include lambda.h.
11763 * omega.c (gcd): Removed.
11764 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11765 * tree-data-ref.c (print_lambda_vector): Moved here.
11766 (lambda_vector_copy): Same.
11767 (lambda_matrix_copy): Same.
11768 (lambda_matrix_id): Same.
11769 (lambda_vector_first_nz): Same.
11770 (lambda_matrix_row_add): Same.
11771 (lambda_matrix_row_exchange): Same.
11772 (lambda_vector_mult_const): Same.
11773 (lambda_vector_negate): Same.
11774 (lambda_matrix_row_negate): Same.
11775 (lambda_vector_equal): Same.
11776 (lambda_matrix_right_hermite): Same.
11777 * tree-data-ref.h: Do not include lambda.h.
11778 (lambda_vector): Moved here.
11779 (lambda_matrix): Same.
11780 (dependence_level): Same.
11781 (lambda_transform_legal_p): Removed declaration.
11782 (lambda_collect_parameters): Same.
11783 (lambda_compute_access_matrices): Same.
11784 (lambda_vector_gcd): Same.
11785 (lambda_vector_new): Same.
11786 (lambda_vector_clear): Same.
11787 (lambda_vector_lexico_pos): Same.
11788 (lambda_vector_zerop): Same.
11789 (lambda_matrix_new): Same.
11790 * tree-flow.h (least_common_multiple): Removed declaration.
11791 * tree-parloops.c (lambda_trans_matrix): Moved here.
11792 (LTM_MATRIX): Same.
11793 (LTM_ROWSIZE): Same.
11794 (LTM_COLSIZE): Same.
11795 (LTM_DENOMINATOR): Same.
11796 (lambda_trans_matrix_new): Same.
11797 (lambda_matrix_vector_mult): Same.
11798 (lambda_transform_legal_p): Same.
11799 * tree-pass.h (pass_linear_transform): Removed declaration.
11800 * tree-ssa-loop.c (tree_linear_transform): Removed.
11801 (gate_tree_linear_transform): Removed.
11802 (pass_linear_transform): Removed.
11803 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11804 flag_loop_interchange.
11806 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11808 PR tree-optimization/47265
11809 PR tree-optimization/47443
11810 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11811 if name still has some uses.
11813 2011-01-25 Martin Jambor <mjambor@suse.cz>
11815 PR tree-optimization/47382
11816 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11817 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11819 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11821 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11822 sjlj_except_unwind_info.
11824 2011-01-25 Richard Guenther <rguenther@suse.de>
11826 PR tree-optimization/47426
11827 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11828 visible functions results escape.
11830 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11833 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11834 (arm_get_frame_offsets): Use it.
11836 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11837 Jakub Jelinek <jakub@redhat.com>
11839 PR tree-optimization/47271
11840 * tree-if-conv.c (bb_postdominates_preds): New.
11841 (if_convertible_bb_p): Call bb_postdominates_preds.
11842 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11843 (predicate_scalar_phi): Call bb_postdominates_preds.
11845 2011-01-25 Nick Clifton <nickc@redhat.com>
11847 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11848 * config/rx/rx.c (rx_function_value): Likewise.
11849 (rx_promote_function_mode): Likewise.
11850 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11851 in order to make it legitimate.
11852 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11853 make sure that the first operand is the same as the result register.
11854 (addsi3_unspec): Delete.
11855 (subdi3): Do not accept immediate operands.
11856 (subdi3_internal): Likewise.
11858 2011-01-25 Jeff Law <law@redhat.com>
11860 PR rtl-optimization/37273
11861 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11862 handle them like argument loads from stack slots. Do not double
11863 count memory for memory constants and argument loads from stack slots.
11865 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11867 PR tree-optimization/47427
11868 PR tree-optimization/47428
11869 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11870 coalesce if the new root var would be TREE_READONLY.
11872 2011-01-25 Richard Guenther <rguenther@suse.de>
11874 PR middle-end/47414
11875 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11876 correct type for TBAA.
11878 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11880 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11881 (close_phi_written_to_memory): Call for_each_index with
11882 dr_indices_valid_in_loop.
11884 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11886 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11887 when it is initialized.
11889 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11891 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11892 call to graphite_find_data_references_in_stmt.
11893 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11894 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11895 call to graphite_find_data_references_in_stmt.
11896 (analyze_drs_in_stmts): Same.
11897 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11898 in which the scalar analysis of indices is performed.
11899 (create_data_ref): Same. Update call to dr_analyze_indices.
11900 (find_data_references_in_stmt): Update call to create_data_ref.
11901 (graphite_find_data_references_in_stmt): Same.
11902 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11904 (create_data_ref): Same.
11905 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11906 call to create_data_ref.
11908 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11910 * graphite-sese-to-poly.c (build_poly_scop): Move
11911 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11913 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11915 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11916 VAR_DECL, PARM_DECL, and RESULT_DECL.
11918 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11920 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11921 in a reduction PBB.
11922 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11923 that have already been marked as PBB_IS_REDUCTION.
11925 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11927 * graphite-scop-detection.c (same_close_phi_node): New.
11928 (remove_duplicate_close_phi): New.
11929 (make_close_phi_nodes_unique): New.
11930 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11932 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11934 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11935 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11936 of both data references to be the same.
11938 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11940 * graphite-dependences.c (build_lexicographical_constraint): Remove
11941 the gdim parameter.
11942 (build_lexicographical_constraint): Adjust call to
11943 ppl_powerset_is_empty.
11944 (dependence_polyhedron): Same.
11945 (graphite_legal_transform_dr): Same.
11946 (graphite_carried_dependence_level_k): Same.
11947 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11949 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11951 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11953 * graphite-sese-to-poly.c
11954 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11955 (close_phi_written_to_memory): New.
11956 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11959 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11961 * doc/install.texi: Update the expected version number of PPL to 0.11.
11962 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11963 #if PPL_VERSION_MINOR < 11.
11965 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11967 * graphite-dependences.c: Include graphite-cloog-util.h.
11968 (new_poly_ddr): Inlined into dependence_polyhedron.
11969 (free_poly_ddr): Moved close by new_poly_ddr.
11970 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11971 Early return NULL when ppl_powerset_is_empty returns true.
11972 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11973 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11974 (graphite_legal_transform_dr): Call new_poly_ddr.
11975 (graphite_carried_dependence_level_k): Same.
11976 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11977 (dot_transformed_deps_stmt_1): Removed.
11978 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11979 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11980 (dot_deps_1): Call dot_deps_2.
11981 * Makefile.in (graphite-dependences.o): Add missing dependence on
11982 graphite-cloog-util.h.
11984 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11986 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11987 (build_lexicographical_constraint): Same.
11988 (dependence_polyhedron_1): Same.
11989 (graphite_legal_transform_dr): Same.
11990 (graphite_carried_dependence_level_k): Same.
11991 * graphite-ppl.c (ppl_powerset_is_empty): New.
11992 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11993 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11995 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11997 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11998 the "a followed by b" relation and document it.
12000 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12002 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12003 iteration when the bag of constraints is empty.
12005 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12007 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12009 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12011 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12012 nest and two loop depths as parameters.
12013 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12014 lst_perfect_nestify.
12016 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12018 * graphite-dependences.c (print_pddr): Call
12019 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12021 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12023 * graphite-ppl.c (debug_gmp_value): New.
12024 * graphite-ppl.h (debug_gmp_value): Declared.
12026 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12028 * doc/install.texi: Document availability of cloog-0.16.
12030 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12032 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12033 invalid postdominance info.
12035 2011-01-24 Jan Hubicka <jh@suse.cz>
12038 * doc/extend.texi (weak pragma): Drop claim that it must
12039 appear before definition.
12040 * varasm.c (merge_weak, declare_weak): Only sanity check
12041 that DECL is not output at a time it is declared weak.
12043 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12045 * machmode.def: Fixed comments.
12047 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12049 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12051 2011-01-24 Paul Koning <ni1d@arrl.net>
12053 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12056 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12059 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12060 (block_info): Add scanned and prev.
12061 (move_or_delete_vzeroupper_2): Return if the basic block
12062 has been scanned and the upper 128bit state is unchanged
12063 from the last scan.
12064 (move_or_delete_vzeroupper_1): Return true if the exit
12066 (move_or_delete_vzeroupper): Visit basic blocks using the
12067 work-list based algorithm based on vt_find_locations in
12070 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12072 2011-01-24 Nick Clifton <nickc@redhat.com>
12074 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12075 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12076 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12077 then define __v850e1__.
12078 * doc/invoke.texi: Document -mv850es.
12080 2011-01-24 Richard Henderson <rth@redhat.com>
12082 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12083 compound unordered comparisons.
12084 * config/rx/rx.c (rx_split_fp_compare): Remove.
12085 * config/rx/rx-protos.h: Update.
12086 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12087 (cbranchsf4): Don't call rx_split_fp_compare.
12088 (*cbranchsf4): Use rx_split_cbranch.
12089 (*cmpsf): Don't accept "i" constraint.
12090 (*conditional_branch): Only valid after reload.
12091 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12093 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12096 * config/rs6000/altivec.md (vector constant splitters): Add
12097 support for creating vector single precision constants if -mvsx is
12098 used and we would create the constant using Altivec primitives.
12100 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12101 Richard Sandiford <rdsandiford@googlemail.com>
12103 PR rtl-optimization/47166
12104 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12105 mechanism for PRE_MODIFY and POST_MODIFY.
12106 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12109 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12111 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12113 2011-01-22 Jan Hubicka <jh@suse.cz>
12116 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12118 2011-01-22 Jan Hubicka <jh@suse.cz>
12120 PR tree-optimization/43884
12122 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12123 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12125 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12127 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12128 * config/s390/s390.c (s390_register_move_cost,
12129 s390_memory_move_cost): New.
12130 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12132 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12134 PR middle-end/47401
12135 * except.c (sjlj_assign_call_site_values): Move setting the
12136 crtl->uses_eh_lsda flag to ...
12137 (sjlj_mark_call_sites): ... here.
12138 (sjlj_emit_function_enter): Support NULL dispatch label.
12139 (sjlj_build_landing_pads): In a function with no landing pads
12140 that still has must-not-throw regions, generate code to register
12141 a personality function with empty LSDA.
12143 2011-01-21 Richard Henderson <rth@redhat.com>
12145 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12147 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12149 * compare-elim.c: New file.
12150 * Makefile.in (OBJS-common): Add it.
12151 (compare-elim.o): New.
12152 * common.opt (fcompare-elim): New.
12153 * opts.c (default_options_table): Add OPT_fcompare_elim.
12154 * tree-pass.h (pass_compare_elim_after_reload): New.
12155 * passes.c (init_optimization_passes): Add it.
12156 * recog.h: Protect against re-inclusion.
12157 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12158 * doc/invoke.texi (-fcompare-elim): Document it.
12159 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12160 * doc/tm.texi: Rebuild.
12162 2011-01-22 Nick Clifton <nickc@redhat.com>
12164 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12165 rx_split_fp_compare.
12167 2011-01-22 Nick Clifton <nickc@redhat.com>
12169 * config/rx/rx.md (UNSPEC_CONST): New.
12170 (deallocate_and_return): Wrap the amount popped off the stack in
12171 an UNSPEC_CONST in order to stop it being rejected by
12172 -mmax-constant-size.
12173 (pop_and_return): Add a "(return)" rtx.
12174 (call): Drop the immediate operand.
12175 (call_internal): Likewise.
12176 (call_value): Likewise.
12177 (call_value_internal): Likewise.
12178 (sibcall_internal): Likewise.
12179 (sibcall_value_internal): Likewise.
12180 (sibcall): Likewise. Generate an explicit call using
12182 (sibcall_value): Likewise.
12183 (mov<>): FAIL if a constant operand is not legitimate.
12184 (addsi3_unpsec): New pattern.
12186 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12187 (ok_for_max_constant): New function.
12188 (gen_safe_add): New function.
12189 (rx_expand_prologue): Use gen_safe_add.
12190 (rx_expand_epilogue): Likewise.
12191 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12194 2011-01-21 Jeff Law <law@redhat.com>
12196 PR tree-optimization/47053
12197 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12198 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12199 statements are deleted.
12200 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12201 is nonempty, then purge dead edges and cleanup the CFG.
12203 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12206 Temporarily revert:
12207 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12209 * tree-dfa.c (create_var_ann): Mark variable as used.
12211 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12213 PR middle-end/45566
12214 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12215 notes from other section in hot/cold partitioning even if
12216 last_action is -3. Increment call_site_base.
12218 PR rtl-optimization/47366
12219 * fwprop.c (forward_propagate_into): Return bool. If
12220 any changes are made, -fnon-call-exceptions is used and
12221 REG_EH_REGION note is present, call purge_dead_edges
12222 and return true if it purged anything.
12223 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12224 any EH edges were purged.
12226 2011-01-21 Jeff Law <law@redhat.com>
12228 PR rtl-optimization/41619
12229 * caller-save.c (setup_save_areas): Break out code to determine
12230 which hard regs are live across calls by examining the reload chains
12231 so that it is always used.
12232 Eliminate code which checked REG_N_CALLS_CROSSED.
12234 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12236 PR tree-optimization/47355
12237 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12238 NOP has non-debug uses beyond PHIs in new_bb.
12240 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12243 * cfgexpand.c (account_used_vars_for_block): Only account vars
12244 that are annotated as used.
12245 (estimated_stack_frame_size): Don't set TREE_USED.
12246 * tree-dfa.c (create_var_ann): Mark variable as used.
12248 2011-01-21 Richard Guenther <rguenther@suse.de>
12250 PR middle-end/47395
12251 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12253 2011-01-21 Richard Guenther <rguenther@suse.de>
12255 PR tree-optimization/47365
12256 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12257 (vn_reference_lookup_pieces): Adjust.
12258 (vn_reference_lookup): Likewise.
12259 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12260 (vn_reference_lookup_3): Only look through kills if in
12261 VN_WALKREWRITE mode.
12262 (vn_reference_lookup_pieces): Adjust.
12263 (vn_reference_lookup): Likewise.
12264 (visit_reference_op_load): Likewise.
12265 (visit_reference_op_store): Likewise.
12266 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12267 (compute_avail): Likewise.
12268 (eliminate): Likewise.
12270 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12272 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12273 DECL_IGNORED_P non-reg vars if they are used.
12275 PR tree-optimization/47391
12276 * varpool.c (const_value_known_p): Return false if
12279 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12282 * config/i386/i386.c (ix86_local_alignment): Handle
12283 case for va_list_type_node is nil.
12284 (ix86_canonical_va_list_type): Likewise.
12286 2011-01-21 Alan Modra <amodra@gmail.com>
12288 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12289 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12291 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12293 * config/arm/arm.md (define_attr type): Rename f_load
12294 and f_store to f_fpa_load and f_fpa_store. Update.
12295 (write_conflict): Deal with rename fallout.
12296 (*push_fp_multi): Likewise.
12297 * config/arm/fpa.md (f_load): Use f_fpa_load.
12298 (f_store): Use f_fpa_store.
12299 (*movsf_fpa): Likewise.
12300 (*movdf_fpa): Likewise.
12301 (*movxf_fpa): Likewise.
12302 (*thumb2_movsf_fpa): Likewise.
12303 (*thumb2_movdf_fpa): Likewise.
12304 (*thumb2_movxf_fpa): Likewise.
12305 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12306 f_loadd and f_stored.
12307 (*thumb2_movdi_vfp): Likewise.
12308 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12309 (*thumb2_movsi_vfp): Likewise.
12310 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12311 Use f_loads instead of f_load.
12312 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12314 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12316 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12317 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12318 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12319 (xtensa_mode_dependent_address_p): New function.
12320 (constantpool_address_p): Make static. Change return type to bool.
12321 Change argument type to const_rtx. Use CONST_INT_P predicate.
12323 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12326 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12328 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12331 * cfgexpand.c (expand_debug_expr): Instead of generating
12332 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12335 2011-01-20 Richard Guenther <rguenther@suse.de>
12337 PR middle-end/47370
12338 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12339 the pointer operand of MEM_REFs.
12341 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12343 PR tree-optimization/46130
12344 * ipa-split.c (consider_split): If return_bb contains non-virtual
12345 PHIs other than for retval or if split_function would not adjust it,
12348 2011-01-20 Richard Guenther <rguenther@suse.de>
12350 PR tree-optimization/47167
12351 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12352 Revert previous change, only avoid enumeral type changes.
12354 2011-01-19 Mike Stump <mikestump@comcast.net>
12356 * doc/tm.texi.in (BRANCH_COST): Englishify.
12357 * doc/tm.texi (BRANCH_COST): Likewise.
12359 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12362 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12363 (gen_scheduled_generic_parms_dies): New functions.
12364 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12365 generation for the end of CU compilation.
12366 (dwarf2out_finish): Generate template parameters DIEs here.
12368 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12371 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12372 debug bind stmt on merge edges.
12374 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12378 * function.c (instantiate_expr): Instantiate incoming rtl of
12379 implicit arguments, and recurse on VALUE_EXPRs.
12380 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12381 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12383 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12385 * c-parser.c (c_parser_for_statement): Initialize
12386 collection_expression.
12388 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12390 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12392 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12394 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12395 (LINK_SHLIB_SPEC): Don't use %(link_path).
12396 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12398 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12400 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12401 (NO_SHARED_LIB_SUPPORT): Remove.
12402 (LINK_SHLIB_SPEC): Remove one conditional definition.
12404 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12406 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12408 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12409 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12410 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12411 %{call_shared} and conditionals on these options not being passed.
12412 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12415 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12417 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12420 * ipa-split.c: Spelling fixes.
12422 2011-01-19 Richard Henderson <rth@redhat.com>
12424 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12425 (*mulsi3): Likewise.
12427 * longlong.h [__mn10300__] (count_leading_zeros): New.
12428 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12429 [__mn10300__] (add_ssaaaa, subddmmss): New.
12430 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12431 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12433 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12435 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12437 2011-01-19 Richard Henderson <rth@redhat.com>
12439 * config/mn10300/mn10300.md (addsi3_flags): New.
12440 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12441 (subsi3_flags, subc_internal, subdi3): New.
12442 (subdi3_internal, *subdi3_degenerate): New.
12443 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12445 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12446 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12447 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12448 * config/mn10300/mn10300-protos.h: Update.
12449 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12450 (return_ret): Likewise. Rename from return_internal_regs.
12451 (return_internal): Remove.
12453 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12454 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12455 (mn10300_legitimate_constant_p): Likewise.
12456 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12457 (mn10300_frame_size): New.
12458 (mn10300_expand_prologue): Use it.
12459 (mn10300_expand_epilogue): Likewise.
12460 (mn10300_initial_offset): Likewise.
12461 * config/mn10300/mn10300-protos.h: Update.
12462 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12463 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12464 (prologue, epilogue, return_internal): Tidy output code.
12465 (mn10300_store_multiple_operation, return): Likewise.
12466 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12467 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12468 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12469 (load_pic, am33_load_pic): New.
12470 (mn10300_load_pic0, mn10300_load_pic1): New.
12472 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12473 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12474 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12475 (cc_flags_for_mode, cc_flags_for_code): New.
12476 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12477 overflow flag is not valid. Validate that the flags we need
12478 for the comparison are valid.
12479 (mn10300_output_cmp): Remove.
12480 (mn10300_output_add): New.
12481 (mn10300_select_cc_mode): Use cc_flags_for_code.
12482 (mn10300_split_cbranch): New.
12483 (mn10300_match_ccmode): New.
12484 (mn10300_split_and_operand_count): New.
12485 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12487 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12488 (addsi3): ... here. Use mn10300_output_add.
12489 (*addsi3_flags): New.
12490 (*am33_subsi3, *mn10300_subsi3): Merge...
12491 (subsi3): ... here. Use attribute isa.
12492 (*subsi3_flags): New.
12493 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12495 (*am33_andsi3, *mn10300_andsi3): Merge...
12496 (andsi3): ... here.
12497 (*andsi3_flags): New.
12498 (andsi3 splitters): New.
12499 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12500 (iorsi3): ... here.
12501 (*iorsi3_flags): New.
12502 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12503 (xorsi3): ... here.
12504 (*xorsi3_flags): New.
12505 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12506 (one_cmplsi2): ... here.
12507 (*one_cmplsi2_flags): New.
12508 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12509 instead of "dax" in constraints. Use mn10300_split_cbranch.
12510 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12511 use matching constraints to eliminate a self-comparison.
12512 (*integer_conditional_branch): Rename from integer_conditional_branch.
12513 Use int_mode_flags to match CC_REG.
12514 (*cbranchsi4_btst, *btstsi): New.
12515 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12516 mn10300_split_cbranch.
12517 (*am33_cmpsf): Rename from am33_cmpsf.
12518 (*float_conditional_branch): Rename from float_conditional_branch.
12519 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12520 (zero_extendqisi2): ... here.
12521 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12522 (zero_extendhisi2): ... here.
12523 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12524 (extendqisi2): ... here.
12525 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12526 (extendhisi2): ... here.
12527 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12528 (ashlsi3): ... here.
12529 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12530 (lshrsi3): ... here.
12531 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12532 (ashrsi3): ... here.
12533 (consecutive add peephole): Remove.
12534 * config/mn10300/predicates.md (label_ref_operand): New.
12535 (int_mode_flags): New.
12536 (CCZN_comparison_operator): New.
12538 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12539 (throughput_42_latency_43): New reservation.
12540 (mulsidi3, umulsidi3): New expanders.
12541 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12542 the MDR register to allocation; separately allocate the low and
12543 high parts of the DImode result.
12544 (umulsidi3_internal): Similarly.
12545 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12546 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12547 (udivsi3, umodsi3): Remove.
12548 (udivmodsi4, divmodsi4): New expanders.
12549 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12550 (*divmodsi4): Simiarly.
12551 (ext_internal): New.
12553 * config/mn10300/constraints.md ("z"): New constraint.
12554 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12555 (FIXED_REGISTERS): Don't fix MDR.
12556 (CALL_USED_REGSITERS): Reformat nicely.
12557 (REG_ALLOC_ORDER): Add MDR.
12558 (enum regclass): Add MDR_REGS.
12559 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12560 (IRA_COVER_CLASSES): Add MDR_REGS.
12561 (REGNO_REG_CLASS): Handle MDR_REG.
12562 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12563 (mn10300_register_move_cost): Likewise.
12564 * config/mn10300/mn10300.md (MDR_REG): New.
12565 (*movsi_internal): Handle moves to/from MDR_REGS.
12567 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12569 (mn10300_secondary_reload): Tidy combination reload classes.
12570 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12571 addresses for AM33. Allow symbolic offsets for reg+imm.
12572 (mn10300_regno_in_class_p): New.
12573 (mn10300_legitimize_reload_address): New.
12574 * config/mn10300/mn10300.h (enum reg_class): Remove
12575 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12576 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12577 SP_OR_GENERAL_REGS.
12578 (REG_CLASS_NAMES): Update to match.
12579 (REG_CLASS_CONTENTS): Likewise.
12580 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12581 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12582 (REGNO_IN_RANGE_P): Remove.
12583 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12584 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12585 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12586 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12587 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12588 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12589 (REGNO_GENERAL_P): New.
12590 (HAVE_POST_MODIFY_DISP): New.
12591 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12592 (LEGITIMIZE_RELOAD_ADDRESS): New.
12593 * config/mn10300/mn10300-protos.h: Update.
12595 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12596 DATA_REGS for AM33 stack-pointer destination.
12597 (mn10300_preferred_output_reload_class): Likewise.
12598 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12599 into a form appropriate for ...
12600 (TARGET_SECONDARY_RELOAD): New.
12601 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12602 * config/mn10300/mn10300-protos.h: Update.
12603 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12604 reload_insi; use the "A" constraint for the scratch; handle AM33
12605 moves of sp to non-address registers.
12607 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12608 (*movqi_internal): ... here.
12609 (*am33_movhi, *mn10300_movhi): Merge into...
12610 (*movhi_internal): ... here.
12611 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12612 as the source/destination of moves from/to SP.
12613 (movsf): Only allow for AM33-2.
12614 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12615 any integer constant constraint. Only allow for AM33-2. Tidy
12616 all of the alternative outputs.
12617 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12618 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12620 (udivsi3, umodsi3): New patterns for MN103 only.
12622 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12624 * doc/tm.texi.in: Spell out that a lack of register class unions
12626 * doc/tm.texi: Regenerate.
12628 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12630 PR rtl-optimization/47337
12631 * dce.c (check_argument_store): New function.
12632 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12634 PR tree-optimization/47290
12635 * tree-eh.c (infinite_empty_loop_p): New function.
12636 (cleanup_empty_eh): Use it.
12638 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12641 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12642 (a64_expand_widen_sum): Ditto.
12643 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12644 (vec_extract_evenodd_help): Ditto.
12645 (vec_extract_evenv4hi): Ditto.
12646 (vec_extract_oddv4hi): Ditto.
12647 (vec_extract_evenv2si): Ditto.
12648 (vec_extract_oddv2si): Ditto.
12649 (vec_extract_evenv2sf): Ditto.
12650 (vec_extract_oddv2sf): Ditto.
12651 (vec_pack_trunc_v4hi: Ditto.
12652 (vec_pack_trunc_v2si): Ditto.
12653 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12654 (vec_interleave_highv8qi): Ditto.
12656 (vec_extract_oddv8qi): Ditto.
12657 (vec_interleave_lowv4hi): Ditto.
12658 (vec_interleave_highv4hi): Ditto.
12659 (vec_interleave_lowv2si): Ditto.
12660 (vec_interleave_highv2si): Ditto.
12662 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12664 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12665 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12666 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12667 (pa_c_mode_for_suffix): New.
12668 (TARGET_EXPAND_BUILTIN): Define.
12669 (TARGET_C_MODE_FOR_SUFFIX): Define.
12670 (pa_builtins): Define.
12671 (pa_init_builtins): Register __float128 type and init new support
12673 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12674 * config/pa/quadlib.c (_U_Qfcopysign): New.
12676 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12678 PR middle-end/46894
12679 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12680 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12683 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12685 PR tree-optimization/47179
12686 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12687 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12689 2011-01-18 Richard Guenther <rguenther@suse.de>
12691 PR rtl-optimization/47216
12692 * emit-rtl.c: Include tree-flow.h.
12693 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12694 of replicating it with different semantics.
12695 * Makefile.in (emit-rtl.o): Adjust.
12697 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12699 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12700 (cortex_a9_dp): Handle neon types correctly.
12702 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12704 PR rtl-optimization/47299
12705 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12706 subtarget. Use normal multiplication if both operands are constants.
12707 * expmed.c (expand_widening_mult): Don't try to optimize constant
12708 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12711 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12713 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12714 spacing after 'e.g.', typos, comma, hyphenation.
12716 2011-01-17 Richard Henderson <rth@redhat.com>
12718 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12719 (rx_restricted_mem_operand): New.
12720 (rx_shift_operand): Use register_operand.
12721 (rx_source_operand, rx_compare_operand): Likewise.
12722 * config/rx/rx.md (addsi3_flags): New expander.
12723 (adddi3): Rewrite as expander.
12724 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12725 (subsi3_flags): New expander.
12726 (subdi3): Rewrite as expander.
12727 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12729 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12730 (rx_init_builtins): Remove sat builtin.
12731 (rx_expand_builtin): Likewise.
12732 * config/rx/rx.md (ssaddsi3): New.
12733 (*sat): Rename from sat. Represent the CC_REG input.
12735 * config/rx/predicates.md (rshift_operator): New.
12736 * config/rx/rx.c (rx_expand_insv): Remove.
12737 * config/rx/rx-protos.h: Update.
12738 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12739 operand to the canonical position.
12740 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12741 (*bitclr, *bitclr_in_memory): Similarly.
12742 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12743 (insv): Retain the zero_extract in the expansion.
12745 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12746 (bswaphi2, bitinvert, revw): Likewise.
12748 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12749 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12750 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12751 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12752 (bitset, bitset_in_memory): Likewise.
12753 (bitinvert, bitinvert_in_memory): Likewise.
12754 (bitclr, bitclr_in_memory): Likewise.
12755 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12756 (rx_strend, rx_cmpstrn): Likewise.
12757 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12758 (bitop peep2 patterns): Remove.
12760 * config/rx/rx.c (rx_match_ccmode): New.
12761 * config/rx/rx-protos.h: Update.
12762 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12763 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12764 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12765 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12766 (fix_truncsfsi2, floatsisf2): Likewise.
12767 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12768 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12769 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12770 (*subsi3_flags, *xorsi3_flags): New.
12772 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12774 * config/rx/rx.c (rx_print_operand): Remove workaround for
12775 unsplit comparison operations.
12777 * config/rx/rx.md (movsicc): Split after reload.
12778 (*movsicc): Merge *movsieq and *movsine via match_operator.
12779 (*stcc): New pattern.
12781 * config/rx/rx.c (rx_float_compare_mode): Remove.
12782 * config/rx/rx.h (rx_float_compare_mode): Remove.
12783 * config/rx/rx.md (cstoresi4): Split after reload.
12784 (*sccc): New pattern.
12786 * config/rx/predicates.md (label_ref_operand): New.
12787 (rx_z_comparison_operator): New.
12788 (rx_zs_comparison_operator): New.
12789 (rx_fp_comparison_operator): New.
12790 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12791 Validate that the flags are set properly for the comparison.
12792 (rx_gen_cond_branch_template): Remove.
12793 (rx_cc_modes_compatible): Remove.
12794 (mode_from_flags): New.
12795 (flags_from_code): Rename from flags_needed_for_conditional.
12796 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12797 (rx_select_cc_mode): Likewise.
12798 (rx_split_fp_compare): New.
12799 (rx_split_cbranch): New.
12800 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12801 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12802 (*cbranchsf4): Similarly.
12803 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12804 match_operator and rx_split_cbranch.
12805 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12806 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12807 (*cmpsi): Rename from cmpsi.
12808 (*tstsi): Rename from tstsi.
12809 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12810 (*conditional_branch): Rename from conditional_branch.
12811 (*reveresed_conditional_branch): Remove.
12812 (b<code>): Remove expander.
12813 * config/rx/rx-protos.h: Update.
12815 * config/rx/rx.c (rx_compare_redundant): Remove.
12816 * config/rx/rx.md (cmpsi): Don't use it.
12817 * config/rx/rx-protos.h: Update.
12819 * config/rx/rx-modes.def (CC_F): New mode.
12820 * config/rx/rx.c (rx_select_cc_mode): New.
12821 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12822 * config/rx/rx-protos.h: Update.
12824 2011-01-17 Richard Henderson <rth@redhat.com>
12826 * except.c (dump_eh_tree): Fix stray ; after for statement.
12828 2011-01-17 Richard Guenther <rguenther@suse.de>
12830 PR tree-optimization/47313
12831 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12832 handling before copying the body. Properly deal with
12833 by-reference result in SSA form.
12835 2011-01-17 Ian Lance Taylor <iant@google.com>
12838 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12839 (struct_value_alias_set): Don't define.
12840 (sparc_option_override): Don't set sparc_sr_alias_set and
12841 struct_value_alias_set.
12842 (save_or_restore_regs): Use gen_frame_mem rather than calling
12844 (sparc_struct_value_rtx): Likewise.
12846 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12849 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12850 (_mm_maskstore_pd): Likewise.
12851 (_mm_maskload_ps): Likewise.
12852 (_mm_maskstore_ps): Likewise.
12853 (_mm256_maskload_pd): Change mask to __m256i.
12854 (_mm256_maskstore_pd): Likewise.
12855 (_mm256_maskload_ps): Likewise.
12856 (_mm256_maskstore_ps): Likewise.
12858 * config/i386/i386-builtin-types.def: Updated.
12859 (ix86_expand_special_args_builtin): Likewise.
12861 * config/i386/i386.c (bdesc_special_args): Update
12862 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12863 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12864 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12865 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12867 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12868 Use <avxpermvecmode> on mask register.
12869 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12871 2011-01-17 Olivier Hainque <hainque@adacore.com>
12872 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12873 Eric Botcazou <ebotcazou@adacore.com>
12876 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12877 if <= USHRT_MAX in 32-bit mode.
12879 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12881 * doc/install.texi (Configuration, Specific): Wrap long
12882 lines in examples. Allow line wrapping in long options
12883 and URLs where beneficial for PDF output.
12885 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12887 * config/mips/mips.c (mips_classify_symbol): Don't return
12888 SYMBOL_PC_RELATIVE for nonlocal labels.
12890 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12892 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12894 2011-01-15 Jan Hubicka <jh@suse.cz>
12896 PR tree-optimization/47276
12897 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12898 declarations as needed.
12900 2011-01-15 Martin Jambor <mjambor@suse.cz>
12902 * common.opt (fdevirtualize): New flag.
12903 * doc/invoke.texi (Option Summary): Document it.
12904 * opts.c (default_options_table): Add devirtualize flag.
12905 * ipa-prop.c (detect_type_change): Return immediately if
12906 devirtualize flag is not set.
12907 (detect_type_change_ssa): Likewise.
12908 (compute_known_type_jump_func): Likewise.
12909 (ipa_analyze_virtual_call_uses): Likewise.
12911 2011-01-14 Martin Jambor <mjambor@suse.cz>
12913 PR tree-optimization/45934
12914 PR tree-optimization/46302
12915 * ipa-prop.c (type_change_info): New type.
12916 (stmt_may_be_vtbl_ptr_store): New function.
12917 (check_stmt_for_type_change): Likewise.
12918 (detect_type_change): Likewise.
12919 (detect_type_change_ssa): Likewise.
12920 (compute_complex_assign_jump_func): Check for dynamic type change.
12921 (compute_complex_ancestor_jump_func): Likewise.
12922 (compute_known_type_jump_func): Likewise.
12923 (compute_scalar_jump_functions): Likewise.
12924 (ipa_analyze_virtual_call_uses): Likewise.
12925 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12927 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12929 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12930 * config/i386/i386.opt (msse5): New Alias.
12932 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12934 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12935 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12936 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12937 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12939 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12941 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12943 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12944 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12945 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12946 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12948 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12950 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12952 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12954 2011-01-14 Mike Stump <mikestump@comcast.net>
12956 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12957 * config/fr30/fr30.md: Likweise
12958 (movsi_push): Likewise.
12959 (movsi_pop): Likewise.
12960 (enter_func): Likewise.
12961 * config/moxie/moxie.md (movsi_push): Likewise.
12962 (movsi_pop): Likewise.
12964 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12966 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12967 %{no_archive} %{exact_version}.
12968 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12969 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12970 %{no_archive} %{exact_version}.
12971 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12972 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12973 * config/mips/vxworks.h: Likewise.
12975 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12977 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12979 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12981 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12982 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12984 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12986 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12989 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12991 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12993 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12994 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12996 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12997 Don't handle -shlib.
12999 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13001 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13002 (CC1_SPEC): Don't handle -profile.
13004 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13006 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13007 * config/mips/mips.h (CC1_SPEC): Likewise.
13009 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13011 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13012 * config/mips/mips.h (CC1_SPEC): Likewise.
13014 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13016 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13017 * config/m32r/linux.h (LINK_SPEC): Likewise.
13018 * config/mips/linux.h (LINK_SPEC): Likewise.
13019 * config/mips/linux64.h (LINK_SPEC): Likewise.
13020 * config/sparc/linux.h (LINK_SPEC): Likewise.
13021 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13022 LINK_SPEC): Likewise.
13023 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13025 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13027 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13029 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13031 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13033 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13034 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13036 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13038 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13040 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13042 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13043 supports -Bstatic/-Bdynamic.
13044 * configure: Regenerate.
13046 2011-01-14 Jan Hubicka <jh@suse.cz>
13047 Jack Howarth <howarth@bromo.med.uc.edu>
13050 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13051 when checking debug_info_level. Test write_symbols instead of
13052 debug_hooks->var_location when setting flag_var_tracking_uninit.
13054 2011-01-14 Richard Guenther <rguenther@suse.de>
13056 PR tree-optimization/47179
13057 * target.def (ref_may_alias_errno): New target hook.
13058 * targhooks.h (default_ref_may_alias_errno): Declare.
13059 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13060 (default_ref_may_alias_errno): New function.
13061 * target.h (struct ao_ref_s): Declare.
13062 * tree-ssa-alias.c: Include target.h.
13063 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13064 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13065 (targhooks.o): Likewise.
13066 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13067 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13069 2011-01-14 Richard Guenther <rguenther@suse.de>
13071 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13073 2011-01-14 Richard Guenther <rguenther@suse.de>
13075 PR tree-optimization/47280
13076 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13077 return CFG changes.
13078 (tree_ssa_forward_propagate_single_use_vars): Deal with
13079 CFG changes from associate_plusminus.
13081 2011-01-14 Richard Guenther <rguenther@suse.de>
13083 PR middle-end/47281
13085 2011-01-11 Richard Guenther <rguenther@suse.de>
13087 PR tree-optimization/46076
13088 * tree-ssa.c (useless_type_conversion_p): Conversions from
13089 unprototyped to empty argument list function types are useless.
13091 2011-01-14 Richard Guenther <rguenther@suse.de>
13093 PR tree-optimization/47286
13094 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13096 2011-01-14 Martin Jambor <mjambor@suse.cz>
13098 PR middle-end/46823
13099 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13101 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13103 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13104 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13105 * config/xtensa/xtensa.c (xtensa_libcall_value,
13106 xtensa_function_value_regno_p): New functions.
13107 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13109 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13112 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13114 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13115 New function prototype.
13116 * config/i386/winnt.c (i386_pe_assemble_visibility):
13117 Warn only if attribute was specified by user.
13119 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13122 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13124 (floatunsdidf2_fcfidu): Ditto.
13126 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13128 * config/s390/s390.c (print_operand_address): Replace 'error' with
13129 'output_operand_lossage'.
13130 (print_operand): Likewise.
13132 2011-01-13 Jeff Law <law@redhat.com>
13134 PR rtl-optimization/39077
13135 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13136 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13137 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13138 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13139 * gcse.c (prune_insertions_deletions): New function.
13140 (compute_pre_data): Use it.
13142 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13145 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13147 (prune_unused_types_mark): Use it.
13149 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13151 PR rtl-optimization/45352
13152 * sel-sched.c: Update copyright years.
13153 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13154 in the advancing loop when we have issued issue_rate insns.
13156 2011-01-12 Richard Henderson <rth@redhat.com>
13158 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13159 (TARGET_MD_ASM_CLOBBERS): New.
13161 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13162 (TARGET_DELEGITIMIZE_ADDRESS): New.
13164 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13165 (clzsi2, *bsch): New patterns.
13167 * config/mn10300/mn10300.md (INT): New mode iterator.
13168 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13170 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13171 flag_split_wide_types.
13173 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13174 (mn10300_trampoline_init): Rewrite without a template, an immediate
13175 load and a direct branch.
13176 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13178 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13180 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13181 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13182 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13183 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13185 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13188 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13191 2011-01-12 Jan Hubicka <jh@suse.cz>
13194 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13195 (PLUGIN_COND_CLOSE): New macro.
13196 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13198 2011-01-12 Richard Guenther <rguenther@suse.de>
13201 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13202 register variables in a MEM_REF.
13204 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13206 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13207 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13208 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13209 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13210 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13211 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13212 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13213 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13214 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13215 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13216 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13217 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13218 * config/gnu-user.h: New. Copied from linux.h.
13219 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13220 GNU_USER_TARGET_STARTFILE_SPEC.
13221 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13222 GNU_USER_TARGET_ENDFILE_SPEC.
13223 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13224 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13225 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13226 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13227 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13228 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13229 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13230 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13231 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13232 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13233 * config/arm/linux-eabi.h (CC1_SPEC): Use
13234 GNU_USER_TARGET_CC1_SPEC.
13235 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13236 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13237 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13238 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13239 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13240 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13241 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13242 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13244 2011-01-12 Richard Guenther <rguenther@suse.de>
13247 * doc/invoke.texi (ffast-math): Document it is turned on
13250 2011-01-12 Jan Hubicka <jh@suse.cz>
13252 PR tree-optimization/47233
13253 * opts.c (common_handle_option): Disable ipa-reference with profile
13256 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13258 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13261 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13263 * c-parser.c (c_lex_one_token): Updated and reindented some
13264 comments. No changes in code.
13266 2011-01-11 Ian Lance Taylor <iant@google.com>
13268 * godump.c (go_output_var): Don't output the variable if there is
13269 already a type with the same name.
13271 2011-01-11 Ian Lance Taylor <iant@google.com>
13273 * godump.c (go_format_type): Don't generate float80.
13275 2011-01-11 Richard Henderson <rth@redhat.com>
13277 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13278 declaration. Rewrite for both speed and size.
13279 (mn10300_address_cost_1): Remove.
13280 (mn10300_register_move_cost): New.
13281 (mn10300_memory_move_cost): New.
13282 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13283 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13284 extensions, shifts, BSWAP, CLZ.
13285 (mn10300_wide_const_load_uses_clr): Remove.
13286 (TARGET_REGISTER_MOVE_COST): New.
13287 (TARGET_MEMORY_MOVE_COST): New.
13288 * config/mn10300/mn10300-protos.h: Update.
13289 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13291 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13292 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13293 * config/mn10300/mn10300-protos.h: Update.
13294 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13295 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13296 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13297 (*test_int_bitfield, *test_byte_bitfield): Remove.
13298 (*bit_test, *subreg_bit_test): Remove.
13299 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13301 * config/mn10300/constraints.md ("c"): Rename from "A".
13302 ("A", "D"): New constraint letters.
13303 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13304 (fmssf4, fnmasf4, fnmssf4): Likewise.
13306 * config/mn10300/mn10300.md (isa): New attribute.
13307 (enabled): New attribute.
13309 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13310 (abssf2, negsf2): Define only for hardware fp.
13311 (sqrtsf2): Reformat.
13312 (addsf3, subsf3, mulsf3): Merge expander and insn.
13314 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13315 (DEBUGGER_AUTO_OFFSET): Remove.
13316 (DEBUGGER_ARG_OFFSET): Remove.
13318 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13319 Emit register stores with the same offsets as the hardware.
13320 (mn10300_store_multiple_operation): Don't check that the register
13321 save offsets are monotonic.
13322 * config/mn10300/mn10300-protos.h: Update.
13324 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13326 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13327 in terms of the value on the stack, not the MDR register.
13329 2011-01-11 Jan Hubicka <jh@suse.cz>
13333 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13334 (symbol_alias_set_destroy, symbol_alias_set_contains,
13335 propagate_aliases_backward): Declare.
13336 * lto-streamer-out.c (struct sets): New sturcture.
13337 (trivally_defined_alias): New function.
13338 (output_alias_pair_p): Rewrite.
13339 (output_unreferenced_globals): Fix output of alias pairs.
13340 (produce_symtab): Likewise.
13341 * ipa.c (function_and_variable_visibility): Set weak alias destination
13343 * varasm.c (symbol_alias_set_t): Remove.
13344 (symbol_alias_set_destroy): Export.
13345 (propagate_aliases_forward, propagate_aliases_backward): New functions
13347 (compute_visible_aliases): ... this one; remove.
13348 (trivially_visible_alias): New
13349 (trivially_defined_alias): New.
13350 (remove_unreachable_alias_pairs): Rewrite.
13351 (finish_aliases_1): Reorganize code checking if alias is defined.
13352 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13355 2011-01-11 Richard Guenther <rguenther@suse.de>
13357 PR tree-optimization/46076
13358 * tree-ssa.c (useless_type_conversion_p): Conversions from
13359 unprototyped to empty argument list function types are useless.
13361 2011-01-11 Richard Guenther <rguenther@suse.de>
13363 PR middle-end/45235
13364 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13365 volatile MEMs as MEM_READONLY_P.
13367 2011-01-11 Richard Guenther <rguenther@suse.de>
13369 PR tree-optimization/47239
13370 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13372 2011-01-11 Jeff Law <law@redhat.com>
13374 PR tree-optimization/47086
13375 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13376 IVs from statements that might throw.
13378 2011-01-10 Jan Hubicka <jh@suse.cz>
13381 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13383 2011-01-10 Jan Hubicka <jh@suse.cz>
13386 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13387 when correcting profile.
13389 2011-01-10 Jan Hubicka <jh@suse.cz>
13392 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13393 DECL_FINI_PRIORITY.
13394 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13395 Restore DECL_FINI_PRIORITY.
13397 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13399 * doc/gimple.texi: Fix quoting of multi-word return values in
13400 @deftypefn statements. Ensure presence of return value. Wrap
13401 overlong @deftypefn lines.
13402 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13403 descriptions of removed functions.
13404 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13405 of multi-word return value in @deftypefn statement.
13407 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13409 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13410 (Conditional Expressions, Logical Operators)
13411 (Statement and operand traversals): Do not indent smallexample
13412 code. Fix duplicate function argument in example.
13414 2011-01-10 Jeff Law <law@redhat.com>
13416 PR tree-optimization/47141
13417 * ipa-split.c (split_function): Handle case where we are
13418 returning a value and the return block has a virtual operand phi.
13420 2011-01-10 Jan Hubicka <jh@suse.cz>
13422 PR tree-optimization/47234
13423 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13424 (pass_feedback_split_functions): Declare.
13425 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13427 * ipa-split.c (gate_split_functions): Update comments; disable
13428 split-functions for profile_arc_flag and branch_probabilities.
13429 (gate_feedback_split_functions): New function.
13430 (execute_feedback_split_functions): New function.
13431 (pass_feedback_split_functions): New global var.
13433 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13436 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13437 calling gimple_call_set_cannot_inline.
13439 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13441 * config/darwin-sections.def: Remove unused section.
13443 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13446 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13448 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13451 * c-parser.c (c_parser_declaration_or_fndef): Improved
13454 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13456 * config/i386/winnt.c (i386_pe_start_function): Make sure
13457 to switch back to function's section.
13459 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13463 * plugin.c: Move include of dlfcn.h from here...
13464 * system.h: ... to here.
13466 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13468 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13470 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13471 two extra empty pages in PDF output.
13473 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13476 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13477 for error recovery purposes behave as if it was not specified so
13478 that the default type is usd.
13480 2011-01-07 Jan Hubicka <jh@suse.cz>
13482 PR tree-optmization/46469
13483 * ipa.c (function_and_variable_visibility): Clear needed flags on
13484 nodes with external decls; handle weakrefs merging correctly.
13486 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13488 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13491 2011-01-07 Jan Hubicka <jh@suse.cz>
13493 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13494 and no longer claim that gold is required for linker plugin.
13495 * configure: Regenerate.
13496 * gcc.c (PLUGIN_COND): New macro.
13497 (LINK_COMMAND_SPEC): Use it.
13498 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13499 * config.in (HAVE_LTO_PLUGIN): New.
13500 * configure.ac (--with-lto-plugin): New parameter; autodetect
13503 2011-01-07 Jan Hubicka <jh@suse.cz>
13505 PR tree-optimization/46367
13506 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13507 when we can update original.
13508 (cgraph_mark_inline_edge): Sanity check.
13509 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13511 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13513 * config/spu/spu.h (ASM_COMMENT_START): Define.
13515 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13518 * gcc.c (%>S): New.
13519 (SWITCH_KEEP_FOR_GCC): Likewise.
13520 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13521 (do_spec_1): Handle "%>".
13523 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13525 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13528 * config/i386/i386.c (ix86_delegitimize_address): If
13529 simplify_gen_subreg fails, return orig_x.
13532 * value-prof.c (gimple_stringop_fixed_value): Handle
13533 lhs of the call properly.
13535 2011-01-07 Jan Hubicka <jh@suse.cz>
13538 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13540 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13542 * target.def (function_switched_text_sections): New hook.
13543 * doc/tm.texi: Regenerated.
13544 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13545 * final.c (default_function_switched_text_sections): New.
13546 (final_scan_insn): Call function_switched_text_sections when a
13547 mid-function section change occurs.
13548 * output.h (default_function_switched_text_sections): Declare.
13549 * config/darwin-protos.h (darwin_function_switched_text_sections):
13551 * config/darwin.c (darwin_function_switched_text_sections): New.
13552 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13554 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13556 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13557 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13558 the secondary code fragment when outputting for DWARF == 2.
13560 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13562 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13563 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13565 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13566 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13568 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13571 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13572 when it is not empty.
13574 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13577 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13578 (case ${target}): Add btver1.
13579 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13580 -march=native recognize btver1 processors.
13581 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13582 btver1 def_and_undef
13583 * config/i386/i386.c (struct processor_costs btver1_cost): New
13585 (m_BTVER1): New definition.
13586 (m_AMD_MULTIPLE): Includes m_BTVER1.
13587 (initial_ix86_tune_features): Add btver1 tune.
13588 (processor_target_table): Add btver1 entry.
13589 (static const char *const cpu_names): Add btver1 entry.
13590 (software_prefetching_beneficial_p): Add btver1.
13591 (ix86_option_override_internal): Add btver1 instruction sets.
13592 (ix86_issue_rate): Add btver1.
13593 (ix86_adjust_cost): Add btver1.
13594 * config/i386/i386.h (TARGET_BTVER1): New definition.
13595 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13596 (enum processor_type): Add PROCESSOR_BTVER1.
13597 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13599 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13602 * config/i386/i386.c (legitimize_tls_address)
13603 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13604 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13605 (tls_initial_exec_64_sun): New pattern.
13607 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13609 * doc/invoke.texi (Overall Options): Improve wording and markup
13610 of the description of -wrapper.
13612 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13614 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13615 rdynamic, threads): New Driver options.
13617 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13620 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13621 if coming from .tdata.
13622 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13624 2011-01-06 Jan Hubicka <jh@suse.cz>
13627 * collect2.c (main): Do not enable LTOmode when plugin is active.
13629 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13632 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13633 --version output if supported.
13634 * configure: Regenerate.
13636 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13638 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13641 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13644 * c-convert.c (convert): When converting a complex expression
13645 other than COMPLEX_EXPR to a different complex type, ensure
13646 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13647 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13648 when converting COMPLEX_TYPE.
13650 2011-01-06 Ira Rosen <irar@il.ibm.com>
13652 PR tree-optimization/47139
13653 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13654 only the last reduction value is used outside the loop. Update
13657 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13659 * config/rtems.opt: New.
13660 * config.gcc (*-*-rtems*): Use rtems.opt.
13662 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13664 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13665 processors do not support 3DNow instructions.
13667 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13669 * config/spu/spu.c (spu_option_override): Set parameter
13670 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13672 2011-01-05 Jan Hubicka <jh@suse.cz>
13674 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13675 at the command line.
13677 2011-01-05 Martin Jambor <mjambor@suse.cz>
13680 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13681 deltas on streamed outgoing edges.
13682 (output_node_opt_summary): Output info for outgoing edges only when
13683 the node is in new parameter set.
13684 (output_cgraph_opt_summary): New parameter set, passed to the two
13685 aforementioned functions. Update its forward declaration and its
13688 2011-01-05 Tom Tromey <tromey@redhat.com>
13690 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13691 operator to c_finish_omp_atomic.
13692 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13693 (build_unary_op): Update.
13694 (build_modify_expr): Update.
13695 (build_asm_expr): Update.
13697 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13699 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13700 newly inserted insns.
13701 (pad_bb): Likewise.
13702 (spu_emit_branch_hint): Likewise.
13703 (insert_hbrp_for_ilb_runout): Likewise.
13704 (spu_machine_dependent_reorg): Call df_finish_pass after
13705 schedule_insns returns.
13707 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13709 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13711 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13713 PR tree-optimization/47005
13714 * tree-sra.c (struct access): Add 'non_addressable' bit.
13715 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13716 (decide_one_param_reduction): Return 0 if the parameter is passed by
13717 reference and one of the accesses in the group is non_addressable.
13719 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13721 PR tree-optimization/47056
13722 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13723 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13724 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13726 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13728 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13729 initializer. Skip view conversions from aggregate types.
13731 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13734 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13736 2011-01-04 Philipp Thomas <pth@suse.de>
13738 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13741 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13743 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13744 on empty epilogue sequences.
13746 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13748 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13749 non-static): New Driver options.
13751 2011-01-04 Jie Zhang <jie@codesourcery.com>
13754 * gcc.c (default_compilers[]): Set combinable field to 0
13755 for all assembly languages.
13757 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13759 * config/mips/loongson3a.md: New file.
13760 * config/mips/mips.md: Include loongson3a.md.
13761 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13764 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13766 PR middle-end/47017
13767 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13768 instead of convert_memory_address_addr_space on the base expression.
13770 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13772 * config/spu/spu.c (spu_option_override): Update error text
13773 for bad -march= / -mtune= values.
13775 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13777 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13778 if branch-hint optimization will be performed.
13780 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13782 PR tree-optimization/47148
13783 * ipa-split.c (split_function): Convert arguments to
13784 DECL_ARG_TYPE if possible.
13786 PR tree-optimization/47155
13787 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13788 when computing uns.
13790 PR rtl-optimization/47157
13791 * combine.c (try_combine): If undobuf.other_insn becomes
13792 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13793 and set *new_direct_jump_p too.
13795 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13797 PR tree-optimization/47021
13798 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13800 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13802 * gcc.c (process_command): Update copyright notice dates.
13803 * gcov.c (print_version): Likewise.
13804 * gcov-dump.c (print_version): Likewise.
13805 * mips-tfile.c (main): Likewise.
13806 * mips-tdump.c (main): Likewise.
13808 2011-01-03 Martin Jambor <mjambor@suse.cz>
13810 PR tree-optimization/46801
13811 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13812 aggregate fields start at byte boundary instead of the bit-field flag.
13814 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13817 * gcc.c (main): Revert revision 168407.
13819 2011-01-03 Martin Jambor <mjambor@suse.cz>
13821 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13823 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13825 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13826 vector optab to expand vector/scalar shift, update gimple to vector.
13828 2011-01-03 Martin Jambor <mjambor@suse.cz>
13830 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13833 2011-01-03 Martin Jambor <mjambor@suse.cz>
13835 PR tree-optimization/46984
13836 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13838 (cgraph_create_indirect_edge): Fixed line length.
13839 (cgraph_indirect_call_info): Declare.
13840 (cgraph_make_edge_direct) Update declaration.
13841 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13842 (cgraph_create_indirect_edge): Use it.
13843 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13845 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13846 the new thunk_delta representation.
13847 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13849 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13850 (ipa_read_indirect_edge_info): Likewise.
13851 * lto-cgraph.c (output_edge_opt_summary): New function.
13852 (output_node_opt_summary): Call it on all outgoing edges.
13853 (input_edge_opt_summary): New function.
13854 (input_node_opt_summary): Call it on all outgoing edges.
13856 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13859 * gcc.c (main): Don't check have_o when settting combine_inputs.
13861 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13863 * regrename.c: Add general comment describing the pass.
13864 (struct du_head): Remove 'length' field.
13865 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13866 (regrename_optimize): Do not sort chains. Rework comments, add others.
13867 Force renaming to the preferred class (if any) in the first pass and do
13868 not consider registers that belong to it in the second pass.
13869 (create_new_chain): Do not set 'length' field.
13870 (scan_rtx_reg): Likewise.
13872 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13874 PR tree-optimization/47140
13875 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13876 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13877 to bit_value_binop.
13879 PR rtl-optimization/47028
13880 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13881 parm_birth_insn instead of at the beginning of first bb.
13883 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13885 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13886 Remove the word "see" before "@pxref".
13887 * doc/rtl.texi: Remove the word "see" before "@pxref".
13889 2011-01-01 Jan Hubicka <jh@suse.cz>
13891 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13894 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13897 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13900 Copyright (C) 2011 Free Software Foundation, Inc.
13902 Copying and distribution of this file, with or without modification,
13903 are permitted in any medium without royalty provided the copyright
13904 notice and this notice are preserved.