1 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3 PR rtl-optimization/48927
4 * ira-conflicts.c (commutative_constraint_p): Use
5 recog_data.alternative_enabled_p to disable alternatives where
6 "enabled" attribute is false.
8 * ira-lives.c (single_reg_class): Ditto.
9 (ira_implicitly_set_insn_hard_regs): Ditto.
11 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
13 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
14 (dataflow_set_preserve_mem_locs): Likewise.
16 2011-05-09 Philipp Thomas <pth@suse.de>
18 * config/mep/mep.c (mep_validate_vliw): Syntax description
19 should not be translated.
21 2011-05-09 Joseph Myers <joseph@codesourcery.com>
23 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
24 * config/mips/mips-tables.opt: New file (generated).
25 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
26 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
27 MIPS_ARCH_OPTION_NATIVE): Define.
28 * config/mips/mips.c (mips_cpu_info_table): Move contents to
30 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
31 mips_parse_cpu): Remove.
32 (mips_cpu_info_from_opt, mips_default_arch): New.
33 (mips_handle_option): Don't assert that global structures are in
34 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
35 (mips_option_override): Use new variables and functions to set
36 state of these options. Use strcmp to check for individual CPU names.
37 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
39 * config/mips/mips.opt (march=): Use ToLower and Enum.
40 (mips): Use ToLower, Enum and Var.
41 (mtune=): Use ToLower and Enum.
42 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
44 2011-05-08 Jan Hubicka <jh@suse.cz>
46 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
47 Arrange type pairs to be UID ordered.
48 (gimple_lookup_type_leader): Make inline.
50 2011-05-09 Nick Clifton <nickc@redhat.com>
53 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
57 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
60 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
62 * combine.c (simplify_comparison): Abstract out parts into...
63 (simplify_compare_const): ... new function.
64 (try_combine): Generalize parallel arithmetic/compare combining
65 to call simplify_compare_const() and CANONICALIZE_COMPARE().
67 2011-05-08 Jan Hubicka <jh@suse.cz>
69 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
70 (cgraph_create_virtual_clone): Call hooks once virtual clone
72 * cgraph.h (cgraph_clone_node): Update prototype.
73 * ipa-cp.c (ipcp_estimate_growth): Use
74 estimate_ipcp_clone_size_and_time.
75 * ipa-inline-transform.c (clone_inlined_nodes): Update.
76 * lto-cgraph.c (input_node): Update.
77 * ipa-inline.c (recursive_inlining): Update.
78 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
79 (evaluate_conditions_for_known_args): Break out from ...
80 (evaluate_conditions_for_edge): ... here.
81 (evaluate_conditions_for_ipcp_clone): New function.
82 (inline_node_duplication_hook): Update clone summary based
84 (estimate_callee_size_and_time): Rename to ...
85 (estimate_node_size_and_time): take NODE instead of EDGE;
86 take POSSIBLE_TRUTHS as argument.
87 (estimate_callee_size_and_time): Update.
88 (estimate_ipcp_clone_size_and_time): New function.
89 (do_estimate_edge_time): Update.
91 2011-05-08 Richard Guenther <rguenther@suse.de>
95 * expmed.c (expand_shift_1): Compute adjusted constant shift
98 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
100 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
102 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
104 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
106 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
108 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
110 2011-05-07 Jan Hubicka <jh@suse.cz>
112 * ipa-inline-transform.c (inline_call): Account when program size
114 * ipa-inline.c (relative_time_benefit): New function.
115 (edge_badness): Reorganize to be power 2 based; fix thinko when
116 computing badness for negative growth; update comments to match
117 reality; better dumps.
119 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
121 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
122 type to bool and adjust comment.
123 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
124 (fold_mathfn_compare): Remove calls to global_bindings_p.
125 (fold_inf_compare): Likewise.
126 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
127 * c-tree.h (global_bindings_p): Adjust prototype.
128 * c-decl.c (global_bindings_p): Return bool and simplify.
130 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
132 PR tree-optimization/48837
133 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
134 when accumulator transformation is performed.
136 2011-05-06 Jan Hubicka <jh@suse.cz>
138 * i386.h (ix86_tune_indices): Add
139 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
140 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
141 * i386.c (initial_ix86_tune_features): Add
142 X86_SOFTARE_PREFETCHING_BENEFICIAL.
143 (software_prefetching_beneficial_p): Remove predicate.
144 (ix86_option_override_internal): Use new macro.
146 2011-05-06 Jan Hubicka <jh@suse.cz>
148 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
150 2011-05-06 Jan Hubicka <jh@suse.cz>
152 * cgraph.c (cgraph_add_thunk): Create real function node instead
153 of alias node; finalize it and mark needed/reachale; arrange visibility
154 to be right and add it into the corresponding same comdat group list.
155 (dump_cgraph_node): Dump thunks.
156 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
157 cgraph_function_with_gimple_body_p,
158 cgraph_first_function_with_gimple_body,
159 cgraph_next_function_with_gimple_body): New functions.
160 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
162 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
163 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
164 * cgraphunit.c (cgraph_finalize_function): Only look into possible
165 devirtualization when optimizing.
166 (verify_cgraph_node): Verify thunks.
167 (cgraph_analyze_function): Analyze thunks.
168 (cgraph_mark_functions_to_output): Output thunks only in combination
169 with function they are assigned to.
170 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
171 alias into normal node.
172 (assemble_thunks): New functoin.
173 (cgraph_expand_function): Use it.
174 * lto-cgraph.c (lto_output_node): Stream thunks.
175 (input_overwrite_node): Stream in thunks.
176 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
177 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
178 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
179 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
180 (inline_analyze_function): Do not care about thunk jump functions.
181 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
182 * ipa-prop.c (ipa_prop_write_jump_functions): Use
183 cgraph_function_with_gimple_body_p.
184 * passes.c (do_per_function_toporder): Use
185 cgraph_function_with_gimple_body_p.
186 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
187 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
188 (function_called_by_processed_nodes_p): Likewise.
190 2011-05-06 Joseph Myers <joseph@codesourcery.com>
192 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
193 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
195 (mabi=): Replace with separate entries for mabi=altivec,
196 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
197 mabi=ieeelongdouble and mabi=ibmlongdouble.
198 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
199 check for -mabi=spe without SPE ABI support here.
200 (rs6000_handle_option): Replace OPT_mabi_ handling with
201 OPT_mabi_altivec and OPT_mabi_spe handling.
203 2011-05-06 Cary Coutant <ccoutant@google.com>
205 * dwarf2out.c (contains_subprogram_definition): New function.
206 (should_move_die_to_comdat): Call it.
208 2011-05-06 Jeff Law <law@redhat.com>
210 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
211 remove_ctrl_stmt_and_useless_edges.
212 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
213 (fixup_template_block, thread_single_edge): Likewise.
214 (mark_threaded_blocks): Use THREAD_TARGET.
216 2011-05-06 Alan Modra <amodra@gmail.com>
219 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
220 const0_rtx as the arg to the dummy __tls_get_addr libcall.
222 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
224 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
225 constraint modifier to "r".
227 2011-05-06 Joseph Myers <joseph@codesourcery.com>
229 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
230 fall through for OPT_mcmodel_.
232 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
234 * config/s390/s390.c (s390_asm_trampoline_template): Comment
236 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
238 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
241 * config/arm/arm.opt (marm): Document it.
242 (mthumb): Reject negative variant.
244 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
247 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
248 Fix typo in "ccvt" variable name.
250 2011-05-06 Tristan Gingold <gingold@adacore.com>
253 * config/vms/vms-ar.c (main): Remove cwd variable.
255 2011-05-06 Jakub Jelinek <jakub@redhat.com>
258 * var-tracking.c (prepare_call_arguments): Move else before #endif.
260 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
262 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
263 * gimplify.c (gimplify_switch_expr): Likewise.
264 * omp-low.c (expand_omp_sections): Likewise.
265 * tree-eh.c (lower_try_finally_switch): Likewise.
266 (lower_eh_dispatch): Likewise.
267 * tree.h (build_case_label): Declare.
268 * tree.c (build_case_label): Define.
270 2011-05-05 Jason Merrill <jason@redhat.com>
273 * tree-inline.c (copy_tree_r): Use copy_statement_list.
274 (copy_statement_list): Don't recurse.
275 * stor-layout.c (copy_self_referential_tree_r): Don't allow
278 2011-05-05 Joseph Myers <joseph@codesourcery.com>
280 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
281 through from -mfpu= handling.
282 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
284 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
286 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
289 2011-05-05 Steve Ellcey <sje@cup.hp.com>
291 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
293 (hppa[12]*-*-hpux11*): Ditto.
294 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
295 * config/ia64/hpux-unix2003.h: New.
296 * config/pa/pa-hpux1131.opt: New.
297 * config/pa/pa-hpux1131.h: New.
298 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
299 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
300 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
302 2011-05-05 Jakub Jelinek <jakub@redhat.com>
305 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
306 instead of mode as 3rd argument to recursive call.
307 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
308 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
310 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
311 don't give up if mode is Pmode and mem_mode is not VOIDmode.
312 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
313 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
315 2011-05-05 Julian Brown <julian@codesourcery.com>
317 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
318 parenthesis in D-register case.
320 2011-05-05 Joseph Myers <joseph@codesourcery.com>
322 * opt-functions.awk (var_type_struct): Handle Enum options.
323 * optc-gen.awk: Don't check range of variables of character type.
324 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
325 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
326 rs6000_sdata_name, rs6000_explicit_options): Remove.
327 (rs6000_option_override_internal): Check for -malign-power here.
328 Use global_options_set instead of rs6000_explicit_options.
329 (rs6000_parse_fpu_option): Remove.
330 (rs6000_handle_option): Access variables via opts and opts_set
331 pointers. Use error_at and warning_at. Add fall-through
332 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
333 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
334 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
335 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
336 here. Don't use rs6000_parse_fpu_option.
337 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
338 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
339 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
341 (mspe): Use Var and Save.
342 (mtraceback=): Use Enum and Var.
343 (rs6000_traceback_type): New Enum and EnumValue entries.
344 (mfloat-gprs=): Use Enum, Var and Save.
345 (rs6000_float_gprs): New Enum and EnumValue entries.
346 (mlong-double-): use Var and Save.
347 (msched-costly-dep=, minsert-sched-nops=): Use Var.
348 (malign-): Use Enum and Var.
349 (rs6000_alignment_flags): New Enum and EnumValue entries.
351 (fpu_type_t): New Enum and EnumValue entries.
352 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
353 global_options_set instead of rs6000_explicit_options.
354 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
355 global_options_set instead of rs6000_explicit_options.
356 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
357 global_options_set instead of rs6000_explicit_options.
358 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
359 global_options_set instead of rs6000_explicit_options.
360 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
361 global_options_set instead of rs6000_explicit_options.
362 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
363 global_options_set instead of rs6000_explicit_options.
364 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
366 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
367 global_options_set instead of rs6000_explicit_options.
368 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
369 (rs6000_cmodel): New Enum and EnumValue entries.
370 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
371 global_options_set instead of rs6000_explicit_options.
372 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
373 (mtls-size=): Use Enum and Var.
374 (rs6000_tls_size): New Enum and EnumValue entries.
376 2011-05-05 Michael Matz <matz@suse.de>
378 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
379 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
380 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
381 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
382 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
383 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
384 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
385 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
386 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
387 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
388 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
389 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
390 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
391 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
392 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
393 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
395 2011-05-05 Richard Guenther <rguenther@suse.de>
397 * expmed.c (expand_variable_shift): Rename to ...
398 (expand_shift_1): ... this. Take an expanded shift amount.
399 For rotates recurse directly not building trees for the shift amount.
400 (expand_variable_shift): Wrap around expand_shift_1.
401 (expand_shift): Adjust.
403 2011-05-05 Jakub Jelinek <jakub@redhat.com>
405 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
407 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
409 * tree.h (get_pending_sizes): Remove prototype.
410 (put_pending_size): Likewise.
411 (put_pending_sizes): Likewise.
412 * stor-layout.c (pending_sizes): Delete.
413 (get_pending_sizes): Likewise.
414 (put_pending_size): Likewise.
415 (put_pending_sizes): Likewise.
416 (variable_size): Do not call put_pending_size and tidy up.
417 * function.h (struct function): Remove dont_save_pending_sizes_p.
418 * lto-streamer-in.c (input_function): Do not stream it.
419 * lto-streamer-out.c (output_function): Likewise.
420 * tree-inline.c (initialize_cfun): Do not copy it.
421 * c-decl.c (store_parm_decls): Do not set it.
422 * omp-low.c (create_task_copyfn): Likewise.
423 * tree-optimize.c (tree_rest_of_compilation): Likewise.
425 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
427 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
429 (*movdf_internal): Ditto.
430 (*movdf_internal_nointeger): Ditto.
431 (*movsf_internal): Ditto.
433 2011-05-05 Joseph Myers <joseph@codesourcery.com>
435 * c-decl.c (finish_decl): Don't call get_pending_sizes.
436 (grokparm): Add parameter expr. Pass it to grokdeclarator.
437 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
438 (c_variable_size): Remove.
439 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
440 call put_pending_sizes.
441 (get_parm_info): Add parameter expr. Use it to set
442 arg_info->pending_sizes.
443 (store_parm_decls): Use arg_info->pending_sizes instead or calling
445 * c-parser.c (c_parser_parms_declarator): Update call to
446 c_parser_parms_list_declarator.
447 (c_parser_parms_list_declarator): Take parameter expr. Update
448 call to push_parm_decl. Update recursive call. Don't call
449 get_pending_sizes. Update calls to get_parm_info.
450 (c_parser_objc_method_definition): Update calls to
451 c_parser_objc_method_decl and objc_start_method_definition.
452 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
453 (c_parser_objc_method_decl): Add parameter expr. Update call to
455 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
456 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
457 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
459 2011-05-05 Michael Hope <michael.hope@linaro.org>
462 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
465 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
467 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
468 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
469 (spu_output_mi_thunk): New function.
471 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
473 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
474 targetm.asm_out.print_operand.
475 * config/sol2.c: Include target.h.
477 2011-05-04 Jan Hubicka <jh@suse.cz>
479 * ipa-inline.c (reset_edge_caches): New function.
480 (update_caller_keys): Add check_inlinablity_for; do not
481 reset edge caches; remove now unnecesary loop.
482 (update_callee_keys): Add comments; reset node_growth_cache of callee.
483 (update_all_callee_keys): Likewise.
484 (inline_small_functions): Sanity check cache; update code
487 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
489 PR rtl-optimization/47612
490 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
491 as the last insn of the sequence to be moved.
493 2011-05-04 Tobias Burnus <burnus@net-b.de>
496 * doc/invoke.texi (Ofast): Document that it
497 enables Fortran's -fno-protect-parens.
499 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
501 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
503 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
505 * stor-layout.c (variable_size): Do not issue errors.
507 2011-05-04 Richard Guenther <rguenther@suse.de>
509 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
510 for array-ref indices.
511 (tree_coverage_counter_addr): Likewise.
512 (build_fn_info_type): Use size_int for index types.
513 (build_gcov_info): Likewise.
515 2011-05-04 Richard Guenther <rguenther@suse.de>
517 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
519 * c-typeck.c (really_start_incremental_init): Use bitsize_int
520 for constructor indices.
521 (push_init_level): Likewise.
523 2011-05-04 Richard Guenther <rguenther@suse.de>
525 * explow.c (promote_mode): Move variable declarations before code.
527 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
529 * tree.h (build_function_type_array): Declare.
530 (build_varargs_function_type_array): Declare.
531 (build_function_type_vec, build_varargs_function_type_vec): Define.
532 * tree.c (build_function_type_array_1): New function.
533 (build_function_type_array): New function.
534 (build_varargs_function_type_array): New function.
536 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
538 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
539 before setting STMT_VINFO_TYPE.
541 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
543 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
544 instead of spu_pass_by_reference.
546 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
548 * calls.c (emit_library_call_value_1): Invoke
549 promote_function_mode hook on libcall arguments.
550 * explow.c (promote_function_mode, promote_mode): Handle TYPE
552 * targhooks.c (default_promote_function_mode): Lisewise.
553 * config/s390/s390.c (s390_promote_function_mode): Likewise.
554 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
556 * doc/tm.texi: Document that TYPE argument might be NULL.
558 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
560 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
562 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
565 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
567 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
569 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
570 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
572 * mips-tfile.c: ... here.
573 Don't include coretypes.h, tm.h, filenames.h.
574 (saber_stop): Remove definition and all calls.
576 (__LINE__): Remove default.
577 (Size_t, Ptrdiff_t): Remove definitions.
578 Replace by size_t, ptrdiff_t.
579 [!MIPS_DEBUGGING_INFO]: Remove.
580 (SHASH_SIZE, THASH_SIZE): Remove defaults.
581 (progname): Add const.
583 Replace all uses by static.
584 (ALIGN_SYMTABLE_OFFSET): Remove default.
585 * mips-tdump.c: Don't include coretypes.h, tm.h.
586 Remove !MIPS_IS_STAB guard.
587 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
588 $(TM_H), filenames.h dependencies.
589 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
591 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
594 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
595 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
597 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
600 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
601 account and save/restore RETS.
602 (PROFILE_BEFORE_PROLOGUE): Define.
603 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
604 the push insn to use predecrement.
606 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
609 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
611 2011-05-04 Nick Clifton <nickc@redhat.com>
613 * config/mn10300/mn10300.c: Include cfgloop.h.
615 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
616 Lcc or a FLcc insn into the instruction stream.
617 (mn10300_block_contains_call): New function. Returns true if the
618 given basic block contains a CALL insn.
619 (mn10300_loop_contains_call_insn): New function. Returns true if
620 the given loop contains a CALL insn.
621 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
622 to use the SETLB and Lcc or FLcc insns.
623 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
624 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
625 * config/mn10300/mn10300.opt (msetlb): New option. Used to
626 disable the SETLB optimization.
627 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
628 __SETLB__ or __NO_SETLB__.
629 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
630 (movsf_internal): Handle MDR register.
631 (cmpsi): Make visible.
632 (setlb): New pattern.
636 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
639 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
641 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
642 (vec_concatv2di_rex64_sse): Ditto.
643 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
644 (*vec_extractv2di_1_rex64): Ditto.
647 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
649 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
651 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
653 2011-05-04 Richard Guenther <rguenther@suse.de>
655 * tree.h (int_const_binop): Remove notrunc argument.
656 * fold-const.c (int_const_binop): Remove notrunc argument. Always
657 create integer constants that are properly truncated.
658 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
659 (const_binop): Remove zero notrunc argument to int_const_binop.
660 (size_binop_loc): Likewise.
661 (fold_div_compare): Likewise.
662 (maybe_canonicalize_comparison_1): Likewise.
663 (fold_comparison): Likewise.
664 (fold_binary_loc): Likewise.
665 (multiple_of_p): Likewise.
666 * expr.c (store_constructor): Likewise.
667 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
668 (maybe_fold_stmt_addition): Likewise.
669 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
670 * stor-layout.c (layout_type): Likewise.
671 * tree-data-ref.c (tree_fold_divides_p): Likewise.
672 * tree-sra.c (build_ref_for_offset): Likewise.
673 (build_user_friendly_ref_for_offset): Likewise.
674 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
675 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
676 * tree-ssa-loop-niter.c (inverse): Likewise.
677 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
678 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
679 * tree-switch-conversion.c (check_range): Likewise.
680 (build_constructors): Likewise.
681 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
682 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
683 (extract_range_from_assert): Likewise.
684 (vrp_int_const_binop): Likewise.
685 (extract_range_from_binary_expr): Likewise.
686 (extract_range_from_unary_expr): Likewise.
687 (check_array_ref): Likewise.
688 (find_case_label_range): Likewise.
689 (simplify_div_or_mod_using_ranges): Likewise.
690 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
691 comparing case labels for merging.
693 2011-05-03 Mark Wielaard <mjw@redhat.com>
695 * dwarf2out.c (debug_str_hash_forced): Removed.
696 (gen_label_for_indirect_string): Removed.
697 (get_debug_string_label): Removed.
698 (AT_string_form): Generate label directly.
699 (output_indirect_string): Test indirect_string_node for
700 DW_FORM_strp instead of checking label and refcount.
701 (prune_indirect_string): Removed.
702 (prune_unused_types): Don't check debug_str_hash_forced or
703 call prune_indirect_string.
705 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
708 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
710 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
714 * combine.c (try_combine): Skip debug insns at m_split tests.
716 2011-04-26 Mark Wielaard <mjw@redhat.com>
719 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
720 when info_section_emitted.
722 2011-05-03 Joseph Myers <joseph@codesourcery.com>
724 * config/mips/mips-opts.h: New.
725 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
727 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
728 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
729 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
731 * config/mips/mips.h (enum mips_code_readable_setting): Move to
733 (mips_abi, mips_code_readable): Don't declare.
734 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
735 (mabi=): Use Enum and Var.
736 (mips_abi): New Enum and EnumValue entries.
737 (mcode-readable=): Use Enum and Var.
738 (mips_code_readable_setting): New Enum and EnumValue entries.
739 (mr10k-cache-barrier=): Use Enum and Var.
740 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
742 2011-05-03 Jan Hubicka <jh@suse.cz>
744 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
745 replace hash by pointer map.
746 (cgraph_node_set_element_def, cgraph_node_set_element,
747 const_cgraph_node_set_element, varpool_node_set_element_def,
748 varpool_node_set_element, const_varpool_node_set_element): Remove.
749 (free_cgraph_node_set, free_varpool_node_set): New function.
750 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
751 * tree-emutls.c: Free varpool node set.
752 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
753 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
754 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
755 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
756 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
757 Move here from ipa.c; implement using pointer_map
758 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
759 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
760 debug_cgraph_node_set, varpool_node_set_new,
761 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
762 dump_varpool_node_set, debug_varpool_node_set):
764 * passes.c (ipa_write_summaries): Update.
766 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
769 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
770 bf542/bf544/bf547/bf548/bf549.
772 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
774 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
776 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
779 * config/bfin/bfin.md (MOVCC): New mode_macro.
780 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
781 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
782 comments from generated assembly.
784 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
787 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
788 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
789 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
790 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
791 * config/bfin/lib1funcs.asm (___muldi3): New function.
793 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
795 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
796 build_function_type_list instead of build_function_type.
797 Rearrange initialization of `args' to do so.
799 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
801 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
802 instead of build_function_type.
804 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
806 * config/rs6000/rs6000.c (spe_init_builtins): Call
807 build_function_type_list instead of build_function_type.
808 (paired_init_builtins, altivec_init_builtins): Likewise.
809 (builtin_function_type): Likewise.
811 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
813 * config/sh/sh.c (sh_media_init_builtins): Call
814 build_function_type_list instead of build_function_type.
816 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
818 * config/sparc/sparc.c (sparc_file_end): Call
819 build_function_type_list instead of build_function_type.
821 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
823 * config/alpha/alpha.c (alpha_init_builtins): Call
824 build_function_type_list instead of build_function_type.
826 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
828 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
829 build_function_type_list instead of build_function_type.
831 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
833 * config/iq2000/i2000.c (iq2000_init_builtins): Call
834 build_function_type_list instead of build_function_type.
835 Delete `endlink' variable.
837 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
839 * config/avr/avr.c (avr_init_builtins): Call
840 build_function_type_list instead of build_function_type.
842 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
844 * config/picochip/picochip.c (picochip_init_builtins): Call
845 build_function_type_list instead of build_function_type.
846 Delete `endlink' variable.
848 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
850 * config/bfin/bfin.c (bfin_init_builtins): Call
851 build_function_type_list instead of build_function_type.
853 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
856 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
857 that's not CONST_INT. Seemingly redundant check is due to PR39768.
859 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
862 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
863 libbffastfp overrides libgcc when -mfast-fp.
865 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
867 Originally from Bernd Schmidt
868 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
869 * config/bfin/bfin.c (override_options): Test it and error if
872 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
874 Originally From Bernd Schmidt
875 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
878 2011-05-03 Jeff Law <law@redhat.com>
880 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
881 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
882 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
883 than accessing AUX field directly. Free the AUX field before
885 (thread_block, thread_through_loop_header): Likewise.
886 (thread_single_edge, mark_threaded_blocks): Likewise.
887 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
888 (register_jump_thread): Do not attempt to thread to a NULL edge.
890 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
892 * function.c (init_function_start): Call decide_function_section.
893 * varasm.c (decide_function_section): New function.
894 (assemble_start_function): When not using
895 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
896 or first_function_block_is_cold.
897 * rtl.h (decide_function_section): Declare.
899 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
900 Jakub Jelinek <jakub@redhat.com>
903 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
904 only succeed if req_mode is the same as set_mode.
906 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
908 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
909 * genemit.c (gen_exp): Handle RETURN.
910 * emit-rtl.c (verify_rtx_sharing): Likewise.
911 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
912 * rtl.c (copy_rtx): RETURN is shared.
913 * rtl.h (enum global_rtl_index): Add GR_RETURN.
915 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
916 * config/s390/s390.c (s390_emit_epilogue): Likewise.
917 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
918 * config/cris/cris.c (cris_expand_return): Likewise.
919 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
920 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
921 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
922 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
923 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
925 * config/v850/v850.c (expand_epilogue): Likewise.
926 * config/bfin/bfin.c (bfin_expand_call): Likewise.
927 * config/arm/arm.md (epilogue): Likewise.
928 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
929 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
932 2011-05-03 Richard Guenther <rguenther@suse.de>
935 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
936 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
937 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
939 2011-05-03 Richard Guenther <rguenther@suse.de>
941 * c-decl.c (grokdeclarator): Instead of looking at
942 TREE_OVERFLOW check if the constant fits in the index type.
944 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
946 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
947 (vec_store_lanes<mode><mode>): Likewise.
949 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
951 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
952 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
953 convert_optab_index values.
954 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
955 * genopinit.c (optabs): Initialize the new optabs.
956 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
957 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
958 (expand_STORE_LANES): New functions.
959 * tree.h (build_array_type_nelts): Declare.
960 * tree.c (build_array_type_nelts): New function.
961 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
962 (vect_model_load_cost): Likewise.
963 (vect_store_lanes_supported, vect_load_lanes_supported)
964 (vect_record_strided_load_vectors): Declare.
965 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
966 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
967 (vect_transform_strided_load): Split out statement recording into...
968 (vect_record_strided_load_vectors): ...this new function.
969 * tree-vect-stmts.c (create_vector_array, read_vector_array)
970 (write_vector_array, create_array_ref): New functions.
971 (vect_model_store_cost): Add store_lanes_p argument.
972 (vect_model_load_cost): Add load_lanes_p argument.
973 (vectorizable_store): Try to use store-lanes functions for
975 (vectorizable_load): Likewise load-lanes and loads.
976 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
977 to vect_model_store_cost.
978 (vect_build_slp_tree): Likewise vect_model_load_cost.
980 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
982 * hooks.h (hook_bool_mode_uhwi_false): Declare.
983 * hooks.c (hook_bool_mode_uhwi_false): New function.
984 * target.def (array_mode_supported_p): New hook.
985 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
986 * doc/tm.texi: Regenerate.
987 * stor-layout.c (mode_for_array): New function.
988 (layout_type): Use it.
989 * config/arm/arm.c (arm_array_mode_supported_p): New function.
990 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
992 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
995 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
996 for -fstack-check if the size to allocate is negative.
998 2011-05-02 Lawrence Crowl <crowl@google.com>
1000 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1001 (timevar_cond_start): New for starting a timer only when it is not
1003 (timevar_cond_stop): New for stopping a timer when it was not already
1006 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1007 (timevar_cond_start): New as above.
1008 (timevar_cond_stop): New as above.
1010 * timevar.def: Add start/stop timers for compiler phases,
1011 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1012 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1013 and TV_PHASE_FINALIZE.
1014 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1015 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1016 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1017 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1018 Make unused TV_OVERLOAD into a start/stop timer.
1020 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1021 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1022 to indicate that they are start/stop timers.
1024 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1025 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1026 Move initialization to do_compile.
1027 (do_compile): Add initialization from above.
1028 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1030 * c-decl.c (c_write_global_declarations): Add start/stop of
1031 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1033 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1034 or TV_PARSE_INLINE, as appropriate.
1035 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1036 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1038 2011-05-02 Jason Merrill <jason@redhat.com>
1041 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1043 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1046 * c-decl.c (finish_decl): Only create a composite if the types are
1049 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1051 * config/fr30/fr30-protos.h (Mmode): Don't define.
1052 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1053 definition where used.
1054 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1055 define. Expand definitions where used.
1056 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1057 Expand definitions where used.
1058 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1059 rx_function_arg, rx_function_arg_advance,
1060 rx_function_arg_boundary): Expand definitions of those macros.
1061 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1062 definition where used.
1064 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1066 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1068 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1069 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1070 with *movv2sf_internal_rex64_avx.
1071 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1072 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1073 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1074 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1075 "vex" in "prefix" attribute calculation.
1076 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1078 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1081 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1082 inputs match the output.
1084 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1087 * config/m68k/m68k.c (m68k_expand_prologue): Set
1088 current_function_static_stack_size.
1090 2011-05-02 Jan Hubicka <jh@suse.cz>
1092 * lto-streamer.c (lto_streamer_cache_insert_1,
1093 lto_streamer_cache_lookup, lto_streamer_cache_create,
1094 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1095 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1097 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1099 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1100 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1101 config/m68k/t-opts: New files.
1102 * config/m68k/m68k-tables.opt: New file (generated).
1103 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1104 extra_options and m68k/t-opts to tmake_file.
1105 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1106 (all_isas): Initialize using m68k-isas.def.
1107 (all_microarchs): Initialize using m68k-microarchs.def.
1108 (m68k_find_selection): Remove.
1109 (m68k_handle_option): Don't assert that global structures are in
1110 use. Use error_at. Access variables via opts pointer. Don't
1111 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1112 directly for -m68020-40 and -m68020-60.
1113 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1114 m68k_tune_entry here.
1115 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1117 (m68k_library_id_string): Remove declaration.
1118 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1119 (m68k_library_id_string): New Variable.
1120 (march=, mcpu=, mtune=): Use Enum and Var.
1122 2011-05-02 Richard Guenther <rguenther@suse.de>
1124 * varasm.c (output_constructor_regular_field): Compute zero-based
1125 index with double-ints. Make sure to ICE instead of producing
1127 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1128 in asserts. Properly use a signed type.
1130 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1132 * config/i386/sse.md (V): New mode iterator.
1133 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1135 (V_256): Rename from AVX256MODE.
1136 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1137 condition to all users.
1139 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1140 condition to all users.
1141 (VF_128): Make V4SF mode unconditional.
1142 (VF_256): Rename from AVX256MODEF2P.
1143 (VI4F_128): Rename from SSEMODE4S.
1144 (VI8F_128): Rename from SSEMODE2D.
1145 (VI4F_256): Rename from AVX256MODE8P.
1146 (VI8F_256): Rename from AVX256MODE4P.
1147 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1148 (ssescalarmodesuffix): Remove SF and DF modes.
1149 (SSEMODE124): Remove.
1150 (SSEMODE1248): Ditto.
1151 (SSEMODEF2P): Ditto.
1152 (AVXMODEF2P): Ditto.
1153 (AVXMODEFDP): Ditto.
1154 (AVXMODEFSP): Ditto.
1155 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1157 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1159 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1160 xop_pcmov_<mode>256. Use V mode iterator.
1162 Adjust RTX patterns globally for renamed mode attributes.
1164 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1166 * haifa-sched.c (sched_emit_insn): Emit insn before first
1167 non-scheduled insn. Inform back-end about new insn. Add
1168 new insn to scheduled_insns list.
1170 2011-05-02 Richard Guenther <rguenther@suse.de>
1172 PR tree-optimization/48822
1173 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1174 (process_scc): Indicate which iteration we start.
1176 2011-05-02 Jan Hubicka <jh@suse.cz>
1178 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1179 (lto_section_overrun): New.
1180 * lto-section-out.c (append_block): Rename to ...
1181 (lto_append_block): ... this one; export.
1182 (lto_output_1_stream): Move lto lto-streamer.h
1183 (lto_output_data_stream): Update.
1184 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1185 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1188 2011-05-02 Richard Guenther <rguenther@suse.de>
1190 * tree.c (tree_code_counts): New global array.
1191 (record_node_allocation_statistics): Count individual tree codes.
1192 (dump_tree_statistics): Dump individual code stats.
1194 2011-05-01 Jan Hubicka <jh@suse.cz>
1196 * ipa-inline.c (caller_growth_limits): Fix thinko when
1197 looking for largest stack frame.
1198 * ipa-inline.h (dump_inline_summary): Declare.
1199 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1201 (dump_inline_summary): Export.
1202 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1204 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1206 * reginfo.c (memory_move_cost): Change rclass argument type form
1207 'enum reg_class' to reg_class_t.
1208 * reload.h (memory_move_cost): Update prototype.
1209 * postreload.c reload_cse_simplify_set): Change type dclass var to
1211 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1213 (ira_allocate_and_set_costs): Change aclass argument type form
1214 'enum reg_class' to reg_class_t.
1215 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1216 Change aclass argument type to reg_class_t.
1217 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1219 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1220 memory_move_cost call.
1222 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1223 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1224 Change type tmp var to reg_class_t.
1226 2011-04-30 Jan Hubicka <jh@suse.cz>
1228 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1229 inlining into function with flatten attribute.
1230 (want_inline_small_function_p): Be more realistic about inlining
1231 cold calls where callee size grows.
1233 2011-04-30 Jan Hubicka <jh@suse.cz>
1235 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1238 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1240 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1241 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1242 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1243 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1244 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1245 (print_operand): Rename to...
1246 (sparc_print_operand): ...this. Make static. Adjust
1247 sparc_print_operand function call.
1248 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1251 2011-04-30 Jan Hubicka <jh@suse.cz>
1254 * ipa-inline.c (early_inliner): Disable when doing late
1255 addition of function.
1257 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1259 * dwarf2out.c (get_address_mode): New inline.
1260 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1261 if not dwarf_strict emit
1262 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1263 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1264 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1265 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1266 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1267 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1268 mem_loc_descriptor callers.
1269 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1270 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1271 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1272 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1273 (base_types): New variable.
1274 (get_base_type_offset, calc_base_type_die_sizes,
1275 base_type_for_mode, mark_base_types, base_type_cmp,
1276 move_marked_base_types): New functions.
1277 (calc_die_sizes): Assert that die_offset is 0 or equal to
1279 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1280 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1281 callers. If not dwarf_strict, call mem_loc_descriptor even for
1282 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1283 (gen_subprogram_die): Don't give up on call site parameters
1284 with non-integral or large integral modes. Adjust
1285 mem_loc_descriptor callers.
1286 (prune_unused_types): Call prune_unused_types_mark on base_types
1288 (resolve_addr): Call mark_base_types.
1289 (dwarf2out_finish): Call move_marked_base_types.
1291 PR tree-optimization/48809
1292 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1294 (gen_inbound_check): Don't compute index_expr - range_min in utype
1295 again, instead reuse SSA_NAME initialized in build_arrays.
1296 Remove two useless gsi_for_stmt calls.
1298 2011-04-29 Jeff Law <law@redhat.com>
1300 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1302 2011-04-29 Martin Jambor <mjambor@suse.cz>
1304 * cgraph.h (cgraph_postorder): Remove declaration.
1305 * ipa-utils.h (ipa_free_postorder_info): Declare.
1306 (ipa_reverse_postorder): Likewise.
1307 * cgraphunit.c: Include ipa-utils.h.
1308 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1309 * ipa-inline.c: Include ipa-utils.h.
1310 (ipa_inline): Update call to ipa_reverse_postorder.
1311 * ipa-pure-const.c (propagate_pure_const): Update call to
1312 ipa_reduced_postorder and ipa_print_order. Call
1313 ipa_free_postorder_info to clean up.
1314 (propagate_nothrow): Likewise.
1315 * ipa-reference.c (propagate): Removed a useless call to
1316 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1317 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1318 * ipa.c: Include ipa-utils.h.
1319 (ipa_profile): Update call to ipa_reverse_postorder.
1320 (cgraph_postorder): Moved to...
1321 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1322 (ipa_utils_print_order): Renamed to ipa_print_order.
1323 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1325 (ipa_free_postorder_info): New function.
1326 * passes.c: Include ipa-utils.h.
1327 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1328 (ipa_write_summaries): Likewise.
1329 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1330 (cgraphunit.o): Likewise.
1332 (ipa-inline.o): Likewise.
1334 2011-04-29 Jan Hubicka <jh@suse.cz>
1336 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1337 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1338 * ipa-inline.h (clause_t): Turn into unsigned int.
1339 * ipa-inline-analysis.c (add_clause): Do more simplification.
1340 (and_predicates): Shortcut more cases.
1341 (predicates_equal_p): Move forward; check that clauses are properly
1343 (or_predicates): Shortcut more cases.
1344 (edge_execution_predicate): Rewrite as...
1345 (set_cond_stmt_execution_predicate): ... this function; handle
1346 __builtin_constant_p.
1347 (set_switch_stmt_execution_predicate): New .
1348 (compute_bb_predicates): New.
1349 (will_be_nonconstant_predicate): Update TODO.
1350 (estimate_function_body_sizes): Use compute_bb_predicates
1351 and free them later, always try to estimate if stmt is constant.
1352 (estimate_time_after_inlining, estimate_size_after_inlining):
1353 Gracefully handle optimized out edges.
1354 (read_predicate): Fix off by one error.
1356 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1358 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1360 2011-04-27 Xinliang David Li <davidxl@google.com>
1362 * tree-profile.c (init_ic_make_global_vars): Set
1363 tls attribute on ic vars.
1364 * coverage.c (coverage_end_function): Initialize
1365 function_list with zero.
1367 2011-04-29 Richard Guenther <rguenther@suse.de>
1369 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1370 for the type of the result.
1371 (fold_builtin_isascii): Likewise.
1372 (fold_builtin_toascii): Use integer_type_node where appropriate.
1373 (fold_builtin_logb): Likewise.
1374 (fold_builtin_frexp): Likewise.
1375 (fold_builtin_strstr): Likewise.
1376 (fold_builtin_strpbrk): Likewise.
1377 (fold_builtin_fputs): Likewise.
1378 (fold_builtin_sprintf): Likewise.
1379 (fold_builtin_snprintf): Likewise.
1380 (fold_builtin_printf): Likewise.
1381 (do_mpfr_remquo): Use a proper type for the assigned constant.
1382 (do_mpfr_lgamma_r): Likewise.
1383 * dwarf2out.c (resolve_one_addr): Use size_int.
1384 * except.c (init_eh): Likewise.
1385 (assign_filter_values): Use integer_type_node for filter values.
1386 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1388 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1389 for EH region numbers.
1390 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1391 for the shift amount.
1393 2011-04-29 Richard Guenther <rguenther@suse.de>
1395 * expr.h (expand_shift): Rename to ...
1396 (expand_variable_shift): ... this.
1397 (expand_shift): Take a constant shift amount.
1398 * expmed.c (expand_shift): Rename to ...
1399 (expand_variable_shift): ... this.
1400 (expand_shift): New wrapper around expand_variable_shift.
1401 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1402 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1403 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1404 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1405 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1406 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1407 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1408 emit_store_flag_1, emit_store_flag): Likewise.
1409 * builtins.c (expand_builtin_signbit): Likewise.
1410 * calls.c (load_register_parameters): Likewise.
1411 * function.c (assign_parm_setup_block): Likewise.
1412 * lower-subreg.c (resolve_shift_zext): Likewise.
1413 * optabs.c (widen_bswap, expand_abs_nojump,
1414 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1415 * spu/spu.c (spu_expand_extv): Likewise.
1416 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1418 2011-04-29 Richard Guenther <rguenther@suse.de>
1420 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1421 for the remapped region number.
1422 * predict.c (build_predict_expr): Use integer_type_node for the
1424 * fold-const.c (fold_binary_loc): Use integer_type_node for
1425 the shift amount. Use a proper type for the PLUS_EXPR operand.
1427 2011-04-29 Michael Matz <matz@suse.de>
1429 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1430 other trees that just builtins.
1431 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1433 2011-04-29 Richard Guenther <rguenther@suse.de>
1435 * tree-nested.c (get_trampoline_type): Use size_int.
1436 (get_nl_goto_field): Likewise.
1437 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1439 (lower_eh_constructs_2): Likewise.
1440 (lower_resx): Likewise.
1441 (lower_eh_dispatch): Likewise.
1442 * tree-mudflap.c (mf_build_string): Use size_int.
1443 (mudflap_register_call): Use integer_type_node for the flag.
1444 (mudflap_enqueue_constant): Use size_int.
1445 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1446 instead of rebuilding it.
1448 2011-04-29 Richard Guenther <rguenther@suse.de>
1450 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1451 Handle OBJ_TYPE_REF.
1452 (find_func_aliases_for_call): Use it more consistently.
1454 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1456 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1457 (rank_for_schedule): Use it.
1458 (schedule_block): Set it.
1460 2011-04-28 David Li <davidxl@google.com>
1462 * tree.c (crc32_string): Use crc32_byte.
1463 (crc32_byte): New function.
1464 * tree.h (crc32_byte): New function.
1465 * gcov.c (read_graph_file): Handle new cfg_cksum.
1466 (read_count_file): Ditto.
1467 * profile.c (instrument_values): Ditto.
1468 (get_exec_counts): Ditto.
1469 (read_profile_edge_counts): Ditto.
1470 (compute_branch_probabilities): Ditto.
1471 (compute_value_histograms): Ditto.
1472 (branch_prob): Ditto.
1473 (end_branch_prob): Ditto.
1474 * coverage.c (read_counts_file): Ditto.
1475 (get_coverage_counts): Ditto.
1476 (tree_coverage_counter_addr): Ditto.
1477 (coverage_checksum_string): Ditto.
1478 (coverage_begin_output): Ditto.
1479 (coverage_end_function): Ditto.
1480 (build_fn_info_type): Ditto.
1481 (build_fn_info_value): Ditto.
1482 * libgcov.c (gcov_exit): Ditto.
1483 * gcov-dump.c (tag_function): Ditto.
1484 (compute_checksum): Remove.
1486 2011-04-29 Alan Modra <amodra@gmail.com>
1488 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1489 unspec plus offset. Tidy macho code.
1491 2011-04-29 Martin Jambor <mjambor@suse.cz>
1493 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1494 node instead of a decl. Update all callers.
1495 * cgraph.h: Update declaration.
1497 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1499 PR tree-optimization/48765
1500 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1501 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1502 to indicate if loop aware SLP is being used. Scan the statements
1503 and update the vectorization factor according to the type of
1504 vectorization before statement analysis.
1505 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1506 pass it to vect_analyze_loop_operations.
1507 (vectorizable_reduction): Set number of copies to 1 in case of pure
1509 * tree-vect-stmts.c (vectorizable_conversion,
1510 vectorizable_assignment, vectorizable_shift,
1511 vectorizable_operation, vectorizable_type_demotion,
1512 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1514 (vectorizable_condition): Move the check that it is not SLP
1515 vectorization before the number of copies check.
1516 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1517 to vectorize the loop using SLP.
1519 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1522 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1525 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1527 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1528 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1529 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1530 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1531 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1533 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1534 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1535 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1536 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1537 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1538 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1540 * config/i386/linux.h (REG_NAME): Don't define.
1541 * config/i386/linux64.h (REG_NAME): Don't define.
1542 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1543 Undefine before defining.
1545 2011-04-28 Jan Hubicka <jh@suse.cz>
1547 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1548 nonconstant_names array.
1549 (estimate_function_body_sizes): Build nonconstant_names array; handle
1550 BUILT_IN_CONSTANT_P.
1552 2011-04-28 Richard Guenther <rguenther@suse.de>
1556 2011-04-28 Richard Guenther <rguenther@suse.de>
1558 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1559 as late as possible.
1561 2011-04-28 Richard Guenther <rguenther@suse.de>
1563 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1564 (debug_constraint): Do it here.
1565 (dump_constraints): And here.
1566 (rewrite_constraints): And here.
1567 (dump_constraint_edge): Remove.
1568 (dump_constraint_graph): Rewrite to produce DOT output.
1569 (solve_constraints): Build succ graph as late as possible.
1570 Dump constraint graphs before and after solving.
1572 2011-04-28 Richard Guenther <rguenther@suse.de>
1574 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1575 New function split out from ...
1576 (find_func_aliases): ... here. Call it.
1577 (find_func_aliases_for_call): Likewise.
1579 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1581 * internal-fn.h (internal_fn_name_array): Declare.
1582 (internal_fn_flags_array): Likewise.
1584 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1586 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1587 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1589 (ssemodefsuffix): Remove.
1590 (ssevecmodesuffix): New mode attribute.
1591 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1592 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1593 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1594 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1595 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1596 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1597 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1598 ssemodesuffix mode attribute.
1599 (float splitters): Use ssevecmodesuffix mode attribute.
1600 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1601 (sseinsmode): Rename from avxvecmode.
1602 (avxsizesuffix): Rename from avxmodesuffix.
1603 (sseintvecmode): Rename from avxpermvecmode.
1604 (ssedoublevecmode): Rename from ssedoublesizemode.
1605 (ssehalfvecmode): Rename from avxhalfvecmode.
1606 (ssescalarmode): Rename from avxscalarmode.
1607 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1608 templates for ssemodesuffix mode attribute.
1609 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1612 Adjust RTX patterns globally for renamed mode attributes.
1614 2011-04-27 Jan Hubcika <jh@suse.cz>
1616 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1617 * ipa-inline-analysis.c: Include alloc-pool.h.
1618 (edge_predicate_pool): New.
1619 (trye_predicate_p): New function
1620 (false_predicate_p): New function.
1621 (add_clause): Sanity check that false clauses are "optimized";
1622 never add clauses to predicate that is already known to be false.
1623 (and_predicate): Use flase_predicate_p.
1624 (evaulate_predicate): Rename to ...
1625 (evaluate_predicate): ... this one; update all callers; assert
1626 that false is not listed among possible truths.
1627 (dump_predicate): Use true_predicate_p.
1628 (account_size_time): Use false_predicate_p.
1629 (evaulate_conditions_for_edge): Rename to ...
1630 (evaluate_conditions_for_edge) ... this one.
1631 (edge_set_predicate): New function.
1632 (inline_edge_duplication_hook): Duplicate edge predicates.
1633 (inline_edge_removal_hook): Free edge predicates.
1634 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1635 (dump_inline_summary): Update.
1636 (estimate_function_body_sizes): Set edge predicates.
1637 (estimate_calls_size_and_time): Handle predicates.
1638 (estimate_callee_size_and_time): Update.
1639 (remap_predicate): Add toplev_predicate; update comment.
1640 (remap_edge_predicates): New function.
1641 (inline_merge_summary): Compute toplev predicate; update.
1642 (read_predicate): New function.
1643 (read_inline_edge_summary): Use it.
1644 (inline_read_section): Likewise.
1645 (write_predicate): New function.
1646 (write_inline_edge_summary): Use it.
1647 (inline_write_summary): Likewise.
1648 (inline_free_summary): Free alloc pool and edge summary vec.
1650 2011-04-27 Richard Guenther <rguenther@suse.de>
1652 * tree-ssa-structalias.c (changed_count): Remove.
1653 (changed): Use a bitmap.
1654 (unify_nodes): Adjust.
1655 (do_sd_constraint): Likewise.
1656 (do_ds_constraint): Likewise.
1657 (do_complex_constraint): Likewise.
1658 (solve_graph): Likewise.
1660 2011-04-27 Jan Hubicka <jh@suse.cz>
1662 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1664 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1666 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1667 (avx_vperm2f128_*_operand): Ditto.
1668 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1669 Use avx_vpermilp_parallel in insn condition.
1670 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1671 Use avx_vperm2f128_parallel in insn condition.
1673 2011-04-27 Richard Guenther <rguenther@suse.de>
1675 * Makefile.in (tree-ssa-structalias.o): Remove
1676 gt-tree-ssa-structalias.h dependency.
1677 (GTFILES): Remove tree-ssa-structalias.c.
1678 * tree.c (allocate_decl_uid): New function.
1679 (make_node_stat): Use it.
1680 (copy_node_stat): Likewise.
1681 * tree.h (allocate_decl_uid): Declare.
1682 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1683 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1684 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1685 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1686 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1687 (struct heapvar_map): Likewise.
1688 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1689 heapvar_insert): Likewise.
1690 (make_heapvar_for): Rename to ...
1691 (make_heapvar): ... this. Simplify.
1692 (fake_var_decl_obstack): New global var.
1693 (build_fake_var_decl): New function.
1694 (make_constraint_from_heapvar): Adjust.
1695 (handle_lhs_call): Likewise.
1696 (create_function_info_for): Likewise.
1697 (intra_create_variable_infos): Likewise.
1698 (init_alias_vars): Allocate fake_var_decl_obstack.
1699 (init_alias_heapvars, delete_alias_heapvars): Remove.
1700 (compute_points_to_sets): Do not call init_alias_heapvars.
1701 (ipa_pta_execute): Likewise.
1702 (delete_points_to_sets): Free fake_var_decl_obstack.
1704 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1706 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1707 (si_from_UTItype, si_to_UTItype): New functions.
1708 (__udivmodti4): Use them to implement type-punning.
1709 * config/spu/multi3.c (union qword_TItype): New data type.
1710 (si_from_TItype, si_to_TItype): New functions.
1711 (__multi3): Use them to implement type-punning.
1713 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1715 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1717 2011-04-27 Jan Hubicka <jh@suse.cz>
1719 * ipa-prop.c (function_insertion_hook_holder): New holder.
1720 (ipa_add_new_function): New function.
1721 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1722 Register/deregister holder.
1724 2011-04-27 Richard Guenther <rguenther@suse.de>
1726 PR tree-optimization/48772
1727 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1729 2011-04-27 Richard Guenther <rguenther@suse.de>
1731 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1732 TARGET_MEM_REF handling.
1734 2011-04-27 Nick Clifton <nickc@redhat.com>
1736 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1737 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1738 (REG_CLASS_NAMES): Likewise.
1739 (REG_CLASS_CONTENTS): Likewise.
1740 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1741 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1742 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1743 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1744 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1745 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1746 duplicate register classes.
1747 (frv_class_likely_spilled_p): Likewise.
1748 (frv_register_move_cost): Likewise.
1750 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1751 end of the regno_reg_class array.
1753 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1756 * c-typeck.c (build_binary_op): Don't wrap arguments if
1757 int_operands is true.
1759 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1762 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1763 targetm.calls.must_pass_in_stack for void type.
1765 2011-04-26 Jan Hubicka <jh@suse.cz>
1767 * cgraphbuild.c (build_cgraph_edges): Update call
1768 of cgraph_create_edge and cgraph_create_indirect_edge.
1769 * cgraph.c (cgraph_create_edge_including_clones,
1770 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1771 cgraph_update_edges_for_call_stmt_node): Do not take nest
1772 argument; do not initialize call_stmt_size/time.
1773 (dump_cgraph_node): Do not dump nest.
1774 (cgraph_clone_edge): Do not take loop_nest argument;
1775 do not propagate it; do not clone call_stmt_size/time.
1776 (cgraph_clone_node): Likewise.
1777 (cgraph_create_virtual_clone): Update.
1778 * cgraph.h (struct cgraph_edge): Remove
1779 call_stmt_size/call_stmt_time/loop_nest.
1780 (cgraph_create_edge, cgraph_create_indirect_edge,
1781 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1783 * tree-emutls.c (gen_emutls_addr): Update.
1784 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1785 loop_nest; handle indirect calls, too.
1786 (clone_inlined_nodes): Do not care about updating inline summaries.
1787 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1788 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1789 stream call_stmt_size/call_stmt_time/loop_nest.
1790 * ipa-inline.c (edge_badness): Update.
1791 (ipa_inline): dump summaries after inlining.
1792 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1794 (inline_edge_summary): New function.
1795 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1796 (inline_edge_removal_hook): Handle edge summaries.
1797 (inline_edge_duplication_hook): New hook.
1798 (inline_summary_alloc): Alloc hooks.
1799 (initialize_growth_caches): Do not register removal hooks.
1800 (free_growth_caches); Do not free removal hook.
1801 (dump_inline_edge_summary): New function.
1802 (dump_inline_summary): Use it.
1803 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1804 (inline_update_callee_summaries): New function.
1805 (inline_merge_summary): Use it.
1806 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1807 (read_inline_edge_summary): New function.
1808 (inline_read_section): Use it.
1809 (write_inline_edge_summary): New function.
1810 (inline_write_summary): Use it.
1811 (inline_free_summary): Free edge new holders.
1812 * tree-inline.c (copy_bb): Update.
1814 2011-04-26 Jason Merrill <jason@redhat.com>
1816 * tree-eh.c (lower_try_finally_switch): Create the label along with
1817 the CASE_LABEL_EXPR.
1819 2011-04-26 David S. Miller <davem@davemloft.net>
1820 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1822 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1823 * configure: Regenerate.
1825 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1828 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1830 (VEC_reduc): New code iterator and splitters for vector reduction.
1831 (VEC_reduc_name): Ditto.
1832 (VEC_reduc_rtx): Ditto.
1833 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1834 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1836 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1837 support for extracting SF on VSX.
1839 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1840 generating xscvspdp.
1841 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1842 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1843 double add, minimum, maximum vector reduction.
1844 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1845 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1846 optimize double vector reduction.
1847 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1849 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1851 * config/fr30/fr30.h (inhibit_libc): Don't define.
1852 * config/m32r/m32r-protos.h: Correct comment.
1853 * config/v850/v850.h (GHS_default_section_names,
1854 GHS_current_section_names): Use tree, not union tree_node *.
1856 2011-04-26 Xinliang David Li <davidxl@google.com>
1858 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1859 * c-family/c-opts.c (c_common_handle_option): Set
1860 warn_maybe_uninitialized.
1861 * opts.c (common_handle_option): Ditto.
1862 * common.opt: New option.
1863 * tree-ssa.c (warn_uninit): Add one more parameter.
1864 (warn_uninitialized_var): Pass warning code.
1865 * tree-flow.h: Interface change.
1868 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1870 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1871 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1872 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1874 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1876 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1877 * config/mips/mips.opt (mmips-tfile): Remove.
1879 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1880 mips-tdump reference to ...
1881 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1882 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1883 reference by Tru64 UNIX.
1885 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1888 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1889 is error_mark_node, set value to NULL.
1891 PR tree-optimization/48734
1892 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1893 if return value from maybe_fold_*_comparsions isn't something
1894 the code is prepared to handle.
1896 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1898 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1900 (ext_QIreg_nomode_operands): Remove.
1901 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1905 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1907 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1909 2011-04-26 Richard Guenther <rguenther@suse.de>
1911 * c-typeck.c (build_unary_op): Do not expand array-refs via
1912 pointer arithmetic. Only adjust qualifiers for function types.
1914 2011-04-26 Richard Guenther <rguenther@suse.de>
1917 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1918 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1919 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1920 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1922 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1924 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1925 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1926 * doc/extend.texi: Document __underlying_type.
1928 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1930 * config/rs6000/titan.md (automata_option "progress"): Remove.
1932 2011-04-25 Jeff Law <law@redhat.com>
1934 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1936 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1938 * system.h (ENUM_BITFIELD): Remove.
1940 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1941 Eric Botcazou <ebotcazou@adacore.com>
1943 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1944 for STORE_FLAG_VALUE==-1 case.
1946 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1949 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1950 LEGITIMATE_PIC_OPERAND_P.
1952 2011-04-24 Jan Hubicka <jh@suse.cz>
1954 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1956 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1957 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1958 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1959 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1960 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1961 Sanity check predicate length.
1962 (remap_predicate): Likewise; sanity check jump functions.
1963 (inline_read_section, inline_write_summary): Sanity check
1966 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1969 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1970 __is_literal_type, and __is_trivial; update throughout about
1971 possibly cv-qualified void types.
1973 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1975 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1976 testsuite and make it version agnostic.
1978 2011-04-22 Jan Hubicka <jh@suse.cz>
1980 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1982 2011-04-23 Jakub Jelinek <jakub@redhat.com>
1985 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1986 to VOID_TYPE even around MODIFY_EXPR.
1988 2011-04-22 Mike Stump <mikestump@comcast.net>
1990 * gensupport.c (read_md_rtx): Fix typo in comment.
1991 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1994 2011-04-22 Jan Hubicka <jh@suse.cz>
1996 * gengtype.c (open_base_files): Add ipa-inline.h include.
1997 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1998 ipa-prop.c; update all uses.
1999 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2000 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2001 merge summary of inlined function into former caller.
2002 * ipa-inline.c (max_benefit): Remove.
2003 (edge_badness): Compensate for removal of benefits.
2004 (update_caller_keys): Use
2005 reset_node_growth_cache/reset_edge_growth_cache.
2006 (update_callee_keys): Likewise.
2007 (update_all_callee_keys): Likewise.
2008 (inline_small_functions): Do not collect max_benefit; do not reset
2009 estimated_growth; call free_growth_caches and initialize_growth_caches.
2010 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2011 struct size_time_entry): New structures.
2012 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2013 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2014 and estimated_growth.
2015 (edge_growth_cache_entry): New structure.
2016 (node_growth_cache, edge_growth_cache): New global vars.
2017 (estimate_growth): Turn into inline.
2018 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2019 initialize_growth_caches, free_growth_caches): Declare.
2020 (estimate_edge_growth): Rewrite.
2021 (estimate_edge_time): Implement as inline cache lookup.
2022 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2024 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2025 (NUM_CONDITIONS): New constant.
2026 (predicate_conditions): New enum.
2027 (IS_NOT_CONSTANT): New constant.
2028 (edge_removal_hook_holder): New var.
2029 (node_growth_cache, edge_growth_cache): New global vars.
2030 (true_predicate, single_cond_predicate, false_predicate,
2031 not_inlined_predicate, add_condition, add_clause, and_predicates,
2032 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2033 dump_clause, dump_predicate, account_size_time,
2034 evaulate_conditions_for_edge): New functions.
2035 (inline_summary_alloc): Move to heap.
2036 (inline_node_removal_hook): Clear condition and entry vectors.
2037 (inline_edge_removal_hook): New function.
2038 (initialize_growth_caches, free_growth_caches): New function.
2039 (dump_inline_summary): Update.
2040 (edge_execution_predicate): New function.
2041 (will_be_nonconstant_predicate): New function.
2042 (estimate_function_body_sizes): Compute BB and constantness predicates.
2043 (compute_inline_parameters): Do not clear estimated_growth.
2044 (estimate_edge_size_and_time): New function.
2045 (estimate_calls_size_and_time): New function.
2046 (estimate_callee_size_and_time): New function.
2047 (remap_predicate): New function.
2048 (inline_merge_summary): New function.
2049 (do_estimate_edge_time): New function based on...
2050 (estimate_edge_time): ... this one.
2051 (do_estimate_edge_growth): New function.
2052 (do_estimate_growth): New function based on....
2053 (estimate_growth): ... this one.
2054 (inline_analyze_function): Analyze after deciding on jump functions.
2055 (inline_read_section): New function.
2056 (inline_read_summary): Use it.
2057 (inline_write_summary): Write all the new data.
2058 * ipa-prop.c (ipa_get_param_decl_index): Export.
2059 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2060 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2062 (ipa_get_lattice): Move here from ipa-cp.c
2063 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2064 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2065 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2066 cgraph_edge_inlinable_p): Remove.
2067 * cgraphunit.c: Include ipainline.h
2068 (cgraph_process_new_functions): Update call of
2069 compute_inline_parameters.
2071 2011-04-22 Richard Guenther <rguenther@suse.de>
2073 * tree.c (build_int_cst): Properly create canonicalized integer
2075 (build_int_cst_type): Remove scary comments.
2077 2011-04-22 Xinliang David Li <davidxl@google.com>
2079 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2080 by default when -Wno-error is not specified.
2081 * opts-global.c (decode_options): Remove call to
2082 control_warning_options.
2084 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2086 PR tree-optimization/48717
2087 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2088 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2090 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2092 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2093 definition where used.
2095 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2098 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2099 TREE_STATIC variables declared inside of some OpenMP construct.
2101 2011-04-22 Martin Jambor <mjambor@suse.cz>
2104 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2106 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2109 * c-typeck.c (pop_init_level): Do not warn about initializing
2112 2011-04-22 Alan Modra <amodra@gmail.com>
2114 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2115 when returning call_cookie.
2116 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2117 pointers, to functions with no more vector args than the current
2118 function, and some non-local calls for ABI_V4.
2119 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2120 sibcall_nonlocal_aix64): Combine to ..
2121 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2122 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2123 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2124 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2125 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2127 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2128 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2129 sibcall_value_symbolic_64): Delete.
2131 2011-04-21 Xinliang David Li <davidxl@google.com>
2133 * cgraph.h: Remove pid.
2134 * cgraph.c: Remove pid.
2135 * value-prof.c (init_node_map): New function.
2136 (del_node_map): New function.
2137 (find_func_by_funcdef_no): New function.
2138 (gimple_ic_transform): Call new function.
2139 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2140 * function.c (get_last_funcdef_no): New function.
2141 * function.h (get_last_funcdef_no): New function.
2142 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2143 to libgcov function.
2144 (tree-profiling): Call node map init and delete function.
2146 2011-04-21 Ian Lance Taylor <iant@google.com>
2148 * godump.c (go_format_type): Use exported Go name for anonymous
2151 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2153 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2154 Call builtin_function_type_list instead of builtin_function_type.
2155 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2157 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2159 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2160 build_function_type_list instead of build_function_type.
2161 Delete variable `endlink'.
2163 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2165 * config/s390/s390.c (s390_init_builtins): Call
2166 build_function_type_list instead of build_function_type.
2168 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2170 * config/ia64/ia64.c (ia64_init_builtins): Call
2171 build_function_type_list instead of builtin_function_type.
2173 2011-04-21 Easwaran Raman <eraman@google.com>
2175 * cfgexpand.c (stack_var): Remove OFFSET...
2176 (add_stack_var): ...and its reference here...
2177 (expand_stack_vars): ...and here.
2178 (stack_var_cmp): Sort by descending order of size.
2179 (partition_stack_vars): Change heuristic.
2180 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2181 (dump_stack_var_partition): Add newline after each partition.
2183 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2184 Jeff Law <law@redhat.com>
2186 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2187 * gengtype.c (matching_file_name_substitute): Likewise.
2189 2011-04-21 Richard Guenther <rguenther@suse.de>
2192 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2194 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2196 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2198 2011-04-21 Richard Guenther <rguenther@suse.de>
2200 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2203 2011-04-21 Richard Guenther <rguenther@suse.de>
2205 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2206 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2207 Use DECL_P, not SSA_VAR_P.
2208 (ptr_derefs_may_alias_p): Likewise.
2209 (ptr_deref_may_alias_ref_p_1): Likewise.
2210 (decl_refs_may_alias_p): Likewise.
2211 (refs_may_alias_p_1): Likewise.
2212 (ref_maybe_used_by_call_p_1): Likewise.
2213 (call_may_clobber_ref_p_1): Likewise.
2214 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2215 are either MEM_REF or TARGET_MEM_REF.
2216 (indirect_refs_may_alias_p): Likewise.
2217 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2218 for MEM_EXPR of indirect calls.
2220 2011-04-21 Tristan Gingold <gingold@adacore.com>
2222 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2223 (dst_file_info_struct): Remove flen field.
2224 (lookup_filename): Remove code that set flen field.
2226 2011-04-21 Tristan Gingold <gingold@adacore.com>
2228 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2230 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2233 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2234 vec_extract and vec_concat for non-SSE4_1 targets.
2236 2011-04-21 Richard Guenther <rguenther@suse.de>
2238 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2241 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2243 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2245 (FILE): Don't undefine.
2247 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2249 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2251 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2253 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2254 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2255 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2257 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2258 definitions where used.
2259 * config/microblaze/microblaze.h (struct microblaze_args): Use
2260 rtx, not struct rtx_def *.
2261 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2263 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2264 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2265 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2266 not struct rtx_def *.
2267 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2269 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2271 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2273 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2275 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2276 operand_equal_p to compare DR_BASE_ADDRESSes.
2277 (vect_check_interleaving): Likewise.
2279 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2282 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2283 for all Neon struct constants.
2285 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2287 * target.def (legitimate_constant_p): New hook.
2288 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2289 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2290 * doc/tm.texi: Regenerate.
2291 * hooks.h (hook_bool_mode_rtx_true): Declare.
2292 * hooks.c (hook_bool_mode_rtx_true): Define.
2293 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2294 * calls.c (precompute_register_parameters): Replace uses of
2295 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2296 (emit_library_call_value_1): Likewise.
2297 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2298 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2299 * ira-costs.c (scan_one_insn): Likewise.
2300 * recog.c (general_operand, immediate_operand): Likewise.
2301 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2302 * reload1.c (init_eliminable_invariants): Likewise.
2304 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2306 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2307 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2309 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2310 * config/alpha/predicates.md (input_operand): Update call to
2311 alpha_legitimate_constant_p.
2313 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2314 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2315 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2316 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2317 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2318 (arm_legitimate_constant_p): New functions.
2319 (arm_cannot_force_const_mem): Make static.
2321 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2323 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2324 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2325 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2326 instead of bfin_legitimate_constant_p.
2327 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2328 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2330 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2332 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2334 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2335 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2336 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2337 (frv_legitimate_constant_p): Make static. Add a mode argument.
2339 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2340 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2341 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2343 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2344 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2345 * config/i386/i386.c (legitimate_constant_p): Rename to...
2346 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2348 (ix86_cannot_force_const_mem): Update accordingly.
2349 (ix86_legitimate_address_p): Likewise.
2350 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2351 * config/i386/i386.md: Update commentary.
2353 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2354 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2355 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2356 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2358 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2360 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2361 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2362 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2363 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2365 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2366 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2367 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2369 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2370 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2371 (m32r_legitimate_constant_p): New function.
2373 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2374 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2375 LEGITIMATE_CONSTANT_P.
2376 (LEGITIMATE_CONSTANT_P): Delete.
2377 * config/m68k/m68k.c (m68k_expand_prologue): Call
2378 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2379 (m68k_legitimate_constant_p): New function.
2380 * config/m68k/m68k.md: Update comments.
2382 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2383 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2384 (mcore_legitimate_constant_p): New function.
2386 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2387 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2388 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2389 Add a mode argument.
2390 (mep_legitimate_address): Update accordingly.
2391 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2393 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2395 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2396 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2397 static. Check OP's mode for VOIDmode.
2398 (microblaze_legitimate_constant_p): New function.
2399 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2401 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2402 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2403 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2404 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2405 * config/mips/predicates.md: Update comments.
2407 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2408 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2409 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2410 (mmix_legitimate_constant_p): Make static, return a bool, and take
2412 (mmix_print_operand_address): Update accordingly.
2414 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2416 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2417 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2418 static. Add a mode argument.
2419 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2421 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2423 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2424 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2425 (pa_legitimate_constant_p): New function.
2427 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2429 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2430 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2431 (pdp11_legitimate_constant_p): New function.
2433 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2434 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2435 (rs6000_legitimate_constant_p): New function.
2437 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2438 (rx_legitimate_constant_p): ...this.
2439 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2440 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2441 (rx_legitimate_constant_p): ...this.
2442 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2443 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2445 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2446 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2447 * config/s390/s390.c (legitimate_constant_p): Rename to...
2448 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2449 and add a mode argument.
2450 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2452 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2454 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2455 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2456 (sh_legitimate_constant_p): New function.
2458 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2459 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2460 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2461 (legitimate_constant_p): Rename to...
2462 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2464 (constant_address_p): Update accordingly.
2466 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2467 argument and return a bool.
2468 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2469 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2470 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2471 (spu_rtx_costs): Update accordingly.
2472 * config/spu/predicates.md (vec_imm_operand): Likewise.
2474 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2476 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2477 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2478 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2480 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2481 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2482 * config/vax/vax.c (legitimate_constant_p): Likewise.
2484 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2485 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2486 (xtensa_legitimate_constant_p): New function.
2488 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2490 * target.def (cannot_force_const_mem): Add a mode argument.
2491 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2492 * doc/tm.texi: Regenerate.
2493 * hooks.h (hook_bool_mode_rtx_false): Declare.
2494 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2495 (hook_bool_mode_const_rtx_true): Likewise.
2496 (hook_bool_mode_rtx_false): New function.
2497 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2498 to be non-VOID. Update call to cannot_force_const_mem.
2499 (find_reloads): Update accordingly.
2500 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2501 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2503 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2504 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2505 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2506 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2507 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2508 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2509 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2510 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2511 (m68k_cannot_force_const_mem): ...this new function.
2512 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2514 (mips_const_insns, mips_legitimize_const_move): Update calls.
2515 (mips_secondary_reload_class): Likewise.
2516 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2517 (pa_cannot_force_const_mem): ...this new function.
2518 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2519 (rs6000_cannot_force_const_mem): ...this new function.
2520 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2522 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2523 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2525 (xtensa_cannot_force_const_mem): ...this new function.
2527 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2529 * config/mips/mips.c (mips16_build_function_stub): Call
2530 build_function_type_list instead of build_function_type.
2531 (mips16_build_call_stub): Likewise.
2533 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2535 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2536 instead of build_function_type.
2538 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2540 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2541 instead of build_function_type.
2543 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2546 * config/i386/i386.md (insv): Change operand 0 constraint to
2547 "register_operand". Change operand 1 and 2 constraint to
2548 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2549 * config/i386/sse.md (sse4_1_pinsrb): Export.
2550 (sse2_pinsrw): Ditto.
2551 (sse4_1_pinsrd): Ditto.
2552 (sse4_1_pinsrq): Ditto.
2553 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2554 * config/i386/i386.c (ix86_expand_pinsr): New.
2556 2011-04-20 Easwaran Raman <eraman@google.com>
2558 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2559 containing union type only with -fstrict-aliasing.
2561 2011-04-20 Jim Meyering <meyering@redhat.com>
2563 Remove useless if-before-free tests.
2564 * calls.c (expand_call, save_area): Likewise.
2565 * cfgcleanup.c (try_forward_edges): Likewise.
2566 * collect2.c (collect_execute): Likewise.
2567 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2568 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2569 * coverage.c (coverage_checksum_string): Likewise.
2570 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2571 * cselib.c (cselib_init): Likewise.
2572 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2573 (df_set_clean_cfg): Likewise.
2574 * function.c (free_after_compilation): Likewise.
2575 * gcc.c (do_spec_1, main): Likewise.
2576 * gcov.c (create_file_names): Likewise.
2577 * gensupport.c (identify_predicable_attribute): Likewise.
2578 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2579 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2580 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2581 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2582 * ipa-pure-const.c (local_pure_const): Likewise.
2583 * ipa-reference.c (propagate): Likewise.
2584 * ira-costs.c (free_ira_costs): Likewise.
2585 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2586 * matrix-reorg.c (mat_free): Likewise.
2587 * prefix.c (get_key_value): Likewise.
2588 * profile.c (compute_value_histograms): Likewise.
2589 * reload1.c (free_reg_equiv): Likewise.
2590 * sched-deps.c (free_deps): Likewise.
2591 * sel-sched-ir.c (fence_clear): Likewise.
2592 * sese.c (set_rename, if_region_set_false_region): Likewise.
2593 * tree-data-ref.c (free_rdg): Likewise.
2594 * tree-eh.c (lower_try_finally): Likewise.
2595 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2596 * tree-ssa-live.c (delete_var_map): Likewise.
2597 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2598 * tree-ssa-pre.c (phi_trans_add): Likewise.
2600 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2602 PR tree-optimization/48611
2603 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2604 beyond ERT_MUST_NOT_THROW region.
2606 2011-04-20 Catherine Moore <clm@codesourcery.com>
2608 * config/mips/mips.opt (mfix-24k): New.
2609 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2610 * config/mips/mips.md (length): Increase by 4 for stores if
2612 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2613 all noreorder if fixing 24K errata.
2614 * doc/invoke.texi: Document mfix-24k.
2616 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2618 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2619 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2621 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2623 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2624 (const_ok_for_op): ... to here.
2626 2011-04-20 Kai Tietz <ktietz@redhat.com>
2628 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2629 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2631 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2633 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2635 2011-04-20 Richard Guenther <rguenther@suse.de>
2637 PR tree-optimization/47892
2638 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2641 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2643 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2645 2011-04-20 Tristan Gingold <gingold@adacore.com>
2647 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2649 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2653 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2654 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2655 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2656 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2657 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2659 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2662 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2663 (avr_asm_named_section, avr_asm_output_aligned_common,
2664 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2665 New functions to update...
2666 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2667 (avr_asm_init_sections): Overwrite section callbacks for
2668 data_section, bss_section.
2669 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2671 (avr_file_end): ...here.
2673 2011-04-20 Richard Guenther <rguenther@suse.de>
2676 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2677 objects and types here. Adjust for their offset before comparing.
2679 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2681 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2684 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2686 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2687 (GIMPLE_H): Include $(INTERNAL_FN_H).
2688 (OBJS-common): Add internal-fn.o.
2689 (internal-fn.o): New rule.
2690 * internal-fn.def: New file.
2691 * internal-fn.h: Likewise.
2692 * internal-fn.c: Likewise.
2693 * gimple.h: Include internal-fn.h.
2694 (GF_CALL_INTERNAL): New gf_mask.
2695 (gimple_statement_call): Put fntype into a union with a new
2697 (gimple_build_call_internal): Declare.
2698 (gimple_build_call_internal_vec): Likewise.
2699 (gimple_call_same_target_p): Likewise.
2700 (gimple_call_internal_p): New function.
2701 (gimple_call_internal_fn): Likewise.
2702 (gimple_call_fntype): Return null for internal calls.
2703 (gimple_call_set_fntype): Assert that the function is not internal.
2704 (gimple_call_set_fn): Likewise.
2705 (gimple_call_set_fndecl): Likewise.
2706 (gimple_call_set_internal_fn): New function.
2707 (gimple_call_addr_fndecl): Handle null functions.
2708 (gimple_call_return_type): Likewise null types.
2709 * gimple.c (gimple_build_call_internal_1): New function.
2710 (gimple_build_call_internal): Likewise.
2711 (gimple_build_call_internal_vec): Likewise.
2712 (gimple_call_same_target_p): Likewise.
2713 (gimple_call_flags): Handle calls to internal functions.
2714 (gimple_call_fnspec): New function.
2715 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2716 (gimple_has_side_effects): Handle null functions.
2717 (gimple_rhs_has_side_effects): Likewise.
2718 (gimple_call_copy_skip_args): Handle calls to internal functions.
2719 * cfgexpand.c (expand_call_stmt): Likewise.
2720 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2721 * gimple-fold.c (gimple_fold_call): Handle null functions.
2722 (gimple_fold_stmt_to_constant_1): Don't fold
2723 calls to internal functions.
2724 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2726 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2727 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2728 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2729 (do_warn_unused_result): Likewise.
2730 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2731 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2732 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2733 the target of a call.
2734 (initialize_hash_element): Update accordingly.
2735 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2736 (iterative_hash_hashable_expr): Handle calls to internal functions.
2737 (print_expr_hash_elt): Likewise.
2738 * tree-ssa-pre.c (can_value_number_call): Likewise.
2739 (eliminate): Handle null functions.
2740 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2741 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2742 (find_func_aliases): Likewise.
2743 * value-prof.c (gimple_ic_transform): Likewise.
2744 (gimple_indirect_call_to_profile): Likewise.
2745 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2746 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2748 2011-04-19 Jan Hubicka <jh@suse.cz>
2750 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2751 * ipa-inline.c (inline_small_functions): Compute summaries first,
2752 populate heap later.
2754 2011-04-19 Jan Hubicka <jh@suse.cz>
2756 * cgraph.h (save_inline_function_body): Remove.
2757 * ipa-inline-transform.c: New file, broke out of...
2758 * ipa-inline.c: ... this one; Update toplevel comment.
2759 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2761 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2762 (cgraph_mark_inline_edge): Rename to inline_call; move to
2763 ipa-inline-transform.c.
2764 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2765 move to ipa-inline-transform.c
2766 (recursive_inlining, inline_small_functions, flatten_function,
2767 ipa_inline, inline_always_inline_functions,
2768 early_inline_small_functions): Update.
2769 (inline_transform): Move to ipa-inline-transform.c.
2770 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2772 * Makefile.in (ipa-inline-transform.o): New file.
2773 * cgraphunit.c (save_inline_function_body): Move to
2774 ipa-inline-transform.c
2776 2011-04-19 DJ Delorie <dj@redhat.com>
2778 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2779 registers if we already know there aren't any.
2780 (m32c_emit_epilogue): Don't emit a barrier here.
2781 (m32c_emit_eh_epilogue): Likewise.
2782 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2783 operands at expand time.
2784 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2786 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2787 duplicates. Provide aliases instead.
2788 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2789 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2792 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2794 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2795 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2796 (general_or_i64_p, sparc_register_move_cost): New function.
2798 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2800 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2801 Add lynx, mipssde. Sort table.
2803 2011-04-19 Xinliang David Li <davidxl@google.com>
2805 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2808 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2811 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2812 is a SUBREG with non-MODE_INT mode inside of it.
2814 2011-04-19 Martin Jambor <mjambor@suse.cz>
2816 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2817 also according to actual contants.
2818 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2819 (gimple_fold_call): Use it.
2820 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2822 2011-04-19 Martin Jambor <mjambor@suse.cz>
2824 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2825 non-pointer assignments.
2827 2011-04-19 Martin Jambor <mjambor@suse.cz>
2829 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2830 account anc_offset and otr_type from the indirect edge info.
2831 * ipa-prop.c (get_ancestor_addr_info): New function.
2832 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2833 get_ancestor_addr_info, call it.
2834 (ipa_note_param_call): Do not initialize information about polymorphic
2835 calls, return the indirect call graph edge. Remove the last
2836 parameter, adjust all callers.
2837 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2838 parameters. Initialize polymorphic information in the indirect edge.
2840 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2843 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2844 the types if they have different enumeration identifiers.
2846 2011-04-19 Jan Hubicka <jh@suse.cz>
2848 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2849 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2850 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2851 (optimize_function_for_size_p) ... here.
2853 2011-04-19 Richard Guenther <rguenther@suse.de>
2856 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2859 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2861 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2862 if DECL_NO_INLINE_WARNING_P is set on the function.
2864 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2867 * reload1.c (inc_for_reload): Return void. All callers changed.
2868 (emit_input_reload_insns): Don't try to delete previous output
2869 reloads to a register, or record spill_reg_store for autoincs.
2871 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2873 * gengtype.h: Updated copyright year.
2874 (struct input_file_st): Add inpisplugin field.
2875 (type_fileloc): New function.
2877 (write_typed_struct_alloc_def): Add gcc_assert.
2878 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2879 (write_typed_alloc_defns): Don't output for plugin files.
2880 (input_file_by_name): Clear inpisplugin field.
2881 (main): Set inpisplugin field for plugin files.
2883 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2885 * gengtype-state.c (string_eq): New.
2886 (read_state): Use string_eq instead of strcmp when creating the
2889 2011-04-19 Wei Guozhi <carrot@google.com>
2892 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2893 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2895 * config/arm/constraints.md (Uu): New constraint.
2896 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2898 2011-04-19 Tristan Gingold <gingold@adacore.com>
2900 * config.gcc (-*-*-*vms): Added.
2901 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2903 * config/vms/vms-ld.c: New file.
2904 * config/vms/vms-ar.c: New file.
2905 * config/vms/t-vmsnative: New file.
2907 2011-04-18 Xinliang David Li <davidxl@google.com>
2909 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2911 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2914 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2915 if TREE_TYPE (v) is non-NULL.
2917 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2918 gimple_get_virt_mehtod_for_binfo.
2919 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2920 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2922 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2924 2011-04-18 Michael Matz <matz@suse.de>
2925 Steve Ellcey <sje@cup.hp.com>
2927 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2928 use its mode as source mode if it isn't VOIDmode.
2930 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2932 * doc/passes.texi: Fill crossref nodes.
2934 2011-04-18 Jim Meyering <meyering@redhat.com>
2936 Fix doubled-word typos in comments and strings
2937 * config/alpha/vms-unwind.h: s/for for/for/
2938 * config/arm/unwind-arm.h: Likewise.
2939 * config/microblaze/microblaze.c: Likewise.
2940 * config/sh/constraints.md: s/in in/in/
2941 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2943 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2945 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2946 (AVX_FLOAT_MODE_P): Ditto.
2947 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2948 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2949 (AVX_VEC_FLOAT_MODE_P): Ditto.
2950 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2951 (UNSPEC_MASKSTORE): Ditto.
2952 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2953 Merge from <sse>_movmsk<ssemodesuffix> and
2954 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2955 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2957 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2958 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2959 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2961 2011-04-18 Jan Hubicka <jh@suse.cz>
2963 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2965 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2966 (want_inline_function_called_once_p): Break out the logic from
2968 (edge_badness): Ensure that profile is not misupdated.
2969 (lookup_recursive_calls): Prioritize by call frequencies.
2970 (inline_small_functions): Move program size estimates here;
2971 actually process whole queue even when unit growth has been
2972 met. (to properly compute inline_failed reasons and for the
2973 case unit size decrease.) Revisit comments on recursive inlining.
2974 (ipa_inline): Remove unit summary code; first inline hot calls
2975 of functions called once, cold calls next.
2976 (order, nnodes): Remove unused variables.
2977 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2978 (GTFILES): Remove ipa-inline.c
2979 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2981 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2983 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2985 2011-04-18 Jie Zhang <jie@codesourcery.com>
2986 Richard Earnshaw <rearnsha@arm.com>
2988 * arm.c (neon_builtin_type_bits): Remove.
2989 (typedef enum neon_builtin_mode): New.
2990 (T_MAX): Don't define.
2991 (typedef enum neon_builtin_datum): Remove bits, codes[],
2992 num_vars and base_fcode. Add mode, code and fcode.
2993 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2994 VAR10): Change accordingly.
2995 (neon_builtin_data[]): Change accordingly
2996 (arm_init_neon_builtins): Change accordingly.
2997 (neon_builtin_compare): Remove.
2998 (locate_neon_builtin_icode): Remove.
2999 (arm_expand_neon_builtin): Change accordingly.
3001 * arm.h (enum arm_builtins): Move to ...
3002 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3004 * arm.c (arm_builtin_decl): Declare.
3005 (TARGET_BUILTIN_DECL): Define.
3006 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3007 (arm_builtin_decls[]): New.
3008 (arm_init_neon_builtins): Store builtin declarations in
3009 arm_builtin_decls[].
3010 (arm_init_tls_builtins): Likewise.
3011 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3012 (arm_builtin_decl): New.
3014 2011-04-18 Richard Guenther <rguenther@suse.de>
3016 * tree.c (upper_bound_in_type): Build properly canonicalized
3018 (lower_bound_in_type): Likewise.
3020 2011-04-18 Richard Guenther <rguenther@suse.de>
3022 * gimple.h (gimple_call_addr_fndecl): New function.
3023 (gimple_call_fndecl): Use it.
3024 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3026 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3027 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3029 2011-04-18 Richard Guenther <rguenther@suse.de>
3032 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3034 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3037 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3038 DECL_IN_CONSTANT_POOL without RTL.
3040 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3041 Ira Rosen <ira.rosen@linaro.org>
3044 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3045 to match neon_vzip/vuzp/vtrn_internal.
3046 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3047 outputs explicitly dependent on both inputs.
3048 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3050 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3052 PR tree-optimization/48616
3053 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3054 whether the shift is by scalar or vector based on whether all SLP
3055 scalar stmts have the same rhs.
3057 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3059 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3062 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3064 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3067 2011-04-17 Jan Hubicka <jh@suse.cz>
3069 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3070 * cgrpahunit.c (cgraph_finalize_function): Do not set
3071 finalized_by_frontend.
3072 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3073 finalized_by_frontend.
3075 2011-04-17 Jan Hubicka <jh@suse.cz>
3077 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3078 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3079 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3080 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3082 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3084 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3086 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3089 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3090 is non-null before accessing it.
3091 (input_cgraph): Remove trailing spaces.
3093 2011-04-17 Revital Eres <revital.eres@linaro.org>
3095 * params.def (sms-min-sc): New param flag.
3096 * modulo-sched.c (sms_schedule): Use it.
3097 * doc/invoke.texi (sms-min-sc): Document it.
3099 2011-04-17 Jan Hubicka <jh@suse.cz>
3101 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3102 present, also set gimple_call_set_cannot_inline.
3103 * ipa-inline.c: Update toplevel comment.
3105 (cgraph_clone_inlined_nodes): Fix linebreaks.
3106 (cgraph_check_inline_limits): Restructure to ...
3107 (caller_growth_limits): ... this one; be more tolerant
3108 on growth in nested inline chains; add explanatory comment;
3109 fix stack accounting thinko introduced by previous patch.
3110 (cgraph_default_inline_p): Remove.
3111 (report_inline_failed_reason): New function.
3112 (can_inline_edge_p): New function.
3113 (can_early_inline_edge_p): New function.
3114 (leaf_node_p): Move upwards in file.
3115 (want_early_inline_function_p): New function.
3116 (want_inline_small_function_p): New function.
3117 (want_inline_self_recursive_call_p): New function.
3118 (cgraph_edge_badness): Rename to ...
3119 (edge_badness) ... this one; fix linebreaks.
3120 (update_edge_key): Update call of edge_baddness; add
3121 detailed dump about queue updates.
3122 (update_caller_keys): Use can_inline_edge_p and
3123 want_inline_small_function_p.
3124 (cgraph_decide_recursive_inlining): Rename to...
3125 (recursive_inlining): Use can_inline_edge_p and
3126 want_inline_self_recursive_call_p; simplify and remove no longer
3128 (cgraph_set_inline_failed): Remove.
3129 (add_new_edges_to_heap): Use can_inline_edge_p and
3130 want_inline_small_function_p.
3131 (cgraph_decide_inlining_of_small_functions): Rename to ...
3132 (inline_small_functions): ... this one; cleanup; use
3133 can/want predicates; cleanup debug ouput; work edges till fibheap
3134 is exhausted and do not stop once unit growth is reached; remove
3135 later loop processing remaining edges.
3136 (cgraph_flatten): Rename to ...
3137 (flatten_function): ... this one; use can_inline_edge_p
3138 and can_early_inline_edge_p predicates.
3139 (cgraph_decide_inlining): Rename to ...
3140 (ipa_inline): ... this one; remove unreachable nodes before
3141 inlining functions called once; simplify the pass.
3142 (cgraph_perform_always_inlining): Rename to ...
3143 (inline_always_inline_functions): ... this one; use
3144 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3145 (cgraph_decide_inlining_incrementally): Rename to ...
3146 (early_inline_small_functions): ... this one; simplify
3147 using new predicates; cleanup; make dumps prettier.
3148 (cgraph_early_inlining): Rename to ...
3149 (early_inliner): newer inline regular functions into always-inlines;
3150 fix updating of call stmt summaries.
3151 (pass_early_inline): Update for new names.
3152 (inline_transform): Fix formating.
3153 (gate_cgraph_decide_inlining): Rename to ...
3154 (pass_ipa_inline): ... this one.
3155 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3156 * ipa-inline-analysis.c (dump_inline_summary): Update.
3157 (compute_inline_parameters): Do not compute disregard_inline_limits;
3158 look for mismatching arguments.
3159 (estimate_growth): Fix handlig of non-trivial self recursion.
3160 (inline_read_summary): Do not read info->disregard_inline_limits.
3161 (inline_write_summary): Do not write info->disregard_inline_limits.
3162 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3163 and move all checks into can_inline_edge_p predicate; re-enable code
3164 comparing optimization levels.
3165 (expand_call_inline): Do not test inline_forbidden_into_p.
3166 * Makefile.in (ipa-inline.o): Update arguments.
3168 2011-04-17 Revital Eres <revital.eres@linaro.org>
3170 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3172 2011-04-17 Revital Eres <revital.eres@linaro.org>
3174 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3176 2011-04-17 Michael Matz <matz@suse.de>
3178 PR tree-optimization/48622
3180 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3181 in same order as they're written.
3183 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3185 * config/pa/predicates.md: Reorganize and simplify predicates.
3186 Eliminate duplicate code checks.
3187 (arith_operand): Rename to arith14_operand
3188 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3189 * config/pa/pa.md: Use renamed operands.
3190 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3191 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3192 arith11_operand, adddi3_operand, indexed_memory_operand,
3193 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3194 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3195 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3196 move_dest_operand, move_src_operand, prefetch_cc_operand,
3197 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3198 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3199 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3200 div_operand, int5_operand, movb_comparison_operator,
3201 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3202 arith_double_operand, ireg_operand, lhs_lshift_operand,
3203 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3204 integer_store_memory_operand): Likewise.
3205 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3206 (integer_store_memory_operand, read_only_operand,
3207 function_label_operand, borx_reg_operand,
3208 non_hard_reg_operand): Likewise.
3209 (eq_neq_comparison_operator): Delete unused operator.
3210 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3211 function_label_operand.
3212 (emit_move_sequence): Likewise.
3214 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3216 * config/i386/sse.md (sseunpackmode): New mode attribute.
3217 (ssepackmode): Ditto.
3218 (vec_pack_trunc_<mode>): Macroize expander from
3219 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3220 (vec_unpacks_lo_<mode>): Macroize expander from
3221 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3222 (vec_unpacks_hi_<mode>): Macroize expander from
3223 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3224 (vec_unpacku_lo_<mode>): Macroize expander from
3225 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3226 (vec_unpacku_hi_<mode>): Macroize expander from
3227 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3228 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3229 ix86_expand_sse4_unpack.
3230 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3232 2011-04-16 Jan Hubicka <jh@suse.cz>
3234 * cgraphbuild.c: Include ipa-inline.h.
3235 (reset_inline_failed): Use initialize_inline_failed.
3236 * cgraph.c: Include ipa-inline.h.
3237 (cgraph_create_node_1): Do not initialize estimated_growth.
3238 (initialize_inline_failed): More to ipa-inline-analysis.c
3239 (dump_cgraph_node): Do not dump inline flags.
3240 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3241 and disregard_inline_limits flags.
3242 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3243 time, size, estimated_growth.
3244 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3246 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3247 DECL_DISREGARD_INLINE_LIMITS.
3248 (cgraph_analyze_function): Do not initialize
3249 node->local.disregard_inline_limits.
3250 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3251 inlinable, versionable and disregard_inline_limits.
3252 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3253 cgraph_check_inline_limits, cgraph_default_inline_p,
3254 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3255 add_new_edges_to_heap): Update.
3256 (cgraph_decide_inlining_of_small_function): Update; set
3257 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3258 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3259 cgraph_decide_inlining_incrementally): Update.
3260 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3261 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3262 time, size and estimated_growth parameters.
3263 (estimate_edge_growth): Update.
3264 (initialize_inline_failed): Declare.
3265 * ipa-split.c: Include ipa-inline.h
3266 (execute_split_functions): Update.
3267 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3268 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3269 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3270 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3271 estimated_growth to INT_MIN.
3272 (inline_node_duplication_hook): Likewise.
3273 (dump_inline_summary): Dump new fields.
3274 (compute_inline_parameters): Update.
3275 (estimate_edge_time, estimate_time_after_inlining,
3276 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3277 inline_write_summary):
3278 (initialize_inline_failed): Move here from cgraph.c.
3279 * tree-sra.c: Include ipa-inline.h.
3280 (ipa_sra_preliminary_function_checks): Update.
3281 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3284 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3286 * config/i386/sse.md (V16): New mode iterator.
3288 (AVXMODEQI, AVXMODEDI): Remove.
3289 (sse2, sse3): New mode attribute.
3290 (mov<mode>): Use V16 mode iterator.
3291 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3292 (push<mode>1): Use V16 mode iterator.
3293 (movmisalign<mode>): Ditto.
3294 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3295 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3296 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3297 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3298 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3299 avx_movdqu<avxmodesuffix>.
3300 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3301 *avx_movdqu<avxmodesuffix>.
3302 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3303 avx_lddqu<avxmodesuffix>.
3304 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3305 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3306 avx_movnt<AVXMODEDI:mode>.
3307 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3308 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3310 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3313 * haifa-sched.c (prune_ready_list, schedule_block): Use
3314 sched_pressure_p rather than flag_sched_pressure.
3316 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3318 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3319 cgraph_get_node instead of cgraph_get_create_node.
3321 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3323 * cfgexpand.c (expand_debug_expr): Use
3324 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3326 2011-04-15 Michael Matz <matz@suse.de>
3328 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3329 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3330 * function.c (gimplify_parameters): Ditto.
3331 * gimplify.c (gimplify_vla_decl): Ditto.
3333 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3334 (gimple_call_set_alloca_for_var): New inline function.
3335 (gimple_call_alloca_for_var_p): Ditto.
3336 * gimple.c (gimple_build_call_from_tree): Remember
3337 CALL_ALLOCA_FOR_VAR_P state.
3338 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3340 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3341 calls if they were for VLA objects.
3343 2011-04-15 Martin Jambor <mjambor@suse.cz>
3345 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3348 2011-04-15 Martin Jambor <mjambor@suse.cz>
3351 * tree-emutls.c (lower_emutls_function_body): Call
3352 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3355 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3357 * c-decl.c (detect_field_duplicates): Call
3358 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3360 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3362 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3363 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3364 * ipa-pure-const.c (check_stmt): Call it.
3365 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3367 2011-04-15 Richard Guenther <rguenther@suse.de>
3369 PR tree-optimization/48290
3370 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3371 Properly decide inhibiting propagation based on the valueized
3372 operand. Do loop-closed SSA form preserving here ...
3373 (init_copy_prop): ... not here.
3375 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3378 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3379 (*ieee_smax<mode>3): Likewise.
3381 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3383 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3384 Replace match_operand with match_dup for the third operand in
3387 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3389 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3390 to track processing of conditionals. Update all callers.
3391 (try_combine, simplify_if_then_else): Update.
3393 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3395 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3398 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3400 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3401 instead of match_operand for operand 3.
3403 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3405 * recog.h (insn_operand_data): Add an "allows_mem" field.
3406 * genoutput.c (output_operand_data): Initialize it.
3407 * optabs.c (maybe_legitimize_operand_same_code): New function.
3408 (maybe_legitimize_operand): Use it when matching the original
3411 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3413 * gimplify.c: Fix issues in comments throughout.
3414 (voidify_wrapper_expr): Fix long line.
3415 (build_stack_save_restore): Likewise.
3416 (gimplify_loop_expr): Likewise.
3417 (gimplify_compound_lval): Likewise.
3418 (gimplify_init_ctor_eval): Likewise.
3419 (gimplify_modify_expr_rhs): Likewise.
3420 (omp_notice_threadprivate_variable): Likewise.
3422 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3424 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3425 original one if this is not a builtin function.
3427 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3430 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3431 offset it as needed based on top 2 bits in operands[3], change
3432 MEM mode to SFmode and mask those 2 bits away from operands[3].
3434 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3436 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3437 change from objc_declare_protocols() to objc_declare_protocol().
3439 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3441 * config/i386/sse.md (sse4_1): New mode attribute.
3442 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3443 avx_blend<ssemodesuffix><avxmodesuffix> and
3444 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3445 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3446 avx_blendv<ssemodesuffix><avxmodesuffix> and
3447 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3448 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3449 avx_dp<ssemodesuffix><avxmodesuffix> and
3450 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3451 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3452 (sse4_1_packusdw): Merge with *avx_packusdw.
3453 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3454 (sse4_1_pblendw): Merge with *avx_pblendw.
3455 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3456 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3457 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3459 (sse4_1_round<ssescalarmodesuffix>): Merge with
3460 *avx_round<ssescalarmodesuffix>.
3461 (aesenc): Merge with *avx_aesenc.
3462 (aesenclast): Merge with *avx_aesenclast.
3463 (aesdec): Merge with *avx_aesdec.
3464 (aesdeclast): Merge with *avx_aesdeclast.
3465 (pclmulqdq): Merge with *pclmulqdq.
3466 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3468 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3470 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3473 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3474 (align_local_variable): This. Update DECL_ALIGN.
3475 (add_stack_var): Updated.
3476 (expand_one_stack_var): Likewise.
3478 2011-04-14 Richard Guenther <rguenther@suse.de>
3480 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3482 (dse_initialize_block_local_data, dse_leave_block,
3483 record_voperand_set, get_stmt_uid): Likewise.
3484 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3485 (dse_optimize_stmt): Remove voperand set handling code.
3486 Simplify and improve to handle any kind of killing stmt.
3487 (dse_record_phi): Remove.
3488 (dse_enter_block): Simplify.
3489 (tree_ssa_dse): Likewise.
3490 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3492 2011-04-14 Jan Hubicka <jh@suse.cz>
3494 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3495 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3496 (cgraph_local_info): Remove inline_summary.
3497 * ipa-cp.c: Include ipa-inline.h.
3498 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3499 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3501 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3502 (input_overwrite_node): Do not set inline summary.
3503 (input_node): Do not stream inline summary.
3504 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3505 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3506 growth; we do not have inline parameters computed for that anyway.
3507 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3508 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3509 (inline_summary_t): New type and VECtor.
3510 (debug_inline_summary, dump_inline_summaries): Declare.
3511 (inline_summary): Use VOCtor.
3512 (estimate_edge_growth): Kill hack computing call stmt size directly.
3513 * lto-section-in.c (lto_section_name): Add inline section.
3514 * ipa-inline-analysis.c: Include lto-streamer.h
3515 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3516 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3517 (inline_summary_vec): Define.
3518 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3519 dump_inline_summaries): New functions.
3520 (estimate_function_body_sizes): Properly compute size/time of outgoing
3522 (compute_inline_parameters): Alloc inline_summary; do not compute
3523 size/time of incomming calls.
3524 (estimate_edge_time): Avoid missing time summary hack.
3525 (inline_read_summary): Read inline summary info.
3526 (inline_write_summary): Write inline summary info.
3527 (inline_free_summary): Free all hooks and inline summary vector.
3528 * lto-streamer.h: Add LTO_section_inline_summary section.
3529 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3530 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3532 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3534 * tree-vectorizer.h (vect_strided_store_supported): Add a
3535 HOST_WIDE_INT argument.
3536 (vect_strided_load_supported): Likewise.
3537 (vect_permute_store_chain): Return void.
3538 (vect_transform_strided_load): Likewise.
3539 (vect_permute_load_chain): Delete.
3540 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3541 count argument. Check that the count is a power of two.
3542 (vect_strided_load_supported): Likewise.
3543 (vect_permute_store_chain): Return void. Update after above changes.
3544 Assert that the access is supported.
3545 (vect_permute_load_chain): Likewise.
3546 (vect_transform_strided_load): Return void.
3547 * tree-vect-stmts.c (vectorizable_store): Update calls after
3548 above interface changes.
3549 (vectorizable_load): Likewise.
3550 (vect_analyze_stmt): Don't check for strided powers of two here.
3552 2011-04-14 Richard Guenther <rguenther@suse.de>
3554 PR tree-optimization/48590
3555 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3556 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3557 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3558 BUILT_IN_STACK_SAVE.
3559 * tree-ssa-dce.c (propagate_necessity): Handle
3560 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3562 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3564 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3567 2011-04-14 Richard Guenther <rguenther@suse.de>
3569 * tree.h (get_object_alignment_1): Declare.
3570 * builtins.c (get_object_alignment_1): Split out worker from ...
3571 (get_object_alignment): ... here.
3572 * fold-const.c (get_pointer_modulus_and_residue): Use
3573 get_object_alignment_1.
3575 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3577 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3579 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3580 parameter. Generalise code to handle arrays as well as vectors.
3581 (vect_setup_realignment): Update accordingly.
3582 * tree-vect-stmts.c (vectorizable_store): Likewise.
3583 (vectorizable_load): Likewise.
3585 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3587 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3588 within the per-copy loop.
3590 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3592 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3595 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3597 * doc/options.texi (Negative): Explicitly mention that the
3598 Negative chain must be circular.
3600 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3602 * function.h (block_chainon): Declare.
3603 * function.c (block_chainon): Define.
3605 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3606 Eric Weddington <eric.weddington@atmel.com>
3607 Georg-Johann Lay <avr@gjlay.de>
3609 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3611 (avr_init_builtins, avr_expand_builtin,
3612 avr_expand_delay_cycles, avr_expand_unop_builtin,
3613 avr_expand_binop_builtin ): New functions.
3614 (avr_builtin_id): New enum
3615 (struct avr_builtin_description): New struct
3616 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3617 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3619 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3620 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3621 UNSPECV_DELAY_CYCLES): new enumeration values
3622 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3623 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3624 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3625 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3626 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3627 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3628 "fmulsu"): New insns
3630 * config/avr/avr-c.c: fix line endings
3631 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3632 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3633 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3634 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3635 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3637 * doc/extend.texi (AVR Built-in Functions): New node
3638 (Target Builtins): Add documentation of AVR
3641 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3644 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3645 alone. Error if non-const data has attribute progmem.
3647 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3649 * tree.h (struct tree_constructor): Include tree_typed instead of
3651 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3652 TS_TYPED instead of TS_COMMON.
3654 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3656 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3657 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3658 (sse2_psadbw): Merge with *avx_psadbw.
3659 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3660 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3661 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3662 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3663 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3664 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3665 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3666 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3667 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3668 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3669 (ssse3_palignrti): Merge with *avx_palignrti.
3671 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3673 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3674 * tree-ssanames.c (fini_ssanames): VEC_free it.
3675 (make_ssa_name_fn): Update for VECness of free_ssanames.
3676 (release_ssa_name, release_dead_ssa_names): Likewise.
3677 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3679 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3680 TS_TYPED instead of TS_COMMON.
3682 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3684 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3685 statistics_counter_event.
3686 * tree-ssa-copyrename.c (stats): Define.
3687 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3688 statistics_counter_event.
3689 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3690 (bswap_stats, widen_mul_stats): Define.
3691 (insert_reciprocals): Increment rdivs_inserted.
3692 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3693 rfuncs_inserted. Add calls to statistics_counter_event.
3694 (execute_cse_sincos_1): Increment inserted.
3695 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3696 statistics_counter_event.
3697 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3698 of bswap_stats. Add calls to statistics_counter_event.
3699 (convert_mult_to_widen): Increment widen_mults_inserted.
3700 (convert_plusminus_to_widen): Increment maccs_inserted.
3701 (convert_mult_to_fma): Increment fmas_inserted.
3702 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3703 calls to statistics_counter_event.
3705 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3707 PR rtl-optimization/48455
3708 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3709 `temp_costs->mem_cost'.
3711 2011-04-13 Jan Hubicka <jh@suse.cz>
3713 * ipa-inline.h: New file.
3714 * ipa-inline-analysis.c: New file. Broken out of ...
3715 * ipa-inline.c: ... this file; update toplevel comment;
3716 include ipa-inline.h
3717 (inline_summary): Move to ipa-inline.h
3718 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3719 ipa-inline-analysis.c.
3720 (cgraph_estimate_time_after_inlining): Rename to
3721 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3722 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3723 to estimate_edge_growth.
3724 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3725 rename to estimate_size_after_inlining.
3726 (cgraph_mark_inline_edge): Update for new naming convention.
3727 (cgraph_check_inline_limits): Likewise.
3728 (cgraph_edge_badness): Likewise.
3729 (cgraph_decide_recursive_inlining): Likewise.
3730 (cgraph_decide_inlining_of_small_functions): Likewise.
3731 (cgraph_decide_inlining_incrementally): Likewise.
3732 (cgraph_estimate_growth): Rename to estimate_growth; move to
3733 ipa-inline-analysis.c.
3734 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3735 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3736 (compute_inline_parameters): Likewise.
3737 (compute_inline_parameters_for_current): Likewise.
3738 (pass_inline_parameters): Likewise.
3739 (inline_indirect_intraprocedural_analysis): Likewise.
3740 (analyze_function): Rename to inline_analyze_function; likewise.
3741 (add_new_function): Move to ipa-inline-analysis.c.
3742 (inline_generate_summary): Likewise.
3743 (inline_read_summary): Likewise.
3744 (inline_write_summary): Likewise.
3745 * Makefile.in (ipa-inline-analysis.c): New file.
3747 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3749 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3750 * configure: Regenerate.
3752 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3754 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3755 instead of tree_common.
3756 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3758 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3759 TS_TYPED rather than TS_COMMON.
3760 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3762 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3765 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3766 r20 around calls of __tablejump_elpm__
3768 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3771 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3773 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3775 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3777 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3778 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3779 (cfi_vec): New typedef.
3780 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3781 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3782 (cie_cfi_vec): New static variable.
3783 (cie_cfi_head): Delete.
3784 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3785 declaration changed. Use vector rather than list operations.
3786 (new_cfi): Don't initialize the dw_cfi_next field.
3787 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3788 rather than list operations.
3789 (lookup_cfa): Use vector rather than list operations.
3790 (output_cfis): New argument upto. Accept a cfi_vec rather than
3791 a dw_cfi_ref list head as argument. All callers changed.
3792 Iterate over the vector using upto as a maximum index.
3793 (output_all_cfis): New static function.
3794 (output_fde): Use vector rather than list operations. Use the
3795 new upto argument for output_cfis rather than manipulating a
3797 (dwarf2out_begin_prologue): Change initializations to match
3799 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3800 from the vector length rather than searching for the end of a list.
3801 Use output_all_cfis.
3802 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3804 2011-04-13 Nick Clifton <nickc@redhat.com>
3806 * config/rx/rx.md (movmemsi): Do not use this pattern when
3807 volatile pointers are involved.
3809 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3811 * config/i386/sse.md (pinsrbits): Remove.
3812 (sse2_packsswb): Merge with *avx_packsswb.
3813 (sse2_packssdw): Merge with *avx_packssdw.
3814 (sse2_packuswb): Merge with *avx_packuswb.
3815 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3816 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3817 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3818 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3819 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3820 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3821 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3822 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3823 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3824 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3825 (sse2_loadld): Merge with *avx_loadld.
3826 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3827 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3828 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3829 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3830 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3832 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3834 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3836 * print-tree.c (print_node): Likewise.
3837 * tree-inline.c (copy_tree_r): Likewise.
3838 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3839 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3840 instead of TS_COMMON.
3841 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3842 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3843 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3844 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3845 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3847 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3849 (TREE_CHAIN): Check for a TS_COMMON structure.
3850 (TREE_TYPE): Check for a TS_TYPED structure.
3852 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3854 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3855 cgraph_get_create_node instead of cgraph_node.
3857 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3859 * c-parser.c (c_parser_initelt): Updated call to
3860 objc_build_message_expr.
3861 (c_parser_postfix_expression): Likewise.
3863 2011-04-12 Kai Tietz <ktietz@redhat.com>
3865 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3866 MASK_MS_BITFIELD_LAYOUT bit.
3868 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3870 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3871 assert it is always true.
3872 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3875 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3877 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3878 compiling Objective-C to be more efficient.
3880 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3882 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3885 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3887 * recog.h, genoutput.c, optabs.c: Revert last patch.
3889 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3892 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3894 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3896 * recog.h (insn_operand_data): Add an "allows_mem" field.
3897 * genoutput.c (output_operand_data): Initialize it.
3898 * optabs.c (maybe_legitimize_operand_same_code): New function.
3899 (maybe_legitimize_operand): Use it when matching the original
3902 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3904 * genpreds.c (process_define_predicate): Move most processing
3905 to gensupport.c. Continue to validate the expression.
3906 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3907 (process_define_predicate): Move processing to gensupport.c.
3908 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3909 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3910 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3912 (valid_predicate_name_p): New function, split out from old
3913 genpreds.c:process_define_predicate.
3914 (process_define_predicate): New function, combining code from
3915 old genpreds.c and genrecog.c functions.
3916 (process_rtx): Call it for DEFINE_PREDICATE and
3917 DEFINE_SPECIAL_PREDICATE.
3919 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3921 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3922 size of a '%A' memory reference.
3923 (T_DREG, T_QREG): New neon_builtin_type_bits.
3924 (arm_init_neon_builtins): Assert that the load and store operands
3925 are neon_struct_operands.
3926 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3927 (NEON_ARG_MEMORY): New builtin_arg.
3928 (neon_dereference_pointer): New function.
3929 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3930 Handle NEON_ARG_MEMORY.
3931 (arm_expand_neon_builtin): Update after above interface changes.
3932 Use NEON_ARG_MEMORY for loads and stores.
3933 * config/arm/predicates.md (neon_struct_operand): New predicate.
3934 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3935 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3936 (V_four_elem): Tweak formatting.
3937 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3938 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3939 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3940 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3941 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3942 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3943 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3944 Use %A in the output template.
3945 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3946 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3947 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3948 the width of the memory access. Remove post-increment.
3949 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3951 2011-04-12 Nick Clifton <nickc@redhat.com>
3953 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3954 instruction for interrupt handlers if the target is the basic V850
3956 (expand_epilogue): Likewise.
3958 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3960 PR rtl-optimization/48549
3961 * combine.c (propagate_for_debug): Also stop after BB_END of
3962 this_basic_block. Process LAST and just stop processing after it.
3963 (combine_instructions): If last_combined_insn has been deleted,
3964 set last_combined_insn to its PREV_INSN.
3966 2011-04-12 Richard Guenther <rguenther@suse.de>
3968 PR tree-optimization/46076
3969 * gimple.h (struct gimple_statement_call): Add fntype field.
3970 (gimple_call_fntype): Adjust.
3971 (gimple_call_set_fntype): New function.
3972 * gimple.c (gimple_build_call_1): Set the call function type.
3973 * gimplify.c (gimplify_call_expr): Preserve the function
3974 type the frontend used for the call.
3975 (gimplify_modify_expr): Likewise.
3976 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3978 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3980 * tree-ssa.c (useless_type_conversion_p): Function pointer
3981 conversions are useless.
3983 2011-04-12 Martin Jambor <mjambor@suse.cz>
3985 * cgraph.h (cgraph_node): Remove function declaration.
3986 (cgraph_create_node): Declare.
3987 (cgraph_get_create_node): Likewise.
3988 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3989 Updated all callers.
3990 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3991 the decl does not already exist. Call cgraph_get_create_node instead
3993 (cgraph_get_create_node): New function.
3994 (cgraph_same_body_alias): Update comment.
3995 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3996 assert it does not return NULL.
3997 (cgraph_update_edges_for_call_stmt): Likewise.
3998 (cgraph_clone_edge): Likewise.
3999 (cgraph_create_virtual_clone): Likewise.
4000 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4001 instead of cgraph_node.
4002 (cgraph_add_new_function): Call cgraph_create_node or
4003 cgraph_get_create_node instead of cgraph_node.
4004 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4005 instead of cgraph_node.
4006 (record_eh_tables): Likewise.
4007 (mark_address): Likewise.
4008 (mark_load): Likewise.
4009 (build_cgraph_edges): Call cgraph_get_create_node instead
4011 (rebuild_cgraph_edges): Likewise.
4012 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4013 instead of cgraph_node.
4014 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4016 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4017 cgraph_create_node instead of cgraph_node.
4018 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4020 * lto-cgraph.c (input_node): Likewise.
4021 * lto-streamer-in.c (input_function): Likewise.
4022 * varasm.c (mark_decl_referenced): Likewise.
4023 (assemble_alias): Likewise.
4025 2011-04-12 Martin Jambor <mjambor@suse.cz>
4027 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4028 instead of cgraph_node and assert it does not return NULL.
4029 * lto-streamer-in.c (lto_read_body): Likewise.
4030 * omp-low.c (new_omp_context): Likewise.
4031 (create_task_copyfn): Likewise.
4032 * tree-emutls.c (lower_emutls_function_body): Likewise.
4033 * matrix-reorg.c (transform_allocation_sites): Likewise.
4035 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4038 * c-typeck.c (build_asm_expr): Error out on attempts to use
4039 void type outputs or inputs for constraints that allow reg or
4042 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4043 Richard Earnshaw <rearnsha@arm.com>
4046 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4047 to use sign-magnitude offsets. Reject unsupported unaligned
4048 cases. Add detailed description in comments.
4049 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4050 condition from TARGET_32BIT to TARGET_ARM.
4052 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4054 * tree.h (struct typed_tree): New.
4055 (struct tree_common): Include it instead of tree_base.
4056 (TREE_TYPE): Update for new location of type field.
4057 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4058 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4059 (union tree_node): Add typed field.
4060 * treestruct.def (TS_TYPED): New.
4061 * lto-streamer.c (check_handled_ts_structures): Handle it.
4062 * tree.c (MARK_TS_TYPED): New macro.
4063 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4065 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4067 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4068 (force_nonfallthru): Do not alter the loop nest if no basic block
4071 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4073 * config/i386/sse.md (VI): New mode iterator.
4075 (AVX256MODEI): Ditto.
4076 (AVXMODEF4P): Ditto.
4077 (avxvecpsmode): Ditto.
4078 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4079 (sse2_andnot<mode>3): New expander.
4080 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4081 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4082 (<any_logic:code><mode>3): Use VI mode iterator.
4083 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4084 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4085 (*andnottf3): Handle AVX three-operand constraints.
4086 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4088 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4089 Robert Millan <rmh@gnu.org>
4091 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4092 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4093 GNU_USER_DYNAMIC_LINKER64): Define.
4094 (REG_NAME): Don't undefine.
4095 (MD_UNWIND_SUPPORT): Undefine.
4096 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4097 (REG_NAME): Don't undefine.
4098 (MD_UNWIND_SUPPORT): Undefine.
4099 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4101 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4103 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4104 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4106 2011-04-11 Xinliang David Li <davidxl@google.com>
4108 * value-profile.c (check_ic_target): New function.
4109 (gimple_ic_transform): Sanity check indirect call target.
4110 * gimple-low.c (gimple_check_call_args): Interface change.
4111 (gimple_check_call_matching_types): New function.
4112 * tree-inline.c (tree_can_inline_p): Call new function.
4114 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4116 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4117 tree-pretty-print.h & realmpfr.h.
4119 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4122 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4123 (setup_allocno_and_important_classes): Ditto.
4125 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4127 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4128 GNU_USER_DYNAMIC_LINKER.
4129 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4130 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4131 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4132 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4133 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4134 GNU_USER_TARGET_OS_CPP_BUILTINS.
4135 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4136 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4137 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4138 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4139 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4140 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4141 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4142 GNU_USER_TARGET_OS_CPP_BUILTINS.
4143 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4144 GNU_USER_DYNAMIC_LINKER.
4145 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4146 GNU_USER_TARGET_OS_CPP_BUILTINS.
4147 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4148 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4149 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4150 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4151 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4152 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4153 GNU_USER_DYNAMIC_LINKER64): Remove.
4154 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4155 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4156 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4157 GNU_USER_DYNAMIC_LINKER.
4158 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4159 GNU_USER_TARGET_OS_CPP_BUILTINS.
4160 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4161 GNU_USER_TARGET_OS_CPP_BUILTINS.
4162 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4163 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4164 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4165 GNU_USER_TARGET_OS_CPP_BUILTINS.
4166 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4167 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4168 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4169 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4170 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4171 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4172 GNU_USER_DYNAMIC_LINKER.
4173 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4174 GNU_USER_TARGET_OS_CPP_BUILTINS.
4175 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4176 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4177 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4178 GNU_USER_DYNAMIC_LINKER.
4179 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4180 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4181 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4182 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4183 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4184 GNU_USER_DYNAMIC_LINKER.
4185 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4186 GNU_USER_DYNAMIC_LINKERN32.
4187 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4188 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4189 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4190 GNU_USER_DYNAMIC_LINKER32.
4191 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4192 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4193 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4194 GNU_USER_DYNAMIC_LINKER.
4195 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4196 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4197 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4198 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4199 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4200 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4201 GNU_USER_DYNAMIC_LINKER32.
4202 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4203 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4204 GNU_USER_DYNAMIC_LINKER.
4205 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4206 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4207 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4208 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4209 GNU_USER_DYNAMIC_LINKER64.
4210 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4211 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4212 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4213 GNU_USER_DYNAMIC_LINKER.
4214 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4215 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4216 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4217 GNU_USER_DYNAMIC_LINKER.
4218 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4219 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4220 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4221 GNU_USER_DYNAMIC_LINKER32.
4222 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4223 GNU_USER_DYNAMIC_LINKER64.
4224 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4225 GNU_USER_DYNAMIC_LINKER64.
4226 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4227 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4228 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4229 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4230 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4232 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4234 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4235 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4236 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4237 GNU_USER_DYNAMIC_LINKER.
4238 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4239 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4240 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4241 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4242 GNU_USER_DYNAMIC_LINKER64.
4243 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4244 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4245 GNU_USER_LINK_EMULATION.
4246 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4247 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4248 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4249 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4250 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4251 CPP_SPEC, CC1_SPEC): Remove.
4252 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4253 (GNU_USER_DYNAMIC_LINKER): Define.
4254 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4255 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4256 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4257 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4258 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4259 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4260 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4261 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4262 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4263 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4264 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4265 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4266 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4267 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4268 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4269 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4270 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4271 GNU_USER_DYNAMIC_LINKER.
4272 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4273 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4274 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4275 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4276 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4277 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4278 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4279 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4280 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4281 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4283 2011-04-11 Kai Tietz <ktietz@redhat.com>
4287 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4288 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4290 (ix86_is_msabi_thiscall): Removed.
4291 (ix86_is_type_thiscall): Likewise.
4292 (ix86_get_callcvt): New function.
4293 (ix86_comp_type_attributes): Simplify check.
4294 (ix86_function_regparm): Use ix86_get_callcvt for calling
4295 convention attribute checks.
4296 (ix86_return_pops_args): Likewise.
4297 (ix86_static_chain): Likewise.
4298 (x86_this_parameter): Likewise.
4299 (x86_output_mi_thunk): Likewise.
4300 (ix86_function_type_abi): Optimize check for types without attributes.
4301 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4302 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4303 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4305 (IX86_BASE_CALLCVT): Helper macro.
4306 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4307 Use ix86_get_callcvt for calling convention attribute checks and avoid
4308 symbol-decoration for stdcall in TARGET_RTD case.
4309 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4311 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4314 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4316 * config/i386/sse.md (VI_128): New mode iterator.
4317 (VI12_128): Rename from SSEMODE12.
4318 (VI14_128): Rename from SSEMODE14.
4319 (VI124_128): New mode iterator.
4320 (VI24_128): Rename from SSEMODE248.
4321 (VI248_128): Rename from SSEMODE248.
4322 (SSEMODE124C8): Remove.
4323 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4324 (*sse2_<plusminus_insn><mode>3): Merge with
4325 *avx_<plusminus_insn><mode>3.
4326 (*mulv8hi3): Merge with *avx_mulv8hi3.
4327 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4328 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4329 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4330 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4331 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4332 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4333 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4334 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4335 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4336 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4337 (*<smaxmin:code>v8hi3): Ditto.
4338 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4339 (*<smaxmin:code>v16qi3): Ditto.
4340 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4341 (*sse2_eq<mode>3): Ditto.
4342 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4343 (*sse2_gt<mode>3): Ditto.
4344 (vcondv2di): Split out of vcond<mode>.
4345 (vconduv2di): Split out of vcondu<mode>.
4347 2011-04-11 Richard Guenther <rguenther@suse.de>
4349 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4350 before calling tree_low_cst.
4352 2011-04-11 Richard Guenther <rguenther@suse.de>
4354 * stor-layout.c (layout_type): Compute all array index size operations
4355 in the original type.
4356 (initialize_sizetypes): Add comment.
4357 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4359 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4361 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4363 2011-04-11 Martin Jambor <mjambor@suse.cz>
4365 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4366 of cgraph_node, handle NULL return value.
4367 (cgraph_global_info): Likewise.
4368 (cgraph_rtl_info): Likewise.
4369 * tree-inline.c (estimate_num_insns): Likewise.
4370 * gimplify.c (unshare_body): Likewise.
4371 (unvisit_body): Likewise.
4372 (gimplify_body): Likewise.
4373 * predict.c (optimize_function_for_size_p): Likewise.
4374 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4375 (call_may_clobber_ref_p_1): Likewise.
4376 * varasm.c (function_section_1): Likewise.
4377 (assemble_start_function): Likewise.
4379 2011-04-11 Martin Jambor <mjambor@suse.cz>
4381 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4383 * final.c (rest_of_clean_state): Likewise.
4384 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4385 * passes.c (pass_init_dump_file): Likewise.
4386 (execute_all_ipa_transforms): Likewise.
4387 (function_called_by_processed_nodes_p): Likewise.
4388 * predict.c (maybe_hot_frequency_p): Likewise.
4389 (probably_never_executed_bb_p): Likewise.
4390 (compute_function_frequency): Likewise.
4391 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4392 (unnest_nesting_tree_1): Likewise.
4393 (lower_nested_functions): Likewise.
4394 * tree-optimize.c (execute_fixup_cfg): Likewise.
4395 (tree_rest_of_compilation): Likewise.
4396 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4397 * tree-sra.c (ipa_early_sra): Likewise.
4398 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4399 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4400 * ipa.c (record_cdtor_fn): Likewise.
4401 * ipa-inline.c (cgraph_early_inlining): Likewise.
4402 (compute_inline_parameters_for_current): Likewise.
4403 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4404 * ipa-pure-const.c (local_pure_const): Likewise.
4405 * ipa-split.c (split_function): Likewise.
4406 (execute_split_functions): Likewise.
4407 * cgraphbuild.c (build_cgraph_edges): Likewise.
4408 (rebuild_cgraph_edges): Likewise.
4409 (cgraph_rebuild_references): Likewise.
4410 (remove_cgraph_callee_edges): Likewise.
4411 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4412 (verify_cgraph_node): Likewise.
4413 (cgraph_analyze_functions): Likewise.
4414 (cgraph_preserve_function_body_p): Likewise.
4415 (save_inline_function_body): Likewise.
4416 (save_inline_function_body): Likewise.
4417 * tree-inline.c (copy_bb): Likewise.
4418 (optimize_inline_calls): Likewise.
4420 2011-04-11 Martin Jambor <mjambor@suse.cz>
4422 PR tree-optimization/48195
4423 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4424 ipa_check_create_edge_args.
4425 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4426 ipa_check_create_edge_args.
4427 * ipa-inline.c (inline_generate_summary): Do not call
4428 ipa_check_create_node_params and ipa_check_create_edge_args.
4429 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4430 ipa_check_create_edge_args.
4432 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4434 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4436 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4437 * function.c (record_hard_reg_sets): Likewise.
4438 * ira.c (compute_regs_asm_clobbered): Likewise.
4439 * sched-deps.c (sched_analyze_1): Likewise.
4440 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4442 2011-04-09 Xinliang David Li <davidxl@google.com>
4444 PR tree-optimization/PR48484
4445 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4446 has_valid_pred lazily
4448 2011-04-09 Duncan Sands <baldrick@free.fr>
4450 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4452 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4454 * combine.c (combine_validate_cost): Adjust comments. Set registered
4455 cost of I0 to zero at the end, if any.
4457 2011-04-08 Xinliang David Li <davidxl@google.com>
4459 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4460 to insane profile data.
4462 2011-04-08 Xinliang David Li <davidxl@google.com>
4464 * ipa-cp.c (ipcp_update_profiling): Correct
4465 negative scale factor due to insane profile data.
4467 2011-04-08 Xinliang David Li <davidxl@google.com>
4469 * final.c (dump_basic_block_info): New function.
4470 (final): Dump basic block.
4471 (final_scan_insn): Remove old dump.
4473 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4476 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4479 2011-04-08 Michael Matz <matz@suse.de>
4482 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4484 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4485 * rtl.h (rebuild_jump_labels_chain): Declare.
4486 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4487 insns inserted on edges.
4489 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4491 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4492 * config/arm/arm-arches.def: New.
4493 * config/arm/arm-opts.h: New.
4494 * config/arm/genopt.sh: New.
4495 * config/arm/arm-tables.opt: New (generated).
4496 * config/arm/arm.c (arm_handle_option, arm_target_help,
4497 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4498 (all_architectures): Get most table contents from arm-arches.def.
4499 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4500 arm_selected_tune here.
4501 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4502 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4503 (march=, mcpu=, mtune=): Use Enum and Var.
4504 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4505 (arm.o): Update dependencies.
4507 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4509 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4511 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4512 (write_typed_alloc_defns): Likewise.
4513 (main): Calls write_typed_alloc_defns with output_header.
4515 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4518 * ira-color.c (setup_profitable_hard_regs): Add comments.
4519 Don't take prohibited hard regs into account.
4520 (setup_conflict_profitable_regs): Rename to
4521 get_conflict_profitable_regs.
4522 (check_hard_reg_p): Check prohibited hard regs.
4524 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4526 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4527 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4528 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4530 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4533 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4534 move from floating point to shift amount register.
4535 (emit_move_sequence): Remove secondary reload support for floating
4536 point to shift amount amount register copies.
4537 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4538 amount register copies.
4539 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4540 register, return false if mode isn't a scalar integer mode.
4541 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4543 2011-04-08 Richard Guenther <rguenther@suse.de>
4545 * gimple.c (gimple_call_flags): Remove kludge.
4547 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4549 * sel-sched.c (sel_region_init): Move call to
4550 sel_setup_region_sched_flags after setup_current_loop_nest.
4552 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4554 PR rtl-optimization/48272
4555 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4556 init_insn_reg_pressure_info. Adjust a caller.
4557 * sched-int.h (init_insn_reg_pressure_info): Declare.
4558 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4559 when sched-pressure is enabled.
4561 2011-04-08 Richard Guenther <rguenther@suse.de>
4563 * gimple.c (gimple_set_modified): Do not queue calls to
4564 MODIFIED_NORETURN_CALLS here ...
4565 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4567 2011-04-08 Richard Guenther <rguenther@suse.de>
4570 * toplev.c (lang_dependent_init): Do not open asm_out_file
4571 in WPA mode, nor perform debug machinery initialization.
4572 (finalize): Do not unlink asm_out_file in WPA mode.
4574 2011-04-08 Richard Guenther <rguenther@suse.de>
4576 * gimple.h (gimple_call_fntype): New function.
4577 (gimple_call_return_type): Use it.
4578 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4579 * gimple-low.c (gimple_check_call_args): Likewise.
4580 * gimple.c (gimple_call_flags): Likewise.
4581 (gimple_call_arg_flags): Likewise.
4582 (gimple_call_return_flags): Likewise.
4583 * tree-cfg.c (verify_gimple_call): Likewise.
4584 (do_warn_unused_result): Likewise.
4585 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4586 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4588 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4590 PR rtl-optimization/48235
4591 * sel-sched.c (code_motion_process_successors): Recompute the last
4592 insn in basic block if control flow changed.
4593 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4594 Update condition for ilist_remove.
4596 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4598 PR rtl-optimization/48302
4599 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4600 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4601 it to record added preheader blocks.
4602 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4603 on to sel_add_loop_preheaders.
4604 (sel_region_init): Move call to setup_current_loop_nest after
4607 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4610 * cfgloop.h (loop_has_exit_edges): New helper.
4611 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4613 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4614 that have no exit edges.
4616 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4618 PR rtl-optimization/48442
4619 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4620 all callers. Adjust assert.
4622 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4624 PR tree-optimization/48377
4625 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4626 is_packed to true even for types with smaller TYPE_ALIGN than
4629 2011-04-08 Richard Guenther <rguenther@suse.de>
4632 * doc/tm.texi: Re-generate.
4634 2011-04-08 Wei Guozhi <carrot@google.com>
4637 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4638 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4639 * config/arm/arm.md (*push_multi): Change the length computation to
4642 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4644 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4645 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4646 * doc/tm.texi: Regenerate.
4647 * system.h (ASM_OUTPUT_BSS): Poison.
4648 * varasm.c (asm_output_bss): Remove function.
4649 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4651 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4652 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4653 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4654 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4656 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4658 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4660 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4662 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4664 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4667 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4669 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4670 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4671 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4673 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4674 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4675 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4676 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4677 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4678 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4679 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4680 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4681 options. Don't map other m68k options manually. Don't handle
4682 old-style options as canonical.
4683 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4684 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4686 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4688 * basic-block.h (force_nonfallthru): Move to...
4689 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4690 (force_nonfallthru): ...here.
4691 * cfghooks.c (force_nonfallthru): New function.
4692 * cfgrtl.c (force_nonfallthru): Rename into...
4693 (rtl_force_nonfallthru): ...this.
4694 (commit_one_edge_insertion): Do not set AUX field.
4695 (commit_edge_insertions): Do not discover new basic blocks.
4696 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4697 (cfg_layout_rtl_cfg_hooks): Likewise.
4698 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4699 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4700 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4702 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4704 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4707 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4709 * config/i386/sse.md: Update copyright year.
4710 (avxcvtvecmode): Remove.
4711 (sse_movhlps): Merge with *avx_movhlps.
4712 (sse_movlhps): Merge with *avx_movlhps.
4713 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4714 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4715 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4716 (sse_loadhps): Merge with *avx_loadhps.
4717 (sse_storelps): Merge with *avx_storelps.
4718 (sse_loadlps): Merge with *avx_loadlps.
4719 (sse_movss): Merge with *avx_movss.
4720 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4721 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4722 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4723 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4724 (vec_set<mode>_0): Ditto.
4725 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4726 (sse4_1_insertps): Merge with *avx_insertps.
4727 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4728 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4729 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4730 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4731 (sse2_storehpd): Merge with *avx_storehpd.
4732 (sse2_loadhpd): Merge with *avx_loadhpd.
4733 (sse2_loadlpd): Merge with *avx_loadlpd.
4734 (sse2_movsd): Merge with *avx_movsd.
4735 (*vec_concatv2df): Merge with *vec_concatv2df.
4737 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4740 * combine.c (combine_instructions): Add last_combined_insn,
4741 update it if insn is after it, pass it to all try_combine calls.
4742 (try_combine): Add last_combined_insn parameter, pass it instead of
4743 i3 to propagate_for_debug.
4745 2011-04-07 Nick Clifton <nickc@redhat.com>
4747 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4748 to handle MDR <-> data register transfers.
4749 (movhi_internal): Likewise.
4751 2011-04-07 Alan Modra <amodra@gmail.com>
4753 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4754 previous stack info.
4756 2011-04-07 Tom de Vries <tom@codesourcery.com>
4759 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4760 flow_find_cross_jump. Swap variables to implement backward replacement.
4761 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4763 2011-04-07 Tom de Vries <tom@codesourcery.com>
4766 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4767 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4769 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4770 src1 or src2. Redirect edges to the last basic block. Update
4771 frequency and count on multiple basic blocks in case of fallthru.
4773 2011-04-07 Tom de Vries <tom@codesourcery.com>
4776 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4778 (old_insns_match_p): Change return type. Replace return false/true
4779 with return dir_none/dir_both. Use can_replace_by.
4780 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4781 direction from dir_p. Register replacement direction in dir, last_dir
4782 and afterlast_dir. Handle new return type of old_insns_match_p using
4783 merge_dir. Return replacement direction in dir_p.
4784 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4785 return type of old_insns_match_p.
4786 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4787 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4788 flow_find_cross_jump.
4789 * basic-block.h (enum replace_direction): New type.
4790 (flow_find_cross_jump): Add parameter to declaration.
4792 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4794 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4795 (AVXMODEDCVTPS2DQ): Ditto.
4796 (VEC_FLOAT_MODE): Ditto.
4797 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4798 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4799 (<any_logic:code><mode>3): Use VF mode iterator.
4800 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4801 Use VF mode iterator.
4802 (copysign<mode>3): Use VF mode iterator.
4803 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4804 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4805 (*<any_logic:code><MODEF:mode>3): Merge with
4806 *avx_<any_logic:code><MODEF:mode>3.
4807 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4808 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4809 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4810 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4811 (sse2_cvtdq2ps): Use %v modifier.
4812 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4813 (avx_cvtps2dq<avxmodesuffix>): Remove.
4814 (sse2_cvtps2dq): Use %v modifier.
4815 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4816 (avx_cvttps2dq<avxmodesuffix>): Remove.
4817 (sse2_cvttps2dq): Use %v modifier.
4818 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4819 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4820 (sse2_cvtsd2siq): Fix insn template.
4821 (sse2_cvtsd2siq_2): Ditto.
4822 (sse2_cvttsd2siq): Ditto.
4823 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4824 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4826 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4828 * gcov-io.c: Use GCC Runtime Library Exception.
4830 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4833 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4834 as base_reg whatever register reg has been eliminated to, instead
4835 of hardcoding STACK_POINTER_REGNUM.
4837 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4839 * doc/tm.texi.in: Document C target hooks as separate from general
4841 * doc/tm.texi: Regenerate.
4842 * genhooks.c (struct hook_desc): Add docname field.
4843 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4845 (hook_array): Include c-target.def.
4846 (emit_documentation): Use docname field in output.
4847 (emit_init_macros): Take docname argument. Only emit definitions
4848 for hooks matching docname.
4849 (main): Expect additional arguments in all cases. Pass argument
4850 to emit_init_macros.
4851 * target.def: Move initial macro definitions and comments to
4852 target-hooks-macros.h.
4853 (gcc_targetcm): Move to c-family/c-target.def.
4854 * target.h (targetcm): Move declaration to c-family/c-target.h.
4855 * targhooks.c (default_handle_c_option): Move to
4857 * targhooks.h (default_handle_c_option): Move declaration to
4858 c-family/c-common.h.
4859 * target-hooks-macros.h: New file.
4860 * config.gcc (target_has_targetcm): Define and use to add to
4861 c_target_objs and cxx_target_objs.
4862 * config/default-c.c: New file.
4863 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4864 of target.h and target-def.h.
4865 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4866 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4867 darwin_check_cfstring_format_arg): Make static.
4868 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4869 TARGET_STRING_OBJECT_REF_TYPE_P,
4870 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4871 * config/darwin-protos.h (darwin_objc_construct_string,
4872 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4874 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4875 TARGET_STRING_OBJECT_REF_TYPE_P,
4876 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4877 * config/t-darwin (darwin-c.o): Update dependencies.
4878 * system.h (TARGET_HAS_TARGETCM): Poison.
4879 * Makefile.in (TARGET_H): Update.
4880 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4881 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4882 (default-c.o): New target.
4883 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4884 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4885 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4887 (build/genhooks.o): Update dependencies.
4889 2011-04-06 Richard Guenther <rguenther@suse.de>
4891 * ipa-inline.c (enum inlining_mode): Remove.
4892 (cgraph_flatten): Use some other token.
4893 (cgraph_edge_early_inlinable_p): New function, split out from ...
4894 (cgraph_perform_always_inlining): New function, split out from ...
4895 (cgraph_decide_inlining_incrementally): ... here.
4896 (cgraph_mark_inline_edge): Adjust.
4897 (cgraph_early_inlining): Re-structure.
4898 (pass_early_inline): Require SSA form.
4900 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4901 Julian Brown <julian@codesourcery.com>
4902 Mark Shinwell <shinwell@codesourcery.com>
4904 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4905 LO_REGS only for Thumb-1.
4906 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4907 be used in short instructions when optimising for size on Thumb-2.
4909 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4911 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4912 associated with user returns to be preserved.
4914 2011-04-06 Tristan Gingold <gingold@adacore.com>
4916 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4917 symbol_queue_size, DBXOUT_DECR_NESTING,
4918 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4919 if XCOFF_DEBUGGING_INFO.
4921 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4923 * config/i386/i386.md (attribute isa): New.
4924 (attribute enabled): New.
4925 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4926 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4927 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4928 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4929 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4930 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4931 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4932 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4934 * config/i386/sse.md (VF): New mode iterator.
4938 (SSEMODEF4): Remove.
4939 (attribute sse): Handle V8SF and V4DF modes.
4940 (<absneg:code><mode>2): Use VF mode iterator.
4941 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4943 (<plusminus_insn><mode>3): Use VF mode iterator.
4944 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4945 Use VF mode iterator.
4946 (<sse>_vm<plusminus_insn><mode>3): Merge with
4947 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4948 (mul<mode>3): Use VF mode iterator.
4949 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4950 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4952 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4953 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4954 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4955 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4957 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4958 Use VF1 mode iterator.
4959 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4960 (sqrt<VF2:mode>2): New expander.
4961 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4962 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4963 and sqrtv2df2. Use VF mode iterator.
4964 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4966 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4967 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4968 Use VF1 mode iterator.
4969 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4970 (<smaxmin:code><mode>3): Use VF mode iterator.
4971 (*<smaxmin:code><mode>3_finite): Merge with
4972 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4973 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4974 (<sse>_vm<smaxmin:code><mode>2): Merge with
4975 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4976 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4978 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4980 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4981 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4982 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4983 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4984 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4986 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4987 Use VF_128 mode iterator.
4988 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4990 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4991 VF_128 mode iterator.
4992 (vcond<mode>): Use VF mode iterator.
4993 * config/i386/predicates.md (sse_comparison_operator): Merge with
4994 avx_comparison_float_operator. Do not declare as special_predicate.
4995 * config/i386/i386.c (struct builtin_description): Update for renamed
4997 (ix86_expand_args_builtin): Ditto.
4998 (ix86_expand_sse_compare_mask): Ditto.
5000 2011-04-06 Richard Guenther <rguenther@suse.de>
5002 * tree-inline.c (estimate_num_insns): For calls simply account
5003 for all passed arguments and a used return value.
5005 2011-04-06 Richard Guenther <rguenther@suse.de>
5007 PR tree-optimization/47663
5008 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5009 call_stmt_time fields.
5010 (cgraph_edge_inlinable_p): Declare.
5011 (cgraph_edge_recursive_p): New inline function.
5012 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5013 (cgraph_clone_edge): Copy it.
5014 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5015 Account for call stmt time.
5016 (cgraph_estimate_time_after_inlining): Take edge argument.
5017 (cgraph_estimate_edge_growth): Account call stmt size.
5018 (cgraph_estimate_size_after_inlining): Take edge argument.
5019 (cgraph_mark_inline_edge): Adjust.
5020 (cgraph_check_inline_limits): Likewise.
5021 (cgraph_recursive_inlining_p): Remove.
5022 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5023 (cgraph_decide_recursive_inlining): Take edge argument and
5025 (cgraph_decide_inlining_of_small_functions): Do not avoid
5026 diags for recursive inlining here.
5027 (cgraph_flatten): Adjust.
5028 (cgraph_decide_inlining_incrementally): Likewise.
5029 (estimate_function_body_sizes): Remove call cost handling.
5030 (compute_inline_parameters): Initialize caller edge call costs.
5031 (cgraph_estimate_edge_growth): New function.
5032 (cgraph_estimate_growth): Use it.
5033 (cgraph_edge_badness): Likewise.
5034 (cgraph_check_inline_limits): Take an edge argument.
5035 (cgraph_decide_inlining_of_small_functions): Adjust.
5036 (cgraph_decide_inlining): Likewise.
5037 * tree-inline.c (estimate_num_insns): Only account for call
5038 return value if it is used.
5039 (expand_call_inline): Avoid diagnostics on recursive inline
5041 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5042 (input_edge): Input edge call costs.
5044 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5046 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5048 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5050 * doc/invoke.texi (Spec Files): Fix typo.
5052 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5054 * profile.c (branch_prob): Move declaration of local variable. Remove
5055 obsolete ??? comment. Expand the location explicitly instead of using
5056 the LOCATION_FILE and LOCATION_LINE macros.
5058 2011-04-06 Wei Guozhi <carrot@google.com>
5061 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5062 (arm_cond_branch): Likewise.
5063 (arm_cond_branch_reversed): Likewise.
5064 (arm_jump): Likewise.
5065 (push_multi): Likewise.
5066 * config/arm/constraints.md (Py): New constraint.
5068 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5071 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5073 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5074 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5075 #ifdef DBX_DEBUGGING_INFO.
5077 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5080 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5081 if old and new states differ.
5083 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5085 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5086 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5087 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5088 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5089 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5091 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5092 ColdFire options to -mcpu= options.
5094 2011-04-05 Jeff Law <law@redhat.com>
5096 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5097 check if BB is a successor of LOOP->header and return
5098 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5100 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5102 * cprop.c (struct reg_use): Remove.
5103 (reg_use_table): Make an array of RTX.
5104 (find_used_regs, constprop_register, local_cprop_pass,
5105 bypass_block): Simplify users of reg_use_table.
5106 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5107 on one of the uses found by find_used_regs.
5109 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5112 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5115 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5117 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5119 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5121 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5124 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5126 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5128 * combine.c: Include obstack.h.
5129 (struct insn_link): Define.
5130 (uid_log_links): Adjust type.
5131 (FOR_EACH_LOG_LINK): New macro.
5132 (insn_link_obstack): Declare.
5133 (alloc_insn_link): Define.
5134 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5135 type of link variables.
5136 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5137 (try_combine, record_promoted_values, distribute_notes): Likewise.
5138 (distribute_links): Likewise. Tweak prototype.
5139 (clear_log_links): Delete.
5140 (adjust_for_new_dest): Call alloc_insn_link.
5141 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5143 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5145 * gcse.c (modify_mem_list): Convert to an array of VECs.
5146 (canon_modify_mem_list, compute_transp): Tweak formatting.
5147 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5148 (load_killed_in_block_p): Likewise.
5149 (record_last_mem_set_info): Likewise.
5150 (clear_modify_mem_tables): Likewise.
5152 2011-04-05 Tom de Vries <tom@codesourcery.com>
5155 * function.c (emit_use_return_register_into_block): Only define if
5158 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5160 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5162 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5164 * config/rx/rx-opts.h: New.
5165 * config/rx/rx.c (rx_cpu_type): Remove.
5166 (rx_handle_option): Don't assert that global structures are in
5167 use. Access variables via opts pointer. Defer most handling of
5168 OPT_mint_register_. Use error_at.
5169 (rx_option_override): Handle deferred OPT_mint_register_ here.
5170 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5171 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5172 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5173 (rx_cpu_types): New Enum and EnumValue entries.
5174 (mint-register=): Use Defer and use Var accordingly.
5176 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5178 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5179 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5180 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5182 (debug_free_queue, debug_nesting, symbol_queue_index):
5184 * dbxout.c: ...to here. Make static.
5186 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5188 * gcse.c (modify_pair): Define. Define a VEC of it.
5189 (canon_modify_mem_list): Convert to an array of VECs.
5190 (free_insn_expr_list_list): Delete.
5191 (clear_modify_mem_tables): Call VEC_free instead.
5192 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5193 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5194 (canon_list_insert, compute_transp): Likewise.
5196 2011-04-05 Tom de Vries <tom@codesourcery.com>
5199 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5202 2011-04-05 Tom de Vries <tom@codesourcery.com>
5205 * function.c (emit_use_return_register_into_block): New function.
5206 (thread_prologue_and_epilogue_insns): Use
5207 emit_use_return_register_into_block.
5209 2011-04-05 Tom de Vries <tom@codesourcery.com>
5212 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5215 2011-04-05 Tom de Vries <tom@codesourcery.com>
5217 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5219 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5221 * config/arm/arm.md (define_constants for unspec): Replace with
5223 (define_constants for unspecv): Replace with define_c_enum.
5224 * config/arm/neon.md (define_constants for unspec): Replace with
5227 2011-04-04 Richard Henderson <rth@redhat.com>
5230 * dwarf2out.c (output_line_info): Always emit line info from
5231 at least one section.
5232 (dwarf2out_init): Create text_section_line_info here ...
5233 (set_cur_line_info_table): ... not here.
5235 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5238 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5241 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5243 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5245 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5246 (expr_equiv_p): Remove.
5247 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5248 (hash_scan_set): Update call to insert_set_in_table.
5249 (dump_hash_table): Dump <dest, src> pair.
5250 (lookup_set): Simplify. Lookup <dest, src> pair.
5251 (compute_transp): Remove, fold heavily simplified code into...
5252 (compute_local_properties): ...here. Expect COMP and TRANSP
5254 (find_avail_set): Take set directly from struct expr.
5255 (find_bypass-set): Likewise.
5256 (bypass_block): Likewise.
5257 (cprop_insn): Likewise. Remove redundant INSN_P test.
5259 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5260 checks on form of COND from find_implicit_sets to here.
5261 (find_implicit_sets): Cleanup control flow. Split critical edges
5262 if it exposes implicit sets. Allocate/resize implicit_sets as
5264 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5265 changed something. Run df_analyze after find_implicit_sets if any
5266 edges were split. Do not allocate implicit_sets here.
5268 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5269 (gcse_obstack): Renamed to cprop_obstack.
5270 (GNEW, GNEWVEC, GNEWVAR): Remove.
5272 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5273 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5274 (gcse_alloc): Likewise, and rename to cprop_alloc.
5275 (alloc_gcse_men, free_gcse_mem): Remove.
5276 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5277 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5278 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5280 * cprop.c (oprs_not_set_p): Remove.
5281 (mark_set, mark_clobber): Remove.
5282 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5283 (reg_not_set_p): New function.
5284 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5285 (cprop_insn): Likewise.
5286 (cprop_jump): Use FOR_EACH_EDGE.
5288 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5291 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5292 (rank_for_schedule): Use scheduled_insns vector instead of
5293 last_scheduled_insn.
5294 (ok_for_early_queue_removal): Likewise.
5295 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5297 (choose_ready): Likewise.
5298 (commit_schedule): Use VEC_iterate.
5299 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5300 a dbg_cnt, use it and ensure the first insn is in the ready list.
5301 (haifa_sched_init): Allocate scheduled_insns.
5302 (sched_extend_ready_list): Don't allocate it; reserve space.
5303 (haifa_sched_finish): Free it.
5305 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5307 * optc-gen.awk: Always remove type from Variable entry before
5308 recording in var_seen.
5310 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5312 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5313 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5314 call to tidy_fallthru_edges.
5316 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5318 * doc/options.texi (ToLower): Document.
5319 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5320 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5321 * opts.h (cl_option): Add cl_tolower field.
5322 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5323 arguments with lowercase strings.
5324 * config/rx/rx.opt (mcpu=): Add ToLower.
5325 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5328 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5330 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5332 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5334 * config/vax/vax.c: Include reload.h.
5336 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5338 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5339 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5340 (sparc_preferred_reload_class): New function.
5342 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5345 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5346 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5348 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5350 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5351 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5353 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5355 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5356 (ASM_OUTPUT_ALIGNED_BSS): Define.
5358 2011-04-03 Michael Matz <matz@suse.de>
5360 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5361 and next_slot members.
5362 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5363 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5364 (lto_streamer_cache_append): Declare.
5365 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5366 unsigned index, remove offset parameter, ensure that we append
5367 or update existing entries.
5368 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5369 parameter, update next_slot for append.
5370 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5372 (lto_streamer_cache_insert_at): Likewise.
5373 (lto_streamer_cache_append): New function.
5374 (lto_streamer_cache_lookup): Use unsigned index.
5375 (lto_streamer_cache_get): Likewise.
5376 (lto_record_common_node): Don't test tree_node_can_be_shared.
5377 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5378 (lto_streamer_cache_delete): Don't free offsets member.
5379 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5380 (lto_output_string_with_length): Use lto_output_data_stream.
5381 (lto_output_tree_header): Remove ix parameter, don't write it.
5382 (lto_output_builtin_tree): Likewise.
5383 (lto_write_tree): Adjust callers to above, don't track and write
5384 offset, write unsigned index.
5385 (output_unreferenced_globals): Don't emit all global vars.
5386 (write_global_references): Use unsigned indices.
5387 (lto_output_decl_state_refs): Likewise.
5388 (write_symbol): Likewise.
5389 * lto-streamer-in.c (lto_input_chain): Move earlier.
5390 (input_function): Use unsigned index.
5391 (input_alias_pairs): Don't read and then ignore all global vars.
5392 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5393 don't pass it back, use lto_streamer_cache_append.
5394 (lto_register_var_decl_in_symtab): Use unsigned index.
5395 (lto_register_function_decl_in_symtab): Likewise.
5396 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5398 (lto_get_builtin_tree): Don't read index, use
5399 lto_streamer_cache_append.
5400 (lto_read_tree): Adjust call to lto_materialize_tree.
5402 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5403 don't use function calls in arguments to MIN.
5405 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5408 * gimple.c (gimple_type_leader_entry): Mark deletable.
5410 2011-04-03 Alan Modra <amodra@gmail.com>
5412 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5414 2011-04-03 Michael Matz <matz@suse.de>
5416 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5418 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5420 2011-04-03 Michael Matz <matz@suse.de>
5422 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5423 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5424 without function context.
5425 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5426 current_function_decl and cfun.
5428 2011-04-03 Michael Matz <matz@suse.de>
5430 * tree.c (decl_init_priority_insert): Don't create entry for
5432 (decl_fini_priority_insert): Ditto.
5433 (fields_compatible_p, find_compatible_field): Remove.
5434 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5435 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5437 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5439 * combine.c (try_combine): Remove useless local variable.
5441 2011-04-03 Richard Guenther <rguenther@suse.de>
5442 Ira Rosen <ira.rosen@linaro.org>
5444 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5445 non-variable offsets and compare the remaining bases of the two
5446 accesses instead of looking for exact same data-ref.
5448 2011-04-02 Kai Tietz <ktietz@redhat.com>
5451 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5453 * i386.c (ix86_is_msabi_thiscall): New helper function.
5454 (ix86_is_type_thiscall): New helper function.
5455 (ix86_comp_type_attributes): Handle thiscall for method-functions
5457 (init_cumulative_args): Likewise.
5458 (find_drap_reg): Likewise.
5459 (ix86_static_chain): Likewise.
5460 (x86_this_parameter): Likewise.
5461 (x86_output_mi_thunk): Likewise.
5463 2011-04-01 Olivier Hainque <hainque@adacore.com>
5464 Nicolas Setton <setton@adacore.com>
5465 Eric Botcazou <ebotcazou@adacore.com>
5467 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5468 (add_gnat_descriptive_type_attribute): New function.
5469 (gen_array_type_die): Call it.
5470 (gen_enumeration_type_die): Likewise.
5471 (gen_struct_or_union_type_die): Likewise.
5472 (modified_type_die): Likewise.
5473 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5474 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5475 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5477 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5480 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5481 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5484 2011-03-17 Richard Guenther <rguenther@suse.de>
5487 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5488 origin for decls in other ltrans units.
5489 (input_varpool_node): Likewise.
5491 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5494 * expr.c (expand_assignment): Handle all possibilities
5495 if TO_RTX is CONCAT.
5496 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5497 (store_split_bit_field): If SUBREG_REG (op0) or
5498 op0 itself has smaller mode than word, return it
5499 for offset 0 and const0_rtx for out-of-bounds stores.
5500 If word is const0_rtx, skip it.
5502 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5504 * config/h8300/h8300.c (print_operand_address): Rename to...
5505 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5506 Call h8300_print_operand and h8300_print_operand_address instead of
5507 print_operand and print_operand_address. Declare.
5508 (print_operand): Renake to...
5509 (h8300_print_operand): ...this. Make static. Adjust comments.
5510 Call h8300_print_operand instead of print_operand. Declare.
5511 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5512 (h8300_register_move_cost): Likewise.
5513 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5514 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5515 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5516 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5517 * config/h8300/h8300-protos.h (print_operand): Delete.
5518 (print_operand_address): Delete.
5520 2011-04-01 Richard Henderson <rth@redhat.com>
5523 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5524 in strict mode before dwarf4. Re-order tests to early out
5525 before switching sections.
5527 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5529 * config/h8300/constraints.md: New file.
5530 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5531 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5532 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5533 * config/h8300/predicates.md (bit_operand): Likewise.
5534 (incdec_operand): Use satisfies_constraint_M and
5535 satisfies_constraint_O. Don't use C code block.
5536 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5537 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5538 (compute_mov_length): Use satisfies_constraint_G.
5539 (fix_bit_operand): Use satisfies_constraint_U.
5540 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5541 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5542 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5543 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5544 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5545 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5546 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5547 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5548 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5549 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5550 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5551 (EXTRA_MEMORY_CONSTRAINT): Delete.
5553 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5554 Michael Meissner <meissner@linux.vnet.ibm.com>
5557 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5558 operands, as per the specifications.
5560 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5561 (vec_extract_evenv4sf): Ditto.
5562 (vec_extract_evenv8hi): Ditto.
5563 (vec_extract_evenv16qi): Ditto.
5564 (vec_extract_oddv4si): Ditto.
5566 2011-03-31 Mark Wielaard <mjw@redhat.com>
5568 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5569 high_pc attribute if the CU has no associated code. Only output
5570 DW_AT_entry_pc for CU if not generating strict dwarf and
5573 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5575 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5576 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5578 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5579 * final.c (final_start_function): Call the new function rather
5580 than using a NULL argument for dwarf2out_frame_debug.
5582 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5583 that contains the prologue.
5585 * haifa-sched.c (queue_insn): New arg REASON. All callers
5586 changed. Print it in debugging output.
5588 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5590 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5591 Split most of the code into...
5592 (begin_move_insn): ... here. New function.
5593 (ebb_sched_info): Add a pointer to it.
5594 * haifa-sched.c (scheduled_insns): New static variable.
5595 (sched_extend_ready_list): Allocate it.
5596 (schedule_block): Use it to record the order of scheduled insns.
5597 Perform RTL changes to move insns only after all scheduling
5598 decisions have been made.
5599 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5600 begin_move_insn field.
5601 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5602 * sched-int.h (struct haifa_sched_info): Remove second argument
5603 from begin_schedule_ready hook. Add new member begin_move_insn.
5604 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5605 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5607 * haifa-sched.c (prune_ready_list): New function, broken out of
5609 (schedule_block): Use it.
5611 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5613 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5615 2011-04-01 Kai Tietz <ktietz@redhat.com>
5617 * config.gcc (*-*-mingw*): Allow as option the
5618 posix threading model.
5619 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5620 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5622 (CPP_SPEC): Add pthread/no-pthread handling.
5623 (LIB_SPEC): Likewise.
5624 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5625 (LIB_SPEC): Likewise.
5626 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5627 flag to pass -pthread option for shared libgcc build.
5628 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5629 for shared libgcc build.
5630 * config/i386/t-mingw-pthread: New file.
5631 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5632 New define to enable use of library pthread by default.
5633 * config/i386/mingw.opt (pthread): New driver option.
5634 (no-pthread): New driver option.
5635 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5636 * config/i386/mingw-w64.opt: Likewise.
5638 2011-04-01 Gary Funck <gary@intrepid.com>
5640 * c-decl.c (grokdeclarator): Fix formatting.
5642 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5644 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5645 instead of n_operands.
5646 (set_storage_via_setmem): Likewise.
5647 * optabs.c (maybe_gen_insn): Likewise.
5648 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5649 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5650 (mips_expand_builtin_direct): Likewise.
5651 * config/spu/spu.c (expand_builtin_args): Likewise.
5653 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5655 * recog.h (insn_data_d): Add n_generator_args.
5656 * genoutput.c (data): Likewise.
5657 (output_insn_data): Print it.
5658 (max_opno, num_dups): Delete.
5659 (scan_operands): Just fill in "d->operand[...]".
5660 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5662 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5664 * gensupport.h (pattern_stats): New structure.
5665 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5666 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5667 (max_operand_1, max_operand_vec): Delete.
5668 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5670 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5672 * emit-rtl.c (emit_pattern_after_setloc): New function.
5673 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5674 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5675 (emit_pattern_after): New function.
5676 (emit_insn_after, emit_jump_insn_after): Call it.
5677 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5678 (emit_pattern_before_setloc): New function.
5679 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5680 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5682 (emit_pattern_before): New function.
5683 (emit_insn_before, emit_jump_insn_before): Call it.
5684 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5686 2011-03-31 Richard Henderson <rth@redhat.com>
5688 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5689 (dw_separate_line_info_entry): Remove.
5690 (enum dw_line_info_opcode): New.
5691 (dw_line_info_entry): Use it.
5692 (dw_line_info_table, dw_line_info_table_p): New.
5693 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5694 (line_info_table, line_info_label_num): Remove.
5695 (line_info_table_in_use): Remove.
5696 (separate_line_info_table): Remove.
5697 (separate_line_info_table_allocated): Remove.
5698 (separate_line_info_table_in_use): Remove.
5699 (LINE_INFO_TABLE_INCREMENT): Remove.
5700 (line_info_label_num): New.
5701 (cur_line_info_table): New.
5702 (text_section_line_info, cold_text_section_line_info): New.
5703 (separate_line_info): New.
5704 (SEPARATE_LINE_CODE_LABEL): Remove.
5705 (print_dwarf_line_table): Remove.
5706 (debug_dwarf): Don't dump it.
5707 (output_one_line_info_table): New.
5708 (output_line_info): Use it.
5709 (new_line_info_table): New.
5710 (set_cur_line_info_table): New.
5711 (dwarf2out_switch_text_section): Use it.
5712 (dwarf2out_begin_function): Likewise.
5713 (push_dw_line_info_entry): New.
5714 (dwarf2out_source_line): Rewrite for new line info tables.
5715 (dwarf2out_init): Remove dead initailizations.
5717 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5719 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5721 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5722 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5723 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5724 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5725 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5726 * opt-functions.awk (flag_init, switch_bit_fields): New.
5727 (switch_flags): Don't handle flags moved to bit-fields. Don't
5728 generate CL_MISSING_OK or CL_SAVE.
5729 * optc-gen.awk: Update to generate bit-field output as well as
5731 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5732 bit-field instead of CL_REJECT_DRIVER flag.
5733 * opts-common.c (generate_canonical_option,
5734 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5735 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5736 instead of CL_REJECT_NEGATIVE flag.
5737 * toplev.c (print_switch_values): Use cl_report bit-field instead
5740 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5742 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5743 a zero minimum index only if it is redundant.
5745 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5747 PR rtl-optimization/48381
5748 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5749 instead of ira_class_hard_reg_index for calculating conflicting
5752 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5754 * cprop.c: Clean up hash table building.
5755 (reg_avail_info): Remove.
5756 (oprs_available_p): Remove.
5757 (record_last_reg_set_info): Remove.
5758 (record_last_set_info): Remove.
5759 (reg_available_p): New function.
5760 (gcse_constant_p): Do not treat unfolded conditions as constants.
5761 (make_set_regs_unavailable): New function.
5762 (hash_scan_set): Simplify with new reg_available_p.
5763 (compute_hash_table_work): Traverse insns stream only once.
5764 Do not compute reg_avail_info. Traverse insns in reverse order.
5765 Record implicit sets after recording explicit sets from the block.
5767 2011-03-31 Michael Matz <matz@suse.de>
5769 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5771 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5773 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5774 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5775 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5776 (h8300_mode_dependent_address_p): New function.
5777 (h8300_get_index): Make static.
5779 2011-03-31 Jeff Law <law@redhat.com>
5781 * reload1.c (elimination_effects): Fix typo in recent change.
5783 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5784 typo potentially leading to null pointer dereference.
5786 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5787 (setup_save_areas): Corresponding changes to avoid useless
5790 * jump.c (reversed_comparison_code_parts): Avoid successive return
5791 statements when REVERSE_CONDITION is defined.
5793 * expr.c (expand_assignment): Avoid useless assignments.
5794 (expand_expr_real_1): Likewise.
5795 (expand_expr_real_2): Avoid useless statements.
5797 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5799 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5801 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5804 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5806 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5809 * doc/tm.texi.in (TARGET_VERSION): Remove.
5810 * doc/tm.texi: Regenerate.
5811 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5812 * collect2.c (main): Don't use TARGET_VERSION.
5813 * mips-tdump.c (main): Don't use TARGET_VERSION.
5814 * mips-tfile.c (main): Don't use TARGET_VERSION.
5815 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5816 * config/rs6000/vxworksae.h: Remove.
5817 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5818 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5819 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5820 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5821 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5822 * config/arm/arm.h (TARGET_VERSION): Remove.
5823 * config/arm/coff.h (TARGET_VERSION): Remove.
5824 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5825 * config/arm/elf.h (TARGET_VERSION): Remove.
5826 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5827 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5828 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5829 * config/arm/pe.h (TARGET_VERSION): Remove.
5830 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5831 * config/arm/semi.h (TARGET_VERSION): Remove.
5832 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5833 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5834 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5835 * config/avr/avr.h (TARGET_VERSION): Remove.
5836 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5837 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5838 * config/frv/frv.h (TARGET_VERSION): Remove.
5839 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5840 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5841 * config/i386/darwin.h (TARGET_VERSION): Remove.
5842 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5843 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5844 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5845 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5846 * config/i386/gnu.h (TARGET_VERSION): Remove.
5847 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5848 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5849 * config/i386/linux.h (TARGET_VERSION): Remove.
5850 * config/i386/linux64.h (TARGET_VERSION): Remove.
5851 * config/i386/lynx.h (TARGET_VERSION): Remove.
5852 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5853 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5854 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5855 * config/i386/netware.h (TARGET_VERSION): Remove.
5856 * config/i386/nto.h (TARGET_VERSION): Remove.
5857 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5858 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5859 * config/ia64/elf.h (TARGET_VERSION): Remove.
5860 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5861 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5862 * config/ia64/linux.h (TARGET_VERSION): Remove.
5863 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5864 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5865 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5866 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5867 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5868 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5869 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5870 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5871 * config/m68k/linux.h (TARGET_VERSION): Remove.
5872 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5873 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5874 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5875 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5876 * config/mep/mep.h (TARGET_VERSION): Remove.
5877 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5878 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5879 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5880 * config/mips/linux.h (TARGET_VERSION): Remove.
5881 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5882 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5883 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5884 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5885 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5886 * config/pa/pa.h (TARGET_VERSION): Remove.
5887 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5888 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5889 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5890 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5891 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5892 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5893 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5894 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5895 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5896 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5897 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5898 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5899 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5900 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5901 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5902 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5903 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5904 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5905 * config/s390/linux.h (TARGET_VERSION): Remove.
5906 * config/s390/s390.h (TARGET_VERSION): Remove.
5907 * config/s390/tpf.h (TARGET_VERSION): Remove.
5908 * config/score/score.h (TARGET_VERSION): Remove.
5909 * config/sh/linux.h (TARGET_VERSION): Remove.
5910 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5911 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5912 * config/sh/sh.h (TARGET_VERSION): Remove.
5913 * config/sh/sh64.h (TARGET_VERSION): Remove.
5914 * config/sh/superh.h (TARGET_VERSION): Remove.
5915 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5916 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5917 * config/sparc/linux.h (TARGET_VERSION): Remove.
5918 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5919 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5920 TARGET_NAME32, TARGET_NAME): Remove.
5921 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5922 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5923 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5924 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5925 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5926 * config/spu/spu.h (TARGET_VERSION): Remove.
5927 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5928 * config/v850/v850.h (TARGET_VERSION): Remove.
5929 * config/vax/linux.h (TARGET_VERSION): Remove.
5930 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5931 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5932 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5934 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5937 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5938 frame-related from frame-unrelated adjustments to the stack pointer.
5940 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5942 * common.opt (fdebug-types-section): Move earlier.
5943 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5945 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5947 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5950 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5952 * tree.h (CASE_CHAIN): Define.
5953 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5954 (gimple_redirect_edge_and_branch): Likewise.
5956 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5959 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5962 2011-03-30 Jeff Law <law@redhat.com>
5964 * PR bootstrap/48371
5965 * reload1.c (reload): Fix botch in last change.
5967 * reload.h (struct reload): Fix typo introduced in last change.
5969 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5971 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5972 Undocumented. Remove help text.
5973 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5976 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5978 * doc/options.texi (NegativeAlias): Document.
5979 (Alias): Mention NegativeAlias.
5980 * opt-functions.awk: Handle NegativeAlias.
5981 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5982 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5983 * opts.h (CL_NEGATIVE_ALIAS): Define.
5984 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5985 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5987 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5989 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5990 mno-spe and mno-isel instead of mspe=no and -misel=no.
5992 2011-03-29 Mark Wielaard <mjw@redhat.com>
5994 * common.opt (fdebug-types-section): New flag.
5995 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5996 * dwarf2out.c (use_debug_types): New define.
5997 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5998 (print_die): Guard output of type unit signatures using
6000 (build_abbrev_table): Replace assert of dwarf_version >= 4
6001 with assert on use_debug_types.
6002 (size_of_die): Likewise.
6003 (unmark_dies): Likewise.
6004 (value_format): Decide AT_ref_external form on use_debug_types.
6005 (output_die): Replace dwarf_version version check guard with
6006 use_debug_types where appropriate.
6007 (modified_type_die): Likewise.
6008 (gen_reference_type_die): Likewise.
6009 (dwarf2out_start_source_file): Likewise.
6010 (dwarf2out_end_source_file): Likewise.
6011 (prune_unused_types_walk_attribs): Likewise.
6012 (dwarf2out_finish): Likewise.
6014 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6016 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6018 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6020 PR rtl-optimization/48332
6021 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6022 mode of input operand N and modeN to its actual mode.
6024 2011-03-30 Jeff Law <law@redhat.com>
6026 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6027 define accessor macro.
6028 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6029 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6030 (reg_equiv_init): Likewise.
6031 (reg_equivs_size): New variable.
6032 (reg_equiv_init_size): Remove.
6033 (allocate_initial_values): Move prototype to here from....
6034 * integrate.h (allocate_initial_values): Remove prototype.
6035 * integrate.c: Include reload.h.
6036 (allocate_initial_values): Corresponding changes.
6037 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6038 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6039 (update_equiv_regs): Corresponding changes.
6040 (ira): Corresponding changes.
6041 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6042 (push_secondary_reload): Corresponding changes.
6043 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6044 (make_memloc, find_reloads_address): Corresponding changes.
6045 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6046 (find_reloads_address_1): Corresponding changes.
6047 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6048 (refers_to_regno_for_reload_p): Corresponding changes.
6049 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6050 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6051 * reload1.c: Include ggc.h.
6052 (grow_reg_equivs): New function.
6053 (replace_pseudos_in, reload): Corresponding changes.
6054 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6055 (eliminate_regs_1, elimination_effects): Corresponding changes.
6056 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6057 (delete_output_reload): Likewise.
6058 * caller-save.c (mark_referenced_regs): Corresponding changes.
6059 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6060 * frv/predicates.md (frv_load_operand): Corresponding changes.
6061 * microblaze/microblaze.c (double_memory_operand): Corresponding
6063 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6064 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6065 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6066 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6067 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6069 * pa/pa.c (emit_move_sequence): Corresponding changes.
6070 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6072 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6075 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6076 structure modes. Don't check neon_vector_mem_operand for
6077 vector or structure modes.
6079 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6080 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6083 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6084 operand 1 and reshuffle the operands to match.
6085 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6087 2011-03-30 Christian Schüler <cschueler@gmx.de>
6090 * config/c.opt (F): Added 'Driver' to -F option.
6093 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6095 * config/darwin.opt: Added '-arch' option.
6097 2011-03-30 Nick Clifton <nickc@redhat.com>
6099 * config/rx/rx.md: Add peepholes and patterns to combine
6100 extending loads and simple arithmetic instructions.
6101 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6102 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6103 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6104 modes to use pre-decrement and post-increment addressing.
6105 (rx_is_restricted_memory_address): Add range checking of REG+INT
6107 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6108 (rx_memory_move_cost): Adjust cost of stores.
6109 (rx_adjust_insn_length): New function.
6111 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6114 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6115 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6116 matching arg00/arg01 types.
6118 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6120 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6121 last_location to UNKNOWN_LOCATION.
6123 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6126 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6129 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6130 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6133 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6135 (sparc_cpu): Likewise.
6136 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6139 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6143 PR rtl-optimization/48345
6144 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6145 hard regs for given mode from profitable regs when doing secondary
6148 2011-03-29 Jeff Law <law@redhat.com>
6151 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6152 do_not_duplicate field.
6153 (lookup_redirection_data): Corresponding changes.
6154 (create_duplicates): Always create a template block.
6155 (redirect_edges): Remove code which reused the original block
6156 when it was going to become unreachable code.
6157 (thread_block): Don't set do_not_duplicate field.
6159 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6161 * lto-opts.c (register_user_option_p, lto_register_user_option):
6162 Make type argument unsigned.
6163 * lto-streamer.h (lto_register_user_option): Make type argument
6165 * opth-gen.awk: Make CL_* macros unsigned.
6166 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6167 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6168 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6169 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6170 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6171 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6172 (find_opt): Make lang_mask argument unsigned.
6174 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6176 PR rtl-optimization/48331
6177 PR rtl-optimization/48334
6178 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6179 for any used algorithm.
6181 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6183 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6186 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6188 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6189 (alpha_option_override): Don't set alpha_sr_alias_set.
6190 (emit_frame_store_1): Use gen_frame_mem rather than calling
6192 (alpha_expand_epilogue): Ditto.
6194 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6196 PR tree-optimization/48290
6197 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6198 vectorization, check that relevant phis in the basic block after
6199 the inner loop are really inner loop's exit phis.
6201 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6204 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6205 (cached_dw_loc_list_def): New structure.
6206 (cached_dw_loc_list): New typedef.
6207 (cached_dw_loc_list_table): New variable.
6208 (cached_dw_loc_list_table_hash): New function.
6209 (cached_dw_loc_list_table_eq): Likewise.
6210 (add_location_or_const_value_attribute): Take a bool cache_p.
6211 Cache the list when the parameter is true.
6212 (gen_formal_parameter_die): Update caller.
6213 (gen_variable_die): Likewise.
6214 (dwarf2out_finish): Likewise.
6215 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6216 while generating debug info for the decl.
6217 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6218 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6219 (resolve_addr): Cache the result of resolving a chain of
6222 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6224 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6225 conflict object hard regset nodes have intersecting hard reg sets.
6227 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6228 after regstat_init_n_sets_and_refs.
6230 * ira.c: Add more comments at the top.
6231 (setup_stack_reg_pressure_class, setup_pressure_classes):
6232 Add comments how we compute the register pressure classes.
6233 (setup_allocno_and_important_classes): Add more comments.
6234 (setup_class_translate_array, reorder_important_classes)
6235 (setup_reg_class_relations): Add comments.
6237 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6240 * ira-color.c: Add 2011 to the Copyright line.
6241 (assign_hard_reg): Add more comments.
6242 (improve_allocation): Ditto.
6244 * ira-costs.c: Add 2011 to the Copyright line.
6245 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6247 (setup_regno_cost_classes_by_mode): Ditto.
6249 Initial patches from ira-improv branch:
6251 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6253 * ira-build.c (ira_create_object): Remove initialization of
6254 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6255 (ira_create_allocno): Remove initialization of
6256 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6257 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6258 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6259 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6260 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6261 Initialize ALLOCNO_ADD_DATA.
6262 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6263 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6265 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6266 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6268 * ira.c (ira_reallocate): Remove.
6269 (setup_pressure_classes): Call
6270 ira_init_register_move_cost_if_necessary. Use
6271 ira_register_move_cost instead of ira_get_register_move_cost.
6272 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6273 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6275 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6276 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6277 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6278 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6279 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6280 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6282 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6283 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6284 (struct allocno_color_data): New.
6285 (allocno_color_data_t): New typedef.
6286 (allocno_color_data): New definition.
6287 (ALLOCNO_COLOR_DATA): New macro.
6288 (struct object_color_data): New.
6289 (object_color_data_t): New typedef.
6290 (object_color_data): New definition.
6291 (OBJECT_COLOR_DATA): New macro.
6292 (update_copy_costs, calculate_allocno_spill_cost): Call
6293 ira_init_register_move_cost_if_necessary. Use
6294 ira_register_move_cost instead of ira_get_register_move_cost.
6295 (move_spill_restore, update_curr_costs): Ditto.
6296 (allocno_spill_priority): Make it inline.
6297 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6298 (struct coalesce_data, coalesce_data_t): New.
6299 (allocno_coalesce_data): New definition.
6300 (ALLOCNO_COALESCE_DATA): New macro.
6301 (merge_allocnos, coalesced_allocno_conflict_p): Use
6302 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6303 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6304 (coalesce_allocnos): Ditto.
6305 (setup_coalesced_allocno_costs_and_nums): Ditto.
6306 (collect_spilled_coalesced_allocnos): Ditto.
6307 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6308 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6309 (coalesce_spill_slots): Ditto.
6310 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6311 free allocno_coalesce_data.
6313 * ira-conflicts.c: Fix formatting.
6314 (process_regs_for_copy): Call
6315 ira_init_register_move_cost_if_necessary. Use
6316 ira_register_move_cost instead of ira_get_register_move_cost.
6317 (build_object_conflicts): Optimize.
6319 * ira-costs.c (record_reg_classes): Optimize. Call
6320 ira_init_register_move_cost_if_necessary. Use
6321 ira_register_move_cost, ira_may_move_in_cost, and
6322 ira_may_move_out_cost instead of ira_get_register_move_cost and
6323 ira_get_may_move_cost.
6324 (record_address_regs): Ditto.
6325 (scan_one_insn): Optimize.
6326 (find_costs_and_classes): Optimize.
6327 (process_bb_node_for_hard_reg_moves): Call
6328 ira_init_register_move_cost_if_necessary. Use
6329 ira_register_move_cost instead of ira_get_register_move_cost.
6331 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6332 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6333 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6334 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6336 (ira_initiate_emit_data, ira_finish_emit_data)
6337 (create_new_allocno): New functions.
6338 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6339 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6340 Use ira_register_move_cost instead of ira_get_register_move_cost.
6342 * ira-int.h: Fix some comments.
6343 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6344 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6345 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6346 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6348 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6349 bitfield after mode. Make hard_regno a short int. Make
6350 hard_regno short. Remove first_coalesced_allocno and
6351 next_coalesced_allocno. Move mem_optimized_dest_p,
6352 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6353 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6354 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6355 temp, colorable_p. Add new member add_data.
6356 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6357 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6358 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6359 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6360 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6361 (ALLOCNO_ADD_DATA): New macro.
6362 (ira_emit_data_t): New typedef.
6363 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6364 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6365 from struct ira_allocno.
6366 (ALLOCNO_EMIT_DATA): New macro.
6367 (ira_allocno_emit_data, allocno_emit_reg): New.
6368 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6369 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6370 (OBJECT_ADD_DATA): New macro.
6371 (ira_reallocate): Remove.
6372 (ira_initiate_emit_data, ira_finish_emit_data): New.
6373 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6374 (ira_init_register_move_cost_if_necessary): New.
6375 (ira_object_conflict_iter_next): Merge into
6376 ira_object_conflict_iter_cond.
6377 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6379 * ira-live.c (process_single_reg_class_operands): Call
6380 ira_init_register_move_cost_if_necessary. Use
6381 ira_register_move_cost instead of ira_get_register_move_cost.
6383 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6385 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6387 * ira-costs.c: Fix formatting.
6388 (cost_classes, cost_classes_num): Remove.
6389 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6390 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6391 (cost_classes_del, cost_classes_htab): New.
6392 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6393 (initiate_regno_cost_classes, setup_cost_classes): New.
6394 (setup_regno_cost_classes_by_aclass): New.
6395 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6396 (record_reg_classes): Use regno_cost_classes instead of
6397 cost_classes. Move checking opposite operand up.
6398 (record_address_regs): Use regno_cost_classes
6399 instead of cost_classes.
6400 (scan_one_insn): Ditto. Use always general register.
6401 (print_allocno_costs): Use regno_cost_classes instead of
6403 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6404 (find_costs_and_classes): Set up cost classes for each registers.
6405 Use also their mode for this. Use regno_cost_classes instead of
6407 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6409 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6410 (ira_costs, ira_set_pseudo_classes): Call
6411 initiate_regno_cost_classes and finish_regno_cost_classes.
6413 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6415 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6417 * target.def (ira_cover_classes): Remove.
6419 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6421 * doc/tm.texi.in: Ditto.
6423 * ira-conflicts.c: Remove mentioning cover classes from the file.
6424 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6425 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6427 * targhooks.c (default_ira_cover_classes): Remove.
6429 * targhooks.h (default_ira_cover_classes): Ditto.
6431 * haifa-sched.c: Remove mentioning cover classes from the file.
6432 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6433 ira_pressure_classes and ira_pressure_classes_num instead of
6434 ira_reg_class_cover_size and ira_reg_class_cover. Use
6435 sched_regno_pressure_class instead of sched_regno_cover_class.
6436 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6437 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6439 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6440 classes from the file.
6441 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6442 (struct object_hard_regs, struct object_hard_regs_node): New.
6443 (struct ira_object): New members profitable_hard_regs,
6444 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6445 (struct ira_allocno): Rename cover_class to aclass. Rename
6446 cover_class_cost and updated_cover_class_cost to class_cost and
6447 updated_class_cost. Remove splay_removed_p and
6448 left_conflict_size. Add new members colorable_p.
6449 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6450 (ALLOCNO_COLORABLE_P): New macro.
6451 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6452 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6453 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6454 (OBJECT_...): Rename parameter C to O.
6455 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6456 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6457 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6458 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6459 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6460 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6461 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6462 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6463 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6464 x_ira_reg_class_subunion.
6465 (ira_max_memory_move_cost, ira_max_register_move_cost)
6466 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6467 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6468 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6469 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6470 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6471 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6472 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6473 (ira_tune_allocno_costs_and_cover_classes): Rename to
6474 ira_tune_allocno_costs.
6475 (ira_debug_hard_regs_forest): New.
6476 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6477 (ira_object_conflict_iter_next): Fix comments.
6478 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6479 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6480 cover_class to aclass.
6481 (ira_allocate_and_accumulate_costs): Ditto.
6482 (ira_allocate_and_set_or_copy_costs): Ditto.
6484 * opts.c (decode_options): Remove ira_cover_class check.
6486 * ira-color.c: Remove mentioning cover classes from the file. Use
6487 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6488 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6489 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6490 (splay-tree.h): Remove include.
6491 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6492 before copy_freq_compare_func.
6493 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6494 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6496 (hard_regs_roots, hard_regs_node_vec): Ditto.
6497 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6498 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6499 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6500 (create_new_object_hard_regs_node): Ditto.
6501 (add_new_object_hard_regs_node_to_forest): Ditto.
6502 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6503 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6505 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6506 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6507 (remove_unused_object_hard_regs_nodes): Ditto.
6508 (enumerate_object_hard_regs_nodes): Ditto.
6509 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6510 (object_hard_regs_subnode_t): Ditto.
6511 (struct object_hard_regs_subnode): Ditto.
6512 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6513 (setup_object_hard_regs_subnode_index): Ditto.
6514 (get_object_hard_regs_subnodes_num): Ditto.
6515 (form_object_hard_regs_nodes_forest): Ditto.
6516 (finish_object_hard_regs_nodes_tree): Ditto.
6517 (finish_object_hard_regs_nodes_forest): Ditto.
6518 (allocnos_have_intersected_live_ranges_p): Rename to
6519 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6520 (pseudos_have_intersected_live_ranges_p): Rename to
6521 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6522 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6523 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6524 (update_copy_costs): Remove assert. Skip cost update if the hard
6525 reg does not belong the class.
6526 (assign_hard_reg): Process only profitable hard regs.
6527 (uncolorable_allocnos_num): Make it scalar.
6528 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6529 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6530 and ira_reg_class_max_nregs.
6531 (bucket_allocno_compare_func): Check frequency first.
6532 (sort_bucket): Add compare function as a parameter.
6533 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6534 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6535 (push_allocno_to_stack): Rewrite for checking new allocno
6537 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6538 (push_only_colorable): Pass new parameter to sort_bucket.
6539 (push_allocno_to_spill): Remove.
6540 (allocno_spill_priority_compare): Make it inline and rewrite.
6541 (splay_tree_allocate, splay_tree_free): Remove.
6542 (allocno_spill_sort_compare): New function.
6543 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6544 build and use splay tree. Choose first allocno in uncolorable
6545 allocno bucket to spill. Remove setting spill cost.
6546 (all_conflicting_hard_regs): Remove.
6547 (setup_allocno_available_regs_num): Check only profitable hard
6548 regs. Print info about hard regs nodes.
6549 (setup_allocno_left_conflicts_size): Remove.
6550 (put_allocno_into_bucket): Don't call
6551 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6552 (improve_allocation): New.
6553 (color_allocnos): Call setup_profitable_hard_regs,
6554 form_object_hard_regs_nodes_forest, improve_allocation,
6555 finish_object_hard_regs_nodes_forest. Setup spill cost.
6556 (print_loop_title): Use pressure classes.
6557 (color_allocnso): Ditto.
6558 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6559 and allocnos_for_spilling.
6560 (ira_sort_regnos_for_alter_reg): Don't setup members
6561 {first,next}_coalesced_allocno.
6562 (color): Remove allocating and freeing removed_splay_allocno_vec.
6563 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6564 prohibited_class_mode_regs.
6566 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6568 (update_allocno_pressure_excess_length): Use pressure classes.
6569 (inc_register_pressure, dec_register_pressure): Check for pressure
6571 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6572 pressure class. Use ira_reg_class_nregs instead of
6573 ira_reg_class_max_nregs.
6574 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6575 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6576 (single_reg_class): Use ira_reg_class_nregs instead of
6577 ira_reg_class_max_nregs.
6578 (process_bb_node_lives): Use pressure classes.
6580 * ira-emit.c: Remove mentioning cover classes from the file. Use
6581 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6582 (change_loop): Use pressure classes.
6583 (modify_move_list): Call ira_set_allocno_class instead of
6584 ira_set_allocno_cover_class.
6586 * ira-build.c: Remove mentioning cover classes from the file. Use
6587 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6588 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6589 ALLOCNO_UPDATED_CLASS_COST instead of
6590 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6591 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6592 (ira_create_allocno): Remove initialization of
6593 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6594 ALLOCNO_COLORABLE_P.
6595 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6596 Update conflict regs for the objects.
6597 (create_cap_allocno): Remove assert. Don't propagate
6598 ALLOCNO_AVAILABLE_REGS_NUM.
6599 (ira_free_allocno_costs): New function.
6600 (finish_allocno): Change a part of code into call of
6601 ira_free_allocno_costs.
6602 (low_pressure_loop_node_p): Use pressure classes.
6603 (object_range_compare_func): Don't compare classes.
6604 (setup_min_max_conflict_allocno_ids): Ditto.
6606 * loop-invariant.c: Remove mentioning cover classes from the file.
6607 Use ira_pressure_classes and ira_pressure_classes_num instead of
6608 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6609 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6610 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6611 Use reg_allocno_class instead of reg_cover_class.
6612 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6613 STACK_REG_COVER_CLASS.
6614 (get_regno_cover_class): Rename to get_regno_pressure_class.
6615 (move_loop_invariants): Initialize and finalize regstat.
6617 * ira.c: Remove mentioning cover classes from the file. Add
6618 comments about coloring without cover classes. Use ALLOCNO_CLASS
6619 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6620 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6621 setup_class_subset_and_memory_move_costs.
6622 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6623 (setup_cover_and_important_classes): Rename to
6624 setup_allocno_and_important_classes.
6625 (setup_class_translate_array): New.
6626 (setup_class_translate): Call it for allocno and pressure classes.
6627 (cover_class_order): Rename to allocno_class_order.
6628 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6629 of ira_class_translate.
6630 (reorder_important_classes): Set up ira_important_class_nums.
6631 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6632 (print_class_cover): Rename to print_classes. Add parameter.
6633 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6634 Print pressure classes too.
6635 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6636 setup_reg_subclasses.
6637 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6638 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6639 (setup_prohibited_class_mode_regs): Use
6640 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6641 (clarify_prohibited_class_mode_regs): New function.
6642 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6643 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6644 (ira_init_once): Initialize them.
6645 (free_register_move_costs): Process them.
6646 (ira_init): Move calls of find_reg_classes and
6647 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6648 Call clarify_prohibited_class_mode_regs.
6649 (ira_no_alloc_reg): Remove.
6650 (too_high_register_pressure_p): Use pressure classes.
6652 * sched-deps.c: Remove mentioning cover classes from the file.
6653 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6654 ira_pressure_classes and ira_pressure_classes_num instead of
6655 ira_reg_class_cover_size and ira_reg_class_cover.
6656 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6657 sched_regno_pressure_class instead of sched_regno_cover_class.
6658 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6659 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6661 * ira.h: Add 2010 to Copyright.
6662 (ira_no_alloc_reg): Remove external.
6663 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6664 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6665 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6666 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6667 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6668 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6669 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6670 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6671 x_ira_no_alloc_regs.
6672 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6673 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6674 ira_allocno_classes_num and ira_allocno_classes.
6675 (ira_class_translate): Rename to ira_allocno_class_translate.
6676 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6677 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6678 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6679 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6680 (ira_no_alloc_regs): New.
6682 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6683 classes from the file. Use ALLOCNO_CLASS instead of
6684 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6685 ALLOCNO_COVER_CLASS_COST.
6686 (regno_cover_class): Rename to regno_aclass.
6687 (record_reg_classes): Use ira_reg_class_subunion instead of
6688 ira_reg_class_union.
6689 (record_address_regs): Check overflow.
6690 (scan_one_insn): Ditto.
6691 (print_allocno_costs): Print total mem cost fore regional allocation.
6692 (print_pseudo_costs): Use REG_N_REFS.
6693 (find_costs_and_classes): Use classes intersected with them on the
6694 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6695 ira_reg_class_union. Use ira_allocno_class_translate and
6696 regno_aclass instead of ira_class_translate and regno_cover_class.
6697 Modify code for finding regno_aclass. Setup preferred classes for
6699 (setup_allocno_cover_class_and_costs): Rename to
6700 setup_allocno_class_and_costs. Use regno_aclass instead of
6701 regno_cover_class. Use ira_set_allocno_class instead of
6702 ira_set_allocno_cover_class.
6703 (init_costs, finish_costs): Use regno_aclass instead of
6705 (ira_costs): Use setup_allocno_class_and_costs instead of
6706 setup_allocno_cover_class_and_costs.
6707 (ira_tune_allocno_costs_and_cover_classes): Rename to
6708 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6709 by processing objects. Use ira_reg_class_max_nregs instead of
6710 ira_reg_class_nregs.
6712 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6714 * sched-int.h: Remove mentioning cover classes from the file.
6715 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6717 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6718 classes from the file.
6719 (struct reg_pref): Rename coverclass into allocnoclass.
6720 (reg_cover_class): Rename to reg_allocno_class.
6722 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6724 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6726 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6728 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6730 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6732 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6734 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6736 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6738 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6740 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6742 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6743 (i386_ira_cover_classes): Ditto.
6745 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6747 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6749 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6751 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6753 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6755 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6757 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6758 (mips_ira_cover_classes): Ditto.
6760 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6762 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6764 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6766 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6768 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6770 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6771 (IRA_COVER_CLASSES_VSX): Ditto.
6773 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6774 (rs6000_ira_cover_classes): Ditto.
6776 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6778 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6780 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6782 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6784 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6786 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6788 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6790 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6792 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6794 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6796 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6799 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6800 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6801 dw_fde_unlikely_section_end_label, cold_in_std_section,
6802 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6803 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6805 (output_fde): Use dw_fde_second_{begin,end} if second is
6806 true, otherwise dw_fde_{begin,end}.
6807 (output_call_frame_info): Test dw_fde_second_begin != NULL
6808 instead of dw_fde_switched_sections.
6809 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6810 fields, initialize new fields. Initialize in_std_section
6811 unconditionally from the first partition.
6812 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6813 dw_fde_second_begin is non-NULL.
6814 (dwarf2out_switch_text_section): Stop initializing removed
6815 dw_fde_struct fields, initialize new fields, initialize
6816 also dw_fde_end here. Set dw_fde_switch_cfi even when
6817 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6818 (struct var_loc_list_def): Add last_before_switch field.
6819 (arange_table, arange_table_allocated, arange_table_in_use,
6820 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6821 (size_of_aranges): Count !in_std_section and !second_in_std_section
6822 hunks in fdes, instead of looking at arange_table_in_use.
6823 (output_aranges): Add aranges_length argument, don't call
6824 size_of_aranges here. Instead of using aranges_table*
6825 emit ranges for fdes when !in_std_section resp.
6826 !second_in_std_section.
6827 (dw_loc_list): Break ranges crossing section switch.
6828 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6829 use dw_fde_second_end instead of dw_fde_end as end of last range.
6830 (gen_subprogram_die): Don't call add_arange. Use
6831 dw_fde_{begin,end} for first partition and if switched
6832 section dw_fde_second_{begin,end} for the second.
6833 (var_location_switch_text_section_1,
6834 var_location_switch_text_section): New functions.
6835 (dwarf2out_begin_function): Initialize cold_text_section even
6836 when function_section () isn't text_section.
6837 (prune_unused_types): Don't walk arange_table.
6838 (dwarf2out_finish): Don't needlessly test
6839 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6840 If info_section_emitted, call size_of_aranges and if it indicates
6841 non-empty .debug_aranges, call output_aranges with the computed
6842 size. Stop using removed dw_fde_struct fields, use
6843 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6847 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6848 create ENTRY_VALUE if incoming or address of incoming's MEM
6850 * dwarf2out.c (mem_loc_descriptor): Don't emit
6851 DW_OP_GNU_entry_value of DW_OP_fbreg.
6852 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6853 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6854 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6855 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6857 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6858 is a REG_P or MEM_P with REG_P address, compute hash directly
6859 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6860 (preserve_only_constants): Don't clear VALUES forwaring
6861 ENTRY_VALUE to some other VALUE.
6863 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6865 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6868 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6870 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6871 block before expanding the statement.
6872 (expand_gimple_stmt_1): Likewise. Set them here...
6873 (expand_gimple_stmt): ...and not here. Tidy.
6874 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6877 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6879 * Makefile.in: New rule for cprop.o.
6880 * gcse.c: Move constant/copy propagation to cprop.c.
6881 (compute_local_properties): Only handle expression tables.
6882 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6883 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6884 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6885 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6886 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6887 compute_cprop_data, find_used_regs, try_replace_reg,
6888 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6889 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6890 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6891 find_bypass_set, reg_killed_on_edge, bypass_block,
6892 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6893 execute_rtl_cprop, pass_rtl_cprop): Move to...
6894 * cprop.c: ...here. New file, constant/copy propagation for RTL
6895 moved from gcse.c to here with minor cleanups in duplicated code.
6897 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6899 * config/i386/i386.c (flag_opts): Fix a typo in
6900 -mavx256-split-unaligned-store.
6902 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6904 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6905 LIBCALL_VALUE): Remove macros.
6906 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6907 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6908 (h8300_function_value, h8300_libcall_value,
6909 h8300_function_value_regno_p): New functions.
6911 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6913 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6915 2011-03-28 Jeff Law <law@redhat.com>
6917 * tree-ssa-threadupdate.c (redirect_edges): Call
6918 create_edge_and_update_destination_phis as needed.
6919 (create_edge_and_update_destination_phis): Accept new BB argument.
6920 All callers updated.
6921 (thread_block): Do not update the profile when threading around
6922 intermediate blocks.
6923 (thread_single_edge): Likewise.
6924 (determine_bb_domination_status): If BB is not a successor of the
6925 loop header, return NONDOMINATING.
6926 (register_jump_thread): Note when we register a jump thread around
6927 an intermediate block.
6928 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6929 (thread_across_edge): Use it.
6931 2011-03-28 Tristan Gingold <gingold@adacore.com>
6933 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6934 when for_return is 2.
6936 2011-03-28 Jeff Law <law@redhat.com>
6938 * var-tracking.c (canonicalize_values_mark): Delete unused
6940 (canonicalize_values_star, set_variable_part): Likewise.
6941 (clobber_variable_part, delete_variable_part): Likewise.
6943 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6945 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6947 2011-03-28 Martin Jambor <mjambor@suse.cz>
6949 * tree-inline.c (expand_call_inline): Do not check that destination
6951 (optimize_inline_calls): Assert that destination node is analyzed.
6952 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6953 not call tree_lowering_passes.
6954 * cgraph.h (cgraph_analyze_function): Declare.
6955 * cgraphunit.c (cgraph_analyze_function): Make public.
6957 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6959 * config/sparc/sparc-opts.h: New.
6960 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6961 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6962 (sparc_option_override): Store processor_type enumeration rather
6963 than string in cpu_default. Remove name and enumeration from
6964 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6965 without using sparc_select. Use target_flags_explicit instead of
6967 * config/sparc/sparc.h (enum processor_type): Move to
6969 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6970 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6971 HeaderInclude entry.
6972 (mcpu=, mtune=): Use Var and Enum.
6973 (sparc_processor_type): New Enum and EnumValue entries.
6975 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6976 Iain Sandoe <iains@gcc.gnu.org>
6979 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6981 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6983 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6984 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6985 Insert new statements at it in lieu of STMT.
6986 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6987 * tree-vect-stmts.c (vectorizable_store): Likewise.
6988 (vectorizable_load): Likewise.
6990 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
6992 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6997 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6999 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7000 unaligned 256bit load/store.
7001 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7002 (*avx_movdqu<avxmodesuffix>): Likewise.
7004 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7007 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7008 * config/pa/pa.md (iordi3): Use new predicate in expander.
7011 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7013 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7014 FUNCTION_VALUE_REGNO_P): Remove macros.
7015 * config/mips/mips-protos.h (mips_function_value): Remove.
7016 * config/mips/mips.c (mips_function_value): Rename to...
7017 (mips_function_value_1): ... this. Make static. Handle receiving
7018 the function type in 'fn_decl_or_type' argument.
7019 (mips_function_value, mips_libcall_value,
7020 mips_function_value_regno_p): New function.
7021 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7022 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7024 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7026 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7027 and -mavx256-split-unaligned-store.
7028 (ix86_option_override_internal): Split 32-byte AVX unaligned
7029 load/store by default.
7030 (ix86_avx256_split_vector_move_misalign): New.
7031 (ix86_expand_vector_move_misalign): Use it.
7033 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7034 -mavx256-split-unaligned-store.
7036 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7037 256bit load/store. Generate unaligned store on misaligned memory
7039 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7041 (*avx_movdqu<avxmodesuffix>): Likewise.
7043 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7044 -mavx256-split-unaligned-store.
7046 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7049 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7052 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7054 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7055 opno arguments with an expand_operand. Use create_input_operand.
7056 (mips_prepare_builtin_target): Delete.
7057 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7059 (mips_expand_builtin_direct): Use create_output_operand and
7060 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7061 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7062 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7064 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7066 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7068 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7070 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7072 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7073 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7074 basic blocks and call commit_edge_insertions directly.
7075 (fixup_abnormal_edges): Move from here to...
7076 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7077 on the edges and return whether some have actually been inserted.
7078 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7081 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7083 PR rtl-optimization/48144
7084 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7085 (merge_expr_data): ... here.
7086 (av_set_intersect): Rename to av_set_code_motion_filter.
7087 Update all callers. Call merge_history_vect when an expression
7088 is found in both sets.
7089 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7091 2011-03-26 Alan Modra <amodra@gmail.com>
7093 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7094 cmodel medium addresses.
7095 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7096 64-bit gpr loads and stores.
7097 (rs6000_secondary_reload_ppc64): New function.
7098 * config/rs6000/rs6000-protos.h: Declare it.
7099 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7101 2011-03-26 Alan Modra <amodra@gmail.com>
7104 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7105 GNU Go in traceback table.
7107 2011-03-25 Richard Henderson <rth@redhat.com>
7109 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7110 if there are exactly 6 operands.
7111 (set_storage_via_setmem): Similarly.
7113 2011-03-25 Kai Tietz <ktietz@redhat.com>
7115 * collect2.c (write_c_file_stat): Handle backslash
7116 as right-hand directory separator.
7117 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7118 checking just for slash.
7119 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7120 instead of checking for trailing slash.
7121 * gcc.c (record_temp_file): Use filename_cmp instead
7123 (do_spec_1): Likewise.
7124 (replace_outfile_spec_function): Likewise.
7125 (is_directory): Use filename_ncmp instead of strncmp.
7126 (print_multilib_info): Likewise.
7127 * gcov.c (find_source): Use filename_cmp instead
7129 (make_gcov_file_name): Fix order of slash/backslash
7131 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7132 (add_standard_paths): Likewise.
7133 * mips-tfile.c (saber_stop): Handle backslash.
7134 * prefix.c (update_path): Use filename_ncmp instead of
7136 * profile.c (output_location): Use filename_cmp instead
7138 * read-md.c (handle_toplevel_file): Handle backslash.
7139 * tlink.c (frob_extension): Likewise.
7140 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7142 * tree-dump.c (dequeue_and_dump): Handle backslash.
7143 * tree.c (get_file_function_name): Likewise.
7144 * gengtype.c (read_input_list): Likewise.
7145 (get_file_realbasename): Likewise.
7146 (get_output_file_with_visibility): Use filename_cmp
7149 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7151 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7154 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7156 * fold-const.c (expr_location_or): New function.
7157 (fold_truth_not_expr): Call it.
7159 2011-03-25 Jeff Law <law@redhat.com>
7161 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7163 * c-family/c-common.c (def_fn_type): Likewise.
7164 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7165 * emit-rtl.c (gen_rtvec): Likewise.
7166 * lto/lto-lang.c (def_fn_type): Likewise.
7168 2011-03-25 Richard Guenther <rguenther@suse.de>
7170 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7171 also generate copies.
7172 (fini_copy_prop): Handle constant values properly.
7174 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7176 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7177 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7178 (hash_loc_operands, compare_loc_operands): Handle
7179 DW_OP_GNU_entry_value.
7181 2011-03-25 Kai Tietz <ktietz@redhat.com>
7183 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7184 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7185 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7186 comment and use macro TARGET_64BIT_MS_ABI instead.
7187 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7188 and change default behavior for 32-bit MS_ABI.
7189 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7190 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7192 (ix86_cfun_abi): Likewise.
7193 (ix86_maybe_switch_abi): Adjust comment.
7194 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7195 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7196 instead of checking for SYSV_ABI.
7197 (ix86_nsaved_sseregs): Likewise.
7198 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7200 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7201 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7202 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7203 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7204 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7206 2011-03-25 Richard Guenther <rguenther@suse.de>
7208 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7209 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7210 (verify_gimple): Remove.
7211 * tree-cfg.c (verify_gimple_call): Merge verification
7213 (verify_gimple_phi): Merge verification from verify_stmts.
7214 (verify_gimple_label): New function.
7215 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7216 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7217 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7218 (verify_stmts): Rename to verify_gimple_in_cfg.
7219 (verify_gimple_in_cfg): New function.
7220 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7221 * tree-ssa.c (verify_ssa): Likewise.
7222 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7224 2011-03-25 Richard Guenther <rguenther@suse.de>
7226 * passes.c (init_optimization_passes): Add FRE pass after
7229 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7230 Andrew Stubbs <ams@codesourcery.com>
7232 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7234 (arm_movdi_vfp_cortexa8): New pattern.
7235 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7236 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7237 instructions when tuning for Cortex-A8. Set attribute "arch".
7238 * config/arm/arm.md: Move include arm-tune.md up a bit.
7239 (define_attr "arch"): Add "onlya8" and "nota8" values.
7240 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7242 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7246 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7248 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7249 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7250 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7251 * passes.c (init_optimization_passes): Move
7252 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7254 2011-03-25 Kai Tietz <ktietz@redhat.com>
7256 * c-typeck.c (comptypes_internal): Replace target
7257 hook call of comp_type_attributes by version in tree.c file.
7258 * gimple.c (gimple_types_compatible_p_1): Likewise.
7259 * tree-ssa.c (useless_type_conversion_p): Likewise.
7260 * tree.c (build_type_attribute_qual_variant): Likewise.
7261 (attribute_value_equal): New static helper function.
7262 (comp_type_attributes): New function.
7263 (merge_attributes): Use attribute_value_equal for comparison.
7264 (attribute_list_contained): Likewise.
7265 * tree.h (comp_type_attributes): New prototype.
7267 2011-03-25 Richard Guenther <rguenther@suse.de>
7269 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7270 of complex types at -O0.
7271 (verify_gimple_assign_binary): Likewise.
7272 (verify_gimple_assign_ternary): Likewise.
7274 2011-03-24 Mark Wielaard <mjw@redhat.com>
7276 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7277 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7279 2011-03-24 Mark Wielaard <mjw@redhat.com>
7282 * dwarf2out.c (output_abbrev_section): Only write table when
7283 abbrev_die_table_in_use > 1.
7285 2011-02-24 Richard Henderson <rth@redhat.com>
7287 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7288 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7289 (alpha_expand_unaligned_load_words): Use extql.
7290 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7291 (emit_insxl): Handle all modes for consistency.
7293 2011-02-24 Richard Henderson <rth@redhat.com>
7295 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7296 (alpha_expand_unaligned_load): Likewise.
7297 (alpha_expand_unaligned_store): Likewise.
7298 (alpha_expand_unaligned_load_words): Likewise.
7299 (alpha_expand_unaligned_store_words): Likewise.
7300 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7301 (alpha_split_lock_test_and_set_12): Likewise.
7302 (print_operand, alpha_fold_builtin_extxx): Likewise.
7303 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7304 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7305 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7306 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7307 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7308 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7309 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7310 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7311 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7312 (extwl, extll, extql): Similarly.
7313 (inswh, inslh, insqh): Similarly.
7314 (mskbl, mskwl, mskll, mskql): Similarly.
7315 (mskwh, msklh, mskqh): Similarly.
7317 2011-02-24 Richard Henderson <rth@redhat.com>
7319 * config/alpha/alpha.md (attribute isa): Add er, ner.
7320 (attribute enabled): Handle them.
7321 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7323 2011-02-24 Richard Henderson <rth@redhat.com>
7325 * config/alpha/alpha.md (attribute isa): Add vms.
7326 (attribute enabled): Handle it.
7327 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7328 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7329 (*movtf): Rename from *movtf_internal for consistency.
7330 (*movsi): Merge with *movsi_nt_vms.
7331 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7332 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7333 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7334 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7336 2011-02-24 Richard Henderson <rth@redhat.com>
7338 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7339 (extendqisi2, extendhisi2): Likewise.
7340 (extendqidi2): Simplify BWX/non-BWX expansions.
7341 (extendhidi2): Similarly.
7343 2011-02-24 Richard Henderson <rth@redhat.com>
7345 * config/alpha/alpha.md (attribute isa): New.
7346 (attribute enabled): New.
7347 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7348 (zero_extendqisi2, zero_extendqidi2): Similarly.
7349 (zero_extendhisi2, zero_extendhidi2): Similarly.
7350 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7352 2011-02-24 Richard Henderson <rth@redhat.com>
7354 * config/alpha/predicates.md (input_operand): Revert last change;
7355 update comment to mention 32-bit VMS rather than Windows.
7357 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7359 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7360 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7361 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7362 * passes.c (init_optimization_passes): Move
7363 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7365 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7367 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7369 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7371 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7374 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7377 * simplify-rtx.c (simplify_const_unary_operation): Call
7378 real_convert when changing mode class with FLOAT_EXTEND.
7380 2011-03-24 Nick Clifton <nickc@redhat.com>
7382 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7383 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7384 * config/rx/rx.c (rx_option_override): Set align_jumps,
7385 align_loops and align_labels if not set by the user.
7386 (rx_align_for_label): New function.
7387 (rx_max_skip_for_label): New function.
7388 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7389 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7390 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7391 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7392 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7394 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7396 PR rtl-optimization/48263
7397 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7398 and original commutative_p handling. Use maybe_gen_insn.
7400 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7402 * reload.c (find_reloads_subreg_address): Add address_reloaded
7403 parameter and return true there if the full address has been
7405 (find_reloads_toplev): Pass address_reloaded flag.
7406 (find_reloads_address_1): Don't use address_reloaded parameter.
7408 2011-03-24 Jeff Law <law@redhat.com>
7410 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7411 unused variable "ann".
7412 (remove_unused_locals): Likewise.
7414 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7417 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7420 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7422 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7423 for invalid symbolic addresses.
7424 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7427 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7429 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7430 the argument in calls to fold_truth_not_expr.
7432 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7434 * tree.c (record_node_allocation_statistics): New function.
7435 (make_node_stat, copy_node_stat, build_string): Call it.
7436 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7437 (build1_stat, build_omp_clause): Likewise.
7439 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7441 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7444 2011-03-24 Richard Guenther <rguenther@suse.de>
7446 PR tree-optimization/48271
7447 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7448 blocks that still exist.
7450 2011-03-24 Richard Guenther <rguenther@suse.de>
7452 PR tree-optimization/48270
7453 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7454 not free datarefs before ddrs.
7456 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7458 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7459 from the address built for a reference with variable offset.
7461 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7464 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7465 alternatives that can be handled with movq or movabsq insn.
7466 (*movdf_internal): Disable for !TARGET_64BIT.
7467 (*movdf_internal_nointeger): Ditto.
7468 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7470 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7472 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7473 (FUNCTION_ARG_ADVANCE): Likewise.
7474 * tm.texi.in: Change references to them to hook references.
7475 * tm.texi: Regenerate.
7476 * targhooks.c (default_function_arg): Eliminate check for target macro.
7477 (default_function_incoming_arg): Likewise.
7478 (default_function_arg_advance): Likewise.
7479 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7480 (function_arg_advance): Likewise.
7481 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7483 2011-03-24 Richard Guenther <rguenther@suse.de>
7486 * tree-object-size.c (addr_object_size): Do not double-account
7487 for MEM_REF offsets.
7489 2011-03-24 Diego Novillo <dnovillo@google.com>
7491 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7492 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7493 (lto_input_data_block): Move from lto-opts.c. Make extern.
7495 (lto_input_string): Rename from input_string. Make extern.
7497 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7498 output_string_with_length.
7499 Output 0 to indicate a non-NULL string. Update all callers to
7501 (lto_output_string): Rename from output_string. Make extern.
7503 (lto_output_decl_state_streams): Make extern.
7504 (lto_output_decl_state_refs): Make extern.
7505 * lto-streamer.h (lto_input_string): Declare.
7506 (lto_input_data_block): Declare.
7507 (lto_output_string): Declare.
7508 (lto_output_string_with_length): Declare.
7509 (lto_output_decl_state_streams): Declare.
7510 (lto_output_decl_state_refs): Declare.
7512 2011-03-24 Richard Guenther <rguenther@suse.de>
7514 PR tree-optimization/46562
7515 * tree.c (build_invariant_address): New function.
7516 * tree.h (build_invariant_address): Declare.
7517 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7518 a renamed function moved ...
7519 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7520 Take valueization callback parameter.
7521 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7522 * gimple-fold.h: New file.
7523 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7524 (ccp_fold, fold_const_aggregate_ref,
7525 fold_ctor_reference, fold_nonarray_ctor_reference,
7526 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7527 get_base_constructor): Move ...
7528 * gimple-fold.c: ... here.
7529 (gimple_fold_stmt_to_constant_1): New function
7530 split out from ccp_fold. Take a valueization callback parameter.
7531 Valueize all operands.
7532 (gimple_fold_stmt_to_constant): New wrapper function.
7533 (fold_const_aggregate_ref_1): New function split out from
7534 fold_const_aggregate_ref. Take a valueization callback parameter.
7535 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7536 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7537 invariant POINTER_PLUS_EXPRs to invariant form.
7538 (vn_valueize): New function.
7539 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7540 * tree-vrp.c (vrp_valueize): New function.
7541 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7542 to fold statements to constants.
7543 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7544 function declarations.
7545 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7546 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7548 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7550 * config/h8300/predicates.md (jump_address_operand): Fix register
7553 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7555 * doc/invoke.texi (max-stores-to-sink): Document.
7556 * params.h (MAX_STORES_TO_SINK): Define.
7557 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7558 if either vectorization or if-conversion is disabled.
7559 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7560 tree-vect-data-refs.c vect_equal_offsets.
7561 (dr_equal_offsets_p): New function.
7562 (find_data_references_in_bb): Remove static.
7563 * tree-data-ref.h (find_data_references_in_bb): Declare.
7564 (dr_equal_offsets_p): Likewise.
7565 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7566 (vect_drs_dependent_in_basic_block): Update calls to
7568 (vect_check_interleaving): Likewise.
7569 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7570 (cond_if_else_store_replacement): Rename to...
7571 (cond_if_else_store_replacement_1): ... this. Change arguments and
7573 (cond_if_else_store_replacement): New function.
7574 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7575 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7577 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7580 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7581 to subtract lower bound instead of GEN_INT().
7583 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7588 * doc/extend.texi (Alignment): Move section to match order in TOC.
7589 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7590 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7592 2011-03-23 Jeff Law <law@redhat.com>
7594 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7595 before removing the edge.
7597 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7598 it may have been freed by redirect_branch_edge or
7599 redirect_edge_succ_nodup.
7601 2011-03-23 Richard Guenther <rguenther@suse.de>
7603 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7604 (check_va_list_escapes): Likewise.
7605 (check_all_va_list_escapes): Likewise.
7607 2011-03-23 Richard Guenther <rguenther@suse.de>
7609 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7610 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7611 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7612 (alias.o): Likewise.
7613 (ipa-type-escape.o): Remove.
7614 (ipa-struct-reorg.o): Likewise.
7615 (GTFILES): Remove ipa-struct-reorg.c.
7616 * alias.c: Do not include ipa-type-escape.h.
7617 * tree-ssa-alias.c: Likewise.
7618 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7619 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7620 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7621 and ipa-type-escape passes.
7622 * tree-pass.h (pass_ipa_type_escape): Remove.
7623 (pass_ipa_struct_reorg): Likewise.
7624 * ipa-struct-reorg.h: Remove.
7625 * ipa-struct-reorg.c: Likewise.
7626 * ipa-type-escape.h: Likewise.
7627 * ipa-type-escape.c: Likewise.
7628 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7629 (--param struct-reorg-cold-struct-ratio): Likewise.
7630 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7631 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7632 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7634 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7636 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7637 cpu attribute value.
7638 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7639 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7640 * config/s390/s390.c (processor_flags_table): New constant array.
7641 (s390_handle_arch_option): Remove.
7642 (s390_handle_option): Remove s390_handle_arch_option invocations
7643 and OPT_mwarn_framesize_ handling.
7644 (s390_option_override): Remove s390_handle_arch_option invocation.
7645 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7647 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7648 * config/s390/s390.opt (s390_tune, s390_arch)
7649 (march=): Replace s390_arch_option enum and values with
7650 processor_type. Set variable name to s390_arch. Set
7651 initialization value.
7652 (mtune=): Replace s390_arch_option with processor_type. Set
7653 variable name to s390_tune. Set initialization value.
7655 2011-03-23 Julian Brown <julian@codesourcery.com>
7657 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7658 accesses which are not naturally aligned.
7660 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7663 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7665 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7667 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7668 parameter from "int" to "enum insn_code".
7669 (expand_operand_type): New enum.
7670 (expand_operand): New structure.
7671 (create_expand_operand): New function.
7672 (create_fixed_operand, create_output_operand): Likewise
7673 (create_input_operand, create_convert_operand_to): Likewise.
7674 (create_convert_operand_from, create_address_operand): Likewise.
7675 (create_integer_operand): Likewise.
7676 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7677 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7678 (expand_insn, expand_jump_insn): Likewise.
7679 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7680 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7681 (expand_movstr, expand_builtin___clear_cache): Likewise.
7682 (expand_builtin_lock_release): Likewise.
7683 * explow.c (allocate_dynamic_stack_space): Likewise.
7684 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7685 and use the default handling in that case.
7686 * expmed.c (check_predicate_volatile_ok): Delete.
7687 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7688 (emit_cstore): Likewise.
7689 * expr.c (emit_block_move_via_movmem): Likewise.
7690 (set_storage_via_setmem, expand_assignment): Likewise.
7691 (emit_storent_insn, try_casesi): Likewise.
7692 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7693 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7694 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7695 (expand_twoval_unop, expand_twoval_binop): Likewise.
7696 (expand_unop_direct, emit_indirect_jump): Likewise.
7697 (emit_conditional_move, vector_compare_rtx): Likewise.
7698 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7699 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7700 (expand_sync_lock_test_and_set): Likewise.
7701 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7702 (emit_unop_insn): Likewise.
7703 (expand_copysign_absneg): Change icode to an insn_code.
7704 (create_convert_operand_from_type): New function.
7705 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7706 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7707 (expand_insn, expand_jump_insn): Likewise.
7708 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7709 than const_int_operand for operand 2.
7711 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7713 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7716 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7718 * emit-rtl.c (emit_pattern_before_noloc): New function.
7719 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7720 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7721 (emit_pattern_after_noloc): New function.
7722 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7723 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7725 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7727 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7728 (__ffsDI2): Likewise.
7730 2011-03-22 Richard Henderson <rth@redhat.com>
7732 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7733 of !TARGET_ABI_OPEN_VMS.
7734 (alpha_trampoline_init, alpha_start_function): Likewise.
7735 (alpha_expand_epilogue, alpha_file_start): Likewise.
7736 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7737 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7738 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7739 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7740 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7742 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7744 * config/s390/s390-opts.h: New.
7745 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7746 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7747 s390_stack_guard): Remove.
7748 (s390_handle_arch_option): Return void. Take enum
7749 s390_arch_option value instead of string and searching array.
7750 (s390_handle_option): Don't assert that global structures are in
7751 use. Access variables via opts pointer. Use error_at. Don't use
7752 sscanf for -mstack-guard= or -mstack-size=. Update call to
7753 s390_handle_arch_option.
7754 (s390_option_override): Update call to s390_handle_arch_option.
7755 (s390_emit_prologue): Use %d format for s390_stack_size in
7756 diagnostic. Use %wd for HOST_WIDE_INT.
7757 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7758 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7759 * config/s390/s390.opt (config/s390/s390-opts.h): New
7760 HeaderInclude entry.
7761 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7762 s390_arch_flags, s390_warn_framesize): New Variable entries.
7763 (s390_arch_option): New Enum and EnumValue entries.
7764 (march=): Use Enum instead of Var.
7765 (mstack-guard=, mstack-size=): Use UInteger and Var.
7768 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7770 * config/score/score.c (score_handle_option): Don't assert that
7771 global structures are in use. Access target_flags via opts
7772 pointer. Use value of -march= option to determine target_flags
7774 * config/score/score.opt (march=): Use Enum.
7775 (score_arch): New Enum and EnumValue entries.
7777 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7779 * config/mep/mep.c (option_mtiny_specified): Remove.
7780 (mep_option_override): Move register handling for -mivc2 from
7781 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7782 instead of option_mtiny_specified.
7783 (mep_handle_option): Access target_flags via opts pointer. Don't
7784 assert that global structures are in use. Defer part of -mivc2
7785 handling and move it to mep_option_override.
7786 * config/mep/mep.opt (IVC2): New Mask entry.
7787 (mivc2): Use Var and Defer instead of Mask.
7789 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7791 * config/v850/v850-opts.h: New.
7792 * config/v850/v850.c (small_memory): Replace with
7793 small_memory_physical_max array. Make that array static const.
7794 (v850_handle_memory_option): Take integer value of argument. Take
7795 gcc_options pointer, option text and location. Return void.
7796 Update for changes to small memory structures.
7797 (v850_handle_option): Access target_flags via opts pointer. Don't
7798 assert that global structures are in use. Update calls to
7799 v850_handle_memory_option.
7800 (v850_encode_data_area): Update references to small memory settings.
7801 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7802 (enum small_memory_type): Move to v850-opts.h.
7803 * config/v850/v850.opt (config/v850/v850-opts.h): New
7804 HeaderInclude entry.
7805 (small_memory_max): New Variable entry.
7806 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7807 (mtda, mzda): Likewise.
7809 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7811 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7812 pointer. Don't assert that global structures are in use.
7814 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7816 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7817 via opts pointer. Don't assert that global structures are in use.
7819 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7821 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7822 (munix=93): Use Var.
7823 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7824 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7825 * config/pa/pa-opts.h: New.
7826 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7827 (pa_handle_option): Don't assert that global structures are in
7828 use. Access target_flags via opts pointer. Don't handle
7829 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7831 (pa_option_override): Handle deferred OPT_mfixed_range_.
7833 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7835 * config/mn10300/mn10300-opts.h: New.
7836 * config/mn10300/mn10300.c (mn10300_processor,
7837 mn10300_tune_string): Remove.
7838 (mn10300_handle_option): Don't assert that global structures are
7839 in use. Access mn10300_processor via opts pointer. Don't handle
7841 * config/mn10300/mn10300.h (enum processor_type): Move to
7843 (mn10300_processor): Remove.
7844 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7845 HeaderInclude entry.
7846 (mn10300_processor): New Variable entry.
7849 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7851 * config/microblaze/microblaze.c: Don't include opts.h.
7852 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7853 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7854 (mno-clearbss): Use Var and Warn.
7856 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7858 * config/m32r/m32r-opts.h: New.
7859 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7860 (m32r_handle_option): Don't assert that global structures are in
7861 use. Access target_flags and m32r_cache_flush_func via opts
7862 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7863 OPT_mno_flush_trap here.
7864 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7865 include of m32r-opts.h.
7866 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7867 HeaderInclude entry.
7868 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7869 (mmodel=): Use Enum and Var.
7870 (m32r_model): New Enum and EnumValue entries.
7871 (mno-flush-trap): Use Var.
7872 (msdata=): Use Enum and Var.
7873 (m32r_sdata): New Enum and EnumValue entries.
7875 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7877 * config/m32c/m32c.c: Don't include opts.h.
7878 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7879 m32c_handle_option): Remove.
7880 (m32c_option_override): Check global_options_set.x_target_memregs
7881 instead of target_memregs_set.
7882 * config/m32c/m32c.h (target_memregs): Remove.
7883 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7886 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7888 * config/iq2000/iq2000-opts.h: New.
7889 * config/iq2000/iq2000.c: Don't include opts.h.
7890 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7891 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7892 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7893 HeaderInclude entry.
7894 (iq2000_tune): New Variable entry.
7895 (march=): Add comment. Use Enum.
7896 (iq2000_arch): New Enum and EnumValue entries.
7897 (mcpu=): Use Enum and Var.
7898 (iq2000_tune): New Enum and EnumValue entries.
7900 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7902 * config/ia64/ia64-opts.h: New.
7903 * config/ia64/ia64.c (ia64_tune): Remove.
7904 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7906 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7907 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7908 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7909 HeaderInclude entry.
7910 (ia64_tune): New Variable entry.
7911 (mfixed-range=): Use Defer and Var.
7912 (mtune=): Use Enum and Var.
7913 (ia64_tune): New Enum and EnumValue entries.
7915 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7917 * config/frv/frv-opts.h: New.
7918 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7920 (frv_cpu_type): Remove.
7921 * config/frv/frv.c: Don't include opts.h.
7922 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7923 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7924 (frv_cpu_type): New Variable entry.
7925 (frv_cpu): New Enum and EnumValue entries.
7927 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7929 * config/cris/cris.c (cris_handle_option): Access target_flags via
7930 opts pointer. Don't assert that global structures are in use.
7931 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7932 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7934 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7936 * config/bfin/bfin-opts.h: New.
7937 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7938 bfin_si_revision, bfin_workarounds): Remove.
7939 (bfin_cpus): Make static const.
7940 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7941 not bfin_lib_id_given.
7942 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7943 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7944 pointer. Use error_at. Don't assert that global structures are in use.
7945 * config/bfin/bfin.h: Include bfin-opts.h.
7946 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7947 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7948 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7949 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7952 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7954 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7955 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7956 or -msoft-float here.
7957 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7958 -msoft-float and -mhard-float.
7959 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7960 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7962 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7964 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7965 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7967 (LIBGCC_SPEC): Don't handle -msoft-float.
7968 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7970 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7972 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7973 -mfloat-abi=*, not -msoft-float and -mhard-float.
7974 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7976 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7977 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7978 mhard-float and msoft-float.
7979 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7980 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7981 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7982 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7984 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7985 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7987 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7989 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7992 2011-03-22 Richard Henderson <rth@redhat.com>
7994 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7995 TARGET_ABI_WINDOWS_NT.
7996 (alpha_output_function_end_prologue): Likewise.
7997 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7998 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7999 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8000 (trap, *movsi_nt_vms): Likewise.
8001 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8002 (*tablejump_osf_nt_internal): Remove.
8003 * config/alpha/predicates.md (input_operand): Only test Pmode.
8005 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8007 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8008 via opts pointer. Use error_at. Don't assert that global
8009 structures are in use.
8011 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8013 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8014 (ix86_handle_option): Access ix86_isa_flags and
8015 ix86_isa_flags_explicit via opts pointer. Don't assert that
8016 global structures are in use.
8017 (ix86_function_specific_save, ix86_function_specific_restore):
8018 Update ix86_isa_flags_explicit field name.
8019 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8020 (ix86_isa_flags_explicit): Rename TargetSave entry to
8021 x_ix86_isa_flags_explicit.
8023 2011-03-22 Richard Henderson <rth@redhat.com>
8025 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8026 (alpha_option_override, direct_return): Likewise.
8027 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8028 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8029 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8030 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8031 (alpha_expand_epilogue, alpha_end_function): Likewise.
8032 (alpha_init_libfuncs): Likewise.
8033 (struct machine_function): Remove unicosmk members.
8034 (print_operand) ['t']: Remove.
8035 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8036 unicosmk_output_module_name, unicosmk_output_common,
8037 current_section_align, unicosmk_output_text_section_asm_op,
8038 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8039 unicosmk_section_type_flags, unicosmk_unique_section,
8040 unicosmk_asm_named_section, unicosmk_insert_attributes,
8041 unicosmk_output_align, unicosmk_defer_case_vector,
8042 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8043 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8044 unicosmk_output_ssib, unicosmk_add_call_info_word,
8045 unicosmk_extern_head, unicosmk_output_default_externs,
8046 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8047 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8048 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8049 * config/alpha/alpha-protos.h: Update.
8050 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8051 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8052 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8053 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8054 (*mulsi_se, mulvsi3): Likewise.
8055 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8056 (*divmodsi_internal, call, call_value, realign): Likewise.
8057 (moddi3, umoddi3): Likewise; remove duplicate expander.
8058 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8059 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8060 (*movdi_nofix): Remove r/U alternative.
8061 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8062 * config/alpha/constraints.md ("U"): Remove.
8063 * config/alpha/predicates.md (call_operand"): Don't test
8064 TARGET_ABI_UNICOSMK.
8066 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8068 * target.def (handle_option): Take gcc_options and
8069 cl_decoded_option pointers and location_t.
8070 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8071 * doc/tm.texi: Regenerate.
8072 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8073 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8074 * lto-opts.c (lto_reissue_options): Generate option structure for
8075 targetm.handle_option call.
8076 * opts.c (target_handle_option): Update call to
8077 targetm.handle_option. Remove assertions about values now passed
8079 * targhooks.c (default_target_handle_option): New.
8080 * targhooks.h (default_target_handle_option): Declare.
8081 * config/alpha/alpha.c: Include opts.h.
8082 (alpha_handle_option): Update to new hook interface.
8083 * config/arm/arm.c: Include opts.h.
8084 (arm_handle_option): Update to new hook interface.
8085 * config/arm/t-arm (arm.o): Update dependencies.
8086 * config/bfin/bfin.c: Include opts.h.
8087 (bfin_handle_option): Update to new hook interface.
8088 * config/cris/cris.c: Include opts.h.
8089 (cris_handle_option): Update to new hook interface.
8090 * config/frv/frv.c: Include opts.h.
8091 (frv_handle_option): Update to new hook interface.
8092 * config/i386/i386.c: Include opts.h.
8093 (ix86_handle_option): Update to new hook interface.
8094 (ix86_valid_target_attribute_inner_p): Generate option structure
8095 for call to ix86_handle_option.
8096 * config/i386/t-i386 (i386.o): Update dependencies.
8097 * config/ia64/ia64.c: Include opts.h.
8098 (ia64_handle_option): Update to new hook interface.
8099 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8100 * config/iq2000/iq2000.c: Include opts.h.
8101 (iq2000_handle_option): Update to new hook interface.
8102 * config/m32c/m32c.c: Include opts.h.
8103 (m32c_handle_option): Update to new hook interface.
8104 * config/m32r/m32r.c: Include opts.h.
8105 (m32r_handle_option): Update to new hook interface.
8106 * config/m68k/m68k.c: Include opts.h.
8107 (m68k_handle_option): Update to new hook interface.
8108 * config/mep/mep.c: Include opts.h.
8109 (mep_handle_option): Update to new hook interface.
8110 * config/microblaze/microblaze.c: Include opts.h.
8111 (microblaze_handle_option): Update to new hook interface.
8112 * config/mips/mips.c: Include opts.h.
8113 (mips_handle_option): Update to new hook interface.
8114 * config/mn10300/mn10300.c: Include opts.h.
8115 (mn10300_handle_option): Update to new hook interface.
8116 * config/pa/pa.c: Include opts.h.
8117 (pa_handle_option): Update to new hook interface.
8118 * config/pdp11/pdp11.c: Include opts.h.
8119 (pdp11_handle_option): Update to new hook interface.
8120 * config/rs6000/rs6000.c: Include opts.h.
8121 (rs6000_handle_option): Update to new hook interface.
8122 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8123 * config/rx/rx.c: Include opts.h.
8124 (rx_handle_option): Update to new hook interface.
8125 * config/s390/s390.c: Include opts.h.
8126 (s390_handle_option): Update to new hook interface.
8127 * config/score/score.c: Include opts.h.
8128 (score_handle_option): Update to new hook interface.
8129 * config/sh/sh.c: Include opts.h.
8130 (sh_handle_option): Update to new hook interface.
8131 * config/sparc/sparc.c: Include opts.h.
8132 (sparc_handle_option): Update to new hook interface.
8133 * config/v850/v850.c: Include opts.h.
8134 (v850_handle_option): Update to new hook interface.
8136 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8138 * gcc.c (driver_unknown_option_callback): Only permit and save
8139 unknown -Wno- options.
8140 (driver_wrong_lang_callback): Save options directly instead of via
8141 driver_unknown_option_callback.
8143 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8145 * combine.c (simplify_set): Try harder to find the best CC mode when
8146 simplifying a nested COMPARE on the RHS.
8148 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8150 * config/alpha/gnu.h: Remove.
8151 * config/arc: Remove directory.
8152 * config/arm/netbsd.h: Remove.
8153 * config/arm/t-pe: Remove.
8154 * config/crx: Remove directory.
8155 * config/i386/netbsd.h: Remove.
8156 * config/m68hc11: Remove directory.
8157 * config/m68k/uclinux-oldabi.h: Remove.
8158 * config/mcore/mcore-pe.h: Remove.
8159 * config/mcore/t-mcore-pe: Remove.
8160 * config/netbsd-aout.h: Remove.
8161 * config/rs6000/gnu.h: Remove.
8162 * config/sh/sh-symbian.h: Remove.
8163 * config/sh/symbian-base.c: Remove.
8164 * config/sh/symbian-c.c: Remove.
8165 * config/sh/symbian-cxx.c: Remove.
8166 * config/sh/symbian-post.h: Remove.
8167 * config/sh/symbian-pre.h: Remove.
8168 * config/sh/t-symbian: Remove.
8169 * config/svr3.h: Remove.
8170 * config/vax/netbsd.h: Remove.
8171 * config.build: Don't handle i[34567]86-*-pe.
8172 * config.gcc: Remove handling of deprecations for most deprecated
8174 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8175 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8176 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8177 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8178 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8179 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8181 * config.host: Don't handle i[34567]86-*-pe.
8182 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8183 (ASM_SPEC32): Don't handle -mcall-gnu.
8184 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8186 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8187 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8188 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8189 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8190 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8191 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8192 conditional on SYMBIAN.
8193 * configure.ac: Don't handle powerpc*-*-gnu*.
8194 * configure: Regenerate.
8195 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8196 * doc/install-old.texi (m6811, m6812): Don't mention.
8197 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8198 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8199 (m68k-uclinuxoldabi): Don't mention.
8200 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8202 (-mcall-gnu): Remove.
8203 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8204 families): Remove constraint documentation.
8206 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8208 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8209 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8210 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8212 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8215 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8216 vector when peeking at the next token for vector, don't expand the
8219 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8221 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8222 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8223 * config/avr/avr.c (init_cumulative_args)
8224 (avr_function_arg_advance): Use it.
8225 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8227 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8228 (avr_function_ok_for_sibcall): ...this new function.
8229 (avr_lookup_function_attribute1): New static Function.
8230 (avr_naked_function_p, interrupt_function_p)
8231 (signal_function_p, avr_OS_task_function_p)
8232 (avr_OS_main_function_p): Use it.
8233 * config/avr/avr.md ("sibcall", "sibcall_value")
8234 ("sibcall_epilogue"): New expander.
8235 ("*call_insn", "*call_value_insn"): New insn.
8236 ("call_insn", "call_value_insn"): Remove
8237 ("call", "call_value", "epilogue"): Change expander to handle
8240 2011-03-21 Nick Clifton <nickc@redhat.com>
8242 * doc/invoke.texi (Overall Options): Move closing brace to end of
8244 (Optimization Options): Add missing @gol.
8245 (Directory Options): Likewise.
8246 (i386 and x86-64 Options): Likewise.
8247 (RS6000 and PowerPC Options): Likewise.
8248 (i386 and x86-64 Windows Options): Likewise.
8249 (V850 Options): Add text missing from descriptions.
8251 2011-03-22 Richard Henderson <rth@redhat.com>
8253 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8254 (avr_incoming_return_addr_rtx): New.
8255 (emit_push_byte): New.
8256 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8257 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8258 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8259 (emit_pop_byte): New.
8260 (expand_epilogue): Use it. Pop frame pointer by bytes.
8261 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8262 (INCOMING_RETURN_ADDR_RTX): New.
8263 (INCOMING_FRAME_SP_OFFSET): New.
8264 (ARG_POINTER_CFA_OFFSET): New.
8265 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8266 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8269 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8271 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8273 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8274 (FUNCTION_ARG_ADVANCE): Likewise.
8275 * tm.texi.in: Change references to them to hook references.
8276 * tm.texi: Regenerate.
8277 * targhooks.c (default_function_arg): Eliminate check for target
8279 (default_function_incoming_arg): Likewise.
8280 (default_function_arg_advance): Likewise.
8281 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8282 (function_arg_advance): Likewise.
8283 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8285 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8287 * tree.c (build_call_1): New function.
8288 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8290 2011-03-22 Richard Guenther <rguenther@suse.de>
8292 PR tree-optimization/48228
8293 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8294 for single-arg PHIs.
8296 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8298 PR rtl-optimization/48143
8299 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8300 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8301 sse2_cvtps2pd): Likewise.
8303 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8305 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8307 2011-03-22 Richard Guenther <rguenther@suse.de>
8309 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8310 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8311 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8312 and REALIGN_LOAD_EXPR.
8313 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8314 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8315 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8316 DOT_PROD_EXPR case ...
8317 (expand_expr_real_2): ... here.
8318 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8319 and REALIGN_LOAD_EXPR.
8320 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8321 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8322 (vect_create_epilog_for_reduction): Likewise.
8323 (vectorizable_reduction): Likewise.
8324 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8325 * tree-vect-stmts.c (vectorizable_load): Likewise.
8327 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8329 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8331 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8333 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8334 handling for PLTOFF/GOTOFF.
8336 2011-03-22 Nick Clifton <nickc@redhat.com>
8338 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8339 trailing backslash from the end of the macro definition.
8341 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8343 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8346 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8348 * expr.h (prepare_operand): Move to...
8349 * optabs.h (prepare_operand): ...here and change the insn code
8350 parameter from "int" to "enum insn_code".
8351 (insn_operand_matches): Declare.
8352 * expr.c (init_expr_target): Use insn_operand_matches.
8353 (compress_float_constant): Likewise.
8354 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8355 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8356 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8357 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8359 (gen_cond_trap): Likewise.
8360 (prepare_operand): Likewise. Change icode to an insn_code.
8361 (insn_operand_matches): New function.
8362 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8363 * reload1.c (gen_reload): Likewise.
8364 * targhooks.c (default_secondary_reload): Likewise.
8366 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8368 * config/alpha/alpha.md (unspec): New define_c_enum.
8371 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8374 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8375 between a call and its CALL_ARG_LOCATION note.
8377 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8379 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8381 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8385 * c-common.c (shorten_compare): If primopN is first sign-extended
8386 to opN and then zero-extended to result type, set primopN to opN.
8388 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8390 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8391 for barrier handlers.
8393 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8395 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8396 UNSPEC constants to be in the unspec enumeration, and redefine
8397 all UNSPECV constants to be in the unspecv enumeration, so that
8398 dumps print which unspec/unspec_volatile this is.
8399 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8400 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8401 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8402 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8403 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8405 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8406 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8407 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8408 * config/rs6000/sync.md (isync, lwsync): Ditto.
8410 2011-03-21 Richard Guenther <rguenther@suse.de>
8412 * params.def (lto-min-partition): Fix typo.
8414 2011-03-21 Richard Guenther <rguenther@suse.de>
8417 * c-decl.c (grokdeclarator): Drop to the main variant only
8418 for array types. Drop flag_gen_aux_info check.
8420 2011-03-21 Richard Guenther <rguenther@suse.de>
8422 PR translation/47911
8423 * params.def (lto-partitions): Fix typo.
8424 (lto-min-partition): Fix wording.
8426 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8428 * config/rs6000/t-freebsd: Remove duplication from file.
8430 2011-03-21 Richard Guenther <rguenther@suse.de>
8433 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8435 2011-03-21 Richard Guenther <rguenther@suse.de>
8438 * params.def (lto-partitions): Require at least 1 partition.
8440 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8442 * gthr-solaris.h: Remove.
8443 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8444 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8445 (LIB_SPEC): Likewise.
8446 * config/sol2.opt (threads): Remove.
8447 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8448 (sparc*-*-solaris2*): Likewise.
8449 * configure.ac (enable_threads): Enable solaris support.
8450 * configure: Regenerate.
8451 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8452 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8455 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8457 * config.gcc: Obsolete *-*-solaris2.8*.
8458 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8460 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8463 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8464 reference. Solaris 8 perl works.
8466 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8469 * doc/install.texi (Prerequisites): Move jar etc. up.
8470 Explain support library version requirements.
8472 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8475 * doc/install.texi (Prerequisites): Move Perl to build
8476 requirements. Always necessary on Solaris 2 with Sun ld.
8478 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8480 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8482 (Specific, i?86-*-solaris2.[89]): Likewise.
8483 (Specific, i?86-*-solaris2.10): Likewise.
8484 (Specific, mips-sgi-irix6): Likewise.
8485 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8486 Update for binutils 2.21.
8488 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8490 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8491 Allow -fuse-linker-plugin for non-default plugin linker.
8492 * configure: Regenerate.
8494 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8497 * gengtype.c (files_rules): Added rule for cp/parser.h.
8499 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8502 * config/s390/s390.c (s390_delegitimize_address): Don't call
8503 lowpart_subreg if orig_x has BLKmode.
8505 2011-03-21 Kai Tietz <ktietz@redhat.com>
8508 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8509 * tree.h (attribute_spec): Add new member affects_type_identity.
8510 * attribs.c (empty_attribute_table): Adjust attribute_spec
8512 * config/alpha/alpha.c: Likewise.
8513 * config/arc/arc.c: Likewise.
8514 * config/arm/arm.c: Likewise.
8515 * config/avr/avr.c: Likewise.
8516 * config/bfin/bfin.c: Likewise.
8517 * config/crx/crx.c: Likewise.
8518 * config/darwin.h: Likewise.
8519 * config/h8300/h8300.c: Likewise.
8520 * config/i386/cygming.h: Likewise.
8521 * config/i386/i386.c: Likewise.
8522 * config/ia64/ia64.c: Likewise.
8523 * config/m32c/m32c.c: Likewise.
8524 * config/m32r/m32r.c: Likewise.
8525 * config/m68hc11/m68hc11.c: Likewise.
8526 * config/m68k/m68k.c: Likewise.
8527 * config/mcore/mcore.c: Likewise.
8528 * config/mep/mep.c: Likewise.
8529 * config/microblaze/microblaze.c: Likewise.
8530 * config/mips/mips.c: Likewise.
8531 * config/rs6000/rs6000.c: Likewise.
8532 * config/rx/rx.c: Likewise.
8533 * config/sh/sh.c: Likewise.
8534 * config/sol2.h: Likewise.
8535 * config/sparc/sparc.c: Likewise.
8536 * config/spu/spu.c: Likewise.
8537 * config/stormy16/stormy16.c: Likewise.
8538 * config/v850/v850.c: Likewise.
8540 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8542 * simplify-rtx.c (simplify_binary_operation_1): Handle
8543 (xor (and A B) C) case when B and C are both constants.
8545 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8547 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8549 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8552 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8554 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8556 PR rtl-optimization/48156
8557 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8558 assume df and df_lr are not NULL.
8560 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8563 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8564 between a call and its CALL_ARG_LOCATION note.
8566 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8569 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8570 between a call and its corresponding CALL_ARG_LOCATION note.
8572 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8574 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8575 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8576 * haifa-sched.c (setup_ref_regs): Ditto.
8577 * caller-save.c (add_used_regs_1): Ditto.
8578 * dse.c (look_for_hardregs): Ditto.
8579 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8580 * sched-rgn.c (check_live_1): Ditto.
8582 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8584 * c-decl.c (diagnose_mismatched_decls): Give an error for
8585 redefining a typedef with variably modified type.
8587 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8589 * c-decl.c (grokfield): Don't allow typedefs for structures or
8590 unions with no tag by default.
8591 * doc/extend.texi (Unnamed Fields): Update.
8593 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8595 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8596 Rewrite using indirect functions.
8597 (lwp_slwpcb): Ditto.
8598 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8599 (avx_vinsertf128<mode>): Ditto.
8601 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8603 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8606 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8608 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8609 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8611 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8613 PR rtl-optimization/48170
8614 * gcse.c (hoist_code): Remove bogus asserts.
8616 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8618 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8619 computation for prologue/epilogue.
8621 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8623 * Makefile.in (check-consistency): Remove.
8625 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8628 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8629 arange_table_in_use is 0, but either text_section_used or
8630 cold_text_section_used is true. Don't call it if
8631 !info_section_emitted.
8633 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8635 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8636 FUNCTION_VALUE_REGNO_P): Remove.
8637 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8639 * config/avr/avr.c (avr_ret_register): Make static inline.
8640 (avr_function_value_regno_p): New function.
8641 (avr_libcall_value): Make static. Add 'func' argument.
8642 (avr_function_value): Make static. Rename 'func' argument to
8643 'fn_decl_or_type', forward it to avr_libcall_value. Call
8644 avr_ret_register function instead of RET_REGISTER macro.
8645 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8647 2011-03-18 Jason Merrill <jason@redhat.com>
8650 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8652 2011-03-18 Richard Guenther <rguenther@suse.de>
8654 * doc/install.texi (--enable-gold): Remove.
8655 (--with-plugin-ld): Document.
8656 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8658 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8661 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8662 again after expansion changes.
8664 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8666 * combine.c (try_combine): Do simplification only call of
8667 subst() on i2 even when i1 is present. Update comments.
8669 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8671 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8672 and UNSPEC_PCREL_SYMOFF.
8674 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8676 * config/s390/s390.md: Use define_c_enum for the unspec constant
8679 2011-03-18 Richard Henderson <rth@redhat.com>
8680 Jakub Jelinek <jakub@redhat.com>
8683 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8684 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8686 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8689 * combine.c (cant_combine_insn_p): Don't check zero/sign
8690 extended hard registers.
8692 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8695 * combine.c (cant_combine_insn_p): Check zero/sign extended
8698 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8700 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8701 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8702 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8703 Change return type to bool.
8704 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8706 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8709 * var-tracking.c (prepare_call_arguments): If CALL target
8710 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8711 pc instead of looking it up using cselib_lookup and use
8712 Pmode for it if x has VOIDmode.
8713 * dwarf2out.c (gen_subprogram_die): If also both first and
8714 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8717 * function.c (assign_parms): For data.passed_pointer parms
8718 use MEM of data.entry_parm instead of data.entry_parm itself
8719 as DECL_INCOMING_RTL.
8720 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8721 also when passed and declared mode is the same, DECL_RTL
8722 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8725 2011-03-16 Jeff Law <law@redhat.com>
8727 PR rtl-optimization/37273
8728 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8729 handle them like argument loads from stack slots. Do not double
8730 count memory for memory constants and argument loads from stack slots.
8732 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8735 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8737 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8740 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8742 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8745 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8747 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8748 Clear call_arg_locations and call_arg_loc_last always.
8751 * var-tracking.c (prepare_call_arguments): If argument needs to be
8752 passed by reference, adjust argtype and mode.
8754 2011-03-17 Richard Guenther <rguenther@suse.de>
8757 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8758 a value make sure to fold the statement.
8760 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8763 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8764 return condition with !cfun->calls_alloca.
8766 2011-03-17 Richard Guenther <rguenther@suse.de>
8769 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8770 origin for decls in other ltrans units.
8771 (input_varpool_node): Likewise.
8773 2011-03-17 Richard Guenther <rguenther@suse.de>
8776 * tree-object-size.c (compute_object_offset): Properly return
8777 the offset operand of MEM_REFs as sizetype.
8779 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8781 PR rtl-optimization/48141
8782 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8783 * dse.c: Include params.h.
8784 (active_local_stores_len): New variable.
8785 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8787 (record_store, check_mem_read_rtx): Decrease it when removing
8789 (scan_insn): Likewise. Increase it when adding to chain, if it
8790 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8791 set active_local_stores to NULL before the addition.
8792 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8794 PR rtl-optimization/48141
8795 * dse.c (record_store): If no positions are needed in an insn
8796 that cannot be deleted, at least unchain it from active_local_stores.
8798 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8801 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8802 (lookup_type_die_strip_naming_typedef): ... here.
8803 (get_context_die): Use it.
8804 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8805 the anonymous struct named by the naming typedef.
8807 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8810 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8811 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8813 2011-03-16 Jeff Law <law@redhat.com>
8815 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8816 check for operands of conditional. Allow type to be a pointer.
8818 2011-03-16 Richard Guenther <rguenther@suse.de>
8820 PR tree-optimization/48149
8821 * fold-const.c (fold_binary_loc): Fold
8822 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8824 2011-03-16 Richard Guenther <rguenther@suse.de>
8826 PR tree-optimization/26134
8827 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8828 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8829 (non_rewritable_mem_ref_base): Handle complex type component
8830 accesses, constrain offsets for vector and complex extracts
8833 2011-03-16 Richard Guenther <rguenther@suse.de>
8835 PR tree-optimization/48146
8836 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8837 operands avoiding the need for renaming.
8839 2011-03-16 Richard Guenther <rguenther@suse.de>
8841 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8842 constant folding. Move MEM_REF canonicalization first.
8843 Rely on fold_const_aggregate_ref for initializer folding.
8844 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8846 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8849 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8850 arg0/arg1 or their arguments are always fold converted to matching
8853 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8856 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8859 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8860 Handle in-tree gold.
8861 (ld_vers): Extract binutils version for gold.
8862 (gcc_cv_ld_hidden): Handle gold here.
8863 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8864 * configure: Regenerate.
8865 * config.in: Regenerate.
8866 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8867 -fuse-linker-plugin otherwise.
8868 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8869 (LINK_COMMAND_SPEC): Use it.
8870 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8872 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8874 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8875 * calls.c: Remove debug.h include.
8876 (emit_call_1): Don't call virtual_call_token debug hook.
8877 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8878 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8879 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8880 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8881 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8882 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8883 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8884 dwarf2out_virtual_call): Remove.
8885 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8886 copy_call_info and virtual_call hooks.
8887 (dwarf2out_init): Don't initialize vcall_insn_table,
8888 debug_dcall_section and debug_vcall_section.
8889 (prune_unused_types): Don't mark nodes from dcall_table.
8890 (dwarf2out_finish): Don't output dcall or vcall tables.
8891 * final.c (final_scan_insn): Don't call direct_call or
8892 virtual_call debug hooks.
8893 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8894 virtual_call_token, copy_call_info and virtual_call hooks.
8895 (debug_nothing_uid): Remove prototype.
8896 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8897 copy_call_info and virtual_call hooks.
8898 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8899 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8900 * debug.c (do_nothing_debug_hooks): Likewise.
8901 (debug_nothing_uid): Remove.
8902 * doc/invoke.texi (-fenable-icf-debug): Remove.
8903 * common.opt (-fenable-icf-debug): Likewise.
8905 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8906 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8907 call's MEM. Handle functions returning aggregate through a hidden
8908 first pointer. For virtual calls add clobbered pc to call arguments
8910 * dwarf2out.c (gen_subprogram_die): Emit
8911 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8915 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8916 * rtl.h (ENTRY_VALUE_EXP): Define.
8917 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8918 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8919 * print-rtl.c (print_rtx): Likewise.
8920 * gengtype.c (adjust_field_rtx_def): Likewise.
8921 * var-tracking.c (vt_add_function_parameter): Adjust
8922 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8923 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8924 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8925 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8926 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8928 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8929 Call var_location debug hook even on CALL_INSNs.
8930 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8931 * rtl.def (ENTRY_VALUE): New.
8932 * dwarf2out.c: Include cfglayout.h.
8933 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8934 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8935 (struct call_arg_loc_node): New type.
8936 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8937 tail_call_site_count): New variables.
8938 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8939 DW_TAG_GNU_call_site_parameter.
8940 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8941 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8942 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8943 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8944 and DW_AT_GNU_all_source_call_sites.
8945 (mem_loc_descriptor): Handle ENTRY_VALUE.
8946 (add_src_coords_attributes): Don't add enything if
8947 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8948 (dwarf2out_abstract_function): Save and clear call_arg_location,
8949 call_site_count and tail_call_site_count around dwarf2out_decl call.
8950 (gen_call_site_die): New function.
8951 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8952 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8953 (dwarf2out_function_decl): Clear call_arg_locations,
8954 call_arg_loc_last, set call_site_count and tail_call_site_count
8955 to -1 and free block_map.
8956 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8957 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8958 followed by any real instructions.
8959 (dwarf2out_begin_function): Set call_site_count and
8960 tail_call_site_count to 0.
8961 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8962 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8963 attempt to force a DIE for it and worst case remove the attribute.
8964 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8965 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8967 * var-tracking.c: Include tm_p.h.
8968 (vt_stack_adjustments): For calls call note_register_arguments.
8969 (argument_reg_set): New variable.
8970 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8971 ensure the VALUE is resolved.
8972 (call_arguments): New variable.
8973 (prepare_call_arguments): New function.
8974 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8975 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8976 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8977 always use the best expression.
8978 (vt_expand_loc): Add ignore_cur_loc argument.
8979 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8980 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8981 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8983 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8984 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8985 argument. Don't call cselib_preserve_only_values and
8987 (note_register_arguments): New function.
8988 (vt_initialize): Compute argument_reg_set. Call
8989 vt_add_function_parameters before processing basic blocks instead of
8990 afterwards. For calls call prepare_call_arguments before calling
8991 cselib_process_insn.
8992 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8993 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8994 (var-tracking.o): Depend on $(TM_P_H).
8995 * cfglayout.h (insn_scope): New prototype.
8996 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8997 * cfglayout.c (insn_scope): No longer static.
8998 * insn-notes.def (CALL_ARG_LOCATION): New.
8999 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9000 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9001 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9002 nothing for DECL_EXTERNAL BLOCK_VARS.
9004 2011-03-16 Alan Modra <amodra@gmail.com>
9007 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9008 create invalid offset address for vsx splat insn.
9009 * config/rs6000/predicates.md (splat_input_operand): New.
9010 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9012 2011-03-15 Xinliang David Li <davidxl@google.com>
9015 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9016 (normalize_preds): New function.
9017 (is_use_properly_guarded): Normalize def predicates.
9019 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9022 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9023 in the output template.
9025 2011-03-15 Richard Guenther <rguenther@suse.de>
9028 * tree-pretty-print.c (dump_function_declaration): Properly
9029 dump unprototyped and varargs function types.
9031 2011-03-15 Richard Guenther <rguenther@suse.de>
9033 PR tree-optimization/13954
9034 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9037 2011-03-15 Richard Guenther <rguenther@suse.de>
9039 PR tree-optimization/48037
9040 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9041 selects into BIT_FIELD_REFs.
9042 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9045 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9047 PR tree-optimization/48129
9048 * builtins.c (fold_builtin_snprintf): Convert to type of
9049 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9050 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9052 2011-03-15 Richard Guenther <rguenther@suse.de>
9054 PR tree-optimization/41490
9055 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9056 value but with VUSE.
9057 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9059 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9060 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9061 * tree-tailcall.c (find_tail_calls): Ignore returns.
9063 2011-03-15 Richard Guenther <rguenther@suse.de>
9066 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9067 or variable-indexed array accesses when in gimple form.
9069 2011-03-15 Richard Guenther <rguenther@suse.de>
9071 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9073 2011-03-15 Alan Modra <amodra@gmail.com>
9076 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9077 presume symbol_refs without a symbol_ref_decl are suitably
9078 aligned, nor other trees we may see here. Handle anchor symbols.
9079 (legitimate_constant_pool_address_p): Comment. Add mode param.
9080 Check cmodel=medium addresses. Adjust all calls.
9081 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9082 creating cmodel=medium optimized access to locals.
9083 * config/rs6000/constraints.md (R): Pass QImode to
9084 legitimate_constant_pool_address_p.
9085 * config/rs6000/predicates.md (input_operand): Pass mode to
9086 legitimate_constant_pool_address_p.
9087 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9090 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9093 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9094 64-bit constants being loaded into registers other than GPRs such
9095 as loading 0 into a VSX register.
9097 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9099 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9101 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9104 * builtins.c (fold_builtin_snprintf): New function.
9105 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9106 (fold_builtin_4): Likewise.
9109 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9110 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9111 and C - X == X also strip nops from +/-/p+ operand.
9112 When optimizing -X == C, fold C to arg0's type.
9115 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9116 emit it as add_AT_int instead of add_AT_unsigned.
9118 2011-03-14 Tom Tromey <tromey@redhat.com>
9120 * unwind-dw2.c: Include sys/sdt.h if it exists.
9121 (_Unwind_DebugHook): Use STAP_PROBE2.
9122 * config.in, configure: Rebuild.
9123 * configure.ac: Check for sys/sdt.h.
9125 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9127 * config/i386/i386.md (ROUND_FLOOR): New constant.
9128 (ROUND_CEIL): Ditto.
9129 (ROUND_TRUNC): Ditto.
9130 (ROUND_MXCSR): Ditto.
9131 (ROUND_NO_EXC): Ditto.
9132 (rint<mode>2): Use new defines instead of numerical constants.
9133 (floor<mode>2): Ditto.
9134 (ceil<mode>2): Ditto.
9135 (btrunc<mode>2): Ditto.
9136 * config/i386/i386-builtin-types.def: Define ROUND function type
9138 * config/i386/i386.c (enum ix86_builtins): Add
9139 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9140 (struct builtin_description): Add
9141 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9142 (ix86_expand_sse_round): New static function.
9143 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9145 (ix86_builtin_vectorized_function): Handle
9146 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9148 2011-03-14 Tom Tromey <tromey@redhat.com>
9150 * c-parser.c (c_parser_asm_string_literal): Clear
9151 warn_overlength_strings.
9153 2011-03-14 Tom Tromey <tromey@redhat.com>
9155 * c-parser.c (disable_extension_diagnostics): Save
9156 warn_overlength_strings.
9157 (restore_extension_diagnostics): Restore warn_overlength_strings.
9159 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9161 * BASE-VER: Change to 4.7.0.
9163 2011-03-14 Richard Guenther <rguenther@suse.de>
9166 * tree.c (build_vector_from_val): Adjust assert to requirements
9169 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9172 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9174 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9176 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9177 terms of target_flags_explicit. Adjust copyright year.
9179 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9180 * config/rs6000/t-freebsd: New file. Add override for
9183 2011-03-13 Chris Demetriou <cgd@google.com>
9185 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9186 (-fno-diagnostics-show-option): this, to reflect current default.
9187 (-Werror=): Update text about -fno-diagnostics-show-option.
9189 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9192 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9193 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9194 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9195 mode is not V2DImode or V2DFmode.
9196 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9197 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9198 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9200 (movdi_internal64): Likewise.
9202 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9204 PR tree-optimization/47127
9205 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9207 (set_cloog_options): Same.
9208 (scop_to_clast): Same.
9209 (print_clast_stmt): Do not call cloog_state_malloc and
9211 (print_generated_program): Same.
9213 * graphite-clast-to-gimple.h (cloog_state): Declared.
9214 (scop_to_clast): Adjust declaration.
9215 * graphite.c (cloog_state): Defined here.
9216 (graphite_initialize): Call cloog_state_malloc.
9217 (graphite_finalize): Call cloog_state_free.
9219 2011-03-11 Jason Merrill <jason@redhat.com>
9221 * attribs.c (lookup_attribute_spec): Take const_tree.
9224 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9226 * config/sparc/sparc.c (sparc_option_override): Use
9227 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9229 2011-03-11 Richard Guenther <rguenther@suse.de>
9231 PR tree-optimization/48067
9232 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9233 multiplication result will be only used once on the target
9236 2011-03-11 Richard Guenther <rguenther@suse.de>
9238 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9240 2011-03-11 Richard Guenther <rguenther@suse.de>
9243 * tree.c (find_decls_types_r): Do not walk types only reachable
9244 from IDENTIFIER_NODEs.
9246 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9249 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9250 all vnode->force_output nodes as needed.
9252 2011-03-11 Jason Merrill <jason@redhat.com>
9255 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9256 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9258 2011-03-11 Martin Jambor <mjambor@suse.cz>
9260 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9263 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9265 PR tree-optimization/48063
9266 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9267 inline functions called once if !tree_can_inline_p (node->callers).
9269 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9271 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9273 * config/score/score3.c: Delete.
9274 * config/score/score3.h: Delete.
9275 * config/score/mul-div.S: Delete.
9276 * config/score/sfp-machine.h: Add new file.
9277 * config/score/constraints.md: Add new file.
9278 * config/score/t-score-softfp: Add new file.
9279 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9280 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9281 (score7_extra_constraint): Delete.
9282 (score7_option_override): Remove unused code.
9283 * config/score/score.c: Remove score3 and score5 define and code.
9284 * config/score/score.h: Remove score3 and score5 define and code.
9285 * config/score/score.md: Remove score3 template and unusual insn.
9286 * config/score/score.opt: Remove score3 and score5 options.
9288 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9290 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9291 when _HPUX_SOURCE is defined.
9292 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9294 2011-03-10 Jason Merrill <jason@redhat.com>
9297 * stor-layout.c (layout_type): Don't set structural equality
9298 on arrays of incomplete type.
9299 * tree.c (type_hash_eq): Handle comparing them properly.
9301 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9304 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9305 result mode matches original rtl mode.
9307 2011-03-10 Nick Clifton <nickc@redhat.com>
9309 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9310 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9312 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9314 PR rtl-optimization/47866
9315 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9316 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9317 if target wasn't scalar.
9318 * function.c (assign_stack_temp_for_type): Assert that neither
9319 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9320 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9322 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9324 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9326 * config/s390/s390-protos.h (s390_label_align): New prototype.
9327 * config/s390/s390.c (s390_label_align): New function.
9328 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9330 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9333 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9334 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9335 (output_vec_const_move): Ditto.
9337 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9339 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9340 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9341 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9342 Change 'rclass' argument and result type to reg_class_t.
9343 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9345 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9347 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9348 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9349 (TARGET_MEMORY_MOVE_COST): Define.
9350 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9352 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9355 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9358 PR tree-optimization/48022
9359 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9362 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9365 * var-tracking.c (find_use_val): Return NULL for
9366 cui->sets && cui->store_p BLKmode MEMs.
9368 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9370 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9372 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9373 xstormy16_print_operand_address): Remove.
9374 * config/stormy16/stormy16.c (xstormy16_print_operand,
9375 xstormy16_print_operand_address): Make static.
9376 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9378 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9381 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9382 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9385 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9388 * cfgloopmanip.c (fix_bb_placements): Return immediately
9389 if FROM is BASE_LOOP's header.
9391 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9393 * gimplify.c (gimplify_function_tree): Fix building calls
9394 to __builtin_return_address.
9396 2011-03-07 Alan Modra <amodra@gmail.com>
9398 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9399 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9400 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9401 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9403 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9404 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9405 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9406 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9407 * config/rs6000/rs6000.c
9408 (rs6000_elf_end_indicate_exec_stack): Rename to..
9409 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9410 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9411 (rs6000_file_start): ..here.
9412 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9413 file scope variables.
9414 (call_ABI_of_interest): New function.
9415 (init_cumulative_args): Set above vars when function return value
9416 is a float, vector, or small struct.
9417 (rs6000_function_arg_advance_1): Likewise for function args.
9418 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9419 references float args.
9421 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9423 * doc/cfg.texi: Remove "See" before @ref.
9424 * doc/invoke.texi: Likewise.
9426 2011-03-05 Jason Merrill <jason@redhat.com>
9428 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9430 2011-03-05 Anthony Green <green@moxielogic.com>
9432 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9434 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9436 PR rtl-optimization/47899
9437 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9438 to flow_loop_nested_p when moving the loop upward.
9440 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9443 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9445 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9447 PR tree-optimization/47967
9448 * ipa-cp.c (build_const_val): Return NULL instead of creating
9449 VIEW_CONVERT_EXPR for mismatching sizes.
9450 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9451 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9452 give up on versioning.
9454 2011-03-05 Alan Modra <amodra@gmail.com>
9457 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9458 full cmodel medium/large lo_sum + high addresses.
9460 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9462 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9463 pool references in UNSPEC_LTREL_OFFSET.
9465 2011-03-04 Jan Hubicka <jh@suse.cz>
9468 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9469 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9470 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9472 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9473 cgraph_add_thunk): Add node pointers.
9474 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9475 associated to right node.
9476 (input_node): Update use of cgraph_same_body_alias
9477 and cgraph_add_thunk.
9479 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9481 * config/i386/i386.opt (mprefer-avx128): New flag.
9482 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9483 modes when the flag -mprefer-avx128 is on.
9485 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9487 * dwarf2out.c (compare_loc_operands): Fix address handling.
9489 2011-03-04 Alan Modra <amodra@gmail.com>
9491 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9493 2011-03-04 Richard Guenther <rguenther@suse.de>
9496 * expmed.c (extract_bit_field_1): Prefer vector modes that
9497 vec_extract patterns can handle.
9499 2011-03-04 Richard Guenther <rguenther@suse.de>
9502 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9504 2011-03-04 Richard Henderson <rth@redhat.com>
9506 * explow.c (emit_stack_save): Remove 'after' parameter.
9507 (emit_stack_restore): Likewise.
9508 * expr.h: Update to match.
9509 * builtins.c, calls.c, stmt.c: Likewise.
9510 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9511 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9512 * function.c (expand_function_end): Insert the emit_stack_save
9513 sequence before parm_birth_insn instead of after.
9515 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9517 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9518 (ssse3_pmaddubsw128): Ditto.
9519 (ssse3_pmaddubsw): Ditto.
9521 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9523 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9525 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9528 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9529 on TYPE_SIZE_UNIT if it is a DECL.
9532 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9533 first operand is not is_gimple_mem_ref_addr, try to fold it.
9534 If the operand still isn't is_gimple_mem_ref_addr, clear
9537 2011-03-03 Richard Guenther <rguenther@suse.de>
9540 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9542 (refs_may_alias_p_1): For release branches return true if
9543 we are confused by our input.
9545 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9547 * config/s390/s390.c (s390_function_value): Rename to ...
9548 (s390_function_and_libcall_value): ... this.
9549 (s390_function_value): New function.
9550 (s390_libcall_value): New function.
9551 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9552 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9553 target macro definitions.
9554 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9556 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9558 * config/i386/freebsd64.h (CC1_SPEC): Define.
9559 * config/i386/linux64.h (CC1_SPEC): Define.
9560 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9562 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9564 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9566 * config/stormy16/stormy16.c: Include reload.h.
9567 (xstormy16_memory_move_cost): New function.
9568 (TARGET_MEMORY_MOVE_COST): Define.
9570 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9572 PR rtl-optimization/47925
9573 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9574 with side effects. Remove the more-specific check for volatile asms.
9576 2011-03-02 Alan Modra <amodra@gmail.com>
9579 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9580 toc relative addresses for valid offsets.
9582 2011-03-01 Richard Guenther <rguenther@suse.de>
9584 PR tree-optimization/47890
9585 * tree-vect-loop.c (get_initial_def_for_induction): Set
9586 related stmt properly.
9588 2011-03-01 Richard Guenther <rguenther@suse.de>
9591 * lto-streamer.c (lto_record_common_node): Also register
9594 2011-03-01 Richard Guenther <rguenther@suse.de>
9597 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9598 Do not stream DECL_ABSTRACT_ORIGIN.
9599 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9600 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9601 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9602 Do not stream DECL_ABSTRACT_ORIGIN.
9603 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9604 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9606 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9608 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9609 FUNCTION_VALUE_REGNO_P): Remove.
9610 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9611 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9612 Add 'outgoing' argument.
9613 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9615 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9616 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9618 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9621 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9622 (lookup_filename): Likewise.
9623 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9625 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9626 Jakub Jelinek <jakub@redhat.com>
9629 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9630 (assign_stack_local_1): Change last argument type to int.
9631 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9632 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9633 don't record padding space into frame_space_list nor use those areas.
9634 (assign_stack_local): Adjust caller.
9635 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9636 of assign_stack_local, pass 0 as last argument.
9637 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9640 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9643 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9644 Use target address_mode and pointer_mode hooks instead of hardcoded
9645 Pmode and ptr_mode. Handle some simple cases of extending if
9646 POINTERS_EXTEND_UNSIGNED < 0.
9647 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9648 Call convert_debug_memory_address.
9649 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9650 convert_debug_memory_address.
9653 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9654 * configure: Regenerated.
9655 * config.in: Regenerated.
9656 * varasm.c (default_function_section): Return NULL
9657 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9659 2011-02-28 Martin Jambor <mjambor@suse.cz>
9661 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9662 the description to match the printed values.
9664 2011-02-28 Richard Guenther <rguenther@suse.de>
9666 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9667 of the copied scope tree.
9669 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9671 * doc/extend.texi (Function Attributes): Avoid deeply (and
9672 wrongly) nested tables.
9674 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9677 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9678 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9679 r isn't op0 nor op1.
9681 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9683 * config/avr/avr.md: Remove magic comment for emacs.
9685 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9688 * config/avr/avr.c (avr_option_override): Use error on bad options.
9689 (avr_help): New function.
9690 (TARGET_HELP): Define.
9692 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9695 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9696 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9698 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9700 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9701 (ARM Options): Ditto.
9702 (i386 and x86-64 Options): Ditto.
9703 (RX Options): Ditto.
9704 (SPARC Options): Ditto.
9706 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9708 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9709 FreeBSD 6 and later. Generally use cpu generic.
9711 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9713 * doc/cpp.texi: Update copyright years.
9715 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9718 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9720 2011-02-25 Jon Beniston <jon@beniston.com>
9723 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9724 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9725 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9726 (lm32_block_move_inline): Add type cast to remove warning.
9727 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9728 (gen_int_relational): Move declarations to start of function.
9730 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9732 PR tree-optimization/45470
9733 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9734 can throw internally only.
9735 * tree-vect-stmts.c (vectorizable_call): Likewise.
9737 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9739 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9740 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9741 * config/stormy16/stormy16-protos.h
9742 (xstormy16_preferred_reload_class): Remove.
9743 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9744 static. Change 'rclass' argument and return type to reg_class_t.
9745 (TARGET_PREFERRED_RELOAD_CLASS,
9746 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9748 2011-02-24 Richard Guenther <rguenther@suse.de>
9750 * lto-streamer-in.c (input_bb): Do not find referenced vars
9751 in debug statements.
9753 2011-02-23 Jason Merrill <jason@redhat.com>
9755 * common.opt (fabi-version): Document v5 and v6.
9757 2011-02-23 Richard Guenther <rguenther@suse.de>
9759 PR tree-optimization/47849
9760 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9762 2011-02-23 Jie Zhang <jie@codesourcery.com>
9764 * opts-common.c (decode_cmdline_option): Print empty string
9765 argument as "" in decoded->orig_option_with_args_text.
9766 * gcc.c (execute): Print empty string argument as ""
9767 in the verbose output.
9768 (do_spec_1): Keep empty string argument.
9770 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9772 * config.gcc: Declare score-* and crx-* obsolete.
9774 2011-02-23 Jie Zhang <jie@codesourcery.com>
9776 PR rtl-optimization/47763
9777 * web.c (web_main): Ignore naked clobber when replacing register.
9779 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9781 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9784 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9787 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9789 2011-02-22 Mike Stump <mikestump@comcast.net>
9791 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9793 * configure: Regenerate.
9795 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9797 PR rtl-optimization/46002
9798 * ira-color.c (update_copy_costs): Change class intersection
9799 test to reg_class_contents[] test of 'hard_regno'.
9801 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9803 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9805 * config/hpux11.opt (mt): Likewise.
9806 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9807 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9808 * config/vax/elf.opt (mno-asm-pic): Likewise.
9809 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9811 2011-02-21 Mike Stump <mikestump@comcast.net>
9814 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9815 tree so we can get save the type.
9816 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9817 for CFString instead of trying to use past the end of the builtins.
9818 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9819 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9820 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9821 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9822 Rename to darwin_builtin_cfstring.
9823 (darwin_init_cfstring_builtins): Return the built type.
9825 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9828 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9829 (_mm256_insert_epi64): Use _mm_insert_epi64.
9831 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9833 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9834 * config/stormy16/stormy16-protos.h
9835 (xstormy16_mode_dependent_address_p): Remove.
9836 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9837 Make static. Change return type to bool. Change argument type to
9838 const_rtx. Remove dead code.
9839 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9841 2011-02-21 Richard Guenther <rguenther@suse.de>
9844 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9845 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9846 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9848 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9849 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9851 2011-02-20 Richard Guenther <rguenther@suse.de>
9854 * tree.c (free_lang_data_in_decl): Clean builtins from
9855 the TU decl BLOCK_VARS.
9857 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9861 * haifa-sched.c (fix_tick_ready): Skip tick computation
9864 2011-02-19 Richard Guenther <rguenther@suse.de>
9867 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9868 Remove lazy BLOCK_VARS streaming.
9869 (lto_input_ts_block_tree_pointers): Likewise.
9870 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9872 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9874 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9876 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9878 * config/i386/biarch32.h, config/i386/mach.h,
9879 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9881 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9884 * config/i386/i386.md (peephole2 for shift and plus): Use
9885 operands[1] original mode in the first insn.
9887 2011-02-18 Mike Stump <mikestump@comcast.net>
9889 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9891 2011-02-18 Jan Hubicka <jh@suse.cz>
9894 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9895 to zero when the function is not inlinable at all.
9897 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9899 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9900 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9901 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9902 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9903 * config/pa/t-pa64: Likewise.
9904 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9906 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9909 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9911 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9914 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9916 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9918 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9919 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9920 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9921 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9922 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9923 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9924 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9925 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9926 m32r_legitimate_address_p): New functions.
9927 * config/m32r/constraints.md (constraint "S"): Don't use
9928 STORE_PREINC_PREDEC_P.
9929 (constraint "U"): Don't use LOAD_POSTINC_P.
9931 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9933 PR rtl-optimization/46178
9934 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9935 compute ira_hard_regno_cover_class[].
9937 2011-02-18 Richard Guenther <rguenther@suse.de>
9940 * lto-streamer.h (lto_global_var_decls): Declare.
9941 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9942 statics for global var processing.
9944 2011-02-18 Richard Guenther <rguenther@suse.de>
9946 PR tree-optimization/47737
9947 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9948 edge dominance check.
9950 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9953 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9954 avoid invalid rtx sharing.
9956 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9958 * doc/cpp.texi (Obsolete Features): Add background on the
9959 origin of assertions.
9961 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9963 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9965 * config/darwin.c (output_objc_section_asm_op): Added support for
9967 (is_objc_metadata): New.
9968 (darwin_objc2_section): New.
9969 (darwin_objc1_section): New.
9970 (machopic_select_section): Added support for ABI v1 and v2.
9971 (darwin_emit_objc_zeroed): New.
9972 (darwin_output_aligned_bss): Detect objc metadata and treat it
9974 (darwin_asm_output_aligned_decl_common): Same.
9975 (darwin_asm_output_aligned_decl_local): Same.
9976 * config/darwin-sections.def: Updated for ABI v1 and v2.
9977 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9978 compiling Objective-C code for the NeXT runtime, default to using
9979 ABI version 0 for 32-bit, and version 2 for 64-bit.
9981 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9983 * common.opt (optimize_fast): New Variable.
9984 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9985 instead of local variable ofast.
9987 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9989 * doc/invoke.texi (fobjc-abi-version): Documented.
9990 (fobjc-nilcheck): Documented.
9991 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9994 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9997 * common.opt (export-dynamic): New Driver option.
9998 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10000 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10002 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10004 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10005 Jan Hubicka <jh@suse.cz>
10009 * cfgexpand.c (account_used_vars_for_block): Remove.
10010 (estimated_stack_frame_size): Use referenced vars.
10011 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10012 that were referenced in the original function. Test src_fn
10013 rather than cfun. Drop redundant get_var_ann.
10014 (setup_one_parameter): Drop redundant get_var_ann.
10015 (declare_return_variable): Likewise.
10016 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10017 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10018 * ipa-inline.c (compute_inline_parameters): Do not compute
10019 disregard_inline_limits here.
10020 (compute_inlinable_for_current, pass_inlinable): New.
10021 (pass_inline_parameters): Require PROP_referenced_vars.
10022 * cgraphunit.c (cgraph_process_new_functions): Don't run
10023 compute_inline_parameters explicitly unless function is in SSA form.
10024 (cgraph_analyze_function): Set .disregard_inline_limits.
10025 * tree-sra.c (convert_callers): Compute inliner parameters
10026 only for functions already in SSA form.
10028 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10030 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10031 -mlittle-endian-data.
10033 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10035 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10036 -mno-fpu, not -fpu and -no-fpu.
10037 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10038 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10040 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10043 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10044 input reload with PLUS RTX.
10046 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10048 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10049 of InverseVar(MDMX).
10051 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10053 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10056 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10058 * config/mn10300/mn10300.opt (mno-crt0): New.
10060 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10062 * config/m68k/uclinux.opt (static-libc): New Driver option.
10064 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10066 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10068 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10070 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10071 %{muser-extend-enabled}.
10073 2011-02-16 Richard Guenther <rguenther@suse.de>
10075 PR tree-optimization/47738
10076 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10077 the TODO from tree_predictive_commoning.
10079 2011-02-15 Jeff Law <law@redhat.com>
10082 2011-01-25 Jeff Law <law@redhat.com>
10084 PR rtl-optimization/37273
10085 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10086 handle them like argument loads from stack slots. Do not double
10087 count memory for memory constants and argument loads from stack slots.
10089 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10091 PR middle-end/47725
10092 * combine.c (cant_combine_insn_p): Revert the last change.
10094 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10097 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10098 mode for vector constants. Remove code that checks for TImode.
10100 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10104 * cgraph.h (compute_inline_parameters): Return void.
10105 * ipa-inline.c (compute_inline_parameters): Adjust.
10107 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10111 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10113 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10114 * ipa-inline.c (compute_inline_parameters): Adjust.
10116 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10120 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10121 Adjust all users. Pass FN to...
10122 * tree-flow-inline.h (first_referenced_var): ... this. Add
10124 * ipa-struct-reorg.c: Adjust.
10125 * tree-dfa.c: Adjust.
10126 * tree-into-ssa.c: Adjust.
10127 * tree-sra.c: Adjust.
10128 * tree-ssa-alias.c: Adjust.
10129 * tree-ssa-live.c: Adjust.
10130 * tree-ssa.c: Adjust.
10131 * tree-ssanames.c: Adjust.
10132 * tree-tailcall.c: Adjust.
10134 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10138 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10139 Adjust all callers.
10140 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10141 * tree-flow-inline.h: Adjust.
10142 * gimple-pretty-print.c: Adjust.
10143 * tree-into-ssa.c: Adjust.
10144 * tree-ssa.c: Adjust.
10145 * cfgexpand.c: Adjust.
10147 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10149 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10150 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10151 (EXTRA_CONSTRAINT): Delete.
10152 * config/iq2000/constraints.md: New file.
10153 * config/iq2000/iq2000.md: Include it.
10154 (define_insn ""): Delete.
10155 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10156 unsupported constraint letters from patterns.
10157 (call_value, call_value_internal1): Likewise.
10158 (call_value_multiple_internal1): Likewise.
10160 2011-02-15 Nick Clifton <nickc@redhat.com>
10162 * config/mn10300/mn10300.c: Include tm-constrs.h.
10163 (struct liw_data): New data structure describing an LIW candidate
10165 (extract_bundle): Use struct liw_data. Allow small integer
10166 operands for some instructions.
10167 (check_liw_constraints): Use struct liw_data. Remove swapped
10168 parameter. Add comments describing the checks. Fix bug when
10169 assigning the source of liw1 to the source of liw2.
10170 (liw_candidate): Delete. Code moved into extract_bundle.
10171 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10173 * config/mn10300/predicates.md (liw_operand): New predicate.
10174 Allows registers and small integer constants.
10175 * config/mn10300/constraints.md (O): New constraint. Accetps
10176 integers in the range -8 to +7 inclusive.
10177 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10178 for moving a small integer into a register. Give this alternative
10180 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10181 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10182 using the J,K,L and M constraints,
10183 (liw): Remove SI mode on second operands to allow for HI and QI
10185 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10188 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10190 PR middle-end/47725
10191 * combine.c (cant_combine_insn_p): Check zero/sign extended
10194 2011-02-15 Richard Guenther <rguenther@suse.de>
10196 PR tree-optimization/47743
10197 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10198 for a non-type-compatible VN lookup bail out.
10200 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10202 * config/fr30/constraints.md: New file.
10203 * config/fr30/fr30.md: Include it.
10204 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10205 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10206 (EXTRA_CONSTRAINT): Delete.
10208 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10210 * config/frv/constraints.md: New file.
10211 * config/frv/predicates.md: Include it.
10212 * config/frv/frv.c (reg_class_from_letter): Delete.
10213 (frv_option_override): Don't initialize it.
10214 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10215 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10216 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10217 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10218 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10219 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10220 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10221 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10222 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10223 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10224 (REG_CLASS_FROM_CONSTRAINT): Delete.
10226 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10228 PR middle-end/47581
10229 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10230 if frame size is 0 in a leaf function.
10232 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10235 * config/alpha/host-osf.c: New file.
10236 * config/alpha/x-osf: New file.
10237 * config.host (alpha*-dec-osf*): Use it.
10239 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10241 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10242 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10243 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10244 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10246 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10248 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10250 * config/stormy16/constraints.md: New file.
10251 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10252 Use satisfies_constraint_Q and satisfies_constraint_R.
10253 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10255 (xstormy16_legitiamte_address_p): Declare.
10256 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10257 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10258 (EXTRA_CONSTRAINT): Delete.
10259 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10261 (xstormy16_extra_constraint_p): Delete.
10263 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10265 PR tree-optimization/46494
10266 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10267 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10268 (pass_rtl_loop_done): Add TODO_verify_flow.
10269 * fwprop.c (pass_rtl_fwprop): Likewise.
10270 * modulo-sched.c (pass_sms): Likewise.
10271 * tree-ssa-dom.c (pass_dominator): Likewise.
10272 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10273 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10274 (pass_tree_loop_done): Likewise.
10275 * tree-ssa-pre.c (execute_pre): Likewise.
10276 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10277 * tree-ssa-sink.c (pass_sink_code): Likewise.
10278 * tree-vrp.c (pass_vrp): Likewise.
10280 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10282 * config/v850/constraints.md: New file.
10283 * config/v850/v850.md: Include it.
10284 * config/v850/predicates.md (reg_or_0_operand): Use
10285 satisfies_constraint_G.
10286 (special_symbolref_operand): Use satisfies_constraint_K.
10287 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10288 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10289 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10290 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10291 (EXTRA_CONSTRAINT): Delete.
10292 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10293 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10294 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10296 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10299 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10302 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10304 * config/mcore/constraints.md: New file.
10305 * config/mcore/mcore.md: Include it.
10306 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10307 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10308 (REG_CLASS_FROM_LETTER): Delete.
10309 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10310 insn_const_int_ok_for_constraint.
10311 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10312 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10313 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10314 (EXTRA_CONSTRAINT): Delete.
10316 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10319 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10320 (IS_SIGHANDLER): Define.
10321 (sparc64_is_sighandler): New function, split off from
10322 sparc64_fallback_frame_state.
10323 (sparc_is_sighandler): New function, split off from
10324 sparc_fallback_frame_state.
10325 (sparc64_fallback_frame_state): Merge with ...
10326 (sparc_fallback_frame_state): ... this into ...
10327 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10328 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10329 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10330 stack instead of hardcoded offsets.
10332 2011-02-14 Andriy Gapon <avg@freebsd.org>
10335 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10337 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10339 * configure: Regenerate.
10341 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10344 * gcc.c (asm_options): Correct spec matching --target-help.
10346 2011-02-12 Martin Jambor <mjambor@suse.cz>
10348 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10349 to gimple call error.
10351 2011-02-12 Mike Stump <mikestump@comcast.net>
10353 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10354 comments in backslash regions.
10356 2011-02-12 Mike Stump <mikestump@comcast.net>
10357 Jakub Jelinek <jakub@redhat.com>
10358 Iain Sandoe <iains@gcc.gnu.org>
10361 * dwarf2out.c (output_cfa_loc): When required, apply the
10362 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10363 (output_loc_sequence): Likewise.
10364 (output_loc_operands_raw): Likewise.
10365 (output_loc_sequence_raw): Likewise.
10366 (output_cfa_loc): Likewise.
10367 (output_loc_list): Suppress register number adjustment when
10368 calling output_loc_sequence()
10369 (output_die): Likewise.
10371 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10373 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10375 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10376 xtensa_memory_move_cost): New functions.
10377 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10379 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10382 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10383 in the current directory.
10384 * configure: Rebuilt.
10386 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10388 * config/darwin.c (darwin_override_options): Add a hunk missed
10389 from the commit of r168571. Trim comment line lengths and
10390 correct indents of the preceding block.
10392 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10394 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10397 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10399 * common.opt (nostartfiles): New Driver option.
10401 2011-02-11 Xinliang David Li <davidxl@google.com>
10403 PR tree-optimization/47707
10404 * tree-chrec.c (convert_affine_scev): Keep type precision.
10406 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10408 PR tree-optimization/47420
10409 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10411 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10413 PR rtl-optimization/47614
10414 * rtl.h (check_for_inc_dec): Declare.
10415 * dse.c (check_for_inc_dec): Externalize...
10416 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10417 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10419 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10422 * gcc.c (main): Do not compile inputs if there were errors in
10424 * opts-common.c (read_cmdline_option): Check for wrong language
10425 after other error checks.
10427 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10429 * cgraph.c: Fix comment typos.
10430 * cgraph.h: Likewise.
10431 * cgraphunit.c: Likewise.
10432 * ipa-cp.c: Likewise.
10433 * ipa-inline.c: Likewise.
10434 * ipa-prop.c: Likewise.
10435 * ipa-pure-const.c: Likewise.
10436 * ipa-ref.c: Likewise.
10437 * ipa-reference.c: Likewise.
10439 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10442 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10444 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10447 * doc/sourcebuild.texi (Require Support): Document
10448 dg-require-ascii-locale.
10450 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10452 * doc/lto.texi (Write summary): Fix missing parentheses.
10454 2011-02-10 DJ Delorie <dj@redhat.com>
10456 * config/m32c/m32c.c (m32c_option_override): Disable
10457 -fcombine-stack-adjustments until flag value tracking and compare
10458 optimization can be rewritten.
10460 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10462 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10464 (PROCESSOR_DEFAULT64): Likewise.
10466 2011-02-10 Richard Henderson <rth@redhat.com>
10468 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10469 change from 2011-02-03.
10470 * config/rx/rx.c (flags_from_code): Likewise.
10471 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10472 is valid, n/pz otherwise.
10473 (rx_select_cc_mode): Return CCmode if Y is not zero.
10475 2011-02-10 Richard Guenther <rguenther@suse.de>
10477 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10479 2011-02-10 Richard Guenther <rguenther@suse.de>
10481 PR tree-optimization/47677
10482 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10484 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10487 * combine.c (make_compound_operation): Only change shifts into
10488 multiplication for SCALAR_INT_MODE_P.
10490 2011-02-10 Jie Zhang <jie@codesourcery.com>
10494 2011-02-05 Jie Zhang <jie@codesourcery.com>
10496 * web.c (entry_register): Don't clobber the number of the
10497 first uninitialized reference in used[].
10499 2011-02-09 Richard Guenther <rguenther@suse.de>
10501 PR tree-optimization/47664
10502 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10505 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10509 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10511 (PROCESSOR_DEFAULT64): Same.
10512 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10514 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10516 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10518 2011-02-09 Martin Jambor <mjambor@suse.cz>
10520 PR middle-end/45505
10521 * tree-sra.c (struct access): New flags grp_scalar_read and
10522 grp_scalar_write. Changed description of assignment read and write
10524 (dump_access): Dump new flags, reorder all of them.
10525 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10526 to detect multiple scalar reads.
10527 (analyze_access_subtree): Use the new scalar read write flags instead
10528 of the old flags. Adjusted comments.
10530 2011-02-08 DJ Delorie <dj@redhat.com>
10533 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10536 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10538 * config/m68k/uclinux.opt: New.
10539 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10541 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10543 * config/cris/elf.opt (sim): New Driver option.
10545 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10547 * config/xtensa/elf.opt: New.
10548 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10550 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10552 * config/vax/elf.opt: New.
10553 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10555 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10557 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10559 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10561 * config/gnu-user.opt: New.
10562 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10563 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10564 *-*-uclinux*): Use gnu-user.opt.
10566 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10568 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10569 * config/i386/gnu.h (CPP_SPEC): Likewise.
10571 2011-02-08 Ian Lance Taylor <iant@google.com>
10573 * common.opt (fcx-limited-range): Add SetByCombined flag.
10574 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10575 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10576 (fassociative-math, freciprocal-math): Likewise.
10577 (funsafe-math-optimizations): Likewise.
10578 * opth-gen.awk: Handle SetByCombined.
10579 * optc-gen.awk: Likewise.
10580 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10581 (set_unsafe_math_optimizations_flags): Likewise.
10582 * doc/options.texi (Option properties): Document SetByCombined.
10584 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10586 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10587 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10588 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10589 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10590 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10592 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10594 PR tree-optimization/46834
10595 PR tree-optimization/46994
10596 PR tree-optimization/46995
10597 * graphite-sese-to-poly.c (used_outside_reduction): New.
10598 (detect_commutative_reduction): Call used_outside_reduction.
10599 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10600 translate_scalar_reduction_to_array only when at least one
10601 loop-phi/close-phi tuple has been detected.
10603 2011-02-08 Richard Guenther <rguenther@suse.de>
10605 PR middle-end/47639
10606 * tree-vect-generic.c (expand_vector_operations_1): Update
10608 (expand_vector_operations): ... not here. Cleanup EH info
10609 and the CFG if required.
10611 2011-02-08 Richard Guenther <rguenther@suse.de>
10613 PR tree-optimization/47641
10614 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10615 require type compatibility.
10617 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10619 * gimple-low.c (lower_function_body): Don't remove the location of
10620 the return statement here.
10621 (lower_gimple_return): Do it here instead but only if the return
10622 statement is actually used twice.
10624 2011-02-08 Richard Guenther <rguenther@suse.de>
10626 PR tree-optimization/47632
10627 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10628 unused up_to_stmt parameter, return whether cfg-cleanup is
10629 necessary, remove EH info properly.
10630 (forward_propagate_into_gimple_cond): Adjust caller.
10631 (forward_propagate_into_cond): Likewise.
10632 (forward_propagate_comparison): Likewise.
10633 (tree_ssa_forward_propagate_single_use_vars): Make
10634 forward_propagate_comparison case similar to the two others.
10636 2011-02-08 Nick Clifton <nickc@redhat.com>
10638 * config/mn10300/mn10300.opt (mliw): New command line option.
10639 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10640 (liw_bundling): New automaton.
10641 (liw): New attribute.
10642 (liw_op): New attribute.
10643 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10644 (movsi_internal): Add LIW attributes.
10645 (andsi3): Likewise.
10646 (iorsi3): Likewise.
10647 (xorsi3): Likewise.
10648 (addsi3): Separate register and immediate alternatives.
10649 Add LIW attributes.
10650 (subsi3): Likewise.
10652 (aslsi3): Likewise.
10653 (lshrsi3): Likewise.
10654 (ashrsi3): Likewise.
10655 (liw): New pattern.
10656 * config/mn10300/mn10300.c (liw_op_names): New
10657 (mn10300_print_operand): Handle 'W' operand descriptor.
10658 (extract_bundle): New function.
10659 (check_liw_constraints): New function.
10660 (liw_candidate): New function.
10661 (mn10300_bundle_liw): New function.
10662 (mn10300_reorg): New function.
10663 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10664 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10665 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10666 __LIW__ or __NO_LIW__.
10667 * doc/invoke.texi: Describe the -mliw command line option.
10669 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10671 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10672 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10673 pthread_mutex_unlock): Remove.
10674 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10675 * config/pa/t-pa64: Likewise.
10676 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10677 shared libc if not linking against libpthread.
10678 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10680 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10683 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10684 on 10.6 and later to ensure that we always use the unwinder from
10685 the system. Only add -no_compact_unwind when tarteting darwin
10688 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10691 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10692 (vec_interleave_lowv2sf): Ditto.
10693 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10694 (vec_extract_oddv2sf): Ditto.
10696 2011-02-07 Mike Stump <mikestump@comcast.net>
10699 Add __ieee_divdc3 entry point.
10700 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10702 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10703 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10704 * config/darwin.c (darwin_rename_builtins): Add.
10705 * config/darwin-protos.h (darwin_rename_builtins): Add.
10707 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10710 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10713 2011-02-07 Mike Stump <mikestump@comcast.net>
10715 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10717 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10720 * config/avr/libgcc.S (exit): Move .endfunc
10722 2011-02-07 Richard Guenther <rguenther@suse.de>
10724 PR tree-optimization/47615
10725 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10726 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10727 (run_scc_vn): Initialize it.
10728 (visit_reference_op_load): Use it.
10729 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10731 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10733 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10734 DImode trapping arithmetic libfuncs.
10736 2011-02-07 Richard Guenther <rguenther@suse.de>
10738 PR tree-optimization/47621
10739 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10741 (execute_update_addresses_taken): ... here. Make it more
10742 conservative in what we accept.
10744 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10746 * config/sparc/freebsd.h (ASM_SPEC): Define.
10747 * config/sparc/vxworks.h (ASM_SPEC): Define.
10749 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10751 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10753 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10755 * doc/invoke.texi: Remove reference to compiler internals from
10756 user documentation.
10758 * reg-notes.def: Remove REG_VALUE_PROFILE.
10759 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10761 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10763 PR middle-end/47610
10764 * varasm.c (default_section_type_flags): If decl is NULL,
10765 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10767 2011-02-05 Jie Zhang <jie@codesourcery.com>
10770 * web.c (entry_register): Don't clobber the number of the
10771 first uninitialized reference in used[].
10773 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10775 PR tree-optimization/46194
10776 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10777 (build_classic_dist_vector_1): Do not represent classic distance
10778 vectors when the access functions are variating in different loops.
10780 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10782 * config/mips/iris6.opt: New.
10783 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10785 2011-02-04 Richard Henderson <rth@redhat.com>
10786 Steve Ellcey <sje@cup.hp.com>
10789 * config/ia64/predicates.md (mux1_brcst_element): New.
10790 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10791 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10792 (ia64_unpack_sign): New.
10793 (ia64_expand_unpack): Rewrite using new routines.
10794 (ia64_expand_widen_sum): Ditto.
10795 (ia64_expand_dot_prod_v8qi): Ditto.
10796 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10797 routines, add endian check.
10798 (pmpy2_even): Rename from pmpy2_r, add endian check.
10799 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10800 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10801 (vec_widen_smult_hi_v4hi): Ditto.
10802 (vec_widen_umult_lo_v4hi): Ditto.
10803 (vec_widen_umult_hi_v4hi): Ditto.
10804 (mulv2si3): Change endian checks.
10805 (sdot_prodv4hi): Rewrite with new calls.
10806 (udot_prodv4hi): New.
10807 (vec_pack_ssat_v4hi): Add endian check.
10808 (vec_pack_usat_v4hi): Ditto.
10809 (vec_pack_ssat_v2si): Ditto.
10810 (max1_even): Rename from max1_r, add endian check.
10811 (max1_odd): Rename from max1_l, add endian check.
10812 (*mux1_rev): Format change.
10813 (*mux1_mix): Ditto.
10814 (*mux1_shuf): Ditto.
10815 (*mux1_alt): Ditto.
10816 (*mux1_brcst_v8qi): Use new predicate.
10817 (vec_extract_evenv8qi): Remove endian check.
10818 (vec_extract_oddv8qi): Ditto.
10819 (vec_interleave_lowv4hi): Format change.
10820 (vec_interleave_highv4hi): Ditto.
10821 (mix2_even): Rename from mix2_r, add endian check.
10822 (mix2_odd): Rename from mux2_l, add endian check.
10823 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10824 (vec_extract_evenodd_helper): Format change.
10825 (vec_extract_evenv4hi): Remove endian check.
10826 (vec_extract_oddv4hi): Remove endian check.
10827 (vec_interleave_lowv2si): Format change.
10828 (vec_interleave_highv2si): Format change.
10829 (vec_initv2si): Remove endian check.
10830 (vecinit_v2si): Add endian check.
10831 (reduc_splus_v2sf): Add endian check.
10832 (reduc_smax_v2sf): Ditto.
10833 (reduc_smin_v2sf): Ditto.
10834 (vec_initv2sf): Remove endian check.
10835 (fpack): Add endian check.
10836 (fswap): Add endian check.
10837 (vec_interleave_highv2sf): Add endian check.
10838 (vec_interleave_lowv2sf): Add endian check.
10839 (fmix_lr): Add endian check.
10840 (vec_setv2sf): Format change.
10841 (*vec_extractv2sf_0_be): Use shift to extract operand.
10842 (*vec_extractv2sf_1_be): New.
10843 (vec_pack_trunc_v4hi): Add endian check.
10844 (vec_pack_trunc_v2si): Format change.
10846 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10848 PR inline-asm/23200
10849 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10850 do bb, locus and block comparison and disallow loads if it is not set.
10851 (stmt_is_replaceable_p): New function.
10852 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10854 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10855 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10857 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10859 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10861 * config/rs6000/xilinx.opt: New.
10862 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10864 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10866 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10868 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10870 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10871 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10872 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10873 secondary_reload_info, xtensa_secondary_reload): Remove.
10874 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10875 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10876 (xtensa_preferred_reload_class): Make static. Change return and
10877 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10878 Use CONST_DOUBLE_P predicate.
10879 (xtensa_preferred_output_reload_class): New function.
10880 (xtensa_secondary_reload): Make static.
10882 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10884 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10885 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10886 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10888 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10890 PR middle-end/31490
10891 * output.h (SECTION_RELRO): Define.
10892 (SECTION_MACH_DEP): Adjust.
10893 (get_variable_section): New prototype.
10894 * varpool.c (varpool_finalize_named_section_flags): New function.
10895 (varpool_assemble_pending_decls): Call it.
10896 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10897 * cgraphunit.c (cgraph_output_in_order): Call
10898 varpool_finalize_named_section_flags.
10899 * varasm.c (get_section): Allow section flags conflicts between
10900 relro and read-only sections if the section hasn't been declared yet.
10901 Set SECTION_OVERRIDE after diagnosing section type conflict.
10902 (get_variable_section): No longer static.
10903 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10904 readonly sections that need relocations.
10905 (decl_readonly_section_1): New function.
10906 (decl_readonly_section): Use it.
10909 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10910 Steve Ellcey <sje@cup.hp.com>
10912 PR middle-end/31490
10913 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10914 if section attribute used.
10916 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10918 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10919 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10920 (darwin_init_sections): Remove assertion.
10922 2011-02-03 Nick Clifton <nickc@redhat.com>
10924 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10926 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10927 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10928 instead of "n" and "pz".
10929 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10932 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10935 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10936 fma, expand FMA_EXPR as fma{,f,l} call.
10939 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10940 copy them into a unsigned char variable and pass address of it to
10941 lto_output_data_stream.
10944 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10945 around backend_init_target and lang_dependent_init_target calls.
10946 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10947 (verify_cgraph_node): Don't call set_cfun here. Use
10948 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10949 Set error_found for incorrectly represented calls to thunks.
10951 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10954 PR rtl-optimization/43494
10955 * rtl.h (for_each_inc_dec_fn): New type.
10956 (for_each_inc_dec): Declare.
10957 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10958 (for_each_inc_dec_find_inc_dec): New fn.
10959 (for_each_inc_dec_find_mem): New fn.
10960 (for_each_inc_dec): New fn.
10961 * dse.c (struct insn_size): Remove.
10962 (replace_inc_dec, replace_inc_dec_mem): Remove.
10963 (emit_inc_dec_insn_before): New fn.
10964 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10965 (canon_address): Pass mem modes to cselib_lookup.
10966 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10967 (cselib_lookup_from_insn): Likewise.
10968 (cselib_subst_to_values): Likewise.
10969 * cselib.c (find_slot_memmode): New var.
10970 (cselib_find_slot): New fn. Use it instead of
10971 htab_find_slot_with_hash everywhere.
10972 (entry_and_rtx_equal_p): Use find_slot_memmode.
10973 (autoinc_split): New fn.
10974 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10975 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10976 Deal with autoinc. Special-case recursion into MEMs.
10977 (cselib_hash_rtx): Likewise.
10978 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10979 address and MEM modes.
10980 (cselib_subst_to_values): Add memmode, pass it on.
10982 (cselib_lookup): Add memmode argument, pass it on.
10983 (cselib_lookup_from_insn): Add memmode.
10984 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10985 (struct cselib_record_autoinc_data): New.
10986 (cselib_record_autoinc_cb): New fn.
10987 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10988 mode to cselib_lookup. Reset autoinced REGs here instead of...
10989 (cselib_process_insn): ... here.
10990 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10992 (add_uses): Likewise, also to cselib_subst_to_values.
10993 (add_stores): Likewise.
10994 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10995 cselib_subst_to_values.
10996 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10997 * gcse.c (do_local_cprop): Adjusted.
10998 * postreload.c (reload_cse_simplify_set): Adjusted.
10999 (reload_cse_simplify_operands): Adjusted.
11000 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11002 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11004 PR tree-optimization/45122
11005 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11006 unsafe assumptions when there's more than one loop exit.
11008 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11011 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11012 Document using vector double with the load/store builtins, and
11013 that the load/store builtins always use Altivec instructions.
11015 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11016 to use altivec memory instructions, even on VSX.
11017 (vector_altivec_store_<mode>): Ditto.
11019 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11022 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11023 V2DF, V2DI support to load/store overloaded builtins.
11025 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11026 altivec load/store builtins for V2DF/V2DI types.
11028 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11029 set avoid indexed addresses on power6 if -maltivec.
11030 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11031 vector_altivec_load/vector_altivec_store builtins.
11032 (altivec_expand_st_builtin): Ditto.
11033 (altivec_expand_builtin): Add VSX memory builtins.
11034 (rs6000_init_builtins): Add V2DI types to internal types.
11035 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11036 load/store builtins.
11037 (rs6000_address_for_altivec): Insure memory address is appropriate
11040 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11041 vec_vsx_ld and vec_vsx_st.
11042 (vsx_store_<mode>): Ditto.
11044 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11045 variables to hold long long types for VSX vector memory builtins.
11046 (RS6000_BTI_unsigned_long_long): Ditto.
11047 (long_long_integer_type_internal_node): Ditti.
11048 (long_long_unsigned_type_internal_node): Ditti.
11050 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11051 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11052 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11054 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11056 (vec_vsx_st): Ditto.
11058 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11060 * config/pa/pa-hpux10.opt: New.
11061 * config/hpux11.opt (pthread): New Driver option.
11062 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11063 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11065 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11067 * config/ia64/vms.opt: New.
11068 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11070 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11073 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11074 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11075 generator functions.
11076 (vsx_floatuns<VSi><mode>2): Ditto.
11077 (vsx_fix_trunc<mode><VSi>2): Ditto.
11078 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11080 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11082 * config/i386/djgpp.opt (posix): New Driver option.
11084 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11086 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11087 Move to the unsupported targets list.
11089 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11091 PR rtl-optimization/47525
11092 * df-scan.c: Update copyright years.
11093 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11094 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11096 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11098 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11099 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11100 (ASM_OUTPUT_ASCII): Remove.
11101 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11103 2011-02-02 Jeff Law <law@redhat.com>
11105 PR middle-end/47543
11106 * reload.c (find_reloads_address): Handle reg+d address where both
11107 components are invalid by reloading the entire address.
11109 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11110 Richard Guenther <rguenther@suse.de>
11112 PR tree-optimization/40979
11114 * passes.c (init_optimization_passes): After LIM call copy_prop
11115 and DCE to clean up.
11116 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11118 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11120 PR tree-optimization/47576
11121 PR tree-optimization/47555
11122 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11123 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11124 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11125 * tree-scalar-evolution.c (follow_ssa_edge): Use
11126 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11128 2011-02-02 Richard Guenther <rguenther@suse.de>
11130 PR tree-optimization/47566
11131 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11133 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11137 * tree-inline.c (declare_return_variable): Remove unused caller
11142 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11143 * cfgexpand.c (account_used_vars_for_block): Use them.
11144 * tree-nrv.c (tree_nrv): Likewise.
11145 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11146 (dump_scope_block): Likewise.
11147 (remove_unused_locals): Likewise.
11151 * tree-inline.c (declare_return_variable): Add result decl to
11152 local decls only once.
11153 * gimple-low.c (record_vars_into): Mark newly-created variables
11156 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11162 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11164 (no_real_insns_p, schedule_block, set_priorities): Drop special
11165 treatment of boundary debug insns.
11166 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11167 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11168 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11169 (BOUNDARY_DEBUG_INSN_P): Likewise.
11170 (SCHEDULE_DEBUG_INSN_P): Likewise.
11171 * sched-rgn.c (init_ready_list): Drop special treatment of
11172 boundary debug insns.
11173 * final.c (rest_of_clean_state): Clear notes' BB.
11175 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11177 * config/openbsd.opt (assert=): New Driver option.
11179 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11181 * config/i386/nto.opt: New.
11182 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11184 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11186 * config/i386/netware.opt: New.
11187 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11189 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11191 * config/interix.opt (posix): New Driver option.
11193 2011-02-01 DJ Delorie <dj@redhat.com>
11195 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11197 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11200 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11202 PR tree-optimization/47561
11203 * toplev.c (process_options): Print the Graphite flags. Add
11204 flag_loop_flatten to the list of options requiring Graphite.
11206 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11208 * config/i386/cygming.opt (posix): New Driver option.
11210 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11212 * config/arm/vxworks.opt: New.
11213 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11215 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11217 * config/alpha/elf.opt: New.
11218 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11219 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11221 2011-02-01 Richard Guenther <rguenther@suse.de>
11223 PR tree-optimization/47559
11224 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11225 store-motion on references that can throw.
11227 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11229 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11230 * tree-pass.h (TDF_CSELIB): New macro.
11231 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11232 cselib_lookup): Check for it rather than for TDF_DETAILS.
11234 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11237 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11238 is HOST_BIT_BUCKET.
11240 * opts.c (finish_options): Don't add x_aux_base_name if it is
11243 2011-02-01 Richard Guenther <rguenther@suse.de>
11245 PR tree-optimization/47555
11247 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11249 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11251 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11254 * config/lm32/t-lm32: Add multilib for all CPU options.
11256 2011-02-01 Richard Guenther <rguenther@suse.de>
11258 PR tree-optimization/47541
11259 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11260 sure to have a field at offset zero.
11262 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11264 * config/arc/arc.opt (EB, EL): New Driver options.
11266 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11268 * config/alpha/osf5.opt: New.
11269 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11271 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11273 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11275 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11277 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11278 -floop-interchange.
11279 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11280 is an alias of -floop-interchange and that it requires the
11281 Graphite infrastructure.
11282 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11283 flag_loop_interchange based on the value of flag_tree_loop_linear.
11285 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11286 Richard Guenther <rguenther@suse.de>
11288 PR tree-optimization/47538
11289 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11290 type instead of r1type, except for comparisons. For right
11291 shifts and comparisons punt if there are mismatches in
11292 sizetype vs. non-sizetype types.
11294 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11296 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11299 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11301 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11303 * configure: Regenerate.
11305 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11307 * configure.ac (gcc_cv_ld_static_option): Define.
11308 (gcc_cv_ld_dynamic_option): Define.
11309 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11311 (HAVE_LD_STATIC_DYNAMIC): Update message.
11312 (LD_STATIC_OPTION): Define.
11313 (LD_DYNAMIC_OPTION): Define.
11314 * configure: Regenerate.
11315 * config.in: Regenerate.
11316 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11317 HAVE_LD_STATIC_DYNAMIC]: Use them.
11319 2011-01-31 Nick Clifton <nickc@redhat.com>
11321 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11322 registers inside interrupt handlers if the handler is not a leaf
11325 2011-01-31 Nick Clifton <nickc@redhat.com>
11327 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11328 reg_renumber returning an INVALID_REGNUM.
11330 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11333 * doc/install.texi: Document host options discarded when cross
11334 configuring target libraries.
11336 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11339 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11342 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11344 (no_real_insns_p, schedule_block, set_priorities): Drop special
11345 treatment of boundary debug insns.
11346 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11347 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11348 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11349 (BOUNDARY_DEBUG_INSN_P): Likewise.
11350 (SCHEDULE_DEBUG_INSN_P): Likewise.
11351 * sched-rgn.c (init_ready_list): Drop special treatment of
11352 boundary debug insns.
11353 * final.c (rest_of_clean-state): Clear notes' BB.
11355 2011-01-31 Alan Modra <amodra@gmail.com>
11357 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11358 toc relative expressions as we do in print_operand_address.
11360 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11362 * doc/extend.texi: Follow spelling conventions.
11363 * doc/invoke.texi: Fix a typo.
11365 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11367 * config/hpux11.opt: New.
11368 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11369 ia64*-*-hpux*): Use hpux11.opt.
11371 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11373 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11376 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11378 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11381 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11383 * doc/install.texi (Binaries): Remove outdated reference for
11384 Motorola 68HC11/68HC12 downloads.
11386 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11388 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11391 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11394 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11397 2011-01-28 Ahmad Sharif <asharif@google.com>
11399 * value-prof.c (check_counter): Corrected error message.
11401 2011-01-29 Jie Zhang <jie@codesourcery.com>
11403 * config/arm/arm.c (arm_legitimize_reload_address): New.
11404 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11405 arm_legitimize_reload_address.
11406 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11408 2011-01-28 Ian Lance Taylor <iant@google.com>
11410 * godump.c (go_define): Ignore macros whose definitions include
11411 two adjacent operands.
11413 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11416 * varasm.c (force_const_mem): Store copy of x in desc->constant
11417 instead of x itself.
11418 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11419 itself into REG_EQUAL note.
11421 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11423 * config/freebsd.opt (posix, rdynamic): New Driver options.
11425 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11427 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11428 -Bstatic/-Bdynamic.
11429 * configure: Regenerate.
11431 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11433 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11434 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11436 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11438 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11439 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11440 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11441 (s390_preferred_reload_class): Make static. Change return and
11442 'rclass' argument type to reg_class_t.
11444 2011-01-27 Jan Hubicka <jh@suse.cz>
11446 PR middle-end/46949
11447 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11448 (process_function_and_variable_attributes): Check defined weakrefs.
11450 2011-01-27 Martin Jambor <mjambor@suse.cz>
11452 PR tree-optimization/47228
11453 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11454 build_ref_for_offset.
11456 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11458 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11460 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11462 PR rtl-optimization/46856
11463 * postreload.c (reload_combine_recognize_const_pattern): Do not
11464 separate cc0 setter and user on cc0 targets.
11466 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11469 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11470 passed a VOID_TYPE expression, immediately emit an error and
11471 return error_mark_node.
11473 2011-01-26 Jeff Law <law@redhat.com>
11475 PR rtl-optimization/47464
11476 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11477 rather than may_trap_p as needed.
11479 2011-01-26 DJ Delorie <dj@redhat.com>
11481 PR rtl-optimization/46878
11482 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11483 setter/user dependency as well.
11485 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11487 PR rtl-optimization/44469
11488 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11489 after removing trivially dead basic blocks.
11491 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11493 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11494 * config/frv/frv.h (LINK_SPEC): Likewise.
11495 * config/i386/netware.h (LINK_SPEC): Likewise.
11496 * config/m68k/linux.h (ASM_SPEC): Likewise.
11497 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11498 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11499 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11500 * config/sparc/linux.h (ASM_SPEC): Likewise.
11501 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11502 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11504 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11506 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11507 * config/frv/frv.h (ASM_SPEC): Likewise.
11508 * config/m68k/linux.h (ASM_SPEC): Likewise.
11509 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11510 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11511 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11512 * config/sparc/linux.h (ASM_SPEC): Likewise.
11513 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11514 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11516 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11518 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11519 * config/frv/frv.h (LINK_SPEC): Likewise.
11520 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11522 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11524 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11525 * config/frv/frv.h (ASM_SPEC): Likewise.
11526 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11527 * config/m68k/linux.h (ASM_SPEC): Likewise.
11528 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11529 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11530 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11531 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11532 * config/sparc/linux.h (ASM_SPEC): Likewise.
11533 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11534 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11535 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11537 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11540 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11542 (vec_extract_evenodd_help): Ditto.
11543 (vec_extract_evenv4hi): Ditto.
11544 (vec_extract_oddv4hi): Ditto.
11545 (vec_interleave_lowv2si): Ditto.
11546 (vec_interleave_highv2si): Ditto.
11547 (vec_extract_evenv2si): Ditto.
11548 (vec_extract_oddv2si: Ditto.
11549 (vec_pack_trunc_v2si): Ditto.
11551 2011-01-22 Jan Hubicka <jh@suse.cz>
11554 * cgraph.h (cgraph_local_info): New field can_change_signature.
11555 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11556 signature can change.
11557 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11559 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11560 (cgraph_function_versioning): We can not change signature of functions
11561 that don't allow that.
11562 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11563 (lto_input_node): Likewise.
11564 * ipa-inline.c (compute_inline_parameters): Compute
11565 local.can_change_signature.
11566 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11567 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11568 functions that can not change signature.
11569 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11570 init_cumulative_args): Do not use local calling conventions
11571 for functions that can not change signature.
11573 2011-01-22 Jan Hubicka <jh@suse.cz>
11575 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11577 2011-01-26 Richard Guenther <rguenther@suse.de>
11579 PR tree-optimization/47190
11580 * cgraphunit.c (process_common_attributes): New function.
11581 (process_function_and_variable_attributes): Use it.
11583 2011-01-26 Richard Guenther <rguenther@suse.de>
11586 * cgraphbuild.c (record_eh_tables): Record reference to personality
11589 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11592 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11593 non-debug insns from moving up.
11595 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11598 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11599 t-dlldir{,-x} fragment for build and add it to tmake_file.
11600 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11601 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11602 * config/i386/t-dlldir: New file.
11603 (SHLIB_DLLDIR): Define.
11604 * config/i386/t-dlldir-x: New file.
11605 (SHLIB_DLLDIR): Define.
11606 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11607 (SHLIB_INSTALL): Use it.
11609 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11612 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11613 lower bound of the allowed Thumb-2 coprocessor load/store
11614 index range to -256. Add explaining comment.
11616 2011-01-25 Ian Lance Taylor <iant@google.com>
11618 * godump.c (go_define): Improve lexing of macro expansion to only
11619 accept expressions which match Go spec.
11621 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11624 * tree.c (handle_dll_attribute): Handle it.
11625 * doc/extend.texi (@item dllexport): Mention it.
11626 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11628 2011-01-25 Ian Lance Taylor <iant@google.com>
11630 PR tree-optimization/26854
11631 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11632 (decl_jump_unsafe): Move higher in file, with no other change.
11633 (bind): Set has_jump_unsafe_decl if appropriate.
11634 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11635 (check_earlier_gotos): Likewise.
11636 (c_check_switch_jump_warnings): Likewise.
11638 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11640 * doc/invoke.texi (Warning Options): Add missing hyphen.
11641 (-fprofile-dir): Minor grammatical fixes.
11642 (-fbranch-probabilities): Likewise.
11644 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11648 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11650 (no_real_insns_p, schedule_block, set_priorities): Drop special
11651 treatment of boundary debug insns.
11652 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11653 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11654 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11655 (BOUNDARY_DEBUG_INSN_P): Likewise.
11656 (SCHEDULE_DEBUG_INSN_P): Likewise.
11657 * sched-rgn.c (init_ready_list): Drop special treatment of
11658 boundary debug insns.
11659 * final.c (rest_of_clean-state): Clear notes' BB.
11661 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11663 * Makefile.in (LAMBDA_H): Removed.
11664 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11665 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11666 lambda-trans.o, and tree-loop-linear.o.
11667 (lto-symtab.o): Remove dependence on LAMBDA_H.
11668 (tree-loop-linear.o): Remove rule.
11669 (lambda-mat.o): Same.
11670 (lambda-trans.o): Same.
11671 (lambda-code.o): Same.
11672 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11673 (tree-vect-slp.o): Same.
11674 * hwint.h (gcd): Moved here.
11675 (least_common_multiple): Same.
11676 * lambda-code.c: Removed.
11677 * lambda-mat.c: Removed.
11678 * lambda-trans.c: Removed.
11679 * lambda.h: Removed.
11680 * tree-loop-linear.c: Removed.
11681 * lto-symtab.c: Do not include lambda.h.
11682 * omega.c (gcd): Removed.
11683 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11684 * tree-data-ref.c (print_lambda_vector): Moved here.
11685 (lambda_vector_copy): Same.
11686 (lambda_matrix_copy): Same.
11687 (lambda_matrix_id): Same.
11688 (lambda_vector_first_nz): Same.
11689 (lambda_matrix_row_add): Same.
11690 (lambda_matrix_row_exchange): Same.
11691 (lambda_vector_mult_const): Same.
11692 (lambda_vector_negate): Same.
11693 (lambda_matrix_row_negate): Same.
11694 (lambda_vector_equal): Same.
11695 (lambda_matrix_right_hermite): Same.
11696 * tree-data-ref.h: Do not include lambda.h.
11697 (lambda_vector): Moved here.
11698 (lambda_matrix): Same.
11699 (dependence_level): Same.
11700 (lambda_transform_legal_p): Removed declaration.
11701 (lambda_collect_parameters): Same.
11702 (lambda_compute_access_matrices): Same.
11703 (lambda_vector_gcd): Same.
11704 (lambda_vector_new): Same.
11705 (lambda_vector_clear): Same.
11706 (lambda_vector_lexico_pos): Same.
11707 (lambda_vector_zerop): Same.
11708 (lambda_matrix_new): Same.
11709 * tree-flow.h (least_common_multiple): Removed declaration.
11710 * tree-parloops.c (lambda_trans_matrix): Moved here.
11711 (LTM_MATRIX): Same.
11712 (LTM_ROWSIZE): Same.
11713 (LTM_COLSIZE): Same.
11714 (LTM_DENOMINATOR): Same.
11715 (lambda_trans_matrix_new): Same.
11716 (lambda_matrix_vector_mult): Same.
11717 (lambda_transform_legal_p): Same.
11718 * tree-pass.h (pass_linear_transform): Removed declaration.
11719 * tree-ssa-loop.c (tree_linear_transform): Removed.
11720 (gate_tree_linear_transform): Removed.
11721 (pass_linear_transform): Removed.
11722 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11723 flag_loop_interchange.
11725 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11727 PR tree-optimization/47265
11728 PR tree-optimization/47443
11729 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11730 if name still has some uses.
11732 2011-01-25 Martin Jambor <mjambor@suse.cz>
11734 PR tree-optimization/47382
11735 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11736 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11738 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11740 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11741 sjlj_except_unwind_info.
11743 2011-01-25 Richard Guenther <rguenther@suse.de>
11745 PR tree-optimization/47426
11746 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11747 visible functions results escape.
11749 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11752 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11753 (arm_get_frame_offsets): Use it.
11755 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11756 Jakub Jelinek <jakub@redhat.com>
11758 PR tree-optimization/47271
11759 * tree-if-conv.c (bb_postdominates_preds): New.
11760 (if_convertible_bb_p): Call bb_postdominates_preds.
11761 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11762 (predicate_scalar_phi): Call bb_postdominates_preds.
11764 2011-01-25 Nick Clifton <nickc@redhat.com>
11766 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11767 * config/rx/rx.c (rx_function_value): Likewise.
11768 (rx_promote_function_mode): Likewise.
11769 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11770 in order to make it legitimate.
11771 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11772 make sure that the first operand is the same as the result register.
11773 (addsi3_unspec): Delete.
11774 (subdi3): Do not accept immediate operands.
11775 (subdi3_internal): Likewise.
11777 2011-01-25 Jeff Law <law@redhat.com>
11779 PR rtl-optimization/37273
11780 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11781 handle them like argument loads from stack slots. Do not double
11782 count memory for memory constants and argument loads from stack slots.
11784 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11786 PR tree-optimization/47427
11787 PR tree-optimization/47428
11788 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11789 coalesce if the new root var would be TREE_READONLY.
11791 2011-01-25 Richard Guenther <rguenther@suse.de>
11793 PR middle-end/47414
11794 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11795 correct type for TBAA.
11797 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11799 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11800 (close_phi_written_to_memory): Call for_each_index with
11801 dr_indices_valid_in_loop.
11803 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11805 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11806 when it is initialized.
11808 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11810 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11811 call to graphite_find_data_references_in_stmt.
11812 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11813 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11814 call to graphite_find_data_references_in_stmt.
11815 (analyze_drs_in_stmts): Same.
11816 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11817 in which the scalar analysis of indices is performed.
11818 (create_data_ref): Same. Update call to dr_analyze_indices.
11819 (find_data_references_in_stmt): Update call to create_data_ref.
11820 (graphite_find_data_references_in_stmt): Same.
11821 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11823 (create_data_ref): Same.
11824 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11825 call to create_data_ref.
11827 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11829 * graphite-sese-to-poly.c (build_poly_scop): Move
11830 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11832 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11834 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11835 VAR_DECL, PARM_DECL, and RESULT_DECL.
11837 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11839 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11840 in a reduction PBB.
11841 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11842 that have already been marked as PBB_IS_REDUCTION.
11844 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11846 * graphite-scop-detection.c (same_close_phi_node): New.
11847 (remove_duplicate_close_phi): New.
11848 (make_close_phi_nodes_unique): New.
11849 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11851 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11853 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11854 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11855 of both data references to be the same.
11857 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11859 * graphite-dependences.c (build_lexicographical_constraint): Remove
11860 the gdim parameter.
11861 (build_lexicographical_constraint): Adjust call to
11862 ppl_powerset_is_empty.
11863 (dependence_polyhedron): Same.
11864 (graphite_legal_transform_dr): Same.
11865 (graphite_carried_dependence_level_k): Same.
11866 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11868 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11870 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11872 * graphite-sese-to-poly.c
11873 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11874 (close_phi_written_to_memory): New.
11875 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11878 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11880 * doc/install.texi: Update the expected version number of PPL to 0.11.
11881 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11882 #if PPL_VERSION_MINOR < 11.
11884 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11886 * graphite-dependences.c: Include graphite-cloog-util.h.
11887 (new_poly_ddr): Inlined into dependence_polyhedron.
11888 (free_poly_ddr): Moved close by new_poly_ddr.
11889 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11890 Early return NULL when ppl_powerset_is_empty returns true.
11891 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11892 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11893 (graphite_legal_transform_dr): Call new_poly_ddr.
11894 (graphite_carried_dependence_level_k): Same.
11895 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11896 (dot_transformed_deps_stmt_1): Removed.
11897 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11898 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11899 (dot_deps_1): Call dot_deps_2.
11900 * Makefile.in (graphite-dependences.o): Add missing dependence on
11901 graphite-cloog-util.h.
11903 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11905 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11906 (build_lexicographical_constraint): Same.
11907 (dependence_polyhedron_1): Same.
11908 (graphite_legal_transform_dr): Same.
11909 (graphite_carried_dependence_level_k): Same.
11910 * graphite-ppl.c (ppl_powerset_is_empty): New.
11911 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11912 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11914 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11916 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11917 the "a followed by b" relation and document it.
11919 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11921 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11922 iteration when the bag of constraints is empty.
11924 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11926 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11928 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11930 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11931 nest and two loop depths as parameters.
11932 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11933 lst_perfect_nestify.
11935 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11937 * graphite-dependences.c (print_pddr): Call
11938 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11940 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11942 * graphite-ppl.c (debug_gmp_value): New.
11943 * graphite-ppl.h (debug_gmp_value): Declared.
11945 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11947 * doc/install.texi: Document availability of cloog-0.16.
11949 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11951 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11952 invalid postdominance info.
11954 2011-01-24 Jan Hubicka <jh@suse.cz>
11957 * doc/extend.texi (weak pragma): Drop claim that it must
11958 appear before definition.
11959 * varasm.c (merge_weak, declare_weak): Only sanity check
11960 that DECL is not output at a time it is declared weak.
11962 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11964 * machmode.def: Fixed comments.
11966 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11968 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11970 2011-01-24 Paul Koning <ni1d@arrl.net>
11972 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11975 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11978 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11979 (block_info): Add scanned and prev.
11980 (move_or_delete_vzeroupper_2): Return if the basic block
11981 has been scanned and the upper 128bit state is unchanged
11982 from the last scan.
11983 (move_or_delete_vzeroupper_1): Return true if the exit
11985 (move_or_delete_vzeroupper): Visit basic blocks using the
11986 work-list based algorithm based on vt_find_locations in
11989 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11991 2011-01-24 Nick Clifton <nickc@redhat.com>
11993 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11994 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11995 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11996 then define __v850e1__.
11997 * doc/invoke.texi: Document -mv850es.
11999 2011-01-24 Richard Henderson <rth@redhat.com>
12001 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12002 compound unordered comparisons.
12003 * config/rx/rx.c (rx_split_fp_compare): Remove.
12004 * config/rx/rx-protos.h: Update.
12005 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12006 (cbranchsf4): Don't call rx_split_fp_compare.
12007 (*cbranchsf4): Use rx_split_cbranch.
12008 (*cmpsf): Don't accept "i" constraint.
12009 (*conditional_branch): Only valid after reload.
12010 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12012 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12015 * config/rs6000/altivec.md (vector constant splitters): Add
12016 support for creating vector single precision constants if -mvsx is
12017 used and we would create the constant using Altivec primitives.
12019 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12020 Richard Sandiford <rdsandiford@googlemail.com>
12022 PR rtl-optimization/47166
12023 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12024 mechanism for PRE_MODIFY and POST_MODIFY.
12025 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12028 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12030 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12032 2011-01-22 Jan Hubicka <jh@suse.cz>
12035 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12037 2011-01-22 Jan Hubicka <jh@suse.cz>
12039 PR tree-optimization/43884
12041 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12042 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12044 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12046 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12047 * config/s390/s390.c (s390_register_move_cost,
12048 s390_memory_move_cost): New.
12049 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12051 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12053 PR middle-end/47401
12054 * except.c (sjlj_assign_call_site_values): Move setting the
12055 crtl->uses_eh_lsda flag to ...
12056 (sjlj_mark_call_sites): ... here.
12057 (sjlj_emit_function_enter): Support NULL dispatch label.
12058 (sjlj_build_landing_pads): In a function with no landing pads
12059 that still has must-not-throw regions, generate code to register
12060 a personality function with empty LSDA.
12062 2011-01-21 Richard Henderson <rth@redhat.com>
12064 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12066 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12068 * compare-elim.c: New file.
12069 * Makefile.in (OBJS-common): Add it.
12070 (compare-elim.o): New.
12071 * common.opt (fcompare-elim): New.
12072 * opts.c (default_options_table): Add OPT_fcompare_elim.
12073 * tree-pass.h (pass_compare_elim_after_reload): New.
12074 * passes.c (init_optimization_passes): Add it.
12075 * recog.h: Protect against re-inclusion.
12076 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12077 * doc/invoke.texi (-fcompare-elim): Document it.
12078 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12079 * doc/tm.texi: Rebuild.
12081 2011-01-22 Nick Clifton <nickc@redhat.com>
12083 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12084 rx_split_fp_compare.
12086 2011-01-22 Nick Clifton <nickc@redhat.com>
12088 * config/rx/rx.md (UNSPEC_CONST): New.
12089 (deallocate_and_return): Wrap the amount popped off the stack in
12090 an UNSPEC_CONST in order to stop it being rejected by
12091 -mmax-constant-size.
12092 (pop_and_return): Add a "(return)" rtx.
12093 (call): Drop the immediate operand.
12094 (call_internal): Likewise.
12095 (call_value): Likewise.
12096 (call_value_internal): Likewise.
12097 (sibcall_internal): Likewise.
12098 (sibcall_value_internal): Likewise.
12099 (sibcall): Likewise. Generate an explicit call using
12101 (sibcall_value): Likewise.
12102 (mov<>): FAIL if a constant operand is not legitimate.
12103 (addsi3_unpsec): New pattern.
12105 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12106 (ok_for_max_constant): New function.
12107 (gen_safe_add): New function.
12108 (rx_expand_prologue): Use gen_safe_add.
12109 (rx_expand_epilogue): Likewise.
12110 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12113 2011-01-21 Jeff Law <law@redhat.com>
12115 PR tree-optimization/47053
12116 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12117 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12118 statements are deleted.
12119 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12120 is nonempty, then purge dead edges and cleanup the CFG.
12122 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12125 Temporarily revert:
12126 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12128 * tree-dfa.c (create_var_ann): Mark variable as used.
12130 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12132 PR middle-end/45566
12133 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12134 notes from other section in hot/cold partitioning even if
12135 last_action is -3. Increment call_site_base.
12137 PR rtl-optimization/47366
12138 * fwprop.c (forward_propagate_into): Return bool. If
12139 any changes are made, -fnon-call-exceptions is used and
12140 REG_EH_REGION note is present, call purge_dead_edges
12141 and return true if it purged anything.
12142 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12143 any EH edges were purged.
12145 2011-01-21 Jeff Law <law@redhat.com>
12147 PR rtl-optimization/41619
12148 * caller-save.c (setup_save_areas): Break out code to determine
12149 which hard regs are live across calls by examining the reload chains
12150 so that it is always used.
12151 Eliminate code which checked REG_N_CALLS_CROSSED.
12153 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12155 PR tree-optimization/47355
12156 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12157 NOP has non-debug uses beyond PHIs in new_bb.
12159 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12162 * cfgexpand.c (account_used_vars_for_block): Only account vars
12163 that are annotated as used.
12164 (estimated_stack_frame_size): Don't set TREE_USED.
12165 * tree-dfa.c (create_var_ann): Mark variable as used.
12167 2011-01-21 Richard Guenther <rguenther@suse.de>
12169 PR middle-end/47395
12170 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12172 2011-01-21 Richard Guenther <rguenther@suse.de>
12174 PR tree-optimization/47365
12175 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12176 (vn_reference_lookup_pieces): Adjust.
12177 (vn_reference_lookup): Likewise.
12178 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12179 (vn_reference_lookup_3): Only look through kills if in
12180 VN_WALKREWRITE mode.
12181 (vn_reference_lookup_pieces): Adjust.
12182 (vn_reference_lookup): Likewise.
12183 (visit_reference_op_load): Likewise.
12184 (visit_reference_op_store): Likewise.
12185 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12186 (compute_avail): Likewise.
12187 (eliminate): Likewise.
12189 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12191 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12192 DECL_IGNORED_P non-reg vars if they are used.
12194 PR tree-optimization/47391
12195 * varpool.c (const_value_known_p): Return false if
12198 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12201 * config/i386/i386.c (ix86_local_alignment): Handle
12202 case for va_list_type_node is nil.
12203 (ix86_canonical_va_list_type): Likewise.
12205 2011-01-21 Alan Modra <amodra@gmail.com>
12207 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12208 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12210 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12212 * config/arm/arm.md (define_attr type): Rename f_load
12213 and f_store to f_fpa_load and f_fpa_store. Update.
12214 (write_conflict): Deal with rename fallout.
12215 (*push_fp_multi): Likewise.
12216 * config/arm/fpa.md (f_load): Use f_fpa_load.
12217 (f_store): Use f_fpa_store.
12218 (*movsf_fpa): Likewise.
12219 (*movdf_fpa): Likewise.
12220 (*movxf_fpa): Likewise.
12221 (*thumb2_movsf_fpa): Likewise.
12222 (*thumb2_movdf_fpa): Likewise.
12223 (*thumb2_movxf_fpa): Likewise.
12224 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12225 f_loadd and f_stored.
12226 (*thumb2_movdi_vfp): Likewise.
12227 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12228 (*thumb2_movsi_vfp): Likewise.
12229 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12230 Use f_loads instead of f_load.
12231 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12233 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12235 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12236 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12237 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12238 (xtensa_mode_dependent_address_p): New function.
12239 (constantpool_address_p): Make static. Change return type to bool.
12240 Change argument type to const_rtx. Use CONST_INT_P predicate.
12242 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12245 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12247 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12250 * cfgexpand.c (expand_debug_expr): Instead of generating
12251 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12254 2011-01-20 Richard Guenther <rguenther@suse.de>
12256 PR middle-end/47370
12257 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12258 the pointer operand of MEM_REFs.
12260 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12262 PR tree-optimization/46130
12263 * ipa-split.c (consider_split): If return_bb contains non-virtual
12264 PHIs other than for retval or if split_function would not adjust it,
12267 2011-01-20 Richard Guenther <rguenther@suse.de>
12269 PR tree-optimization/47167
12270 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12271 Revert previous change, only avoid enumeral type changes.
12273 2011-01-19 Mike Stump <mikestump@comcast.net>
12275 * doc/tm.texi.in (BRANCH_COST): Englishify.
12276 * doc/tm.texi (BRANCH_COST): Likewise.
12278 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12281 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12282 (gen_scheduled_generic_parms_dies): New functions.
12283 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12284 generation for the end of CU compilation.
12285 (dwarf2out_finish): Generate template parameters DIEs here.
12287 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12290 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12291 debug bind stmt on merge edges.
12293 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12297 * function.c (instantiate_expr): Instantiate incoming rtl of
12298 implicit arguments, and recurse on VALUE_EXPRs.
12299 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12300 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12302 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12304 * c-parser.c (c_parser_for_statement): Initialize
12305 collection_expression.
12307 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12309 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12311 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12313 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12314 (LINK_SHLIB_SPEC): Don't use %(link_path).
12315 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12317 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12319 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12320 (NO_SHARED_LIB_SUPPORT): Remove.
12321 (LINK_SHLIB_SPEC): Remove one conditional definition.
12323 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12325 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12327 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12328 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12329 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12330 %{call_shared} and conditionals on these options not being passed.
12331 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12334 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12336 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12339 * ipa-split.c: Spelling fixes.
12341 2011-01-19 Richard Henderson <rth@redhat.com>
12343 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12344 (*mulsi3): Likewise.
12346 * longlong.h [__mn10300__] (count_leading_zeros): New.
12347 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12348 [__mn10300__] (add_ssaaaa, subddmmss): New.
12349 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12350 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12352 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12354 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12356 2011-01-19 Richard Henderson <rth@redhat.com>
12358 * config/mn10300/mn10300.md (addsi3_flags): New.
12359 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12360 (subsi3_flags, subc_internal, subdi3): New.
12361 (subdi3_internal, *subdi3_degenerate): New.
12362 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12364 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12365 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12366 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12367 * config/mn10300/mn10300-protos.h: Update.
12368 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12369 (return_ret): Likewise. Rename from return_internal_regs.
12370 (return_internal): Remove.
12372 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12373 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12374 (mn10300_legitimate_constant_p): Likewise.
12375 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12376 (mn10300_frame_size): New.
12377 (mn10300_expand_prologue): Use it.
12378 (mn10300_expand_epilogue): Likewise.
12379 (mn10300_initial_offset): Likewise.
12380 * config/mn10300/mn10300-protos.h: Update.
12381 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12382 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12383 (prologue, epilogue, return_internal): Tidy output code.
12384 (mn10300_store_multiple_operation, return): Likewise.
12385 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12386 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12387 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12388 (load_pic, am33_load_pic): New.
12389 (mn10300_load_pic0, mn10300_load_pic1): New.
12391 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12392 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12393 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12394 (cc_flags_for_mode, cc_flags_for_code): New.
12395 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12396 overflow flag is not valid. Validate that the flags we need
12397 for the comparison are valid.
12398 (mn10300_output_cmp): Remove.
12399 (mn10300_output_add): New.
12400 (mn10300_select_cc_mode): Use cc_flags_for_code.
12401 (mn10300_split_cbranch): New.
12402 (mn10300_match_ccmode): New.
12403 (mn10300_split_and_operand_count): New.
12404 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12406 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12407 (addsi3): ... here. Use mn10300_output_add.
12408 (*addsi3_flags): New.
12409 (*am33_subsi3, *mn10300_subsi3): Merge...
12410 (subsi3): ... here. Use attribute isa.
12411 (*subsi3_flags): New.
12412 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12414 (*am33_andsi3, *mn10300_andsi3): Merge...
12415 (andsi3): ... here.
12416 (*andsi3_flags): New.
12417 (andsi3 splitters): New.
12418 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12419 (iorsi3): ... here.
12420 (*iorsi3_flags): New.
12421 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12422 (xorsi3): ... here.
12423 (*xorsi3_flags): New.
12424 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12425 (one_cmplsi2): ... here.
12426 (*one_cmplsi2_flags): New.
12427 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12428 instead of "dax" in constraints. Use mn10300_split_cbranch.
12429 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12430 use matching constraints to eliminate a self-comparison.
12431 (*integer_conditional_branch): Rename from integer_conditional_branch.
12432 Use int_mode_flags to match CC_REG.
12433 (*cbranchsi4_btst, *btstsi): New.
12434 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12435 mn10300_split_cbranch.
12436 (*am33_cmpsf): Rename from am33_cmpsf.
12437 (*float_conditional_branch): Rename from float_conditional_branch.
12438 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12439 (zero_extendqisi2): ... here.
12440 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12441 (zero_extendhisi2): ... here.
12442 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12443 (extendqisi2): ... here.
12444 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12445 (extendhisi2): ... here.
12446 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12447 (ashlsi3): ... here.
12448 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12449 (lshrsi3): ... here.
12450 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12451 (ashrsi3): ... here.
12452 (consecutive add peephole): Remove.
12453 * config/mn10300/predicates.md (label_ref_operand): New.
12454 (int_mode_flags): New.
12455 (CCZN_comparison_operator): New.
12457 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12458 (throughput_42_latency_43): New reservation.
12459 (mulsidi3, umulsidi3): New expanders.
12460 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12461 the MDR register to allocation; separately allocate the low and
12462 high parts of the DImode result.
12463 (umulsidi3_internal): Similarly.
12464 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12465 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12466 (udivsi3, umodsi3): Remove.
12467 (udivmodsi4, divmodsi4): New expanders.
12468 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12469 (*divmodsi4): Simiarly.
12470 (ext_internal): New.
12472 * config/mn10300/constraints.md ("z"): New constraint.
12473 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12474 (FIXED_REGISTERS): Don't fix MDR.
12475 (CALL_USED_REGSITERS): Reformat nicely.
12476 (REG_ALLOC_ORDER): Add MDR.
12477 (enum regclass): Add MDR_REGS.
12478 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12479 (IRA_COVER_CLASSES): Add MDR_REGS.
12480 (REGNO_REG_CLASS): Handle MDR_REG.
12481 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12482 (mn10300_register_move_cost): Likewise.
12483 * config/mn10300/mn10300.md (MDR_REG): New.
12484 (*movsi_internal): Handle moves to/from MDR_REGS.
12486 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12488 (mn10300_secondary_reload): Tidy combination reload classes.
12489 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12490 addresses for AM33. Allow symbolic offsets for reg+imm.
12491 (mn10300_regno_in_class_p): New.
12492 (mn10300_legitimize_reload_address): New.
12493 * config/mn10300/mn10300.h (enum reg_class): Remove
12494 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12495 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12496 SP_OR_GENERAL_REGS.
12497 (REG_CLASS_NAMES): Update to match.
12498 (REG_CLASS_CONTENTS): Likewise.
12499 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12500 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12501 (REGNO_IN_RANGE_P): Remove.
12502 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12503 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12504 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12505 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12506 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12507 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12508 (REGNO_GENERAL_P): New.
12509 (HAVE_POST_MODIFY_DISP): New.
12510 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12511 (LEGITIMIZE_RELOAD_ADDRESS): New.
12512 * config/mn10300/mn10300-protos.h: Update.
12514 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12515 DATA_REGS for AM33 stack-pointer destination.
12516 (mn10300_preferred_output_reload_class): Likewise.
12517 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12518 into a form appropriate for ...
12519 (TARGET_SECONDARY_RELOAD): New.
12520 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12521 * config/mn10300/mn10300-protos.h: Update.
12522 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12523 reload_insi; use the "A" constraint for the scratch; handle AM33
12524 moves of sp to non-address registers.
12526 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12527 (*movqi_internal): ... here.
12528 (*am33_movhi, *mn10300_movhi): Merge into...
12529 (*movhi_internal): ... here.
12530 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12531 as the source/destination of moves from/to SP.
12532 (movsf): Only allow for AM33-2.
12533 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12534 any integer constant constraint. Only allow for AM33-2. Tidy
12535 all of the alternative outputs.
12536 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12537 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12539 (udivsi3, umodsi3): New patterns for MN103 only.
12541 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12543 * doc/tm.texi.in: Spell out that a lack of register class unions
12545 * doc/tm.texi: Regenerate.
12547 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12549 PR rtl-optimization/47337
12550 * dce.c (check_argument_store): New function.
12551 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12553 PR tree-optimization/47290
12554 * tree-eh.c (infinite_empty_loop_p): New function.
12555 (cleanup_empty_eh): Use it.
12557 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12560 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12561 (a64_expand_widen_sum): Ditto.
12562 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12563 (vec_extract_evenodd_help): Ditto.
12564 (vec_extract_evenv4hi): Ditto.
12565 (vec_extract_oddv4hi): Ditto.
12566 (vec_extract_evenv2si): Ditto.
12567 (vec_extract_oddv2si): Ditto.
12568 (vec_extract_evenv2sf): Ditto.
12569 (vec_extract_oddv2sf): Ditto.
12570 (vec_pack_trunc_v4hi: Ditto.
12571 (vec_pack_trunc_v2si): Ditto.
12572 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12573 (vec_interleave_highv8qi): Ditto.
12575 (vec_extract_oddv8qi): Ditto.
12576 (vec_interleave_lowv4hi): Ditto.
12577 (vec_interleave_highv4hi): Ditto.
12578 (vec_interleave_lowv2si): Ditto.
12579 (vec_interleave_highv2si): Ditto.
12581 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12583 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12584 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12585 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12586 (pa_c_mode_for_suffix): New.
12587 (TARGET_EXPAND_BUILTIN): Define.
12588 (TARGET_C_MODE_FOR_SUFFIX): Define.
12589 (pa_builtins): Define.
12590 (pa_init_builtins): Register __float128 type and init new support
12592 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12593 * config/pa/quadlib.c (_U_Qfcopysign): New.
12595 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12597 PR middle-end/46894
12598 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12599 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12602 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12604 PR tree-optimization/47179
12605 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12606 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12608 2011-01-18 Richard Guenther <rguenther@suse.de>
12610 PR rtl-optimization/47216
12611 * emit-rtl.c: Include tree-flow.h.
12612 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12613 of replicating it with different semantics.
12614 * Makefile.in (emit-rtl.o): Adjust.
12616 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12618 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12619 (cortex_a9_dp): Handle neon types correctly.
12621 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12623 PR rtl-optimization/47299
12624 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12625 subtarget. Use normal multiplication if both operands are constants.
12626 * expmed.c (expand_widening_mult): Don't try to optimize constant
12627 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12630 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12632 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12633 spacing after 'e.g.', typos, comma, hyphenation.
12635 2011-01-17 Richard Henderson <rth@redhat.com>
12637 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12638 (rx_restricted_mem_operand): New.
12639 (rx_shift_operand): Use register_operand.
12640 (rx_source_operand, rx_compare_operand): Likewise.
12641 * config/rx/rx.md (addsi3_flags): New expander.
12642 (adddi3): Rewrite as expander.
12643 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12644 (subsi3_flags): New expander.
12645 (subdi3): Rewrite as expander.
12646 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12648 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12649 (rx_init_builtins): Remove sat builtin.
12650 (rx_expand_builtin): Likewise.
12651 * config/rx/rx.md (ssaddsi3): New.
12652 (*sat): Rename from sat. Represent the CC_REG input.
12654 * config/rx/predicates.md (rshift_operator): New.
12655 * config/rx/rx.c (rx_expand_insv): Remove.
12656 * config/rx/rx-protos.h: Update.
12657 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12658 operand to the canonical position.
12659 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12660 (*bitclr, *bitclr_in_memory): Similarly.
12661 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12662 (insv): Retain the zero_extract in the expansion.
12664 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12665 (bswaphi2, bitinvert, revw): Likewise.
12667 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12668 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12669 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12670 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12671 (bitset, bitset_in_memory): Likewise.
12672 (bitinvert, bitinvert_in_memory): Likewise.
12673 (bitclr, bitclr_in_memory): Likewise.
12674 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12675 (rx_strend, rx_cmpstrn): Likewise.
12676 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12677 (bitop peep2 patterns): Remove.
12679 * config/rx/rx.c (rx_match_ccmode): New.
12680 * config/rx/rx-protos.h: Update.
12681 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12682 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12683 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12684 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12685 (fix_truncsfsi2, floatsisf2): Likewise.
12686 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12687 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12688 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12689 (*subsi3_flags, *xorsi3_flags): New.
12691 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12693 * config/rx/rx.c (rx_print_operand): Remove workaround for
12694 unsplit comparison operations.
12696 * config/rx/rx.md (movsicc): Split after reload.
12697 (*movsicc): Merge *movsieq and *movsine via match_operator.
12698 (*stcc): New pattern.
12700 * config/rx/rx.c (rx_float_compare_mode): Remove.
12701 * config/rx/rx.h (rx_float_compare_mode): Remove.
12702 * config/rx/rx.md (cstoresi4): Split after reload.
12703 (*sccc): New pattern.
12705 * config/rx/predicates.md (label_ref_operand): New.
12706 (rx_z_comparison_operator): New.
12707 (rx_zs_comparison_operator): New.
12708 (rx_fp_comparison_operator): New.
12709 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12710 Validate that the flags are set properly for the comparison.
12711 (rx_gen_cond_branch_template): Remove.
12712 (rx_cc_modes_compatible): Remove.
12713 (mode_from_flags): New.
12714 (flags_from_code): Rename from flags_needed_for_conditional.
12715 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12716 (rx_select_cc_mode): Likewise.
12717 (rx_split_fp_compare): New.
12718 (rx_split_cbranch): New.
12719 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12720 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12721 (*cbranchsf4): Similarly.
12722 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12723 match_operator and rx_split_cbranch.
12724 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12725 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12726 (*cmpsi): Rename from cmpsi.
12727 (*tstsi): Rename from tstsi.
12728 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12729 (*conditional_branch): Rename from conditional_branch.
12730 (*reveresed_conditional_branch): Remove.
12731 (b<code>): Remove expander.
12732 * config/rx/rx-protos.h: Update.
12734 * config/rx/rx.c (rx_compare_redundant): Remove.
12735 * config/rx/rx.md (cmpsi): Don't use it.
12736 * config/rx/rx-protos.h: Update.
12738 * config/rx/rx-modes.def (CC_F): New mode.
12739 * config/rx/rx.c (rx_select_cc_mode): New.
12740 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12741 * config/rx/rx-protos.h: Update.
12743 2011-01-17 Richard Henderson <rth@redhat.com>
12745 * except.c (dump_eh_tree): Fix stray ; after for statement.
12747 2011-01-17 Richard Guenther <rguenther@suse.de>
12749 PR tree-optimization/47313
12750 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12751 handling before copying the body. Properly deal with
12752 by-reference result in SSA form.
12754 2011-01-17 Ian Lance Taylor <iant@google.com>
12757 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12758 (struct_value_alias_set): Don't define.
12759 (sparc_option_override): Don't set sparc_sr_alias_set and
12760 struct_value_alias_set.
12761 (save_or_restore_regs): Use gen_frame_mem rather than calling
12763 (sparc_struct_value_rtx): Likewise.
12765 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12768 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12769 (_mm_maskstore_pd): Likewise.
12770 (_mm_maskload_ps): Likewise.
12771 (_mm_maskstore_ps): Likewise.
12772 (_mm256_maskload_pd): Change mask to __m256i.
12773 (_mm256_maskstore_pd): Likewise.
12774 (_mm256_maskload_ps): Likewise.
12775 (_mm256_maskstore_ps): Likewise.
12777 * config/i386/i386-builtin-types.def: Updated.
12778 (ix86_expand_special_args_builtin): Likewise.
12780 * config/i386/i386.c (bdesc_special_args): Update
12781 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12782 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12783 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12784 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12786 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12787 Use <avxpermvecmode> on mask register.
12788 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12790 2011-01-17 Olivier Hainque <hainque@adacore.com>
12791 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12792 Eric Botcazou <ebotcazou@adacore.com>
12795 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12796 if <= USHRT_MAX in 32-bit mode.
12798 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12800 * doc/install.texi (Configuration, Specific): Wrap long
12801 lines in examples. Allow line wrapping in long options
12802 and URLs where beneficial for PDF output.
12804 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12806 * config/mips/mips.c (mips_classify_symbol): Don't return
12807 SYMBOL_PC_RELATIVE for nonlocal labels.
12809 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12811 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12813 2011-01-15 Jan Hubicka <jh@suse.cz>
12815 PR tree-optimization/47276
12816 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12817 declarations as needed.
12819 2011-01-15 Martin Jambor <mjambor@suse.cz>
12821 * common.opt (fdevirtualize): New flag.
12822 * doc/invoke.texi (Option Summary): Document it.
12823 * opts.c (default_options_table): Add devirtualize flag.
12824 * ipa-prop.c (detect_type_change): Return immediately if
12825 devirtualize flag is not set.
12826 (detect_type_change_ssa): Likewise.
12827 (compute_known_type_jump_func): Likewise.
12828 (ipa_analyze_virtual_call_uses): Likewise.
12830 2011-01-14 Martin Jambor <mjambor@suse.cz>
12832 PR tree-optimization/45934
12833 PR tree-optimization/46302
12834 * ipa-prop.c (type_change_info): New type.
12835 (stmt_may_be_vtbl_ptr_store): New function.
12836 (check_stmt_for_type_change): Likewise.
12837 (detect_type_change): Likewise.
12838 (detect_type_change_ssa): Likewise.
12839 (compute_complex_assign_jump_func): Check for dynamic type change.
12840 (compute_complex_ancestor_jump_func): Likewise.
12841 (compute_known_type_jump_func): Likewise.
12842 (compute_scalar_jump_functions): Likewise.
12843 (ipa_analyze_virtual_call_uses): Likewise.
12844 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12846 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12848 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12849 * config/i386/i386.opt (msse5): New Alias.
12851 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12853 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12854 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12855 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12856 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12858 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12860 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12862 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12863 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12864 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12865 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12867 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12869 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12871 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12873 2011-01-14 Mike Stump <mikestump@comcast.net>
12875 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12876 * config/fr30/fr30.md: Likweise
12877 (movsi_push): Likewise.
12878 (movsi_pop): Likewise.
12879 (enter_func): Likewise.
12880 * config/moxie/moxie.md (movsi_push): Likewise.
12881 (movsi_pop): Likewise.
12883 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12885 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12886 %{no_archive} %{exact_version}.
12887 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12888 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12889 %{no_archive} %{exact_version}.
12890 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12891 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12892 * config/mips/vxworks.h: Likewise.
12894 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12896 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12898 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12900 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12901 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12903 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12905 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12908 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12910 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12912 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12913 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12915 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12916 Don't handle -shlib.
12918 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12920 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12921 (CC1_SPEC): Don't handle -profile.
12923 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12925 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12926 * config/mips/mips.h (CC1_SPEC): Likewise.
12928 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12930 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12931 * config/mips/mips.h (CC1_SPEC): Likewise.
12933 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12935 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12936 * config/m32r/linux.h (LINK_SPEC): Likewise.
12937 * config/mips/linux.h (LINK_SPEC): Likewise.
12938 * config/mips/linux64.h (LINK_SPEC): Likewise.
12939 * config/sparc/linux.h (LINK_SPEC): Likewise.
12940 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12941 LINK_SPEC): Likewise.
12942 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12944 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12946 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12948 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12950 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12952 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12953 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12955 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12957 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12959 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12961 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12962 supports -Bstatic/-Bdynamic.
12963 * configure: Regenerate.
12965 2011-01-14 Jan Hubicka <jh@suse.cz>
12966 Jack Howarth <howarth@bromo.med.uc.edu>
12969 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12970 when checking debug_info_level. Test write_symbols instead of
12971 debug_hooks->var_location when setting flag_var_tracking_uninit.
12973 2011-01-14 Richard Guenther <rguenther@suse.de>
12975 PR tree-optimization/47179
12976 * target.def (ref_may_alias_errno): New target hook.
12977 * targhooks.h (default_ref_may_alias_errno): Declare.
12978 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12979 (default_ref_may_alias_errno): New function.
12980 * target.h (struct ao_ref_s): Declare.
12981 * tree-ssa-alias.c: Include target.h.
12982 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12983 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12984 (targhooks.o): Likewise.
12985 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12986 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12988 2011-01-14 Richard Guenther <rguenther@suse.de>
12990 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12992 2011-01-14 Richard Guenther <rguenther@suse.de>
12994 PR tree-optimization/47280
12995 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12996 return CFG changes.
12997 (tree_ssa_forward_propagate_single_use_vars): Deal with
12998 CFG changes from associate_plusminus.
13000 2011-01-14 Richard Guenther <rguenther@suse.de>
13002 PR middle-end/47281
13004 2011-01-11 Richard Guenther <rguenther@suse.de>
13006 PR tree-optimization/46076
13007 * tree-ssa.c (useless_type_conversion_p): Conversions from
13008 unprototyped to empty argument list function types are useless.
13010 2011-01-14 Richard Guenther <rguenther@suse.de>
13012 PR tree-optimization/47286
13013 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13015 2011-01-14 Martin Jambor <mjambor@suse.cz>
13017 PR middle-end/46823
13018 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13020 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13022 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13023 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13024 * config/xtensa/xtensa.c (xtensa_libcall_value,
13025 xtensa_function_value_regno_p): New functions.
13026 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13028 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13031 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13033 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13034 New function prototype.
13035 * config/i386/winnt.c (i386_pe_assemble_visibility):
13036 Warn only if attribute was specified by user.
13038 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13041 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13043 (floatunsdidf2_fcfidu): Ditto.
13045 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13047 * config/s390/s390.c (print_operand_address): Replace 'error' with
13048 'output_operand_lossage'.
13049 (print_operand): Likewise.
13051 2011-01-13 Jeff Law <law@redhat.com>
13053 PR rtl-optimization/39077
13054 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13055 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13056 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13057 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13058 * gcse.c (prune_insertions_deletions): New function.
13059 (compute_pre_data): Use it.
13061 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13064 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13066 (prune_unused_types_mark): Use it.
13068 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13070 PR rtl-optimization/45352
13071 * sel-sched.c: Update copyright years.
13072 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13073 in the advancing loop when we have issued issue_rate insns.
13075 2011-01-12 Richard Henderson <rth@redhat.com>
13077 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13078 (TARGET_MD_ASM_CLOBBERS): New.
13080 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13081 (TARGET_DELEGITIMIZE_ADDRESS): New.
13083 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13084 (clzsi2, *bsch): New patterns.
13086 * config/mn10300/mn10300.md (INT): New mode iterator.
13087 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13089 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13090 flag_split_wide_types.
13092 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13093 (mn10300_trampoline_init): Rewrite without a template, an immediate
13094 load and a direct branch.
13095 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13097 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13099 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13100 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13101 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13102 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13104 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13107 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13110 2011-01-12 Jan Hubicka <jh@suse.cz>
13113 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13114 (PLUGIN_COND_CLOSE): New macro.
13115 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13117 2011-01-12 Richard Guenther <rguenther@suse.de>
13120 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13121 register variables in a MEM_REF.
13123 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13125 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13126 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13127 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13128 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13129 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13130 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13131 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13132 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13133 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13134 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13135 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13136 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13137 * config/gnu-user.h: New. Copied from linux.h.
13138 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13139 GNU_USER_TARGET_STARTFILE_SPEC.
13140 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13141 GNU_USER_TARGET_ENDFILE_SPEC.
13142 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13143 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13144 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13145 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13146 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13147 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13148 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13149 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13150 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13151 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13152 * config/arm/linux-eabi.h (CC1_SPEC): Use
13153 GNU_USER_TARGET_CC1_SPEC.
13154 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13155 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13156 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13157 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13158 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13159 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13160 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13161 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13163 2011-01-12 Richard Guenther <rguenther@suse.de>
13166 * doc/invoke.texi (ffast-math): Document it is turned on
13169 2011-01-12 Jan Hubicka <jh@suse.cz>
13171 PR tree-optimization/47233
13172 * opts.c (common_handle_option): Disable ipa-reference with profile
13175 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13177 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13180 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13182 * c-parser.c (c_lex_one_token): Updated and reindented some
13183 comments. No changes in code.
13185 2011-01-11 Ian Lance Taylor <iant@google.com>
13187 * godump.c (go_output_var): Don't output the variable if there is
13188 already a type with the same name.
13190 2011-01-11 Ian Lance Taylor <iant@google.com>
13192 * godump.c (go_format_type): Don't generate float80.
13194 2011-01-11 Richard Henderson <rth@redhat.com>
13196 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13197 declaration. Rewrite for both speed and size.
13198 (mn10300_address_cost_1): Remove.
13199 (mn10300_register_move_cost): New.
13200 (mn10300_memory_move_cost): New.
13201 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13202 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13203 extensions, shifts, BSWAP, CLZ.
13204 (mn10300_wide_const_load_uses_clr): Remove.
13205 (TARGET_REGISTER_MOVE_COST): New.
13206 (TARGET_MEMORY_MOVE_COST): New.
13207 * config/mn10300/mn10300-protos.h: Update.
13208 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13210 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13211 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13212 * config/mn10300/mn10300-protos.h: Update.
13213 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13214 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13215 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13216 (*test_int_bitfield, *test_byte_bitfield): Remove.
13217 (*bit_test, *subreg_bit_test): Remove.
13218 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13220 * config/mn10300/constraints.md ("c"): Rename from "A".
13221 ("A", "D"): New constraint letters.
13222 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13223 (fmssf4, fnmasf4, fnmssf4): Likewise.
13225 * config/mn10300/mn10300.md (isa): New attribute.
13226 (enabled): New attribute.
13228 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13229 (abssf2, negsf2): Define only for hardware fp.
13230 (sqrtsf2): Reformat.
13231 (addsf3, subsf3, mulsf3): Merge expander and insn.
13233 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13234 (DEBUGGER_AUTO_OFFSET): Remove.
13235 (DEBUGGER_ARG_OFFSET): Remove.
13237 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13238 Emit register stores with the same offsets as the hardware.
13239 (mn10300_store_multiple_operation): Don't check that the register
13240 save offsets are monotonic.
13241 * config/mn10300/mn10300-protos.h: Update.
13243 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13245 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13246 in terms of the value on the stack, not the MDR register.
13248 2011-01-11 Jan Hubicka <jh@suse.cz>
13252 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13253 (symbol_alias_set_destroy, symbol_alias_set_contains,
13254 propagate_aliases_backward): Declare.
13255 * lto-streamer-out.c (struct sets): New sturcture.
13256 (trivally_defined_alias): New function.
13257 (output_alias_pair_p): Rewrite.
13258 (output_unreferenced_globals): Fix output of alias pairs.
13259 (produce_symtab): Likewise.
13260 * ipa.c (function_and_variable_visibility): Set weak alias destination
13262 * varasm.c (symbol_alias_set_t): Remove.
13263 (symbol_alias_set_destroy): Export.
13264 (propagate_aliases_forward, propagate_aliases_backward): New functions
13266 (compute_visible_aliases): ... this one; remove.
13267 (trivially_visible_alias): New
13268 (trivially_defined_alias): New.
13269 (remove_unreachable_alias_pairs): Rewrite.
13270 (finish_aliases_1): Reorganize code checking if alias is defined.
13271 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13274 2011-01-11 Richard Guenther <rguenther@suse.de>
13276 PR tree-optimization/46076
13277 * tree-ssa.c (useless_type_conversion_p): Conversions from
13278 unprototyped to empty argument list function types are useless.
13280 2011-01-11 Richard Guenther <rguenther@suse.de>
13282 PR middle-end/45235
13283 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13284 volatile MEMs as MEM_READONLY_P.
13286 2011-01-11 Richard Guenther <rguenther@suse.de>
13288 PR tree-optimization/47239
13289 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13291 2011-01-11 Jeff Law <law@redhat.com>
13293 PR tree-optimization/47086
13294 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13295 IVs from statements that might throw.
13297 2011-01-10 Jan Hubicka <jh@suse.cz>
13300 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13302 2011-01-10 Jan Hubicka <jh@suse.cz>
13305 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13306 when correcting profile.
13308 2011-01-10 Jan Hubicka <jh@suse.cz>
13311 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13312 DECL_FINI_PRIORITY.
13313 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13314 Restore DECL_FINI_PRIORITY.
13316 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13318 * doc/gimple.texi: Fix quoting of multi-word return values in
13319 @deftypefn statements. Ensure presence of return value. Wrap
13320 overlong @deftypefn lines.
13321 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13322 descriptions of removed functions.
13323 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13324 of multi-word return value in @deftypefn statement.
13326 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13328 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13329 (Conditional Expressions, Logical Operators)
13330 (Statement and operand traversals): Do not indent smallexample
13331 code. Fix duplicate function argument in example.
13333 2011-01-10 Jeff Law <law@redhat.com>
13335 PR tree-optimization/47141
13336 * ipa-split.c (split_function): Handle case where we are
13337 returning a value and the return block has a virtual operand phi.
13339 2011-01-10 Jan Hubicka <jh@suse.cz>
13341 PR tree-optimization/47234
13342 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13343 (pass_feedback_split_functions): Declare.
13344 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13346 * ipa-split.c (gate_split_functions): Update comments; disable
13347 split-functions for profile_arc_flag and branch_probabilities.
13348 (gate_feedback_split_functions): New function.
13349 (execute_feedback_split_functions): New function.
13350 (pass_feedback_split_functions): New global var.
13352 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13355 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13356 calling gimple_call_set_cannot_inline.
13358 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13360 * config/darwin-sections.def: Remove unused section.
13362 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13365 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13367 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13370 * c-parser.c (c_parser_declaration_or_fndef): Improved
13373 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13375 * config/i386/winnt.c (i386_pe_start_function): Make sure
13376 to switch back to function's section.
13378 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13382 * plugin.c: Move include of dlfcn.h from here...
13383 * system.h: ... to here.
13385 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13387 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13389 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13390 two extra empty pages in PDF output.
13392 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13395 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13396 for error recovery purposes behave as if it was not specified so
13397 that the default type is usd.
13399 2011-01-07 Jan Hubicka <jh@suse.cz>
13401 PR tree-optmization/46469
13402 * ipa.c (function_and_variable_visibility): Clear needed flags on
13403 nodes with external decls; handle weakrefs merging correctly.
13405 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13407 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13410 2011-01-07 Jan Hubicka <jh@suse.cz>
13412 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13413 and no longer claim that gold is required for linker plugin.
13414 * configure: Regenerate.
13415 * gcc.c (PLUGIN_COND): New macro.
13416 (LINK_COMMAND_SPEC): Use it.
13417 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13418 * config.in (HAVE_LTO_PLUGIN): New.
13419 * configure.ac (--with-lto-plugin): New parameter; autodetect
13422 2011-01-07 Jan Hubicka <jh@suse.cz>
13424 PR tree-optimization/46367
13425 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13426 when we can update original.
13427 (cgraph_mark_inline_edge): Sanity check.
13428 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13430 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13432 * config/spu/spu.h (ASM_COMMENT_START): Define.
13434 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13437 * gcc.c (%>S): New.
13438 (SWITCH_KEEP_FOR_GCC): Likewise.
13439 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13440 (do_spec_1): Handle "%>".
13442 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13444 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13447 * config/i386/i386.c (ix86_delegitimize_address): If
13448 simplify_gen_subreg fails, return orig_x.
13451 * value-prof.c (gimple_stringop_fixed_value): Handle
13452 lhs of the call properly.
13454 2011-01-07 Jan Hubicka <jh@suse.cz>
13457 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13459 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13461 * target.def (function_switched_text_sections): New hook.
13462 * doc/tm.texi: Regenerated.
13463 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13464 * final.c (default_function_switched_text_sections): New.
13465 (final_scan_insn): Call function_switched_text_sections when a
13466 mid-function section change occurs.
13467 * output.h (default_function_switched_text_sections): Declare.
13468 * config/darwin-protos.h (darwin_function_switched_text_sections):
13470 * config/darwin.c (darwin_function_switched_text_sections): New.
13471 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13473 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13475 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13476 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13477 the secondary code fragment when outputting for DWARF == 2.
13479 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13481 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13482 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13484 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13485 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13487 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13490 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13491 when it is not empty.
13493 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13496 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13497 (case ${target}): Add btver1.
13498 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13499 -march=native recognize btver1 processors.
13500 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13501 btver1 def_and_undef
13502 * config/i386/i386.c (struct processor_costs btver1_cost): New
13504 (m_BTVER1): New definition.
13505 (m_AMD_MULTIPLE): Includes m_BTVER1.
13506 (initial_ix86_tune_features): Add btver1 tune.
13507 (processor_target_table): Add btver1 entry.
13508 (static const char *const cpu_names): Add btver1 entry.
13509 (software_prefetching_beneficial_p): Add btver1.
13510 (ix86_option_override_internal): Add btver1 instruction sets.
13511 (ix86_issue_rate): Add btver1.
13512 (ix86_adjust_cost): Add btver1.
13513 * config/i386/i386.h (TARGET_BTVER1): New definition.
13514 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13515 (enum processor_type): Add PROCESSOR_BTVER1.
13516 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13518 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13521 * config/i386/i386.c (legitimize_tls_address)
13522 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13523 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13524 (tls_initial_exec_64_sun): New pattern.
13526 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13528 * doc/invoke.texi (Overall Options): Improve wording and markup
13529 of the description of -wrapper.
13531 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13533 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13534 rdynamic, threads): New Driver options.
13536 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13539 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13540 if coming from .tdata.
13541 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13543 2011-01-06 Jan Hubicka <jh@suse.cz>
13546 * collect2.c (main): Do not enable LTOmode when plugin is active.
13548 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13551 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13552 --version output if supported.
13553 * configure: Regenerate.
13555 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13557 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13560 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13563 * c-convert.c (convert): When converting a complex expression
13564 other than COMPLEX_EXPR to a different complex type, ensure
13565 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13566 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13567 when converting COMPLEX_TYPE.
13569 2011-01-06 Ira Rosen <irar@il.ibm.com>
13571 PR tree-optimization/47139
13572 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13573 only the last reduction value is used outside the loop. Update
13576 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13578 * config/rtems.opt: New.
13579 * config.gcc (*-*-rtems*): Use rtems.opt.
13581 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13583 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13584 processors do not support 3DNow instructions.
13586 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13588 * config/spu/spu.c (spu_option_override): Set parameter
13589 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13591 2011-01-05 Jan Hubicka <jh@suse.cz>
13593 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13594 at the command line.
13596 2011-01-05 Martin Jambor <mjambor@suse.cz>
13599 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13600 deltas on streamed outgoing edges.
13601 (output_node_opt_summary): Output info for outgoing edges only when
13602 the node is in new parameter set.
13603 (output_cgraph_opt_summary): New parameter set, passed to the two
13604 aforementioned functions. Update its forward declaration and its
13607 2011-01-05 Tom Tromey <tromey@redhat.com>
13609 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13610 operator to c_finish_omp_atomic.
13611 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13612 (build_unary_op): Update.
13613 (build_modify_expr): Update.
13614 (build_asm_expr): Update.
13616 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13618 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13619 newly inserted insns.
13620 (pad_bb): Likewise.
13621 (spu_emit_branch_hint): Likewise.
13622 (insert_hbrp_for_ilb_runout): Likewise.
13623 (spu_machine_dependent_reorg): Call df_finish_pass after
13624 schedule_insns returns.
13626 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13628 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13630 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13632 PR tree-optimization/47005
13633 * tree-sra.c (struct access): Add 'non_addressable' bit.
13634 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13635 (decide_one_param_reduction): Return 0 if the parameter is passed by
13636 reference and one of the accesses in the group is non_addressable.
13638 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13640 PR tree-optimization/47056
13641 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13642 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13643 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13645 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13647 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13648 initializer. Skip view conversions from aggregate types.
13650 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13653 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13655 2011-01-04 Philipp Thomas <pth@suse.de>
13657 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13660 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13662 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13663 on empty epilogue sequences.
13665 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13667 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13668 non-static): New Driver options.
13670 2011-01-04 Jie Zhang <jie@codesourcery.com>
13673 * gcc.c (default_compilers[]): Set combinable field to 0
13674 for all assembly languages.
13676 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13678 * config/mips/loongson3a.md: New file.
13679 * config/mips/mips.md: Include loongson3a.md.
13680 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13683 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13685 PR middle-end/47017
13686 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13687 instead of convert_memory_address_addr_space on the base expression.
13689 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13691 * config/spu/spu.c (spu_option_override): Update error text
13692 for bad -march= / -mtune= values.
13694 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13696 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13697 if branch-hint optimization will be performed.
13699 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13701 PR tree-optimization/47148
13702 * ipa-split.c (split_function): Convert arguments to
13703 DECL_ARG_TYPE if possible.
13705 PR tree-optimization/47155
13706 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13707 when computing uns.
13709 PR rtl-optimization/47157
13710 * combine.c (try_combine): If undobuf.other_insn becomes
13711 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13712 and set *new_direct_jump_p too.
13714 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13716 PR tree-optimization/47021
13717 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13719 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13721 * gcc.c (process_command): Update copyright notice dates.
13722 * gcov.c (print_version): Likewise.
13723 * gcov-dump.c (print_version): Likewise.
13724 * mips-tfile.c (main): Likewise.
13725 * mips-tdump.c (main): Likewise.
13727 2011-01-03 Martin Jambor <mjambor@suse.cz>
13729 PR tree-optimization/46801
13730 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13731 aggregate fields start at byte boundary instead of the bit-field flag.
13733 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13736 * gcc.c (main): Revert revision 168407.
13738 2011-01-03 Martin Jambor <mjambor@suse.cz>
13740 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13742 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13744 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13745 vector optab to expand vector/scalar shift, update gimple to vector.
13747 2011-01-03 Martin Jambor <mjambor@suse.cz>
13749 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13752 2011-01-03 Martin Jambor <mjambor@suse.cz>
13754 PR tree-optimization/46984
13755 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13757 (cgraph_create_indirect_edge): Fixed line length.
13758 (cgraph_indirect_call_info): Declare.
13759 (cgraph_make_edge_direct) Update declaration.
13760 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13761 (cgraph_create_indirect_edge): Use it.
13762 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13764 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13765 the new thunk_delta representation.
13766 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13768 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13769 (ipa_read_indirect_edge_info): Likewise.
13770 * lto-cgraph.c (output_edge_opt_summary): New function.
13771 (output_node_opt_summary): Call it on all outgoing edges.
13772 (input_edge_opt_summary): New function.
13773 (input_node_opt_summary): Call it on all outgoing edges.
13775 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13778 * gcc.c (main): Don't check have_o when settting combine_inputs.
13780 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13782 * regrename.c: Add general comment describing the pass.
13783 (struct du_head): Remove 'length' field.
13784 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13785 (regrename_optimize): Do not sort chains. Rework comments, add others.
13786 Force renaming to the preferred class (if any) in the first pass and do
13787 not consider registers that belong to it in the second pass.
13788 (create_new_chain): Do not set 'length' field.
13789 (scan_rtx_reg): Likewise.
13791 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13793 PR tree-optimization/47140
13794 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13795 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13796 to bit_value_binop.
13798 PR rtl-optimization/47028
13799 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13800 parm_birth_insn instead of at the beginning of first bb.
13802 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13804 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13805 Remove the word "see" before "@pxref".
13806 * doc/rtl.texi: Remove the word "see" before "@pxref".
13808 2011-01-01 Jan Hubicka <jh@suse.cz>
13810 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13813 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13816 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13819 Copyright (C) 2011 Free Software Foundation, Inc.
13821 Copying and distribution of this file, with or without modification,
13822 are permitted in any medium without royalty provided the copyright
13823 notice and this notice are preserved.