1 2011-05-04 Philipp Thomas <pth@suse.de>
2 * config/mep/mep.c (mep_validate_vliw): Syntax description
3 should not be translated.
5 2011-05-09 Joseph Myers <joseph@codesourcery.com>
7 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
8 * config/mips/mips-tables.opt: New file (generated).
9 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to
11 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
12 MIPS_ARCH_OPTION_NATIVE): Define.
13 * config/mips/mips.c (mips_cpu_info_table): Move contents to
15 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16 mips_parse_cpu): Remove.
17 (mips_cpu_info_from_opt, mips_default_arch): New.
18 (mips_handle_option): Don't assert that global structures are in
19 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
20 (mips_option_override): Use new variables and functions to set
21 state of these options. Use strcmp to check for individual CPU
23 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
25 * config/mips/mips.opt (march=): Use ToLower and Enum.
26 (mips): Use ToLower, Enum and Var.
27 (mtune=): Use ToLower and Enum.
28 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
30 2011-05-08 Jan Hubicka <jh@suse.cz>
32 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
33 Arrange type pairs to be UID ordered.
34 (gimple_lookup_type_leader): Make inline.
36 2011-05-09 Nick Clifton <nickc@redhat.com>
39 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
43 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
46 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
48 * combine.c (simplify_comparison): Abstract out parts into...
49 (simplify_compare_const): ... new function.
50 (try_combine): Generalize parallel arithmetic/compare combining
51 to call simplify_compare_const() and CANONICALIZE_COMPARE().
53 2011-05-08 Jan Hubicka <jh@suse.cz>
55 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
56 (cgraph_create_virtual_clone): Call hooks once virtual clone is finished.
57 * cgraph.h (cgraph_clone_node): Update prototype.
58 * ipa-cp.c (ipcp_estimate_growth): Use estimate_ipcp_clone_size_and_time.
59 * ipa-inline-transform.c (clone_inlined_nodes): Update.
60 * lto-cgraph.c (input_node): Update.
61 * ipa-inline.c (recursive_inlining): Update.
62 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
63 (evaluate_conditions_for_known_args): Break out from ...
64 (evaluate_conditions_for_edge): ... here.
65 (evaluate_conditions_for_ipcp_clone): New function.
66 (inline_node_duplication_hook): Update clone summary based
68 (estimate_callee_size_and_time): Rename to ...
69 (estimate_node_size_and_time): take NODE instead of EDGE;
70 take POSSIBLE_TRUTHS as argument.
71 (estimate_callee_size_and_time): Update.
72 (estimate_ipcp_clone_size_and_time): New function.
73 (do_estimate_edge_time): Update.
75 2011-05-08 Richard Guenther <rguenther@suse.de>
79 * expmed.c (expand_shift_1): Compute adjusted constant shift
82 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
84 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
86 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
88 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
90 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
92 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
94 2011-05-07 Jan Hubicka <jh@suse.cz>
96 * ipa-inline-transform.c (inline_call): Account when program size
98 * ipa-inline.c (relative_time_benefit): New function.
99 (edge_badness): Reorganize to be power 2 based; fix thinko when
100 computing badness for negative growth; update comments to match
101 reality; better dumps.
103 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
105 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
106 type to bool and adjust comment.
107 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
108 (fold_mathfn_compare): Remove calls to global_bindings_p.
109 (fold_inf_compare): Likewise.
110 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
111 * c-tree.h (global_bindings_p): Adjust prototype.
112 * c-decl.c (global_bindings_p): Return bool and simplify.
114 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
116 PR tree-optimization/48837
117 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
118 when accumulator transformation is performed.
120 2011-05-06 Jan Hubicka <jh@suse.cz>
122 * i386.h (ix86_tune_indices): Add
123 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
124 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macor.
125 * i386.c (initial_ix86_tune_features): Add
126 X86_SOFTARE_PREFETCHING_BENEFICIAL.
127 (software_prefetching_beneficial_p): Remove predicate.
128 (ix86_option_override_internal): Use new macro.
130 2011-05-06 Jan Hubicka <jh@suse.cz>
132 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
134 2011-05-06 Jan Hubicka <jh@suse.cz>
136 * cgraph.c (cgraph_add_thunk): Create real function node instead
137 of alias node; finalize it and mark needed/reachale; arrange visibility
138 to be right and add it into the corresponding same comdat group list.
139 (dump_cgraph_node): Dump thunks.
140 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
141 cgraph_function_with_gimple_body_p,
142 cgraph_first_function_with_gimple_body,
143 cgraph_next_function_with_gimple_body): New functions.
144 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
146 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
147 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
148 * cgraphunit.c (cgraph_finalize_function): Only look into possible
149 devirtualization when optimizing.
150 (verify_cgraph_node): Verify thunks.
151 (cgraph_analyze_function): Analyze thunks.
152 (cgraph_mark_functions_to_output): Output thunks only in combination
153 with function they are assigned to.
154 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
155 alias into normal node.
156 (assemble_thunks): New functoin.
157 (cgraph_expand_function): Use it.
158 * lto-cgraph.c (lto_output_node): Stream thunks.
159 (input_overwrite_node): Stream in thunks.
160 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
161 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
162 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
163 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
164 (inline_analyze_function): Do not care about thunk jump functions.
165 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
166 * ipa-prop.c (ipa_prop_write_jump_functions): Use
167 cgraph_function_with_gimple_body_p.
168 * passes.c (do_per_function_toporder): Use
169 cgraph_function_with_gimple_body_p.
170 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
171 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
172 (function_called_by_processed_nodes_p): Likewise.
174 2011-05-06 Joseph Myers <joseph@codesourcery.com>
176 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
177 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
179 (mabi=): Replace with separate entries for mabi=altivec,
180 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
181 mabi=ieeelongdouble and mabi=ibmlongdouble.
182 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
183 check for -mabi=spe without SPE ABI support here.
184 (rs6000_handle_option): Replace OPT_mabi_ handling with
185 OPT_mabi_altivec and OPT_mabi_spe handling.
187 2011-05-06 Cary Coutant <ccoutant@google.com>
189 * dwarf2out.c (contains_subprogram_definition): New function.
190 (should_move_die_to_comdat): Call it.
192 2011-05-06 Jeff Law <law@redhat.com>
194 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
195 remove_ctrl_stmt_and_useless_edges.
196 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
197 (fixup_template_block, thread_single_edge): Likewise.
198 (mark_threaded_blocks): Use THREAD_TARGET.
200 2011-05-06 Alan Modra <amodra@gmail.com>
203 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
204 const0_rtx as the arg to the dummy __tls_get_addr libcall.
206 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
208 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
209 constraint modifier to "r".
211 2011-05-06 Joseph Myers <joseph@codesourcery.com>
213 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
214 fall through for OPT_mcmodel_.
216 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
218 * config/s390/s390.c (s390_asm_trampoline_template): Comment
220 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
222 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
225 * config/arm/arm.opt (marm): Document it.
226 (mthumb): Reject negative variant.
228 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
231 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
232 Fix typo in "ccvt" variable name.
234 2011-05-06 Tristan Gingold <gingold@adacore.com>
237 * config/vms/vms-ar.c (main): Remove cwd variable.
239 2011-05-06 Jakub Jelinek <jakub@redhat.com>
242 * var-tracking.c (prepare_call_arguments): Move else before #endif.
244 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
246 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
247 * gimplify.c (gimplify_switch_expr): Likewise.
248 * omp-low.c (expand_omp_sections): Likewise.
249 * tree-eh.c (lower_try_finally_switch): Likewise.
250 (lower_eh_dispatch): Likewise.
251 * tree.h (build_case_label): Declare.
252 * tree.c (build_case_label): Define.
254 2011-05-05 Jason Merrill <jason@redhat.com>
257 * tree-inline.c (copy_tree_r): Use copy_statement_list.
258 (copy_statement_list): Don't recurse.
259 * stor-layout.c (copy_self_referential_tree_r): Don't allow
262 2011-05-05 Joseph Myers <joseph@codesourcery.com>
264 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
265 through from -mfpu= handling.
266 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
268 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
270 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
273 2011-05-05 Steve Ellcey <sje@cup.hp.com>
275 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
277 (hppa[12]*-*-hpux11*): Ditto.
278 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
279 * config/ia64/hpux-unix2003.h: New.
280 * config/pa/pa-hpux1131.opt: New.
281 * config/pa/pa-hpux1131.h: New.
282 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
283 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
284 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
286 2011-05-05 Jakub Jelinek <jakub@redhat.com>
289 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
290 instead of mode as 3rd argument to recursive call.
291 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
292 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
294 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
295 don't give up if mode is Pmode and mem_mode is not VOIDmode.
296 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
297 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
299 2011-05-05 Julian Brown <julian@codesourcery.com>
301 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
302 parenthesis in D-register case.
304 2011-05-05 Joseph Myers <joseph@codesourcery.com>
306 * opt-functions.awk (var_type_struct): Handle Enum options.
307 * optc-gen.awk: Don't check range of variables of character type.
308 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
309 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
310 rs6000_sdata_name, rs6000_explicit_options): Remove.
311 (rs6000_option_override_internal): Check for -malign-power here.
312 Use global_options_set instead of rs6000_explicit_options.
313 (rs6000_parse_fpu_option): Remove.
314 (rs6000_handle_option): Access variables via opts and opts_set
315 pointers. Use error_at and warning_at. Add fall-through
316 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
317 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
318 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
319 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
320 here. Don't use rs6000_parse_fpu_option.
321 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
322 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
323 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
325 (mspe): Use Var and Save.
326 (mtraceback=): Use Enum and Var.
327 (rs6000_traceback_type): New Enum and EnumValue entries.
328 (mfloat-gprs=): Use Enum, Var and Save.
329 (rs6000_float_gprs): New Enum and EnumValue entries.
330 (mlong-double-): use Var and Save.
331 (msched-costly-dep=, minsert-sched-nops=): Use Var.
332 (malign-): Use Enum and Var.
333 (rs6000_alignment_flags): New Enum and EnumValue entries.
335 (fpu_type_t): New Enum and EnumValue entries.
336 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
337 global_options_set instead of rs6000_explicit_options.
338 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
339 global_options_set instead of rs6000_explicit_options.
340 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
341 global_options_set instead of rs6000_explicit_options.
342 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
343 global_options_set instead of rs6000_explicit_options.
344 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
345 global_options_set instead of rs6000_explicit_options.
346 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
347 global_options_set instead of rs6000_explicit_options.
348 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
350 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
351 global_options_set instead of rs6000_explicit_options.
352 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
353 (rs6000_cmodel): New Enum and EnumValue entries.
354 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
355 global_options_set instead of rs6000_explicit_options.
356 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
357 (mtls-size=): Use Enum and Var.
358 (rs6000_tls_size): New Enum and EnumValue entries.
360 2011-05-05 Michael Matz <matz@suse.de>
362 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
363 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
364 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
365 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
366 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
367 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
368 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
369 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
370 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
371 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
372 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
373 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
374 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
375 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
376 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
377 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
379 2011-05-05 Richard Guenther <rguenther@suse.de>
381 * expmed.c (expand_variable_shift): Rename to ...
382 (expand_shift_1): ... this. Take an expanded shift amount.
383 For rotates recurse directly not building trees for the shift amount.
384 (expand_variable_shift): Wrap around expand_shift_1.
385 (expand_shift): Adjust.
387 2011-05-05 Jakub Jelinek <jakub@redhat.com>
389 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
391 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
393 * tree.h (get_pending_sizes): Remove prototype.
394 (put_pending_size): Likewise.
395 (put_pending_sizes): Likewise.
396 * stor-layout.c (pending_sizes): Delete.
397 (get_pending_sizes): Likewise.
398 (put_pending_size): Likewise.
399 (put_pending_sizes): Likewise.
400 (variable_size): Do not call put_pending_size and tidy up.
401 * function.h (struct function): Remove dont_save_pending_sizes_p.
402 * lto-streamer-in.c (input_function): Do not stream it.
403 * lto-streamer-out.c (output_function): Likewise.
404 * tree-inline.c (initialize_cfun): Do not copy it.
405 * c-decl.c (store_parm_decls): Do not set it.
406 * omp-low.c (create_task_copyfn): Likewise.
407 * tree-optimize.c (tree_rest_of_compilation): Likewise.
409 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
411 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
413 (*movdf_internal): Ditto.
414 (*movdf_internal_nointeger): Ditto.
415 (*movsf_internal): Ditto.
417 2011-05-05 Joseph Myers <joseph@codesourcery.com>
419 * c-decl.c (finish_decl): Don't call get_pending_sizes.
420 (grokparm): Add parameter expr. Pass it to grokdeclarator.
421 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
422 (c_variable_size): Remove.
423 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
424 call put_pending_sizes.
425 (get_parm_info): Add parameter expr. Use it to set
426 arg_info->pending_sizes.
427 (store_parm_decls): Use arg_info->pending_sizes instead or calling
429 * c-parser.c (c_parser_parms_declarator): Update call to
430 c_parser_parms_list_declarator.
431 (c_parser_parms_list_declarator): Take parameter expr. Update
432 call to push_parm_decl. Update recursive call. Don't call
433 get_pending_sizes. Update calls to get_parm_info.
434 (c_parser_objc_method_definition): Update calls to
435 c_parser_objc_method_decl and objc_start_method_definition.
436 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
437 (c_parser_objc_method_decl): Add parameter expr. Update call to
439 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
440 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
441 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
443 2011-05-05 Michael Hope <michael.hope@linaro.org>
446 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
449 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
451 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
452 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
453 (spu_output_mi_thunk): New function.
455 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
457 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
458 targetm.asm_out.print_operand.
459 * config/sol2.c: Include target.h.
461 2011-05-04 Jan Hubicka <jh@suse.cz>
463 * ipa-inline.c (reset_edge_caches): New function.
464 (update_caller_keys): Add check_inlinablity_for; do not
465 reset edge caches; remove now unnecesary loop.
466 (update_callee_keys): Add comments; reset node_growth_cache of callee.
467 (update_all_callee_keys): Likewise.
468 (inline_small_functions): Sanity check cache; update code
471 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
473 PR rtl-optimization/47612
474 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
475 as the last insn of the sequence to be moved.
477 2011-05-04 Tobias Burnus <burnus@net-b.de>
480 * doc/invoke.texi (Ofast): Document that it
481 enables Fortran's -fno-protect-parens.
483 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
485 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
487 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
489 * stor-layout.c (variable_size): Do not issue errors.
491 2011-05-04 Richard Guenther <rguenther@suse.de>
493 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
494 for array-ref indices.
495 (tree_coverage_counter_addr): Likewise.
496 (build_fn_info_type): Use size_int for index types.
497 (build_gcov_info): Likewise.
499 2011-05-04 Richard Guenther <rguenther@suse.de>
501 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
503 * c-typeck.c (really_start_incremental_init): Use bitsize_int
504 for constructor indices.
505 (push_init_level): Likewise.
507 2011-05-04 Richard Guenther <rguenther@suse.de>
509 * explow.c (promote_mode): Move variable declarations before code.
511 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
513 * tree.h (build_function_type_array): Declare.
514 (build_varargs_function_type_array): Declare.
515 (build_function_type_vec, build_varargs_function_type_vec): Define.
516 * tree.c (build_function_type_array_1): New function.
517 (build_function_type_array): New function.
518 (build_varargs_function_type_array): New function.
520 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
522 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
523 before setting STMT_VINFO_TYPE.
525 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
527 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
528 instead of spu_pass_by_reference.
530 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
532 * calls.c (emit_library_call_value_1): Invoke
533 promote_function_mode hook on libcall arguments.
534 * explow.c (promote_function_mode, promote_mode): Handle TYPE
536 * targhooks.c (default_promote_function_mode): Lisewise.
537 * config/s390/s390.c (s390_promote_function_mode): Likewise.
538 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
540 * doc/tm.texi: Document that TYPE argument might be NULL.
542 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
544 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
546 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
549 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
551 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
553 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
554 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
556 * mips-tfile.c: ... here.
557 Don't include coretypes.h, tm.h, filenames.h.
558 (saber_stop): Remove definition and all calls.
560 (__LINE__): Remove default.
561 (Size_t, Ptrdiff_t): Remove definitions.
562 Replace by size_t, ptrdiff_t.
563 [!MIPS_DEBUGGING_INFO]: Remove.
564 (SHASH_SIZE, THASH_SIZE): Remove defaults.
565 (progname): Add const.
567 Replace all uses by static.
568 (ALIGN_SYMTABLE_OFFSET): Remove default.
569 * mips-tdump.c: Don't include coretypes.h, tm.h.
570 Remove !MIPS_IS_STAB guard.
571 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
572 $(TM_H), filenames.h dependencies.
573 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
575 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
578 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
579 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
581 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
584 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
585 account and save/restore RETS.
586 (PROFILE_BEFORE_PROLOGUE): Define.
587 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
588 the push insn to use predecrement.
590 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
593 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
595 2011-05-04 Nick Clifton <nickc@redhat.com>
597 * config/mn10300/mn10300.c: Include cfgloop.h.
599 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
600 Lcc or a FLcc insn into the instruction stream.
601 (mn10300_block_contains_call): New function. Returns true if the
602 given basic block contains a CALL insn.
603 (mn10300_loop_contains_call_insn): New function. Returns true if
604 the given loop contains a CALL insn.
605 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
606 to use the SETLB and Lcc or FLcc insns.
607 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
608 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
609 * config/mn10300/mn10300.opt (msetlb): New option. Used to
610 disable the SETLB optimization.
611 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
612 __SETLB__ or __NO_SETLB__.
613 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
614 (movsf_internal): Handle MDR register.
615 (cmpsi): Make visible.
616 (setlb): New pattern.
620 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
623 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
625 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
626 (vec_concatv2di_rex64_sse): Ditto.
627 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
628 (*vec_extractv2di_1_rex64): Ditto.
631 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
633 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
635 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
637 2011-05-04 Richard Guenther <rguenther@suse.de>
639 * tree.h (int_const_binop): Remove notrunc argument.
640 * fold-const.c (int_const_binop): Remove notrunc argument. Always
641 create integer constants that are properly truncated.
642 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
643 (const_binop): Remove zero notrunc argument to int_const_binop.
644 (size_binop_loc): Likewise.
645 (fold_div_compare): Likewise.
646 (maybe_canonicalize_comparison_1): Likewise.
647 (fold_comparison): Likewise.
648 (fold_binary_loc): Likewise.
649 (multiple_of_p): Likewise.
650 * expr.c (store_constructor): Likewise.
651 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
652 (maybe_fold_stmt_addition): Likewise.
653 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
654 * stor-layout.c (layout_type): Likewise.
655 * tree-data-ref.c (tree_fold_divides_p): Likewise.
656 * tree-sra.c (build_ref_for_offset): Likewise.
657 (build_user_friendly_ref_for_offset): Likewise.
658 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
659 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
660 * tree-ssa-loop-niter.c (inverse): Likewise.
661 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
662 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
663 * tree-switch-conversion.c (check_range): Likewise.
664 (build_constructors): Likewise.
665 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
666 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
667 (extract_range_from_assert): Likewise.
668 (vrp_int_const_binop): Likewise.
669 (extract_range_from_binary_expr): Likewise.
670 (extract_range_from_unary_expr): Likewise.
671 (check_array_ref): Likewise.
672 (find_case_label_range): Likewise.
673 (simplify_div_or_mod_using_ranges): Likewise.
674 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
675 comparing case labels for merging.
677 2011-05-03 Mark Wielaard <mjw@redhat.com>
679 * dwarf2out.c (debug_str_hash_forced): Removed.
680 (gen_label_for_indirect_string): Removed.
681 (get_debug_string_label): Removed.
682 (AT_string_form): Generate label directly.
683 (output_indirect_string): Test indirect_string_node for
684 DW_FORM_strp instead of checking label and refcount.
685 (prune_indirect_string): Removed.
686 (prune_unused_types): Don't check debug_str_hash_forced or
687 call prune_indirect_string.
689 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
692 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
694 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
698 * combine.c (try_combine): Skip debug insns at m_split tests.
700 2011-04-26 Mark Wielaard <mjw@redhat.com>
703 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
704 when info_section_emitted.
706 2011-05-03 Joseph Myers <joseph@codesourcery.com>
708 * config/mips/mips-opts.h: New.
709 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
711 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
712 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
713 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
715 * config/mips/mips.h (enum mips_code_readable_setting): Move to
717 (mips_abi, mips_code_readable): Don't declare.
718 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
719 (mabi=): Use Enum and Var.
720 (mips_abi): New Enum and EnumValue entries.
721 (mcode-readable=): Use Enum and Var.
722 (mips_code_readable_setting): New Enum and EnumValue entries.
723 (mr10k-cache-barrier=): Use Enum and Var.
724 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
726 2011-05-03 Jan Hubicka <jh@suse.cz>
728 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
729 replace hash by pointer map.
730 (cgraph_node_set_element_def, cgraph_node_set_element,
731 const_cgraph_node_set_element, varpool_node_set_element_def,
732 varpool_node_set_element, const_varpool_node_set_element): Remove.
733 (free_cgraph_node_set, free_varpool_node_set): New function.
734 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
735 * tree-emutls.c: Free varpool node set.
736 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
737 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
738 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
739 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
740 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
741 Move here from ipa.c; implement using pointer_map
742 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
743 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
744 debug_cgraph_node_set, varpool_node_set_new,
745 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
746 dump_varpool_node_set, debug_varpool_node_set):
748 * passes.c (ipa_write_summaries): Update.
750 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
753 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
754 bf542/bf544/bf547/bf548/bf549.
756 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
758 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
760 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
763 * config/bfin/bfin.md (MOVCC): New mode_macro.
764 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
765 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
766 comments from generated assembly.
768 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
771 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
772 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
773 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
774 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
775 * config/bfin/lib1funcs.asm (___muldi3): New function.
777 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
779 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
780 build_function_type_list instead of build_function_type.
781 Rearrange initialization of `args' to do so.
783 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
785 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
786 instead of build_function_type.
788 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
790 * config/rs6000/rs6000.c (spe_init_builtins): Call
791 build_function_type_list instead of build_function_type.
792 (paired_init_builtins, altivec_init_builtins): Likewise.
793 (builtin_function_type): Likewise.
795 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
797 * config/sh/sh.c (sh_media_init_builtins): Call
798 build_function_type_list instead of build_function_type.
800 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
802 * config/sparc/sparc.c (sparc_file_end): Call
803 build_function_type_list instead of build_function_type.
805 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
807 * config/alpha/alpha.c (alpha_init_builtins): Call
808 build_function_type_list instead of build_function_type.
810 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
812 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
813 build_function_type_list instead of build_function_type.
815 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
817 * config/iq2000/i2000.c (iq2000_init_builtins): Call
818 build_function_type_list instead of build_function_type.
819 Delete `endlink' variable.
821 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
823 * config/avr/avr.c (avr_init_builtins): Call
824 build_function_type_list instead of build_function_type.
826 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
828 * config/picochip/picochip.c (picochip_init_builtins): Call
829 build_function_type_list instead of build_function_type.
830 Delete `endlink' variable.
832 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
834 * config/bfin/bfin.c (bfin_init_builtins): Call
835 build_function_type_list instead of build_function_type.
837 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
840 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
841 that's not CONST_INT. Seemingly redundant check is due to PR39768.
843 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
846 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
847 libbffastfp overrides libgcc when -mfast-fp.
849 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
851 Originally from Bernd Schmidt
852 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
853 * config/bfin/bfin.c (override_options): Test it and error if
856 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
858 Originally From Bernd Schmidt
859 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
862 2011-05-03 Jeff Law <law@redhat.com>
864 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
865 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
866 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
867 than accessing AUX field directly. Free the AUX field before
869 (thread_block, thread_through_loop_header): Likewise.
870 (thread_single_edge, mark_threaded_blocks): Likewise.
871 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
872 (register_jump_thread): Do not attempt to thread to a NULL edge.
874 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
876 * function.c (init_function_start): Call decide_function_section.
877 * varasm.c (decide_function_section): New function.
878 (assemble_start_function): When not using
879 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
880 or first_function_block_is_cold.
881 * rtl.h (decide_function_section): Declare.
883 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
884 Jakub Jelinek <jakub@redhat.com>
887 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
888 only succeed if req_mode is the same as set_mode.
890 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
892 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
893 * genemit.c (gen_exp): Handle RETURN.
894 * emit-rtl.c (verify_rtx_sharing): Likewise.
895 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
896 * rtl.c (copy_rtx): RETURN is shared.
897 * rtl.h (enum global_rtl_index): Add GR_RETURN.
899 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
900 * config/s390/s390.c (s390_emit_epilogue): Likewise.
901 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
902 * config/cris/cris.c (cris_expand_return): Likewise.
903 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
904 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
905 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
906 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
907 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
909 * config/v850/v850.c (expand_epilogue): Likewise.
910 * config/bfin/bfin.c (bfin_expand_call): Likewise.
911 * config/arm/arm.md (epilogue): Likewise.
912 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
913 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
916 2011-05-03 Richard Guenther <rguenther@suse.de>
919 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
920 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
921 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
923 2011-05-03 Richard Guenther <rguenther@suse.de>
925 * c-decl.c (grokdeclarator): Instead of looking at
926 TREE_OVERFLOW check if the constant fits in the index type.
928 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
930 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
931 (vec_store_lanes<mode><mode>): Likewise.
933 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
935 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
936 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
937 convert_optab_index values.
938 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
939 * genopinit.c (optabs): Initialize the new optabs.
940 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
941 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
942 (expand_STORE_LANES): New functions.
943 * tree.h (build_array_type_nelts): Declare.
944 * tree.c (build_array_type_nelts): New function.
945 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
946 (vect_model_load_cost): Likewise.
947 (vect_store_lanes_supported, vect_load_lanes_supported)
948 (vect_record_strided_load_vectors): Declare.
949 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
950 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
951 (vect_transform_strided_load): Split out statement recording into...
952 (vect_record_strided_load_vectors): ...this new function.
953 * tree-vect-stmts.c (create_vector_array, read_vector_array)
954 (write_vector_array, create_array_ref): New functions.
955 (vect_model_store_cost): Add store_lanes_p argument.
956 (vect_model_load_cost): Add load_lanes_p argument.
957 (vectorizable_store): Try to use store-lanes functions for
959 (vectorizable_load): Likewise load-lanes and loads.
960 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
961 to vect_model_store_cost.
962 (vect_build_slp_tree): Likewise vect_model_load_cost.
964 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
966 * hooks.h (hook_bool_mode_uhwi_false): Declare.
967 * hooks.c (hook_bool_mode_uhwi_false): New function.
968 * target.def (array_mode_supported_p): New hook.
969 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
970 * doc/tm.texi: Regenerate.
971 * stor-layout.c (mode_for_array): New function.
972 (layout_type): Use it.
973 * config/arm/arm.c (arm_array_mode_supported_p): New function.
974 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
976 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
979 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
980 for -fstack-check if the size to allocate is negative.
982 2011-05-02 Lawrence Crowl <crowl@google.com>
984 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
985 (timevar_cond_start): New for starting a timer only when it is not
987 (timevar_cond_stop): New for stopping a timer when it was not already
990 * timevar.c (timevar_stop): Enable start/stop timers to start again.
991 (timevar_cond_start): New as above.
992 (timevar_cond_stop): New as above.
994 * timevar.def: Add start/stop timers for compiler phases,
995 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
996 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
997 and TV_PHASE_FINALIZE.
998 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
999 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1000 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1001 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1002 Make unused TV_OVERLOAD into a start/stop timer.
1004 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1005 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1006 to indicate that they are start/stop timers.
1008 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1009 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1010 Move initialization to do_compile.
1011 (do_compile): Add initialization from above.
1012 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1014 * c-decl.c (c_write_global_declarations): Add start/stop of
1015 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1017 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1018 or TV_PARSE_INLINE, as appropriate.
1019 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1020 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1022 2011-05-02 Jason Merrill <jason@redhat.com>
1025 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1027 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1030 * c-decl.c (finish_decl): Only create a composite if the types are
1033 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1035 * config/fr30/fr30-protos.h (Mmode): Don't define.
1036 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1037 definition where used.
1038 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1039 define. Expand definitions where used.
1040 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1041 Expand definitions where used.
1042 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1043 rx_function_arg, rx_function_arg_advance,
1044 rx_function_arg_boundary): Expand definitions of those macros.
1045 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1046 definition where used.
1048 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1050 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1052 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1053 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1054 with *movv2sf_internal_rex64_avx.
1055 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1056 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1057 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1058 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1059 "vex" in "prefix" attribute calculation.
1060 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1062 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1065 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1066 inputs match the output.
1068 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1071 * config/m68k/m68k.c (m68k_expand_prologue): Set
1072 current_function_static_stack_size.
1074 2011-05-02 Jan Hubicka <jh@suse.cz>
1076 * lto-streamer.c (lto_streamer_cache_insert_1,
1077 lto_streamer_cache_lookup, lto_streamer_cache_create,
1078 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1079 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1081 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1083 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1084 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1085 config/m68k/t-opts: New files.
1086 * config/m68k/m68k-tables.opt: New file (generated).
1087 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1088 extra_options and m68k/t-opts to tmake_file.
1089 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1090 (all_isas): Initialize using m68k-isas.def.
1091 (all_microarchs): Initialize using m68k-microarchs.def.
1092 (m68k_find_selection): Remove.
1093 (m68k_handle_option): Don't assert that global structures are in
1094 use. Use error_at. Access variables via opts pointer. Don't
1095 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1096 directly for -m68020-40 and -m68020-60.
1097 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1098 m68k_tune_entry here.
1099 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1101 (m68k_library_id_string): Remove declaration.
1102 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1103 (m68k_library_id_string): New Variable.
1104 (march=, mcpu=, mtune=): Use Enum and Var.
1106 2011-05-02 Richard Guenther <rguenther@suse.de>
1108 * varasm.c (output_constructor_regular_field): Compute zero-based
1109 index with double-ints. Make sure to ICE instead of producing
1111 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1112 in asserts. Properly use a signed type.
1114 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1116 * config/i386/sse.md (V): New mode iterator.
1117 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1119 (V_256): Rename from AVX256MODE.
1120 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1121 condition to all users.
1123 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1124 condition to all users.
1125 (VF_128): Make V4SF mode unconditional.
1126 (VF_256): Rename from AVX256MODEF2P.
1127 (VI4F_128): Rename from SSEMODE4S.
1128 (VI8F_128): Rename from SSEMODE2D.
1129 (VI4F_256): Rename from AVX256MODE8P.
1130 (VI8F_256): Rename from AVX256MODE4P.
1131 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1132 (ssescalarmodesuffix): Remove SF and DF modes.
1133 (SSEMODE124): Remove.
1134 (SSEMODE1248): Ditto.
1135 (SSEMODEF2P): Ditto.
1136 (AVXMODEF2P): Ditto.
1137 (AVXMODEFDP): Ditto.
1138 (AVXMODEFSP): Ditto.
1139 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1141 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1143 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1144 xop_pcmov_<mode>256. Use V mode iterator.
1146 Adjust RTX patterns globally for renamed mode attributes.
1148 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1150 * haifa-sched.c (sched_emit_insn): Emit insn before first
1151 non-scheduled insn. Inform back-end about new insn. Add
1152 new insn to scheduled_insns list.
1154 2011-05-02 Richard Guenther <rguenther@suse.de>
1156 PR tree-optimization/48822
1157 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1158 (process_scc): Indicate which iteration we start.
1160 2011-05-02 Jan Hubicka <jh@suse.cz>
1162 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1163 (lto_section_overrun): New.
1164 * lto-section-out.c (append_block): Rename to ...
1165 (lto_append_block): ... this one; export.
1166 (lto_output_1_stream): Move lto lto-streamer.h
1167 (lto_output_data_stream): Update.
1168 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1169 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1172 2011-05-02 Richard Guenther <rguenther@suse.de>
1174 * tree.c (tree_code_counts): New global array.
1175 (record_node_allocation_statistics): Count individual tree codes.
1176 (dump_tree_statistics): Dump individual code stats.
1178 2011-05-01 Jan Hubicka <jh@suse.cz>
1180 * ipa-inline.c (caller_growth_limits): Fix thinko when
1181 looking for largest stack frame.
1182 * ipa-inline.h (dump_inline_summary): Declare.
1183 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1185 (dump_inline_summary): Export.
1186 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1188 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1190 * reginfo.c (memory_move_cost): Change rclass argument type form
1191 'enum reg_class' to reg_class_t.
1192 * reload.h (memory_move_cost): Update prototype.
1193 * postreload.c reload_cse_simplify_set): Change type dclass var to
1195 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1197 (ira_allocate_and_set_costs): Change aclass argument type form
1198 'enum reg_class' to reg_class_t.
1199 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1200 Change aclass argument type to reg_class_t.
1201 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1203 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1204 memory_move_cost call.
1206 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1207 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1208 Change type tmp var to reg_class_t.
1210 2011-04-30 Jan Hubicka <jh@suse.cz>
1212 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1213 inlining into function with flatten attribute.
1214 (want_inline_small_function_p): Be more realistic about inlining
1215 cold calls where callee size grows.
1217 2011-04-30 Jan Hubicka <jh@suse.cz>
1219 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1222 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1224 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1225 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1226 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1227 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1228 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1229 (print_operand): Rename to...
1230 (sparc_print_operand): ...this. Make static. Adjust
1231 sparc_print_operand function call.
1232 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1235 2011-04-30 Jan Hubicka <jh@suse.cz>
1238 * ipa-inline.c (early_inliner): Disable when doing late
1239 addition of function.
1241 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1243 * dwarf2out.c (get_address_mode): New inline.
1244 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1245 if not dwarf_strict emit
1246 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1247 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1248 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1249 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1250 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1251 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1252 mem_loc_descriptor callers.
1253 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1254 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1255 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1256 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1257 (base_types): New variable.
1258 (get_base_type_offset, calc_base_type_die_sizes,
1259 base_type_for_mode, mark_base_types, base_type_cmp,
1260 move_marked_base_types): New functions.
1261 (calc_die_sizes): Assert that die_offset is 0 or equal to
1263 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1264 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1265 callers. If not dwarf_strict, call mem_loc_descriptor even for
1266 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1267 (gen_subprogram_die): Don't give up on call site parameters
1268 with non-integral or large integral modes. Adjust
1269 mem_loc_descriptor callers.
1270 (prune_unused_types): Call prune_unused_types_mark on base_types
1272 (resolve_addr): Call mark_base_types.
1273 (dwarf2out_finish): Call move_marked_base_types.
1275 PR tree-optimization/48809
1276 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1278 (gen_inbound_check): Don't compute index_expr - range_min in utype
1279 again, instead reuse SSA_NAME initialized in build_arrays.
1280 Remove two useless gsi_for_stmt calls.
1282 2011-04-29 Jeff Law <law@redhat.com>
1284 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1286 2011-04-29 Martin Jambor <mjambor@suse.cz>
1288 * cgraph.h (cgraph_postorder): Remove declaration.
1289 * ipa-utils.h (ipa_free_postorder_info): Declare.
1290 (ipa_reverse_postorder): Likewise.
1291 * cgraphunit.c: Include ipa-utils.h.
1292 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1293 * ipa-inline.c: Include ipa-utils.h.
1294 (ipa_inline): Update call to ipa_reverse_postorder.
1295 * ipa-pure-const.c (propagate_pure_const): Update call to
1296 ipa_reduced_postorder and ipa_print_order. Call
1297 ipa_free_postorder_info to clean up.
1298 (propagate_nothrow): Likewise.
1299 * ipa-reference.c (propagate): Removed a useless call to
1300 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1301 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1302 * ipa.c: Include ipa-utils.h.
1303 (ipa_profile): Update call to ipa_reverse_postorder.
1304 (cgraph_postorder): Moved to...
1305 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1306 (ipa_utils_print_order): Renamed to ipa_print_order.
1307 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1309 (ipa_free_postorder_info): New function.
1310 * passes.c: Include ipa-utils.h.
1311 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1312 (ipa_write_summaries): Likewise.
1313 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1314 (cgraphunit.o): Likewise.
1316 (ipa-inline.o): Likewise.
1318 2011-04-29 Jan Hubicka <jh@suse.cz>
1320 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1321 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1322 * ipa-inline.h (clause_t): Turn into unsigned int.
1323 * ipa-inline-analysis.c (add_clause): Do more simplification.
1324 (and_predicates): Shortcut more cases.
1325 (predicates_equal_p): Move forward; check that clauses are properly
1327 (or_predicates): Shortcut more cases.
1328 (edge_execution_predicate): Rewrite as...
1329 (set_cond_stmt_execution_predicate): ... this function; handle
1330 __builtin_constant_p.
1331 (set_switch_stmt_execution_predicate): New .
1332 (compute_bb_predicates): New.
1333 (will_be_nonconstant_predicate): Update TODO.
1334 (estimate_function_body_sizes): Use compute_bb_predicates
1335 and free them later, always try to estimate if stmt is constant.
1336 (estimate_time_after_inlining, estimate_size_after_inlining):
1337 Gracefully handle optimized out edges.
1338 (read_predicate): Fix off by one error.
1340 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1342 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1344 2011-04-27 Xinliang David Li <davidxl@google.com>
1346 * tree-profile.c (init_ic_make_global_vars): Set
1347 tls attribute on ic vars.
1348 * coverage.c (coverage_end_function): Initialize
1349 function_list with zero.
1351 2011-04-29 Richard Guenther <rguenther@suse.de>
1353 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1354 for the type of the result.
1355 (fold_builtin_isascii): Likewise.
1356 (fold_builtin_toascii): Use integer_type_node where appropriate.
1357 (fold_builtin_logb): Likewise.
1358 (fold_builtin_frexp): Likewise.
1359 (fold_builtin_strstr): Likewise.
1360 (fold_builtin_strpbrk): Likewise.
1361 (fold_builtin_fputs): Likewise.
1362 (fold_builtin_sprintf): Likewise.
1363 (fold_builtin_snprintf): Likewise.
1364 (fold_builtin_printf): Likewise.
1365 (do_mpfr_remquo): Use a proper type for the assigned constant.
1366 (do_mpfr_lgamma_r): Likewise.
1367 * dwarf2out.c (resolve_one_addr): Use size_int.
1368 * except.c (init_eh): Likewise.
1369 (assign_filter_values): Use integer_type_node for filter values.
1370 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1372 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1373 for EH region numbers.
1374 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1375 for the shift amount.
1377 2011-04-29 Richard Guenther <rguenther@suse.de>
1379 * expr.h (expand_shift): Rename to ...
1380 (expand_variable_shift): ... this.
1381 (expand_shift): Take a constant shift amount.
1382 * expmed.c (expand_shift): Rename to ...
1383 (expand_variable_shift): ... this.
1384 (expand_shift): New wrapper around expand_variable_shift.
1385 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1386 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1387 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1388 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1389 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1390 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1391 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1392 emit_store_flag_1, emit_store_flag): Likewise.
1393 * builtins.c (expand_builtin_signbit): Likewise.
1394 * calls.c (load_register_parameters): Likewise.
1395 * function.c (assign_parm_setup_block): Likewise.
1396 * lower-subreg.c (resolve_shift_zext): Likewise.
1397 * optabs.c (widen_bswap, expand_abs_nojump,
1398 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1399 * spu/spu.c (spu_expand_extv): Likewise.
1400 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1402 2011-04-29 Richard Guenther <rguenther@suse.de>
1404 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1405 for the remapped region number.
1406 * predict.c (build_predict_expr): Use integer_type_node for the
1408 * fold-const.c (fold_binary_loc): Use integer_type_node for
1409 the shift amount. Use a proper type for the PLUS_EXPR operand.
1411 2011-04-29 Michael Matz <matz@suse.de>
1413 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1414 other trees that just builtins.
1415 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1417 2011-04-29 Richard Guenther <rguenther@suse.de>
1419 * tree-nested.c (get_trampoline_type): Use size_int.
1420 (get_nl_goto_field): Likewise.
1421 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1423 (lower_eh_constructs_2): Likewise.
1424 (lower_resx): Likewise.
1425 (lower_eh_dispatch): Likewise.
1426 * tree-mudflap.c (mf_build_string): Use size_int.
1427 (mudflap_register_call): Use integer_type_node for the flag.
1428 (mudflap_enqueue_constant): Use size_int.
1429 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1430 instead of rebuilding it.
1432 2011-04-29 Richard Guenther <rguenther@suse.de>
1434 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1435 Handle OBJ_TYPE_REF.
1436 (find_func_aliases_for_call): Use it more consistently.
1438 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1440 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1441 (rank_for_schedule): Use it.
1442 (schedule_block): Set it.
1444 2011-04-28 David Li <davidxl@google.com>
1446 * tree.c (crc32_string): Use crc32_byte.
1447 (crc32_byte): New function.
1448 * tree.h (crc32_byte): New function.
1449 * gcov.c (read_graph_file): Handle new cfg_cksum.
1450 (read_count_file): Ditto.
1451 * profile.c (instrument_values): Ditto.
1452 (get_exec_counts): Ditto.
1453 (read_profile_edge_counts): Ditto.
1454 (compute_branch_probabilities): Ditto.
1455 (compute_value_histograms): Ditto.
1456 (branch_prob): Ditto.
1457 (end_branch_prob): Ditto.
1458 * coverage.c (read_counts_file): Ditto.
1459 (get_coverage_counts): Ditto.
1460 (tree_coverage_counter_addr): Ditto.
1461 (coverage_checksum_string): Ditto.
1462 (coverage_begin_output): Ditto.
1463 (coverage_end_function): Ditto.
1464 (build_fn_info_type): Ditto.
1465 (build_fn_info_value): Ditto.
1466 * libgcov.c (gcov_exit): Ditto.
1467 * gcov-dump.c (tag_function): Ditto.
1468 (compute_checksum): Remove.
1470 2011-04-29 Alan Modra <amodra@gmail.com>
1472 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1473 unspec plus offset. Tidy macho code.
1475 2011-04-29 Martin Jambor <mjambor@suse.cz>
1477 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1478 node instead of a decl. Update all callers.
1479 * cgraph.h: Update declaration.
1481 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1483 PR tree-optimization/48765
1484 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1485 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1486 to indicate if loop aware SLP is being used. Scan the statements
1487 and update the vectorization factor according to the type of
1488 vectorization before statement analysis.
1489 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1490 pass it to vect_analyze_loop_operations.
1491 (vectorizable_reduction): Set number of copies to 1 in case of pure
1493 * tree-vect-stmts.c (vectorizable_conversion,
1494 vectorizable_assignment, vectorizable_shift,
1495 vectorizable_operation, vectorizable_type_demotion,
1496 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1498 (vectorizable_condition): Move the check that it is not SLP
1499 vectorization before the number of copies check.
1500 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1501 to vectorize the loop using SLP.
1503 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1506 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1509 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1511 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1512 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1513 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1514 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1515 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1517 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1518 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1519 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1520 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1521 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1522 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1524 * config/i386/linux.h (REG_NAME): Don't define.
1525 * config/i386/linux64.h (REG_NAME): Don't define.
1526 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1527 Undefine before defining.
1529 2011-04-28 Jan Hubicka <jh@suse.cz>
1531 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1532 nonconstant_names array.
1533 (estimate_function_body_sizes): Build nonconstant_names array; handle
1534 BUILT_IN_CONSTANT_P.
1536 2011-04-28 Richard Guenther <rguenther@suse.de>
1540 2011-04-28 Richard Guenther <rguenther@suse.de>
1542 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1543 as late as possible.
1545 2011-04-28 Richard Guenther <rguenther@suse.de>
1547 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1548 (debug_constraint): Do it here.
1549 (dump_constraints): And here.
1550 (rewrite_constraints): And here.
1551 (dump_constraint_edge): Remove.
1552 (dump_constraint_graph): Rewrite to produce DOT output.
1553 (solve_constraints): Build succ graph as late as possible.
1554 Dump constraint graphs before and after solving.
1556 2011-04-28 Richard Guenther <rguenther@suse.de>
1558 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1559 New function split out from ...
1560 (find_func_aliases): ... here. Call it.
1561 (find_func_aliases_for_call): Likewise.
1563 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1565 * internal-fn.h (internal_fn_name_array): Declare.
1566 (internal_fn_flags_array): Likewise.
1568 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1570 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1571 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1573 (ssemodefsuffix): Remove.
1574 (ssevecmodesuffix): New mode attribute.
1575 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1576 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1577 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1578 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1579 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1580 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1581 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1582 ssemodesuffix mode attribute.
1583 (float splitters): Use ssevecmodesuffix mode attribute.
1584 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1585 (sseinsmode): Rename from avxvecmode.
1586 (avxsizesuffix): Rename from avxmodesuffix.
1587 (sseintvecmode): Rename from avxpermvecmode.
1588 (ssedoublevecmode): Rename from ssedoublesizemode.
1589 (ssehalfvecmode): Rename from avxhalfvecmode.
1590 (ssescalarmode): Rename from avxscalarmode.
1591 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1592 templates for ssemodesuffix mode attribute.
1593 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1596 Adjust RTX patterns globally for renamed mode attributes.
1598 2011-04-27 Jan Hubcika <jh@suse.cz>
1600 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1601 * ipa-inline-analysis.c: Include alloc-pool.h.
1602 (edge_predicate_pool): New.
1603 (trye_predicate_p): New function
1604 (false_predicate_p): New function.
1605 (add_clause): Sanity check that false clauses are "optimized";
1606 never add clauses to predicate that is already known to be false.
1607 (and_predicate): Use flase_predicate_p.
1608 (evaulate_predicate): Rename to ...
1609 (evaluate_predicate): ... this one; update all callers; assert
1610 that false is not listed among possible truths.
1611 (dump_predicate): Use true_predicate_p.
1612 (account_size_time): Use false_predicate_p.
1613 (evaulate_conditions_for_edge): Rename to ...
1614 (evaluate_conditions_for_edge) ... this one.
1615 (edge_set_predicate): New function.
1616 (inline_edge_duplication_hook): Duplicate edge predicates.
1617 (inline_edge_removal_hook): Free edge predicates.
1618 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1619 (dump_inline_summary): Update.
1620 (estimate_function_body_sizes): Set edge predicates.
1621 (estimate_calls_size_and_time): Handle predicates.
1622 (estimate_callee_size_and_time): Update.
1623 (remap_predicate): Add toplev_predicate; update comment.
1624 (remap_edge_predicates): New function.
1625 (inline_merge_summary): Compute toplev predicate; update.
1626 (read_predicate): New function.
1627 (read_inline_edge_summary): Use it.
1628 (inline_read_section): Likewise.
1629 (write_predicate): New function.
1630 (write_inline_edge_summary): Use it.
1631 (inline_write_summary): Likewise.
1632 (inline_free_summary): Free alloc pool and edge summary vec.
1634 2011-04-27 Richard Guenther <rguenther@suse.de>
1636 * tree-ssa-structalias.c (changed_count): Remove.
1637 (changed): Use a bitmap.
1638 (unify_nodes): Adjust.
1639 (do_sd_constraint): Likewise.
1640 (do_ds_constraint): Likewise.
1641 (do_complex_constraint): Likewise.
1642 (solve_graph): Likewise.
1644 2011-04-27 Jan Hubicka <jh@suse.cz>
1646 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1648 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1650 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1651 (avx_vperm2f128_*_operand): Ditto.
1652 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1653 Use avx_vpermilp_parallel in insn condition.
1654 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1655 Use avx_vperm2f128_parallel in insn condition.
1657 2011-04-27 Richard Guenther <rguenther@suse.de>
1659 * Makefile.in (tree-ssa-structalias.o): Remove
1660 gt-tree-ssa-structalias.h dependency.
1661 (GTFILES): Remove tree-ssa-structalias.c.
1662 * tree.c (allocate_decl_uid): New function.
1663 (make_node_stat): Use it.
1664 (copy_node_stat): Likewise.
1665 * tree.h (allocate_decl_uid): Declare.
1666 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1667 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1668 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1669 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1670 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1671 (struct heapvar_map): Likewise.
1672 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1673 heapvar_insert): Likewise.
1674 (make_heapvar_for): Rename to ...
1675 (make_heapvar): ... this. Simplify.
1676 (fake_var_decl_obstack): New global var.
1677 (build_fake_var_decl): New function.
1678 (make_constraint_from_heapvar): Adjust.
1679 (handle_lhs_call): Likewise.
1680 (create_function_info_for): Likewise.
1681 (intra_create_variable_infos): Likewise.
1682 (init_alias_vars): Allocate fake_var_decl_obstack.
1683 (init_alias_heapvars, delete_alias_heapvars): Remove.
1684 (compute_points_to_sets): Do not call init_alias_heapvars.
1685 (ipa_pta_execute): Likewise.
1686 (delete_points_to_sets): Free fake_var_decl_obstack.
1688 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1690 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1691 (si_from_UTItype, si_to_UTItype): New functions.
1692 (__udivmodti4): Use them to implement type-punning.
1693 * config/spu/multi3.c (union qword_TItype): New data type.
1694 (si_from_TItype, si_to_TItype): New functions.
1695 (__multi3): Use them to implement type-punning.
1697 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1699 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1701 2011-04-27 Jan Hubicka <jh@suse.cz>
1703 * ipa-prop.c (function_insertion_hook_holder): New holder.
1704 (ipa_add_new_function): New function.
1705 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1706 Register/deregister holder.
1708 2011-04-27 Richard Guenther <rguenther@suse.de>
1710 PR tree-optimization/48772
1711 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1713 2011-04-27 Richard Guenther <rguenther@suse.de>
1715 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1716 TARGET_MEM_REF handling.
1718 2011-04-27 Nick Clifton <nickc@redhat.com>
1720 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1721 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1722 (REG_CLASS_NAMES): Likewise.
1723 (REG_CLASS_CONTENTS): Likewise.
1724 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1725 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1726 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1727 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1728 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1729 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1730 duplicate register classes.
1731 (frv_class_likely_spilled_p): Likewise.
1732 (frv_register_move_cost): Likewise.
1734 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1735 end of the regno_reg_class array.
1737 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1740 * c-typeck.c (build_binary_op): Don't wrap arguments if
1741 int_operands is true.
1743 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1746 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1747 targetm.calls.must_pass_in_stack for void type.
1749 2011-04-26 Jan Hubicka <jh@suse.cz>
1751 * cgraphbuild.c (build_cgraph_edges): Update call
1752 of cgraph_create_edge and cgraph_create_indirect_edge.
1753 * cgraph.c (cgraph_create_edge_including_clones,
1754 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1755 cgraph_update_edges_for_call_stmt_node): Do not take nest
1756 argument; do not initialize call_stmt_size/time.
1757 (dump_cgraph_node): Do not dump nest.
1758 (cgraph_clone_edge): Do not take loop_nest argument;
1759 do not propagate it; do not clone call_stmt_size/time.
1760 (cgraph_clone_node): Likewise.
1761 (cgraph_create_virtual_clone): Update.
1762 * cgraph.h (struct cgraph_edge): Remove
1763 call_stmt_size/call_stmt_time/loop_nest.
1764 (cgraph_create_edge, cgraph_create_indirect_edge,
1765 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1767 * tree-emutls.c (gen_emutls_addr): Update.
1768 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1769 loop_nest; handle indirect calls, too.
1770 (clone_inlined_nodes): Do not care about updating inline summaries.
1771 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1772 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1773 stream call_stmt_size/call_stmt_time/loop_nest.
1774 * ipa-inline.c (edge_badness): Update.
1775 (ipa_inline): dump summaries after inlining.
1776 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1778 (inline_edge_summary): New function.
1779 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1780 (inline_edge_removal_hook): Handle edge summaries.
1781 (inline_edge_duplication_hook): New hook.
1782 (inline_summary_alloc): Alloc hooks.
1783 (initialize_growth_caches): Do not register removal hooks.
1784 (free_growth_caches); Do not free removal hook.
1785 (dump_inline_edge_summary): New function.
1786 (dump_inline_summary): Use it.
1787 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1788 (inline_update_callee_summaries): New function.
1789 (inline_merge_summary): Use it.
1790 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1791 (read_inline_edge_summary): New function.
1792 (inline_read_section): Use it.
1793 (write_inline_edge_summary): New function.
1794 (inline_write_summary): Use it.
1795 (inline_free_summary): Free edge new holders.
1796 * tree-inline.c (copy_bb): Update.
1798 2011-04-26 Jason Merrill <jason@redhat.com>
1800 * tree-eh.c (lower_try_finally_switch): Create the label along with
1801 the CASE_LABEL_EXPR.
1803 2011-04-26 David S. Miller <davem@davemloft.net>
1804 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1806 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1807 * configure: Regenerate.
1809 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1812 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1814 (VEC_reduc): New code iterator and splitters for vector reduction.
1815 (VEC_reduc_name): Ditto.
1816 (VEC_reduc_rtx): Ditto.
1817 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1818 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1820 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1821 support for extracting SF on VSX.
1823 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1824 generating xscvspdp.
1825 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1826 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1827 double add, minimum, maximum vector reduction.
1828 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1829 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1830 optimize double vector reduction.
1831 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1833 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1835 * config/fr30/fr30.h (inhibit_libc): Don't define.
1836 * config/m32r/m32r-protos.h: Correct comment.
1837 * config/v850/v850.h (GHS_default_section_names,
1838 GHS_current_section_names): Use tree, not union tree_node *.
1840 2011-04-26 Xinliang David Li <davidxl@google.com>
1842 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1843 * c-family/c-opts.c (c_common_handle_option): Set
1844 warn_maybe_uninitialized.
1845 * opts.c (common_handle_option): Ditto.
1846 * common.opt: New option.
1847 * tree-ssa.c (warn_uninit): Add one more parameter.
1848 (warn_uninitialized_var): Pass warning code.
1849 * tree-flow.h: Interface change.
1852 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1854 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1855 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1856 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1858 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1860 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1861 * config/mips/mips.opt (mmips-tfile): Remove.
1863 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1864 mips-tdump reference to ...
1865 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1866 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1867 reference by Tru64 UNIX.
1869 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1872 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1873 is error_mark_node, set value to NULL.
1875 PR tree-optimization/48734
1876 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1877 if return value from maybe_fold_*_comparsions isn't something
1878 the code is prepared to handle.
1880 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1882 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1884 (ext_QIreg_nomode_operands): Remove.
1885 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1889 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1891 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1893 2011-04-26 Richard Guenther <rguenther@suse.de>
1895 * c-typeck.c (build_unary_op): Do not expand array-refs via
1896 pointer arithmetic. Only adjust qualifiers for function types.
1898 2011-04-26 Richard Guenther <rguenther@suse.de>
1901 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1902 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1903 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1904 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1906 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1908 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1909 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1910 * doc/extend.texi: Document __underlying_type.
1912 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1914 * config/rs6000/titan.md (automata_option "progress"): Remove.
1916 2011-04-25 Jeff Law <law@redhat.com>
1918 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1920 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1922 * system.h (ENUM_BITFIELD): Remove.
1924 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1925 Eric Botcazou <ebotcazou@adacore.com>
1927 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1928 for STORE_FLAG_VALUE==-1 case.
1930 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1933 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1934 LEGITIMATE_PIC_OPERAND_P.
1936 2011-04-24 Jan Hubicka <jh@suse.cz>
1938 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1940 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1941 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1942 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1943 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1944 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1945 Sanity check predicate length.
1946 (remap_predicate): Likewise; sanity check jump functions.
1947 (inline_read_section, inline_write_summary): Sanity check
1950 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1953 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1954 __is_literal_type, and __is_trivial; update throughout about
1955 possibly cv-qualified void types.
1957 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1959 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1960 testsuite and make it version agnostic.
1962 2011-04-22 Jan Hubicka <jh@suse.cz>
1964 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1966 2011-04-23 Jakub Jelinek <jakub@redhat.com>
1969 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1970 to VOID_TYPE even around MODIFY_EXPR.
1972 2011-04-22 Mike Stump <mikestump@comcast.net>
1974 * gensupport.c (read_md_rtx): Fix typo in comment.
1975 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1978 2011-04-22 Jan Hubicka <jh@suse.cz>
1980 * gengtype.c (open_base_files): Add ipa-inline.h include.
1981 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1982 ipa-prop.c; update all uses.
1983 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1984 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1985 merge summary of inlined function into former caller.
1986 * ipa-inline.c (max_benefit): Remove.
1987 (edge_badness): Compensate for removal of benefits.
1988 (update_caller_keys): Use
1989 reset_node_growth_cache/reset_edge_growth_cache.
1990 (update_callee_keys): Likewise.
1991 (update_all_callee_keys): Likewise.
1992 (inline_small_functions): Do not collect max_benefit; do not reset
1993 estimated_growth; call free_growth_caches and initialize_growth_caches.
1994 * ipa-inline.h (struct condition, type clause_t, struct predicate,
1995 struct size_time_entry): New structures.
1996 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1997 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1998 and estimated_growth.
1999 (edge_growth_cache_entry): New structure.
2000 (node_growth_cache, edge_growth_cache): New global vars.
2001 (estimate_growth): Turn into inline.
2002 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2003 initialize_growth_caches, free_growth_caches): Declare.
2004 (estimate_edge_growth): Rewrite.
2005 (estimate_edge_time): Implement as inline cache lookup.
2006 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2008 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2009 (NUM_CONDITIONS): New constant.
2010 (predicate_conditions): New enum.
2011 (IS_NOT_CONSTANT): New constant.
2012 (edge_removal_hook_holder): New var.
2013 (node_growth_cache, edge_growth_cache): New global vars.
2014 (true_predicate, single_cond_predicate, false_predicate,
2015 not_inlined_predicate, add_condition, add_clause, and_predicates,
2016 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2017 dump_clause, dump_predicate, account_size_time,
2018 evaulate_conditions_for_edge): New functions.
2019 (inline_summary_alloc): Move to heap.
2020 (inline_node_removal_hook): Clear condition and entry vectors.
2021 (inline_edge_removal_hook): New function.
2022 (initialize_growth_caches, free_growth_caches): New function.
2023 (dump_inline_summary): Update.
2024 (edge_execution_predicate): New function.
2025 (will_be_nonconstant_predicate): New function.
2026 (estimate_function_body_sizes): Compute BB and constantness predicates.
2027 (compute_inline_parameters): Do not clear estimated_growth.
2028 (estimate_edge_size_and_time): New function.
2029 (estimate_calls_size_and_time): New function.
2030 (estimate_callee_size_and_time): New function.
2031 (remap_predicate): New function.
2032 (inline_merge_summary): New function.
2033 (do_estimate_edge_time): New function based on...
2034 (estimate_edge_time): ... this one.
2035 (do_estimate_edge_growth): New function.
2036 (do_estimate_growth): New function based on....
2037 (estimate_growth): ... this one.
2038 (inline_analyze_function): Analyze after deciding on jump functions.
2039 (inline_read_section): New function.
2040 (inline_read_summary): Use it.
2041 (inline_write_summary): Write all the new data.
2042 * ipa-prop.c (ipa_get_param_decl_index): Export.
2043 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2044 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2046 (ipa_get_lattice): Move here from ipa-cp.c
2047 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2048 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2049 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2050 cgraph_edge_inlinable_p): Remove.
2051 * cgraphunit.c: Include ipainline.h
2052 (cgraph_process_new_functions): Update call of
2053 compute_inline_parameters.
2055 2011-04-22 Richard Guenther <rguenther@suse.de>
2057 * tree.c (build_int_cst): Properly create canonicalized integer
2059 (build_int_cst_type): Remove scary comments.
2061 2011-04-22 Xinliang David Li <davidxl@google.com>
2063 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2064 by default when -Wno-error is not specified.
2065 * opts-global.c (decode_options): Remove call to
2066 control_warning_options.
2068 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2070 PR tree-optimization/48717
2071 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2072 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2074 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2076 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2077 definition where used.
2079 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2082 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2083 TREE_STATIC variables declared inside of some OpenMP construct.
2085 2011-04-22 Martin Jambor <mjambor@suse.cz>
2088 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2090 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2093 * c-typeck.c (pop_init_level): Do not warn about initializing
2096 2011-04-22 Alan Modra <amodra@gmail.com>
2098 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2099 when returning call_cookie.
2100 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2101 pointers, to functions with no more vector args than the current
2102 function, and some non-local calls for ABI_V4.
2103 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2104 sibcall_nonlocal_aix64): Combine to ..
2105 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2106 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2107 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2108 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2109 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2111 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2112 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2113 sibcall_value_symbolic_64): Delete.
2115 2011-04-21 Xinliang David Li <davidxl@google.com>
2117 * cgraph.h: Remove pid.
2118 * cgraph.c: Remove pid.
2119 * value-prof.c (init_node_map): New function.
2120 (del_node_map): New function.
2121 (find_func_by_funcdef_no): New function.
2122 (gimple_ic_transform): Call new function.
2123 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2124 * function.c (get_last_funcdef_no): New function.
2125 * function.h (get_last_funcdef_no): New function.
2126 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2127 to libgcov function.
2128 (tree-profiling): Call node map init and delete function.
2130 2011-04-21 Ian Lance Taylor <iant@google.com>
2132 * godump.c (go_format_type): Use exported Go name for anonymous
2135 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2137 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2138 Call builtin_function_type_list instead of builtin_function_type.
2139 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2141 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2143 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2144 build_function_type_list instead of build_function_type.
2145 Delete variable `endlink'.
2147 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2149 * config/s390/s390.c (s390_init_builtins): Call
2150 build_function_type_list instead of build_function_type.
2152 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2154 * config/ia64/ia64.c (ia64_init_builtins): Call
2155 build_function_type_list instead of builtin_function_type.
2157 2011-04-21 Easwaran Raman <eraman@google.com>
2159 * cfgexpand.c (stack_var): Remove OFFSET...
2160 (add_stack_var): ...and its reference here...
2161 (expand_stack_vars): ...and here.
2162 (stack_var_cmp): Sort by descending order of size.
2163 (partition_stack_vars): Change heuristic.
2164 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2165 (dump_stack_var_partition): Add newline after each partition.
2167 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2168 Jeff Law <law@redhat.com>
2170 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2171 * gengtype.c (matching_file_name_substitute): Likewise.
2173 2011-04-21 Richard Guenther <rguenther@suse.de>
2176 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2178 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2180 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2182 2011-04-21 Richard Guenther <rguenther@suse.de>
2184 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2187 2011-04-21 Richard Guenther <rguenther@suse.de>
2189 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2190 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2191 Use DECL_P, not SSA_VAR_P.
2192 (ptr_derefs_may_alias_p): Likewise.
2193 (ptr_deref_may_alias_ref_p_1): Likewise.
2194 (decl_refs_may_alias_p): Likewise.
2195 (refs_may_alias_p_1): Likewise.
2196 (ref_maybe_used_by_call_p_1): Likewise.
2197 (call_may_clobber_ref_p_1): Likewise.
2198 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2199 are either MEM_REF or TARGET_MEM_REF.
2200 (indirect_refs_may_alias_p): Likewise.
2201 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2202 for MEM_EXPR of indirect calls.
2204 2011-04-21 Tristan Gingold <gingold@adacore.com>
2206 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2207 (dst_file_info_struct): Remove flen field.
2208 (lookup_filename): Remove code that set flen field.
2210 2011-04-21 Tristan Gingold <gingold@adacore.com>
2212 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2214 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2217 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2218 vec_extract and vec_concat for non-SSE4_1 targets.
2220 2011-04-21 Richard Guenther <rguenther@suse.de>
2222 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2225 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2227 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2229 (FILE): Don't undefine.
2231 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2233 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2235 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2237 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2238 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2239 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2241 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2242 definitions where used.
2243 * config/microblaze/microblaze.h (struct microblaze_args): Use
2244 rtx, not struct rtx_def *.
2245 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2247 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2248 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2249 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2250 not struct rtx_def *.
2251 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2253 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2255 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2257 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2259 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2260 operand_equal_p to compare DR_BASE_ADDRESSes.
2261 (vect_check_interleaving): Likewise.
2263 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2266 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2267 for all Neon struct constants.
2269 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2271 * target.def (legitimate_constant_p): New hook.
2272 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2273 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2274 * doc/tm.texi: Regenerate.
2275 * hooks.h (hook_bool_mode_rtx_true): Declare.
2276 * hooks.c (hook_bool_mode_rtx_true): Define.
2277 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2278 * calls.c (precompute_register_parameters): Replace uses of
2279 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2280 (emit_library_call_value_1): Likewise.
2281 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2282 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2283 * ira-costs.c (scan_one_insn): Likewise.
2284 * recog.c (general_operand, immediate_operand): Likewise.
2285 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2286 * reload1.c (init_eliminable_invariants): Likewise.
2288 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2290 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2291 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2293 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2294 * config/alpha/predicates.md (input_operand): Update call to
2295 alpha_legitimate_constant_p.
2297 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2298 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2299 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2300 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2301 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2302 (arm_legitimate_constant_p): New functions.
2303 (arm_cannot_force_const_mem): Make static.
2305 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2307 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2308 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2309 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2310 instead of bfin_legitimate_constant_p.
2311 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2312 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2314 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2316 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2318 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2319 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2320 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2321 (frv_legitimate_constant_p): Make static. Add a mode argument.
2323 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2324 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2325 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2327 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2328 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2329 * config/i386/i386.c (legitimate_constant_p): Rename to...
2330 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2332 (ix86_cannot_force_const_mem): Update accordingly.
2333 (ix86_legitimate_address_p): Likewise.
2334 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2335 * config/i386/i386.md: Update commentary.
2337 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2338 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2339 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2340 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2342 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2344 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2345 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2346 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2347 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2349 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2350 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2351 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2353 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2354 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2355 (m32r_legitimate_constant_p): New function.
2357 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2358 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2359 LEGITIMATE_CONSTANT_P.
2360 (LEGITIMATE_CONSTANT_P): Delete.
2361 * config/m68k/m68k.c (m68k_expand_prologue): Call
2362 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2363 (m68k_legitimate_constant_p): New function.
2364 * config/m68k/m68k.md: Update comments.
2366 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2367 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2368 (mcore_legitimate_constant_p): New function.
2370 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2371 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2372 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2373 Add a mode argument.
2374 (mep_legitimate_address): Update accordingly.
2375 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2377 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2379 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2380 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2381 static. Check OP's mode for VOIDmode.
2382 (microblaze_legitimate_constant_p): New function.
2383 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2385 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2386 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2387 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2388 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2389 * config/mips/predicates.md: Update comments.
2391 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2392 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2393 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2394 (mmix_legitimate_constant_p): Make static, return a bool, and take
2396 (mmix_print_operand_address): Update accordingly.
2398 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2400 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2401 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2402 static. Add a mode argument.
2403 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2405 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2407 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2408 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2409 (pa_legitimate_constant_p): New function.
2411 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2413 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2414 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2415 (pdp11_legitimate_constant_p): New function.
2417 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2418 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2419 (rs6000_legitimate_constant_p): New function.
2421 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2422 (rx_legitimate_constant_p): ...this.
2423 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2424 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2425 (rx_legitimate_constant_p): ...this.
2426 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2427 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2429 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2430 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2431 * config/s390/s390.c (legitimate_constant_p): Rename to...
2432 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2433 and add a mode argument.
2434 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2436 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2438 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2439 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2440 (sh_legitimate_constant_p): New function.
2442 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2443 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2444 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2445 (legitimate_constant_p): Rename to...
2446 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2448 (constant_address_p): Update accordingly.
2450 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2451 argument and return a bool.
2452 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2453 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2454 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2455 (spu_rtx_costs): Update accordingly.
2456 * config/spu/predicates.md (vec_imm_operand): Likewise.
2458 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2460 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2461 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2462 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2464 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2465 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2466 * config/vax/vax.c (legitimate_constant_p): Likewise.
2468 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2469 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2470 (xtensa_legitimate_constant_p): New function.
2472 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2474 * target.def (cannot_force_const_mem): Add a mode argument.
2475 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2476 * doc/tm.texi: Regenerate.
2477 * hooks.h (hook_bool_mode_rtx_false): Declare.
2478 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2479 (hook_bool_mode_const_rtx_true): Likewise.
2480 (hook_bool_mode_rtx_false): New function.
2481 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2482 to be non-VOID. Update call to cannot_force_const_mem.
2483 (find_reloads): Update accordingly.
2484 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2485 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2487 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2488 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2489 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2490 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2491 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2492 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2493 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2494 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2495 (m68k_cannot_force_const_mem): ...this new function.
2496 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2498 (mips_const_insns, mips_legitimize_const_move): Update calls.
2499 (mips_secondary_reload_class): Likewise.
2500 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2501 (pa_cannot_force_const_mem): ...this new function.
2502 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2503 (rs6000_cannot_force_const_mem): ...this new function.
2504 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2506 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2507 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2509 (xtensa_cannot_force_const_mem): ...this new function.
2511 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2513 * config/mips/mips.c (mips16_build_function_stub): Call
2514 build_function_type_list instead of build_function_type.
2515 (mips16_build_call_stub): Likewise.
2517 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2519 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2520 instead of build_function_type.
2522 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2524 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2525 instead of build_function_type.
2527 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2530 * config/i386/i386.md (insv): Change operand 0 constraint to
2531 "register_operand". Change operand 1 and 2 constraint to
2532 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2533 * config/i386/sse.md (sse4_1_pinsrb): Export.
2534 (sse2_pinsrw): Ditto.
2535 (sse4_1_pinsrd): Ditto.
2536 (sse4_1_pinsrq): Ditto.
2537 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2538 * config/i386/i386.c (ix86_expand_pinsr): New.
2540 2011-04-20 Easwaran Raman <eraman@google.com>
2542 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2543 containing union type only with -fstrict-aliasing.
2545 2011-04-20 Jim Meyering <meyering@redhat.com>
2547 Remove useless if-before-free tests.
2548 * calls.c (expand_call, save_area): Likewise.
2549 * cfgcleanup.c (try_forward_edges): Likewise.
2550 * collect2.c (collect_execute): Likewise.
2551 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2552 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2553 * coverage.c (coverage_checksum_string): Likewise.
2554 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2555 * cselib.c (cselib_init): Likewise.
2556 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2557 (df_set_clean_cfg): Likewise.
2558 * function.c (free_after_compilation): Likewise.
2559 * gcc.c (do_spec_1, main): Likewise.
2560 * gcov.c (create_file_names): Likewise.
2561 * gensupport.c (identify_predicable_attribute): Likewise.
2562 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2563 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2564 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2565 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2566 * ipa-pure-const.c (local_pure_const): Likewise.
2567 * ipa-reference.c (propagate): Likewise.
2568 * ira-costs.c (free_ira_costs): Likewise.
2569 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2570 * matrix-reorg.c (mat_free): Likewise.
2571 * prefix.c (get_key_value): Likewise.
2572 * profile.c (compute_value_histograms): Likewise.
2573 * reload1.c (free_reg_equiv): Likewise.
2574 * sched-deps.c (free_deps): Likewise.
2575 * sel-sched-ir.c (fence_clear): Likewise.
2576 * sese.c (set_rename, if_region_set_false_region): Likewise.
2577 * tree-data-ref.c (free_rdg): Likewise.
2578 * tree-eh.c (lower_try_finally): Likewise.
2579 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2580 * tree-ssa-live.c (delete_var_map): Likewise.
2581 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2582 * tree-ssa-pre.c (phi_trans_add): Likewise.
2584 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2586 PR tree-optimization/48611
2587 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2588 beyond ERT_MUST_NOT_THROW region.
2590 2011-04-20 Catherine Moore <clm@codesourcery.com>
2592 * config/mips/mips.opt (mfix-24k): New.
2593 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2594 * config/mips/mips.md (length): Increase by 4 for stores if
2596 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2597 all noreorder if fixing 24K errata.
2598 * doc/invoke.texi: Document mfix-24k.
2600 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2602 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2603 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2605 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2607 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2608 (const_ok_for_op): ... to here.
2610 2011-04-20 Kai Tietz <ktietz@redhat.com>
2612 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2613 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2615 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2617 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2619 2011-04-20 Richard Guenther <rguenther@suse.de>
2621 PR tree-optimization/47892
2622 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2625 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2627 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2629 2011-04-20 Tristan Gingold <gingold@adacore.com>
2631 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2633 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2637 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2638 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2639 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2640 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2641 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2643 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2646 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2647 (avr_asm_named_section, avr_asm_output_aligned_common,
2648 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2649 New functions to update...
2650 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2651 (avr_asm_init_sections): Overwrite section callbacks for
2652 data_section, bss_section.
2653 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2655 (avr_file_end): ...here.
2657 2011-04-20 Richard Guenther <rguenther@suse.de>
2660 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2661 objects and types here. Adjust for their offset before comparing.
2663 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2665 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2668 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2670 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2671 (GIMPLE_H): Include $(INTERNAL_FN_H).
2672 (OBJS-common): Add internal-fn.o.
2673 (internal-fn.o): New rule.
2674 * internal-fn.def: New file.
2675 * internal-fn.h: Likewise.
2676 * internal-fn.c: Likewise.
2677 * gimple.h: Include internal-fn.h.
2678 (GF_CALL_INTERNAL): New gf_mask.
2679 (gimple_statement_call): Put fntype into a union with a new
2681 (gimple_build_call_internal): Declare.
2682 (gimple_build_call_internal_vec): Likewise.
2683 (gimple_call_same_target_p): Likewise.
2684 (gimple_call_internal_p): New function.
2685 (gimple_call_internal_fn): Likewise.
2686 (gimple_call_fntype): Return null for internal calls.
2687 (gimple_call_set_fntype): Assert that the function is not internal.
2688 (gimple_call_set_fn): Likewise.
2689 (gimple_call_set_fndecl): Likewise.
2690 (gimple_call_set_internal_fn): New function.
2691 (gimple_call_addr_fndecl): Handle null functions.
2692 (gimple_call_return_type): Likewise null types.
2693 * gimple.c (gimple_build_call_internal_1): New function.
2694 (gimple_build_call_internal): Likewise.
2695 (gimple_build_call_internal_vec): Likewise.
2696 (gimple_call_same_target_p): Likewise.
2697 (gimple_call_flags): Handle calls to internal functions.
2698 (gimple_call_fnspec): New function.
2699 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2700 (gimple_has_side_effects): Handle null functions.
2701 (gimple_rhs_has_side_effects): Likewise.
2702 (gimple_call_copy_skip_args): Handle calls to internal functions.
2703 * cfgexpand.c (expand_call_stmt): Likewise.
2704 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2705 * gimple-fold.c (gimple_fold_call): Handle null functions.
2706 (gimple_fold_stmt_to_constant_1): Don't fold
2707 calls to internal functions.
2708 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2710 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2711 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2712 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2713 (do_warn_unused_result): Likewise.
2714 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2715 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2716 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2717 the target of a call.
2718 (initialize_hash_element): Update accordingly.
2719 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2720 (iterative_hash_hashable_expr): Handle calls to internal functions.
2721 (print_expr_hash_elt): Likewise.
2722 * tree-ssa-pre.c (can_value_number_call): Likewise.
2723 (eliminate): Handle null functions.
2724 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2725 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2726 (find_func_aliases): Likewise.
2727 * value-prof.c (gimple_ic_transform): Likewise.
2728 (gimple_indirect_call_to_profile): Likewise.
2729 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2730 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2732 2011-04-19 Jan Hubicka <jh@suse.cz>
2734 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2735 * ipa-inline.c (inline_small_functions): Compute summaries first,
2736 populate heap later.
2738 2011-04-19 Jan Hubicka <jh@suse.cz>
2740 * cgraph.h (save_inline_function_body): Remove.
2741 * ipa-inline-transform.c: New file, broke out of...
2742 * ipa-inline.c: ... this one; Update toplevel comment.
2743 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2745 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2746 (cgraph_mark_inline_edge): Rename to inline_call; move to
2747 ipa-inline-transform.c.
2748 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2749 move to ipa-inline-transform.c
2750 (recursive_inlining, inline_small_functions, flatten_function,
2751 ipa_inline, inline_always_inline_functions,
2752 early_inline_small_functions): Update.
2753 (inline_transform): Move to ipa-inline-transform.c.
2754 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2756 * Makefile.in (ipa-inline-transform.o): New file.
2757 * cgraphunit.c (save_inline_function_body): Move to
2758 ipa-inline-transform.c
2760 2011-04-19 DJ Delorie <dj@redhat.com>
2762 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2763 registers if we already know there aren't any.
2764 (m32c_emit_epilogue): Don't emit a barrier here.
2765 (m32c_emit_eh_epilogue): Likewise.
2766 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2767 operands at expand time.
2768 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2770 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2771 duplicates. Provide aliases instead.
2772 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2773 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2776 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2778 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2779 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2780 (general_or_i64_p, sparc_register_move_cost): New function.
2782 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2784 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2785 Add lynx, mipssde. Sort table.
2787 2011-04-19 Xinliang David Li <davidxl@google.com>
2789 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2792 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2795 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2796 is a SUBREG with non-MODE_INT mode inside of it.
2798 2011-04-19 Martin Jambor <mjambor@suse.cz>
2800 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2801 also according to actual contants.
2802 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2803 (gimple_fold_call): Use it.
2804 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2806 2011-04-19 Martin Jambor <mjambor@suse.cz>
2808 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2809 non-pointer assignments.
2811 2011-04-19 Martin Jambor <mjambor@suse.cz>
2813 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2814 account anc_offset and otr_type from the indirect edge info.
2815 * ipa-prop.c (get_ancestor_addr_info): New function.
2816 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2817 get_ancestor_addr_info, call it.
2818 (ipa_note_param_call): Do not initialize information about polymorphic
2819 calls, return the indirect call graph edge. Remove the last
2820 parameter, adjust all callers.
2821 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2822 parameters. Initialize polymorphic information in the indirect edge.
2824 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2827 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2828 the types if they have different enumeration identifiers.
2830 2011-04-19 Jan Hubicka <jh@suse.cz>
2832 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2833 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2834 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2835 (optimize_function_for_size_p) ... here.
2837 2011-04-19 Richard Guenther <rguenther@suse.de>
2840 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2843 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2845 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2846 if DECL_NO_INLINE_WARNING_P is set on the function.
2848 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2851 * reload1.c (inc_for_reload): Return void. All callers changed.
2852 (emit_input_reload_insns): Don't try to delete previous output
2853 reloads to a register, or record spill_reg_store for autoincs.
2855 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2857 * gengtype.h: Updated copyright year.
2858 (struct input_file_st): Add inpisplugin field.
2859 (type_fileloc): New function.
2861 (write_typed_struct_alloc_def): Add gcc_assert.
2862 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2863 (write_typed_alloc_defns): Don't output for plugin files.
2864 (input_file_by_name): Clear inpisplugin field.
2865 (main): Set inpisplugin field for plugin files.
2867 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2869 * gengtype-state.c (string_eq): New.
2870 (read_state): Use string_eq instead of strcmp when creating the
2873 2011-04-19 Wei Guozhi <carrot@google.com>
2876 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2877 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2879 * config/arm/constraints.md (Uu): New constraint.
2880 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2882 2011-04-19 Tristan Gingold <gingold@adacore.com>
2884 * config.gcc (-*-*-*vms): Added.
2885 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2887 * config/vms/vms-ld.c: New file.
2888 * config/vms/vms-ar.c: New file.
2889 * config/vms/t-vmsnative: New file.
2891 2011-04-18 Xinliang David Li <davidxl@google.com>
2893 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2895 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2898 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2899 if TREE_TYPE (v) is non-NULL.
2901 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2902 gimple_get_virt_mehtod_for_binfo.
2903 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2904 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2906 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2908 2011-04-18 Michael Matz <matz@suse.de>
2909 Steve Ellcey <sje@cup.hp.com>
2911 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2912 use its mode as source mode if it isn't VOIDmode.
2914 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2916 * doc/passes.texi: Fill crossref nodes.
2918 2011-04-18 Jim Meyering <meyering@redhat.com>
2920 Fix doubled-word typos in comments and strings
2921 * config/alpha/vms-unwind.h: s/for for/for/
2922 * config/arm/unwind-arm.h: Likewise.
2923 * config/microblaze/microblaze.c: Likewise.
2924 * config/sh/constraints.md: s/in in/in/
2925 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2927 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2929 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2930 (AVX_FLOAT_MODE_P): Ditto.
2931 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2932 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2933 (AVX_VEC_FLOAT_MODE_P): Ditto.
2934 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2935 (UNSPEC_MASKSTORE): Ditto.
2936 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2937 Merge from <sse>_movmsk<ssemodesuffix> and
2938 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2939 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2941 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2942 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2943 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2945 2011-04-18 Jan Hubicka <jh@suse.cz>
2947 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2949 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2950 (want_inline_function_called_once_p): Break out the logic from
2952 (edge_badness): Ensure that profile is not misupdated.
2953 (lookup_recursive_calls): Prioritize by call frequencies.
2954 (inline_small_functions): Move program size estimates here;
2955 actually process whole queue even when unit growth has been
2956 met. (to properly compute inline_failed reasons and for the
2957 case unit size decrease.) Revisit comments on recursive inlining.
2958 (ipa_inline): Remove unit summary code; first inline hot calls
2959 of functions called once, cold calls next.
2960 (order, nnodes): Remove unused variables.
2961 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2962 (GTFILES): Remove ipa-inline.c
2963 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2965 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2967 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2969 2011-04-18 Jie Zhang <jie@codesourcery.com>
2970 Richard Earnshaw <rearnsha@arm.com>
2972 * arm.c (neon_builtin_type_bits): Remove.
2973 (typedef enum neon_builtin_mode): New.
2974 (T_MAX): Don't define.
2975 (typedef enum neon_builtin_datum): Remove bits, codes[],
2976 num_vars and base_fcode. Add mode, code and fcode.
2977 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2978 VAR10): Change accordingly.
2979 (neon_builtin_data[]): Change accordingly
2980 (arm_init_neon_builtins): Change accordingly.
2981 (neon_builtin_compare): Remove.
2982 (locate_neon_builtin_icode): Remove.
2983 (arm_expand_neon_builtin): Change accordingly.
2985 * arm.h (enum arm_builtins): Move to ...
2986 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2988 * arm.c (arm_builtin_decl): Declare.
2989 (TARGET_BUILTIN_DECL): Define.
2990 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2991 (arm_builtin_decls[]): New.
2992 (arm_init_neon_builtins): Store builtin declarations in
2993 arm_builtin_decls[].
2994 (arm_init_tls_builtins): Likewise.
2995 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
2996 (arm_builtin_decl): New.
2998 2011-04-18 Richard Guenther <rguenther@suse.de>
3000 * tree.c (upper_bound_in_type): Build properly canonicalized
3002 (lower_bound_in_type): Likewise.
3004 2011-04-18 Richard Guenther <rguenther@suse.de>
3006 * gimple.h (gimple_call_addr_fndecl): New function.
3007 (gimple_call_fndecl): Use it.
3008 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3010 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3011 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3013 2011-04-18 Richard Guenther <rguenther@suse.de>
3016 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3018 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3021 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3022 DECL_IN_CONSTANT_POOL without RTL.
3024 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3025 Ira Rosen <ira.rosen@linaro.org>
3028 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3029 to match neon_vzip/vuzp/vtrn_internal.
3030 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3031 outputs explicitly dependent on both inputs.
3032 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3034 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3036 PR tree-optimization/48616
3037 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3038 whether the shift is by scalar or vector based on whether all SLP
3039 scalar stmts have the same rhs.
3041 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3043 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3046 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3048 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3051 2011-04-17 Jan Hubicka <jh@suse.cz>
3053 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3054 * cgrpahunit.c (cgraph_finalize_function): Do not set
3055 finalized_by_frontend.
3056 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3057 finalized_by_frontend.
3059 2011-04-17 Jan Hubicka <jh@suse.cz>
3061 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3062 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3063 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3064 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3066 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3068 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3070 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3073 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3074 is non-null before accessing it.
3075 (input_cgraph): Remove trailing spaces.
3077 2011-04-17 Revital Eres <revital.eres@linaro.org>
3079 * params.def (sms-min-sc): New param flag.
3080 * modulo-sched.c (sms_schedule): Use it.
3081 * doc/invoke.texi (sms-min-sc): Document it.
3083 2011-04-17 Jan Hubicka <jh@suse.cz>
3085 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3086 present, also set gimple_call_set_cannot_inline.
3087 * ipa-inline.c: Update toplevel comment.
3089 (cgraph_clone_inlined_nodes): Fix linebreaks.
3090 (cgraph_check_inline_limits): Restructure to ...
3091 (caller_growth_limits): ... this one; be more tolerant
3092 on growth in nested inline chains; add explanatory comment;
3093 fix stack accounting thinko introduced by previous patch.
3094 (cgraph_default_inline_p): Remove.
3095 (report_inline_failed_reason): New function.
3096 (can_inline_edge_p): New function.
3097 (can_early_inline_edge_p): New function.
3098 (leaf_node_p): Move upwards in file.
3099 (want_early_inline_function_p): New function.
3100 (want_inline_small_function_p): New function.
3101 (want_inline_self_recursive_call_p): New function.
3102 (cgraph_edge_badness): Rename to ...
3103 (edge_badness) ... this one; fix linebreaks.
3104 (update_edge_key): Update call of edge_baddness; add
3105 detailed dump about queue updates.
3106 (update_caller_keys): Use can_inline_edge_p and
3107 want_inline_small_function_p.
3108 (cgraph_decide_recursive_inlining): Rename to...
3109 (recursive_inlining): Use can_inline_edge_p and
3110 want_inline_self_recursive_call_p; simplify and remove no longer
3112 (cgraph_set_inline_failed): Remove.
3113 (add_new_edges_to_heap): Use can_inline_edge_p and
3114 want_inline_small_function_p.
3115 (cgraph_decide_inlining_of_small_functions): Rename to ...
3116 (inline_small_functions): ... this one; cleanup; use
3117 can/want predicates; cleanup debug ouput; work edges till fibheap
3118 is exhausted and do not stop once unit growth is reached; remove
3119 later loop processing remaining edges.
3120 (cgraph_flatten): Rename to ...
3121 (flatten_function): ... this one; use can_inline_edge_p
3122 and can_early_inline_edge_p predicates.
3123 (cgraph_decide_inlining): Rename to ...
3124 (ipa_inline): ... this one; remove unreachable nodes before
3125 inlining functions called once; simplify the pass.
3126 (cgraph_perform_always_inlining): Rename to ...
3127 (inline_always_inline_functions): ... this one; use
3128 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3129 (cgraph_decide_inlining_incrementally): Rename to ...
3130 (early_inline_small_functions): ... this one; simplify
3131 using new predicates; cleanup; make dumps prettier.
3132 (cgraph_early_inlining): Rename to ...
3133 (early_inliner): newer inline regular functions into always-inlines;
3134 fix updating of call stmt summaries.
3135 (pass_early_inline): Update for new names.
3136 (inline_transform): Fix formating.
3137 (gate_cgraph_decide_inlining): Rename to ...
3138 (pass_ipa_inline): ... this one.
3139 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3140 * ipa-inline-analysis.c (dump_inline_summary): Update.
3141 (compute_inline_parameters): Do not compute disregard_inline_limits;
3142 look for mismatching arguments.
3143 (estimate_growth): Fix handlig of non-trivial self recursion.
3144 (inline_read_summary): Do not read info->disregard_inline_limits.
3145 (inline_write_summary): Do not write info->disregard_inline_limits.
3146 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3147 and move all checks into can_inline_edge_p predicate; re-enable code
3148 comparing optimization levels.
3149 (expand_call_inline): Do not test inline_forbidden_into_p.
3150 * Makefile.in (ipa-inline.o): Update arguments.
3152 2011-04-17 Revital Eres <revital.eres@linaro.org>
3154 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3156 2011-04-17 Revital Eres <revital.eres@linaro.org>
3158 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3160 2011-04-17 Michael Matz <matz@suse.de>
3162 PR tree-optimization/48622
3164 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3165 in same order as they're written.
3167 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3169 * config/pa/predicates.md: Reorganize and simplify predicates.
3170 Eliminate duplicate code checks.
3171 (arith_operand): Rename to arith14_operand
3172 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3173 * config/pa/pa.md: Use renamed operands.
3174 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3175 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3176 arith11_operand, adddi3_operand, indexed_memory_operand,
3177 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3178 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3179 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3180 move_dest_operand, move_src_operand, prefetch_cc_operand,
3181 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3182 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3183 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3184 div_operand, int5_operand, movb_comparison_operator,
3185 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3186 arith_double_operand, ireg_operand, lhs_lshift_operand,
3187 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3188 integer_store_memory_operand): Likewise.
3189 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3190 (integer_store_memory_operand, read_only_operand,
3191 function_label_operand, borx_reg_operand,
3192 non_hard_reg_operand): Likewise.
3193 (eq_neq_comparison_operator): Delete unused operator.
3194 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3195 function_label_operand.
3196 (emit_move_sequence): Likewise.
3198 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3200 * config/i386/sse.md (sseunpackmode): New mode attribute.
3201 (ssepackmode): Ditto.
3202 (vec_pack_trunc_<mode>): Macroize expander from
3203 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3204 (vec_unpacks_lo_<mode>): Macroize expander from
3205 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3206 (vec_unpacks_hi_<mode>): Macroize expander from
3207 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3208 (vec_unpacku_lo_<mode>): Macroize expander from
3209 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3210 (vec_unpacku_hi_<mode>): Macroize expander from
3211 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3212 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3213 ix86_expand_sse4_unpack.
3214 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3216 2011-04-16 Jan Hubicka <jh@suse.cz>
3218 * cgraphbuild.c: Include ipa-inline.h.
3219 (reset_inline_failed): Use initialize_inline_failed.
3220 * cgraph.c: Include ipa-inline.h.
3221 (cgraph_create_node_1): Do not initialize estimated_growth.
3222 (initialize_inline_failed): More to ipa-inline-analysis.c
3223 (dump_cgraph_node): Do not dump inline flags.
3224 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3225 and disregard_inline_limits flags.
3226 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3227 time, size, estimated_growth.
3228 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3230 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3231 DECL_DISREGARD_INLINE_LIMITS.
3232 (cgraph_analyze_function): Do not initialize
3233 node->local.disregard_inline_limits.
3234 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3235 inlinable, versionable and disregard_inline_limits.
3236 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3237 cgraph_check_inline_limits, cgraph_default_inline_p,
3238 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3239 add_new_edges_to_heap): Update.
3240 (cgraph_decide_inlining_of_small_function): Update; set
3241 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3242 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3243 cgraph_decide_inlining_incrementally): Update.
3244 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3245 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3246 time, size and estimated_growth parameters.
3247 (estimate_edge_growth): Update.
3248 (initialize_inline_failed): Declare.
3249 * ipa-split.c: Include ipa-inline.h
3250 (execute_split_functions): Update.
3251 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3252 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3253 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3254 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3255 estimated_growth to INT_MIN.
3256 (inline_node_duplication_hook): Likewise.
3257 (dump_inline_summary): Dump new fields.
3258 (compute_inline_parameters): Update.
3259 (estimate_edge_time, estimate_time_after_inlining,
3260 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3261 inline_write_summary):
3262 (initialize_inline_failed): Move here from cgraph.c.
3263 * tree-sra.c: Include ipa-inline.h.
3264 (ipa_sra_preliminary_function_checks): Update.
3265 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3268 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3270 * config/i386/sse.md (V16): New mode iterator.
3272 (AVXMODEQI, AVXMODEDI): Remove.
3273 (sse2, sse3): New mode attribute.
3274 (mov<mode>): Use V16 mode iterator.
3275 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3276 (push<mode>1): Use V16 mode iterator.
3277 (movmisalign<mode>): Ditto.
3278 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3279 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3280 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3281 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3282 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3283 avx_movdqu<avxmodesuffix>.
3284 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3285 *avx_movdqu<avxmodesuffix>.
3286 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3287 avx_lddqu<avxmodesuffix>.
3288 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3289 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3290 avx_movnt<AVXMODEDI:mode>.
3291 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3292 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3294 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3297 * haifa-sched.c (prune_ready_list, schedule_block): Use
3298 sched_pressure_p rather than flag_sched_pressure.
3300 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3302 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3303 cgraph_get_node instead of cgraph_get_create_node.
3305 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3307 * cfgexpand.c (expand_debug_expr): Use
3308 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3310 2011-04-15 Michael Matz <matz@suse.de>
3312 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3313 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3314 * function.c (gimplify_parameters): Ditto.
3315 * gimplify.c (gimplify_vla_decl): Ditto.
3317 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3318 (gimple_call_set_alloca_for_var): New inline function.
3319 (gimple_call_alloca_for_var_p): Ditto.
3320 * gimple.c (gimple_build_call_from_tree): Remember
3321 CALL_ALLOCA_FOR_VAR_P state.
3322 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3324 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3325 calls if they were for VLA objects.
3327 2011-04-15 Martin Jambor <mjambor@suse.cz>
3329 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3332 2011-04-15 Martin Jambor <mjambor@suse.cz>
3335 * tree-emutls.c (lower_emutls_function_body): Call
3336 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3339 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3341 * c-decl.c (detect_field_duplicates): Call
3342 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3344 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3346 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3347 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3348 * ipa-pure-const.c (check_stmt): Call it.
3349 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3351 2011-04-15 Richard Guenther <rguenther@suse.de>
3353 PR tree-optimization/48290
3354 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3355 Properly decide inhibiting propagation based on the valueized
3356 operand. Do loop-closed SSA form preserving here ...
3357 (init_copy_prop): ... not here.
3359 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3362 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3363 (*ieee_smax<mode>3): Likewise.
3365 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3367 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3368 Replace match_operand with match_dup for the third operand in
3371 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3373 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3374 to track processing of conditionals. Update all callers.
3375 (try_combine, simplify_if_then_else): Update.
3377 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3379 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3382 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3384 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3385 instead of match_operand for operand 3.
3387 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3389 * recog.h (insn_operand_data): Add an "allows_mem" field.
3390 * genoutput.c (output_operand_data): Initialize it.
3391 * optabs.c (maybe_legitimize_operand_same_code): New function.
3392 (maybe_legitimize_operand): Use it when matching the original
3395 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3397 * gimplify.c: Fix issues in comments throughout.
3398 (voidify_wrapper_expr): Fix long line.
3399 (build_stack_save_restore): Likewise.
3400 (gimplify_loop_expr): Likewise.
3401 (gimplify_compound_lval): Likewise.
3402 (gimplify_init_ctor_eval): Likewise.
3403 (gimplify_modify_expr_rhs): Likewise.
3404 (omp_notice_threadprivate_variable): Likewise.
3406 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3408 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3409 original one if this is not a builtin function.
3411 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3414 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3415 offset it as needed based on top 2 bits in operands[3], change
3416 MEM mode to SFmode and mask those 2 bits away from operands[3].
3418 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3420 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3421 change from objc_declare_protocols() to objc_declare_protocol().
3423 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3425 * config/i386/sse.md (sse4_1): New mode attribute.
3426 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3427 avx_blend<ssemodesuffix><avxmodesuffix> and
3428 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3429 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3430 avx_blendv<ssemodesuffix><avxmodesuffix> and
3431 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3432 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3433 avx_dp<ssemodesuffix><avxmodesuffix> and
3434 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3435 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3436 (sse4_1_packusdw): Merge with *avx_packusdw.
3437 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3438 (sse4_1_pblendw): Merge with *avx_pblendw.
3439 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3440 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3441 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3443 (sse4_1_round<ssescalarmodesuffix>): Merge with
3444 *avx_round<ssescalarmodesuffix>.
3445 (aesenc): Merge with *avx_aesenc.
3446 (aesenclast): Merge with *avx_aesenclast.
3447 (aesdec): Merge with *avx_aesdec.
3448 (aesdeclast): Merge with *avx_aesdeclast.
3449 (pclmulqdq): Merge with *pclmulqdq.
3450 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3452 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3454 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3457 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3458 (align_local_variable): This. Update DECL_ALIGN.
3459 (add_stack_var): Updated.
3460 (expand_one_stack_var): Likewise.
3462 2011-04-14 Richard Guenther <rguenther@suse.de>
3464 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3466 (dse_initialize_block_local_data, dse_leave_block,
3467 record_voperand_set, get_stmt_uid): Likewise.
3468 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3469 (dse_optimize_stmt): Remove voperand set handling code.
3470 Simplify and improve to handle any kind of killing stmt.
3471 (dse_record_phi): Remove.
3472 (dse_enter_block): Simplify.
3473 (tree_ssa_dse): Likewise.
3474 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3476 2011-04-14 Jan Hubicka <jh@suse.cz>
3478 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3479 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3480 (cgraph_local_info): Remove inline_summary.
3481 * ipa-cp.c: Include ipa-inline.h.
3482 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3483 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3485 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3486 (input_overwrite_node): Do not set inline summary.
3487 (input_node): Do not stream inline summary.
3488 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3489 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3490 growth; we do not have inline parameters computed for that anyway.
3491 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3492 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3493 (inline_summary_t): New type and VECtor.
3494 (debug_inline_summary, dump_inline_summaries): Declare.
3495 (inline_summary): Use VOCtor.
3496 (estimate_edge_growth): Kill hack computing call stmt size directly.
3497 * lto-section-in.c (lto_section_name): Add inline section.
3498 * ipa-inline-analysis.c: Include lto-streamer.h
3499 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3500 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3501 (inline_summary_vec): Define.
3502 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3503 dump_inline_summaries): New functions.
3504 (estimate_function_body_sizes): Properly compute size/time of outgoing
3506 (compute_inline_parameters): Alloc inline_summary; do not compute
3507 size/time of incomming calls.
3508 (estimate_edge_time): Avoid missing time summary hack.
3509 (inline_read_summary): Read inline summary info.
3510 (inline_write_summary): Write inline summary info.
3511 (inline_free_summary): Free all hooks and inline summary vector.
3512 * lto-streamer.h: Add LTO_section_inline_summary section.
3513 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3514 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3516 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3518 * tree-vectorizer.h (vect_strided_store_supported): Add a
3519 HOST_WIDE_INT argument.
3520 (vect_strided_load_supported): Likewise.
3521 (vect_permute_store_chain): Return void.
3522 (vect_transform_strided_load): Likewise.
3523 (vect_permute_load_chain): Delete.
3524 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3525 count argument. Check that the count is a power of two.
3526 (vect_strided_load_supported): Likewise.
3527 (vect_permute_store_chain): Return void. Update after above changes.
3528 Assert that the access is supported.
3529 (vect_permute_load_chain): Likewise.
3530 (vect_transform_strided_load): Return void.
3531 * tree-vect-stmts.c (vectorizable_store): Update calls after
3532 above interface changes.
3533 (vectorizable_load): Likewise.
3534 (vect_analyze_stmt): Don't check for strided powers of two here.
3536 2011-04-14 Richard Guenther <rguenther@suse.de>
3538 PR tree-optimization/48590
3539 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3540 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3541 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3542 BUILT_IN_STACK_SAVE.
3543 * tree-ssa-dce.c (propagate_necessity): Handle
3544 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3546 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3548 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3551 2011-04-14 Richard Guenther <rguenther@suse.de>
3553 * tree.h (get_object_alignment_1): Declare.
3554 * builtins.c (get_object_alignment_1): Split out worker from ...
3555 (get_object_alignment): ... here.
3556 * fold-const.c (get_pointer_modulus_and_residue): Use
3557 get_object_alignment_1.
3559 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3561 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3563 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3564 parameter. Generalise code to handle arrays as well as vectors.
3565 (vect_setup_realignment): Update accordingly.
3566 * tree-vect-stmts.c (vectorizable_store): Likewise.
3567 (vectorizable_load): Likewise.
3569 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3571 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3572 within the per-copy loop.
3574 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3576 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3579 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3581 * doc/options.texi (Negative): Explicitly mention that the
3582 Negative chain must be circular.
3584 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3586 * function.h (block_chainon): Declare.
3587 * function.c (block_chainon): Define.
3589 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3590 Eric Weddington <eric.weddington@atmel.com>
3591 Georg-Johann Lay <avr@gjlay.de>
3593 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3595 (avr_init_builtins, avr_expand_builtin,
3596 avr_expand_delay_cycles, avr_expand_unop_builtin,
3597 avr_expand_binop_builtin ): New functions.
3598 (avr_builtin_id): New enum
3599 (struct avr_builtin_description): New struct
3600 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3601 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3603 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3604 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3605 UNSPECV_DELAY_CYCLES): new enumeration values
3606 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3607 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3608 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3609 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3610 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3611 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3612 "fmulsu"): New insns
3614 * config/avr/avr-c.c: fix line endings
3615 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3616 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3617 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3618 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3619 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3621 * doc/extend.texi (AVR Built-in Functions): New node
3622 (Target Builtins): Add documentation of AVR
3625 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3628 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3629 alone. Error if non-const data has attribute progmem.
3631 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3633 * tree.h (struct tree_constructor): Include tree_typed instead of
3635 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3636 TS_TYPED instead of TS_COMMON.
3638 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3640 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3641 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3642 (sse2_psadbw): Merge with *avx_psadbw.
3643 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3644 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3645 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3646 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3647 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3648 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3649 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3650 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3651 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3652 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3653 (ssse3_palignrti): Merge with *avx_palignrti.
3655 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3657 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3658 * tree-ssanames.c (fini_ssanames): VEC_free it.
3659 (make_ssa_name_fn): Update for VECness of free_ssanames.
3660 (release_ssa_name, release_dead_ssa_names): Likewise.
3661 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3663 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3664 TS_TYPED instead of TS_COMMON.
3666 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3668 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3669 statistics_counter_event.
3670 * tree-ssa-copyrename.c (stats): Define.
3671 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3672 statistics_counter_event.
3673 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3674 (bswap_stats, widen_mul_stats): Define.
3675 (insert_reciprocals): Increment rdivs_inserted.
3676 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3677 rfuncs_inserted. Add calls to statistics_counter_event.
3678 (execute_cse_sincos_1): Increment inserted.
3679 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3680 statistics_counter_event.
3681 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3682 of bswap_stats. Add calls to statistics_counter_event.
3683 (convert_mult_to_widen): Increment widen_mults_inserted.
3684 (convert_plusminus_to_widen): Increment maccs_inserted.
3685 (convert_mult_to_fma): Increment fmas_inserted.
3686 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3687 calls to statistics_counter_event.
3689 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3691 PR rtl-optimization/48455
3692 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3693 `temp_costs->mem_cost'.
3695 2011-04-13 Jan Hubicka <jh@suse.cz>
3697 * ipa-inline.h: New file.
3698 * ipa-inline-analysis.c: New file. Broken out of ...
3699 * ipa-inline.c: ... this file; update toplevel comment;
3700 include ipa-inline.h
3701 (inline_summary): Move to ipa-inline.h
3702 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3703 ipa-inline-analysis.c.
3704 (cgraph_estimate_time_after_inlining): Rename to
3705 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3706 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3707 to estimate_edge_growth.
3708 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3709 rename to estimate_size_after_inlining.
3710 (cgraph_mark_inline_edge): Update for new naming convention.
3711 (cgraph_check_inline_limits): Likewise.
3712 (cgraph_edge_badness): Likewise.
3713 (cgraph_decide_recursive_inlining): Likewise.
3714 (cgraph_decide_inlining_of_small_functions): Likewise.
3715 (cgraph_decide_inlining_incrementally): Likewise.
3716 (cgraph_estimate_growth): Rename to estimate_growth; move to
3717 ipa-inline-analysis.c.
3718 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3719 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3720 (compute_inline_parameters): Likewise.
3721 (compute_inline_parameters_for_current): Likewise.
3722 (pass_inline_parameters): Likewise.
3723 (inline_indirect_intraprocedural_analysis): Likewise.
3724 (analyze_function): Rename to inline_analyze_function; likewise.
3725 (add_new_function): Move to ipa-inline-analysis.c.
3726 (inline_generate_summary): Likewise.
3727 (inline_read_summary): Likewise.
3728 (inline_write_summary): Likewise.
3729 * Makefile.in (ipa-inline-analysis.c): New file.
3731 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3733 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3734 * configure: Regenerate.
3736 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3738 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3739 instead of tree_common.
3740 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3742 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3743 TS_TYPED rather than TS_COMMON.
3744 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3746 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3749 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3750 r20 around calls of __tablejump_elpm__
3752 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3755 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3757 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3759 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3761 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3762 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3763 (cfi_vec): New typedef.
3764 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3765 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3766 (cie_cfi_vec): New static variable.
3767 (cie_cfi_head): Delete.
3768 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3769 declaration changed. Use vector rather than list operations.
3770 (new_cfi): Don't initialize the dw_cfi_next field.
3771 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3772 rather than list operations.
3773 (lookup_cfa): Use vector rather than list operations.
3774 (output_cfis): New argument upto. Accept a cfi_vec rather than
3775 a dw_cfi_ref list head as argument. All callers changed.
3776 Iterate over the vector using upto as a maximum index.
3777 (output_all_cfis): New static function.
3778 (output_fde): Use vector rather than list operations. Use the
3779 new upto argument for output_cfis rather than manipulating a
3781 (dwarf2out_begin_prologue): Change initializations to match
3783 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3784 from the vector length rather than searching for the end of a list.
3785 Use output_all_cfis.
3786 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3788 2011-04-13 Nick Clifton <nickc@redhat.com>
3790 * config/rx/rx.md (movmemsi): Do not use this pattern when
3791 volatile pointers are involved.
3793 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3795 * config/i386/sse.md (pinsrbits): Remove.
3796 (sse2_packsswb): Merge with *avx_packsswb.
3797 (sse2_packssdw): Merge with *avx_packssdw.
3798 (sse2_packuswb): Merge with *avx_packuswb.
3799 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3800 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3801 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3802 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3803 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3804 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3805 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3806 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3807 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3808 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3809 (sse2_loadld): Merge with *avx_loadld.
3810 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3811 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3812 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3813 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3814 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3816 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3818 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3820 * print-tree.c (print_node): Likewise.
3821 * tree-inline.c (copy_tree_r): Likewise.
3822 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3823 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3824 instead of TS_COMMON.
3825 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3826 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3827 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3828 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3829 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3831 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3833 (TREE_CHAIN): Check for a TS_COMMON structure.
3834 (TREE_TYPE): Check for a TS_TYPED structure.
3836 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3838 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3839 cgraph_get_create_node instead of cgraph_node.
3841 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3843 * c-parser.c (c_parser_initelt): Updated call to
3844 objc_build_message_expr.
3845 (c_parser_postfix_expression): Likewise.
3847 2011-04-12 Kai Tietz <ktietz@redhat.com>
3849 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3850 MASK_MS_BITFIELD_LAYOUT bit.
3852 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3854 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3855 assert it is always true.
3856 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3859 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3861 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3862 compiling Objective-C to be more efficient.
3864 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3866 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3869 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3871 * recog.h, genoutput.c, optabs.c: Revert last patch.
3873 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3876 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3878 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3880 * recog.h (insn_operand_data): Add an "allows_mem" field.
3881 * genoutput.c (output_operand_data): Initialize it.
3882 * optabs.c (maybe_legitimize_operand_same_code): New function.
3883 (maybe_legitimize_operand): Use it when matching the original
3886 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3888 * genpreds.c (process_define_predicate): Move most processing
3889 to gensupport.c. Continue to validate the expression.
3890 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3891 (process_define_predicate): Move processing to gensupport.c.
3892 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3893 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3894 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3896 (valid_predicate_name_p): New function, split out from old
3897 genpreds.c:process_define_predicate.
3898 (process_define_predicate): New function, combining code from
3899 old genpreds.c and genrecog.c functions.
3900 (process_rtx): Call it for DEFINE_PREDICATE and
3901 DEFINE_SPECIAL_PREDICATE.
3903 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3905 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3906 size of a '%A' memory reference.
3907 (T_DREG, T_QREG): New neon_builtin_type_bits.
3908 (arm_init_neon_builtins): Assert that the load and store operands
3909 are neon_struct_operands.
3910 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3911 (NEON_ARG_MEMORY): New builtin_arg.
3912 (neon_dereference_pointer): New function.
3913 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3914 Handle NEON_ARG_MEMORY.
3915 (arm_expand_neon_builtin): Update after above interface changes.
3916 Use NEON_ARG_MEMORY for loads and stores.
3917 * config/arm/predicates.md (neon_struct_operand): New predicate.
3918 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3919 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3920 (V_four_elem): Tweak formatting.
3921 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3922 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3923 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3924 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3925 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3926 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3927 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3928 Use %A in the output template.
3929 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3930 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3931 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3932 the width of the memory access. Remove post-increment.
3933 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3935 2011-04-12 Nick Clifton <nickc@redhat.com>
3937 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3938 instruction for interrupt handlers if the target is the basic V850
3940 (expand_epilogue): Likewise.
3942 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3944 PR rtl-optimization/48549
3945 * combine.c (propagate_for_debug): Also stop after BB_END of
3946 this_basic_block. Process LAST and just stop processing after it.
3947 (combine_instructions): If last_combined_insn has been deleted,
3948 set last_combined_insn to its PREV_INSN.
3950 2011-04-12 Richard Guenther <rguenther@suse.de>
3952 PR tree-optimization/46076
3953 * gimple.h (struct gimple_statement_call): Add fntype field.
3954 (gimple_call_fntype): Adjust.
3955 (gimple_call_set_fntype): New function.
3956 * gimple.c (gimple_build_call_1): Set the call function type.
3957 * gimplify.c (gimplify_call_expr): Preserve the function
3958 type the frontend used for the call.
3959 (gimplify_modify_expr): Likewise.
3960 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3962 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3964 * tree-ssa.c (useless_type_conversion_p): Function pointer
3965 conversions are useless.
3967 2011-04-12 Martin Jambor <mjambor@suse.cz>
3969 * cgraph.h (cgraph_node): Remove function declaration.
3970 (cgraph_create_node): Declare.
3971 (cgraph_get_create_node): Likewise.
3972 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3973 Updated all callers.
3974 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3975 the decl does not already exist. Call cgraph_get_create_node instead
3977 (cgraph_get_create_node): New function.
3978 (cgraph_same_body_alias): Update comment.
3979 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3980 assert it does not return NULL.
3981 (cgraph_update_edges_for_call_stmt): Likewise.
3982 (cgraph_clone_edge): Likewise.
3983 (cgraph_create_virtual_clone): Likewise.
3984 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3985 instead of cgraph_node.
3986 (cgraph_add_new_function): Call cgraph_create_node or
3987 cgraph_get_create_node instead of cgraph_node.
3988 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3989 instead of cgraph_node.
3990 (record_eh_tables): Likewise.
3991 (mark_address): Likewise.
3992 (mark_load): Likewise.
3993 (build_cgraph_edges): Call cgraph_get_create_node instead
3995 (rebuild_cgraph_edges): Likewise.
3996 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3997 instead of cgraph_node.
3998 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4000 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4001 cgraph_create_node instead of cgraph_node.
4002 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4004 * lto-cgraph.c (input_node): Likewise.
4005 * lto-streamer-in.c (input_function): Likewise.
4006 * varasm.c (mark_decl_referenced): Likewise.
4007 (assemble_alias): Likewise.
4009 2011-04-12 Martin Jambor <mjambor@suse.cz>
4011 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4012 instead of cgraph_node and assert it does not return NULL.
4013 * lto-streamer-in.c (lto_read_body): Likewise.
4014 * omp-low.c (new_omp_context): Likewise.
4015 (create_task_copyfn): Likewise.
4016 * tree-emutls.c (lower_emutls_function_body): Likewise.
4017 * matrix-reorg.c (transform_allocation_sites): Likewise.
4019 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4022 * c-typeck.c (build_asm_expr): Error out on attempts to use
4023 void type outputs or inputs for constraints that allow reg or
4026 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4027 Richard Earnshaw <rearnsha@arm.com>
4030 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4031 to use sign-magnitude offsets. Reject unsupported unaligned
4032 cases. Add detailed description in comments.
4033 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4034 condition from TARGET_32BIT to TARGET_ARM.
4036 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4038 * tree.h (struct typed_tree): New.
4039 (struct tree_common): Include it instead of tree_base.
4040 (TREE_TYPE): Update for new location of type field.
4041 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4042 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4043 (union tree_node): Add typed field.
4044 * treestruct.def (TS_TYPED): New.
4045 * lto-streamer.c (check_handled_ts_structures): Handle it.
4046 * tree.c (MARK_TS_TYPED): New macro.
4047 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4049 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4051 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4052 (force_nonfallthru): Do not alter the loop nest if no basic block
4055 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4057 * config/i386/sse.md (VI): New mode iterator.
4059 (AVX256MODEI): Ditto.
4060 (AVXMODEF4P): Ditto.
4061 (avxvecpsmode): Ditto.
4062 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4063 (sse2_andnot<mode>3): New expander.
4064 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4065 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4066 (<any_logic:code><mode>3): Use VI mode iterator.
4067 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4068 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4069 (*andnottf3): Handle AVX three-operand constraints.
4070 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4072 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4073 Robert Millan <rmh@gnu.org>
4075 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4076 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4077 GNU_USER_DYNAMIC_LINKER64): Define.
4078 (REG_NAME): Don't undefine.
4079 (MD_UNWIND_SUPPORT): Undefine.
4080 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4081 (REG_NAME): Don't undefine.
4082 (MD_UNWIND_SUPPORT): Undefine.
4083 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4085 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4087 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4088 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4090 2011-04-11 Xinliang David Li <davidxl@google.com>
4092 * value-profile.c (check_ic_target): New function.
4093 (gimple_ic_transform): Sanity check indirect call target.
4094 * gimple-low.c (gimple_check_call_args): Interface change.
4095 (gimple_check_call_matching_types): New function.
4096 * tree-inline.c (tree_can_inline_p): Call new function.
4098 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4100 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4101 tree-pretty-print.h & realmpfr.h.
4103 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4106 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4107 (setup_allocno_and_important_classes): Ditto.
4109 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4111 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4112 GNU_USER_DYNAMIC_LINKER.
4113 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4114 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4115 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4116 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4117 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4118 GNU_USER_TARGET_OS_CPP_BUILTINS.
4119 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4120 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4121 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4122 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4123 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4124 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4125 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4126 GNU_USER_TARGET_OS_CPP_BUILTINS.
4127 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4128 GNU_USER_DYNAMIC_LINKER.
4129 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4130 GNU_USER_TARGET_OS_CPP_BUILTINS.
4131 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4132 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4133 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4134 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4135 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4136 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4137 GNU_USER_DYNAMIC_LINKER64): Remove.
4138 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4139 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4140 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4141 GNU_USER_DYNAMIC_LINKER.
4142 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4143 GNU_USER_TARGET_OS_CPP_BUILTINS.
4144 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4145 GNU_USER_TARGET_OS_CPP_BUILTINS.
4146 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4147 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4148 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4149 GNU_USER_TARGET_OS_CPP_BUILTINS.
4150 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4151 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4152 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4153 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4154 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4155 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4156 GNU_USER_DYNAMIC_LINKER.
4157 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4158 GNU_USER_TARGET_OS_CPP_BUILTINS.
4159 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4160 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4161 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4162 GNU_USER_DYNAMIC_LINKER.
4163 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4164 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4165 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4166 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4167 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4168 GNU_USER_DYNAMIC_LINKER.
4169 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4170 GNU_USER_DYNAMIC_LINKERN32.
4171 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4172 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4173 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4174 GNU_USER_DYNAMIC_LINKER32.
4175 * config/mn10300/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/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4180 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4181 * config/pa/pa-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 GNU_USER_DYNAMIC_LINKER.
4184 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4185 GNU_USER_DYNAMIC_LINKER32.
4186 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4187 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4188 GNU_USER_DYNAMIC_LINKER.
4189 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4190 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4191 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4192 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4193 GNU_USER_DYNAMIC_LINKER64.
4194 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4195 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4196 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4197 GNU_USER_DYNAMIC_LINKER.
4198 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4199 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4200 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4201 GNU_USER_DYNAMIC_LINKER.
4202 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4203 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4204 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4205 GNU_USER_DYNAMIC_LINKER32.
4206 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4207 GNU_USER_DYNAMIC_LINKER64.
4208 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4209 GNU_USER_DYNAMIC_LINKER64.
4210 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4211 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4212 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4213 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4214 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4216 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4218 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4219 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4220 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4221 GNU_USER_DYNAMIC_LINKER.
4222 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4223 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4224 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4225 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4226 GNU_USER_DYNAMIC_LINKER64.
4227 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4228 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4229 GNU_USER_LINK_EMULATION.
4230 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4231 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4232 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4233 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4234 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4235 CPP_SPEC, CC1_SPEC): Remove.
4236 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4237 (GNU_USER_DYNAMIC_LINKER): Define.
4238 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4239 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4240 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4241 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4242 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4243 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4244 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4245 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4246 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4247 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4248 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4249 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4250 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4251 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4252 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4253 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4254 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4255 GNU_USER_DYNAMIC_LINKER.
4256 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4257 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4258 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4259 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4260 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4261 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4262 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4263 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4264 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4265 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4267 2011-04-11 Kai Tietz <ktietz@redhat.com>
4271 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4272 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4274 (ix86_is_msabi_thiscall): Removed.
4275 (ix86_is_type_thiscall): Likewise.
4276 (ix86_get_callcvt): New function.
4277 (ix86_comp_type_attributes): Simplify check.
4278 (ix86_function_regparm): Use ix86_get_callcvt for calling
4279 convention attribute checks.
4280 (ix86_return_pops_args): Likewise.
4281 (ix86_static_chain): Likewise.
4282 (x86_this_parameter): Likewise.
4283 (x86_output_mi_thunk): Likewise.
4284 (ix86_function_type_abi): Optimize check for types without attributes.
4285 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4286 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4287 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4289 (IX86_BASE_CALLCVT): Helper macro.
4290 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4291 Use ix86_get_callcvt for calling convention attribute checks and avoid
4292 symbol-decoration for stdcall in TARGET_RTD case.
4293 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4295 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4298 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4300 * config/i386/sse.md (VI_128): New mode iterator.
4301 (VI12_128): Rename from SSEMODE12.
4302 (VI14_128): Rename from SSEMODE14.
4303 (VI124_128): New mode iterator.
4304 (VI24_128): Rename from SSEMODE248.
4305 (VI248_128): Rename from SSEMODE248.
4306 (SSEMODE124C8): Remove.
4307 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4308 (*sse2_<plusminus_insn><mode>3): Merge with
4309 *avx_<plusminus_insn><mode>3.
4310 (*mulv8hi3): Merge with *avx_mulv8hi3.
4311 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4312 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4313 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4314 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4315 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4316 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4317 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4318 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4319 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4320 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4321 (*<smaxmin:code>v8hi3): Ditto.
4322 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4323 (*<smaxmin:code>v16qi3): Ditto.
4324 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4325 (*sse2_eq<mode>3): Ditto.
4326 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4327 (*sse2_gt<mode>3): Ditto.
4328 (vcondv2di): Split out of vcond<mode>.
4329 (vconduv2di): Split out of vcondu<mode>.
4331 2011-04-11 Richard Guenther <rguenther@suse.de>
4333 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4334 before calling tree_low_cst.
4336 2011-04-11 Richard Guenther <rguenther@suse.de>
4338 * stor-layout.c (layout_type): Compute all array index size operations
4339 in the original type.
4340 (initialize_sizetypes): Add comment.
4341 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4343 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4345 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4347 2011-04-11 Martin Jambor <mjambor@suse.cz>
4349 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4350 of cgraph_node, handle NULL return value.
4351 (cgraph_global_info): Likewise.
4352 (cgraph_rtl_info): Likewise.
4353 * tree-inline.c (estimate_num_insns): Likewise.
4354 * gimplify.c (unshare_body): Likewise.
4355 (unvisit_body): Likewise.
4356 (gimplify_body): Likewise.
4357 * predict.c (optimize_function_for_size_p): Likewise.
4358 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4359 (call_may_clobber_ref_p_1): Likewise.
4360 * varasm.c (function_section_1): Likewise.
4361 (assemble_start_function): Likewise.
4363 2011-04-11 Martin Jambor <mjambor@suse.cz>
4365 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4367 * final.c (rest_of_clean_state): Likewise.
4368 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4369 * passes.c (pass_init_dump_file): Likewise.
4370 (execute_all_ipa_transforms): Likewise.
4371 (function_called_by_processed_nodes_p): Likewise.
4372 * predict.c (maybe_hot_frequency_p): Likewise.
4373 (probably_never_executed_bb_p): Likewise.
4374 (compute_function_frequency): Likewise.
4375 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4376 (unnest_nesting_tree_1): Likewise.
4377 (lower_nested_functions): Likewise.
4378 * tree-optimize.c (execute_fixup_cfg): Likewise.
4379 (tree_rest_of_compilation): Likewise.
4380 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4381 * tree-sra.c (ipa_early_sra): Likewise.
4382 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4383 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4384 * ipa.c (record_cdtor_fn): Likewise.
4385 * ipa-inline.c (cgraph_early_inlining): Likewise.
4386 (compute_inline_parameters_for_current): Likewise.
4387 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4388 * ipa-pure-const.c (local_pure_const): Likewise.
4389 * ipa-split.c (split_function): Likewise.
4390 (execute_split_functions): Likewise.
4391 * cgraphbuild.c (build_cgraph_edges): Likewise.
4392 (rebuild_cgraph_edges): Likewise.
4393 (cgraph_rebuild_references): Likewise.
4394 (remove_cgraph_callee_edges): Likewise.
4395 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4396 (verify_cgraph_node): Likewise.
4397 (cgraph_analyze_functions): Likewise.
4398 (cgraph_preserve_function_body_p): Likewise.
4399 (save_inline_function_body): Likewise.
4400 (save_inline_function_body): Likewise.
4401 * tree-inline.c (copy_bb): Likewise.
4402 (optimize_inline_calls): Likewise.
4404 2011-04-11 Martin Jambor <mjambor@suse.cz>
4406 PR tree-optimization/48195
4407 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4408 ipa_check_create_edge_args.
4409 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4410 ipa_check_create_edge_args.
4411 * ipa-inline.c (inline_generate_summary): Do not call
4412 ipa_check_create_node_params and ipa_check_create_edge_args.
4413 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4414 ipa_check_create_edge_args.
4416 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4418 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4420 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4421 * function.c (record_hard_reg_sets): Likewise.
4422 * ira.c (compute_regs_asm_clobbered): Likewise.
4423 * sched-deps.c (sched_analyze_1): Likewise.
4424 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4426 2011-04-09 Xinliang David Li <davidxl@google.com>
4428 PR tree-optimization/PR48484
4429 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4430 has_valid_pred lazily
4432 2011-04-09 Duncan Sands <baldrick@free.fr>
4434 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4436 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4438 * combine.c (combine_validate_cost): Adjust comments. Set registered
4439 cost of I0 to zero at the end, if any.
4441 2011-04-08 Xinliang David Li <davidxl@google.com>
4443 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4444 to insane profile data.
4446 2011-04-08 Xinliang David Li <davidxl@google.com>
4448 * ipa-cp.c (ipcp_update_profiling): Correct
4449 negative scale factor due to insane profile data.
4451 2011-04-08 Xinliang David Li <davidxl@google.com>
4453 * final.c (dump_basic_block_info): New function.
4454 (final): Dump basic block.
4455 (final_scan_insn): Remove old dump.
4457 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4460 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4463 2011-04-08 Michael Matz <matz@suse.de>
4466 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4468 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4469 * rtl.h (rebuild_jump_labels_chain): Declare.
4470 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4471 insns inserted on edges.
4473 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4475 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4476 * config/arm/arm-arches.def: New.
4477 * config/arm/arm-opts.h: New.
4478 * config/arm/genopt.sh: New.
4479 * config/arm/arm-tables.opt: New (generated).
4480 * config/arm/arm.c (arm_handle_option, arm_target_help,
4481 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4482 (all_architectures): Get most table contents from arm-arches.def.
4483 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4484 arm_selected_tune here.
4485 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4486 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4487 (march=, mcpu=, mtune=): Use Enum and Var.
4488 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4489 (arm.o): Update dependencies.
4491 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4493 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4495 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4496 (write_typed_alloc_defns): Likewise.
4497 (main): Calls write_typed_alloc_defns with output_header.
4499 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4502 * ira-color.c (setup_profitable_hard_regs): Add comments.
4503 Don't take prohibited hard regs into account.
4504 (setup_conflict_profitable_regs): Rename to
4505 get_conflict_profitable_regs.
4506 (check_hard_reg_p): Check prohibited hard regs.
4508 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4510 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4511 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4512 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4514 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4517 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4518 move from floating point to shift amount register.
4519 (emit_move_sequence): Remove secondary reload support for floating
4520 point to shift amount amount register copies.
4521 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4522 amount register copies.
4523 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4524 register, return false if mode isn't a scalar integer mode.
4525 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4527 2011-04-08 Richard Guenther <rguenther@suse.de>
4529 * gimple.c (gimple_call_flags): Remove kludge.
4531 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4533 * sel-sched.c (sel_region_init): Move call to
4534 sel_setup_region_sched_flags after setup_current_loop_nest.
4536 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4538 PR rtl-optimization/48272
4539 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4540 init_insn_reg_pressure_info. Adjust a caller.
4541 * sched-int.h (init_insn_reg_pressure_info): Declare.
4542 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4543 when sched-pressure is enabled.
4545 2011-04-08 Richard Guenther <rguenther@suse.de>
4547 * gimple.c (gimple_set_modified): Do not queue calls to
4548 MODIFIED_NORETURN_CALLS here ...
4549 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4551 2011-04-08 Richard Guenther <rguenther@suse.de>
4554 * toplev.c (lang_dependent_init): Do not open asm_out_file
4555 in WPA mode, nor perform debug machinery initialization.
4556 (finalize): Do not unlink asm_out_file in WPA mode.
4558 2011-04-08 Richard Guenther <rguenther@suse.de>
4560 * gimple.h (gimple_call_fntype): New function.
4561 (gimple_call_return_type): Use it.
4562 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4563 * gimple-low.c (gimple_check_call_args): Likewise.
4564 * gimple.c (gimple_call_flags): Likewise.
4565 (gimple_call_arg_flags): Likewise.
4566 (gimple_call_return_flags): Likewise.
4567 * tree-cfg.c (verify_gimple_call): Likewise.
4568 (do_warn_unused_result): Likewise.
4569 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4570 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4572 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4574 PR rtl-optimization/48235
4575 * sel-sched.c (code_motion_process_successors): Recompute the last
4576 insn in basic block if control flow changed.
4577 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4578 Update condition for ilist_remove.
4580 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4582 PR rtl-optimization/48302
4583 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4584 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4585 it to record added preheader blocks.
4586 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4587 on to sel_add_loop_preheaders.
4588 (sel_region_init): Move call to setup_current_loop_nest after
4591 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4594 * cfgloop.h (loop_has_exit_edges): New helper.
4595 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4597 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4598 that have no exit edges.
4600 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4602 PR rtl-optimization/48442
4603 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4604 all callers. Adjust assert.
4606 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4608 PR tree-optimization/48377
4609 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4610 is_packed to true even for types with smaller TYPE_ALIGN than
4613 2011-04-08 Richard Guenther <rguenther@suse.de>
4616 * doc/tm.texi: Re-generate.
4618 2011-04-08 Wei Guozhi <carrot@google.com>
4621 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4622 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4623 * config/arm/arm.md (*push_multi): Change the length computation to
4626 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4628 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4629 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4630 * doc/tm.texi: Regenerate.
4631 * system.h (ASM_OUTPUT_BSS): Poison.
4632 * varasm.c (asm_output_bss): Remove function.
4633 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4635 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4636 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4637 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4638 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4640 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4642 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4644 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4646 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4648 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4651 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4653 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4654 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4655 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4657 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4658 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4659 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4660 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4661 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4662 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4663 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4664 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4665 options. Don't map other m68k options manually. Don't handle
4666 old-style options as canonical.
4667 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4668 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4670 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4672 * basic-block.h (force_nonfallthru): Move to...
4673 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4674 (force_nonfallthru): ...here.
4675 * cfghooks.c (force_nonfallthru): New function.
4676 * cfgrtl.c (force_nonfallthru): Rename into...
4677 (rtl_force_nonfallthru): ...this.
4678 (commit_one_edge_insertion): Do not set AUX field.
4679 (commit_edge_insertions): Do not discover new basic blocks.
4680 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4681 (cfg_layout_rtl_cfg_hooks): Likewise.
4682 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4683 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4684 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4686 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4688 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4691 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4693 * config/i386/sse.md: Update copyright year.
4694 (avxcvtvecmode): Remove.
4695 (sse_movhlps): Merge with *avx_movhlps.
4696 (sse_movlhps): Merge with *avx_movlhps.
4697 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4698 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4699 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4700 (sse_loadhps): Merge with *avx_loadhps.
4701 (sse_storelps): Merge with *avx_storelps.
4702 (sse_loadlps): Merge with *avx_loadlps.
4703 (sse_movss): Merge with *avx_movss.
4704 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4705 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4706 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4707 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4708 (vec_set<mode>_0): Ditto.
4709 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4710 (sse4_1_insertps): Merge with *avx_insertps.
4711 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4712 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4713 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4714 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4715 (sse2_storehpd): Merge with *avx_storehpd.
4716 (sse2_loadhpd): Merge with *avx_loadhpd.
4717 (sse2_loadlpd): Merge with *avx_loadlpd.
4718 (sse2_movsd): Merge with *avx_movsd.
4719 (*vec_concatv2df): Merge with *vec_concatv2df.
4721 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4724 * combine.c (combine_instructions): Add last_combined_insn,
4725 update it if insn is after it, pass it to all try_combine calls.
4726 (try_combine): Add last_combined_insn parameter, pass it instead of
4727 i3 to propagate_for_debug.
4729 2011-04-07 Nick Clifton <nickc@redhat.com>
4731 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4732 to handle MDR <-> data register transfers.
4733 (movhi_internal): Likewise.
4735 2011-04-07 Alan Modra <amodra@gmail.com>
4737 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4738 previous stack info.
4740 2011-04-07 Tom de Vries <tom@codesourcery.com>
4743 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4744 flow_find_cross_jump. Swap variables to implement backward replacement.
4745 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4747 2011-04-07 Tom de Vries <tom@codesourcery.com>
4750 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4751 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4753 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4754 src1 or src2. Redirect edges to the last basic block. Update
4755 frequency and count on multiple basic blocks in case of fallthru.
4757 2011-04-07 Tom de Vries <tom@codesourcery.com>
4760 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4762 (old_insns_match_p): Change return type. Replace return false/true
4763 with return dir_none/dir_both. Use can_replace_by.
4764 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4765 direction from dir_p. Register replacement direction in dir, last_dir
4766 and afterlast_dir. Handle new return type of old_insns_match_p using
4767 merge_dir. Return replacement direction in dir_p.
4768 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4769 return type of old_insns_match_p.
4770 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4771 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4772 flow_find_cross_jump.
4773 * basic-block.h (enum replace_direction): New type.
4774 (flow_find_cross_jump): Add parameter to declaration.
4776 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4778 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4779 (AVXMODEDCVTPS2DQ): Ditto.
4780 (VEC_FLOAT_MODE): Ditto.
4781 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4782 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4783 (<any_logic:code><mode>3): Use VF mode iterator.
4784 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4785 Use VF mode iterator.
4786 (copysign<mode>3): Use VF mode iterator.
4787 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4788 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4789 (*<any_logic:code><MODEF:mode>3): Merge with
4790 *avx_<any_logic:code><MODEF:mode>3.
4791 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4792 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4793 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4794 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4795 (sse2_cvtdq2ps): Use %v modifier.
4796 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4797 (avx_cvtps2dq<avxmodesuffix>): Remove.
4798 (sse2_cvtps2dq): Use %v modifier.
4799 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4800 (avx_cvttps2dq<avxmodesuffix>): Remove.
4801 (sse2_cvttps2dq): Use %v modifier.
4802 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4803 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4804 (sse2_cvtsd2siq): Fix insn template.
4805 (sse2_cvtsd2siq_2): Ditto.
4806 (sse2_cvttsd2siq): Ditto.
4807 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4808 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4810 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4812 * gcov-io.c: Use GCC Runtime Library Exception.
4814 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4817 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4818 as base_reg whatever register reg has been eliminated to, instead
4819 of hardcoding STACK_POINTER_REGNUM.
4821 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4823 * doc/tm.texi.in: Document C target hooks as separate from general
4825 * doc/tm.texi: Regenerate.
4826 * genhooks.c (struct hook_desc): Add docname field.
4827 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4829 (hook_array): Include c-target.def.
4830 (emit_documentation): Use docname field in output.
4831 (emit_init_macros): Take docname argument. Only emit definitions
4832 for hooks matching docname.
4833 (main): Expect additional arguments in all cases. Pass argument
4834 to emit_init_macros.
4835 * target.def: Move initial macro definitions and comments to
4836 target-hooks-macros.h.
4837 (gcc_targetcm): Move to c-family/c-target.def.
4838 * target.h (targetcm): Move declaration to c-family/c-target.h.
4839 * targhooks.c (default_handle_c_option): Move to
4841 * targhooks.h (default_handle_c_option): Move declaration to
4842 c-family/c-common.h.
4843 * target-hooks-macros.h: New file.
4844 * config.gcc (target_has_targetcm): Define and use to add to
4845 c_target_objs and cxx_target_objs.
4846 * config/default-c.c: New file.
4847 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4848 of target.h and target-def.h.
4849 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4850 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4851 darwin_check_cfstring_format_arg): Make static.
4852 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4853 TARGET_STRING_OBJECT_REF_TYPE_P,
4854 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4855 * config/darwin-protos.h (darwin_objc_construct_string,
4856 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4858 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4859 TARGET_STRING_OBJECT_REF_TYPE_P,
4860 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4861 * config/t-darwin (darwin-c.o): Update dependencies.
4862 * system.h (TARGET_HAS_TARGETCM): Poison.
4863 * Makefile.in (TARGET_H): Update.
4864 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4865 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4866 (default-c.o): New target.
4867 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4868 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4869 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4871 (build/genhooks.o): Update dependencies.
4873 2011-04-06 Richard Guenther <rguenther@suse.de>
4875 * ipa-inline.c (enum inlining_mode): Remove.
4876 (cgraph_flatten): Use some other token.
4877 (cgraph_edge_early_inlinable_p): New function, split out from ...
4878 (cgraph_perform_always_inlining): New function, split out from ...
4879 (cgraph_decide_inlining_incrementally): ... here.
4880 (cgraph_mark_inline_edge): Adjust.
4881 (cgraph_early_inlining): Re-structure.
4882 (pass_early_inline): Require SSA form.
4884 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4885 Julian Brown <julian@codesourcery.com>
4886 Mark Shinwell <shinwell@codesourcery.com>
4888 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4889 LO_REGS only for Thumb-1.
4890 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4891 be used in short instructions when optimising for size on Thumb-2.
4893 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4895 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4896 associated with user returns to be preserved.
4898 2011-04-06 Tristan Gingold <gingold@adacore.com>
4900 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4901 symbol_queue_size, DBXOUT_DECR_NESTING,
4902 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4903 if XCOFF_DEBUGGING_INFO.
4905 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4907 * config/i386/i386.md (attribute isa): New.
4908 (attribute enabled): New.
4909 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4910 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4911 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4912 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4913 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4914 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4915 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4916 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4918 * config/i386/sse.md (VF): New mode iterator.
4922 (SSEMODEF4): Remove.
4923 (attribute sse): Handle V8SF and V4DF modes.
4924 (<absneg:code><mode>2): Use VF mode iterator.
4925 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4927 (<plusminus_insn><mode>3): Use VF mode iterator.
4928 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4929 Use VF mode iterator.
4930 (<sse>_vm<plusminus_insn><mode>3): Merge with
4931 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4932 (mul<mode>3): Use VF mode iterator.
4933 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4934 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4936 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4937 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4938 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4939 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4941 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4942 Use VF1 mode iterator.
4943 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4944 (sqrt<VF2:mode>2): New expander.
4945 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4946 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4947 and sqrtv2df2. Use VF mode iterator.
4948 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4950 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4951 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4952 Use VF1 mode iterator.
4953 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4954 (<smaxmin:code><mode>3): Use VF mode iterator.
4955 (*<smaxmin:code><mode>3_finite): Merge with
4956 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4957 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4958 (<sse>_vm<smaxmin:code><mode>2): Merge with
4959 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4960 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4962 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4964 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4965 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4966 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4967 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4968 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4970 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4971 Use VF_128 mode iterator.
4972 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4974 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4975 VF_128 mode iterator.
4976 (vcond<mode>): Use VF mode iterator.
4977 * config/i386/predicates.md (sse_comparison_operator): Merge with
4978 avx_comparison_float_operator. Do not declare as special_predicate.
4979 * config/i386/i386.c (struct builtin_description): Update for renamed
4981 (ix86_expand_args_builtin): Ditto.
4982 (ix86_expand_sse_compare_mask): Ditto.
4984 2011-04-06 Richard Guenther <rguenther@suse.de>
4986 * tree-inline.c (estimate_num_insns): For calls simply account
4987 for all passed arguments and a used return value.
4989 2011-04-06 Richard Guenther <rguenther@suse.de>
4991 PR tree-optimization/47663
4992 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4993 call_stmt_time fields.
4994 (cgraph_edge_inlinable_p): Declare.
4995 (cgraph_edge_recursive_p): New inline function.
4996 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4997 (cgraph_clone_edge): Copy it.
4998 * ipa-inline.c (cgraph_estimate_edge_time): New function.
4999 Account for call stmt time.
5000 (cgraph_estimate_time_after_inlining): Take edge argument.
5001 (cgraph_estimate_edge_growth): Account call stmt size.
5002 (cgraph_estimate_size_after_inlining): Take edge argument.
5003 (cgraph_mark_inline_edge): Adjust.
5004 (cgraph_check_inline_limits): Likewise.
5005 (cgraph_recursive_inlining_p): Remove.
5006 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5007 (cgraph_decide_recursive_inlining): Take edge argument and
5009 (cgraph_decide_inlining_of_small_functions): Do not avoid
5010 diags for recursive inlining here.
5011 (cgraph_flatten): Adjust.
5012 (cgraph_decide_inlining_incrementally): Likewise.
5013 (estimate_function_body_sizes): Remove call cost handling.
5014 (compute_inline_parameters): Initialize caller edge call costs.
5015 (cgraph_estimate_edge_growth): New function.
5016 (cgraph_estimate_growth): Use it.
5017 (cgraph_edge_badness): Likewise.
5018 (cgraph_check_inline_limits): Take an edge argument.
5019 (cgraph_decide_inlining_of_small_functions): Adjust.
5020 (cgraph_decide_inlining): Likewise.
5021 * tree-inline.c (estimate_num_insns): Only account for call
5022 return value if it is used.
5023 (expand_call_inline): Avoid diagnostics on recursive inline
5025 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5026 (input_edge): Input edge call costs.
5028 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5030 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5032 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5034 * doc/invoke.texi (Spec Files): Fix typo.
5036 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5038 * profile.c (branch_prob): Move declaration of local variable. Remove
5039 obsolete ??? comment. Expand the location explicitly instead of using
5040 the LOCATION_FILE and LOCATION_LINE macros.
5042 2011-04-06 Wei Guozhi <carrot@google.com>
5045 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5046 (arm_cond_branch): Likewise.
5047 (arm_cond_branch_reversed): Likewise.
5048 (arm_jump): Likewise.
5049 (push_multi): Likewise.
5050 * config/arm/constraints.md (Py): New constraint.
5052 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5055 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5057 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5058 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5059 #ifdef DBX_DEBUGGING_INFO.
5061 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5064 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5065 if old and new states differ.
5067 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5069 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5070 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5071 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5072 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5073 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5075 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5076 ColdFire options to -mcpu= options.
5078 2011-04-05 Jeff Law <law@redhat.com>
5080 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5081 check if BB is a successor of LOOP->header and return
5082 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5084 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5086 * cprop.c (struct reg_use): Remove.
5087 (reg_use_table): Make an array of RTX.
5088 (find_used_regs, constprop_register, local_cprop_pass,
5089 bypass_block): Simplify users of reg_use_table.
5090 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5091 on one of the uses found by find_used_regs.
5093 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5096 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5099 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5101 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5103 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5105 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5108 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5110 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5112 * combine.c: Include obstack.h.
5113 (struct insn_link): Define.
5114 (uid_log_links): Adjust type.
5115 (FOR_EACH_LOG_LINK): New macro.
5116 (insn_link_obstack): Declare.
5117 (alloc_insn_link): Define.
5118 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5119 type of link variables.
5120 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5121 (try_combine, record_promoted_values, distribute_notes): Likewise.
5122 (distribute_links): Likewise. Tweak prototype.
5123 (clear_log_links): Delete.
5124 (adjust_for_new_dest): Call alloc_insn_link.
5125 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5127 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5129 * gcse.c (modify_mem_list): Convert to an array of VECs.
5130 (canon_modify_mem_list, compute_transp): Tweak formatting.
5131 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5132 (load_killed_in_block_p): Likewise.
5133 (record_last_mem_set_info): Likewise.
5134 (clear_modify_mem_tables): Likewise.
5136 2011-04-05 Tom de Vries <tom@codesourcery.com>
5139 * function.c (emit_use_return_register_into_block): Only define if
5142 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5144 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5146 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5148 * config/rx/rx-opts.h: New.
5149 * config/rx/rx.c (rx_cpu_type): Remove.
5150 (rx_handle_option): Don't assert that global structures are in
5151 use. Access variables via opts pointer. Defer most handling of
5152 OPT_mint_register_. Use error_at.
5153 (rx_option_override): Handle deferred OPT_mint_register_ here.
5154 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5155 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5156 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5157 (rx_cpu_types): New Enum and EnumValue entries.
5158 (mint-register=): Use Defer and use Var accordingly.
5160 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5162 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5163 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5164 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5166 (debug_free_queue, debug_nesting, symbol_queue_index):
5168 * dbxout.c: ...to here. Make static.
5170 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5172 * gcse.c (modify_pair): Define. Define a VEC of it.
5173 (canon_modify_mem_list): Convert to an array of VECs.
5174 (free_insn_expr_list_list): Delete.
5175 (clear_modify_mem_tables): Call VEC_free instead.
5176 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5177 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5178 (canon_list_insert, compute_transp): Likewise.
5180 2011-04-05 Tom de Vries <tom@codesourcery.com>
5183 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5186 2011-04-05 Tom de Vries <tom@codesourcery.com>
5189 * function.c (emit_use_return_register_into_block): New function.
5190 (thread_prologue_and_epilogue_insns): Use
5191 emit_use_return_register_into_block.
5193 2011-04-05 Tom de Vries <tom@codesourcery.com>
5196 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5199 2011-04-05 Tom de Vries <tom@codesourcery.com>
5201 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5203 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5205 * config/arm/arm.md (define_constants for unspec): Replace with
5207 (define_constants for unspecv): Replace with define_c_enum.
5208 * config/arm/neon.md (define_constants for unspec): Replace with
5211 2011-04-04 Richard Henderson <rth@redhat.com>
5214 * dwarf2out.c (output_line_info): Always emit line info from
5215 at least one section.
5216 (dwarf2out_init): Create text_section_line_info here ...
5217 (set_cur_line_info_table): ... not here.
5219 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5222 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5225 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5227 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5229 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5230 (expr_equiv_p): Remove.
5231 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5232 (hash_scan_set): Update call to insert_set_in_table.
5233 (dump_hash_table): Dump <dest, src> pair.
5234 (lookup_set): Simplify. Lookup <dest, src> pair.
5235 (compute_transp): Remove, fold heavily simplified code into...
5236 (compute_local_properties): ...here. Expect COMP and TRANSP
5238 (find_avail_set): Take set directly from struct expr.
5239 (find_bypass-set): Likewise.
5240 (bypass_block): Likewise.
5241 (cprop_insn): Likewise. Remove redundant INSN_P test.
5243 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5244 checks on form of COND from find_implicit_sets to here.
5245 (find_implicit_sets): Cleanup control flow. Split critical edges
5246 if it exposes implicit sets. Allocate/resize implicit_sets as
5248 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5249 changed something. Run df_analyze after find_implicit_sets if any
5250 edges were split. Do not allocate implicit_sets here.
5252 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5253 (gcse_obstack): Renamed to cprop_obstack.
5254 (GNEW, GNEWVEC, GNEWVAR): Remove.
5256 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5257 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5258 (gcse_alloc): Likewise, and rename to cprop_alloc.
5259 (alloc_gcse_men, free_gcse_mem): Remove.
5260 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5261 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5262 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5264 * cprop.c (oprs_not_set_p): Remove.
5265 (mark_set, mark_clobber): Remove.
5266 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5267 (reg_not_set_p): New function.
5268 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5269 (cprop_insn): Likewise.
5270 (cprop_jump): Use FOR_EACH_EDGE.
5272 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5275 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5276 (rank_for_schedule): Use scheduled_insns vector instead of
5277 last_scheduled_insn.
5278 (ok_for_early_queue_removal): Likewise.
5279 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5281 (choose_ready): Likewise.
5282 (commit_schedule): Use VEC_iterate.
5283 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5284 a dbg_cnt, use it and ensure the first insn is in the ready list.
5285 (haifa_sched_init): Allocate scheduled_insns.
5286 (sched_extend_ready_list): Don't allocate it; reserve space.
5287 (haifa_sched_finish): Free it.
5289 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5291 * optc-gen.awk: Always remove type from Variable entry before
5292 recording in var_seen.
5294 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5296 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5297 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5298 call to tidy_fallthru_edges.
5300 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5302 * doc/options.texi (ToLower): Document.
5303 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5304 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5305 * opts.h (cl_option): Add cl_tolower field.
5306 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5307 arguments with lowercase strings.
5308 * config/rx/rx.opt (mcpu=): Add ToLower.
5309 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5312 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5314 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5316 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5318 * config/vax/vax.c: Include reload.h.
5320 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5322 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5323 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5324 (sparc_preferred_reload_class): New function.
5326 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5329 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5330 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5332 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5334 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5335 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5337 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5339 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5340 (ASM_OUTPUT_ALIGNED_BSS): Define.
5342 2011-04-03 Michael Matz <matz@suse.de>
5344 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5345 and next_slot members.
5346 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5347 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5348 (lto_streamer_cache_append): Declare.
5349 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5350 unsigned index, remove offset parameter, ensure that we append
5351 or update existing entries.
5352 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5353 parameter, update next_slot for append.
5354 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5356 (lto_streamer_cache_insert_at): Likewise.
5357 (lto_streamer_cache_append): New function.
5358 (lto_streamer_cache_lookup): Use unsigned index.
5359 (lto_streamer_cache_get): Likewise.
5360 (lto_record_common_node): Don't test tree_node_can_be_shared.
5361 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5362 (lto_streamer_cache_delete): Don't free offsets member.
5363 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5364 (lto_output_string_with_length): Use lto_output_data_stream.
5365 (lto_output_tree_header): Remove ix parameter, don't write it.
5366 (lto_output_builtin_tree): Likewise.
5367 (lto_write_tree): Adjust callers to above, don't track and write
5368 offset, write unsigned index.
5369 (output_unreferenced_globals): Don't emit all global vars.
5370 (write_global_references): Use unsigned indices.
5371 (lto_output_decl_state_refs): Likewise.
5372 (write_symbol): Likewise.
5373 * lto-streamer-in.c (lto_input_chain): Move earlier.
5374 (input_function): Use unsigned index.
5375 (input_alias_pairs): Don't read and then ignore all global vars.
5376 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5377 don't pass it back, use lto_streamer_cache_append.
5378 (lto_register_var_decl_in_symtab): Use unsigned index.
5379 (lto_register_function_decl_in_symtab): Likewise.
5380 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5382 (lto_get_builtin_tree): Don't read index, use
5383 lto_streamer_cache_append.
5384 (lto_read_tree): Adjust call to lto_materialize_tree.
5386 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5387 don't use function calls in arguments to MIN.
5389 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5392 * gimple.c (gimple_type_leader_entry): Mark deletable.
5394 2011-04-03 Alan Modra <amodra@gmail.com>
5396 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5398 2011-04-03 Michael Matz <matz@suse.de>
5400 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5402 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5404 2011-04-03 Michael Matz <matz@suse.de>
5406 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5407 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5408 without function context.
5409 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5410 current_function_decl and cfun.
5412 2011-04-03 Michael Matz <matz@suse.de>
5414 * tree.c (decl_init_priority_insert): Don't create entry for
5416 (decl_fini_priority_insert): Ditto.
5417 (fields_compatible_p, find_compatible_field): Remove.
5418 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5419 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5421 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5423 * combine.c (try_combine): Remove useless local variable.
5425 2011-04-03 Richard Guenther <rguenther@suse.de>
5426 Ira Rosen <ira.rosen@linaro.org>
5428 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5429 non-variable offsets and compare the remaining bases of the two
5430 accesses instead of looking for exact same data-ref.
5432 2011-04-02 Kai Tietz <ktietz@redhat.com>
5435 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5437 * i386.c (ix86_is_msabi_thiscall): New helper function.
5438 (ix86_is_type_thiscall): New helper function.
5439 (ix86_comp_type_attributes): Handle thiscall for method-functions
5441 (init_cumulative_args): Likewise.
5442 (find_drap_reg): Likewise.
5443 (ix86_static_chain): Likewise.
5444 (x86_this_parameter): Likewise.
5445 (x86_output_mi_thunk): Likewise.
5447 2011-04-01 Olivier Hainque <hainque@adacore.com>
5448 Nicolas Setton <setton@adacore.com>
5449 Eric Botcazou <ebotcazou@adacore.com>
5451 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5452 (add_gnat_descriptive_type_attribute): New function.
5453 (gen_array_type_die): Call it.
5454 (gen_enumeration_type_die): Likewise.
5455 (gen_struct_or_union_type_die): Likewise.
5456 (modified_type_die): Likewise.
5457 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5458 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5459 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5461 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5464 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5465 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5468 2011-03-17 Richard Guenther <rguenther@suse.de>
5471 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5472 origin for decls in other ltrans units.
5473 (input_varpool_node): Likewise.
5475 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5478 * expr.c (expand_assignment): Handle all possibilities
5479 if TO_RTX is CONCAT.
5480 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5481 (store_split_bit_field): If SUBREG_REG (op0) or
5482 op0 itself has smaller mode than word, return it
5483 for offset 0 and const0_rtx for out-of-bounds stores.
5484 If word is const0_rtx, skip it.
5486 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5488 * config/h8300/h8300.c (print_operand_address): Rename to...
5489 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5490 Call h8300_print_operand and h8300_print_operand_address instead of
5491 print_operand and print_operand_address. Declare.
5492 (print_operand): Renake to...
5493 (h8300_print_operand): ...this. Make static. Adjust comments.
5494 Call h8300_print_operand instead of print_operand. Declare.
5495 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5496 (h8300_register_move_cost): Likewise.
5497 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5498 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5499 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5500 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5501 * config/h8300/h8300-protos.h (print_operand): Delete.
5502 (print_operand_address): Delete.
5504 2011-04-01 Richard Henderson <rth@redhat.com>
5507 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5508 in strict mode before dwarf4. Re-order tests to early out
5509 before switching sections.
5511 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5513 * config/h8300/constraints.md: New file.
5514 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5515 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5516 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5517 * config/h8300/predicates.md (bit_operand): Likewise.
5518 (incdec_operand): Use satisfies_constraint_M and
5519 satisfies_constraint_O. Don't use C code block.
5520 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5521 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5522 (compute_mov_length): Use satisfies_constraint_G.
5523 (fix_bit_operand): Use satisfies_constraint_U.
5524 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5525 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5526 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5527 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5528 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5529 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5530 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5531 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5532 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5533 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5534 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5535 (EXTRA_MEMORY_CONSTRAINT): Delete.
5537 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5538 Michael Meissner <meissner@linux.vnet.ibm.com>
5541 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5542 operands, as per the specifications.
5544 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5545 (vec_extract_evenv4sf): Ditto.
5546 (vec_extract_evenv8hi): Ditto.
5547 (vec_extract_evenv16qi): Ditto.
5548 (vec_extract_oddv4si): Ditto.
5550 2011-03-31 Mark Wielaard <mjw@redhat.com>
5552 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5553 high_pc attribute if the CU has no associated code. Only output
5554 DW_AT_entry_pc for CU if not generating strict dwarf and
5557 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5559 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5560 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5562 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5563 * final.c (final_start_function): Call the new function rather
5564 than using a NULL argument for dwarf2out_frame_debug.
5566 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5567 that contains the prologue.
5569 * haifa-sched.c (queue_insn): New arg REASON. All callers
5570 changed. Print it in debugging output.
5572 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5574 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5575 Split most of the code into...
5576 (begin_move_insn): ... here. New function.
5577 (ebb_sched_info): Add a pointer to it.
5578 * haifa-sched.c (scheduled_insns): New static variable.
5579 (sched_extend_ready_list): Allocate it.
5580 (schedule_block): Use it to record the order of scheduled insns.
5581 Perform RTL changes to move insns only after all scheduling
5582 decisions have been made.
5583 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5584 begin_move_insn field.
5585 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5586 * sched-int.h (struct haifa_sched_info): Remove second argument
5587 from begin_schedule_ready hook. Add new member begin_move_insn.
5588 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5589 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5591 * haifa-sched.c (prune_ready_list): New function, broken out of
5593 (schedule_block): Use it.
5595 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5597 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5599 2011-04-01 Kai Tietz <ktietz@redhat.com>
5601 * config.gcc (*-*-mingw*): Allow as option the
5602 posix threading model.
5603 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5604 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5606 (CPP_SPEC): Add pthread/no-pthread handling.
5607 (LIB_SPEC): Likewise.
5608 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5609 (LIB_SPEC): Likewise.
5610 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5611 flag to pass -pthread option for shared libgcc build.
5612 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5613 for shared libgcc build.
5614 * config/i386/t-mingw-pthread: New file.
5615 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5616 New define to enable use of library pthread by default.
5617 * config/i386/mingw.opt (pthread): New driver option.
5618 (no-pthread): New driver option.
5619 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5620 * config/i386/mingw-w64.opt: Likewise.
5622 2011-04-01 Gary Funck <gary@intrepid.com>
5624 * c-decl.c (grokdeclarator): Fix formatting.
5626 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5628 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5629 instead of n_operands.
5630 (set_storage_via_setmem): Likewise.
5631 * optabs.c (maybe_gen_insn): Likewise.
5632 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5633 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5634 (mips_expand_builtin_direct): Likewise.
5635 * config/spu/spu.c (expand_builtin_args): Likewise.
5637 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5639 * recog.h (insn_data_d): Add n_generator_args.
5640 * genoutput.c (data): Likewise.
5641 (output_insn_data): Print it.
5642 (max_opno, num_dups): Delete.
5643 (scan_operands): Just fill in "d->operand[...]".
5644 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5646 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5648 * gensupport.h (pattern_stats): New structure.
5649 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5650 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5651 (max_operand_1, max_operand_vec): Delete.
5652 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5654 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5656 * emit-rtl.c (emit_pattern_after_setloc): New function.
5657 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5658 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5659 (emit_pattern_after): New function.
5660 (emit_insn_after, emit_jump_insn_after): Call it.
5661 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5662 (emit_pattern_before_setloc): New function.
5663 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5664 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5666 (emit_pattern_before): New function.
5667 (emit_insn_before, emit_jump_insn_before): Call it.
5668 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5670 2011-03-31 Richard Henderson <rth@redhat.com>
5672 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5673 (dw_separate_line_info_entry): Remove.
5674 (enum dw_line_info_opcode): New.
5675 (dw_line_info_entry): Use it.
5676 (dw_line_info_table, dw_line_info_table_p): New.
5677 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5678 (line_info_table, line_info_label_num): Remove.
5679 (line_info_table_in_use): Remove.
5680 (separate_line_info_table): Remove.
5681 (separate_line_info_table_allocated): Remove.
5682 (separate_line_info_table_in_use): Remove.
5683 (LINE_INFO_TABLE_INCREMENT): Remove.
5684 (line_info_label_num): New.
5685 (cur_line_info_table): New.
5686 (text_section_line_info, cold_text_section_line_info): New.
5687 (separate_line_info): New.
5688 (SEPARATE_LINE_CODE_LABEL): Remove.
5689 (print_dwarf_line_table): Remove.
5690 (debug_dwarf): Don't dump it.
5691 (output_one_line_info_table): New.
5692 (output_line_info): Use it.
5693 (new_line_info_table): New.
5694 (set_cur_line_info_table): New.
5695 (dwarf2out_switch_text_section): Use it.
5696 (dwarf2out_begin_function): Likewise.
5697 (push_dw_line_info_entry): New.
5698 (dwarf2out_source_line): Rewrite for new line info tables.
5699 (dwarf2out_init): Remove dead initailizations.
5701 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5703 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5705 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5706 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5707 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5708 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5709 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5710 * opt-functions.awk (flag_init, switch_bit_fields): New.
5711 (switch_flags): Don't handle flags moved to bit-fields. Don't
5712 generate CL_MISSING_OK or CL_SAVE.
5713 * optc-gen.awk: Update to generate bit-field output as well as
5715 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5716 bit-field instead of CL_REJECT_DRIVER flag.
5717 * opts-common.c (generate_canonical_option,
5718 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5719 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5720 instead of CL_REJECT_NEGATIVE flag.
5721 * toplev.c (print_switch_values): Use cl_report bit-field instead
5724 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5726 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5727 a zero minimum index only if it is redundant.
5729 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5731 PR rtl-optimization/48381
5732 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5733 instead of ira_class_hard_reg_index for calculating conflicting
5736 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5738 * cprop.c: Clean up hash table building.
5739 (reg_avail_info): Remove.
5740 (oprs_available_p): Remove.
5741 (record_last_reg_set_info): Remove.
5742 (record_last_set_info): Remove.
5743 (reg_available_p): New function.
5744 (gcse_constant_p): Do not treat unfolded conditions as constants.
5745 (make_set_regs_unavailable): New function.
5746 (hash_scan_set): Simplify with new reg_available_p.
5747 (compute_hash_table_work): Traverse insns stream only once.
5748 Do not compute reg_avail_info. Traverse insns in reverse order.
5749 Record implicit sets after recording explicit sets from the block.
5751 2011-03-31 Michael Matz <matz@suse.de>
5753 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5755 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5757 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5758 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5759 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5760 (h8300_mode_dependent_address_p): New function.
5761 (h8300_get_index): Make static.
5763 2011-03-31 Jeff Law <law@redhat.com>
5765 * reload1.c (elimination_effects): Fix typo in recent change.
5767 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5768 typo potentially leading to null pointer dereference.
5770 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5771 (setup_save_areas): Corresponding changes to avoid useless
5774 * jump.c (reversed_comparison_code_parts): Avoid successive return
5775 statements when REVERSE_CONDITION is defined.
5777 * expr.c (expand_assignment): Avoid useless assignments.
5778 (expand_expr_real_1): Likewise.
5779 (expand_expr_real_2): Avoid useless statements.
5781 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5783 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5785 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5788 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5790 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5793 * doc/tm.texi.in (TARGET_VERSION): Remove.
5794 * doc/tm.texi: Regenerate.
5795 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5796 * collect2.c (main): Don't use TARGET_VERSION.
5797 * mips-tdump.c (main): Don't use TARGET_VERSION.
5798 * mips-tfile.c (main): Don't use TARGET_VERSION.
5799 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5800 * config/rs6000/vxworksae.h: Remove.
5801 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5802 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5803 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5804 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5805 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5806 * config/arm/arm.h (TARGET_VERSION): Remove.
5807 * config/arm/coff.h (TARGET_VERSION): Remove.
5808 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5809 * config/arm/elf.h (TARGET_VERSION): Remove.
5810 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5811 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5812 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5813 * config/arm/pe.h (TARGET_VERSION): Remove.
5814 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5815 * config/arm/semi.h (TARGET_VERSION): Remove.
5816 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5817 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5818 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5819 * config/avr/avr.h (TARGET_VERSION): Remove.
5820 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5821 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5822 * config/frv/frv.h (TARGET_VERSION): Remove.
5823 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5824 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5825 * config/i386/darwin.h (TARGET_VERSION): Remove.
5826 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5827 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5828 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5829 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5830 * config/i386/gnu.h (TARGET_VERSION): Remove.
5831 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5832 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5833 * config/i386/linux.h (TARGET_VERSION): Remove.
5834 * config/i386/linux64.h (TARGET_VERSION): Remove.
5835 * config/i386/lynx.h (TARGET_VERSION): Remove.
5836 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5837 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5838 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5839 * config/i386/netware.h (TARGET_VERSION): Remove.
5840 * config/i386/nto.h (TARGET_VERSION): Remove.
5841 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5842 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5843 * config/ia64/elf.h (TARGET_VERSION): Remove.
5844 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5845 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5846 * config/ia64/linux.h (TARGET_VERSION): Remove.
5847 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5848 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5849 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5850 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5851 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5852 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5853 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5854 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5855 * config/m68k/linux.h (TARGET_VERSION): Remove.
5856 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5857 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5858 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5859 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5860 * config/mep/mep.h (TARGET_VERSION): Remove.
5861 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5862 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5863 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5864 * config/mips/linux.h (TARGET_VERSION): Remove.
5865 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5866 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5867 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5868 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5869 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5870 * config/pa/pa.h (TARGET_VERSION): Remove.
5871 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5872 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5873 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5874 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5875 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5876 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5877 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5878 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5879 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5880 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5881 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5882 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5883 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5884 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5885 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5886 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5887 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5888 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5889 * config/s390/linux.h (TARGET_VERSION): Remove.
5890 * config/s390/s390.h (TARGET_VERSION): Remove.
5891 * config/s390/tpf.h (TARGET_VERSION): Remove.
5892 * config/score/score.h (TARGET_VERSION): Remove.
5893 * config/sh/linux.h (TARGET_VERSION): Remove.
5894 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5895 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5896 * config/sh/sh.h (TARGET_VERSION): Remove.
5897 * config/sh/sh64.h (TARGET_VERSION): Remove.
5898 * config/sh/superh.h (TARGET_VERSION): Remove.
5899 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5900 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5901 * config/sparc/linux.h (TARGET_VERSION): Remove.
5902 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5903 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5904 TARGET_NAME32, TARGET_NAME): Remove.
5905 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5906 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5907 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5908 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5909 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5910 * config/spu/spu.h (TARGET_VERSION): Remove.
5911 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5912 * config/v850/v850.h (TARGET_VERSION): Remove.
5913 * config/vax/linux.h (TARGET_VERSION): Remove.
5914 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5915 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5916 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5918 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5921 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5922 frame-related from frame-unrelated adjustments to the stack pointer.
5924 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5926 * common.opt (fdebug-types-section): Move earlier.
5927 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5929 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5931 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5934 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5936 * tree.h (CASE_CHAIN): Define.
5937 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5938 (gimple_redirect_edge_and_branch): Likewise.
5940 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5943 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5946 2011-03-30 Jeff Law <law@redhat.com>
5948 * PR bootstrap/48371
5949 * reload1.c (reload): Fix botch in last change.
5951 * reload.h (struct reload): Fix typo introduced in last change.
5953 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5955 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5956 Undocumented. Remove help text.
5957 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5960 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5962 * doc/options.texi (NegativeAlias): Document.
5963 (Alias): Mention NegativeAlias.
5964 * opt-functions.awk: Handle NegativeAlias.
5965 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5966 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5967 * opts.h (CL_NEGATIVE_ALIAS): Define.
5968 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5969 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5971 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5973 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5974 mno-spe and mno-isel instead of mspe=no and -misel=no.
5976 2011-03-29 Mark Wielaard <mjw@redhat.com>
5978 * common.opt (fdebug-types-section): New flag.
5979 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5980 * dwarf2out.c (use_debug_types): New define.
5981 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5982 (print_die): Guard output of type unit signatures using
5984 (build_abbrev_table): Replace assert of dwarf_version >= 4
5985 with assert on use_debug_types.
5986 (size_of_die): Likewise.
5987 (unmark_dies): Likewise.
5988 (value_format): Decide AT_ref_external form on use_debug_types.
5989 (output_die): Replace dwarf_version version check guard with
5990 use_debug_types where appropriate.
5991 (modified_type_die): Likewise.
5992 (gen_reference_type_die): Likewise.
5993 (dwarf2out_start_source_file): Likewise.
5994 (dwarf2out_end_source_file): Likewise.
5995 (prune_unused_types_walk_attribs): Likewise.
5996 (dwarf2out_finish): Likewise.
5998 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6000 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6002 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6004 PR rtl-optimization/48332
6005 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6006 mode of input operand N and modeN to its actual mode.
6008 2011-03-30 Jeff Law <law@redhat.com>
6010 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6011 define accessor macro.
6012 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6013 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6014 (reg_equiv_init): Likewise.
6015 (reg_equivs_size): New variable.
6016 (reg_equiv_init_size): Remove.
6017 (allocate_initial_values): Move prototype to here from....
6018 * integrate.h (allocate_initial_values): Remove prototype.
6019 * integrate.c: Include reload.h.
6020 (allocate_initial_values): Corresponding changes.
6021 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6022 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6023 (update_equiv_regs): Corresponding changes.
6024 (ira): Corresponding changes.
6025 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6026 (push_secondary_reload): Corresponding changes.
6027 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6028 (make_memloc, find_reloads_address): Corresponding changes.
6029 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6030 (find_reloads_address_1): Corresponding changes.
6031 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6032 (refers_to_regno_for_reload_p): Corresponding changes.
6033 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6034 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6035 * reload1.c: Include ggc.h.
6036 (grow_reg_equivs): New function.
6037 (replace_pseudos_in, reload): Corresponding changes.
6038 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6039 (eliminate_regs_1, elimination_effects): Corresponding changes.
6040 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6041 (delete_output_reload): Likewise.
6042 * caller-save.c (mark_referenced_regs): Corresponding changes.
6043 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6044 * frv/predicates.md (frv_load_operand): Corresponding changes.
6045 * microblaze/microblaze.c (double_memory_operand): Corresponding
6047 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6048 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6049 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6050 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6051 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6053 * pa/pa.c (emit_move_sequence): Corresponding changes.
6054 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6056 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6059 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6060 structure modes. Don't check neon_vector_mem_operand for
6061 vector or structure modes.
6063 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6064 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6067 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6068 operand 1 and reshuffle the operands to match.
6069 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6071 2011-03-30 Christian Schüler <cschueler@gmx.de>
6074 * config/c.opt (F): Added 'Driver' to -F option.
6077 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6079 * config/darwin.opt: Added '-arch' option.
6081 2011-03-30 Nick Clifton <nickc@redhat.com>
6083 * config/rx/rx.md: Add peepholes and patterns to combine
6084 extending loads and simple arithmetic instructions.
6085 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6086 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6087 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6088 modes to use pre-decrement and post-increment addressing.
6089 (rx_is_restricted_memory_address): Add range checking of REG+INT
6091 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6092 (rx_memory_move_cost): Adjust cost of stores.
6093 (rx_adjust_insn_length): New function.
6095 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6098 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6099 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6100 matching arg00/arg01 types.
6102 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6104 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6105 last_location to UNKNOWN_LOCATION.
6107 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6110 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6113 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6114 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6117 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6119 (sparc_cpu): Likewise.
6120 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6123 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6127 PR rtl-optimization/48345
6128 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6129 hard regs for given mode from profitable regs when doing secondary
6132 2011-03-29 Jeff Law <law@redhat.com>
6135 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6136 do_not_duplicate field.
6137 (lookup_redirection_data): Corresponding changes.
6138 (create_duplicates): Always create a template block.
6139 (redirect_edges): Remove code which reused the original block
6140 when it was going to become unreachable code.
6141 (thread_block): Don't set do_not_duplicate field.
6143 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6145 * lto-opts.c (register_user_option_p, lto_register_user_option):
6146 Make type argument unsigned.
6147 * lto-streamer.h (lto_register_user_option): Make type argument
6149 * opth-gen.awk: Make CL_* macros unsigned.
6150 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6151 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6152 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6153 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6154 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6155 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6156 (find_opt): Make lang_mask argument unsigned.
6158 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6160 PR rtl-optimization/48331
6161 PR rtl-optimization/48334
6162 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6163 for any used algorithm.
6165 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6167 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6170 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6172 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6173 (alpha_option_override): Don't set alpha_sr_alias_set.
6174 (emit_frame_store_1): Use gen_frame_mem rather than calling
6176 (alpha_expand_epilogue): Ditto.
6178 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6180 PR tree-optimization/48290
6181 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6182 vectorization, check that relevant phis in the basic block after
6183 the inner loop are really inner loop's exit phis.
6185 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6188 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6189 (cached_dw_loc_list_def): New structure.
6190 (cached_dw_loc_list): New typedef.
6191 (cached_dw_loc_list_table): New variable.
6192 (cached_dw_loc_list_table_hash): New function.
6193 (cached_dw_loc_list_table_eq): Likewise.
6194 (add_location_or_const_value_attribute): Take a bool cache_p.
6195 Cache the list when the parameter is true.
6196 (gen_formal_parameter_die): Update caller.
6197 (gen_variable_die): Likewise.
6198 (dwarf2out_finish): Likewise.
6199 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6200 while generating debug info for the decl.
6201 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6202 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6203 (resolve_addr): Cache the result of resolving a chain of
6206 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6208 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6209 conflict object hard regset nodes have intersecting hard reg sets.
6211 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6212 after regstat_init_n_sets_and_refs.
6214 * ira.c: Add more comments at the top.
6215 (setup_stack_reg_pressure_class, setup_pressure_classes):
6216 Add comments how we compute the register pressure classes.
6217 (setup_allocno_and_important_classes): Add more comments.
6218 (setup_class_translate_array, reorder_important_classes)
6219 (setup_reg_class_relations): Add comments.
6221 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6224 * ira-color.c: Add 2011 to the Copyright line.
6225 (assign_hard_reg): Add more comments.
6226 (improve_allocation): Ditto.
6228 * ira-costs.c: Add 2011 to the Copyright line.
6229 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6231 (setup_regno_cost_classes_by_mode): Ditto.
6233 Initial patches from ira-improv branch:
6235 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6237 * ira-build.c (ira_create_object): Remove initialization of
6238 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6239 (ira_create_allocno): Remove initialization of
6240 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6241 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6242 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6243 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6244 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6245 Initialize ALLOCNO_ADD_DATA.
6246 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6247 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6249 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6250 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6252 * ira.c (ira_reallocate): Remove.
6253 (setup_pressure_classes): Call
6254 ira_init_register_move_cost_if_necessary. Use
6255 ira_register_move_cost instead of ira_get_register_move_cost.
6256 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6257 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6259 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6260 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6261 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6262 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6263 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6264 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6266 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6267 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6268 (struct allocno_color_data): New.
6269 (allocno_color_data_t): New typedef.
6270 (allocno_color_data): New definition.
6271 (ALLOCNO_COLOR_DATA): New macro.
6272 (struct object_color_data): New.
6273 (object_color_data_t): New typedef.
6274 (object_color_data): New definition.
6275 (OBJECT_COLOR_DATA): New macro.
6276 (update_copy_costs, calculate_allocno_spill_cost): Call
6277 ira_init_register_move_cost_if_necessary. Use
6278 ira_register_move_cost instead of ira_get_register_move_cost.
6279 (move_spill_restore, update_curr_costs): Ditto.
6280 (allocno_spill_priority): Make it inline.
6281 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6282 (struct coalesce_data, coalesce_data_t): New.
6283 (allocno_coalesce_data): New definition.
6284 (ALLOCNO_COALESCE_DATA): New macro.
6285 (merge_allocnos, coalesced_allocno_conflict_p): Use
6286 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6287 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6288 (coalesce_allocnos): Ditto.
6289 (setup_coalesced_allocno_costs_and_nums): Ditto.
6290 (collect_spilled_coalesced_allocnos): Ditto.
6291 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6292 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6293 (coalesce_spill_slots): Ditto.
6294 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6295 free allocno_coalesce_data.
6297 * ira-conflicts.c: Fix formatting.
6298 (process_regs_for_copy): Call
6299 ira_init_register_move_cost_if_necessary. Use
6300 ira_register_move_cost instead of ira_get_register_move_cost.
6301 (build_object_conflicts): Optimize.
6303 * ira-costs.c (record_reg_classes): Optimize. Call
6304 ira_init_register_move_cost_if_necessary. Use
6305 ira_register_move_cost, ira_may_move_in_cost, and
6306 ira_may_move_out_cost instead of ira_get_register_move_cost and
6307 ira_get_may_move_cost.
6308 (record_address_regs): Ditto.
6309 (scan_one_insn): Optimize.
6310 (find_costs_and_classes): Optimize.
6311 (process_bb_node_for_hard_reg_moves): Call
6312 ira_init_register_move_cost_if_necessary. Use
6313 ira_register_move_cost instead of ira_get_register_move_cost.
6315 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6316 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6317 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6318 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6320 (ira_initiate_emit_data, ira_finish_emit_data)
6321 (create_new_allocno): New functions.
6322 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6323 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6324 Use ira_register_move_cost instead of ira_get_register_move_cost.
6326 * ira-int.h: Fix some comments.
6327 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6328 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6329 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6330 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6332 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6333 bitfield after mode. Make hard_regno a short int. Make
6334 hard_regno short. Remove first_coalesced_allocno and
6335 next_coalesced_allocno. Move mem_optimized_dest_p,
6336 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6337 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6338 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6339 temp, colorable_p. Add new member add_data.
6340 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6341 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6342 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6343 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6344 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6345 (ALLOCNO_ADD_DATA): New macro.
6346 (ira_emit_data_t): New typedef.
6347 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6348 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6349 from struct ira_allocno.
6350 (ALLOCNO_EMIT_DATA): New macro.
6351 (ira_allocno_emit_data, allocno_emit_reg): New.
6352 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6353 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6354 (OBJECT_ADD_DATA): New macro.
6355 (ira_reallocate): Remove.
6356 (ira_initiate_emit_data, ira_finish_emit_data): New.
6357 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6358 (ira_init_register_move_cost_if_necessary): New.
6359 (ira_object_conflict_iter_next): Merge into
6360 ira_object_conflict_iter_cond.
6361 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6363 * ira-live.c (process_single_reg_class_operands): Call
6364 ira_init_register_move_cost_if_necessary. Use
6365 ira_register_move_cost instead of ira_get_register_move_cost.
6367 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6369 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6371 * ira-costs.c: Fix formatting.
6372 (cost_classes, cost_classes_num): Remove.
6373 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6374 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6375 (cost_classes_del, cost_classes_htab): New.
6376 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6377 (initiate_regno_cost_classes, setup_cost_classes): New.
6378 (setup_regno_cost_classes_by_aclass): New.
6379 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6380 (record_reg_classes): Use regno_cost_classes instead of
6381 cost_classes. Move checking opposite operand up.
6382 (record_address_regs): Use regno_cost_classes
6383 instead of cost_classes.
6384 (scan_one_insn): Ditto. Use always general register.
6385 (print_allocno_costs): Use regno_cost_classes instead of
6387 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6388 (find_costs_and_classes): Set up cost classes for each registers.
6389 Use also their mode for this. Use regno_cost_classes instead of
6391 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6393 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6394 (ira_costs, ira_set_pseudo_classes): Call
6395 initiate_regno_cost_classes and finish_regno_cost_classes.
6397 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6399 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6401 * target.def (ira_cover_classes): Remove.
6403 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6405 * doc/tm.texi.in: Ditto.
6407 * ira-conflicts.c: Remove mentioning cover classes from the file.
6408 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6409 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6411 * targhooks.c (default_ira_cover_classes): Remove.
6413 * targhooks.h (default_ira_cover_classes): Ditto.
6415 * haifa-sched.c: Remove mentioning cover classes from the file.
6416 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6417 ira_pressure_classes and ira_pressure_classes_num instead of
6418 ira_reg_class_cover_size and ira_reg_class_cover. Use
6419 sched_regno_pressure_class instead of sched_regno_cover_class.
6420 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6421 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6423 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6424 classes from the file.
6425 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6426 (struct object_hard_regs, struct object_hard_regs_node): New.
6427 (struct ira_object): New members profitable_hard_regs,
6428 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6429 (struct ira_allocno): Rename cover_class to aclass. Rename
6430 cover_class_cost and updated_cover_class_cost to class_cost and
6431 updated_class_cost. Remove splay_removed_p and
6432 left_conflict_size. Add new members colorable_p.
6433 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6434 (ALLOCNO_COLORABLE_P): New macro.
6435 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6436 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6437 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6438 (OBJECT_...): Rename parameter C to O.
6439 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6440 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6441 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6442 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6443 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6444 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6445 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6446 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6447 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6448 x_ira_reg_class_subunion.
6449 (ira_max_memory_move_cost, ira_max_register_move_cost)
6450 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6451 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6452 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6453 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6454 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6455 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6456 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6457 (ira_tune_allocno_costs_and_cover_classes): Rename to
6458 ira_tune_allocno_costs.
6459 (ira_debug_hard_regs_forest): New.
6460 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6461 (ira_object_conflict_iter_next): Fix comments.
6462 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6463 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6464 cover_class to aclass.
6465 (ira_allocate_and_accumulate_costs): Ditto.
6466 (ira_allocate_and_set_or_copy_costs): Ditto.
6468 * opts.c (decode_options): Remove ira_cover_class check.
6470 * ira-color.c: Remove mentioning cover classes from the file. Use
6471 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6472 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6473 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6474 (splay-tree.h): Remove include.
6475 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6476 before copy_freq_compare_func.
6477 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6478 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6480 (hard_regs_roots, hard_regs_node_vec): Ditto.
6481 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6482 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6483 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6484 (create_new_object_hard_regs_node): Ditto.
6485 (add_new_object_hard_regs_node_to_forest): Ditto.
6486 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6487 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6489 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6490 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6491 (remove_unused_object_hard_regs_nodes): Ditto.
6492 (enumerate_object_hard_regs_nodes): Ditto.
6493 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6494 (object_hard_regs_subnode_t): Ditto.
6495 (struct object_hard_regs_subnode): Ditto.
6496 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6497 (setup_object_hard_regs_subnode_index): Ditto.
6498 (get_object_hard_regs_subnodes_num): Ditto.
6499 (form_object_hard_regs_nodes_forest): Ditto.
6500 (finish_object_hard_regs_nodes_tree): Ditto.
6501 (finish_object_hard_regs_nodes_forest): Ditto.
6502 (allocnos_have_intersected_live_ranges_p): Rename to
6503 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6504 (pseudos_have_intersected_live_ranges_p): Rename to
6505 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6506 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6507 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6508 (update_copy_costs): Remove assert. Skip cost update if the hard
6509 reg does not belong the class.
6510 (assign_hard_reg): Process only profitable hard regs.
6511 (uncolorable_allocnos_num): Make it scalar.
6512 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6513 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6514 and ira_reg_class_max_nregs.
6515 (bucket_allocno_compare_func): Check frequency first.
6516 (sort_bucket): Add compare function as a parameter.
6517 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6518 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6519 (push_allocno_to_stack): Rewrite for checking new allocno
6521 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6522 (push_only_colorable): Pass new parameter to sort_bucket.
6523 (push_allocno_to_spill): Remove.
6524 (allocno_spill_priority_compare): Make it inline and rewrite.
6525 (splay_tree_allocate, splay_tree_free): Remove.
6526 (allocno_spill_sort_compare): New function.
6527 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6528 build and use splay tree. Choose first allocno in uncolorable
6529 allocno bucket to spill. Remove setting spill cost.
6530 (all_conflicting_hard_regs): Remove.
6531 (setup_allocno_available_regs_num): Check only profitable hard
6532 regs. Print info about hard regs nodes.
6533 (setup_allocno_left_conflicts_size): Remove.
6534 (put_allocno_into_bucket): Don't call
6535 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6536 (improve_allocation): New.
6537 (color_allocnos): Call setup_profitable_hard_regs,
6538 form_object_hard_regs_nodes_forest, improve_allocation,
6539 finish_object_hard_regs_nodes_forest. Setup spill cost.
6540 (print_loop_title): Use pressure classes.
6541 (color_allocnso): Ditto.
6542 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6543 and allocnos_for_spilling.
6544 (ira_sort_regnos_for_alter_reg): Don't setup members
6545 {first,next}_coalesced_allocno.
6546 (color): Remove allocating and freeing removed_splay_allocno_vec.
6547 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6548 prohibited_class_mode_regs.
6550 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6552 (update_allocno_pressure_excess_length): Use pressure classes.
6553 (inc_register_pressure, dec_register_pressure): Check for pressure
6555 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6556 pressure class. Use ira_reg_class_nregs instead of
6557 ira_reg_class_max_nregs.
6558 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6559 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6560 (single_reg_class): Use ira_reg_class_nregs instead of
6561 ira_reg_class_max_nregs.
6562 (process_bb_node_lives): Use pressure classes.
6564 * ira-emit.c: Remove mentioning cover classes from the file. Use
6565 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6566 (change_loop): Use pressure classes.
6567 (modify_move_list): Call ira_set_allocno_class instead of
6568 ira_set_allocno_cover_class.
6570 * ira-build.c: Remove mentioning cover classes from the file. Use
6571 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6572 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6573 ALLOCNO_UPDATED_CLASS_COST instead of
6574 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6575 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6576 (ira_create_allocno): Remove initialization of
6577 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6578 ALLOCNO_COLORABLE_P.
6579 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6580 Update conflict regs for the objects.
6581 (create_cap_allocno): Remove assert. Don't propagate
6582 ALLOCNO_AVAILABLE_REGS_NUM.
6583 (ira_free_allocno_costs): New function.
6584 (finish_allocno): Change a part of code into call of
6585 ira_free_allocno_costs.
6586 (low_pressure_loop_node_p): Use pressure classes.
6587 (object_range_compare_func): Don't compare classes.
6588 (setup_min_max_conflict_allocno_ids): Ditto.
6590 * loop-invariant.c: Remove mentioning cover classes from the file.
6591 Use ira_pressure_classes and ira_pressure_classes_num instead of
6592 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6593 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6594 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6595 Use reg_allocno_class instead of reg_cover_class.
6596 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6597 STACK_REG_COVER_CLASS.
6598 (get_regno_cover_class): Rename to get_regno_pressure_class.
6599 (move_loop_invariants): Initialize and finalize regstat.
6601 * ira.c: Remove mentioning cover classes from the file. Add
6602 comments about coloring without cover classes. Use ALLOCNO_CLASS
6603 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6604 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6605 setup_class_subset_and_memory_move_costs.
6606 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6607 (setup_cover_and_important_classes): Rename to
6608 setup_allocno_and_important_classes.
6609 (setup_class_translate_array): New.
6610 (setup_class_translate): Call it for allocno and pressure classes.
6611 (cover_class_order): Rename to allocno_class_order.
6612 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6613 of ira_class_translate.
6614 (reorder_important_classes): Set up ira_important_class_nums.
6615 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6616 (print_class_cover): Rename to print_classes. Add parameter.
6617 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6618 Print pressure classes too.
6619 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6620 setup_reg_subclasses.
6621 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6622 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6623 (setup_prohibited_class_mode_regs): Use
6624 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6625 (clarify_prohibited_class_mode_regs): New function.
6626 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6627 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6628 (ira_init_once): Initialize them.
6629 (free_register_move_costs): Process them.
6630 (ira_init): Move calls of find_reg_classes and
6631 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6632 Call clarify_prohibited_class_mode_regs.
6633 (ira_no_alloc_reg): Remove.
6634 (too_high_register_pressure_p): Use pressure classes.
6636 * sched-deps.c: Remove mentioning cover classes from the file.
6637 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6638 ira_pressure_classes and ira_pressure_classes_num instead of
6639 ira_reg_class_cover_size and ira_reg_class_cover.
6640 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6641 sched_regno_pressure_class instead of sched_regno_cover_class.
6642 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6643 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6645 * ira.h: Add 2010 to Copyright.
6646 (ira_no_alloc_reg): Remove external.
6647 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6648 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6649 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6650 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6651 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6652 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6653 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6654 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6655 x_ira_no_alloc_regs.
6656 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6657 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6658 ira_allocno_classes_num and ira_allocno_classes.
6659 (ira_class_translate): Rename to ira_allocno_class_translate.
6660 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6661 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6662 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6663 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6664 (ira_no_alloc_regs): New.
6666 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6667 classes from the file. Use ALLOCNO_CLASS instead of
6668 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6669 ALLOCNO_COVER_CLASS_COST.
6670 (regno_cover_class): Rename to regno_aclass.
6671 (record_reg_classes): Use ira_reg_class_subunion instead of
6672 ira_reg_class_union.
6673 (record_address_regs): Check overflow.
6674 (scan_one_insn): Ditto.
6675 (print_allocno_costs): Print total mem cost fore regional allocation.
6676 (print_pseudo_costs): Use REG_N_REFS.
6677 (find_costs_and_classes): Use classes intersected with them on the
6678 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6679 ira_reg_class_union. Use ira_allocno_class_translate and
6680 regno_aclass instead of ira_class_translate and regno_cover_class.
6681 Modify code for finding regno_aclass. Setup preferred classes for
6683 (setup_allocno_cover_class_and_costs): Rename to
6684 setup_allocno_class_and_costs. Use regno_aclass instead of
6685 regno_cover_class. Use ira_set_allocno_class instead of
6686 ira_set_allocno_cover_class.
6687 (init_costs, finish_costs): Use regno_aclass instead of
6689 (ira_costs): Use setup_allocno_class_and_costs instead of
6690 setup_allocno_cover_class_and_costs.
6691 (ira_tune_allocno_costs_and_cover_classes): Rename to
6692 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6693 by processing objects. Use ira_reg_class_max_nregs instead of
6694 ira_reg_class_nregs.
6696 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6698 * sched-int.h: Remove mentioning cover classes from the file.
6699 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6701 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6702 classes from the file.
6703 (struct reg_pref): Rename coverclass into allocnoclass.
6704 (reg_cover_class): Rename to reg_allocno_class.
6706 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6708 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6710 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6712 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6714 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6716 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6718 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6720 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6722 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6724 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6726 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6727 (i386_ira_cover_classes): Ditto.
6729 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6731 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6733 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6735 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6737 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6739 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6741 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6742 (mips_ira_cover_classes): Ditto.
6744 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6746 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6748 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6750 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6752 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6754 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6755 (IRA_COVER_CLASSES_VSX): Ditto.
6757 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6758 (rs6000_ira_cover_classes): Ditto.
6760 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6762 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6764 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6766 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6768 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6770 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6772 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6774 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6776 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6778 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6780 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6783 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6784 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6785 dw_fde_unlikely_section_end_label, cold_in_std_section,
6786 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6787 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6789 (output_fde): Use dw_fde_second_{begin,end} if second is
6790 true, otherwise dw_fde_{begin,end}.
6791 (output_call_frame_info): Test dw_fde_second_begin != NULL
6792 instead of dw_fde_switched_sections.
6793 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6794 fields, initialize new fields. Initialize in_std_section
6795 unconditionally from the first partition.
6796 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6797 dw_fde_second_begin is non-NULL.
6798 (dwarf2out_switch_text_section): Stop initializing removed
6799 dw_fde_struct fields, initialize new fields, initialize
6800 also dw_fde_end here. Set dw_fde_switch_cfi even when
6801 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6802 (struct var_loc_list_def): Add last_before_switch field.
6803 (arange_table, arange_table_allocated, arange_table_in_use,
6804 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6805 (size_of_aranges): Count !in_std_section and !second_in_std_section
6806 hunks in fdes, instead of looking at arange_table_in_use.
6807 (output_aranges): Add aranges_length argument, don't call
6808 size_of_aranges here. Instead of using aranges_table*
6809 emit ranges for fdes when !in_std_section resp.
6810 !second_in_std_section.
6811 (dw_loc_list): Break ranges crossing section switch.
6812 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6813 use dw_fde_second_end instead of dw_fde_end as end of last range.
6814 (gen_subprogram_die): Don't call add_arange. Use
6815 dw_fde_{begin,end} for first partition and if switched
6816 section dw_fde_second_{begin,end} for the second.
6817 (var_location_switch_text_section_1,
6818 var_location_switch_text_section): New functions.
6819 (dwarf2out_begin_function): Initialize cold_text_section even
6820 when function_section () isn't text_section.
6821 (prune_unused_types): Don't walk arange_table.
6822 (dwarf2out_finish): Don't needlessly test
6823 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6824 If info_section_emitted, call size_of_aranges and if it indicates
6825 non-empty .debug_aranges, call output_aranges with the computed
6826 size. Stop using removed dw_fde_struct fields, use
6827 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6831 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6832 create ENTRY_VALUE if incoming or address of incoming's MEM
6834 * dwarf2out.c (mem_loc_descriptor): Don't emit
6835 DW_OP_GNU_entry_value of DW_OP_fbreg.
6836 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6837 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6838 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6839 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6841 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6842 is a REG_P or MEM_P with REG_P address, compute hash directly
6843 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6844 (preserve_only_constants): Don't clear VALUES forwaring
6845 ENTRY_VALUE to some other VALUE.
6847 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6849 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6852 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6854 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6855 block before expanding the statement.
6856 (expand_gimple_stmt_1): Likewise. Set them here...
6857 (expand_gimple_stmt): ...and not here. Tidy.
6858 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6861 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6863 * Makefile.in: New rule for cprop.o.
6864 * gcse.c: Move constant/copy propagation to cprop.c.
6865 (compute_local_properties): Only handle expression tables.
6866 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6867 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6868 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6869 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6870 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6871 compute_cprop_data, find_used_regs, try_replace_reg,
6872 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6873 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6874 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6875 find_bypass_set, reg_killed_on_edge, bypass_block,
6876 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6877 execute_rtl_cprop, pass_rtl_cprop): Move to...
6878 * cprop.c: ...here. New file, constant/copy propagation for RTL
6879 moved from gcse.c to here with minor cleanups in duplicated code.
6881 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6883 * config/i386/i386.c (flag_opts): Fix a typo in
6884 -mavx256-split-unaligned-store.
6886 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6888 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6889 LIBCALL_VALUE): Remove macros.
6890 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6891 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6892 (h8300_function_value, h8300_libcall_value,
6893 h8300_function_value_regno_p): New functions.
6895 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6897 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6899 2011-03-28 Jeff Law <law@redhat.com>
6901 * tree-ssa-threadupdate.c (redirect_edges): Call
6902 create_edge_and_update_destination_phis as needed.
6903 (create_edge_and_update_destination_phis): Accept new BB argument.
6904 All callers updated.
6905 (thread_block): Do not update the profile when threading around
6906 intermediate blocks.
6907 (thread_single_edge): Likewise.
6908 (determine_bb_domination_status): If BB is not a successor of the
6909 loop header, return NONDOMINATING.
6910 (register_jump_thread): Note when we register a jump thread around
6911 an intermediate block.
6912 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6913 (thread_across_edge): Use it.
6915 2011-03-28 Tristan Gingold <gingold@adacore.com>
6917 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6918 when for_return is 2.
6920 2011-03-28 Jeff Law <law@redhat.com>
6922 * var-tracking.c (canonicalize_values_mark): Delete unused
6924 (canonicalize_values_star, set_variable_part): Likewise.
6925 (clobber_variable_part, delete_variable_part): Likewise.
6927 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6929 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6931 2011-03-28 Martin Jambor <mjambor@suse.cz>
6933 * tree-inline.c (expand_call_inline): Do not check that destination
6935 (optimize_inline_calls): Assert that destination node is analyzed.
6936 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6937 not call tree_lowering_passes.
6938 * cgraph.h (cgraph_analyze_function): Declare.
6939 * cgraphunit.c (cgraph_analyze_function): Make public.
6941 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6943 * config/sparc/sparc-opts.h: New.
6944 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6945 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6946 (sparc_option_override): Store processor_type enumeration rather
6947 than string in cpu_default. Remove name and enumeration from
6948 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6949 without using sparc_select. Use target_flags_explicit instead of
6951 * config/sparc/sparc.h (enum processor_type): Move to
6953 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6954 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6955 HeaderInclude entry.
6956 (mcpu=, mtune=): Use Var and Enum.
6957 (sparc_processor_type): New Enum and EnumValue entries.
6959 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6960 Iain Sandoe <iains@gcc.gnu.org>
6963 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6965 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6967 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6968 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6969 Insert new statements at it in lieu of STMT.
6970 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6971 * tree-vect-stmts.c (vectorizable_store): Likewise.
6972 (vectorizable_load): Likewise.
6974 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
6976 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6981 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6983 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6984 unaligned 256bit load/store.
6985 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6986 (*avx_movdqu<avxmodesuffix>): Likewise.
6988 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6991 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6992 * config/pa/pa.md (iordi3): Use new predicate in expander.
6995 2011-03-27 Anatoly Sokolov <aesok@post.ru>
6997 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6998 FUNCTION_VALUE_REGNO_P): Remove macros.
6999 * config/mips/mips-protos.h (mips_function_value): Remove.
7000 * config/mips/mips.c (mips_function_value): Rename to...
7001 (mips_function_value_1): ... this. Make static. Handle receiving
7002 the function type in 'fn_decl_or_type' argument.
7003 (mips_function_value, mips_libcall_value,
7004 mips_function_value_regno_p): New function.
7005 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7006 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7008 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7010 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7011 and -mavx256-split-unaligned-store.
7012 (ix86_option_override_internal): Split 32-byte AVX unaligned
7013 load/store by default.
7014 (ix86_avx256_split_vector_move_misalign): New.
7015 (ix86_expand_vector_move_misalign): Use it.
7017 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7018 -mavx256-split-unaligned-store.
7020 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7021 256bit load/store. Generate unaligned store on misaligned memory
7023 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7025 (*avx_movdqu<avxmodesuffix>): Likewise.
7027 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7028 -mavx256-split-unaligned-store.
7030 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7033 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7036 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7038 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7039 opno arguments with an expand_operand. Use create_input_operand.
7040 (mips_prepare_builtin_target): Delete.
7041 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7043 (mips_expand_builtin_direct): Use create_output_operand and
7044 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7045 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7046 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7048 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7050 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7052 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7054 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7056 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7057 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7058 basic blocks and call commit_edge_insertions directly.
7059 (fixup_abnormal_edges): Move from here to...
7060 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7061 on the edges and return whether some have actually been inserted.
7062 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7065 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7067 PR rtl-optimization/48144
7068 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7069 (merge_expr_data): ... here.
7070 (av_set_intersect): Rename to av_set_code_motion_filter.
7071 Update all callers. Call merge_history_vect when an expression
7072 is found in both sets.
7073 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7075 2011-03-26 Alan Modra <amodra@gmail.com>
7077 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7078 cmodel medium addresses.
7079 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7080 64-bit gpr loads and stores.
7081 (rs6000_secondary_reload_ppc64): New function.
7082 * config/rs6000/rs6000-protos.h: Declare it.
7083 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7085 2011-03-26 Alan Modra <amodra@gmail.com>
7088 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7089 GNU Go in traceback table.
7091 2011-03-25 Richard Henderson <rth@redhat.com>
7093 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7094 if there are exactly 6 operands.
7095 (set_storage_via_setmem): Similarly.
7097 2011-03-25 Kai Tietz <ktietz@redhat.com>
7099 * collect2.c (write_c_file_stat): Handle backslash
7100 as right-hand directory separator.
7101 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7102 checking just for slash.
7103 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7104 instead of checking for trailing slash.
7105 * gcc.c (record_temp_file): Use filename_cmp instead
7107 (do_spec_1): Likewise.
7108 (replace_outfile_spec_function): Likewise.
7109 (is_directory): Use filename_ncmp instead of strncmp.
7110 (print_multilib_info): Likewise.
7111 * gcov.c (find_source): Use filename_cmp instead
7113 (make_gcov_file_name): Fix order of slash/backslash
7115 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7116 (add_standard_paths): Likewise.
7117 * mips-tfile.c (saber_stop): Handle backslash.
7118 * prefix.c (update_path): Use filename_ncmp instead of
7120 * profile.c (output_location): Use filename_cmp instead
7122 * read-md.c (handle_toplevel_file): Handle backslash.
7123 * tlink.c (frob_extension): Likewise.
7124 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7126 * tree-dump.c (dequeue_and_dump): Handle backslash.
7127 * tree.c (get_file_function_name): Likewise.
7128 * gengtype.c (read_input_list): Likewise.
7129 (get_file_realbasename): Likewise.
7130 (get_output_file_with_visibility): Use filename_cmp
7133 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7135 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7138 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7140 * fold-const.c (expr_location_or): New function.
7141 (fold_truth_not_expr): Call it.
7143 2011-03-25 Jeff Law <law@redhat.com>
7145 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7147 * c-family/c-common.c (def_fn_type): Likewise.
7148 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7149 * emit-rtl.c (gen_rtvec): Likewise.
7150 * lto/lto-lang.c (def_fn_type): Likewise.
7152 2011-03-25 Richard Guenther <rguenther@suse.de>
7154 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7155 also generate copies.
7156 (fini_copy_prop): Handle constant values properly.
7158 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7160 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7161 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7162 (hash_loc_operands, compare_loc_operands): Handle
7163 DW_OP_GNU_entry_value.
7165 2011-03-25 Kai Tietz <ktietz@redhat.com>
7167 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7168 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7169 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7170 comment and use macro TARGET_64BIT_MS_ABI instead.
7171 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7172 and change default behavior for 32-bit MS_ABI.
7173 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7174 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7176 (ix86_cfun_abi): Likewise.
7177 (ix86_maybe_switch_abi): Adjust comment.
7178 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7179 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7180 instead of checking for SYSV_ABI.
7181 (ix86_nsaved_sseregs): Likewise.
7182 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7184 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7185 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7186 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7187 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7188 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7190 2011-03-25 Richard Guenther <rguenther@suse.de>
7192 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7193 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7194 (verify_gimple): Remove.
7195 * tree-cfg.c (verify_gimple_call): Merge verification
7197 (verify_gimple_phi): Merge verification from verify_stmts.
7198 (verify_gimple_label): New function.
7199 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7200 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7201 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7202 (verify_stmts): Rename to verify_gimple_in_cfg.
7203 (verify_gimple_in_cfg): New function.
7204 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7205 * tree-ssa.c (verify_ssa): Likewise.
7206 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7208 2011-03-25 Richard Guenther <rguenther@suse.de>
7210 * passes.c (init_optimization_passes): Add FRE pass after
7213 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7214 Andrew Stubbs <ams@codesourcery.com>
7216 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7218 (arm_movdi_vfp_cortexa8): New pattern.
7219 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7220 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7221 instructions when tuning for Cortex-A8. Set attribute "arch".
7222 * config/arm/arm.md: Move include arm-tune.md up a bit.
7223 (define_attr "arch"): Add "onlya8" and "nota8" values.
7224 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7226 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7230 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7232 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7233 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7234 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7235 * passes.c (init_optimization_passes): Move
7236 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7238 2011-03-25 Kai Tietz <ktietz@redhat.com>
7240 * c-typeck.c (comptypes_internal): Replace target
7241 hook call of comp_type_attributes by version in tree.c file.
7242 * gimple.c (gimple_types_compatible_p_1): Likewise.
7243 * tree-ssa.c (useless_type_conversion_p): Likewise.
7244 * tree.c (build_type_attribute_qual_variant): Likewise.
7245 (attribute_value_equal): New static helper function.
7246 (comp_type_attributes): New function.
7247 (merge_attributes): Use attribute_value_equal for comparison.
7248 (attribute_list_contained): Likewise.
7249 * tree.h (comp_type_attributes): New prototype.
7251 2011-03-25 Richard Guenther <rguenther@suse.de>
7253 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7254 of complex types at -O0.
7255 (verify_gimple_assign_binary): Likewise.
7256 (verify_gimple_assign_ternary): Likewise.
7258 2011-03-24 Mark Wielaard <mjw@redhat.com>
7260 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7261 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7263 2011-03-24 Mark Wielaard <mjw@redhat.com>
7266 * dwarf2out.c (output_abbrev_section): Only write table when
7267 abbrev_die_table_in_use > 1.
7269 2011-02-24 Richard Henderson <rth@redhat.com>
7271 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7272 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7273 (alpha_expand_unaligned_load_words): Use extql.
7274 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7275 (emit_insxl): Handle all modes for consistency.
7277 2011-02-24 Richard Henderson <rth@redhat.com>
7279 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7280 (alpha_expand_unaligned_load): Likewise.
7281 (alpha_expand_unaligned_store): Likewise.
7282 (alpha_expand_unaligned_load_words): Likewise.
7283 (alpha_expand_unaligned_store_words): Likewise.
7284 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7285 (alpha_split_lock_test_and_set_12): Likewise.
7286 (print_operand, alpha_fold_builtin_extxx): Likewise.
7287 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7288 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7289 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7290 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7291 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7292 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7293 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7294 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7295 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7296 (extwl, extll, extql): Similarly.
7297 (inswh, inslh, insqh): Similarly.
7298 (mskbl, mskwl, mskll, mskql): Similarly.
7299 (mskwh, msklh, mskqh): Similarly.
7301 2011-02-24 Richard Henderson <rth@redhat.com>
7303 * config/alpha/alpha.md (attribute isa): Add er, ner.
7304 (attribute enabled): Handle them.
7305 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7307 2011-02-24 Richard Henderson <rth@redhat.com>
7309 * config/alpha/alpha.md (attribute isa): Add vms.
7310 (attribute enabled): Handle it.
7311 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7312 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7313 (*movtf): Rename from *movtf_internal for consistency.
7314 (*movsi): Merge with *movsi_nt_vms.
7315 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7316 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7317 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7318 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7320 2011-02-24 Richard Henderson <rth@redhat.com>
7322 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7323 (extendqisi2, extendhisi2): Likewise.
7324 (extendqidi2): Simplify BWX/non-BWX expansions.
7325 (extendhidi2): Similarly.
7327 2011-02-24 Richard Henderson <rth@redhat.com>
7329 * config/alpha/alpha.md (attribute isa): New.
7330 (attribute enabled): New.
7331 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7332 (zero_extendqisi2, zero_extendqidi2): Similarly.
7333 (zero_extendhisi2, zero_extendhidi2): Similarly.
7334 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7336 2011-02-24 Richard Henderson <rth@redhat.com>
7338 * config/alpha/predicates.md (input_operand): Revert last change;
7339 update comment to mention 32-bit VMS rather than Windows.
7341 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7343 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7344 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7345 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7346 * passes.c (init_optimization_passes): Move
7347 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7349 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7351 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7353 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7355 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7358 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7361 * simplify-rtx.c (simplify_const_unary_operation): Call
7362 real_convert when changing mode class with FLOAT_EXTEND.
7364 2011-03-24 Nick Clifton <nickc@redhat.com>
7366 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7367 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7368 * config/rx/rx.c (rx_option_override): Set align_jumps,
7369 align_loops and align_labels if not set by the user.
7370 (rx_align_for_label): New function.
7371 (rx_max_skip_for_label): New function.
7372 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7373 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7374 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7375 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7376 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7378 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7380 PR rtl-optimization/48263
7381 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7382 and original commutative_p handling. Use maybe_gen_insn.
7384 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7386 * reload.c (find_reloads_subreg_address): Add address_reloaded
7387 parameter and return true there if the full address has been
7389 (find_reloads_toplev): Pass address_reloaded flag.
7390 (find_reloads_address_1): Don't use address_reloaded parameter.
7392 2011-03-24 Jeff Law <law@redhat.com>
7394 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7395 unused variable "ann".
7396 (remove_unused_locals): Likewise.
7398 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7401 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7404 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7406 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7407 for invalid symbolic addresses.
7408 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7411 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7413 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7414 the argument in calls to fold_truth_not_expr.
7416 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7418 * tree.c (record_node_allocation_statistics): New function.
7419 (make_node_stat, copy_node_stat, build_string): Call it.
7420 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7421 (build1_stat, build_omp_clause): Likewise.
7423 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7425 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7428 2011-03-24 Richard Guenther <rguenther@suse.de>
7430 PR tree-optimization/48271
7431 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7432 blocks that still exist.
7434 2011-03-24 Richard Guenther <rguenther@suse.de>
7436 PR tree-optimization/48270
7437 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7438 not free datarefs before ddrs.
7440 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7442 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7443 from the address built for a reference with variable offset.
7445 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7448 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7449 alternatives that can be handled with movq or movabsq insn.
7450 (*movdf_internal): Disable for !TARGET_64BIT.
7451 (*movdf_internal_nointeger): Ditto.
7452 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7454 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7456 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7457 (FUNCTION_ARG_ADVANCE): Likewise.
7458 * tm.texi.in: Change references to them to hook references.
7459 * tm.texi: Regenerate.
7460 * targhooks.c (default_function_arg): Eliminate check for target macro.
7461 (default_function_incoming_arg): Likewise.
7462 (default_function_arg_advance): Likewise.
7463 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7464 (function_arg_advance): Likewise.
7465 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7467 2011-03-24 Richard Guenther <rguenther@suse.de>
7470 * tree-object-size.c (addr_object_size): Do not double-account
7471 for MEM_REF offsets.
7473 2011-03-24 Diego Novillo <dnovillo@google.com>
7475 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7476 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7477 (lto_input_data_block): Move from lto-opts.c. Make extern.
7479 (lto_input_string): Rename from input_string. Make extern.
7481 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7482 output_string_with_length.
7483 Output 0 to indicate a non-NULL string. Update all callers to
7485 (lto_output_string): Rename from output_string. Make extern.
7487 (lto_output_decl_state_streams): Make extern.
7488 (lto_output_decl_state_refs): Make extern.
7489 * lto-streamer.h (lto_input_string): Declare.
7490 (lto_input_data_block): Declare.
7491 (lto_output_string): Declare.
7492 (lto_output_string_with_length): Declare.
7493 (lto_output_decl_state_streams): Declare.
7494 (lto_output_decl_state_refs): Declare.
7496 2011-03-24 Richard Guenther <rguenther@suse.de>
7498 PR tree-optimization/46562
7499 * tree.c (build_invariant_address): New function.
7500 * tree.h (build_invariant_address): Declare.
7501 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7502 a renamed function moved ...
7503 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7504 Take valueization callback parameter.
7505 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7506 * gimple-fold.h: New file.
7507 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7508 (ccp_fold, fold_const_aggregate_ref,
7509 fold_ctor_reference, fold_nonarray_ctor_reference,
7510 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7511 get_base_constructor): Move ...
7512 * gimple-fold.c: ... here.
7513 (gimple_fold_stmt_to_constant_1): New function
7514 split out from ccp_fold. Take a valueization callback parameter.
7515 Valueize all operands.
7516 (gimple_fold_stmt_to_constant): New wrapper function.
7517 (fold_const_aggregate_ref_1): New function split out from
7518 fold_const_aggregate_ref. Take a valueization callback parameter.
7519 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7520 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7521 invariant POINTER_PLUS_EXPRs to invariant form.
7522 (vn_valueize): New function.
7523 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7524 * tree-vrp.c (vrp_valueize): New function.
7525 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7526 to fold statements to constants.
7527 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7528 function declarations.
7529 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7530 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7532 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7534 * config/h8300/predicates.md (jump_address_operand): Fix register
7537 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7539 * doc/invoke.texi (max-stores-to-sink): Document.
7540 * params.h (MAX_STORES_TO_SINK): Define.
7541 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7542 if either vectorization or if-conversion is disabled.
7543 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7544 tree-vect-data-refs.c vect_equal_offsets.
7545 (dr_equal_offsets_p): New function.
7546 (find_data_references_in_bb): Remove static.
7547 * tree-data-ref.h (find_data_references_in_bb): Declare.
7548 (dr_equal_offsets_p): Likewise.
7549 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7550 (vect_drs_dependent_in_basic_block): Update calls to
7552 (vect_check_interleaving): Likewise.
7553 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7554 (cond_if_else_store_replacement): Rename to...
7555 (cond_if_else_store_replacement_1): ... this. Change arguments and
7557 (cond_if_else_store_replacement): New function.
7558 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7559 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7561 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7564 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7565 to subtract lower bound instead of GEN_INT().
7567 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7572 * doc/extend.texi (Alignment): Move section to match order in TOC.
7573 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7574 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7576 2011-03-23 Jeff Law <law@redhat.com>
7578 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7579 before removing the edge.
7581 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7582 it may have been freed by redirect_branch_edge or
7583 redirect_edge_succ_nodup.
7585 2011-03-23 Richard Guenther <rguenther@suse.de>
7587 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7588 (check_va_list_escapes): Likewise.
7589 (check_all_va_list_escapes): Likewise.
7591 2011-03-23 Richard Guenther <rguenther@suse.de>
7593 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7594 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7595 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7596 (alias.o): Likewise.
7597 (ipa-type-escape.o): Remove.
7598 (ipa-struct-reorg.o): Likewise.
7599 (GTFILES): Remove ipa-struct-reorg.c.
7600 * alias.c: Do not include ipa-type-escape.h.
7601 * tree-ssa-alias.c: Likewise.
7602 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7603 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7604 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7605 and ipa-type-escape passes.
7606 * tree-pass.h (pass_ipa_type_escape): Remove.
7607 (pass_ipa_struct_reorg): Likewise.
7608 * ipa-struct-reorg.h: Remove.
7609 * ipa-struct-reorg.c: Likewise.
7610 * ipa-type-escape.h: Likewise.
7611 * ipa-type-escape.c: Likewise.
7612 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7613 (--param struct-reorg-cold-struct-ratio): Likewise.
7614 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7615 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7616 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7618 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7620 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7621 cpu attribute value.
7622 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7623 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7624 * config/s390/s390.c (processor_flags_table): New constant array.
7625 (s390_handle_arch_option): Remove.
7626 (s390_handle_option): Remove s390_handle_arch_option invocations
7627 and OPT_mwarn_framesize_ handling.
7628 (s390_option_override): Remove s390_handle_arch_option invocation.
7629 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7631 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7632 * config/s390/s390.opt (s390_tune, s390_arch)
7633 (march=): Replace s390_arch_option enum and values with
7634 processor_type. Set variable name to s390_arch. Set
7635 initialization value.
7636 (mtune=): Replace s390_arch_option with processor_type. Set
7637 variable name to s390_tune. Set initialization value.
7639 2011-03-23 Julian Brown <julian@codesourcery.com>
7641 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7642 accesses which are not naturally aligned.
7644 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7647 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7649 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7651 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7652 parameter from "int" to "enum insn_code".
7653 (expand_operand_type): New enum.
7654 (expand_operand): New structure.
7655 (create_expand_operand): New function.
7656 (create_fixed_operand, create_output_operand): Likewise
7657 (create_input_operand, create_convert_operand_to): Likewise.
7658 (create_convert_operand_from, create_address_operand): Likewise.
7659 (create_integer_operand): Likewise.
7660 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7661 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7662 (expand_insn, expand_jump_insn): Likewise.
7663 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7664 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7665 (expand_movstr, expand_builtin___clear_cache): Likewise.
7666 (expand_builtin_lock_release): Likewise.
7667 * explow.c (allocate_dynamic_stack_space): Likewise.
7668 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7669 and use the default handling in that case.
7670 * expmed.c (check_predicate_volatile_ok): Delete.
7671 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7672 (emit_cstore): Likewise.
7673 * expr.c (emit_block_move_via_movmem): Likewise.
7674 (set_storage_via_setmem, expand_assignment): Likewise.
7675 (emit_storent_insn, try_casesi): Likewise.
7676 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7677 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7678 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7679 (expand_twoval_unop, expand_twoval_binop): Likewise.
7680 (expand_unop_direct, emit_indirect_jump): Likewise.
7681 (emit_conditional_move, vector_compare_rtx): Likewise.
7682 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7683 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7684 (expand_sync_lock_test_and_set): Likewise.
7685 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7686 (emit_unop_insn): Likewise.
7687 (expand_copysign_absneg): Change icode to an insn_code.
7688 (create_convert_operand_from_type): New function.
7689 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7690 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7691 (expand_insn, expand_jump_insn): Likewise.
7692 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7693 than const_int_operand for operand 2.
7695 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7697 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7700 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7702 * emit-rtl.c (emit_pattern_before_noloc): New function.
7703 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7704 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7705 (emit_pattern_after_noloc): New function.
7706 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7707 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7709 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7711 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7712 (__ffsDI2): Likewise.
7714 2011-03-22 Richard Henderson <rth@redhat.com>
7716 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7717 of !TARGET_ABI_OPEN_VMS.
7718 (alpha_trampoline_init, alpha_start_function): Likewise.
7719 (alpha_expand_epilogue, alpha_file_start): Likewise.
7720 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7721 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7722 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7723 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7724 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7726 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7728 * config/s390/s390-opts.h: New.
7729 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7730 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7731 s390_stack_guard): Remove.
7732 (s390_handle_arch_option): Return void. Take enum
7733 s390_arch_option value instead of string and searching array.
7734 (s390_handle_option): Don't assert that global structures are in
7735 use. Access variables via opts pointer. Use error_at. Don't use
7736 sscanf for -mstack-guard= or -mstack-size=. Update call to
7737 s390_handle_arch_option.
7738 (s390_option_override): Update call to s390_handle_arch_option.
7739 (s390_emit_prologue): Use %d format for s390_stack_size in
7740 diagnostic. Use %wd for HOST_WIDE_INT.
7741 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7742 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7743 * config/s390/s390.opt (config/s390/s390-opts.h): New
7744 HeaderInclude entry.
7745 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7746 s390_arch_flags, s390_warn_framesize): New Variable entries.
7747 (s390_arch_option): New Enum and EnumValue entries.
7748 (march=): Use Enum instead of Var.
7749 (mstack-guard=, mstack-size=): Use UInteger and Var.
7752 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7754 * config/score/score.c (score_handle_option): Don't assert that
7755 global structures are in use. Access target_flags via opts
7756 pointer. Use value of -march= option to determine target_flags
7758 * config/score/score.opt (march=): Use Enum.
7759 (score_arch): New Enum and EnumValue entries.
7761 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7763 * config/mep/mep.c (option_mtiny_specified): Remove.
7764 (mep_option_override): Move register handling for -mivc2 from
7765 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7766 instead of option_mtiny_specified.
7767 (mep_handle_option): Access target_flags via opts pointer. Don't
7768 assert that global structures are in use. Defer part of -mivc2
7769 handling and move it to mep_option_override.
7770 * config/mep/mep.opt (IVC2): New Mask entry.
7771 (mivc2): Use Var and Defer instead of Mask.
7773 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7775 * config/v850/v850-opts.h: New.
7776 * config/v850/v850.c (small_memory): Replace with
7777 small_memory_physical_max array. Make that array static const.
7778 (v850_handle_memory_option): Take integer value of argument. Take
7779 gcc_options pointer, option text and location. Return void.
7780 Update for changes to small memory structures.
7781 (v850_handle_option): Access target_flags via opts pointer. Don't
7782 assert that global structures are in use. Update calls to
7783 v850_handle_memory_option.
7784 (v850_encode_data_area): Update references to small memory settings.
7785 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7786 (enum small_memory_type): Move to v850-opts.h.
7787 * config/v850/v850.opt (config/v850/v850-opts.h): New
7788 HeaderInclude entry.
7789 (small_memory_max): New Variable entry.
7790 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7791 (mtda, mzda): Likewise.
7793 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7795 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7796 pointer. Don't assert that global structures are in use.
7798 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7800 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7801 via opts pointer. Don't assert that global structures are in use.
7803 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7805 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7806 (munix=93): Use Var.
7807 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7808 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7809 * config/pa/pa-opts.h: New.
7810 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7811 (pa_handle_option): Don't assert that global structures are in
7812 use. Access target_flags via opts pointer. Don't handle
7813 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7815 (pa_option_override): Handle deferred OPT_mfixed_range_.
7817 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7819 * config/mn10300/mn10300-opts.h: New.
7820 * config/mn10300/mn10300.c (mn10300_processor,
7821 mn10300_tune_string): Remove.
7822 (mn10300_handle_option): Don't assert that global structures are
7823 in use. Access mn10300_processor via opts pointer. Don't handle
7825 * config/mn10300/mn10300.h (enum processor_type): Move to
7827 (mn10300_processor): Remove.
7828 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7829 HeaderInclude entry.
7830 (mn10300_processor): New Variable entry.
7833 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7835 * config/microblaze/microblaze.c: Don't include opts.h.
7836 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7837 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7838 (mno-clearbss): Use Var and Warn.
7840 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7842 * config/m32r/m32r-opts.h: New.
7843 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7844 (m32r_handle_option): Don't assert that global structures are in
7845 use. Access target_flags and m32r_cache_flush_func via opts
7846 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7847 OPT_mno_flush_trap here.
7848 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7849 include of m32r-opts.h.
7850 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7851 HeaderInclude entry.
7852 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7853 (mmodel=): Use Enum and Var.
7854 (m32r_model): New Enum and EnumValue entries.
7855 (mno-flush-trap): Use Var.
7856 (msdata=): Use Enum and Var.
7857 (m32r_sdata): New Enum and EnumValue entries.
7859 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7861 * config/m32c/m32c.c: Don't include opts.h.
7862 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7863 m32c_handle_option): Remove.
7864 (m32c_option_override): Check global_options_set.x_target_memregs
7865 instead of target_memregs_set.
7866 * config/m32c/m32c.h (target_memregs): Remove.
7867 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7870 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7872 * config/iq2000/iq2000-opts.h: New.
7873 * config/iq2000/iq2000.c: Don't include opts.h.
7874 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7875 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7876 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7877 HeaderInclude entry.
7878 (iq2000_tune): New Variable entry.
7879 (march=): Add comment. Use Enum.
7880 (iq2000_arch): New Enum and EnumValue entries.
7881 (mcpu=): Use Enum and Var.
7882 (iq2000_tune): New Enum and EnumValue entries.
7884 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7886 * config/ia64/ia64-opts.h: New.
7887 * config/ia64/ia64.c (ia64_tune): Remove.
7888 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7890 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7891 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7892 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7893 HeaderInclude entry.
7894 (ia64_tune): New Variable entry.
7895 (mfixed-range=): Use Defer and Var.
7896 (mtune=): Use Enum and Var.
7897 (ia64_tune): New Enum and EnumValue entries.
7899 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7901 * config/frv/frv-opts.h: New.
7902 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7904 (frv_cpu_type): Remove.
7905 * config/frv/frv.c: Don't include opts.h.
7906 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7907 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7908 (frv_cpu_type): New Variable entry.
7909 (frv_cpu): New Enum and EnumValue entries.
7911 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7913 * config/cris/cris.c (cris_handle_option): Access target_flags via
7914 opts pointer. Don't assert that global structures are in use.
7915 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7916 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7918 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7920 * config/bfin/bfin-opts.h: New.
7921 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7922 bfin_si_revision, bfin_workarounds): Remove.
7923 (bfin_cpus): Make static const.
7924 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7925 not bfin_lib_id_given.
7926 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7927 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7928 pointer. Use error_at. Don't assert that global structures are in use.
7929 * config/bfin/bfin.h: Include bfin-opts.h.
7930 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7931 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7932 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7933 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7936 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7938 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7939 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7940 or -msoft-float here.
7941 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7942 -msoft-float and -mhard-float.
7943 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7944 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7946 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7948 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7949 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7951 (LIBGCC_SPEC): Don't handle -msoft-float.
7952 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7954 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7956 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7957 -mfloat-abi=*, not -msoft-float and -mhard-float.
7958 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7960 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7961 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7962 mhard-float and msoft-float.
7963 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7964 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7965 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7966 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7968 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7969 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7971 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7973 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7976 2011-03-22 Richard Henderson <rth@redhat.com>
7978 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7979 TARGET_ABI_WINDOWS_NT.
7980 (alpha_output_function_end_prologue): Likewise.
7981 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7982 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7983 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7984 (trap, *movsi_nt_vms): Likewise.
7985 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7986 (*tablejump_osf_nt_internal): Remove.
7987 * config/alpha/predicates.md (input_operand): Only test Pmode.
7989 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7991 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7992 via opts pointer. Use error_at. Don't assert that global
7993 structures are in use.
7995 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7997 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7998 (ix86_handle_option): Access ix86_isa_flags and
7999 ix86_isa_flags_explicit via opts pointer. Don't assert that
8000 global structures are in use.
8001 (ix86_function_specific_save, ix86_function_specific_restore):
8002 Update ix86_isa_flags_explicit field name.
8003 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8004 (ix86_isa_flags_explicit): Rename TargetSave entry to
8005 x_ix86_isa_flags_explicit.
8007 2011-03-22 Richard Henderson <rth@redhat.com>
8009 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8010 (alpha_option_override, direct_return): Likewise.
8011 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8012 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8013 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8014 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8015 (alpha_expand_epilogue, alpha_end_function): Likewise.
8016 (alpha_init_libfuncs): Likewise.
8017 (struct machine_function): Remove unicosmk members.
8018 (print_operand) ['t']: Remove.
8019 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8020 unicosmk_output_module_name, unicosmk_output_common,
8021 current_section_align, unicosmk_output_text_section_asm_op,
8022 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8023 unicosmk_section_type_flags, unicosmk_unique_section,
8024 unicosmk_asm_named_section, unicosmk_insert_attributes,
8025 unicosmk_output_align, unicosmk_defer_case_vector,
8026 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8027 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8028 unicosmk_output_ssib, unicosmk_add_call_info_word,
8029 unicosmk_extern_head, unicosmk_output_default_externs,
8030 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8031 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8032 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8033 * config/alpha/alpha-protos.h: Update.
8034 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8035 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8036 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8037 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8038 (*mulsi_se, mulvsi3): Likewise.
8039 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8040 (*divmodsi_internal, call, call_value, realign): Likewise.
8041 (moddi3, umoddi3): Likewise; remove duplicate expander.
8042 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8043 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8044 (*movdi_nofix): Remove r/U alternative.
8045 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8046 * config/alpha/constraints.md ("U"): Remove.
8047 * config/alpha/predicates.md (call_operand"): Don't test
8048 TARGET_ABI_UNICOSMK.
8050 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8052 * target.def (handle_option): Take gcc_options and
8053 cl_decoded_option pointers and location_t.
8054 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8055 * doc/tm.texi: Regenerate.
8056 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8057 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8058 * lto-opts.c (lto_reissue_options): Generate option structure for
8059 targetm.handle_option call.
8060 * opts.c (target_handle_option): Update call to
8061 targetm.handle_option. Remove assertions about values now passed
8063 * targhooks.c (default_target_handle_option): New.
8064 * targhooks.h (default_target_handle_option): Declare.
8065 * config/alpha/alpha.c: Include opts.h.
8066 (alpha_handle_option): Update to new hook interface.
8067 * config/arm/arm.c: Include opts.h.
8068 (arm_handle_option): Update to new hook interface.
8069 * config/arm/t-arm (arm.o): Update dependencies.
8070 * config/bfin/bfin.c: Include opts.h.
8071 (bfin_handle_option): Update to new hook interface.
8072 * config/cris/cris.c: Include opts.h.
8073 (cris_handle_option): Update to new hook interface.
8074 * config/frv/frv.c: Include opts.h.
8075 (frv_handle_option): Update to new hook interface.
8076 * config/i386/i386.c: Include opts.h.
8077 (ix86_handle_option): Update to new hook interface.
8078 (ix86_valid_target_attribute_inner_p): Generate option structure
8079 for call to ix86_handle_option.
8080 * config/i386/t-i386 (i386.o): Update dependencies.
8081 * config/ia64/ia64.c: Include opts.h.
8082 (ia64_handle_option): Update to new hook interface.
8083 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8084 * config/iq2000/iq2000.c: Include opts.h.
8085 (iq2000_handle_option): Update to new hook interface.
8086 * config/m32c/m32c.c: Include opts.h.
8087 (m32c_handle_option): Update to new hook interface.
8088 * config/m32r/m32r.c: Include opts.h.
8089 (m32r_handle_option): Update to new hook interface.
8090 * config/m68k/m68k.c: Include opts.h.
8091 (m68k_handle_option): Update to new hook interface.
8092 * config/mep/mep.c: Include opts.h.
8093 (mep_handle_option): Update to new hook interface.
8094 * config/microblaze/microblaze.c: Include opts.h.
8095 (microblaze_handle_option): Update to new hook interface.
8096 * config/mips/mips.c: Include opts.h.
8097 (mips_handle_option): Update to new hook interface.
8098 * config/mn10300/mn10300.c: Include opts.h.
8099 (mn10300_handle_option): Update to new hook interface.
8100 * config/pa/pa.c: Include opts.h.
8101 (pa_handle_option): Update to new hook interface.
8102 * config/pdp11/pdp11.c: Include opts.h.
8103 (pdp11_handle_option): Update to new hook interface.
8104 * config/rs6000/rs6000.c: Include opts.h.
8105 (rs6000_handle_option): Update to new hook interface.
8106 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8107 * config/rx/rx.c: Include opts.h.
8108 (rx_handle_option): Update to new hook interface.
8109 * config/s390/s390.c: Include opts.h.
8110 (s390_handle_option): Update to new hook interface.
8111 * config/score/score.c: Include opts.h.
8112 (score_handle_option): Update to new hook interface.
8113 * config/sh/sh.c: Include opts.h.
8114 (sh_handle_option): Update to new hook interface.
8115 * config/sparc/sparc.c: Include opts.h.
8116 (sparc_handle_option): Update to new hook interface.
8117 * config/v850/v850.c: Include opts.h.
8118 (v850_handle_option): Update to new hook interface.
8120 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8122 * gcc.c (driver_unknown_option_callback): Only permit and save
8123 unknown -Wno- options.
8124 (driver_wrong_lang_callback): Save options directly instead of via
8125 driver_unknown_option_callback.
8127 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8129 * combine.c (simplify_set): Try harder to find the best CC mode when
8130 simplifying a nested COMPARE on the RHS.
8132 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8134 * config/alpha/gnu.h: Remove.
8135 * config/arc: Remove directory.
8136 * config/arm/netbsd.h: Remove.
8137 * config/arm/t-pe: Remove.
8138 * config/crx: Remove directory.
8139 * config/i386/netbsd.h: Remove.
8140 * config/m68hc11: Remove directory.
8141 * config/m68k/uclinux-oldabi.h: Remove.
8142 * config/mcore/mcore-pe.h: Remove.
8143 * config/mcore/t-mcore-pe: Remove.
8144 * config/netbsd-aout.h: Remove.
8145 * config/rs6000/gnu.h: Remove.
8146 * config/sh/sh-symbian.h: Remove.
8147 * config/sh/symbian-base.c: Remove.
8148 * config/sh/symbian-c.c: Remove.
8149 * config/sh/symbian-cxx.c: Remove.
8150 * config/sh/symbian-post.h: Remove.
8151 * config/sh/symbian-pre.h: Remove.
8152 * config/sh/t-symbian: Remove.
8153 * config/svr3.h: Remove.
8154 * config/vax/netbsd.h: Remove.
8155 * config.build: Don't handle i[34567]86-*-pe.
8156 * config.gcc: Remove handling of deprecations for most deprecated
8158 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8159 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8160 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8161 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8162 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8163 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8165 * config.host: Don't handle i[34567]86-*-pe.
8166 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8167 (ASM_SPEC32): Don't handle -mcall-gnu.
8168 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8170 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8171 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8172 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8173 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8174 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8175 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8176 conditional on SYMBIAN.
8177 * configure.ac: Don't handle powerpc*-*-gnu*.
8178 * configure: Regenerate.
8179 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8180 * doc/install-old.texi (m6811, m6812): Don't mention.
8181 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8182 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8183 (m68k-uclinuxoldabi): Don't mention.
8184 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8186 (-mcall-gnu): Remove.
8187 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8188 families): Remove constraint documentation.
8190 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8192 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8193 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8194 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8196 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8199 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8200 vector when peeking at the next token for vector, don't expand the
8203 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8205 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8206 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8207 * config/avr/avr.c (init_cumulative_args)
8208 (avr_function_arg_advance): Use it.
8209 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8211 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8212 (avr_function_ok_for_sibcall): ...this new function.
8213 (avr_lookup_function_attribute1): New static Function.
8214 (avr_naked_function_p, interrupt_function_p)
8215 (signal_function_p, avr_OS_task_function_p)
8216 (avr_OS_main_function_p): Use it.
8217 * config/avr/avr.md ("sibcall", "sibcall_value")
8218 ("sibcall_epilogue"): New expander.
8219 ("*call_insn", "*call_value_insn"): New insn.
8220 ("call_insn", "call_value_insn"): Remove
8221 ("call", "call_value", "epilogue"): Change expander to handle
8224 2011-03-21 Nick Clifton <nickc@redhat.com>
8226 * doc/invoke.texi (Overall Options): Move closing brace to end of
8228 (Optimization Options): Add missing @gol.
8229 (Directory Options): Likewise.
8230 (i386 and x86-64 Options): Likewise.
8231 (RS6000 and PowerPC Options): Likewise.
8232 (i386 and x86-64 Windows Options): Likewise.
8233 (V850 Options): Add text missing from descriptions.
8235 2011-03-22 Richard Henderson <rth@redhat.com>
8237 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8238 (avr_incoming_return_addr_rtx): New.
8239 (emit_push_byte): New.
8240 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8241 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8242 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8243 (emit_pop_byte): New.
8244 (expand_epilogue): Use it. Pop frame pointer by bytes.
8245 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8246 (INCOMING_RETURN_ADDR_RTX): New.
8247 (INCOMING_FRAME_SP_OFFSET): New.
8248 (ARG_POINTER_CFA_OFFSET): New.
8249 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8250 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8253 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8255 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8257 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8258 (FUNCTION_ARG_ADVANCE): Likewise.
8259 * tm.texi.in: Change references to them to hook references.
8260 * tm.texi: Regenerate.
8261 * targhooks.c (default_function_arg): Eliminate check for target
8263 (default_function_incoming_arg): Likewise.
8264 (default_function_arg_advance): Likewise.
8265 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8266 (function_arg_advance): Likewise.
8267 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8269 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8271 * tree.c (build_call_1): New function.
8272 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8274 2011-03-22 Richard Guenther <rguenther@suse.de>
8276 PR tree-optimization/48228
8277 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8278 for single-arg PHIs.
8280 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8282 PR rtl-optimization/48143
8283 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8284 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8285 sse2_cvtps2pd): Likewise.
8287 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8289 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8291 2011-03-22 Richard Guenther <rguenther@suse.de>
8293 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8294 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8295 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8296 and REALIGN_LOAD_EXPR.
8297 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8298 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8299 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8300 DOT_PROD_EXPR case ...
8301 (expand_expr_real_2): ... here.
8302 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8303 and REALIGN_LOAD_EXPR.
8304 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8305 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8306 (vect_create_epilog_for_reduction): Likewise.
8307 (vectorizable_reduction): Likewise.
8308 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8309 * tree-vect-stmts.c (vectorizable_load): Likewise.
8311 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8313 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8315 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8317 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8318 handling for PLTOFF/GOTOFF.
8320 2011-03-22 Nick Clifton <nickc@redhat.com>
8322 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8323 trailing backslash from the end of the macro definition.
8325 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8327 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8330 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8332 * expr.h (prepare_operand): Move to...
8333 * optabs.h (prepare_operand): ...here and change the insn code
8334 parameter from "int" to "enum insn_code".
8335 (insn_operand_matches): Declare.
8336 * expr.c (init_expr_target): Use insn_operand_matches.
8337 (compress_float_constant): Likewise.
8338 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8339 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8340 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8341 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8343 (gen_cond_trap): Likewise.
8344 (prepare_operand): Likewise. Change icode to an insn_code.
8345 (insn_operand_matches): New function.
8346 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8347 * reload1.c (gen_reload): Likewise.
8348 * targhooks.c (default_secondary_reload): Likewise.
8350 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8352 * config/alpha/alpha.md (unspec): New define_c_enum.
8355 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8358 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8359 between a call and its CALL_ARG_LOCATION note.
8361 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8363 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8365 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8369 * c-common.c (shorten_compare): If primopN is first sign-extended
8370 to opN and then zero-extended to result type, set primopN to opN.
8372 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8374 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8375 for barrier handlers.
8377 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8379 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8380 UNSPEC constants to be in the unspec enumeration, and redefine
8381 all UNSPECV constants to be in the unspecv enumeration, so that
8382 dumps print which unspec/unspec_volatile this is.
8383 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8384 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8385 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8386 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8387 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8389 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8390 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8391 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8392 * config/rs6000/sync.md (isync, lwsync): Ditto.
8394 2011-03-21 Richard Guenther <rguenther@suse.de>
8396 * params.def (lto-min-partition): Fix typo.
8398 2011-03-21 Richard Guenther <rguenther@suse.de>
8401 * c-decl.c (grokdeclarator): Drop to the main variant only
8402 for array types. Drop flag_gen_aux_info check.
8404 2011-03-21 Richard Guenther <rguenther@suse.de>
8406 PR translation/47911
8407 * params.def (lto-partitions): Fix typo.
8408 (lto-min-partition): Fix wording.
8410 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8412 * config/rs6000/t-freebsd: Remove duplication from file.
8414 2011-03-21 Richard Guenther <rguenther@suse.de>
8417 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8419 2011-03-21 Richard Guenther <rguenther@suse.de>
8422 * params.def (lto-partitions): Require at least 1 partition.
8424 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8426 * gthr-solaris.h: Remove.
8427 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8428 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8429 (LIB_SPEC): Likewise.
8430 * config/sol2.opt (threads): Remove.
8431 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8432 (sparc*-*-solaris2*): Likewise.
8433 * configure.ac (enable_threads): Enable solaris support.
8434 * configure: Regenerate.
8435 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8436 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8439 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8441 * config.gcc: Obsolete *-*-solaris2.8*.
8442 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8444 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8447 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8448 reference. Solaris 8 perl works.
8450 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8453 * doc/install.texi (Prerequisites): Move jar etc. up.
8454 Explain support library version requirements.
8456 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8459 * doc/install.texi (Prerequisites): Move Perl to build
8460 requirements. Always necessary on Solaris 2 with Sun ld.
8462 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8464 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8466 (Specific, i?86-*-solaris2.[89]): Likewise.
8467 (Specific, i?86-*-solaris2.10): Likewise.
8468 (Specific, mips-sgi-irix6): Likewise.
8469 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8470 Update for binutils 2.21.
8472 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8474 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8475 Allow -fuse-linker-plugin for non-default plugin linker.
8476 * configure: Regenerate.
8478 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8481 * gengtype.c (files_rules): Added rule for cp/parser.h.
8483 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8486 * config/s390/s390.c (s390_delegitimize_address): Don't call
8487 lowpart_subreg if orig_x has BLKmode.
8489 2011-03-21 Kai Tietz <ktietz@redhat.com>
8492 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8493 * tree.h (attribute_spec): Add new member affects_type_identity.
8494 * attribs.c (empty_attribute_table): Adjust attribute_spec
8496 * config/alpha/alpha.c: Likewise.
8497 * config/arc/arc.c: Likewise.
8498 * config/arm/arm.c: Likewise.
8499 * config/avr/avr.c: Likewise.
8500 * config/bfin/bfin.c: Likewise.
8501 * config/crx/crx.c: Likewise.
8502 * config/darwin.h: Likewise.
8503 * config/h8300/h8300.c: Likewise.
8504 * config/i386/cygming.h: Likewise.
8505 * config/i386/i386.c: Likewise.
8506 * config/ia64/ia64.c: Likewise.
8507 * config/m32c/m32c.c: Likewise.
8508 * config/m32r/m32r.c: Likewise.
8509 * config/m68hc11/m68hc11.c: Likewise.
8510 * config/m68k/m68k.c: Likewise.
8511 * config/mcore/mcore.c: Likewise.
8512 * config/mep/mep.c: Likewise.
8513 * config/microblaze/microblaze.c: Likewise.
8514 * config/mips/mips.c: Likewise.
8515 * config/rs6000/rs6000.c: Likewise.
8516 * config/rx/rx.c: Likewise.
8517 * config/sh/sh.c: Likewise.
8518 * config/sol2.h: Likewise.
8519 * config/sparc/sparc.c: Likewise.
8520 * config/spu/spu.c: Likewise.
8521 * config/stormy16/stormy16.c: Likewise.
8522 * config/v850/v850.c: Likewise.
8524 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8526 * simplify-rtx.c (simplify_binary_operation_1): Handle
8527 (xor (and A B) C) case when B and C are both constants.
8529 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8531 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8533 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8536 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8538 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8540 PR rtl-optimization/48156
8541 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8542 assume df and df_lr are not NULL.
8544 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8547 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8548 between a call and its CALL_ARG_LOCATION note.
8550 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8553 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8554 between a call and its corresponding CALL_ARG_LOCATION note.
8556 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8558 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8559 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8560 * haifa-sched.c (setup_ref_regs): Ditto.
8561 * caller-save.c (add_used_regs_1): Ditto.
8562 * dse.c (look_for_hardregs): Ditto.
8563 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8564 * sched-rgn.c (check_live_1): Ditto.
8566 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8568 * c-decl.c (diagnose_mismatched_decls): Give an error for
8569 redefining a typedef with variably modified type.
8571 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8573 * c-decl.c (grokfield): Don't allow typedefs for structures or
8574 unions with no tag by default.
8575 * doc/extend.texi (Unnamed Fields): Update.
8577 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8579 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8580 Rewrite using indirect functions.
8581 (lwp_slwpcb): Ditto.
8582 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8583 (avx_vinsertf128<mode>): Ditto.
8585 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8587 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8590 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8592 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8593 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8595 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8597 PR rtl-optimization/48170
8598 * gcse.c (hoist_code): Remove bogus asserts.
8600 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8602 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8603 computation for prologue/epilogue.
8605 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8607 * Makefile.in (check-consistency): Remove.
8609 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8612 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8613 arange_table_in_use is 0, but either text_section_used or
8614 cold_text_section_used is true. Don't call it if
8615 !info_section_emitted.
8617 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8619 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8620 FUNCTION_VALUE_REGNO_P): Remove.
8621 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8623 * config/avr/avr.c (avr_ret_register): Make static inline.
8624 (avr_function_value_regno_p): New function.
8625 (avr_libcall_value): Make static. Add 'func' argument.
8626 (avr_function_value): Make static. Rename 'func' argument to
8627 'fn_decl_or_type', forward it to avr_libcall_value. Call
8628 avr_ret_register function instead of RET_REGISTER macro.
8629 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8631 2011-03-18 Jason Merrill <jason@redhat.com>
8634 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8636 2011-03-18 Richard Guenther <rguenther@suse.de>
8638 * doc/install.texi (--enable-gold): Remove.
8639 (--with-plugin-ld): Document.
8640 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8642 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8645 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8646 again after expansion changes.
8648 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8650 * combine.c (try_combine): Do simplification only call of
8651 subst() on i2 even when i1 is present. Update comments.
8653 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8655 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8656 and UNSPEC_PCREL_SYMOFF.
8658 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8660 * config/s390/s390.md: Use define_c_enum for the unspec constant
8663 2011-03-18 Richard Henderson <rth@redhat.com>
8664 Jakub Jelinek <jakub@redhat.com>
8667 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8668 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8670 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8673 * combine.c (cant_combine_insn_p): Don't check zero/sign
8674 extended hard registers.
8676 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8679 * combine.c (cant_combine_insn_p): Check zero/sign extended
8682 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8684 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8685 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8686 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8687 Change return type to bool.
8688 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8690 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8693 * var-tracking.c (prepare_call_arguments): If CALL target
8694 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8695 pc instead of looking it up using cselib_lookup and use
8696 Pmode for it if x has VOIDmode.
8697 * dwarf2out.c (gen_subprogram_die): If also both first and
8698 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8701 * function.c (assign_parms): For data.passed_pointer parms
8702 use MEM of data.entry_parm instead of data.entry_parm itself
8703 as DECL_INCOMING_RTL.
8704 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8705 also when passed and declared mode is the same, DECL_RTL
8706 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8709 2011-03-16 Jeff Law <law@redhat.com>
8711 PR rtl-optimization/37273
8712 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8713 handle them like argument loads from stack slots. Do not double
8714 count memory for memory constants and argument loads from stack slots.
8716 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8719 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8721 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8724 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8726 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8729 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8731 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8732 Clear call_arg_locations and call_arg_loc_last always.
8735 * var-tracking.c (prepare_call_arguments): If argument needs to be
8736 passed by reference, adjust argtype and mode.
8738 2011-03-17 Richard Guenther <rguenther@suse.de>
8741 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8742 a value make sure to fold the statement.
8744 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8747 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8748 return condition with !cfun->calls_alloca.
8750 2011-03-17 Richard Guenther <rguenther@suse.de>
8753 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8754 origin for decls in other ltrans units.
8755 (input_varpool_node): Likewise.
8757 2011-03-17 Richard Guenther <rguenther@suse.de>
8760 * tree-object-size.c (compute_object_offset): Properly return
8761 the offset operand of MEM_REFs as sizetype.
8763 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8765 PR rtl-optimization/48141
8766 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8767 * dse.c: Include params.h.
8768 (active_local_stores_len): New variable.
8769 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8771 (record_store, check_mem_read_rtx): Decrease it when removing
8773 (scan_insn): Likewise. Increase it when adding to chain, if it
8774 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8775 set active_local_stores to NULL before the addition.
8776 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8778 PR rtl-optimization/48141
8779 * dse.c (record_store): If no positions are needed in an insn
8780 that cannot be deleted, at least unchain it from active_local_stores.
8782 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8785 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8786 (lookup_type_die_strip_naming_typedef): ... here.
8787 (get_context_die): Use it.
8788 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8789 the anonymous struct named by the naming typedef.
8791 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8794 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8795 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8797 2011-03-16 Jeff Law <law@redhat.com>
8799 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8800 check for operands of conditional. Allow type to be a pointer.
8802 2011-03-16 Richard Guenther <rguenther@suse.de>
8804 PR tree-optimization/48149
8805 * fold-const.c (fold_binary_loc): Fold
8806 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8808 2011-03-16 Richard Guenther <rguenther@suse.de>
8810 PR tree-optimization/26134
8811 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8812 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8813 (non_rewritable_mem_ref_base): Handle complex type component
8814 accesses, constrain offsets for vector and complex extracts
8817 2011-03-16 Richard Guenther <rguenther@suse.de>
8819 PR tree-optimization/48146
8820 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8821 operands avoiding the need for renaming.
8823 2011-03-16 Richard Guenther <rguenther@suse.de>
8825 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8826 constant folding. Move MEM_REF canonicalization first.
8827 Rely on fold_const_aggregate_ref for initializer folding.
8828 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8830 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8833 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8834 arg0/arg1 or their arguments are always fold converted to matching
8837 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8840 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8843 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8844 Handle in-tree gold.
8845 (ld_vers): Extract binutils version for gold.
8846 (gcc_cv_ld_hidden): Handle gold here.
8847 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8848 * configure: Regenerate.
8849 * config.in: Regenerate.
8850 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8851 -fuse-linker-plugin otherwise.
8852 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8853 (LINK_COMMAND_SPEC): Use it.
8854 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8856 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8858 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8859 * calls.c: Remove debug.h include.
8860 (emit_call_1): Don't call virtual_call_token debug hook.
8861 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8862 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8863 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8864 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8865 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8866 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8867 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8868 dwarf2out_virtual_call): Remove.
8869 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8870 copy_call_info and virtual_call hooks.
8871 (dwarf2out_init): Don't initialize vcall_insn_table,
8872 debug_dcall_section and debug_vcall_section.
8873 (prune_unused_types): Don't mark nodes from dcall_table.
8874 (dwarf2out_finish): Don't output dcall or vcall tables.
8875 * final.c (final_scan_insn): Don't call direct_call or
8876 virtual_call debug hooks.
8877 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8878 virtual_call_token, copy_call_info and virtual_call hooks.
8879 (debug_nothing_uid): Remove prototype.
8880 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8881 copy_call_info and virtual_call hooks.
8882 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8883 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8884 * debug.c (do_nothing_debug_hooks): Likewise.
8885 (debug_nothing_uid): Remove.
8886 * doc/invoke.texi (-fenable-icf-debug): Remove.
8887 * common.opt (-fenable-icf-debug): Likewise.
8889 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8890 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8891 call's MEM. Handle functions returning aggregate through a hidden
8892 first pointer. For virtual calls add clobbered pc to call arguments
8894 * dwarf2out.c (gen_subprogram_die): Emit
8895 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8899 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8900 * rtl.h (ENTRY_VALUE_EXP): Define.
8901 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8902 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8903 * print-rtl.c (print_rtx): Likewise.
8904 * gengtype.c (adjust_field_rtx_def): Likewise.
8905 * var-tracking.c (vt_add_function_parameter): Adjust
8906 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8907 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8908 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8909 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8910 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8912 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8913 Call var_location debug hook even on CALL_INSNs.
8914 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8915 * rtl.def (ENTRY_VALUE): New.
8916 * dwarf2out.c: Include cfglayout.h.
8917 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8918 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8919 (struct call_arg_loc_node): New type.
8920 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8921 tail_call_site_count): New variables.
8922 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8923 DW_TAG_GNU_call_site_parameter.
8924 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8925 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8926 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8927 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8928 and DW_AT_GNU_all_source_call_sites.
8929 (mem_loc_descriptor): Handle ENTRY_VALUE.
8930 (add_src_coords_attributes): Don't add enything if
8931 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8932 (dwarf2out_abstract_function): Save and clear call_arg_location,
8933 call_site_count and tail_call_site_count around dwarf2out_decl call.
8934 (gen_call_site_die): New function.
8935 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8936 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8937 (dwarf2out_function_decl): Clear call_arg_locations,
8938 call_arg_loc_last, set call_site_count and tail_call_site_count
8939 to -1 and free block_map.
8940 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8941 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8942 followed by any real instructions.
8943 (dwarf2out_begin_function): Set call_site_count and
8944 tail_call_site_count to 0.
8945 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8946 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8947 attempt to force a DIE for it and worst case remove the attribute.
8948 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8949 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8951 * var-tracking.c: Include tm_p.h.
8952 (vt_stack_adjustments): For calls call note_register_arguments.
8953 (argument_reg_set): New variable.
8954 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8955 ensure the VALUE is resolved.
8956 (call_arguments): New variable.
8957 (prepare_call_arguments): New function.
8958 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8959 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8960 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8961 always use the best expression.
8962 (vt_expand_loc): Add ignore_cur_loc argument.
8963 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8964 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8965 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8967 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8968 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8969 argument. Don't call cselib_preserve_only_values and
8971 (note_register_arguments): New function.
8972 (vt_initialize): Compute argument_reg_set. Call
8973 vt_add_function_parameters before processing basic blocks instead of
8974 afterwards. For calls call prepare_call_arguments before calling
8975 cselib_process_insn.
8976 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8977 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8978 (var-tracking.o): Depend on $(TM_P_H).
8979 * cfglayout.h (insn_scope): New prototype.
8980 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8981 * cfglayout.c (insn_scope): No longer static.
8982 * insn-notes.def (CALL_ARG_LOCATION): New.
8983 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8984 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8985 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8986 nothing for DECL_EXTERNAL BLOCK_VARS.
8988 2011-03-16 Alan Modra <amodra@gmail.com>
8991 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8992 create invalid offset address for vsx splat insn.
8993 * config/rs6000/predicates.md (splat_input_operand): New.
8994 * config/rs6000/vsx.md (vsx_splat_*): Use it.
8996 2011-03-15 Xinliang David Li <davidxl@google.com>
8999 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9000 (normalize_preds): New function.
9001 (is_use_properly_guarded): Normalize def predicates.
9003 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9006 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9007 in the output template.
9009 2011-03-15 Richard Guenther <rguenther@suse.de>
9012 * tree-pretty-print.c (dump_function_declaration): Properly
9013 dump unprototyped and varargs function types.
9015 2011-03-15 Richard Guenther <rguenther@suse.de>
9017 PR tree-optimization/13954
9018 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9021 2011-03-15 Richard Guenther <rguenther@suse.de>
9023 PR tree-optimization/48037
9024 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9025 selects into BIT_FIELD_REFs.
9026 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9029 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9031 PR tree-optimization/48129
9032 * builtins.c (fold_builtin_snprintf): Convert to type of
9033 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9034 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9036 2011-03-15 Richard Guenther <rguenther@suse.de>
9038 PR tree-optimization/41490
9039 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9040 value but with VUSE.
9041 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9043 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9044 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9045 * tree-tailcall.c (find_tail_calls): Ignore returns.
9047 2011-03-15 Richard Guenther <rguenther@suse.de>
9050 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9051 or variable-indexed array accesses when in gimple form.
9053 2011-03-15 Richard Guenther <rguenther@suse.de>
9055 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9057 2011-03-15 Alan Modra <amodra@gmail.com>
9060 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9061 presume symbol_refs without a symbol_ref_decl are suitably
9062 aligned, nor other trees we may see here. Handle anchor symbols.
9063 (legitimate_constant_pool_address_p): Comment. Add mode param.
9064 Check cmodel=medium addresses. Adjust all calls.
9065 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9066 creating cmodel=medium optimized access to locals.
9067 * config/rs6000/constraints.md (R): Pass QImode to
9068 legitimate_constant_pool_address_p.
9069 * config/rs6000/predicates.md (input_operand): Pass mode to
9070 legitimate_constant_pool_address_p.
9071 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9074 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9077 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9078 64-bit constants being loaded into registers other than GPRs such
9079 as loading 0 into a VSX register.
9081 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9083 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9085 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9088 * builtins.c (fold_builtin_snprintf): New function.
9089 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9090 (fold_builtin_4): Likewise.
9093 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9094 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9095 and C - X == X also strip nops from +/-/p+ operand.
9096 When optimizing -X == C, fold C to arg0's type.
9099 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9100 emit it as add_AT_int instead of add_AT_unsigned.
9102 2011-03-14 Tom Tromey <tromey@redhat.com>
9104 * unwind-dw2.c: Include sys/sdt.h if it exists.
9105 (_Unwind_DebugHook): Use STAP_PROBE2.
9106 * config.in, configure: Rebuild.
9107 * configure.ac: Check for sys/sdt.h.
9109 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9111 * config/i386/i386.md (ROUND_FLOOR): New constant.
9112 (ROUND_CEIL): Ditto.
9113 (ROUND_TRUNC): Ditto.
9114 (ROUND_MXCSR): Ditto.
9115 (ROUND_NO_EXC): Ditto.
9116 (rint<mode>2): Use new defines instead of numerical constants.
9117 (floor<mode>2): Ditto.
9118 (ceil<mode>2): Ditto.
9119 (btrunc<mode>2): Ditto.
9120 * config/i386/i386-builtin-types.def: Define ROUND function type
9122 * config/i386/i386.c (enum ix86_builtins): Add
9123 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9124 (struct builtin_description): Add
9125 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9126 (ix86_expand_sse_round): New static function.
9127 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9129 (ix86_builtin_vectorized_function): Handle
9130 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9132 2011-03-14 Tom Tromey <tromey@redhat.com>
9134 * c-parser.c (c_parser_asm_string_literal): Clear
9135 warn_overlength_strings.
9137 2011-03-14 Tom Tromey <tromey@redhat.com>
9139 * c-parser.c (disable_extension_diagnostics): Save
9140 warn_overlength_strings.
9141 (restore_extension_diagnostics): Restore warn_overlength_strings.
9143 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9145 * BASE-VER: Change to 4.7.0.
9147 2011-03-14 Richard Guenther <rguenther@suse.de>
9150 * tree.c (build_vector_from_val): Adjust assert to requirements
9153 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9156 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9158 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9160 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9161 terms of target_flags_explicit. Adjust copyright year.
9163 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9164 * config/rs6000/t-freebsd: New file. Add override for
9167 2011-03-13 Chris Demetriou <cgd@google.com>
9169 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9170 (-fno-diagnostics-show-option): this, to reflect current default.
9171 (-Werror=): Update text about -fno-diagnostics-show-option.
9173 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9176 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9177 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9178 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9179 mode is not V2DImode or V2DFmode.
9180 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9181 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9182 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9184 (movdi_internal64): Likewise.
9186 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9188 PR tree-optimization/47127
9189 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9191 (set_cloog_options): Same.
9192 (scop_to_clast): Same.
9193 (print_clast_stmt): Do not call cloog_state_malloc and
9195 (print_generated_program): Same.
9197 * graphite-clast-to-gimple.h (cloog_state): Declared.
9198 (scop_to_clast): Adjust declaration.
9199 * graphite.c (cloog_state): Defined here.
9200 (graphite_initialize): Call cloog_state_malloc.
9201 (graphite_finalize): Call cloog_state_free.
9203 2011-03-11 Jason Merrill <jason@redhat.com>
9205 * attribs.c (lookup_attribute_spec): Take const_tree.
9208 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9210 * config/sparc/sparc.c (sparc_option_override): Use
9211 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9213 2011-03-11 Richard Guenther <rguenther@suse.de>
9215 PR tree-optimization/48067
9216 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9217 multiplication result will be only used once on the target
9220 2011-03-11 Richard Guenther <rguenther@suse.de>
9222 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9224 2011-03-11 Richard Guenther <rguenther@suse.de>
9227 * tree.c (find_decls_types_r): Do not walk types only reachable
9228 from IDENTIFIER_NODEs.
9230 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9233 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9234 all vnode->force_output nodes as needed.
9236 2011-03-11 Jason Merrill <jason@redhat.com>
9239 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9240 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9242 2011-03-11 Martin Jambor <mjambor@suse.cz>
9244 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9247 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9249 PR tree-optimization/48063
9250 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9251 inline functions called once if !tree_can_inline_p (node->callers).
9253 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9255 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9257 * config/score/score3.c: Delete.
9258 * config/score/score3.h: Delete.
9259 * config/score/mul-div.S: Delete.
9260 * config/score/sfp-machine.h: Add new file.
9261 * config/score/constraints.md: Add new file.
9262 * config/score/t-score-softfp: Add new file.
9263 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9264 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9265 (score7_extra_constraint): Delete.
9266 (score7_option_override): Remove unused code.
9267 * config/score/score.c: Remove score3 and score5 define and code.
9268 * config/score/score.h: Remove score3 and score5 define and code.
9269 * config/score/score.md: Remove score3 template and unusual insn.
9270 * config/score/score.opt: Remove score3 and score5 options.
9272 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9274 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9275 when _HPUX_SOURCE is defined.
9276 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9278 2011-03-10 Jason Merrill <jason@redhat.com>
9281 * stor-layout.c (layout_type): Don't set structural equality
9282 on arrays of incomplete type.
9283 * tree.c (type_hash_eq): Handle comparing them properly.
9285 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9288 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9289 result mode matches original rtl mode.
9291 2011-03-10 Nick Clifton <nickc@redhat.com>
9293 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9294 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9296 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9298 PR rtl-optimization/47866
9299 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9300 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9301 if target wasn't scalar.
9302 * function.c (assign_stack_temp_for_type): Assert that neither
9303 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9304 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9306 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9308 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9310 * config/s390/s390-protos.h (s390_label_align): New prototype.
9311 * config/s390/s390.c (s390_label_align): New function.
9312 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9314 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9317 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9318 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9319 (output_vec_const_move): Ditto.
9321 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9323 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9324 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9325 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9326 Change 'rclass' argument and result type to reg_class_t.
9327 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9329 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9331 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9332 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9333 (TARGET_MEMORY_MOVE_COST): Define.
9334 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9336 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9339 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9342 PR tree-optimization/48022
9343 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9346 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9349 * var-tracking.c (find_use_val): Return NULL for
9350 cui->sets && cui->store_p BLKmode MEMs.
9352 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9354 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9356 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9357 xstormy16_print_operand_address): Remove.
9358 * config/stormy16/stormy16.c (xstormy16_print_operand,
9359 xstormy16_print_operand_address): Make static.
9360 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9362 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9365 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9366 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9369 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9372 * cfgloopmanip.c (fix_bb_placements): Return immediately
9373 if FROM is BASE_LOOP's header.
9375 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9377 * gimplify.c (gimplify_function_tree): Fix building calls
9378 to __builtin_return_address.
9380 2011-03-07 Alan Modra <amodra@gmail.com>
9382 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9383 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9384 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9385 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9387 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9388 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9389 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9390 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9391 * config/rs6000/rs6000.c
9392 (rs6000_elf_end_indicate_exec_stack): Rename to..
9393 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9394 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9395 (rs6000_file_start): ..here.
9396 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9397 file scope variables.
9398 (call_ABI_of_interest): New function.
9399 (init_cumulative_args): Set above vars when function return value
9400 is a float, vector, or small struct.
9401 (rs6000_function_arg_advance_1): Likewise for function args.
9402 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9403 references float args.
9405 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9407 * doc/cfg.texi: Remove "See" before @ref.
9408 * doc/invoke.texi: Likewise.
9410 2011-03-05 Jason Merrill <jason@redhat.com>
9412 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9414 2011-03-05 Anthony Green <green@moxielogic.com>
9416 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9418 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9420 PR rtl-optimization/47899
9421 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9422 to flow_loop_nested_p when moving the loop upward.
9424 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9427 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9429 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9431 PR tree-optimization/47967
9432 * ipa-cp.c (build_const_val): Return NULL instead of creating
9433 VIEW_CONVERT_EXPR for mismatching sizes.
9434 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9435 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9436 give up on versioning.
9438 2011-03-05 Alan Modra <amodra@gmail.com>
9441 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9442 full cmodel medium/large lo_sum + high addresses.
9444 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9446 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9447 pool references in UNSPEC_LTREL_OFFSET.
9449 2011-03-04 Jan Hubicka <jh@suse.cz>
9452 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9453 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9454 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9456 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9457 cgraph_add_thunk): Add node pointers.
9458 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9459 associated to right node.
9460 (input_node): Update use of cgraph_same_body_alias
9461 and cgraph_add_thunk.
9463 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9465 * config/i386/i386.opt (mprefer-avx128): New flag.
9466 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9467 modes when the flag -mprefer-avx128 is on.
9469 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9471 * dwarf2out.c (compare_loc_operands): Fix address handling.
9473 2011-03-04 Alan Modra <amodra@gmail.com>
9475 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9477 2011-03-04 Richard Guenther <rguenther@suse.de>
9480 * expmed.c (extract_bit_field_1): Prefer vector modes that
9481 vec_extract patterns can handle.
9483 2011-03-04 Richard Guenther <rguenther@suse.de>
9486 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9488 2011-03-04 Richard Henderson <rth@redhat.com>
9490 * explow.c (emit_stack_save): Remove 'after' parameter.
9491 (emit_stack_restore): Likewise.
9492 * expr.h: Update to match.
9493 * builtins.c, calls.c, stmt.c: Likewise.
9494 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9495 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9496 * function.c (expand_function_end): Insert the emit_stack_save
9497 sequence before parm_birth_insn instead of after.
9499 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9501 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9502 (ssse3_pmaddubsw128): Ditto.
9503 (ssse3_pmaddubsw): Ditto.
9505 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9507 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9509 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9512 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9513 on TYPE_SIZE_UNIT if it is a DECL.
9516 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9517 first operand is not is_gimple_mem_ref_addr, try to fold it.
9518 If the operand still isn't is_gimple_mem_ref_addr, clear
9521 2011-03-03 Richard Guenther <rguenther@suse.de>
9524 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9526 (refs_may_alias_p_1): For release branches return true if
9527 we are confused by our input.
9529 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9531 * config/s390/s390.c (s390_function_value): Rename to ...
9532 (s390_function_and_libcall_value): ... this.
9533 (s390_function_value): New function.
9534 (s390_libcall_value): New function.
9535 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9536 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9537 target macro definitions.
9538 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9540 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9542 * config/i386/freebsd64.h (CC1_SPEC): Define.
9543 * config/i386/linux64.h (CC1_SPEC): Define.
9544 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9546 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9548 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9550 * config/stormy16/stormy16.c: Include reload.h.
9551 (xstormy16_memory_move_cost): New function.
9552 (TARGET_MEMORY_MOVE_COST): Define.
9554 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9556 PR rtl-optimization/47925
9557 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9558 with side effects. Remove the more-specific check for volatile asms.
9560 2011-03-02 Alan Modra <amodra@gmail.com>
9563 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9564 toc relative addresses for valid offsets.
9566 2011-03-01 Richard Guenther <rguenther@suse.de>
9568 PR tree-optimization/47890
9569 * tree-vect-loop.c (get_initial_def_for_induction): Set
9570 related stmt properly.
9572 2011-03-01 Richard Guenther <rguenther@suse.de>
9575 * lto-streamer.c (lto_record_common_node): Also register
9578 2011-03-01 Richard Guenther <rguenther@suse.de>
9581 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9582 Do not stream DECL_ABSTRACT_ORIGIN.
9583 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9584 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9585 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9586 Do not stream DECL_ABSTRACT_ORIGIN.
9587 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9588 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9590 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9592 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9593 FUNCTION_VALUE_REGNO_P): Remove.
9594 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9595 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9596 Add 'outgoing' argument.
9597 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9599 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9600 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9602 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9605 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9606 (lookup_filename): Likewise.
9607 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9609 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9610 Jakub Jelinek <jakub@redhat.com>
9613 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9614 (assign_stack_local_1): Change last argument type to int.
9615 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9616 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9617 don't record padding space into frame_space_list nor use those areas.
9618 (assign_stack_local): Adjust caller.
9619 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9620 of assign_stack_local, pass 0 as last argument.
9621 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9624 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9627 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9628 Use target address_mode and pointer_mode hooks instead of hardcoded
9629 Pmode and ptr_mode. Handle some simple cases of extending if
9630 POINTERS_EXTEND_UNSIGNED < 0.
9631 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9632 Call convert_debug_memory_address.
9633 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9634 convert_debug_memory_address.
9637 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9638 * configure: Regenerated.
9639 * config.in: Regenerated.
9640 * varasm.c (default_function_section): Return NULL
9641 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9643 2011-02-28 Martin Jambor <mjambor@suse.cz>
9645 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9646 the description to match the printed values.
9648 2011-02-28 Richard Guenther <rguenther@suse.de>
9650 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9651 of the copied scope tree.
9653 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9655 * doc/extend.texi (Function Attributes): Avoid deeply (and
9656 wrongly) nested tables.
9658 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9661 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9662 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9663 r isn't op0 nor op1.
9665 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9667 * config/avr/avr.md: Remove magic comment for emacs.
9669 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9672 * config/avr/avr.c (avr_option_override): Use error on bad options.
9673 (avr_help): New function.
9674 (TARGET_HELP): Define.
9676 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9679 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9680 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9682 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9684 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9685 (ARM Options): Ditto.
9686 (i386 and x86-64 Options): Ditto.
9687 (RX Options): Ditto.
9688 (SPARC Options): Ditto.
9690 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9692 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9693 FreeBSD 6 and later. Generally use cpu generic.
9695 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9697 * doc/cpp.texi: Update copyright years.
9699 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9702 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9704 2011-02-25 Jon Beniston <jon@beniston.com>
9707 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9708 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9709 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9710 (lm32_block_move_inline): Add type cast to remove warning.
9711 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9712 (gen_int_relational): Move declarations to start of function.
9714 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9716 PR tree-optimization/45470
9717 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9718 can throw internally only.
9719 * tree-vect-stmts.c (vectorizable_call): Likewise.
9721 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9723 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9724 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9725 * config/stormy16/stormy16-protos.h
9726 (xstormy16_preferred_reload_class): Remove.
9727 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9728 static. Change 'rclass' argument and return type to reg_class_t.
9729 (TARGET_PREFERRED_RELOAD_CLASS,
9730 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9732 2011-02-24 Richard Guenther <rguenther@suse.de>
9734 * lto-streamer-in.c (input_bb): Do not find referenced vars
9735 in debug statements.
9737 2011-02-23 Jason Merrill <jason@redhat.com>
9739 * common.opt (fabi-version): Document v5 and v6.
9741 2011-02-23 Richard Guenther <rguenther@suse.de>
9743 PR tree-optimization/47849
9744 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9746 2011-02-23 Jie Zhang <jie@codesourcery.com>
9748 * opts-common.c (decode_cmdline_option): Print empty string
9749 argument as "" in decoded->orig_option_with_args_text.
9750 * gcc.c (execute): Print empty string argument as ""
9751 in the verbose output.
9752 (do_spec_1): Keep empty string argument.
9754 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9756 * config.gcc: Declare score-* and crx-* obsolete.
9758 2011-02-23 Jie Zhang <jie@codesourcery.com>
9760 PR rtl-optimization/47763
9761 * web.c (web_main): Ignore naked clobber when replacing register.
9763 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9765 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9768 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9771 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9773 2011-02-22 Mike Stump <mikestump@comcast.net>
9775 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9777 * configure: Regenerate.
9779 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9781 PR rtl-optimization/46002
9782 * ira-color.c (update_copy_costs): Change class intersection
9783 test to reg_class_contents[] test of 'hard_regno'.
9785 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9787 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9789 * config/hpux11.opt (mt): Likewise.
9790 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9791 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9792 * config/vax/elf.opt (mno-asm-pic): Likewise.
9793 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9795 2011-02-21 Mike Stump <mikestump@comcast.net>
9798 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9799 tree so we can get save the type.
9800 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9801 for CFString instead of trying to use past the end of the builtins.
9802 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9803 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9804 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9805 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9806 Rename to darwin_builtin_cfstring.
9807 (darwin_init_cfstring_builtins): Return the built type.
9809 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9812 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9813 (_mm256_insert_epi64): Use _mm_insert_epi64.
9815 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9817 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9818 * config/stormy16/stormy16-protos.h
9819 (xstormy16_mode_dependent_address_p): Remove.
9820 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9821 Make static. Change return type to bool. Change argument type to
9822 const_rtx. Remove dead code.
9823 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9825 2011-02-21 Richard Guenther <rguenther@suse.de>
9828 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9829 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9830 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9832 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9833 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9835 2011-02-20 Richard Guenther <rguenther@suse.de>
9838 * tree.c (free_lang_data_in_decl): Clean builtins from
9839 the TU decl BLOCK_VARS.
9841 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9845 * haifa-sched.c (fix_tick_ready): Skip tick computation
9848 2011-02-19 Richard Guenther <rguenther@suse.de>
9851 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9852 Remove lazy BLOCK_VARS streaming.
9853 (lto_input_ts_block_tree_pointers): Likewise.
9854 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9856 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9858 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9860 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9862 * config/i386/biarch32.h, config/i386/mach.h,
9863 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9865 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9868 * config/i386/i386.md (peephole2 for shift and plus): Use
9869 operands[1] original mode in the first insn.
9871 2011-02-18 Mike Stump <mikestump@comcast.net>
9873 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9875 2011-02-18 Jan Hubicka <jh@suse.cz>
9878 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9879 to zero when the function is not inlinable at all.
9881 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9883 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9884 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9885 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9886 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9887 * config/pa/t-pa64: Likewise.
9888 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9890 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9893 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9895 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9898 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9900 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9902 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9903 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9904 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9905 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9906 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9907 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9908 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9909 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9910 m32r_legitimate_address_p): New functions.
9911 * config/m32r/constraints.md (constraint "S"): Don't use
9912 STORE_PREINC_PREDEC_P.
9913 (constraint "U"): Don't use LOAD_POSTINC_P.
9915 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9917 PR rtl-optimization/46178
9918 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9919 compute ira_hard_regno_cover_class[].
9921 2011-02-18 Richard Guenther <rguenther@suse.de>
9924 * lto-streamer.h (lto_global_var_decls): Declare.
9925 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9926 statics for global var processing.
9928 2011-02-18 Richard Guenther <rguenther@suse.de>
9930 PR tree-optimization/47737
9931 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9932 edge dominance check.
9934 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9937 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9938 avoid invalid rtx sharing.
9940 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9942 * doc/cpp.texi (Obsolete Features): Add background on the
9943 origin of assertions.
9945 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9947 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9949 * config/darwin.c (output_objc_section_asm_op): Added support for
9951 (is_objc_metadata): New.
9952 (darwin_objc2_section): New.
9953 (darwin_objc1_section): New.
9954 (machopic_select_section): Added support for ABI v1 and v2.
9955 (darwin_emit_objc_zeroed): New.
9956 (darwin_output_aligned_bss): Detect objc metadata and treat it
9958 (darwin_asm_output_aligned_decl_common): Same.
9959 (darwin_asm_output_aligned_decl_local): Same.
9960 * config/darwin-sections.def: Updated for ABI v1 and v2.
9961 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9962 compiling Objective-C code for the NeXT runtime, default to using
9963 ABI version 0 for 32-bit, and version 2 for 64-bit.
9965 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9967 * common.opt (optimize_fast): New Variable.
9968 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9969 instead of local variable ofast.
9971 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9973 * doc/invoke.texi (fobjc-abi-version): Documented.
9974 (fobjc-nilcheck): Documented.
9975 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9978 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9981 * common.opt (export-dynamic): New Driver option.
9982 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9984 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9986 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9988 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
9989 Jan Hubicka <jh@suse.cz>
9993 * cfgexpand.c (account_used_vars_for_block): Remove.
9994 (estimated_stack_frame_size): Use referenced vars.
9995 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9996 that were referenced in the original function. Test src_fn
9997 rather than cfun. Drop redundant get_var_ann.
9998 (setup_one_parameter): Drop redundant get_var_ann.
9999 (declare_return_variable): Likewise.
10000 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10001 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10002 * ipa-inline.c (compute_inline_parameters): Do not compute
10003 disregard_inline_limits here.
10004 (compute_inlinable_for_current, pass_inlinable): New.
10005 (pass_inline_parameters): Require PROP_referenced_vars.
10006 * cgraphunit.c (cgraph_process_new_functions): Don't run
10007 compute_inline_parameters explicitly unless function is in SSA form.
10008 (cgraph_analyze_function): Set .disregard_inline_limits.
10009 * tree-sra.c (convert_callers): Compute inliner parameters
10010 only for functions already in SSA form.
10012 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10014 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10015 -mlittle-endian-data.
10017 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10019 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10020 -mno-fpu, not -fpu and -no-fpu.
10021 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10022 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10024 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10027 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10028 input reload with PLUS RTX.
10030 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10032 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10033 of InverseVar(MDMX).
10035 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10037 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10040 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10042 * config/mn10300/mn10300.opt (mno-crt0): New.
10044 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10046 * config/m68k/uclinux.opt (static-libc): New Driver option.
10048 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10050 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10052 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10054 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10055 %{muser-extend-enabled}.
10057 2011-02-16 Richard Guenther <rguenther@suse.de>
10059 PR tree-optimization/47738
10060 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10061 the TODO from tree_predictive_commoning.
10063 2011-02-15 Jeff Law <law@redhat.com>
10066 2011-01-25 Jeff Law <law@redhat.com>
10068 PR rtl-optimization/37273
10069 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10070 handle them like argument loads from stack slots. Do not double
10071 count memory for memory constants and argument loads from stack slots.
10073 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10075 PR middle-end/47725
10076 * combine.c (cant_combine_insn_p): Revert the last change.
10078 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10081 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10082 mode for vector constants. Remove code that checks for TImode.
10084 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10088 * cgraph.h (compute_inline_parameters): Return void.
10089 * ipa-inline.c (compute_inline_parameters): Adjust.
10091 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10095 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10097 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10098 * ipa-inline.c (compute_inline_parameters): Adjust.
10100 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10104 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10105 Adjust all users. Pass FN to...
10106 * tree-flow-inline.h (first_referenced_var): ... this. Add
10108 * ipa-struct-reorg.c: Adjust.
10109 * tree-dfa.c: Adjust.
10110 * tree-into-ssa.c: Adjust.
10111 * tree-sra.c: Adjust.
10112 * tree-ssa-alias.c: Adjust.
10113 * tree-ssa-live.c: Adjust.
10114 * tree-ssa.c: Adjust.
10115 * tree-ssanames.c: Adjust.
10116 * tree-tailcall.c: Adjust.
10118 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10122 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10123 Adjust all callers.
10124 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10125 * tree-flow-inline.h: Adjust.
10126 * gimple-pretty-print.c: Adjust.
10127 * tree-into-ssa.c: Adjust.
10128 * tree-ssa.c: Adjust.
10129 * cfgexpand.c: Adjust.
10131 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10133 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10134 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10135 (EXTRA_CONSTRAINT): Delete.
10136 * config/iq2000/constraints.md: New file.
10137 * config/iq2000/iq2000.md: Include it.
10138 (define_insn ""): Delete.
10139 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10140 unsupported constraint letters from patterns.
10141 (call_value, call_value_internal1): Likewise.
10142 (call_value_multiple_internal1): Likewise.
10144 2011-02-15 Nick Clifton <nickc@redhat.com>
10146 * config/mn10300/mn10300.c: Include tm-constrs.h.
10147 (struct liw_data): New data structure describing an LIW candidate
10149 (extract_bundle): Use struct liw_data. Allow small integer
10150 operands for some instructions.
10151 (check_liw_constraints): Use struct liw_data. Remove swapped
10152 parameter. Add comments describing the checks. Fix bug when
10153 assigning the source of liw1 to the source of liw2.
10154 (liw_candidate): Delete. Code moved into extract_bundle.
10155 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10157 * config/mn10300/predicates.md (liw_operand): New predicate.
10158 Allows registers and small integer constants.
10159 * config/mn10300/constraints.md (O): New constraint. Accetps
10160 integers in the range -8 to +7 inclusive.
10161 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10162 for moving a small integer into a register. Give this alternative
10164 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10165 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10166 using the J,K,L and M constraints,
10167 (liw): Remove SI mode on second operands to allow for HI and QI
10169 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10172 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10174 PR middle-end/47725
10175 * combine.c (cant_combine_insn_p): Check zero/sign extended
10178 2011-02-15 Richard Guenther <rguenther@suse.de>
10180 PR tree-optimization/47743
10181 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10182 for a non-type-compatible VN lookup bail out.
10184 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10186 * config/fr30/constraints.md: New file.
10187 * config/fr30/fr30.md: Include it.
10188 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10189 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10190 (EXTRA_CONSTRAINT): Delete.
10192 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10194 * config/frv/constraints.md: New file.
10195 * config/frv/predicates.md: Include it.
10196 * config/frv/frv.c (reg_class_from_letter): Delete.
10197 (frv_option_override): Don't initialize it.
10198 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10199 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10200 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10201 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10202 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10203 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10204 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10205 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10206 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10207 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10208 (REG_CLASS_FROM_CONSTRAINT): Delete.
10210 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10212 PR middle-end/47581
10213 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10214 if frame size is 0 in a leaf function.
10216 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10219 * config/alpha/host-osf.c: New file.
10220 * config/alpha/x-osf: New file.
10221 * config.host (alpha*-dec-osf*): Use it.
10223 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10225 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10226 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10227 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10228 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10230 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10232 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10234 * config/stormy16/constraints.md: New file.
10235 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10236 Use satisfies_constraint_Q and satisfies_constraint_R.
10237 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10239 (xstormy16_legitiamte_address_p): Declare.
10240 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10241 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10242 (EXTRA_CONSTRAINT): Delete.
10243 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10245 (xstormy16_extra_constraint_p): Delete.
10247 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10249 PR tree-optimization/46494
10250 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10251 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10252 (pass_rtl_loop_done): Add TODO_verify_flow.
10253 * fwprop.c (pass_rtl_fwprop): Likewise.
10254 * modulo-sched.c (pass_sms): Likewise.
10255 * tree-ssa-dom.c (pass_dominator): Likewise.
10256 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10257 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10258 (pass_tree_loop_done): Likewise.
10259 * tree-ssa-pre.c (execute_pre): Likewise.
10260 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10261 * tree-ssa-sink.c (pass_sink_code): Likewise.
10262 * tree-vrp.c (pass_vrp): Likewise.
10264 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10266 * config/v850/constraints.md: New file.
10267 * config/v850/v850.md: Include it.
10268 * config/v850/predicates.md (reg_or_0_operand): Use
10269 satisfies_constraint_G.
10270 (special_symbolref_operand): Use satisfies_constraint_K.
10271 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10272 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10273 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10274 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10275 (EXTRA_CONSTRAINT): Delete.
10276 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10277 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10278 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10280 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10283 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10286 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10288 * config/mcore/constraints.md: New file.
10289 * config/mcore/mcore.md: Include it.
10290 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10291 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10292 (REG_CLASS_FROM_LETTER): Delete.
10293 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10294 insn_const_int_ok_for_constraint.
10295 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10296 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10297 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10298 (EXTRA_CONSTRAINT): Delete.
10300 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10303 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10304 (IS_SIGHANDLER): Define.
10305 (sparc64_is_sighandler): New function, split off from
10306 sparc64_fallback_frame_state.
10307 (sparc_is_sighandler): New function, split off from
10308 sparc_fallback_frame_state.
10309 (sparc64_fallback_frame_state): Merge with ...
10310 (sparc_fallback_frame_state): ... this into ...
10311 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10312 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10313 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10314 stack instead of hardcoded offsets.
10316 2011-02-14 Andriy Gapon <avg@freebsd.org>
10319 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10321 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10323 * configure: Regenerate.
10325 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10328 * gcc.c (asm_options): Correct spec matching --target-help.
10330 2011-02-12 Martin Jambor <mjambor@suse.cz>
10332 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10333 to gimple call error.
10335 2011-02-12 Mike Stump <mikestump@comcast.net>
10337 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10338 comments in backslash regions.
10340 2011-02-12 Mike Stump <mikestump@comcast.net>
10341 Jakub Jelinek <jakub@redhat.com>
10342 Iain Sandoe <iains@gcc.gnu.org>
10345 * dwarf2out.c (output_cfa_loc): When required, apply the
10346 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10347 (output_loc_sequence): Likewise.
10348 (output_loc_operands_raw): Likewise.
10349 (output_loc_sequence_raw): Likewise.
10350 (output_cfa_loc): Likewise.
10351 (output_loc_list): Suppress register number adjustment when
10352 calling output_loc_sequence()
10353 (output_die): Likewise.
10355 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10357 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10359 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10360 xtensa_memory_move_cost): New functions.
10361 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10363 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10366 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10367 in the current directory.
10368 * configure: Rebuilt.
10370 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10372 * config/darwin.c (darwin_override_options): Add a hunk missed
10373 from the commit of r168571. Trim comment line lengths and
10374 correct indents of the preceding block.
10376 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10378 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10381 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10383 * common.opt (nostartfiles): New Driver option.
10385 2011-02-11 Xinliang David Li <davidxl@google.com>
10387 PR tree-optimization/47707
10388 * tree-chrec.c (convert_affine_scev): Keep type precision.
10390 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10392 PR tree-optimization/47420
10393 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10395 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10397 PR rtl-optimization/47614
10398 * rtl.h (check_for_inc_dec): Declare.
10399 * dse.c (check_for_inc_dec): Externalize...
10400 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10401 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10403 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10406 * gcc.c (main): Do not compile inputs if there were errors in
10408 * opts-common.c (read_cmdline_option): Check for wrong language
10409 after other error checks.
10411 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10413 * cgraph.c: Fix comment typos.
10414 * cgraph.h: Likewise.
10415 * cgraphunit.c: Likewise.
10416 * ipa-cp.c: Likewise.
10417 * ipa-inline.c: Likewise.
10418 * ipa-prop.c: Likewise.
10419 * ipa-pure-const.c: Likewise.
10420 * ipa-ref.c: Likewise.
10421 * ipa-reference.c: Likewise.
10423 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10426 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10428 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10431 * doc/sourcebuild.texi (Require Support): Document
10432 dg-require-ascii-locale.
10434 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10436 * doc/lto.texi (Write summary): Fix missing parentheses.
10438 2011-02-10 DJ Delorie <dj@redhat.com>
10440 * config/m32c/m32c.c (m32c_option_override): Disable
10441 -fcombine-stack-adjustments until flag value tracking and compare
10442 optimization can be rewritten.
10444 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10446 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10448 (PROCESSOR_DEFAULT64): Likewise.
10450 2011-02-10 Richard Henderson <rth@redhat.com>
10452 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10453 change from 2011-02-03.
10454 * config/rx/rx.c (flags_from_code): Likewise.
10455 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10456 is valid, n/pz otherwise.
10457 (rx_select_cc_mode): Return CCmode if Y is not zero.
10459 2011-02-10 Richard Guenther <rguenther@suse.de>
10461 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10463 2011-02-10 Richard Guenther <rguenther@suse.de>
10465 PR tree-optimization/47677
10466 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10468 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10471 * combine.c (make_compound_operation): Only change shifts into
10472 multiplication for SCALAR_INT_MODE_P.
10474 2011-02-10 Jie Zhang <jie@codesourcery.com>
10478 2011-02-05 Jie Zhang <jie@codesourcery.com>
10480 * web.c (entry_register): Don't clobber the number of the
10481 first uninitialized reference in used[].
10483 2011-02-09 Richard Guenther <rguenther@suse.de>
10485 PR tree-optimization/47664
10486 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10489 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10493 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10495 (PROCESSOR_DEFAULT64): Same.
10496 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10498 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10500 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10502 2011-02-09 Martin Jambor <mjambor@suse.cz>
10504 PR middle-end/45505
10505 * tree-sra.c (struct access): New flags grp_scalar_read and
10506 grp_scalar_write. Changed description of assignment read and write
10508 (dump_access): Dump new flags, reorder all of them.
10509 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10510 to detect multiple scalar reads.
10511 (analyze_access_subtree): Use the new scalar read write flags instead
10512 of the old flags. Adjusted comments.
10514 2011-02-08 DJ Delorie <dj@redhat.com>
10517 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10520 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10522 * config/m68k/uclinux.opt: New.
10523 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10525 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10527 * config/cris/elf.opt (sim): New Driver option.
10529 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10531 * config/xtensa/elf.opt: New.
10532 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10534 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10536 * config/vax/elf.opt: New.
10537 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10539 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10541 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10543 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10545 * config/gnu-user.opt: New.
10546 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10547 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10548 *-*-uclinux*): Use gnu-user.opt.
10550 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10552 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10553 * config/i386/gnu.h (CPP_SPEC): Likewise.
10555 2011-02-08 Ian Lance Taylor <iant@google.com>
10557 * common.opt (fcx-limited-range): Add SetByCombined flag.
10558 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10559 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10560 (fassociative-math, freciprocal-math): Likewise.
10561 (funsafe-math-optimizations): Likewise.
10562 * opth-gen.awk: Handle SetByCombined.
10563 * optc-gen.awk: Likewise.
10564 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10565 (set_unsafe_math_optimizations_flags): Likewise.
10566 * doc/options.texi (Option properties): Document SetByCombined.
10568 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10570 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10571 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10572 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10573 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10574 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10576 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10578 PR tree-optimization/46834
10579 PR tree-optimization/46994
10580 PR tree-optimization/46995
10581 * graphite-sese-to-poly.c (used_outside_reduction): New.
10582 (detect_commutative_reduction): Call used_outside_reduction.
10583 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10584 translate_scalar_reduction_to_array only when at least one
10585 loop-phi/close-phi tuple has been detected.
10587 2011-02-08 Richard Guenther <rguenther@suse.de>
10589 PR middle-end/47639
10590 * tree-vect-generic.c (expand_vector_operations_1): Update
10592 (expand_vector_operations): ... not here. Cleanup EH info
10593 and the CFG if required.
10595 2011-02-08 Richard Guenther <rguenther@suse.de>
10597 PR tree-optimization/47641
10598 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10599 require type compatibility.
10601 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10603 * gimple-low.c (lower_function_body): Don't remove the location of
10604 the return statement here.
10605 (lower_gimple_return): Do it here instead but only if the return
10606 statement is actually used twice.
10608 2011-02-08 Richard Guenther <rguenther@suse.de>
10610 PR tree-optimization/47632
10611 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10612 unused up_to_stmt parameter, return whether cfg-cleanup is
10613 necessary, remove EH info properly.
10614 (forward_propagate_into_gimple_cond): Adjust caller.
10615 (forward_propagate_into_cond): Likewise.
10616 (forward_propagate_comparison): Likewise.
10617 (tree_ssa_forward_propagate_single_use_vars): Make
10618 forward_propagate_comparison case similar to the two others.
10620 2011-02-08 Nick Clifton <nickc@redhat.com>
10622 * config/mn10300/mn10300.opt (mliw): New command line option.
10623 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10624 (liw_bundling): New automaton.
10625 (liw): New attribute.
10626 (liw_op): New attribute.
10627 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10628 (movsi_internal): Add LIW attributes.
10629 (andsi3): Likewise.
10630 (iorsi3): Likewise.
10631 (xorsi3): Likewise.
10632 (addsi3): Separate register and immediate alternatives.
10633 Add LIW attributes.
10634 (subsi3): Likewise.
10636 (aslsi3): Likewise.
10637 (lshrsi3): Likewise.
10638 (ashrsi3): Likewise.
10639 (liw): New pattern.
10640 * config/mn10300/mn10300.c (liw_op_names): New
10641 (mn10300_print_operand): Handle 'W' operand descriptor.
10642 (extract_bundle): New function.
10643 (check_liw_constraints): New function.
10644 (liw_candidate): New function.
10645 (mn10300_bundle_liw): New function.
10646 (mn10300_reorg): New function.
10647 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10648 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10649 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10650 __LIW__ or __NO_LIW__.
10651 * doc/invoke.texi: Describe the -mliw command line option.
10653 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10655 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10656 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10657 pthread_mutex_unlock): Remove.
10658 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10659 * config/pa/t-pa64: Likewise.
10660 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10661 shared libc if not linking against libpthread.
10662 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10664 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10667 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10668 on 10.6 and later to ensure that we always use the unwinder from
10669 the system. Only add -no_compact_unwind when tarteting darwin
10672 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10675 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10676 (vec_interleave_lowv2sf): Ditto.
10677 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10678 (vec_extract_oddv2sf): Ditto.
10680 2011-02-07 Mike Stump <mikestump@comcast.net>
10683 Add __ieee_divdc3 entry point.
10684 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10686 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10687 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10688 * config/darwin.c (darwin_rename_builtins): Add.
10689 * config/darwin-protos.h (darwin_rename_builtins): Add.
10691 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10694 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10697 2011-02-07 Mike Stump <mikestump@comcast.net>
10699 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10701 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10704 * config/avr/libgcc.S (exit): Move .endfunc
10706 2011-02-07 Richard Guenther <rguenther@suse.de>
10708 PR tree-optimization/47615
10709 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10710 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10711 (run_scc_vn): Initialize it.
10712 (visit_reference_op_load): Use it.
10713 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10715 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10717 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10718 DImode trapping arithmetic libfuncs.
10720 2011-02-07 Richard Guenther <rguenther@suse.de>
10722 PR tree-optimization/47621
10723 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10725 (execute_update_addresses_taken): ... here. Make it more
10726 conservative in what we accept.
10728 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10730 * config/sparc/freebsd.h (ASM_SPEC): Define.
10731 * config/sparc/vxworks.h (ASM_SPEC): Define.
10733 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10735 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10737 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10739 * doc/invoke.texi: Remove reference to compiler internals from
10740 user documentation.
10742 * reg-notes.def: Remove REG_VALUE_PROFILE.
10743 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10745 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10747 PR middle-end/47610
10748 * varasm.c (default_section_type_flags): If decl is NULL,
10749 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10751 2011-02-05 Jie Zhang <jie@codesourcery.com>
10754 * web.c (entry_register): Don't clobber the number of the
10755 first uninitialized reference in used[].
10757 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10759 PR tree-optimization/46194
10760 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10761 (build_classic_dist_vector_1): Do not represent classic distance
10762 vectors when the access functions are variating in different loops.
10764 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10766 * config/mips/iris6.opt: New.
10767 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10769 2011-02-04 Richard Henderson <rth@redhat.com>
10770 Steve Ellcey <sje@cup.hp.com>
10773 * config/ia64/predicates.md (mux1_brcst_element): New.
10774 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10775 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10776 (ia64_unpack_sign): New.
10777 (ia64_expand_unpack): Rewrite using new routines.
10778 (ia64_expand_widen_sum): Ditto.
10779 (ia64_expand_dot_prod_v8qi): Ditto.
10780 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10781 routines, add endian check.
10782 (pmpy2_even): Rename from pmpy2_r, add endian check.
10783 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10784 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10785 (vec_widen_smult_hi_v4hi): Ditto.
10786 (vec_widen_umult_lo_v4hi): Ditto.
10787 (vec_widen_umult_hi_v4hi): Ditto.
10788 (mulv2si3): Change endian checks.
10789 (sdot_prodv4hi): Rewrite with new calls.
10790 (udot_prodv4hi): New.
10791 (vec_pack_ssat_v4hi): Add endian check.
10792 (vec_pack_usat_v4hi): Ditto.
10793 (vec_pack_ssat_v2si): Ditto.
10794 (max1_even): Rename from max1_r, add endian check.
10795 (max1_odd): Rename from max1_l, add endian check.
10796 (*mux1_rev): Format change.
10797 (*mux1_mix): Ditto.
10798 (*mux1_shuf): Ditto.
10799 (*mux1_alt): Ditto.
10800 (*mux1_brcst_v8qi): Use new predicate.
10801 (vec_extract_evenv8qi): Remove endian check.
10802 (vec_extract_oddv8qi): Ditto.
10803 (vec_interleave_lowv4hi): Format change.
10804 (vec_interleave_highv4hi): Ditto.
10805 (mix2_even): Rename from mix2_r, add endian check.
10806 (mix2_odd): Rename from mux2_l, add endian check.
10807 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10808 (vec_extract_evenodd_helper): Format change.
10809 (vec_extract_evenv4hi): Remove endian check.
10810 (vec_extract_oddv4hi): Remove endian check.
10811 (vec_interleave_lowv2si): Format change.
10812 (vec_interleave_highv2si): Format change.
10813 (vec_initv2si): Remove endian check.
10814 (vecinit_v2si): Add endian check.
10815 (reduc_splus_v2sf): Add endian check.
10816 (reduc_smax_v2sf): Ditto.
10817 (reduc_smin_v2sf): Ditto.
10818 (vec_initv2sf): Remove endian check.
10819 (fpack): Add endian check.
10820 (fswap): Add endian check.
10821 (vec_interleave_highv2sf): Add endian check.
10822 (vec_interleave_lowv2sf): Add endian check.
10823 (fmix_lr): Add endian check.
10824 (vec_setv2sf): Format change.
10825 (*vec_extractv2sf_0_be): Use shift to extract operand.
10826 (*vec_extractv2sf_1_be): New.
10827 (vec_pack_trunc_v4hi): Add endian check.
10828 (vec_pack_trunc_v2si): Format change.
10830 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10832 PR inline-asm/23200
10833 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10834 do bb, locus and block comparison and disallow loads if it is not set.
10835 (stmt_is_replaceable_p): New function.
10836 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10838 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10839 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10841 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10843 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10845 * config/rs6000/xilinx.opt: New.
10846 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10848 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10850 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10852 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10854 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10855 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10856 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10857 secondary_reload_info, xtensa_secondary_reload): Remove.
10858 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10859 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10860 (xtensa_preferred_reload_class): Make static. Change return and
10861 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10862 Use CONST_DOUBLE_P predicate.
10863 (xtensa_preferred_output_reload_class): New function.
10864 (xtensa_secondary_reload): Make static.
10866 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10868 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10869 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10870 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10872 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10874 PR middle-end/31490
10875 * output.h (SECTION_RELRO): Define.
10876 (SECTION_MACH_DEP): Adjust.
10877 (get_variable_section): New prototype.
10878 * varpool.c (varpool_finalize_named_section_flags): New function.
10879 (varpool_assemble_pending_decls): Call it.
10880 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10881 * cgraphunit.c (cgraph_output_in_order): Call
10882 varpool_finalize_named_section_flags.
10883 * varasm.c (get_section): Allow section flags conflicts between
10884 relro and read-only sections if the section hasn't been declared yet.
10885 Set SECTION_OVERRIDE after diagnosing section type conflict.
10886 (get_variable_section): No longer static.
10887 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10888 readonly sections that need relocations.
10889 (decl_readonly_section_1): New function.
10890 (decl_readonly_section): Use it.
10893 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10894 Steve Ellcey <sje@cup.hp.com>
10896 PR middle-end/31490
10897 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10898 if section attribute used.
10900 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10902 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10903 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10904 (darwin_init_sections): Remove assertion.
10906 2011-02-03 Nick Clifton <nickc@redhat.com>
10908 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10910 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10911 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10912 instead of "n" and "pz".
10913 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10916 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10919 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10920 fma, expand FMA_EXPR as fma{,f,l} call.
10923 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10924 copy them into a unsigned char variable and pass address of it to
10925 lto_output_data_stream.
10928 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10929 around backend_init_target and lang_dependent_init_target calls.
10930 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10931 (verify_cgraph_node): Don't call set_cfun here. Use
10932 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10933 Set error_found for incorrectly represented calls to thunks.
10935 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10938 PR rtl-optimization/43494
10939 * rtl.h (for_each_inc_dec_fn): New type.
10940 (for_each_inc_dec): Declare.
10941 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10942 (for_each_inc_dec_find_inc_dec): New fn.
10943 (for_each_inc_dec_find_mem): New fn.
10944 (for_each_inc_dec): New fn.
10945 * dse.c (struct insn_size): Remove.
10946 (replace_inc_dec, replace_inc_dec_mem): Remove.
10947 (emit_inc_dec_insn_before): New fn.
10948 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10949 (canon_address): Pass mem modes to cselib_lookup.
10950 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10951 (cselib_lookup_from_insn): Likewise.
10952 (cselib_subst_to_values): Likewise.
10953 * cselib.c (find_slot_memmode): New var.
10954 (cselib_find_slot): New fn. Use it instead of
10955 htab_find_slot_with_hash everywhere.
10956 (entry_and_rtx_equal_p): Use find_slot_memmode.
10957 (autoinc_split): New fn.
10958 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10959 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10960 Deal with autoinc. Special-case recursion into MEMs.
10961 (cselib_hash_rtx): Likewise.
10962 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10963 address and MEM modes.
10964 (cselib_subst_to_values): Add memmode, pass it on.
10966 (cselib_lookup): Add memmode argument, pass it on.
10967 (cselib_lookup_from_insn): Add memmode.
10968 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10969 (struct cselib_record_autoinc_data): New.
10970 (cselib_record_autoinc_cb): New fn.
10971 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10972 mode to cselib_lookup. Reset autoinced REGs here instead of...
10973 (cselib_process_insn): ... here.
10974 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10976 (add_uses): Likewise, also to cselib_subst_to_values.
10977 (add_stores): Likewise.
10978 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10979 cselib_subst_to_values.
10980 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10981 * gcse.c (do_local_cprop): Adjusted.
10982 * postreload.c (reload_cse_simplify_set): Adjusted.
10983 (reload_cse_simplify_operands): Adjusted.
10984 * sel-sched-dump (debug_mem_addr_value): Pass mode.
10986 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10988 PR tree-optimization/45122
10989 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10990 unsafe assumptions when there's more than one loop exit.
10992 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10995 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10996 Document using vector double with the load/store builtins, and
10997 that the load/store builtins always use Altivec instructions.
10999 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11000 to use altivec memory instructions, even on VSX.
11001 (vector_altivec_store_<mode>): Ditto.
11003 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11006 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11007 V2DF, V2DI support to load/store overloaded builtins.
11009 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11010 altivec load/store builtins for V2DF/V2DI types.
11012 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11013 set avoid indexed addresses on power6 if -maltivec.
11014 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11015 vector_altivec_load/vector_altivec_store builtins.
11016 (altivec_expand_st_builtin): Ditto.
11017 (altivec_expand_builtin): Add VSX memory builtins.
11018 (rs6000_init_builtins): Add V2DI types to internal types.
11019 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11020 load/store builtins.
11021 (rs6000_address_for_altivec): Insure memory address is appropriate
11024 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11025 vec_vsx_ld and vec_vsx_st.
11026 (vsx_store_<mode>): Ditto.
11028 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11029 variables to hold long long types for VSX vector memory builtins.
11030 (RS6000_BTI_unsigned_long_long): Ditto.
11031 (long_long_integer_type_internal_node): Ditti.
11032 (long_long_unsigned_type_internal_node): Ditti.
11034 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11035 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11036 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11038 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11040 (vec_vsx_st): Ditto.
11042 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11044 * config/pa/pa-hpux10.opt: New.
11045 * config/hpux11.opt (pthread): New Driver option.
11046 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11047 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11049 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11051 * config/ia64/vms.opt: New.
11052 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11054 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11057 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11058 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11059 generator functions.
11060 (vsx_floatuns<VSi><mode>2): Ditto.
11061 (vsx_fix_trunc<mode><VSi>2): Ditto.
11062 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11064 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11066 * config/i386/djgpp.opt (posix): New Driver option.
11068 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11070 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11071 Move to the unsupported targets list.
11073 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11075 PR rtl-optimization/47525
11076 * df-scan.c: Update copyright years.
11077 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11078 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11080 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11082 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11083 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11084 (ASM_OUTPUT_ASCII): Remove.
11085 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11087 2011-02-02 Jeff Law <law@redhat.com>
11089 PR middle-end/47543
11090 * reload.c (find_reloads_address): Handle reg+d address where both
11091 components are invalid by reloading the entire address.
11093 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11094 Richard Guenther <rguenther@suse.de>
11096 PR tree-optimization/40979
11098 * passes.c (init_optimization_passes): After LIM call copy_prop
11099 and DCE to clean up.
11100 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11102 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11104 PR tree-optimization/47576
11105 PR tree-optimization/47555
11106 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11107 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11108 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11109 * tree-scalar-evolution.c (follow_ssa_edge): Use
11110 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11112 2011-02-02 Richard Guenther <rguenther@suse.de>
11114 PR tree-optimization/47566
11115 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11117 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11121 * tree-inline.c (declare_return_variable): Remove unused caller
11126 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11127 * cfgexpand.c (account_used_vars_for_block): Use them.
11128 * tree-nrv.c (tree_nrv): Likewise.
11129 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11130 (dump_scope_block): Likewise.
11131 (remove_unused_locals): Likewise.
11135 * tree-inline.c (declare_return_variable): Add result decl to
11136 local decls only once.
11137 * gimple-low.c (record_vars_into): Mark newly-created variables
11140 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11146 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11148 (no_real_insns_p, schedule_block, set_priorities): Drop special
11149 treatment of boundary debug insns.
11150 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11151 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11152 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11153 (BOUNDARY_DEBUG_INSN_P): Likewise.
11154 (SCHEDULE_DEBUG_INSN_P): Likewise.
11155 * sched-rgn.c (init_ready_list): Drop special treatment of
11156 boundary debug insns.
11157 * final.c (rest_of_clean_state): Clear notes' BB.
11159 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11161 * config/openbsd.opt (assert=): New Driver option.
11163 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11165 * config/i386/nto.opt: New.
11166 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11168 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11170 * config/i386/netware.opt: New.
11171 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11173 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11175 * config/interix.opt (posix): New Driver option.
11177 2011-02-01 DJ Delorie <dj@redhat.com>
11179 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11181 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11184 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11186 PR tree-optimization/47561
11187 * toplev.c (process_options): Print the Graphite flags. Add
11188 flag_loop_flatten to the list of options requiring Graphite.
11190 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11192 * config/i386/cygming.opt (posix): New Driver option.
11194 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11196 * config/arm/vxworks.opt: New.
11197 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11199 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11201 * config/alpha/elf.opt: New.
11202 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11203 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11205 2011-02-01 Richard Guenther <rguenther@suse.de>
11207 PR tree-optimization/47559
11208 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11209 store-motion on references that can throw.
11211 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11213 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11214 * tree-pass.h (TDF_CSELIB): New macro.
11215 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11216 cselib_lookup): Check for it rather than for TDF_DETAILS.
11218 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11221 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11222 is HOST_BIT_BUCKET.
11224 * opts.c (finish_options): Don't add x_aux_base_name if it is
11227 2011-02-01 Richard Guenther <rguenther@suse.de>
11229 PR tree-optimization/47555
11231 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11233 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11235 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11238 * config/lm32/t-lm32: Add multilib for all CPU options.
11240 2011-02-01 Richard Guenther <rguenther@suse.de>
11242 PR tree-optimization/47541
11243 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11244 sure to have a field at offset zero.
11246 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11248 * config/arc/arc.opt (EB, EL): New Driver options.
11250 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11252 * config/alpha/osf5.opt: New.
11253 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11255 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11257 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11259 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11261 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11262 -floop-interchange.
11263 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11264 is an alias of -floop-interchange and that it requires the
11265 Graphite infrastructure.
11266 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11267 flag_loop_interchange based on the value of flag_tree_loop_linear.
11269 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11270 Richard Guenther <rguenther@suse.de>
11272 PR tree-optimization/47538
11273 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11274 type instead of r1type, except for comparisons. For right
11275 shifts and comparisons punt if there are mismatches in
11276 sizetype vs. non-sizetype types.
11278 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11280 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11283 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11285 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11287 * configure: Regenerate.
11289 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11291 * configure.ac (gcc_cv_ld_static_option): Define.
11292 (gcc_cv_ld_dynamic_option): Define.
11293 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11295 (HAVE_LD_STATIC_DYNAMIC): Update message.
11296 (LD_STATIC_OPTION): Define.
11297 (LD_DYNAMIC_OPTION): Define.
11298 * configure: Regenerate.
11299 * config.in: Regenerate.
11300 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11301 HAVE_LD_STATIC_DYNAMIC]: Use them.
11303 2011-01-31 Nick Clifton <nickc@redhat.com>
11305 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11306 registers inside interrupt handlers if the handler is not a leaf
11309 2011-01-31 Nick Clifton <nickc@redhat.com>
11311 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11312 reg_renumber returning an INVALID_REGNUM.
11314 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11317 * doc/install.texi: Document host options discarded when cross
11318 configuring target libraries.
11320 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11323 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11326 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11328 (no_real_insns_p, schedule_block, set_priorities): Drop special
11329 treatment of boundary debug insns.
11330 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11331 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11332 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11333 (BOUNDARY_DEBUG_INSN_P): Likewise.
11334 (SCHEDULE_DEBUG_INSN_P): Likewise.
11335 * sched-rgn.c (init_ready_list): Drop special treatment of
11336 boundary debug insns.
11337 * final.c (rest_of_clean-state): Clear notes' BB.
11339 2011-01-31 Alan Modra <amodra@gmail.com>
11341 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11342 toc relative expressions as we do in print_operand_address.
11344 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11346 * doc/extend.texi: Follow spelling conventions.
11347 * doc/invoke.texi: Fix a typo.
11349 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11351 * config/hpux11.opt: New.
11352 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11353 ia64*-*-hpux*): Use hpux11.opt.
11355 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11357 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11360 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11362 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11365 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11367 * doc/install.texi (Binaries): Remove outdated reference for
11368 Motorola 68HC11/68HC12 downloads.
11370 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11372 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11375 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11378 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11381 2011-01-28 Ahmad Sharif <asharif@google.com>
11383 * value-prof.c (check_counter): Corrected error message.
11385 2011-01-29 Jie Zhang <jie@codesourcery.com>
11387 * config/arm/arm.c (arm_legitimize_reload_address): New.
11388 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11389 arm_legitimize_reload_address.
11390 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11392 2011-01-28 Ian Lance Taylor <iant@google.com>
11394 * godump.c (go_define): Ignore macros whose definitions include
11395 two adjacent operands.
11397 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11400 * varasm.c (force_const_mem): Store copy of x in desc->constant
11401 instead of x itself.
11402 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11403 itself into REG_EQUAL note.
11405 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11407 * config/freebsd.opt (posix, rdynamic): New Driver options.
11409 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11411 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11412 -Bstatic/-Bdynamic.
11413 * configure: Regenerate.
11415 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11417 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11418 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11420 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11422 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11423 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11424 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11425 (s390_preferred_reload_class): Make static. Change return and
11426 'rclass' argument type to reg_class_t.
11428 2011-01-27 Jan Hubicka <jh@suse.cz>
11430 PR middle-end/46949
11431 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11432 (process_function_and_variable_attributes): Check defined weakrefs.
11434 2011-01-27 Martin Jambor <mjambor@suse.cz>
11436 PR tree-optimization/47228
11437 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11438 build_ref_for_offset.
11440 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11442 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11444 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11446 PR rtl-optimization/46856
11447 * postreload.c (reload_combine_recognize_const_pattern): Do not
11448 separate cc0 setter and user on cc0 targets.
11450 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11453 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11454 passed a VOID_TYPE expression, immediately emit an error and
11455 return error_mark_node.
11457 2011-01-26 Jeff Law <law@redhat.com>
11459 PR rtl-optimization/47464
11460 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11461 rather than may_trap_p as needed.
11463 2011-01-26 DJ Delorie <dj@redhat.com>
11465 PR rtl-optimization/46878
11466 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11467 setter/user dependency as well.
11469 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11471 PR rtl-optimization/44469
11472 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11473 after removing trivially dead basic blocks.
11475 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11477 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11478 * config/frv/frv.h (LINK_SPEC): Likewise.
11479 * config/i386/netware.h (LINK_SPEC): Likewise.
11480 * config/m68k/linux.h (ASM_SPEC): Likewise.
11481 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11482 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11483 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11484 * config/sparc/linux.h (ASM_SPEC): Likewise.
11485 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11486 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11488 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11490 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11491 * config/frv/frv.h (ASM_SPEC): Likewise.
11492 * config/m68k/linux.h (ASM_SPEC): Likewise.
11493 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11494 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11495 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11496 * config/sparc/linux.h (ASM_SPEC): Likewise.
11497 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11498 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11500 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11502 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11503 * config/frv/frv.h (LINK_SPEC): Likewise.
11504 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11506 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11508 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11509 * config/frv/frv.h (ASM_SPEC): Likewise.
11510 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11511 * config/m68k/linux.h (ASM_SPEC): Likewise.
11512 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11513 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11514 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11515 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11516 * config/sparc/linux.h (ASM_SPEC): Likewise.
11517 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11518 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11519 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11521 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11524 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11526 (vec_extract_evenodd_help): Ditto.
11527 (vec_extract_evenv4hi): Ditto.
11528 (vec_extract_oddv4hi): Ditto.
11529 (vec_interleave_lowv2si): Ditto.
11530 (vec_interleave_highv2si): Ditto.
11531 (vec_extract_evenv2si): Ditto.
11532 (vec_extract_oddv2si: Ditto.
11533 (vec_pack_trunc_v2si): Ditto.
11535 2011-01-22 Jan Hubicka <jh@suse.cz>
11538 * cgraph.h (cgraph_local_info): New field can_change_signature.
11539 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11540 signature can change.
11541 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11543 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11544 (cgraph_function_versioning): We can not change signature of functions
11545 that don't allow that.
11546 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11547 (lto_input_node): Likewise.
11548 * ipa-inline.c (compute_inline_parameters): Compute
11549 local.can_change_signature.
11550 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11551 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11552 functions that can not change signature.
11553 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11554 init_cumulative_args): Do not use local calling conventions
11555 for functions that can not change signature.
11557 2011-01-22 Jan Hubicka <jh@suse.cz>
11559 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11561 2011-01-26 Richard Guenther <rguenther@suse.de>
11563 PR tree-optimization/47190
11564 * cgraphunit.c (process_common_attributes): New function.
11565 (process_function_and_variable_attributes): Use it.
11567 2011-01-26 Richard Guenther <rguenther@suse.de>
11570 * cgraphbuild.c (record_eh_tables): Record reference to personality
11573 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11576 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11577 non-debug insns from moving up.
11579 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11582 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11583 t-dlldir{,-x} fragment for build and add it to tmake_file.
11584 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11585 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11586 * config/i386/t-dlldir: New file.
11587 (SHLIB_DLLDIR): Define.
11588 * config/i386/t-dlldir-x: New file.
11589 (SHLIB_DLLDIR): Define.
11590 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11591 (SHLIB_INSTALL): Use it.
11593 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11596 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11597 lower bound of the allowed Thumb-2 coprocessor load/store
11598 index range to -256. Add explaining comment.
11600 2011-01-25 Ian Lance Taylor <iant@google.com>
11602 * godump.c (go_define): Improve lexing of macro expansion to only
11603 accept expressions which match Go spec.
11605 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11608 * tree.c (handle_dll_attribute): Handle it.
11609 * doc/extend.texi (@item dllexport): Mention it.
11610 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11612 2011-01-25 Ian Lance Taylor <iant@google.com>
11614 PR tree-optimization/26854
11615 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11616 (decl_jump_unsafe): Move higher in file, with no other change.
11617 (bind): Set has_jump_unsafe_decl if appropriate.
11618 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11619 (check_earlier_gotos): Likewise.
11620 (c_check_switch_jump_warnings): Likewise.
11622 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11624 * doc/invoke.texi (Warning Options): Add missing hyphen.
11625 (-fprofile-dir): Minor grammatical fixes.
11626 (-fbranch-probabilities): Likewise.
11628 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11632 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11634 (no_real_insns_p, schedule_block, set_priorities): Drop special
11635 treatment of boundary debug insns.
11636 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11637 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11638 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11639 (BOUNDARY_DEBUG_INSN_P): Likewise.
11640 (SCHEDULE_DEBUG_INSN_P): Likewise.
11641 * sched-rgn.c (init_ready_list): Drop special treatment of
11642 boundary debug insns.
11643 * final.c (rest_of_clean-state): Clear notes' BB.
11645 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11647 * Makefile.in (LAMBDA_H): Removed.
11648 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11649 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11650 lambda-trans.o, and tree-loop-linear.o.
11651 (lto-symtab.o): Remove dependence on LAMBDA_H.
11652 (tree-loop-linear.o): Remove rule.
11653 (lambda-mat.o): Same.
11654 (lambda-trans.o): Same.
11655 (lambda-code.o): Same.
11656 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11657 (tree-vect-slp.o): Same.
11658 * hwint.h (gcd): Moved here.
11659 (least_common_multiple): Same.
11660 * lambda-code.c: Removed.
11661 * lambda-mat.c: Removed.
11662 * lambda-trans.c: Removed.
11663 * lambda.h: Removed.
11664 * tree-loop-linear.c: Removed.
11665 * lto-symtab.c: Do not include lambda.h.
11666 * omega.c (gcd): Removed.
11667 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11668 * tree-data-ref.c (print_lambda_vector): Moved here.
11669 (lambda_vector_copy): Same.
11670 (lambda_matrix_copy): Same.
11671 (lambda_matrix_id): Same.
11672 (lambda_vector_first_nz): Same.
11673 (lambda_matrix_row_add): Same.
11674 (lambda_matrix_row_exchange): Same.
11675 (lambda_vector_mult_const): Same.
11676 (lambda_vector_negate): Same.
11677 (lambda_matrix_row_negate): Same.
11678 (lambda_vector_equal): Same.
11679 (lambda_matrix_right_hermite): Same.
11680 * tree-data-ref.h: Do not include lambda.h.
11681 (lambda_vector): Moved here.
11682 (lambda_matrix): Same.
11683 (dependence_level): Same.
11684 (lambda_transform_legal_p): Removed declaration.
11685 (lambda_collect_parameters): Same.
11686 (lambda_compute_access_matrices): Same.
11687 (lambda_vector_gcd): Same.
11688 (lambda_vector_new): Same.
11689 (lambda_vector_clear): Same.
11690 (lambda_vector_lexico_pos): Same.
11691 (lambda_vector_zerop): Same.
11692 (lambda_matrix_new): Same.
11693 * tree-flow.h (least_common_multiple): Removed declaration.
11694 * tree-parloops.c (lambda_trans_matrix): Moved here.
11695 (LTM_MATRIX): Same.
11696 (LTM_ROWSIZE): Same.
11697 (LTM_COLSIZE): Same.
11698 (LTM_DENOMINATOR): Same.
11699 (lambda_trans_matrix_new): Same.
11700 (lambda_matrix_vector_mult): Same.
11701 (lambda_transform_legal_p): Same.
11702 * tree-pass.h (pass_linear_transform): Removed declaration.
11703 * tree-ssa-loop.c (tree_linear_transform): Removed.
11704 (gate_tree_linear_transform): Removed.
11705 (pass_linear_transform): Removed.
11706 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11707 flag_loop_interchange.
11709 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11711 PR tree-optimization/47265
11712 PR tree-optimization/47443
11713 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11714 if name still has some uses.
11716 2011-01-25 Martin Jambor <mjambor@suse.cz>
11718 PR tree-optimization/47382
11719 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11720 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11722 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11724 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11725 sjlj_except_unwind_info.
11727 2011-01-25 Richard Guenther <rguenther@suse.de>
11729 PR tree-optimization/47426
11730 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11731 visible functions results escape.
11733 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11736 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11737 (arm_get_frame_offsets): Use it.
11739 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11740 Jakub Jelinek <jakub@redhat.com>
11742 PR tree-optimization/47271
11743 * tree-if-conv.c (bb_postdominates_preds): New.
11744 (if_convertible_bb_p): Call bb_postdominates_preds.
11745 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11746 (predicate_scalar_phi): Call bb_postdominates_preds.
11748 2011-01-25 Nick Clifton <nickc@redhat.com>
11750 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11751 * config/rx/rx.c (rx_function_value): Likewise.
11752 (rx_promote_function_mode): Likewise.
11753 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11754 in order to make it legitimate.
11755 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11756 make sure that the first operand is the same as the result register.
11757 (addsi3_unspec): Delete.
11758 (subdi3): Do not accept immediate operands.
11759 (subdi3_internal): Likewise.
11761 2011-01-25 Jeff Law <law@redhat.com>
11763 PR rtl-optimization/37273
11764 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11765 handle them like argument loads from stack slots. Do not double
11766 count memory for memory constants and argument loads from stack slots.
11768 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11770 PR tree-optimization/47427
11771 PR tree-optimization/47428
11772 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11773 coalesce if the new root var would be TREE_READONLY.
11775 2011-01-25 Richard Guenther <rguenther@suse.de>
11777 PR middle-end/47414
11778 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11779 correct type for TBAA.
11781 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11783 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11784 (close_phi_written_to_memory): Call for_each_index with
11785 dr_indices_valid_in_loop.
11787 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11789 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11790 when it is initialized.
11792 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11794 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11795 call to graphite_find_data_references_in_stmt.
11796 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11797 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11798 call to graphite_find_data_references_in_stmt.
11799 (analyze_drs_in_stmts): Same.
11800 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11801 in which the scalar analysis of indices is performed.
11802 (create_data_ref): Same. Update call to dr_analyze_indices.
11803 (find_data_references_in_stmt): Update call to create_data_ref.
11804 (graphite_find_data_references_in_stmt): Same.
11805 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11807 (create_data_ref): Same.
11808 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11809 call to create_data_ref.
11811 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11813 * graphite-sese-to-poly.c (build_poly_scop): Move
11814 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11816 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11818 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11819 VAR_DECL, PARM_DECL, and RESULT_DECL.
11821 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11823 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11824 in a reduction PBB.
11825 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11826 that have already been marked as PBB_IS_REDUCTION.
11828 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11830 * graphite-scop-detection.c (same_close_phi_node): New.
11831 (remove_duplicate_close_phi): New.
11832 (make_close_phi_nodes_unique): New.
11833 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11835 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11837 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11838 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11839 of both data references to be the same.
11841 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11843 * graphite-dependences.c (build_lexicographical_constraint): Remove
11844 the gdim parameter.
11845 (build_lexicographical_constraint): Adjust call to
11846 ppl_powerset_is_empty.
11847 (dependence_polyhedron): Same.
11848 (graphite_legal_transform_dr): Same.
11849 (graphite_carried_dependence_level_k): Same.
11850 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11852 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11854 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11856 * graphite-sese-to-poly.c
11857 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11858 (close_phi_written_to_memory): New.
11859 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11862 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11864 * doc/install.texi: Update the expected version number of PPL to 0.11.
11865 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11866 #if PPL_VERSION_MINOR < 11.
11868 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11870 * graphite-dependences.c: Include graphite-cloog-util.h.
11871 (new_poly_ddr): Inlined into dependence_polyhedron.
11872 (free_poly_ddr): Moved close by new_poly_ddr.
11873 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11874 Early return NULL when ppl_powerset_is_empty returns true.
11875 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11876 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11877 (graphite_legal_transform_dr): Call new_poly_ddr.
11878 (graphite_carried_dependence_level_k): Same.
11879 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11880 (dot_transformed_deps_stmt_1): Removed.
11881 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11882 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11883 (dot_deps_1): Call dot_deps_2.
11884 * Makefile.in (graphite-dependences.o): Add missing dependence on
11885 graphite-cloog-util.h.
11887 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11889 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11890 (build_lexicographical_constraint): Same.
11891 (dependence_polyhedron_1): Same.
11892 (graphite_legal_transform_dr): Same.
11893 (graphite_carried_dependence_level_k): Same.
11894 * graphite-ppl.c (ppl_powerset_is_empty): New.
11895 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11896 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11898 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11900 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11901 the "a followed by b" relation and document it.
11903 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11905 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11906 iteration when the bag of constraints is empty.
11908 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11910 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11912 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11914 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11915 nest and two loop depths as parameters.
11916 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11917 lst_perfect_nestify.
11919 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11921 * graphite-dependences.c (print_pddr): Call
11922 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11924 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11926 * graphite-ppl.c (debug_gmp_value): New.
11927 * graphite-ppl.h (debug_gmp_value): Declared.
11929 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11931 * doc/install.texi: Document availability of cloog-0.16.
11933 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11935 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11936 invalid postdominance info.
11938 2011-01-24 Jan Hubicka <jh@suse.cz>
11941 * doc/extend.texi (weak pragma): Drop claim that it must
11942 appear before definition.
11943 * varasm.c (merge_weak, declare_weak): Only sanity check
11944 that DECL is not output at a time it is declared weak.
11946 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11948 * machmode.def: Fixed comments.
11950 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11952 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11954 2011-01-24 Paul Koning <ni1d@arrl.net>
11956 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11959 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11962 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11963 (block_info): Add scanned and prev.
11964 (move_or_delete_vzeroupper_2): Return if the basic block
11965 has been scanned and the upper 128bit state is unchanged
11966 from the last scan.
11967 (move_or_delete_vzeroupper_1): Return true if the exit
11969 (move_or_delete_vzeroupper): Visit basic blocks using the
11970 work-list based algorithm based on vt_find_locations in
11973 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11975 2011-01-24 Nick Clifton <nickc@redhat.com>
11977 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11978 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11979 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11980 then define __v850e1__.
11981 * doc/invoke.texi: Document -mv850es.
11983 2011-01-24 Richard Henderson <rth@redhat.com>
11985 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11986 compound unordered comparisons.
11987 * config/rx/rx.c (rx_split_fp_compare): Remove.
11988 * config/rx/rx-protos.h: Update.
11989 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11990 (cbranchsf4): Don't call rx_split_fp_compare.
11991 (*cbranchsf4): Use rx_split_cbranch.
11992 (*cmpsf): Don't accept "i" constraint.
11993 (*conditional_branch): Only valid after reload.
11994 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
11996 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11999 * config/rs6000/altivec.md (vector constant splitters): Add
12000 support for creating vector single precision constants if -mvsx is
12001 used and we would create the constant using Altivec primitives.
12003 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12004 Richard Sandiford <rdsandiford@googlemail.com>
12006 PR rtl-optimization/47166
12007 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12008 mechanism for PRE_MODIFY and POST_MODIFY.
12009 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12012 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12014 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12016 2011-01-22 Jan Hubicka <jh@suse.cz>
12019 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12021 2011-01-22 Jan Hubicka <jh@suse.cz>
12023 PR tree-optimization/43884
12025 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12026 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12028 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12030 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12031 * config/s390/s390.c (s390_register_move_cost,
12032 s390_memory_move_cost): New.
12033 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12035 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12037 PR middle-end/47401
12038 * except.c (sjlj_assign_call_site_values): Move setting the
12039 crtl->uses_eh_lsda flag to ...
12040 (sjlj_mark_call_sites): ... here.
12041 (sjlj_emit_function_enter): Support NULL dispatch label.
12042 (sjlj_build_landing_pads): In a function with no landing pads
12043 that still has must-not-throw regions, generate code to register
12044 a personality function with empty LSDA.
12046 2011-01-21 Richard Henderson <rth@redhat.com>
12048 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12050 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12052 * compare-elim.c: New file.
12053 * Makefile.in (OBJS-common): Add it.
12054 (compare-elim.o): New.
12055 * common.opt (fcompare-elim): New.
12056 * opts.c (default_options_table): Add OPT_fcompare_elim.
12057 * tree-pass.h (pass_compare_elim_after_reload): New.
12058 * passes.c (init_optimization_passes): Add it.
12059 * recog.h: Protect against re-inclusion.
12060 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12061 * doc/invoke.texi (-fcompare-elim): Document it.
12062 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12063 * doc/tm.texi: Rebuild.
12065 2011-01-22 Nick Clifton <nickc@redhat.com>
12067 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12068 rx_split_fp_compare.
12070 2011-01-22 Nick Clifton <nickc@redhat.com>
12072 * config/rx/rx.md (UNSPEC_CONST): New.
12073 (deallocate_and_return): Wrap the amount popped off the stack in
12074 an UNSPEC_CONST in order to stop it being rejected by
12075 -mmax-constant-size.
12076 (pop_and_return): Add a "(return)" rtx.
12077 (call): Drop the immediate operand.
12078 (call_internal): Likewise.
12079 (call_value): Likewise.
12080 (call_value_internal): Likewise.
12081 (sibcall_internal): Likewise.
12082 (sibcall_value_internal): Likewise.
12083 (sibcall): Likewise. Generate an explicit call using
12085 (sibcall_value): Likewise.
12086 (mov<>): FAIL if a constant operand is not legitimate.
12087 (addsi3_unpsec): New pattern.
12089 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12090 (ok_for_max_constant): New function.
12091 (gen_safe_add): New function.
12092 (rx_expand_prologue): Use gen_safe_add.
12093 (rx_expand_epilogue): Likewise.
12094 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12097 2011-01-21 Jeff Law <law@redhat.com>
12099 PR tree-optimization/47053
12100 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12101 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12102 statements are deleted.
12103 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12104 is nonempty, then purge dead edges and cleanup the CFG.
12106 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12109 Temporarily revert:
12110 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12112 * tree-dfa.c (create_var_ann): Mark variable as used.
12114 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12116 PR middle-end/45566
12117 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12118 notes from other section in hot/cold partitioning even if
12119 last_action is -3. Increment call_site_base.
12121 PR rtl-optimization/47366
12122 * fwprop.c (forward_propagate_into): Return bool. If
12123 any changes are made, -fnon-call-exceptions is used and
12124 REG_EH_REGION note is present, call purge_dead_edges
12125 and return true if it purged anything.
12126 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12127 any EH edges were purged.
12129 2011-01-21 Jeff Law <law@redhat.com>
12131 PR rtl-optimization/41619
12132 * caller-save.c (setup_save_areas): Break out code to determine
12133 which hard regs are live across calls by examining the reload chains
12134 so that it is always used.
12135 Eliminate code which checked REG_N_CALLS_CROSSED.
12137 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12139 PR tree-optimization/47355
12140 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12141 NOP has non-debug uses beyond PHIs in new_bb.
12143 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12146 * cfgexpand.c (account_used_vars_for_block): Only account vars
12147 that are annotated as used.
12148 (estimated_stack_frame_size): Don't set TREE_USED.
12149 * tree-dfa.c (create_var_ann): Mark variable as used.
12151 2011-01-21 Richard Guenther <rguenther@suse.de>
12153 PR middle-end/47395
12154 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12156 2011-01-21 Richard Guenther <rguenther@suse.de>
12158 PR tree-optimization/47365
12159 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12160 (vn_reference_lookup_pieces): Adjust.
12161 (vn_reference_lookup): Likewise.
12162 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12163 (vn_reference_lookup_3): Only look through kills if in
12164 VN_WALKREWRITE mode.
12165 (vn_reference_lookup_pieces): Adjust.
12166 (vn_reference_lookup): Likewise.
12167 (visit_reference_op_load): Likewise.
12168 (visit_reference_op_store): Likewise.
12169 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12170 (compute_avail): Likewise.
12171 (eliminate): Likewise.
12173 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12175 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12176 DECL_IGNORED_P non-reg vars if they are used.
12178 PR tree-optimization/47391
12179 * varpool.c (const_value_known_p): Return false if
12182 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12185 * config/i386/i386.c (ix86_local_alignment): Handle
12186 case for va_list_type_node is nil.
12187 (ix86_canonical_va_list_type): Likewise.
12189 2011-01-21 Alan Modra <amodra@gmail.com>
12191 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12192 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12194 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12196 * config/arm/arm.md (define_attr type): Rename f_load
12197 and f_store to f_fpa_load and f_fpa_store. Update.
12198 (write_conflict): Deal with rename fallout.
12199 (*push_fp_multi): Likewise.
12200 * config/arm/fpa.md (f_load): Use f_fpa_load.
12201 (f_store): Use f_fpa_store.
12202 (*movsf_fpa): Likewise.
12203 (*movdf_fpa): Likewise.
12204 (*movxf_fpa): Likewise.
12205 (*thumb2_movsf_fpa): Likewise.
12206 (*thumb2_movdf_fpa): Likewise.
12207 (*thumb2_movxf_fpa): Likewise.
12208 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12209 f_loadd and f_stored.
12210 (*thumb2_movdi_vfp): Likewise.
12211 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12212 (*thumb2_movsi_vfp): Likewise.
12213 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12214 Use f_loads instead of f_load.
12215 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12217 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12219 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12220 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12221 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12222 (xtensa_mode_dependent_address_p): New function.
12223 (constantpool_address_p): Make static. Change return type to bool.
12224 Change argument type to const_rtx. Use CONST_INT_P predicate.
12226 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12229 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12231 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12234 * cfgexpand.c (expand_debug_expr): Instead of generating
12235 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12238 2011-01-20 Richard Guenther <rguenther@suse.de>
12240 PR middle-end/47370
12241 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12242 the pointer operand of MEM_REFs.
12244 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12246 PR tree-optimization/46130
12247 * ipa-split.c (consider_split): If return_bb contains non-virtual
12248 PHIs other than for retval or if split_function would not adjust it,
12251 2011-01-20 Richard Guenther <rguenther@suse.de>
12253 PR tree-optimization/47167
12254 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12255 Revert previous change, only avoid enumeral type changes.
12257 2011-01-19 Mike Stump <mikestump@comcast.net>
12259 * doc/tm.texi.in (BRANCH_COST): Englishify.
12260 * doc/tm.texi (BRANCH_COST): Likewise.
12262 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12265 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12266 (gen_scheduled_generic_parms_dies): New functions.
12267 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12268 generation for the end of CU compilation.
12269 (dwarf2out_finish): Generate template parameters DIEs here.
12271 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12274 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12275 debug bind stmt on merge edges.
12277 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12281 * function.c (instantiate_expr): Instantiate incoming rtl of
12282 implicit arguments, and recurse on VALUE_EXPRs.
12283 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12284 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12286 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12288 * c-parser.c (c_parser_for_statement): Initialize
12289 collection_expression.
12291 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12293 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12295 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12297 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12298 (LINK_SHLIB_SPEC): Don't use %(link_path).
12299 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12301 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12303 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12304 (NO_SHARED_LIB_SUPPORT): Remove.
12305 (LINK_SHLIB_SPEC): Remove one conditional definition.
12307 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12309 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12311 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12312 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12313 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12314 %{call_shared} and conditionals on these options not being passed.
12315 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12318 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12320 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12323 * ipa-split.c: Spelling fixes.
12325 2011-01-19 Richard Henderson <rth@redhat.com>
12327 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12328 (*mulsi3): Likewise.
12330 * longlong.h [__mn10300__] (count_leading_zeros): New.
12331 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12332 [__mn10300__] (add_ssaaaa, subddmmss): New.
12333 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12334 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12336 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12338 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12340 2011-01-19 Richard Henderson <rth@redhat.com>
12342 * config/mn10300/mn10300.md (addsi3_flags): New.
12343 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12344 (subsi3_flags, subc_internal, subdi3): New.
12345 (subdi3_internal, *subdi3_degenerate): New.
12346 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12348 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12349 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12350 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12351 * config/mn10300/mn10300-protos.h: Update.
12352 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12353 (return_ret): Likewise. Rename from return_internal_regs.
12354 (return_internal): Remove.
12356 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12357 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12358 (mn10300_legitimate_constant_p): Likewise.
12359 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12360 (mn10300_frame_size): New.
12361 (mn10300_expand_prologue): Use it.
12362 (mn10300_expand_epilogue): Likewise.
12363 (mn10300_initial_offset): Likewise.
12364 * config/mn10300/mn10300-protos.h: Update.
12365 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12366 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12367 (prologue, epilogue, return_internal): Tidy output code.
12368 (mn10300_store_multiple_operation, return): Likewise.
12369 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12370 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12371 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12372 (load_pic, am33_load_pic): New.
12373 (mn10300_load_pic0, mn10300_load_pic1): New.
12375 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12376 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12377 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12378 (cc_flags_for_mode, cc_flags_for_code): New.
12379 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12380 overflow flag is not valid. Validate that the flags we need
12381 for the comparison are valid.
12382 (mn10300_output_cmp): Remove.
12383 (mn10300_output_add): New.
12384 (mn10300_select_cc_mode): Use cc_flags_for_code.
12385 (mn10300_split_cbranch): New.
12386 (mn10300_match_ccmode): New.
12387 (mn10300_split_and_operand_count): New.
12388 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12390 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12391 (addsi3): ... here. Use mn10300_output_add.
12392 (*addsi3_flags): New.
12393 (*am33_subsi3, *mn10300_subsi3): Merge...
12394 (subsi3): ... here. Use attribute isa.
12395 (*subsi3_flags): New.
12396 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12398 (*am33_andsi3, *mn10300_andsi3): Merge...
12399 (andsi3): ... here.
12400 (*andsi3_flags): New.
12401 (andsi3 splitters): New.
12402 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12403 (iorsi3): ... here.
12404 (*iorsi3_flags): New.
12405 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12406 (xorsi3): ... here.
12407 (*xorsi3_flags): New.
12408 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12409 (one_cmplsi2): ... here.
12410 (*one_cmplsi2_flags): New.
12411 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12412 instead of "dax" in constraints. Use mn10300_split_cbranch.
12413 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12414 use matching constraints to eliminate a self-comparison.
12415 (*integer_conditional_branch): Rename from integer_conditional_branch.
12416 Use int_mode_flags to match CC_REG.
12417 (*cbranchsi4_btst, *btstsi): New.
12418 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12419 mn10300_split_cbranch.
12420 (*am33_cmpsf): Rename from am33_cmpsf.
12421 (*float_conditional_branch): Rename from float_conditional_branch.
12422 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12423 (zero_extendqisi2): ... here.
12424 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12425 (zero_extendhisi2): ... here.
12426 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12427 (extendqisi2): ... here.
12428 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12429 (extendhisi2): ... here.
12430 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12431 (ashlsi3): ... here.
12432 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12433 (lshrsi3): ... here.
12434 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12435 (ashrsi3): ... here.
12436 (consecutive add peephole): Remove.
12437 * config/mn10300/predicates.md (label_ref_operand): New.
12438 (int_mode_flags): New.
12439 (CCZN_comparison_operator): New.
12441 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12442 (throughput_42_latency_43): New reservation.
12443 (mulsidi3, umulsidi3): New expanders.
12444 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12445 the MDR register to allocation; separately allocate the low and
12446 high parts of the DImode result.
12447 (umulsidi3_internal): Similarly.
12448 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12449 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12450 (udivsi3, umodsi3): Remove.
12451 (udivmodsi4, divmodsi4): New expanders.
12452 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12453 (*divmodsi4): Simiarly.
12454 (ext_internal): New.
12456 * config/mn10300/constraints.md ("z"): New constraint.
12457 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12458 (FIXED_REGISTERS): Don't fix MDR.
12459 (CALL_USED_REGSITERS): Reformat nicely.
12460 (REG_ALLOC_ORDER): Add MDR.
12461 (enum regclass): Add MDR_REGS.
12462 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12463 (IRA_COVER_CLASSES): Add MDR_REGS.
12464 (REGNO_REG_CLASS): Handle MDR_REG.
12465 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12466 (mn10300_register_move_cost): Likewise.
12467 * config/mn10300/mn10300.md (MDR_REG): New.
12468 (*movsi_internal): Handle moves to/from MDR_REGS.
12470 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12472 (mn10300_secondary_reload): Tidy combination reload classes.
12473 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12474 addresses for AM33. Allow symbolic offsets for reg+imm.
12475 (mn10300_regno_in_class_p): New.
12476 (mn10300_legitimize_reload_address): New.
12477 * config/mn10300/mn10300.h (enum reg_class): Remove
12478 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12479 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12480 SP_OR_GENERAL_REGS.
12481 (REG_CLASS_NAMES): Update to match.
12482 (REG_CLASS_CONTENTS): Likewise.
12483 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12484 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12485 (REGNO_IN_RANGE_P): Remove.
12486 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12487 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12488 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12489 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12490 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12491 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12492 (REGNO_GENERAL_P): New.
12493 (HAVE_POST_MODIFY_DISP): New.
12494 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12495 (LEGITIMIZE_RELOAD_ADDRESS): New.
12496 * config/mn10300/mn10300-protos.h: Update.
12498 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12499 DATA_REGS for AM33 stack-pointer destination.
12500 (mn10300_preferred_output_reload_class): Likewise.
12501 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12502 into a form appropriate for ...
12503 (TARGET_SECONDARY_RELOAD): New.
12504 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12505 * config/mn10300/mn10300-protos.h: Update.
12506 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12507 reload_insi; use the "A" constraint for the scratch; handle AM33
12508 moves of sp to non-address registers.
12510 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12511 (*movqi_internal): ... here.
12512 (*am33_movhi, *mn10300_movhi): Merge into...
12513 (*movhi_internal): ... here.
12514 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12515 as the source/destination of moves from/to SP.
12516 (movsf): Only allow for AM33-2.
12517 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12518 any integer constant constraint. Only allow for AM33-2. Tidy
12519 all of the alternative outputs.
12520 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12521 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12523 (udivsi3, umodsi3): New patterns for MN103 only.
12525 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12527 * doc/tm.texi.in: Spell out that a lack of register class unions
12529 * doc/tm.texi: Regenerate.
12531 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12533 PR rtl-optimization/47337
12534 * dce.c (check_argument_store): New function.
12535 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12537 PR tree-optimization/47290
12538 * tree-eh.c (infinite_empty_loop_p): New function.
12539 (cleanup_empty_eh): Use it.
12541 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12544 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12545 (a64_expand_widen_sum): Ditto.
12546 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12547 (vec_extract_evenodd_help): Ditto.
12548 (vec_extract_evenv4hi): Ditto.
12549 (vec_extract_oddv4hi): Ditto.
12550 (vec_extract_evenv2si): Ditto.
12551 (vec_extract_oddv2si): Ditto.
12552 (vec_extract_evenv2sf): Ditto.
12553 (vec_extract_oddv2sf): Ditto.
12554 (vec_pack_trunc_v4hi: Ditto.
12555 (vec_pack_trunc_v2si): Ditto.
12556 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12557 (vec_interleave_highv8qi): Ditto.
12559 (vec_extract_oddv8qi): Ditto.
12560 (vec_interleave_lowv4hi): Ditto.
12561 (vec_interleave_highv4hi): Ditto.
12562 (vec_interleave_lowv2si): Ditto.
12563 (vec_interleave_highv2si): Ditto.
12565 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12567 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12568 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12569 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12570 (pa_c_mode_for_suffix): New.
12571 (TARGET_EXPAND_BUILTIN): Define.
12572 (TARGET_C_MODE_FOR_SUFFIX): Define.
12573 (pa_builtins): Define.
12574 (pa_init_builtins): Register __float128 type and init new support
12576 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12577 * config/pa/quadlib.c (_U_Qfcopysign): New.
12579 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12581 PR middle-end/46894
12582 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12583 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12586 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12588 PR tree-optimization/47179
12589 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12590 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12592 2011-01-18 Richard Guenther <rguenther@suse.de>
12594 PR rtl-optimization/47216
12595 * emit-rtl.c: Include tree-flow.h.
12596 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12597 of replicating it with different semantics.
12598 * Makefile.in (emit-rtl.o): Adjust.
12600 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12602 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12603 (cortex_a9_dp): Handle neon types correctly.
12605 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12607 PR rtl-optimization/47299
12608 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12609 subtarget. Use normal multiplication if both operands are constants.
12610 * expmed.c (expand_widening_mult): Don't try to optimize constant
12611 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12614 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12616 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12617 spacing after 'e.g.', typos, comma, hyphenation.
12619 2011-01-17 Richard Henderson <rth@redhat.com>
12621 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12622 (rx_restricted_mem_operand): New.
12623 (rx_shift_operand): Use register_operand.
12624 (rx_source_operand, rx_compare_operand): Likewise.
12625 * config/rx/rx.md (addsi3_flags): New expander.
12626 (adddi3): Rewrite as expander.
12627 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12628 (subsi3_flags): New expander.
12629 (subdi3): Rewrite as expander.
12630 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12632 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12633 (rx_init_builtins): Remove sat builtin.
12634 (rx_expand_builtin): Likewise.
12635 * config/rx/rx.md (ssaddsi3): New.
12636 (*sat): Rename from sat. Represent the CC_REG input.
12638 * config/rx/predicates.md (rshift_operator): New.
12639 * config/rx/rx.c (rx_expand_insv): Remove.
12640 * config/rx/rx-protos.h: Update.
12641 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12642 operand to the canonical position.
12643 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12644 (*bitclr, *bitclr_in_memory): Similarly.
12645 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12646 (insv): Retain the zero_extract in the expansion.
12648 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12649 (bswaphi2, bitinvert, revw): Likewise.
12651 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12652 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12653 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12654 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12655 (bitset, bitset_in_memory): Likewise.
12656 (bitinvert, bitinvert_in_memory): Likewise.
12657 (bitclr, bitclr_in_memory): Likewise.
12658 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12659 (rx_strend, rx_cmpstrn): Likewise.
12660 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12661 (bitop peep2 patterns): Remove.
12663 * config/rx/rx.c (rx_match_ccmode): New.
12664 * config/rx/rx-protos.h: Update.
12665 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12666 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12667 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12668 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12669 (fix_truncsfsi2, floatsisf2): Likewise.
12670 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12671 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12672 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12673 (*subsi3_flags, *xorsi3_flags): New.
12675 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12677 * config/rx/rx.c (rx_print_operand): Remove workaround for
12678 unsplit comparison operations.
12680 * config/rx/rx.md (movsicc): Split after reload.
12681 (*movsicc): Merge *movsieq and *movsine via match_operator.
12682 (*stcc): New pattern.
12684 * config/rx/rx.c (rx_float_compare_mode): Remove.
12685 * config/rx/rx.h (rx_float_compare_mode): Remove.
12686 * config/rx/rx.md (cstoresi4): Split after reload.
12687 (*sccc): New pattern.
12689 * config/rx/predicates.md (label_ref_operand): New.
12690 (rx_z_comparison_operator): New.
12691 (rx_zs_comparison_operator): New.
12692 (rx_fp_comparison_operator): New.
12693 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12694 Validate that the flags are set properly for the comparison.
12695 (rx_gen_cond_branch_template): Remove.
12696 (rx_cc_modes_compatible): Remove.
12697 (mode_from_flags): New.
12698 (flags_from_code): Rename from flags_needed_for_conditional.
12699 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12700 (rx_select_cc_mode): Likewise.
12701 (rx_split_fp_compare): New.
12702 (rx_split_cbranch): New.
12703 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12704 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12705 (*cbranchsf4): Similarly.
12706 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12707 match_operator and rx_split_cbranch.
12708 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12709 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12710 (*cmpsi): Rename from cmpsi.
12711 (*tstsi): Rename from tstsi.
12712 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12713 (*conditional_branch): Rename from conditional_branch.
12714 (*reveresed_conditional_branch): Remove.
12715 (b<code>): Remove expander.
12716 * config/rx/rx-protos.h: Update.
12718 * config/rx/rx.c (rx_compare_redundant): Remove.
12719 * config/rx/rx.md (cmpsi): Don't use it.
12720 * config/rx/rx-protos.h: Update.
12722 * config/rx/rx-modes.def (CC_F): New mode.
12723 * config/rx/rx.c (rx_select_cc_mode): New.
12724 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12725 * config/rx/rx-protos.h: Update.
12727 2011-01-17 Richard Henderson <rth@redhat.com>
12729 * except.c (dump_eh_tree): Fix stray ; after for statement.
12731 2011-01-17 Richard Guenther <rguenther@suse.de>
12733 PR tree-optimization/47313
12734 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12735 handling before copying the body. Properly deal with
12736 by-reference result in SSA form.
12738 2011-01-17 Ian Lance Taylor <iant@google.com>
12741 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12742 (struct_value_alias_set): Don't define.
12743 (sparc_option_override): Don't set sparc_sr_alias_set and
12744 struct_value_alias_set.
12745 (save_or_restore_regs): Use gen_frame_mem rather than calling
12747 (sparc_struct_value_rtx): Likewise.
12749 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12752 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12753 (_mm_maskstore_pd): Likewise.
12754 (_mm_maskload_ps): Likewise.
12755 (_mm_maskstore_ps): Likewise.
12756 (_mm256_maskload_pd): Change mask to __m256i.
12757 (_mm256_maskstore_pd): Likewise.
12758 (_mm256_maskload_ps): Likewise.
12759 (_mm256_maskstore_ps): Likewise.
12761 * config/i386/i386-builtin-types.def: Updated.
12762 (ix86_expand_special_args_builtin): Likewise.
12764 * config/i386/i386.c (bdesc_special_args): Update
12765 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12766 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12767 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12768 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12770 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12771 Use <avxpermvecmode> on mask register.
12772 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12774 2011-01-17 Olivier Hainque <hainque@adacore.com>
12775 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12776 Eric Botcazou <ebotcazou@adacore.com>
12779 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12780 if <= USHRT_MAX in 32-bit mode.
12782 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12784 * doc/install.texi (Configuration, Specific): Wrap long
12785 lines in examples. Allow line wrapping in long options
12786 and URLs where beneficial for PDF output.
12788 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12790 * config/mips/mips.c (mips_classify_symbol): Don't return
12791 SYMBOL_PC_RELATIVE for nonlocal labels.
12793 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12795 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12797 2011-01-15 Jan Hubicka <jh@suse.cz>
12799 PR tree-optimization/47276
12800 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12801 declarations as needed.
12803 2011-01-15 Martin Jambor <mjambor@suse.cz>
12805 * common.opt (fdevirtualize): New flag.
12806 * doc/invoke.texi (Option Summary): Document it.
12807 * opts.c (default_options_table): Add devirtualize flag.
12808 * ipa-prop.c (detect_type_change): Return immediately if
12809 devirtualize flag is not set.
12810 (detect_type_change_ssa): Likewise.
12811 (compute_known_type_jump_func): Likewise.
12812 (ipa_analyze_virtual_call_uses): Likewise.
12814 2011-01-14 Martin Jambor <mjambor@suse.cz>
12816 PR tree-optimization/45934
12817 PR tree-optimization/46302
12818 * ipa-prop.c (type_change_info): New type.
12819 (stmt_may_be_vtbl_ptr_store): New function.
12820 (check_stmt_for_type_change): Likewise.
12821 (detect_type_change): Likewise.
12822 (detect_type_change_ssa): Likewise.
12823 (compute_complex_assign_jump_func): Check for dynamic type change.
12824 (compute_complex_ancestor_jump_func): Likewise.
12825 (compute_known_type_jump_func): Likewise.
12826 (compute_scalar_jump_functions): Likewise.
12827 (ipa_analyze_virtual_call_uses): Likewise.
12828 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12830 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12832 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12833 * config/i386/i386.opt (msse5): New Alias.
12835 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12837 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12838 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12839 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12840 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12842 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12844 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12846 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12847 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12848 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12849 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12851 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12853 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12855 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12857 2011-01-14 Mike Stump <mikestump@comcast.net>
12859 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12860 * config/fr30/fr30.md: Likweise
12861 (movsi_push): Likewise.
12862 (movsi_pop): Likewise.
12863 (enter_func): Likewise.
12864 * config/moxie/moxie.md (movsi_push): Likewise.
12865 (movsi_pop): Likewise.
12867 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12869 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12870 %{no_archive} %{exact_version}.
12871 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12872 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12873 %{no_archive} %{exact_version}.
12874 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12875 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12876 * config/mips/vxworks.h: Likewise.
12878 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12880 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12882 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12884 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12885 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12887 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12889 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12892 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12894 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12896 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12897 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12899 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12900 Don't handle -shlib.
12902 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12904 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12905 (CC1_SPEC): Don't handle -profile.
12907 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12909 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12910 * config/mips/mips.h (CC1_SPEC): Likewise.
12912 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12914 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12915 * config/mips/mips.h (CC1_SPEC): Likewise.
12917 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12919 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12920 * config/m32r/linux.h (LINK_SPEC): Likewise.
12921 * config/mips/linux.h (LINK_SPEC): Likewise.
12922 * config/mips/linux64.h (LINK_SPEC): Likewise.
12923 * config/sparc/linux.h (LINK_SPEC): Likewise.
12924 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12925 LINK_SPEC): Likewise.
12926 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12928 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12930 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12932 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12934 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12936 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12937 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12939 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12941 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12943 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12945 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12946 supports -Bstatic/-Bdynamic.
12947 * configure: Regenerate.
12949 2011-01-14 Jan Hubicka <jh@suse.cz>
12950 Jack Howarth <howarth@bromo.med.uc.edu>
12953 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12954 when checking debug_info_level. Test write_symbols instead of
12955 debug_hooks->var_location when setting flag_var_tracking_uninit.
12957 2011-01-14 Richard Guenther <rguenther@suse.de>
12959 PR tree-optimization/47179
12960 * target.def (ref_may_alias_errno): New target hook.
12961 * targhooks.h (default_ref_may_alias_errno): Declare.
12962 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12963 (default_ref_may_alias_errno): New function.
12964 * target.h (struct ao_ref_s): Declare.
12965 * tree-ssa-alias.c: Include target.h.
12966 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12967 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12968 (targhooks.o): Likewise.
12969 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12970 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12972 2011-01-14 Richard Guenther <rguenther@suse.de>
12974 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12976 2011-01-14 Richard Guenther <rguenther@suse.de>
12978 PR tree-optimization/47280
12979 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12980 return CFG changes.
12981 (tree_ssa_forward_propagate_single_use_vars): Deal with
12982 CFG changes from associate_plusminus.
12984 2011-01-14 Richard Guenther <rguenther@suse.de>
12986 PR middle-end/47281
12988 2011-01-11 Richard Guenther <rguenther@suse.de>
12990 PR tree-optimization/46076
12991 * tree-ssa.c (useless_type_conversion_p): Conversions from
12992 unprototyped to empty argument list function types are useless.
12994 2011-01-14 Richard Guenther <rguenther@suse.de>
12996 PR tree-optimization/47286
12997 * tree-ssa-structalias.c (new_var_info): Register variables are global.
12999 2011-01-14 Martin Jambor <mjambor@suse.cz>
13001 PR middle-end/46823
13002 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13004 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13006 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13007 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13008 * config/xtensa/xtensa.c (xtensa_libcall_value,
13009 xtensa_function_value_regno_p): New functions.
13010 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13012 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13015 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13017 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13018 New function prototype.
13019 * config/i386/winnt.c (i386_pe_assemble_visibility):
13020 Warn only if attribute was specified by user.
13022 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13025 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13027 (floatunsdidf2_fcfidu): Ditto.
13029 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13031 * config/s390/s390.c (print_operand_address): Replace 'error' with
13032 'output_operand_lossage'.
13033 (print_operand): Likewise.
13035 2011-01-13 Jeff Law <law@redhat.com>
13037 PR rtl-optimization/39077
13038 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13039 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13040 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13041 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13042 * gcse.c (prune_insertions_deletions): New function.
13043 (compute_pre_data): Use it.
13045 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13048 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13050 (prune_unused_types_mark): Use it.
13052 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13054 PR rtl-optimization/45352
13055 * sel-sched.c: Update copyright years.
13056 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13057 in the advancing loop when we have issued issue_rate insns.
13059 2011-01-12 Richard Henderson <rth@redhat.com>
13061 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13062 (TARGET_MD_ASM_CLOBBERS): New.
13064 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13065 (TARGET_DELEGITIMIZE_ADDRESS): New.
13067 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13068 (clzsi2, *bsch): New patterns.
13070 * config/mn10300/mn10300.md (INT): New mode iterator.
13071 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13073 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13074 flag_split_wide_types.
13076 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13077 (mn10300_trampoline_init): Rewrite without a template, an immediate
13078 load and a direct branch.
13079 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13081 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13083 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13084 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13085 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13086 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13088 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13091 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13094 2011-01-12 Jan Hubicka <jh@suse.cz>
13097 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13098 (PLUGIN_COND_CLOSE): New macro.
13099 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13101 2011-01-12 Richard Guenther <rguenther@suse.de>
13104 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13105 register variables in a MEM_REF.
13107 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13109 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13110 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13111 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13112 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13113 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13114 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13115 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13116 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13117 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13118 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13119 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13120 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13121 * config/gnu-user.h: New. Copied from linux.h.
13122 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13123 GNU_USER_TARGET_STARTFILE_SPEC.
13124 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13125 GNU_USER_TARGET_ENDFILE_SPEC.
13126 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13127 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13128 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13129 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13130 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13131 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13132 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13133 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13134 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13135 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13136 * config/arm/linux-eabi.h (CC1_SPEC): Use
13137 GNU_USER_TARGET_CC1_SPEC.
13138 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13139 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13140 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13141 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13142 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13143 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13144 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13145 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13147 2011-01-12 Richard Guenther <rguenther@suse.de>
13150 * doc/invoke.texi (ffast-math): Document it is turned on
13153 2011-01-12 Jan Hubicka <jh@suse.cz>
13155 PR tree-optimization/47233
13156 * opts.c (common_handle_option): Disable ipa-reference with profile
13159 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13161 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13164 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13166 * c-parser.c (c_lex_one_token): Updated and reindented some
13167 comments. No changes in code.
13169 2011-01-11 Ian Lance Taylor <iant@google.com>
13171 * godump.c (go_output_var): Don't output the variable if there is
13172 already a type with the same name.
13174 2011-01-11 Ian Lance Taylor <iant@google.com>
13176 * godump.c (go_format_type): Don't generate float80.
13178 2011-01-11 Richard Henderson <rth@redhat.com>
13180 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13181 declaration. Rewrite for both speed and size.
13182 (mn10300_address_cost_1): Remove.
13183 (mn10300_register_move_cost): New.
13184 (mn10300_memory_move_cost): New.
13185 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13186 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13187 extensions, shifts, BSWAP, CLZ.
13188 (mn10300_wide_const_load_uses_clr): Remove.
13189 (TARGET_REGISTER_MOVE_COST): New.
13190 (TARGET_MEMORY_MOVE_COST): New.
13191 * config/mn10300/mn10300-protos.h: Update.
13192 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13194 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13195 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13196 * config/mn10300/mn10300-protos.h: Update.
13197 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13198 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13199 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13200 (*test_int_bitfield, *test_byte_bitfield): Remove.
13201 (*bit_test, *subreg_bit_test): Remove.
13202 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13204 * config/mn10300/constraints.md ("c"): Rename from "A".
13205 ("A", "D"): New constraint letters.
13206 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13207 (fmssf4, fnmasf4, fnmssf4): Likewise.
13209 * config/mn10300/mn10300.md (isa): New attribute.
13210 (enabled): New attribute.
13212 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13213 (abssf2, negsf2): Define only for hardware fp.
13214 (sqrtsf2): Reformat.
13215 (addsf3, subsf3, mulsf3): Merge expander and insn.
13217 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13218 (DEBUGGER_AUTO_OFFSET): Remove.
13219 (DEBUGGER_ARG_OFFSET): Remove.
13221 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13222 Emit register stores with the same offsets as the hardware.
13223 (mn10300_store_multiple_operation): Don't check that the register
13224 save offsets are monotonic.
13225 * config/mn10300/mn10300-protos.h: Update.
13227 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13229 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13230 in terms of the value on the stack, not the MDR register.
13232 2011-01-11 Jan Hubicka <jh@suse.cz>
13236 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13237 (symbol_alias_set_destroy, symbol_alias_set_contains,
13238 propagate_aliases_backward): Declare.
13239 * lto-streamer-out.c (struct sets): New sturcture.
13240 (trivally_defined_alias): New function.
13241 (output_alias_pair_p): Rewrite.
13242 (output_unreferenced_globals): Fix output of alias pairs.
13243 (produce_symtab): Likewise.
13244 * ipa.c (function_and_variable_visibility): Set weak alias destination
13246 * varasm.c (symbol_alias_set_t): Remove.
13247 (symbol_alias_set_destroy): Export.
13248 (propagate_aliases_forward, propagate_aliases_backward): New functions
13250 (compute_visible_aliases): ... this one; remove.
13251 (trivially_visible_alias): New
13252 (trivially_defined_alias): New.
13253 (remove_unreachable_alias_pairs): Rewrite.
13254 (finish_aliases_1): Reorganize code checking if alias is defined.
13255 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13258 2011-01-11 Richard Guenther <rguenther@suse.de>
13260 PR tree-optimization/46076
13261 * tree-ssa.c (useless_type_conversion_p): Conversions from
13262 unprototyped to empty argument list function types are useless.
13264 2011-01-11 Richard Guenther <rguenther@suse.de>
13266 PR middle-end/45235
13267 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13268 volatile MEMs as MEM_READONLY_P.
13270 2011-01-11 Richard Guenther <rguenther@suse.de>
13272 PR tree-optimization/47239
13273 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13275 2011-01-11 Jeff Law <law@redhat.com>
13277 PR tree-optimization/47086
13278 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13279 IVs from statements that might throw.
13281 2011-01-10 Jan Hubicka <jh@suse.cz>
13284 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13286 2011-01-10 Jan Hubicka <jh@suse.cz>
13289 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13290 when correcting profile.
13292 2011-01-10 Jan Hubicka <jh@suse.cz>
13295 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13296 DECL_FINI_PRIORITY.
13297 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13298 Restore DECL_FINI_PRIORITY.
13300 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13302 * doc/gimple.texi: Fix quoting of multi-word return values in
13303 @deftypefn statements. Ensure presence of return value. Wrap
13304 overlong @deftypefn lines.
13305 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13306 descriptions of removed functions.
13307 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13308 of multi-word return value in @deftypefn statement.
13310 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13312 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13313 (Conditional Expressions, Logical Operators)
13314 (Statement and operand traversals): Do not indent smallexample
13315 code. Fix duplicate function argument in example.
13317 2011-01-10 Jeff Law <law@redhat.com>
13319 PR tree-optimization/47141
13320 * ipa-split.c (split_function): Handle case where we are
13321 returning a value and the return block has a virtual operand phi.
13323 2011-01-10 Jan Hubicka <jh@suse.cz>
13325 PR tree-optimization/47234
13326 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13327 (pass_feedback_split_functions): Declare.
13328 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13330 * ipa-split.c (gate_split_functions): Update comments; disable
13331 split-functions for profile_arc_flag and branch_probabilities.
13332 (gate_feedback_split_functions): New function.
13333 (execute_feedback_split_functions): New function.
13334 (pass_feedback_split_functions): New global var.
13336 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13339 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13340 calling gimple_call_set_cannot_inline.
13342 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13344 * config/darwin-sections.def: Remove unused section.
13346 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13349 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13351 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13354 * c-parser.c (c_parser_declaration_or_fndef): Improved
13357 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13359 * config/i386/winnt.c (i386_pe_start_function): Make sure
13360 to switch back to function's section.
13362 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13366 * plugin.c: Move include of dlfcn.h from here...
13367 * system.h: ... to here.
13369 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13371 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13373 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13374 two extra empty pages in PDF output.
13376 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13379 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13380 for error recovery purposes behave as if it was not specified so
13381 that the default type is usd.
13383 2011-01-07 Jan Hubicka <jh@suse.cz>
13385 PR tree-optmization/46469
13386 * ipa.c (function_and_variable_visibility): Clear needed flags on
13387 nodes with external decls; handle weakrefs merging correctly.
13389 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13391 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13394 2011-01-07 Jan Hubicka <jh@suse.cz>
13396 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13397 and no longer claim that gold is required for linker plugin.
13398 * configure: Regenerate.
13399 * gcc.c (PLUGIN_COND): New macro.
13400 (LINK_COMMAND_SPEC): Use it.
13401 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13402 * config.in (HAVE_LTO_PLUGIN): New.
13403 * configure.ac (--with-lto-plugin): New parameter; autodetect
13406 2011-01-07 Jan Hubicka <jh@suse.cz>
13408 PR tree-optimization/46367
13409 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13410 when we can update original.
13411 (cgraph_mark_inline_edge): Sanity check.
13412 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13414 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13416 * config/spu/spu.h (ASM_COMMENT_START): Define.
13418 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13421 * gcc.c (%>S): New.
13422 (SWITCH_KEEP_FOR_GCC): Likewise.
13423 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13424 (do_spec_1): Handle "%>".
13426 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13428 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13431 * config/i386/i386.c (ix86_delegitimize_address): If
13432 simplify_gen_subreg fails, return orig_x.
13435 * value-prof.c (gimple_stringop_fixed_value): Handle
13436 lhs of the call properly.
13438 2011-01-07 Jan Hubicka <jh@suse.cz>
13441 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13443 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13445 * target.def (function_switched_text_sections): New hook.
13446 * doc/tm.texi: Regenerated.
13447 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13448 * final.c (default_function_switched_text_sections): New.
13449 (final_scan_insn): Call function_switched_text_sections when a
13450 mid-function section change occurs.
13451 * output.h (default_function_switched_text_sections): Declare.
13452 * config/darwin-protos.h (darwin_function_switched_text_sections):
13454 * config/darwin.c (darwin_function_switched_text_sections): New.
13455 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13457 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13459 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13460 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13461 the secondary code fragment when outputting for DWARF == 2.
13463 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13465 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13466 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13468 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13469 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13471 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13474 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13475 when it is not empty.
13477 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13480 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13481 (case ${target}): Add btver1.
13482 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13483 -march=native recognize btver1 processors.
13484 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13485 btver1 def_and_undef
13486 * config/i386/i386.c (struct processor_costs btver1_cost): New
13488 (m_BTVER1): New definition.
13489 (m_AMD_MULTIPLE): Includes m_BTVER1.
13490 (initial_ix86_tune_features): Add btver1 tune.
13491 (processor_target_table): Add btver1 entry.
13492 (static const char *const cpu_names): Add btver1 entry.
13493 (software_prefetching_beneficial_p): Add btver1.
13494 (ix86_option_override_internal): Add btver1 instruction sets.
13495 (ix86_issue_rate): Add btver1.
13496 (ix86_adjust_cost): Add btver1.
13497 * config/i386/i386.h (TARGET_BTVER1): New definition.
13498 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13499 (enum processor_type): Add PROCESSOR_BTVER1.
13500 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13502 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13505 * config/i386/i386.c (legitimize_tls_address)
13506 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13507 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13508 (tls_initial_exec_64_sun): New pattern.
13510 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13512 * doc/invoke.texi (Overall Options): Improve wording and markup
13513 of the description of -wrapper.
13515 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13517 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13518 rdynamic, threads): New Driver options.
13520 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13523 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13524 if coming from .tdata.
13525 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13527 2011-01-06 Jan Hubicka <jh@suse.cz>
13530 * collect2.c (main): Do not enable LTOmode when plugin is active.
13532 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13535 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13536 --version output if supported.
13537 * configure: Regenerate.
13539 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13541 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13544 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13547 * c-convert.c (convert): When converting a complex expression
13548 other than COMPLEX_EXPR to a different complex type, ensure
13549 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13550 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13551 when converting COMPLEX_TYPE.
13553 2011-01-06 Ira Rosen <irar@il.ibm.com>
13555 PR tree-optimization/47139
13556 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13557 only the last reduction value is used outside the loop. Update
13560 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13562 * config/rtems.opt: New.
13563 * config.gcc (*-*-rtems*): Use rtems.opt.
13565 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13567 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13568 processors do not support 3DNow instructions.
13570 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13572 * config/spu/spu.c (spu_option_override): Set parameter
13573 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13575 2011-01-05 Jan Hubicka <jh@suse.cz>
13577 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13578 at the command line.
13580 2011-01-05 Martin Jambor <mjambor@suse.cz>
13583 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13584 deltas on streamed outgoing edges.
13585 (output_node_opt_summary): Output info for outgoing edges only when
13586 the node is in new parameter set.
13587 (output_cgraph_opt_summary): New parameter set, passed to the two
13588 aforementioned functions. Update its forward declaration and its
13591 2011-01-05 Tom Tromey <tromey@redhat.com>
13593 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13594 operator to c_finish_omp_atomic.
13595 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13596 (build_unary_op): Update.
13597 (build_modify_expr): Update.
13598 (build_asm_expr): Update.
13600 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13602 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13603 newly inserted insns.
13604 (pad_bb): Likewise.
13605 (spu_emit_branch_hint): Likewise.
13606 (insert_hbrp_for_ilb_runout): Likewise.
13607 (spu_machine_dependent_reorg): Call df_finish_pass after
13608 schedule_insns returns.
13610 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13612 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13614 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13616 PR tree-optimization/47005
13617 * tree-sra.c (struct access): Add 'non_addressable' bit.
13618 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13619 (decide_one_param_reduction): Return 0 if the parameter is passed by
13620 reference and one of the accesses in the group is non_addressable.
13622 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13624 PR tree-optimization/47056
13625 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13626 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13627 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13629 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13631 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13632 initializer. Skip view conversions from aggregate types.
13634 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13637 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13639 2011-01-04 Philipp Thomas <pth@suse.de>
13641 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13644 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13646 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13647 on empty epilogue sequences.
13649 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13651 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13652 non-static): New Driver options.
13654 2011-01-04 Jie Zhang <jie@codesourcery.com>
13657 * gcc.c (default_compilers[]): Set combinable field to 0
13658 for all assembly languages.
13660 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13662 * config/mips/loongson3a.md: New file.
13663 * config/mips/mips.md: Include loongson3a.md.
13664 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13667 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13669 PR middle-end/47017
13670 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13671 instead of convert_memory_address_addr_space on the base expression.
13673 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13675 * config/spu/spu.c (spu_option_override): Update error text
13676 for bad -march= / -mtune= values.
13678 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13680 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13681 if branch-hint optimization will be performed.
13683 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13685 PR tree-optimization/47148
13686 * ipa-split.c (split_function): Convert arguments to
13687 DECL_ARG_TYPE if possible.
13689 PR tree-optimization/47155
13690 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13691 when computing uns.
13693 PR rtl-optimization/47157
13694 * combine.c (try_combine): If undobuf.other_insn becomes
13695 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13696 and set *new_direct_jump_p too.
13698 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13700 PR tree-optimization/47021
13701 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13703 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13705 * gcc.c (process_command): Update copyright notice dates.
13706 * gcov.c (print_version): Likewise.
13707 * gcov-dump.c (print_version): Likewise.
13708 * mips-tfile.c (main): Likewise.
13709 * mips-tdump.c (main): Likewise.
13711 2011-01-03 Martin Jambor <mjambor@suse.cz>
13713 PR tree-optimization/46801
13714 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13715 aggregate fields start at byte boundary instead of the bit-field flag.
13717 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13720 * gcc.c (main): Revert revision 168407.
13722 2011-01-03 Martin Jambor <mjambor@suse.cz>
13724 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13726 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13728 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13729 vector optab to expand vector/scalar shift, update gimple to vector.
13731 2011-01-03 Martin Jambor <mjambor@suse.cz>
13733 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13736 2011-01-03 Martin Jambor <mjambor@suse.cz>
13738 PR tree-optimization/46984
13739 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13741 (cgraph_create_indirect_edge): Fixed line length.
13742 (cgraph_indirect_call_info): Declare.
13743 (cgraph_make_edge_direct) Update declaration.
13744 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13745 (cgraph_create_indirect_edge): Use it.
13746 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13748 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13749 the new thunk_delta representation.
13750 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13752 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13753 (ipa_read_indirect_edge_info): Likewise.
13754 * lto-cgraph.c (output_edge_opt_summary): New function.
13755 (output_node_opt_summary): Call it on all outgoing edges.
13756 (input_edge_opt_summary): New function.
13757 (input_node_opt_summary): Call it on all outgoing edges.
13759 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13762 * gcc.c (main): Don't check have_o when settting combine_inputs.
13764 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13766 * regrename.c: Add general comment describing the pass.
13767 (struct du_head): Remove 'length' field.
13768 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13769 (regrename_optimize): Do not sort chains. Rework comments, add others.
13770 Force renaming to the preferred class (if any) in the first pass and do
13771 not consider registers that belong to it in the second pass.
13772 (create_new_chain): Do not set 'length' field.
13773 (scan_rtx_reg): Likewise.
13775 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13777 PR tree-optimization/47140
13778 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13779 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13780 to bit_value_binop.
13782 PR rtl-optimization/47028
13783 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13784 parm_birth_insn instead of at the beginning of first bb.
13786 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13788 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13789 Remove the word "see" before "@pxref".
13790 * doc/rtl.texi: Remove the word "see" before "@pxref".
13792 2011-01-01 Jan Hubicka <jh@suse.cz>
13794 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13797 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13800 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13803 Copyright (C) 2011 Free Software Foundation, Inc.
13805 Copying and distribution of this file, with or without modification,
13806 are permitted in any medium without royalty provided the copyright
13807 notice and this notice are preserved.