1 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3 PR tree-optimization/48837
4 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5 when accumulator transformation is performed.
7 2011-05-06 Jan Hubicka <jh@suse.cz>
9 * i386.h (ix86_tune_indices): Add X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
10 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macor.
11 * i386.c (initial_ix86_tune_features): Add X86_SOFTARE_PREFETCHING_BENEFICIAL.
12 (software_prefetching_beneficial_p): Remove predicate.
13 (ix86_option_override_internal): Use new macro.
15 2011-05-06 Jan Hubicka <jh@suse.cz>
17 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
19 2011-05-06 Jan Hubicka <jh@suse.cz>
21 * cgraph.c (cgraph_add_thunk): Create real function node instead
22 of alias node; finalize it and mark needed/reachale; arrange visibility
23 to be right and add it into the corresponding same comdat group list.
24 (dump_cgraph_node): Dump thunks.
25 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
26 cgraph_function_with_gimple_body_p, cgraph_first_function_with_gimple_body,
27 cgraph_next_function_with_gimple_body): New functions.
28 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
30 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
31 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
32 * cgraphunit.c (cgraph_finalize_function): Only look into possible
33 devirtualization when optimizing.
34 (verify_cgraph_node): Verify thunks.
35 (cgraph_analyze_function): Analyze thunks.
36 (cgraph_mark_functions_to_output): Output thunks only in combination
37 with function they are assigned to.
38 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
39 alias into normal node.
40 (assemble_thunks): New functoin.
41 (cgraph_expand_function): Use it.
42 * lto-cgraph.c (lto_output_node): Stream thunks.
43 (input_overwrite_node): Stream in thunks.
44 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
45 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
46 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
47 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
48 (inline_analyze_function): Do not care about thunk jump functions.
49 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
50 * ipa-prop.c (ipa_prop_write_jump_functions): Use cgraph_function_with_gimple_body_p.
51 * passes.c (do_per_function_toporder): Use cgraph_function_with_gimple_body_p.
52 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
53 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
54 (function_called_by_processed_nodes_p): Likewise.
56 2011-05-06 Joseph Myers <joseph@codesourcery.com>
58 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
59 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
61 (mabi=): Replace with separate entries for mabi=altivec,
62 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
63 mabi=ieeelongdouble and mabi=ibmlongdouble.
64 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
65 check for -mabi=spe without SPE ABI support here.
66 (rs6000_handle_option): Replace OPT_mabi_ handling with
67 OPT_mabi_altivec and OPT_mabi_spe handling.
69 2011-05-06 Cary Coutant <ccoutant@google.com>
71 * dwarf2out.c (contains_subprogram_definition): New function.
72 (should_move_die_to_comdat): Call it.
74 2011-05-06 Jeff Law <law@redhat.com>
76 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
77 remove_ctrl_stmt_and_useless_edges.
78 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
79 (fixup_template_block, thread_single_edge): Likewise.
80 (mark_threaded_blocks): Use THREAD_TARGET.
82 2011-05-06 Alan Modra <amodra@gmail.com>
85 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
86 const0_rtx as the arg to the dummy __tls_get_addr libcall.
88 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
90 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
91 constraint modifier to "r".
93 2011-05-06 Joseph Myers <joseph@codesourcery.com>
95 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
96 fall through for OPT_mcmodel_.
98 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
100 * config/s390/s390.c (s390_asm_trampoline_template): Comment
102 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
104 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
107 * config/arm/arm.opt (marm): Document it.
108 (mthumb): Reject negative variant.
110 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
113 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
114 Fix typo in "ccvt" variable name.
116 2011-05-06 Tristan Gingold <gingold@adacore.com>
119 * config/vms/vms-ar.c (main): Remove cwd variable.
121 2011-05-06 Jakub Jelinek <jakub@redhat.com>
124 * var-tracking.c (prepare_call_arguments): Move else before #endif.
126 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
128 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
129 * gimplify.c (gimplify_switch_expr): Likewise.
130 * omp-low.c (expand_omp_sections): Likewise.
131 * tree-eh.c (lower_try_finally_switch): Likewise.
132 (lower_eh_dispatch): Likewise.
133 * tree.h (build_case_label): Declare.
134 * tree.c (build_case_label): Define.
136 2011-05-05 Jason Merrill <jason@redhat.com>
139 * tree-inline.c (copy_tree_r): Use copy_statement_list.
140 (copy_statement_list): Don't recurse.
141 * stor-layout.c (copy_self_referential_tree_r): Don't allow
144 2011-05-05 Joseph Myers <joseph@codesourcery.com>
146 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
147 through from -mfpu= handling.
148 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
150 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
152 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
155 2011-05-05 Steve Ellcey <sje@cup.hp.com>
157 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
159 (hppa[12]*-*-hpux11*): Ditto.
160 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
161 * config/ia64/hpux-unix2003.h: New.
162 * config/pa/pa-hpux1131.opt: New.
163 * config/pa/pa-hpux1131.h: New.
164 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
165 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
166 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
168 2011-05-05 Jakub Jelinek <jakub@redhat.com>
171 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
172 instead of mode as 3rd argument to recursive call.
173 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
174 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
176 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
177 don't give up if mode is Pmode and mem_mode is not VOIDmode.
178 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
179 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
181 2011-05-05 Julian Brown <julian@codesourcery.com>
183 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
184 parenthesis in D-register case.
186 2011-05-05 Joseph Myers <joseph@codesourcery.com>
188 * opt-functions.awk (var_type_struct): Handle Enum options.
189 * optc-gen.awk: Don't check range of variables of character type.
190 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
191 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
192 rs6000_sdata_name, rs6000_explicit_options): Remove.
193 (rs6000_option_override_internal): Check for -malign-power here.
194 Use global_options_set instead of rs6000_explicit_options.
195 (rs6000_parse_fpu_option): Remove.
196 (rs6000_handle_option): Access variables via opts and opts_set
197 pointers. Use error_at and warning_at. Add fall-through
198 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
199 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
200 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
201 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
202 here. Don't use rs6000_parse_fpu_option.
203 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
204 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
205 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
207 (mspe): Use Var and Save.
208 (mtraceback=): Use Enum and Var.
209 (rs6000_traceback_type): New Enum and EnumValue entries.
210 (mfloat-gprs=): Use Enum, Var and Save.
211 (rs6000_float_gprs): New Enum and EnumValue entries.
212 (mlong-double-): use Var and Save.
213 (msched-costly-dep=, minsert-sched-nops=): Use Var.
214 (malign-): Use Enum and Var.
215 (rs6000_alignment_flags): New Enum and EnumValue entries.
217 (fpu_type_t): New Enum and EnumValue entries.
218 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
219 global_options_set instead of rs6000_explicit_options.
220 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
221 global_options_set instead of rs6000_explicit_options.
222 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
223 global_options_set instead of rs6000_explicit_options.
224 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
225 global_options_set instead of rs6000_explicit_options.
226 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
227 global_options_set instead of rs6000_explicit_options.
228 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
229 global_options_set instead of rs6000_explicit_options.
230 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
232 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
233 global_options_set instead of rs6000_explicit_options.
234 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
235 (rs6000_cmodel): New Enum and EnumValue entries.
236 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
237 global_options_set instead of rs6000_explicit_options.
238 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
239 (mtls-size=): Use Enum and Var.
240 (rs6000_tls_size): New Enum and EnumValue entries.
242 2011-05-05 Michael Matz <matz@suse.de>
244 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
245 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
246 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
247 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
248 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
249 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
250 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
251 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
252 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
253 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
254 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
255 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
256 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
257 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
258 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
259 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
261 2011-05-05 Richard Guenther <rguenther@suse.de>
263 * expmed.c (expand_variable_shift): Rename to ...
264 (expand_shift_1): ... this. Take an expanded shift amount.
265 For rotates recurse directly not building trees for the shift amount.
266 (expand_variable_shift): Wrap around expand_shift_1.
267 (expand_shift): Adjust.
269 2011-05-05 Jakub Jelinek <jakub@redhat.com>
271 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
273 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
275 * tree.h (get_pending_sizes): Remove prototype.
276 (put_pending_size): Likewise.
277 (put_pending_sizes): Likewise.
278 * stor-layout.c (pending_sizes): Delete.
279 (get_pending_sizes): Likewise.
280 (put_pending_size): Likewise.
281 (put_pending_sizes): Likewise.
282 (variable_size): Do not call put_pending_size and tidy up.
283 * function.h (struct function): Remove dont_save_pending_sizes_p.
284 * lto-streamer-in.c (input_function): Do not stream it.
285 * lto-streamer-out.c (output_function): Likewise.
286 * tree-inline.c (initialize_cfun): Do not copy it.
287 * c-decl.c (store_parm_decls): Do not set it.
288 * omp-low.c (create_task_copyfn): Likewise.
289 * tree-optimize.c (tree_rest_of_compilation): Likewise.
291 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
293 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
295 (*movdf_internal): Ditto.
296 (*movdf_internal_nointeger): Ditto.
297 (*movsf_internal): Ditto.
299 2011-05-05 Joseph Myers <joseph@codesourcery.com>
301 * c-decl.c (finish_decl): Don't call get_pending_sizes.
302 (grokparm): Add parameter expr. Pass it to grokdeclarator.
303 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
304 (c_variable_size): Remove.
305 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
306 call put_pending_sizes.
307 (get_parm_info): Add parameter expr. Use it to set
308 arg_info->pending_sizes.
309 (store_parm_decls): Use arg_info->pending_sizes instead or calling
311 * c-parser.c (c_parser_parms_declarator): Update call to
312 c_parser_parms_list_declarator.
313 (c_parser_parms_list_declarator): Take parameter expr. Update
314 call to push_parm_decl. Update recursive call. Don't call
315 get_pending_sizes. Update calls to get_parm_info.
316 (c_parser_objc_method_definition): Update calls to
317 c_parser_objc_method_decl and objc_start_method_definition.
318 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
319 (c_parser_objc_method_decl): Add parameter expr. Update call to
321 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
322 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
323 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
325 2011-05-05 Michael Hope <michael.hope@linaro.org>
328 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
331 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
333 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
334 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
335 (spu_output_mi_thunk): New function.
337 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
339 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
340 targetm.asm_out.print_operand.
341 * config/sol2.c: Include target.h.
343 2011-05-04 Jan Hubicka <jh@suse.cz>
345 * ipa-inline.c (reset_edge_caches): New function.
346 (update_caller_keys): Add check_inlinablity_for; do not
347 reset edge caches; remove now unnecesary loop.
348 (update_callee_keys): Add comments; reset node_growth_cache of callee.
349 (update_all_callee_keys): Likewise.
350 (inline_small_functions): Sanity check cache; update code
353 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
355 PR rtl-optimization/47612
356 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
357 as the last insn of the sequence to be moved.
359 2011-05-04 Tobias Burnus <burnus@net-b.de>
362 * doc/invoke.texi (Ofast): Document that it
363 enables Fortran's -fno-protect-parens.
365 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
367 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
369 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
371 * stor-layout.c (variable_size): Do not issue errors.
373 2011-05-04 Richard Guenther <rguenther@suse.de>
375 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
376 for array-ref indices.
377 (tree_coverage_counter_addr): Likewise.
378 (build_fn_info_type): Use size_int for index types.
379 (build_gcov_info): Likewise.
381 2011-05-04 Richard Guenther <rguenther@suse.de>
383 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
385 * c-typeck.c (really_start_incremental_init): Use bitsize_int
386 for constructor indices.
387 (push_init_level): Likewise.
389 2011-05-04 Richard Guenther <rguenther@suse.de>
391 * explow.c (promote_mode): Move variable declarations before code.
393 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
395 * tree.h (build_function_type_array): Declare.
396 (build_varargs_function_type_array): Declare.
397 (build_function_type_vec, build_varargs_function_type_vec): Define.
398 * tree.c (build_function_type_array_1): New function.
399 (build_function_type_array): New function.
400 (build_varargs_function_type_array): New function.
402 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
404 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
405 before setting STMT_VINFO_TYPE.
407 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
409 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
410 instead of spu_pass_by_reference.
412 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
414 * calls.c (emit_library_call_value_1): Invoke
415 promote_function_mode hook on libcall arguments.
416 * explow.c (promote_function_mode, promote_mode): Handle TYPE
418 * targhooks.c (default_promote_function_mode): Lisewise.
419 * config/s390/s390.c (s390_promote_function_mode): Likewise.
420 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
422 * doc/tm.texi: Document that TYPE argument might be NULL.
424 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
426 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
428 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
431 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
433 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
435 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
436 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
438 * mips-tfile.c: ... here.
439 Don't include coretypes.h, tm.h, filenames.h.
440 (saber_stop): Remove definition and all calls.
442 (__LINE__): Remove default.
443 (Size_t, Ptrdiff_t): Remove definitions.
444 Replace by size_t, ptrdiff_t.
445 [!MIPS_DEBUGGING_INFO]: Remove.
446 (SHASH_SIZE, THASH_SIZE): Remove defaults.
447 (progname): Add const.
449 Replace all uses by static.
450 (ALIGN_SYMTABLE_OFFSET): Remove default.
451 * mips-tdump.c: Don't include coretypes.h, tm.h.
452 Remove !MIPS_IS_STAB guard.
453 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
454 $(TM_H), filenames.h dependencies.
455 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
457 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
460 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
461 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
463 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
466 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
467 account and save/restore RETS.
468 (PROFILE_BEFORE_PROLOGUE): Define.
469 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
470 the push insn to use predecrement.
472 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
475 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
477 2011-05-04 Nick Clifton <nickc@redhat.com>
479 * config/mn10300/mn10300.c: Include cfgloop.h.
481 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
482 Lcc or a FLcc insn into the instruction stream.
483 (mn10300_block_contains_call): New function. Returns true if the
484 given basic block contains a CALL insn.
485 (mn10300_loop_contains_call_insn): New function. Returns true if
486 the given loop contains a CALL insn.
487 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
488 to use the SETLB and Lcc or FLcc insns.
489 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
490 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
491 * config/mn10300/mn10300.opt (msetlb): New option. Used to
492 disable the SETLB optimization.
493 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
494 __SETLB__ or __NO_SETLB__.
495 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
496 (movsf_internal): Handle MDR register.
497 (cmpsi): Make visible.
498 (setlb): New pattern.
502 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
505 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
507 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
508 (vec_concatv2di_rex64_sse): Ditto.
509 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
510 (*vec_extractv2di_1_rex64): Ditto.
513 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
515 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
517 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
519 2011-05-04 Richard Guenther <rguenther@suse.de>
521 * tree.h (int_const_binop): Remove notrunc argument.
522 * fold-const.c (int_const_binop): Remove notrunc argument. Always
523 create integer constants that are properly truncated.
524 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
525 (const_binop): Remove zero notrunc argument to int_const_binop.
526 (size_binop_loc): Likewise.
527 (fold_div_compare): Likewise.
528 (maybe_canonicalize_comparison_1): Likewise.
529 (fold_comparison): Likewise.
530 (fold_binary_loc): Likewise.
531 (multiple_of_p): Likewise.
532 * expr.c (store_constructor): Likewise.
533 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
534 (maybe_fold_stmt_addition): Likewise.
535 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
536 * stor-layout.c (layout_type): Likewise.
537 * tree-data-ref.c (tree_fold_divides_p): Likewise.
538 * tree-sra.c (build_ref_for_offset): Likewise.
539 (build_user_friendly_ref_for_offset): Likewise.
540 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
541 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
542 * tree-ssa-loop-niter.c (inverse): Likewise.
543 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
544 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
545 * tree-switch-conversion.c (check_range): Likewise.
546 (build_constructors): Likewise.
547 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
548 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
549 (extract_range_from_assert): Likewise.
550 (vrp_int_const_binop): Likewise.
551 (extract_range_from_binary_expr): Likewise.
552 (extract_range_from_unary_expr): Likewise.
553 (check_array_ref): Likewise.
554 (find_case_label_range): Likewise.
555 (simplify_div_or_mod_using_ranges): Likewise.
556 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
557 comparing case labels for merging.
559 2011-05-03 Mark Wielaard <mjw@redhat.com>
561 * dwarf2out.c (debug_str_hash_forced): Removed.
562 (gen_label_for_indirect_string): Removed.
563 (get_debug_string_label): Removed.
564 (AT_string_form): Generate label directly.
565 (output_indirect_string): Test indirect_string_node for
566 DW_FORM_strp instead of checking label and refcount.
567 (prune_indirect_string): Removed.
568 (prune_unused_types): Don't check debug_str_hash_forced or
569 call prune_indirect_string.
571 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
574 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
576 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
580 * combine.c (try_combine): Skip debug insns at m_split tests.
582 2011-04-26 Mark Wielaard <mjw@redhat.com>
585 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
586 when info_section_emitted.
588 2011-05-03 Joseph Myers <joseph@codesourcery.com>
590 * config/mips/mips-opts.h: New.
591 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
593 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
594 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
595 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
597 * config/mips/mips.h (enum mips_code_readable_setting): Move to
599 (mips_abi, mips_code_readable): Don't declare.
600 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
601 (mabi=): Use Enum and Var.
602 (mips_abi): New Enum and EnumValue entries.
603 (mcode-readable=): Use Enum and Var.
604 (mips_code_readable_setting): New Enum and EnumValue entries.
605 (mr10k-cache-barrier=): Use Enum and Var.
606 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
608 2011-05-03 Jan Hubicka <jh@suse.cz>
610 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
611 replace hash by pointer map.
612 (cgraph_node_set_element_def, cgraph_node_set_element,
613 const_cgraph_node_set_element, varpool_node_set_element_def,
614 varpool_node_set_element, const_varpool_node_set_element): Remove.
615 (free_cgraph_node_set, free_varpool_node_set): New function.
616 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
617 * tree-emutls.c: Free varpool node set.
618 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
619 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
620 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
621 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
622 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
623 Move here from ipa.c; implement using pointer_map
624 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
625 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
626 debug_cgraph_node_set, varpool_node_set_new,
627 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
628 dump_varpool_node_set, debug_varpool_node_set):
630 * passes.c (ipa_write_summaries): Update.
632 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
635 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
636 bf542/bf544/bf547/bf548/bf549.
638 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
640 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
642 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
645 * config/bfin/bfin.md (MOVCC): New mode_macro.
646 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
647 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
648 comments from generated assembly.
650 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
653 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
654 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
655 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
656 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
657 * config/bfin/lib1funcs.asm (___muldi3): New function.
659 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
661 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
662 build_function_type_list instead of build_function_type.
663 Rearrange initialization of `args' to do so.
665 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
667 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
668 instead of build_function_type.
670 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
672 * config/rs6000/rs6000.c (spe_init_builtins): Call
673 build_function_type_list instead of build_function_type.
674 (paired_init_builtins, altivec_init_builtins): Likewise.
675 (builtin_function_type): Likewise.
677 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
679 * config/sh/sh.c (sh_media_init_builtins): Call
680 build_function_type_list instead of build_function_type.
682 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
684 * config/sparc/sparc.c (sparc_file_end): Call
685 build_function_type_list instead of build_function_type.
687 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
689 * config/alpha/alpha.c (alpha_init_builtins): Call
690 build_function_type_list instead of build_function_type.
692 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
694 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
695 build_function_type_list instead of build_function_type.
697 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
699 * config/iq2000/i2000.c (iq2000_init_builtins): Call
700 build_function_type_list instead of build_function_type.
701 Delete `endlink' variable.
703 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
705 * config/avr/avr.c (avr_init_builtins): Call
706 build_function_type_list instead of build_function_type.
708 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
710 * config/picochip/picochip.c (picochip_init_builtins): Call
711 build_function_type_list instead of build_function_type.
712 Delete `endlink' variable.
714 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
716 * config/bfin/bfin.c (bfin_init_builtins): Call
717 build_function_type_list instead of build_function_type.
719 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
722 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
723 that's not CONST_INT. Seemingly redundant check is due to PR39768.
725 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
728 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
729 libbffastfp overrides libgcc when -mfast-fp.
731 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
733 Originally from Bernd Schmidt
734 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
735 * config/bfin/bfin.c (override_options): Test it and error if
738 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
740 Originally From Bernd Schmidt
741 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
744 2011-05-03 Jeff Law <law@redhat.com>
746 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
747 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
748 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
749 than accessing AUX field directly. Free the AUX field before
751 (thread_block, thread_through_loop_header): Likewise.
752 (thread_single_edge, mark_threaded_blocks): Likewise.
753 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
754 (register_jump_thread): Do not attempt to thread to a NULL edge.
756 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
758 * function.c (init_function_start): Call decide_function_section.
759 * varasm.c (decide_function_section): New function.
760 (assemble_start_function): When not using
761 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
762 or first_function_block_is_cold.
763 * rtl.h (decide_function_section): Declare.
765 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
766 Jakub Jelinek <jakub@redhat.com>
769 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
770 only succeed if req_mode is the same as set_mode.
772 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
774 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
775 * genemit.c (gen_exp): Handle RETURN.
776 * emit-rtl.c (verify_rtx_sharing): Likewise.
777 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
778 * rtl.c (copy_rtx): RETURN is shared.
779 * rtl.h (enum global_rtl_index): Add GR_RETURN.
781 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
782 * config/s390/s390.c (s390_emit_epilogue): Likewise.
783 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
784 * config/cris/cris.c (cris_expand_return): Likewise.
785 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
786 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
787 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
788 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
789 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
791 * config/v850/v850.c (expand_epilogue): Likewise.
792 * config/bfin/bfin.c (bfin_expand_call): Likewise.
793 * config/arm/arm.md (epilogue): Likewise.
794 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
795 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
798 2011-05-03 Richard Guenther <rguenther@suse.de>
801 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
802 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
803 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
805 2011-05-03 Richard Guenther <rguenther@suse.de>
807 * c-decl.c (grokdeclarator): Instead of looking at
808 TREE_OVERFLOW check if the constant fits in the index type.
810 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
812 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
813 (vec_store_lanes<mode><mode>): Likewise.
815 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
817 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
818 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
819 convert_optab_index values.
820 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
821 * genopinit.c (optabs): Initialize the new optabs.
822 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
823 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
824 (expand_STORE_LANES): New functions.
825 * tree.h (build_array_type_nelts): Declare.
826 * tree.c (build_array_type_nelts): New function.
827 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
828 (vect_model_load_cost): Likewise.
829 (vect_store_lanes_supported, vect_load_lanes_supported)
830 (vect_record_strided_load_vectors): Declare.
831 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
832 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
833 (vect_transform_strided_load): Split out statement recording into...
834 (vect_record_strided_load_vectors): ...this new function.
835 * tree-vect-stmts.c (create_vector_array, read_vector_array)
836 (write_vector_array, create_array_ref): New functions.
837 (vect_model_store_cost): Add store_lanes_p argument.
838 (vect_model_load_cost): Add load_lanes_p argument.
839 (vectorizable_store): Try to use store-lanes functions for
841 (vectorizable_load): Likewise load-lanes and loads.
842 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
843 to vect_model_store_cost.
844 (vect_build_slp_tree): Likewise vect_model_load_cost.
846 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
848 * hooks.h (hook_bool_mode_uhwi_false): Declare.
849 * hooks.c (hook_bool_mode_uhwi_false): New function.
850 * target.def (array_mode_supported_p): New hook.
851 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
852 * doc/tm.texi: Regenerate.
853 * stor-layout.c (mode_for_array): New function.
854 (layout_type): Use it.
855 * config/arm/arm.c (arm_array_mode_supported_p): New function.
856 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
858 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
861 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
862 for -fstack-check if the size to allocate is negative.
864 2011-05-02 Lawrence Crowl <crowl@google.com>
866 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
867 (timevar_cond_start): New for starting a timer only when it is not
869 (timevar_cond_stop): New for stopping a timer when it was not already
872 * timevar.c (timevar_stop): Enable start/stop timers to start again.
873 (timevar_cond_start): New as above.
874 (timevar_cond_stop): New as above.
876 * timevar.def: Add start/stop timers for compiler phases,
877 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
878 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
879 and TV_PHASE_FINALIZE.
880 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
881 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
882 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
883 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
884 Make unused TV_OVERLOAD into a start/stop timer.
886 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
887 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
888 to indicate that they are start/stop timers.
890 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
891 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
892 Move initialization to do_compile.
893 (do_compile): Add initialization from above.
894 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
896 * c-decl.c (c_write_global_declarations): Add start/stop of
897 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
899 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
900 or TV_PARSE_INLINE, as appropriate.
901 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
902 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
904 2011-05-02 Jason Merrill <jason@redhat.com>
907 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
909 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
912 * c-decl.c (finish_decl): Only create a composite if the types are
915 2011-05-02 Joseph Myers <joseph@codesourcery.com>
917 * config/fr30/fr30-protos.h (Mmode): Don't define.
918 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
919 definition where used.
920 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
921 define. Expand definitions where used.
922 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
923 Expand definitions where used.
924 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
925 rx_function_arg, rx_function_arg_advance,
926 rx_function_arg_boundary): Expand definitions of those macros.
927 * config/v850/v850-protos.h (Mmode): Don't define. Expand
928 definition where used.
930 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
932 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
934 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
935 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
936 with *movv2sf_internal_rex64_avx.
937 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
938 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
939 Use %v prefix in insn mnemonic to handle TARGET_AVX.
940 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
941 "vex" in "prefix" attribute calculation.
942 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
944 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
947 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
948 inputs match the output.
950 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
953 * config/m68k/m68k.c (m68k_expand_prologue): Set
954 current_function_static_stack_size.
956 2011-05-02 Jan Hubicka <jh@suse.cz>
958 * lto-streamer.c (lto_streamer_cache_insert_1,
959 lto_streamer_cache_lookup, lto_streamer_cache_create,
960 lto_streamer_cache_delete): Use pointer map instead of hashtable.
961 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
963 2011-05-02 Joseph Myers <joseph@codesourcery.com>
965 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
966 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
967 config/m68k/t-opts: New files.
968 * config/m68k/m68k-tables.opt: New file (generated).
969 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
970 extra_options and m68k/t-opts to tmake_file.
971 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
972 (all_isas): Initialize using m68k-isas.def.
973 (all_microarchs): Initialize using m68k-microarchs.def.
974 (m68k_find_selection): Remove.
975 (m68k_handle_option): Don't assert that global structures are in
976 use. Use error_at. Access variables via opts pointer. Don't
977 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
978 directly for -m68020-40 and -m68020-60.
979 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
980 m68k_tune_entry here.
981 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
983 (m68k_library_id_string): Remove declaration.
984 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
985 (m68k_library_id_string): New Variable.
986 (march=, mcpu=, mtune=): Use Enum and Var.
988 2011-05-02 Richard Guenther <rguenther@suse.de>
990 * varasm.c (output_constructor_regular_field): Compute zero-based
991 index with double-ints. Make sure to ICE instead of producing
993 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
994 in asserts. Properly use a signed type.
996 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
998 * config/i386/sse.md (V): New mode iterator.
999 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1001 (V_256): Rename from AVX256MODE.
1002 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1003 condition to all users.
1005 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1006 condition to all users.
1007 (VF_128): Make V4SF mode unconditional.
1008 (VF_256): Rename from AVX256MODEF2P.
1009 (VI4F_128): Rename from SSEMODE4S.
1010 (VI8F_128): Rename from SSEMODE2D.
1011 (VI4F_256): Rename from AVX256MODE8P.
1012 (VI8F_256): Rename from AVX256MODE4P.
1013 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1014 (ssescalarmodesuffix): Remove SF and DF modes.
1015 (SSEMODE124): Remove.
1016 (SSEMODE1248): Ditto.
1017 (SSEMODEF2P): Ditto.
1018 (AVXMODEF2P): Ditto.
1019 (AVXMODEFDP): Ditto.
1020 (AVXMODEFSP): Ditto.
1021 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1023 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1025 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1026 xop_pcmov_<mode>256. Use V mode iterator.
1028 Adjust RTX patterns globally for renamed mode attributes.
1030 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1032 * haifa-sched.c (sched_emit_insn): Emit insn before first
1033 non-scheduled insn. Inform back-end about new insn. Add
1034 new insn to scheduled_insns list.
1036 2011-05-02 Richard Guenther <rguenther@suse.de>
1038 PR tree-optimization/48822
1039 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1040 (process_scc): Indicate which iteration we start.
1042 2011-05-02 Jan Hubicka <jh@suse.cz>
1044 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1045 (lto_section_overrun): New.
1046 * lto-section-out.c (append_block): Rename to ...
1047 (lto_append_block): ... this one; export.
1048 (lto_output_1_stream): Move lto lto-streamer.h
1049 (lto_output_data_stream): Update.
1050 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1051 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1054 2011-05-02 Richard Guenther <rguenther@suse.de>
1056 * tree.c (tree_code_counts): New global array.
1057 (record_node_allocation_statistics): Count individual tree codes.
1058 (dump_tree_statistics): Dump individual code stats.
1060 2011-05-01 Jan Hubicka <jh@suse.cz>
1062 * ipa-inline.c (caller_growth_limits): Fix thinko when
1063 looking for largest stack frame.
1064 * ipa-inline.h (dump_inline_summary): Declare.
1065 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1067 (dump_inline_summary): Export.
1068 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1070 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1072 * reginfo.c (memory_move_cost): Change rclass argument type form
1073 'enum reg_class' to reg_class_t.
1074 * reload.h (memory_move_cost): Update prototype.
1075 * postreload.c reload_cse_simplify_set): Change type dclass var to
1077 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1079 (ira_allocate_and_set_costs): Change aclass argument type form
1080 'enum reg_class' to reg_class_t.
1081 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1082 Change aclass argument type to reg_class_t.
1083 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1085 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1086 memory_move_cost call.
1088 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1089 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1090 Change type tmp var to reg_class_t.
1092 2011-04-30 Jan Hubicka <jh@suse.cz>
1094 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1095 inlining into function with flatten attribute.
1096 (want_inline_small_function_p): Be more realistic about inlining
1097 cold calls where callee size grows.
1099 2011-04-30 Jan Hubicka <jh@suse.cz>
1101 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1104 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1106 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1107 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1108 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1109 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1110 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1111 (print_operand): Rename to...
1112 (sparc_print_operand): ...this. Make static. Adjust
1113 sparc_print_operand function call.
1114 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1117 2011-04-30 Jan Hubicka <jh@suse.cz>
1120 * ipa-inline.c (early_inliner): Disable when doing late
1121 addition of function.
1123 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1125 * dwarf2out.c (get_address_mode): New inline.
1126 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1127 if not dwarf_strict emit
1128 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1129 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1130 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1131 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1132 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1133 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1134 mem_loc_descriptor callers.
1135 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1136 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1137 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1138 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1139 (base_types): New variable.
1140 (get_base_type_offset, calc_base_type_die_sizes,
1141 base_type_for_mode, mark_base_types, base_type_cmp,
1142 move_marked_base_types): New functions.
1143 (calc_die_sizes): Assert that die_offset is 0 or equal to
1145 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1146 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1147 callers. If not dwarf_strict, call mem_loc_descriptor even for
1148 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1149 (gen_subprogram_die): Don't give up on call site parameters
1150 with non-integral or large integral modes. Adjust
1151 mem_loc_descriptor callers.
1152 (prune_unused_types): Call prune_unused_types_mark on base_types
1154 (resolve_addr): Call mark_base_types.
1155 (dwarf2out_finish): Call move_marked_base_types.
1157 PR tree-optimization/48809
1158 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1160 (gen_inbound_check): Don't compute index_expr - range_min in utype
1161 again, instead reuse SSA_NAME initialized in build_arrays.
1162 Remove two useless gsi_for_stmt calls.
1164 2011-04-29 Jeff Law <law@redhat.com>
1166 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1168 2011-04-29 Martin Jambor <mjambor@suse.cz>
1170 * cgraph.h (cgraph_postorder): Remove declaration.
1171 * ipa-utils.h (ipa_free_postorder_info): Declare.
1172 (ipa_reverse_postorder): Likewise.
1173 * cgraphunit.c: Include ipa-utils.h.
1174 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1175 * ipa-inline.c: Include ipa-utils.h.
1176 (ipa_inline): Update call to ipa_reverse_postorder.
1177 * ipa-pure-const.c (propagate_pure_const): Update call to
1178 ipa_reduced_postorder and ipa_print_order. Call
1179 ipa_free_postorder_info to clean up.
1180 (propagate_nothrow): Likewise.
1181 * ipa-reference.c (propagate): Removed a useless call to
1182 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1183 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1184 * ipa.c: Include ipa-utils.h.
1185 (ipa_profile): Update call to ipa_reverse_postorder.
1186 (cgraph_postorder): Moved to...
1187 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1188 (ipa_utils_print_order): Renamed to ipa_print_order.
1189 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1191 (ipa_free_postorder_info): New function.
1192 * passes.c: Include ipa-utils.h.
1193 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1194 (ipa_write_summaries): Likewise.
1195 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1196 (cgraphunit.o): Likewise.
1198 (ipa-inline.o): Likewise.
1200 2011-04-29 Jan Hubicka <jh@suse.cz>
1202 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1203 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1204 * ipa-inline.h (clause_t): Turn into unsigned int.
1205 * ipa-inline-analysis.c (add_clause): Do more simplification.
1206 (and_predicates): Shortcut more cases.
1207 (predicates_equal_p): Move forward; check that clauses are properly
1209 (or_predicates): Shortcut more cases.
1210 (edge_execution_predicate): Rewrite as...
1211 (set_cond_stmt_execution_predicate): ... this function; handle
1212 __builtin_constant_p.
1213 (set_switch_stmt_execution_predicate): New .
1214 (compute_bb_predicates): New.
1215 (will_be_nonconstant_predicate): Update TODO.
1216 (estimate_function_body_sizes): Use compute_bb_predicates
1217 and free them later, always try to estimate if stmt is constant.
1218 (estimate_time_after_inlining, estimate_size_after_inlining):
1219 Gracefully handle optimized out edges.
1220 (read_predicate): Fix off by one error.
1222 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1224 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1226 2011-04-27 Xinliang David Li <davidxl@google.com>
1228 * tree-profile.c (init_ic_make_global_vars): Set
1229 tls attribute on ic vars.
1230 * coverage.c (coverage_end_function): Initialize
1231 function_list with zero.
1233 2011-04-29 Richard Guenther <rguenther@suse.de>
1235 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1236 for the type of the result.
1237 (fold_builtin_isascii): Likewise.
1238 (fold_builtin_toascii): Use integer_type_node where appropriate.
1239 (fold_builtin_logb): Likewise.
1240 (fold_builtin_frexp): Likewise.
1241 (fold_builtin_strstr): Likewise.
1242 (fold_builtin_strpbrk): Likewise.
1243 (fold_builtin_fputs): Likewise.
1244 (fold_builtin_sprintf): Likewise.
1245 (fold_builtin_snprintf): Likewise.
1246 (fold_builtin_printf): Likewise.
1247 (do_mpfr_remquo): Use a proper type for the assigned constant.
1248 (do_mpfr_lgamma_r): Likewise.
1249 * dwarf2out.c (resolve_one_addr): Use size_int.
1250 * except.c (init_eh): Likewise.
1251 (assign_filter_values): Use integer_type_node for filter values.
1252 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1254 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1255 for EH region numbers.
1256 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1257 for the shift amount.
1259 2011-04-29 Richard Guenther <rguenther@suse.de>
1261 * expr.h (expand_shift): Rename to ...
1262 (expand_variable_shift): ... this.
1263 (expand_shift): Take a constant shift amount.
1264 * expmed.c (expand_shift): Rename to ...
1265 (expand_variable_shift): ... this.
1266 (expand_shift): New wrapper around expand_variable_shift.
1267 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1268 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1269 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1270 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1271 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1272 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1273 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1274 emit_store_flag_1, emit_store_flag): Likewise.
1275 * builtins.c (expand_builtin_signbit): Likewise.
1276 * calls.c (load_register_parameters): Likewise.
1277 * function.c (assign_parm_setup_block): Likewise.
1278 * lower-subreg.c (resolve_shift_zext): Likewise.
1279 * optabs.c (widen_bswap, expand_abs_nojump,
1280 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1281 * spu/spu.c (spu_expand_extv): Likewise.
1282 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1284 2011-04-29 Richard Guenther <rguenther@suse.de>
1286 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1287 for the remapped region number.
1288 * predict.c (build_predict_expr): Use integer_type_node for the
1290 * fold-const.c (fold_binary_loc): Use integer_type_node for
1291 the shift amount. Use a proper type for the PLUS_EXPR operand.
1293 2011-04-29 Michael Matz <matz@suse.de>
1295 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1296 other trees that just builtins.
1297 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1299 2011-04-29 Richard Guenther <rguenther@suse.de>
1301 * tree-nested.c (get_trampoline_type): Use size_int.
1302 (get_nl_goto_field): Likewise.
1303 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1305 (lower_eh_constructs_2): Likewise.
1306 (lower_resx): Likewise.
1307 (lower_eh_dispatch): Likewise.
1308 * tree-mudflap.c (mf_build_string): Use size_int.
1309 (mudflap_register_call): Use integer_type_node for the flag.
1310 (mudflap_enqueue_constant): Use size_int.
1311 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1312 instead of rebuilding it.
1314 2011-04-29 Richard Guenther <rguenther@suse.de>
1316 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1317 Handle OBJ_TYPE_REF.
1318 (find_func_aliases_for_call): Use it more consistently.
1320 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1322 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1323 (rank_for_schedule): Use it.
1324 (schedule_block): Set it.
1326 2011-04-28 David Li <davidxl@google.com>
1328 * tree.c (crc32_string): Use crc32_byte.
1329 (crc32_byte): New function.
1330 * tree.h (crc32_byte): New function.
1331 * gcov.c (read_graph_file): Handle new cfg_cksum.
1332 (read_count_file): Ditto.
1333 * profile.c (instrument_values): Ditto.
1334 (get_exec_counts): Ditto.
1335 (read_profile_edge_counts): Ditto.
1336 (compute_branch_probabilities): Ditto.
1337 (compute_value_histograms): Ditto.
1338 (branch_prob): Ditto.
1339 (end_branch_prob): Ditto.
1340 * coverage.c (read_counts_file): Ditto.
1341 (get_coverage_counts): Ditto.
1342 (tree_coverage_counter_addr): Ditto.
1343 (coverage_checksum_string): Ditto.
1344 (coverage_begin_output): Ditto.
1345 (coverage_end_function): Ditto.
1346 (build_fn_info_type): Ditto.
1347 (build_fn_info_value): Ditto.
1348 * libgcov.c (gcov_exit): Ditto.
1349 * gcov-dump.c (tag_function): Ditto.
1350 (compute_checksum): Remove.
1352 2011-04-29 Alan Modra <amodra@gmail.com>
1354 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1355 unspec plus offset. Tidy macho code.
1357 2011-04-29 Martin Jambor <mjambor@suse.cz>
1359 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1360 node instead of a decl. Update all callers.
1361 * cgraph.h: Update declaration.
1363 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1365 PR tree-optimization/48765
1366 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1367 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1368 to indicate if loop aware SLP is being used. Scan the statements
1369 and update the vectorization factor according to the type of
1370 vectorization before statement analysis.
1371 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1372 pass it to vect_analyze_loop_operations.
1373 (vectorizable_reduction): Set number of copies to 1 in case of pure
1375 * tree-vect-stmts.c (vectorizable_conversion,
1376 vectorizable_assignment, vectorizable_shift,
1377 vectorizable_operation, vectorizable_type_demotion,
1378 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1380 (vectorizable_condition): Move the check that it is not SLP
1381 vectorization before the number of copies check.
1382 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1383 to vectorize the loop using SLP.
1385 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1388 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1391 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1393 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1394 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1395 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1396 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1397 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1399 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1400 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1401 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1402 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1403 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1404 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1406 * config/i386/linux.h (REG_NAME): Don't define.
1407 * config/i386/linux64.h (REG_NAME): Don't define.
1408 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1409 Undefine before defining.
1411 2011-04-28 Jan Hubicka <jh@suse.cz>
1413 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1414 nonconstant_names array.
1415 (estimate_function_body_sizes): Build nonconstant_names array; handle
1416 BUILT_IN_CONSTANT_P.
1418 2011-04-28 Richard Guenther <rguenther@suse.de>
1422 2011-04-28 Richard Guenther <rguenther@suse.de>
1424 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1425 as late as possible.
1427 2011-04-28 Richard Guenther <rguenther@suse.de>
1429 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1430 (debug_constraint): Do it here.
1431 (dump_constraints): And here.
1432 (rewrite_constraints): And here.
1433 (dump_constraint_edge): Remove.
1434 (dump_constraint_graph): Rewrite to produce DOT output.
1435 (solve_constraints): Build succ graph as late as possible.
1436 Dump constraint graphs before and after solving.
1438 2011-04-28 Richard Guenther <rguenther@suse.de>
1440 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1441 New function split out from ...
1442 (find_func_aliases): ... here. Call it.
1443 (find_func_aliases_for_call): Likewise.
1445 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1447 * internal-fn.h (internal_fn_name_array): Declare.
1448 (internal_fn_flags_array): Likewise.
1450 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1452 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1453 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1455 (ssemodefsuffix): Remove.
1456 (ssevecmodesuffix): New mode attribute.
1457 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1458 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1459 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1460 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1461 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1462 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1463 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1464 ssemodesuffix mode attribute.
1465 (float splitters): Use ssevecmodesuffix mode attribute.
1466 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1467 (sseinsmode): Rename from avxvecmode.
1468 (avxsizesuffix): Rename from avxmodesuffix.
1469 (sseintvecmode): Rename from avxpermvecmode.
1470 (ssedoublevecmode): Rename from ssedoublesizemode.
1471 (ssehalfvecmode): Rename from avxhalfvecmode.
1472 (ssescalarmode): Rename from avxscalarmode.
1473 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1474 templates for ssemodesuffix mode attribute.
1475 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1478 Adjust RTX patterns globally for renamed mode attributes.
1480 2011-04-27 Jan Hubcika <jh@suse.cz>
1482 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1483 * ipa-inline-analysis.c: Include alloc-pool.h.
1484 (edge_predicate_pool): New.
1485 (trye_predicate_p): New function
1486 (false_predicate_p): New function.
1487 (add_clause): Sanity check that false clauses are "optimized";
1488 never add clauses to predicate that is already known to be false.
1489 (and_predicate): Use flase_predicate_p.
1490 (evaulate_predicate): Rename to ...
1491 (evaluate_predicate): ... this one; update all callers; assert
1492 that false is not listed among possible truths.
1493 (dump_predicate): Use true_predicate_p.
1494 (account_size_time): Use false_predicate_p.
1495 (evaulate_conditions_for_edge): Rename to ...
1496 (evaluate_conditions_for_edge) ... this one.
1497 (edge_set_predicate): New function.
1498 (inline_edge_duplication_hook): Duplicate edge predicates.
1499 (inline_edge_removal_hook): Free edge predicates.
1500 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1501 (dump_inline_summary): Update.
1502 (estimate_function_body_sizes): Set edge predicates.
1503 (estimate_calls_size_and_time): Handle predicates.
1504 (estimate_callee_size_and_time): Update.
1505 (remap_predicate): Add toplev_predicate; update comment.
1506 (remap_edge_predicates): New function.
1507 (inline_merge_summary): Compute toplev predicate; update.
1508 (read_predicate): New function.
1509 (read_inline_edge_summary): Use it.
1510 (inline_read_section): Likewise.
1511 (write_predicate): New function.
1512 (write_inline_edge_summary): Use it.
1513 (inline_write_summary): Likewise.
1514 (inline_free_summary): Free alloc pool and edge summary vec.
1516 2011-04-27 Richard Guenther <rguenther@suse.de>
1518 * tree-ssa-structalias.c (changed_count): Remove.
1519 (changed): Use a bitmap.
1520 (unify_nodes): Adjust.
1521 (do_sd_constraint): Likewise.
1522 (do_ds_constraint): Likewise.
1523 (do_complex_constraint): Likewise.
1524 (solve_graph): Likewise.
1526 2011-04-27 Jan Hubicka <jh@suse.cz>
1528 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1530 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1532 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1533 (avx_vperm2f128_*_operand): Ditto.
1534 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1535 Use avx_vpermilp_parallel in insn condition.
1536 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1537 Use avx_vperm2f128_parallel in insn condition.
1539 2011-04-27 Richard Guenther <rguenther@suse.de>
1541 * Makefile.in (tree-ssa-structalias.o): Remove
1542 gt-tree-ssa-structalias.h dependency.
1543 (GTFILES): Remove tree-ssa-structalias.c.
1544 * tree.c (allocate_decl_uid): New function.
1545 (make_node_stat): Use it.
1546 (copy_node_stat): Likewise.
1547 * tree.h (allocate_decl_uid): Declare.
1548 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1549 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1550 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1551 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1552 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1553 (struct heapvar_map): Likewise.
1554 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1555 heapvar_insert): Likewise.
1556 (make_heapvar_for): Rename to ...
1557 (make_heapvar): ... this. Simplify.
1558 (fake_var_decl_obstack): New global var.
1559 (build_fake_var_decl): New function.
1560 (make_constraint_from_heapvar): Adjust.
1561 (handle_lhs_call): Likewise.
1562 (create_function_info_for): Likewise.
1563 (intra_create_variable_infos): Likewise.
1564 (init_alias_vars): Allocate fake_var_decl_obstack.
1565 (init_alias_heapvars, delete_alias_heapvars): Remove.
1566 (compute_points_to_sets): Do not call init_alias_heapvars.
1567 (ipa_pta_execute): Likewise.
1568 (delete_points_to_sets): Free fake_var_decl_obstack.
1570 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1572 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1573 (si_from_UTItype, si_to_UTItype): New functions.
1574 (__udivmodti4): Use them to implement type-punning.
1575 * config/spu/multi3.c (union qword_TItype): New data type.
1576 (si_from_TItype, si_to_TItype): New functions.
1577 (__multi3): Use them to implement type-punning.
1579 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1581 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1583 2011-04-27 Jan Hubicka <jh@suse.cz>
1585 * ipa-prop.c (function_insertion_hook_holder): New holder.
1586 (ipa_add_new_function): New function.
1587 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1588 Register/deregister holder.
1590 2011-04-27 Richard Guenther <rguenther@suse.de>
1592 PR tree-optimization/48772
1593 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1595 2011-04-27 Richard Guenther <rguenther@suse.de>
1597 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1598 TARGET_MEM_REF handling.
1600 2011-04-27 Nick Clifton <nickc@redhat.com>
1602 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1603 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1604 (REG_CLASS_NAMES): Likewise.
1605 (REG_CLASS_CONTENTS): Likewise.
1606 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1607 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1608 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1609 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1610 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1611 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1612 duplicate register classes.
1613 (frv_class_likely_spilled_p): Likewise.
1614 (frv_register_move_cost): Likewise.
1616 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1617 end of the regno_reg_class array.
1619 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1622 * c-typeck.c (build_binary_op): Don't wrap arguments if
1623 int_operands is true.
1625 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1628 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1629 targetm.calls.must_pass_in_stack for void type.
1631 2011-04-26 Jan Hubicka <jh@suse.cz>
1633 * cgraphbuild.c (build_cgraph_edges): Update call
1634 of cgraph_create_edge and cgraph_create_indirect_edge.
1635 * cgraph.c (cgraph_create_edge_including_clones,
1636 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1637 cgraph_update_edges_for_call_stmt_node): Do not take nest
1638 argument; do not initialize call_stmt_size/time.
1639 (dump_cgraph_node): Do not dump nest.
1640 (cgraph_clone_edge): Do not take loop_nest argument;
1641 do not propagate it; do not clone call_stmt_size/time.
1642 (cgraph_clone_node): Likewise.
1643 (cgraph_create_virtual_clone): Update.
1644 * cgraph.h (struct cgraph_edge): Remove
1645 call_stmt_size/call_stmt_time/loop_nest.
1646 (cgraph_create_edge, cgraph_create_indirect_edge,
1647 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1649 * tree-emutls.c (gen_emutls_addr): Update.
1650 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1651 loop_nest; handle indirect calls, too.
1652 (clone_inlined_nodes): Do not care about updating inline summaries.
1653 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1654 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1655 stream call_stmt_size/call_stmt_time/loop_nest.
1656 * ipa-inline.c (edge_badness): Update.
1657 (ipa_inline): dump summaries after inlining.
1658 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1660 (inline_edge_summary): New function.
1661 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1662 (inline_edge_removal_hook): Handle edge summaries.
1663 (inline_edge_duplication_hook): New hook.
1664 (inline_summary_alloc): Alloc hooks.
1665 (initialize_growth_caches): Do not register removal hooks.
1666 (free_growth_caches); Do not free removal hook.
1667 (dump_inline_edge_summary): New function.
1668 (dump_inline_summary): Use it.
1669 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1670 (inline_update_callee_summaries): New function.
1671 (inline_merge_summary): Use it.
1672 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1673 (read_inline_edge_summary): New function.
1674 (inline_read_section): Use it.
1675 (write_inline_edge_summary): New function.
1676 (inline_write_summary): Use it.
1677 (inline_free_summary): Free edge new holders.
1678 * tree-inline.c (copy_bb): Update.
1680 2011-04-26 Jason Merrill <jason@redhat.com>
1682 * tree-eh.c (lower_try_finally_switch): Create the label along with
1683 the CASE_LABEL_EXPR.
1685 2011-04-26 David S. Miller <davem@davemloft.net>
1686 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1688 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1689 * configure: Regenerate.
1691 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1694 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1696 (VEC_reduc): New code iterator and splitters for vector reduction.
1697 (VEC_reduc_name): Ditto.
1698 (VEC_reduc_rtx): Ditto.
1699 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1700 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1702 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1703 support for extracting SF on VSX.
1705 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1706 generating xscvspdp.
1707 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1708 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1709 double add, minimum, maximum vector reduction.
1710 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1711 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1712 optimize double vector reduction.
1713 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1715 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1717 * config/fr30/fr30.h (inhibit_libc): Don't define.
1718 * config/m32r/m32r-protos.h: Correct comment.
1719 * config/v850/v850.h (GHS_default_section_names,
1720 GHS_current_section_names): Use tree, not union tree_node *.
1722 2011-04-26 Xinliang David Li <davidxl@google.com>
1724 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1725 * c-family/c-opts.c (c_common_handle_option): Set
1726 warn_maybe_uninitialized.
1727 * opts.c (common_handle_option): Ditto.
1728 * common.opt: New option.
1729 * tree-ssa.c (warn_uninit): Add one more parameter.
1730 (warn_uninitialized_var): Pass warning code.
1731 * tree-flow.h: Interface change.
1734 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1736 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1737 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1738 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1740 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1742 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1743 * config/mips/mips.opt (mmips-tfile): Remove.
1745 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1746 mips-tdump reference to ...
1747 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1748 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1749 reference by Tru64 UNIX.
1751 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1754 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1755 is error_mark_node, set value to NULL.
1757 PR tree-optimization/48734
1758 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1759 if return value from maybe_fold_*_comparsions isn't something
1760 the code is prepared to handle.
1762 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1764 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1766 (ext_QIreg_nomode_operands): Remove.
1767 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1771 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1773 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1775 2011-04-26 Richard Guenther <rguenther@suse.de>
1777 * c-typeck.c (build_unary_op): Do not expand array-refs via
1778 pointer arithmetic. Only adjust qualifiers for function types.
1780 2011-04-26 Richard Guenther <rguenther@suse.de>
1783 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1784 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1785 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1786 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1788 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1790 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1791 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1792 * doc/extend.texi: Document __underlying_type.
1794 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1796 * config/rs6000/titan.md (automata_option "progress"): Remove.
1798 2011-04-25 Jeff Law <law@redhat.com>
1800 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1802 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1804 * system.h (ENUM_BITFIELD): Remove.
1806 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1807 Eric Botcazou <ebotcazou@adacore.com>
1809 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1810 for STORE_FLAG_VALUE==-1 case.
1812 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1815 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1816 LEGITIMATE_PIC_OPERAND_P.
1818 2011-04-24 Jan Hubicka <jh@suse.cz>
1820 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1822 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1823 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1824 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1825 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1826 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1827 Sanity check predicate length.
1828 (remap_predicate): Likewise; sanity check jump functions.
1829 (inline_read_section, inline_write_summary): Sanity check
1832 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1835 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1836 __is_literal_type, and __is_trivial; update throughout about
1837 possibly cv-qualified void types.
1839 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1841 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1842 testsuite and make it version agnostic.
1844 2011-04-22 Jan Hubicka <jh@suse.cz>
1846 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
1848 2011-04-23 Jakub Jelinek <jakub@redhat.com>
1851 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
1852 to VOID_TYPE even around MODIFY_EXPR.
1854 2011-04-22 Mike Stump <mikestump@comcast.net>
1856 * gensupport.c (read_md_rtx): Fix typo in comment.
1857 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
1860 2011-04-22 Jan Hubicka <jh@suse.cz>
1862 * gengtype.c (open_base_files): Add ipa-inline.h include.
1863 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
1864 ipa-prop.c; update all uses.
1865 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
1866 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
1867 merge summary of inlined function into former caller.
1868 * ipa-inline.c (max_benefit): Remove.
1869 (edge_badness): Compensate for removal of benefits.
1870 (update_caller_keys): Use
1871 reset_node_growth_cache/reset_edge_growth_cache.
1872 (update_callee_keys): Likewise.
1873 (update_all_callee_keys): Likewise.
1874 (inline_small_functions): Do not collect max_benefit; do not reset
1875 estimated_growth; call free_growth_caches and initialize_growth_caches.
1876 * ipa-inline.h (struct condition, type clause_t, struct predicate,
1877 struct size_time_entry): New structures.
1878 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
1879 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
1880 and estimated_growth.
1881 (edge_growth_cache_entry): New structure.
1882 (node_growth_cache, edge_growth_cache): New global vars.
1883 (estimate_growth): Turn into inline.
1884 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
1885 initialize_growth_caches, free_growth_caches): Declare.
1886 (estimate_edge_growth): Rewrite.
1887 (estimate_edge_time): Implement as inline cache lookup.
1888 (reset_node_growth_cache, reset_edge_growth_cache): New inline
1890 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
1891 (NUM_CONDITIONS): New constant.
1892 (predicate_conditions): New enum.
1893 (IS_NOT_CONSTANT): New constant.
1894 (edge_removal_hook_holder): New var.
1895 (node_growth_cache, edge_growth_cache): New global vars.
1896 (true_predicate, single_cond_predicate, false_predicate,
1897 not_inlined_predicate, add_condition, add_clause, and_predicates,
1898 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
1899 dump_clause, dump_predicate, account_size_time,
1900 evaulate_conditions_for_edge): New functions.
1901 (inline_summary_alloc): Move to heap.
1902 (inline_node_removal_hook): Clear condition and entry vectors.
1903 (inline_edge_removal_hook): New function.
1904 (initialize_growth_caches, free_growth_caches): New function.
1905 (dump_inline_summary): Update.
1906 (edge_execution_predicate): New function.
1907 (will_be_nonconstant_predicate): New function.
1908 (estimate_function_body_sizes): Compute BB and constantness predicates.
1909 (compute_inline_parameters): Do not clear estimated_growth.
1910 (estimate_edge_size_and_time): New function.
1911 (estimate_calls_size_and_time): New function.
1912 (estimate_callee_size_and_time): New function.
1913 (remap_predicate): New function.
1914 (inline_merge_summary): New function.
1915 (do_estimate_edge_time): New function based on...
1916 (estimate_edge_time): ... this one.
1917 (do_estimate_edge_growth): New function.
1918 (do_estimate_growth): New function based on....
1919 (estimate_growth): ... this one.
1920 (inline_analyze_function): Analyze after deciding on jump functions.
1921 (inline_read_section): New function.
1922 (inline_read_summary): Use it.
1923 (inline_write_summary): Write all the new data.
1924 * ipa-prop.c (ipa_get_param_decl_index): Export.
1925 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
1926 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
1928 (ipa_get_lattice): Move here from ipa-cp.c
1929 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
1930 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
1931 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
1932 cgraph_edge_inlinable_p): Remove.
1933 * cgraphunit.c: Include ipainline.h
1934 (cgraph_process_new_functions): Update call of
1935 compute_inline_parameters.
1937 2011-04-22 Richard Guenther <rguenther@suse.de>
1939 * tree.c (build_int_cst): Properly create canonicalized integer
1941 (build_int_cst_type): Remove scary comments.
1943 2011-04-22 Xinliang David Li <davidxl@google.com>
1945 * toplev.c (process_options): Enable -Werror=coverage-mismatch
1946 by default when -Wno-error is not specified.
1947 * opts-global.c (decode_options): Remove call to
1948 control_warning_options.
1950 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1952 PR tree-optimization/48717
1953 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
1954 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
1956 2011-04-22 Joseph Myers <joseph@codesourcery.com>
1958 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
1959 definition where used.
1961 2011-04-22 Jakub Jelinek <jakub@redhat.com>
1964 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
1965 TREE_STATIC variables declared inside of some OpenMP construct.
1967 2011-04-22 Martin Jambor <mjambor@suse.cz>
1970 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
1972 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
1975 * c-typeck.c (pop_init_level): Do not warn about initializing
1978 2011-04-22 Alan Modra <amodra@gmail.com>
1980 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
1981 when returning call_cookie.
1982 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
1983 pointers, to functions with no more vector args than the current
1984 function, and some non-local calls for ABI_V4.
1985 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
1986 sibcall_nonlocal_aix64): Combine to ..
1987 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
1988 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
1989 (sibcall_value_nonlocal_aix<mode>): ..likewise.
1990 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
1991 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
1993 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
1994 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
1995 sibcall_value_symbolic_64): Delete.
1997 2011-04-21 Xinliang David Li <davidxl@google.com>
1999 * cgraph.h: Remove pid.
2000 * cgraph.c: Remove pid.
2001 * value-prof.c (init_node_map): New function.
2002 (del_node_map): New function.
2003 (find_func_by_funcdef_no): New function.
2004 (gimple_ic_transform): Call new function.
2005 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2006 * function.c (get_last_funcdef_no): New function.
2007 * function.h (get_last_funcdef_no): New function.
2008 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2009 to libgcov function.
2010 (tree-profiling): Call node map init and delete function.
2012 2011-04-21 Ian Lance Taylor <iant@google.com>
2014 * godump.c (go_format_type): Use exported Go name for anonymous
2017 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2019 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2020 Call builtin_function_type_list instead of builtin_function_type.
2021 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2023 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2025 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2026 build_function_type_list instead of build_function_type.
2027 Delete variable `endlink'.
2029 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2031 * config/s390/s390.c (s390_init_builtins): Call
2032 build_function_type_list instead of build_function_type.
2034 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2036 * config/ia64/ia64.c (ia64_init_builtins): Call
2037 build_function_type_list instead of builtin_function_type.
2039 2011-04-21 Easwaran Raman <eraman@google.com>
2041 * cfgexpand.c (stack_var): Remove OFFSET...
2042 (add_stack_var): ...and its reference here...
2043 (expand_stack_vars): ...and here.
2044 (stack_var_cmp): Sort by descending order of size.
2045 (partition_stack_vars): Change heuristic.
2046 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2047 (dump_stack_var_partition): Add newline after each partition.
2049 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2050 Jeff Law <law@redhat.com>
2052 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2053 * gengtype.c (matching_file_name_substitute): Likewise.
2055 2011-04-21 Richard Guenther <rguenther@suse.de>
2058 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2060 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2062 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2064 2011-04-21 Richard Guenther <rguenther@suse.de>
2066 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2069 2011-04-21 Richard Guenther <rguenther@suse.de>
2071 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2072 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2073 Use DECL_P, not SSA_VAR_P.
2074 (ptr_derefs_may_alias_p): Likewise.
2075 (ptr_deref_may_alias_ref_p_1): Likewise.
2076 (decl_refs_may_alias_p): Likewise.
2077 (refs_may_alias_p_1): Likewise.
2078 (ref_maybe_used_by_call_p_1): Likewise.
2079 (call_may_clobber_ref_p_1): Likewise.
2080 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2081 are either MEM_REF or TARGET_MEM_REF.
2082 (indirect_refs_may_alias_p): Likewise.
2083 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2084 for MEM_EXPR of indirect calls.
2086 2011-04-21 Tristan Gingold <gingold@adacore.com>
2088 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2089 (dst_file_info_struct): Remove flen field.
2090 (lookup_filename): Remove code that set flen field.
2092 2011-04-21 Tristan Gingold <gingold@adacore.com>
2094 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2096 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2099 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2100 vec_extract and vec_concat for non-SSE4_1 targets.
2102 2011-04-21 Richard Guenther <rguenther@suse.de>
2104 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2107 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2109 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2111 (FILE): Don't undefine.
2113 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2115 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2117 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2119 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2120 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2121 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2123 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2124 definitions where used.
2125 * config/microblaze/microblaze.h (struct microblaze_args): Use
2126 rtx, not struct rtx_def *.
2127 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2129 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2130 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2131 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2132 not struct rtx_def *.
2133 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2135 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2137 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2139 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2141 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2142 operand_equal_p to compare DR_BASE_ADDRESSes.
2143 (vect_check_interleaving): Likewise.
2145 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2148 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2149 for all Neon struct constants.
2151 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2153 * target.def (legitimate_constant_p): New hook.
2154 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2155 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2156 * doc/tm.texi: Regenerate.
2157 * hooks.h (hook_bool_mode_rtx_true): Declare.
2158 * hooks.c (hook_bool_mode_rtx_true): Define.
2159 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2160 * calls.c (precompute_register_parameters): Replace uses of
2161 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2162 (emit_library_call_value_1): Likewise.
2163 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2164 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2165 * ira-costs.c (scan_one_insn): Likewise.
2166 * recog.c (general_operand, immediate_operand): Likewise.
2167 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2168 * reload1.c (init_eliminable_invariants): Likewise.
2170 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2172 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2173 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2175 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2176 * config/alpha/predicates.md (input_operand): Update call to
2177 alpha_legitimate_constant_p.
2179 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2180 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2181 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2182 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2183 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2184 (arm_legitimate_constant_p): New functions.
2185 (arm_cannot_force_const_mem): Make static.
2187 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2189 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2190 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2191 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2192 instead of bfin_legitimate_constant_p.
2193 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2194 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2196 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2198 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2200 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2201 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2202 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2203 (frv_legitimate_constant_p): Make static. Add a mode argument.
2205 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2206 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2207 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2209 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2210 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2211 * config/i386/i386.c (legitimate_constant_p): Rename to...
2212 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2214 (ix86_cannot_force_const_mem): Update accordingly.
2215 (ix86_legitimate_address_p): Likewise.
2216 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2217 * config/i386/i386.md: Update commentary.
2219 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2220 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2221 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2222 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2224 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2226 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2227 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2228 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2229 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2231 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2232 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2233 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2235 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2236 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2237 (m32r_legitimate_constant_p): New function.
2239 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2240 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2241 LEGITIMATE_CONSTANT_P.
2242 (LEGITIMATE_CONSTANT_P): Delete.
2243 * config/m68k/m68k.c (m68k_expand_prologue): Call
2244 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2245 (m68k_legitimate_constant_p): New function.
2246 * config/m68k/m68k.md: Update comments.
2248 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2249 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2250 (mcore_legitimate_constant_p): New function.
2252 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2253 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2254 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2255 Add a mode argument.
2256 (mep_legitimate_address): Update accordingly.
2257 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2259 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2261 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2262 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2263 static. Check OP's mode for VOIDmode.
2264 (microblaze_legitimate_constant_p): New function.
2265 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2267 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2268 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2269 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2270 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2271 * config/mips/predicates.md: Update comments.
2273 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2274 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2275 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2276 (mmix_legitimate_constant_p): Make static, return a bool, and take
2278 (mmix_print_operand_address): Update accordingly.
2280 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2282 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2283 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2284 static. Add a mode argument.
2285 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2287 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2289 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2290 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2291 (pa_legitimate_constant_p): New function.
2293 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2295 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2296 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2297 (pdp11_legitimate_constant_p): New function.
2299 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2300 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2301 (rs6000_legitimate_constant_p): New function.
2303 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2304 (rx_legitimate_constant_p): ...this.
2305 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2306 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2307 (rx_legitimate_constant_p): ...this.
2308 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2309 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2311 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2312 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2313 * config/s390/s390.c (legitimate_constant_p): Rename to...
2314 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2315 and add a mode argument.
2316 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2318 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2320 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2321 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2322 (sh_legitimate_constant_p): New function.
2324 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2325 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2326 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2327 (legitimate_constant_p): Rename to...
2328 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2330 (constant_address_p): Update accordingly.
2332 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2333 argument and return a bool.
2334 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2335 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2336 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2337 (spu_rtx_costs): Update accordingly.
2338 * config/spu/predicates.md (vec_imm_operand): Likewise.
2340 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2342 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2343 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2344 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2346 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2347 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2348 * config/vax/vax.c (legitimate_constant_p): Likewise.
2350 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2351 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2352 (xtensa_legitimate_constant_p): New function.
2354 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2356 * target.def (cannot_force_const_mem): Add a mode argument.
2357 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2358 * doc/tm.texi: Regenerate.
2359 * hooks.h (hook_bool_mode_rtx_false): Declare.
2360 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2361 (hook_bool_mode_const_rtx_true): Likewise.
2362 (hook_bool_mode_rtx_false): New function.
2363 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2364 to be non-VOID. Update call to cannot_force_const_mem.
2365 (find_reloads): Update accordingly.
2366 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2367 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2369 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2370 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2371 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2372 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2373 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2374 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2375 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2376 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2377 (m68k_cannot_force_const_mem): ...this new function.
2378 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2380 (mips_const_insns, mips_legitimize_const_move): Update calls.
2381 (mips_secondary_reload_class): Likewise.
2382 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2383 (pa_cannot_force_const_mem): ...this new function.
2384 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2385 (rs6000_cannot_force_const_mem): ...this new function.
2386 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2388 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2389 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2391 (xtensa_cannot_force_const_mem): ...this new function.
2393 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2395 * config/mips/mips.c (mips16_build_function_stub): Call
2396 build_function_type_list instead of build_function_type.
2397 (mips16_build_call_stub): Likewise.
2399 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2401 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2402 instead of build_function_type.
2404 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2406 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2407 instead of build_function_type.
2409 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2412 * config/i386/i386.md (insv): Change operand 0 constraint to
2413 "register_operand". Change operand 1 and 2 constraint to
2414 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2415 * config/i386/sse.md (sse4_1_pinsrb): Export.
2416 (sse2_pinsrw): Ditto.
2417 (sse4_1_pinsrd): Ditto.
2418 (sse4_1_pinsrq): Ditto.
2419 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2420 * config/i386/i386.c (ix86_expand_pinsr): New.
2422 2011-04-20 Easwaran Raman <eraman@google.com>
2424 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2425 containing union type only with -fstrict-aliasing.
2427 2011-04-20 Jim Meyering <meyering@redhat.com>
2429 Remove useless if-before-free tests.
2430 * calls.c (expand_call, save_area): Likewise.
2431 * cfgcleanup.c (try_forward_edges): Likewise.
2432 * collect2.c (collect_execute): Likewise.
2433 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2434 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2435 * coverage.c (coverage_checksum_string): Likewise.
2436 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2437 * cselib.c (cselib_init): Likewise.
2438 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2439 (df_set_clean_cfg): Likewise.
2440 * function.c (free_after_compilation): Likewise.
2441 * gcc.c (do_spec_1, main): Likewise.
2442 * gcov.c (create_file_names): Likewise.
2443 * gensupport.c (identify_predicable_attribute): Likewise.
2444 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2445 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2446 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2447 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2448 * ipa-pure-const.c (local_pure_const): Likewise.
2449 * ipa-reference.c (propagate): Likewise.
2450 * ira-costs.c (free_ira_costs): Likewise.
2451 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2452 * matrix-reorg.c (mat_free): Likewise.
2453 * prefix.c (get_key_value): Likewise.
2454 * profile.c (compute_value_histograms): Likewise.
2455 * reload1.c (free_reg_equiv): Likewise.
2456 * sched-deps.c (free_deps): Likewise.
2457 * sel-sched-ir.c (fence_clear): Likewise.
2458 * sese.c (set_rename, if_region_set_false_region): Likewise.
2459 * tree-data-ref.c (free_rdg): Likewise.
2460 * tree-eh.c (lower_try_finally): Likewise.
2461 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2462 * tree-ssa-live.c (delete_var_map): Likewise.
2463 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2464 * tree-ssa-pre.c (phi_trans_add): Likewise.
2466 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2468 PR tree-optimization/48611
2469 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2470 beyond ERT_MUST_NOT_THROW region.
2472 2011-04-20 Catherine Moore <clm@codesourcery.com>
2474 * config/mips/mips.opt (mfix-24k): New.
2475 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2476 * config/mips/mips.md (length): Increase by 4 for stores if
2478 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2479 all noreorder if fixing 24K errata.
2480 * doc/invoke.texi: Document mfix-24k.
2482 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2484 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2485 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2487 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2489 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2490 (const_ok_for_op): ... to here.
2492 2011-04-20 Kai Tietz <ktietz@redhat.com>
2494 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2495 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2497 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2499 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2501 2011-04-20 Richard Guenther <rguenther@suse.de>
2503 PR tree-optimization/47892
2504 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2507 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2509 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2511 2011-04-20 Tristan Gingold <gingold@adacore.com>
2513 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2515 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2519 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2520 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2521 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2522 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2523 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2525 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2528 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2529 (avr_asm_named_section, avr_asm_output_aligned_common,
2530 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2531 New functions to update...
2532 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2533 (avr_asm_init_sections): Overwrite section callbacks for
2534 data_section, bss_section.
2535 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2537 (avr_file_end): ...here.
2539 2011-04-20 Richard Guenther <rguenther@suse.de>
2542 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2543 objects and types here. Adjust for their offset before comparing.
2545 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2547 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2550 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2552 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2553 (GIMPLE_H): Include $(INTERNAL_FN_H).
2554 (OBJS-common): Add internal-fn.o.
2555 (internal-fn.o): New rule.
2556 * internal-fn.def: New file.
2557 * internal-fn.h: Likewise.
2558 * internal-fn.c: Likewise.
2559 * gimple.h: Include internal-fn.h.
2560 (GF_CALL_INTERNAL): New gf_mask.
2561 (gimple_statement_call): Put fntype into a union with a new
2563 (gimple_build_call_internal): Declare.
2564 (gimple_build_call_internal_vec): Likewise.
2565 (gimple_call_same_target_p): Likewise.
2566 (gimple_call_internal_p): New function.
2567 (gimple_call_internal_fn): Likewise.
2568 (gimple_call_fntype): Return null for internal calls.
2569 (gimple_call_set_fntype): Assert that the function is not internal.
2570 (gimple_call_set_fn): Likewise.
2571 (gimple_call_set_fndecl): Likewise.
2572 (gimple_call_set_internal_fn): New function.
2573 (gimple_call_addr_fndecl): Handle null functions.
2574 (gimple_call_return_type): Likewise null types.
2575 * gimple.c (gimple_build_call_internal_1): New function.
2576 (gimple_build_call_internal): Likewise.
2577 (gimple_build_call_internal_vec): Likewise.
2578 (gimple_call_same_target_p): Likewise.
2579 (gimple_call_flags): Handle calls to internal functions.
2580 (gimple_call_fnspec): New function.
2581 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2582 (gimple_has_side_effects): Handle null functions.
2583 (gimple_rhs_has_side_effects): Likewise.
2584 (gimple_call_copy_skip_args): Handle calls to internal functions.
2585 * cfgexpand.c (expand_call_stmt): Likewise.
2586 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2587 * gimple-fold.c (gimple_fold_call): Handle null functions.
2588 (gimple_fold_stmt_to_constant_1): Don't fold
2589 calls to internal functions.
2590 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2592 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2593 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2594 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2595 (do_warn_unused_result): Likewise.
2596 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2597 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2598 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2599 the target of a call.
2600 (initialize_hash_element): Update accordingly.
2601 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2602 (iterative_hash_hashable_expr): Handle calls to internal functions.
2603 (print_expr_hash_elt): Likewise.
2604 * tree-ssa-pre.c (can_value_number_call): Likewise.
2605 (eliminate): Handle null functions.
2606 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2607 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2608 (find_func_aliases): Likewise.
2609 * value-prof.c (gimple_ic_transform): Likewise.
2610 (gimple_indirect_call_to_profile): Likewise.
2611 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2612 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2614 2011-04-19 Jan Hubicka <jh@suse.cz>
2616 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2617 * ipa-inline.c (inline_small_functions): Compute summaries first,
2618 populate heap later.
2620 2011-04-19 Jan Hubicka <jh@suse.cz>
2622 * cgraph.h (save_inline_function_body): Remove.
2623 * ipa-inline-transform.c: New file, broke out of...
2624 * ipa-inline.c: ... this one; Update toplevel comment.
2625 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2627 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2628 (cgraph_mark_inline_edge): Rename to inline_call; move to
2629 ipa-inline-transform.c.
2630 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2631 move to ipa-inline-transform.c
2632 (recursive_inlining, inline_small_functions, flatten_function,
2633 ipa_inline, inline_always_inline_functions,
2634 early_inline_small_functions): Update.
2635 (inline_transform): Move to ipa-inline-transform.c.
2636 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2638 * Makefile.in (ipa-inline-transform.o): New file.
2639 * cgraphunit.c (save_inline_function_body): Move to
2640 ipa-inline-transform.c
2642 2011-04-19 DJ Delorie <dj@redhat.com>
2644 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2645 registers if we already know there aren't any.
2646 (m32c_emit_epilogue): Don't emit a barrier here.
2647 (m32c_emit_eh_epilogue): Likewise.
2648 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2649 operands at expand time.
2650 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2652 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2653 duplicates. Provide aliases instead.
2654 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2655 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2658 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2660 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2661 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2662 (general_or_i64_p, sparc_register_move_cost): New function.
2664 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2666 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2667 Add lynx, mipssde. Sort table.
2669 2011-04-19 Xinliang David Li <davidxl@google.com>
2671 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2674 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2677 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2678 is a SUBREG with non-MODE_INT mode inside of it.
2680 2011-04-19 Martin Jambor <mjambor@suse.cz>
2682 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2683 also according to actual contants.
2684 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2685 (gimple_fold_call): Use it.
2686 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2688 2011-04-19 Martin Jambor <mjambor@suse.cz>
2690 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2691 non-pointer assignments.
2693 2011-04-19 Martin Jambor <mjambor@suse.cz>
2695 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2696 account anc_offset and otr_type from the indirect edge info.
2697 * ipa-prop.c (get_ancestor_addr_info): New function.
2698 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2699 get_ancestor_addr_info, call it.
2700 (ipa_note_param_call): Do not initialize information about polymorphic
2701 calls, return the indirect call graph edge. Remove the last
2702 parameter, adjust all callers.
2703 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2704 parameters. Initialize polymorphic information in the indirect edge.
2706 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2709 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2710 the types if they have different enumeration identifiers.
2712 2011-04-19 Jan Hubicka <jh@suse.cz>
2714 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2715 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2716 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2717 (optimize_function_for_size_p) ... here.
2719 2011-04-19 Richard Guenther <rguenther@suse.de>
2722 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2725 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2727 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2728 if DECL_NO_INLINE_WARNING_P is set on the function.
2730 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2733 * reload1.c (inc_for_reload): Return void. All callers changed.
2734 (emit_input_reload_insns): Don't try to delete previous output
2735 reloads to a register, or record spill_reg_store for autoincs.
2737 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2739 * gengtype.h: Updated copyright year.
2740 (struct input_file_st): Add inpisplugin field.
2741 (type_fileloc): New function.
2743 (write_typed_struct_alloc_def): Add gcc_assert.
2744 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2745 (write_typed_alloc_defns): Don't output for plugin files.
2746 (input_file_by_name): Clear inpisplugin field.
2747 (main): Set inpisplugin field for plugin files.
2749 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2751 * gengtype-state.c (string_eq): New.
2752 (read_state): Use string_eq instead of strcmp when creating the
2755 2011-04-19 Wei Guozhi <carrot@google.com>
2758 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2759 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2761 * config/arm/constraints.md (Uu): New constraint.
2762 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2764 2011-04-19 Tristan Gingold <gingold@adacore.com>
2766 * config.gcc (-*-*-*vms): Added.
2767 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2769 * config/vms/vms-ld.c: New file.
2770 * config/vms/vms-ar.c: New file.
2771 * config/vms/t-vmsnative: New file.
2773 2011-04-18 Xinliang David Li <davidxl@google.com>
2775 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2777 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2780 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2781 if TREE_TYPE (v) is non-NULL.
2783 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2784 gimple_get_virt_mehtod_for_binfo.
2785 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2786 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2788 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2790 2011-04-18 Michael Matz <matz@suse.de>
2791 Steve Ellcey <sje@cup.hp.com>
2793 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2794 use its mode as source mode if it isn't VOIDmode.
2796 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2798 * doc/passes.texi: Fill crossref nodes.
2800 2011-04-18 Jim Meyering <meyering@redhat.com>
2802 Fix doubled-word typos in comments and strings
2803 * config/alpha/vms-unwind.h: s/for for/for/
2804 * config/arm/unwind-arm.h: Likewise.
2805 * config/microblaze/microblaze.c: Likewise.
2806 * config/sh/constraints.md: s/in in/in/
2807 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2809 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2811 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2812 (AVX_FLOAT_MODE_P): Ditto.
2813 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2814 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2815 (AVX_VEC_FLOAT_MODE_P): Ditto.
2816 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2817 (UNSPEC_MASKSTORE): Ditto.
2818 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2819 Merge from <sse>_movmsk<ssemodesuffix> and
2820 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2821 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2823 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2824 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2825 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2827 2011-04-18 Jan Hubicka <jh@suse.cz>
2829 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2831 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2832 (want_inline_function_called_once_p): Break out the logic from
2834 (edge_badness): Ensure that profile is not misupdated.
2835 (lookup_recursive_calls): Prioritize by call frequencies.
2836 (inline_small_functions): Move program size estimates here;
2837 actually process whole queue even when unit growth has been
2838 met. (to properly compute inline_failed reasons and for the
2839 case unit size decrease.) Revisit comments on recursive inlining.
2840 (ipa_inline): Remove unit summary code; first inline hot calls
2841 of functions called once, cold calls next.
2842 (order, nnodes): Remove unused variables.
2843 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2844 (GTFILES): Remove ipa-inline.c
2845 * sel-sched.c (fill_insns): Silence uninitialized var warning.
2847 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2849 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
2851 2011-04-18 Jie Zhang <jie@codesourcery.com>
2852 Richard Earnshaw <rearnsha@arm.com>
2854 * arm.c (neon_builtin_type_bits): Remove.
2855 (typedef enum neon_builtin_mode): New.
2856 (T_MAX): Don't define.
2857 (typedef enum neon_builtin_datum): Remove bits, codes[],
2858 num_vars and base_fcode. Add mode, code and fcode.
2859 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
2860 VAR10): Change accordingly.
2861 (neon_builtin_data[]): Change accordingly
2862 (arm_init_neon_builtins): Change accordingly.
2863 (neon_builtin_compare): Remove.
2864 (locate_neon_builtin_icode): Remove.
2865 (arm_expand_neon_builtin): Change accordingly.
2867 * arm.h (enum arm_builtins): Move to ...
2868 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
2870 * arm.c (arm_builtin_decl): Declare.
2871 (TARGET_BUILTIN_DECL): Define.
2872 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
2873 (arm_builtin_decls[]): New.
2874 (arm_init_neon_builtins): Store builtin declarations in
2875 arm_builtin_decls[].
2876 (arm_init_tls_builtins): Likewise.
2877 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
2878 (arm_builtin_decl): New.
2880 2011-04-18 Richard Guenther <rguenther@suse.de>
2882 * tree.c (upper_bound_in_type): Build properly canonicalized
2884 (lower_bound_in_type): Likewise.
2886 2011-04-18 Richard Guenther <rguenther@suse.de>
2888 * gimple.h (gimple_call_addr_fndecl): New function.
2889 (gimple_call_fndecl): Use it.
2890 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
2892 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
2893 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
2895 2011-04-18 Richard Guenther <rguenther@suse.de>
2898 * tree.c (build_string): STRING_CST is now derived from tree_typed.
2900 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
2903 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
2904 DECL_IN_CONSTANT_POOL without RTL.
2906 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
2907 Ira Rosen <ira.rosen@linaro.org>
2910 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
2911 to match neon_vzip/vuzp/vtrn_internal.
2912 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
2913 outputs explicitly dependent on both inputs.
2914 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
2916 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2918 PR tree-optimization/48616
2919 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
2920 whether the shift is by scalar or vector based on whether all SLP
2921 scalar stmts have the same rhs.
2923 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
2925 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
2928 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
2930 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
2933 2011-04-17 Jan Hubicka <jh@suse.cz>
2935 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
2936 * cgrpahunit.c (cgraph_finalize_function): Do not set
2937 finalized_by_frontend.
2938 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2939 finalized_by_frontend.
2941 2011-04-17 Jan Hubicka <jh@suse.cz>
2943 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
2944 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
2945 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
2946 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
2948 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
2950 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
2952 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
2955 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
2956 is non-null before accessing it.
2957 (input_cgraph): Remove trailing spaces.
2959 2011-04-17 Revital Eres <revital.eres@linaro.org>
2961 * params.def (sms-min-sc): New param flag.
2962 * modulo-sched.c (sms_schedule): Use it.
2963 * doc/invoke.texi (sms-min-sc): Document it.
2965 2011-04-17 Jan Hubicka <jh@suse.cz>
2967 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
2968 present, also set gimple_call_set_cannot_inline.
2969 * ipa-inline.c: Update toplevel comment.
2971 (cgraph_clone_inlined_nodes): Fix linebreaks.
2972 (cgraph_check_inline_limits): Restructure to ...
2973 (caller_growth_limits): ... this one; be more tolerant
2974 on growth in nested inline chains; add explanatory comment;
2975 fix stack accounting thinko introduced by previous patch.
2976 (cgraph_default_inline_p): Remove.
2977 (report_inline_failed_reason): New function.
2978 (can_inline_edge_p): New function.
2979 (can_early_inline_edge_p): New function.
2980 (leaf_node_p): Move upwards in file.
2981 (want_early_inline_function_p): New function.
2982 (want_inline_small_function_p): New function.
2983 (want_inline_self_recursive_call_p): New function.
2984 (cgraph_edge_badness): Rename to ...
2985 (edge_badness) ... this one; fix linebreaks.
2986 (update_edge_key): Update call of edge_baddness; add
2987 detailed dump about queue updates.
2988 (update_caller_keys): Use can_inline_edge_p and
2989 want_inline_small_function_p.
2990 (cgraph_decide_recursive_inlining): Rename to...
2991 (recursive_inlining): Use can_inline_edge_p and
2992 want_inline_self_recursive_call_p; simplify and remove no longer
2994 (cgraph_set_inline_failed): Remove.
2995 (add_new_edges_to_heap): Use can_inline_edge_p and
2996 want_inline_small_function_p.
2997 (cgraph_decide_inlining_of_small_functions): Rename to ...
2998 (inline_small_functions): ... this one; cleanup; use
2999 can/want predicates; cleanup debug ouput; work edges till fibheap
3000 is exhausted and do not stop once unit growth is reached; remove
3001 later loop processing remaining edges.
3002 (cgraph_flatten): Rename to ...
3003 (flatten_function): ... this one; use can_inline_edge_p
3004 and can_early_inline_edge_p predicates.
3005 (cgraph_decide_inlining): Rename to ...
3006 (ipa_inline): ... this one; remove unreachable nodes before
3007 inlining functions called once; simplify the pass.
3008 (cgraph_perform_always_inlining): Rename to ...
3009 (inline_always_inline_functions): ... this one; use
3010 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3011 (cgraph_decide_inlining_incrementally): Rename to ...
3012 (early_inline_small_functions): ... this one; simplify
3013 using new predicates; cleanup; make dumps prettier.
3014 (cgraph_early_inlining): Rename to ...
3015 (early_inliner): newer inline regular functions into always-inlines;
3016 fix updating of call stmt summaries.
3017 (pass_early_inline): Update for new names.
3018 (inline_transform): Fix formating.
3019 (gate_cgraph_decide_inlining): Rename to ...
3020 (pass_ipa_inline): ... this one.
3021 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3022 * ipa-inline-analysis.c (dump_inline_summary): Update.
3023 (compute_inline_parameters): Do not compute disregard_inline_limits;
3024 look for mismatching arguments.
3025 (estimate_growth): Fix handlig of non-trivial self recursion.
3026 (inline_read_summary): Do not read info->disregard_inline_limits.
3027 (inline_write_summary): Do not write info->disregard_inline_limits.
3028 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3029 and move all checks into can_inline_edge_p predicate; re-enable code
3030 comparing optimization levels.
3031 (expand_call_inline): Do not test inline_forbidden_into_p.
3032 * Makefile.in (ipa-inline.o): Update arguments.
3034 2011-04-17 Revital Eres <revital.eres@linaro.org>
3036 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3038 2011-04-17 Revital Eres <revital.eres@linaro.org>
3040 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3042 2011-04-17 Michael Matz <matz@suse.de>
3044 PR tree-optimization/48622
3046 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3047 in same order as they're written.
3049 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3051 * config/pa/predicates.md: Reorganize and simplify predicates.
3052 Eliminate duplicate code checks.
3053 (arith_operand): Rename to arith14_operand
3054 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3055 * config/pa/pa.md: Use renamed operands.
3056 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3057 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3058 arith11_operand, adddi3_operand, indexed_memory_operand,
3059 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3060 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3061 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3062 move_dest_operand, move_src_operand, prefetch_cc_operand,
3063 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3064 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3065 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3066 div_operand, int5_operand, movb_comparison_operator,
3067 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3068 arith_double_operand, ireg_operand, lhs_lshift_operand,
3069 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3070 integer_store_memory_operand): Likewise.
3071 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3072 (integer_store_memory_operand, read_only_operand,
3073 function_label_operand, borx_reg_operand,
3074 non_hard_reg_operand): Likewise.
3075 (eq_neq_comparison_operator): Delete unused operator.
3076 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3077 function_label_operand.
3078 (emit_move_sequence): Likewise.
3080 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3082 * config/i386/sse.md (sseunpackmode): New mode attribute.
3083 (ssepackmode): Ditto.
3084 (vec_pack_trunc_<mode>): Macroize expander from
3085 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3086 (vec_unpacks_lo_<mode>): Macroize expander from
3087 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3088 (vec_unpacks_hi_<mode>): Macroize expander from
3089 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3090 (vec_unpacku_lo_<mode>): Macroize expander from
3091 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3092 (vec_unpacku_hi_<mode>): Macroize expander from
3093 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3094 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3095 ix86_expand_sse4_unpack.
3096 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3098 2011-04-16 Jan Hubicka <jh@suse.cz>
3100 * cgraphbuild.c: Include ipa-inline.h.
3101 (reset_inline_failed): Use initialize_inline_failed.
3102 * cgraph.c: Include ipa-inline.h.
3103 (cgraph_create_node_1): Do not initialize estimated_growth.
3104 (initialize_inline_failed): More to ipa-inline-analysis.c
3105 (dump_cgraph_node): Do not dump inline flags.
3106 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3107 and disregard_inline_limits flags.
3108 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3109 time, size, estimated_growth.
3110 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3112 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3113 DECL_DISREGARD_INLINE_LIMITS.
3114 (cgraph_analyze_function): Do not initialize
3115 node->local.disregard_inline_limits.
3116 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3117 inlinable, versionable and disregard_inline_limits.
3118 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3119 cgraph_check_inline_limits, cgraph_default_inline_p,
3120 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3121 add_new_edges_to_heap): Update.
3122 (cgraph_decide_inlining_of_small_function): Update; set
3123 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3124 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3125 cgraph_decide_inlining_incrementally): Update.
3126 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3127 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3128 time, size and estimated_growth parameters.
3129 (estimate_edge_growth): Update.
3130 (initialize_inline_failed): Declare.
3131 * ipa-split.c: Include ipa-inline.h
3132 (execute_split_functions): Update.
3133 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3134 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3135 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3136 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3137 estimated_growth to INT_MIN.
3138 (inline_node_duplication_hook): Likewise.
3139 (dump_inline_summary): Dump new fields.
3140 (compute_inline_parameters): Update.
3141 (estimate_edge_time, estimate_time_after_inlining,
3142 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3143 inline_write_summary):
3144 (initialize_inline_failed): Move here from cgraph.c.
3145 * tree-sra.c: Include ipa-inline.h.
3146 (ipa_sra_preliminary_function_checks): Update.
3147 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3150 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3152 * config/i386/sse.md (V16): New mode iterator.
3154 (AVXMODEQI, AVXMODEDI): Remove.
3155 (sse2, sse3): New mode attribute.
3156 (mov<mode>): Use V16 mode iterator.
3157 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3158 (push<mode>1): Use V16 mode iterator.
3159 (movmisalign<mode>): Ditto.
3160 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3161 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3162 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3163 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3164 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3165 avx_movdqu<avxmodesuffix>.
3166 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3167 *avx_movdqu<avxmodesuffix>.
3168 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3169 avx_lddqu<avxmodesuffix>.
3170 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3171 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3172 avx_movnt<AVXMODEDI:mode>.
3173 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3174 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3176 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3179 * haifa-sched.c (prune_ready_list, schedule_block): Use
3180 sched_pressure_p rather than flag_sched_pressure.
3182 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3184 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3185 cgraph_get_node instead of cgraph_get_create_node.
3187 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3189 * cfgexpand.c (expand_debug_expr): Use
3190 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3192 2011-04-15 Michael Matz <matz@suse.de>
3194 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3195 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3196 * function.c (gimplify_parameters): Ditto.
3197 * gimplify.c (gimplify_vla_decl): Ditto.
3199 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3200 (gimple_call_set_alloca_for_var): New inline function.
3201 (gimple_call_alloca_for_var_p): Ditto.
3202 * gimple.c (gimple_build_call_from_tree): Remember
3203 CALL_ALLOCA_FOR_VAR_P state.
3204 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3206 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3207 calls if they were for VLA objects.
3209 2011-04-15 Martin Jambor <mjambor@suse.cz>
3211 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3214 2011-04-15 Martin Jambor <mjambor@suse.cz>
3217 * tree-emutls.c (lower_emutls_function_body): Call
3218 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3221 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3223 * c-decl.c (detect_field_duplicates): Call
3224 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3226 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3228 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3229 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3230 * ipa-pure-const.c (check_stmt): Call it.
3231 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3233 2011-04-15 Richard Guenther <rguenther@suse.de>
3235 PR tree-optimization/48290
3236 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3237 Properly decide inhibiting propagation based on the valueized
3238 operand. Do loop-closed SSA form preserving here ...
3239 (init_copy_prop): ... not here.
3241 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3244 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3245 (*ieee_smax<mode>3): Likewise.
3247 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3249 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3250 Replace match_operand with match_dup for the third operand in
3253 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3255 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3256 to track processing of conditionals. Update all callers.
3257 (try_combine, simplify_if_then_else): Update.
3259 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3261 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3264 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3266 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3267 instead of match_operand for operand 3.
3269 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3271 * recog.h (insn_operand_data): Add an "allows_mem" field.
3272 * genoutput.c (output_operand_data): Initialize it.
3273 * optabs.c (maybe_legitimize_operand_same_code): New function.
3274 (maybe_legitimize_operand): Use it when matching the original
3277 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3279 * gimplify.c: Fix issues in comments throughout.
3280 (voidify_wrapper_expr): Fix long line.
3281 (build_stack_save_restore): Likewise.
3282 (gimplify_loop_expr): Likewise.
3283 (gimplify_compound_lval): Likewise.
3284 (gimplify_init_ctor_eval): Likewise.
3285 (gimplify_modify_expr_rhs): Likewise.
3286 (omp_notice_threadprivate_variable): Likewise.
3288 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3290 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3291 original one if this is not a builtin function.
3293 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3296 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3297 offset it as needed based on top 2 bits in operands[3], change
3298 MEM mode to SFmode and mask those 2 bits away from operands[3].
3300 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3302 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3303 change from objc_declare_protocols() to objc_declare_protocol().
3305 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3307 * config/i386/sse.md (sse4_1): New mode attribute.
3308 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3309 avx_blend<ssemodesuffix><avxmodesuffix> and
3310 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3311 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3312 avx_blendv<ssemodesuffix><avxmodesuffix> and
3313 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3314 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3315 avx_dp<ssemodesuffix><avxmodesuffix> and
3316 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3317 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3318 (sse4_1_packusdw): Merge with *avx_packusdw.
3319 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3320 (sse4_1_pblendw): Merge with *avx_pblendw.
3321 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3322 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3323 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3325 (sse4_1_round<ssescalarmodesuffix>): Merge with
3326 *avx_round<ssescalarmodesuffix>.
3327 (aesenc): Merge with *avx_aesenc.
3328 (aesenclast): Merge with *avx_aesenclast.
3329 (aesdec): Merge with *avx_aesdec.
3330 (aesdeclast): Merge with *avx_aesdeclast.
3331 (pclmulqdq): Merge with *pclmulqdq.
3332 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3334 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3336 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3339 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3340 (align_local_variable): This. Update DECL_ALIGN.
3341 (add_stack_var): Updated.
3342 (expand_one_stack_var): Likewise.
3344 2011-04-14 Richard Guenther <rguenther@suse.de>
3346 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3348 (dse_initialize_block_local_data, dse_leave_block,
3349 record_voperand_set, get_stmt_uid): Likewise.
3350 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3351 (dse_optimize_stmt): Remove voperand set handling code.
3352 Simplify and improve to handle any kind of killing stmt.
3353 (dse_record_phi): Remove.
3354 (dse_enter_block): Simplify.
3355 (tree_ssa_dse): Likewise.
3356 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3358 2011-04-14 Jan Hubicka <jh@suse.cz>
3360 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3361 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3362 (cgraph_local_info): Remove inline_summary.
3363 * ipa-cp.c: Include ipa-inline.h.
3364 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3365 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3367 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3368 (input_overwrite_node): Do not set inline summary.
3369 (input_node): Do not stream inline summary.
3370 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3371 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3372 growth; we do not have inline parameters computed for that anyway.
3373 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3374 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3375 (inline_summary_t): New type and VECtor.
3376 (debug_inline_summary, dump_inline_summaries): Declare.
3377 (inline_summary): Use VOCtor.
3378 (estimate_edge_growth): Kill hack computing call stmt size directly.
3379 * lto-section-in.c (lto_section_name): Add inline section.
3380 * ipa-inline-analysis.c: Include lto-streamer.h
3381 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3382 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3383 (inline_summary_vec): Define.
3384 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3385 dump_inline_summaries): New functions.
3386 (estimate_function_body_sizes): Properly compute size/time of outgoing
3388 (compute_inline_parameters): Alloc inline_summary; do not compute
3389 size/time of incomming calls.
3390 (estimate_edge_time): Avoid missing time summary hack.
3391 (inline_read_summary): Read inline summary info.
3392 (inline_write_summary): Write inline summary info.
3393 (inline_free_summary): Free all hooks and inline summary vector.
3394 * lto-streamer.h: Add LTO_section_inline_summary section.
3395 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3396 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3398 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3400 * tree-vectorizer.h (vect_strided_store_supported): Add a
3401 HOST_WIDE_INT argument.
3402 (vect_strided_load_supported): Likewise.
3403 (vect_permute_store_chain): Return void.
3404 (vect_transform_strided_load): Likewise.
3405 (vect_permute_load_chain): Delete.
3406 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3407 count argument. Check that the count is a power of two.
3408 (vect_strided_load_supported): Likewise.
3409 (vect_permute_store_chain): Return void. Update after above changes.
3410 Assert that the access is supported.
3411 (vect_permute_load_chain): Likewise.
3412 (vect_transform_strided_load): Return void.
3413 * tree-vect-stmts.c (vectorizable_store): Update calls after
3414 above interface changes.
3415 (vectorizable_load): Likewise.
3416 (vect_analyze_stmt): Don't check for strided powers of two here.
3418 2011-04-14 Richard Guenther <rguenther@suse.de>
3420 PR tree-optimization/48590
3421 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3422 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3423 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3424 BUILT_IN_STACK_SAVE.
3425 * tree-ssa-dce.c (propagate_necessity): Handle
3426 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3428 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3430 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3433 2011-04-14 Richard Guenther <rguenther@suse.de>
3435 * tree.h (get_object_alignment_1): Declare.
3436 * builtins.c (get_object_alignment_1): Split out worker from ...
3437 (get_object_alignment): ... here.
3438 * fold-const.c (get_pointer_modulus_and_residue): Use
3439 get_object_alignment_1.
3441 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3443 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3445 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3446 parameter. Generalise code to handle arrays as well as vectors.
3447 (vect_setup_realignment): Update accordingly.
3448 * tree-vect-stmts.c (vectorizable_store): Likewise.
3449 (vectorizable_load): Likewise.
3451 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3453 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3454 within the per-copy loop.
3456 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3458 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3461 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3463 * doc/options.texi (Negative): Explicitly mention that the
3464 Negative chain must be circular.
3466 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3468 * function.h (block_chainon): Declare.
3469 * function.c (block_chainon): Define.
3471 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3472 Eric Weddington <eric.weddington@atmel.com>
3473 Georg-Johann Lay <avr@gjlay.de>
3475 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3477 (avr_init_builtins, avr_expand_builtin,
3478 avr_expand_delay_cycles, avr_expand_unop_builtin,
3479 avr_expand_binop_builtin ): New functions.
3480 (avr_builtin_id): New enum
3481 (struct avr_builtin_description): New struct
3482 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3483 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3485 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3486 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3487 UNSPECV_DELAY_CYCLES): new enumeration values
3488 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3489 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3490 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3491 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3492 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3493 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3494 "fmulsu"): New insns
3496 * config/avr/avr-c.c: fix line endings
3497 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3498 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3499 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3500 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3501 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3503 * doc/extend.texi (AVR Built-in Functions): New node
3504 (Target Builtins): Add documentation of AVR
3507 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3510 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3511 alone. Error if non-const data has attribute progmem.
3513 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3515 * tree.h (struct tree_constructor): Include tree_typed instead of
3517 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3518 TS_TYPED instead of TS_COMMON.
3520 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3522 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3523 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3524 (sse2_psadbw): Merge with *avx_psadbw.
3525 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3526 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3527 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3528 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3529 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3530 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3531 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3532 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3533 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3534 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3535 (ssse3_palignrti): Merge with *avx_palignrti.
3537 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3539 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3540 * tree-ssanames.c (fini_ssanames): VEC_free it.
3541 (make_ssa_name_fn): Update for VECness of free_ssanames.
3542 (release_ssa_name, release_dead_ssa_names): Likewise.
3543 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3545 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3546 TS_TYPED instead of TS_COMMON.
3548 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3550 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3551 statistics_counter_event.
3552 * tree-ssa-copyrename.c (stats): Define.
3553 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3554 statistics_counter_event.
3555 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3556 (bswap_stats, widen_mul_stats): Define.
3557 (insert_reciprocals): Increment rdivs_inserted.
3558 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3559 rfuncs_inserted. Add calls to statistics_counter_event.
3560 (execute_cse_sincos_1): Increment inserted.
3561 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3562 statistics_counter_event.
3563 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3564 of bswap_stats. Add calls to statistics_counter_event.
3565 (convert_mult_to_widen): Increment widen_mults_inserted.
3566 (convert_plusminus_to_widen): Increment maccs_inserted.
3567 (convert_mult_to_fma): Increment fmas_inserted.
3568 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3569 calls to statistics_counter_event.
3571 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3573 PR rtl-optimization/48455
3574 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3575 `temp_costs->mem_cost'.
3577 2011-04-13 Jan Hubicka <jh@suse.cz>
3579 * ipa-inline.h: New file.
3580 * ipa-inline-analysis.c: New file. Broken out of ...
3581 * ipa-inline.c: ... this file; update toplevel comment;
3582 include ipa-inline.h
3583 (inline_summary): Move to ipa-inline.h
3584 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3585 ipa-inline-analysis.c.
3586 (cgraph_estimate_time_after_inlining): Rename to
3587 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3588 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3589 to estimate_edge_growth.
3590 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3591 rename to estimate_size_after_inlining.
3592 (cgraph_mark_inline_edge): Update for new naming convention.
3593 (cgraph_check_inline_limits): Likewise.
3594 (cgraph_edge_badness): Likewise.
3595 (cgraph_decide_recursive_inlining): Likewise.
3596 (cgraph_decide_inlining_of_small_functions): Likewise.
3597 (cgraph_decide_inlining_incrementally): Likewise.
3598 (cgraph_estimate_growth): Rename to estimate_growth; move to
3599 ipa-inline-analysis.c.
3600 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3601 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3602 (compute_inline_parameters): Likewise.
3603 (compute_inline_parameters_for_current): Likewise.
3604 (pass_inline_parameters): Likewise.
3605 (inline_indirect_intraprocedural_analysis): Likewise.
3606 (analyze_function): Rename to inline_analyze_function; likewise.
3607 (add_new_function): Move to ipa-inline-analysis.c.
3608 (inline_generate_summary): Likewise.
3609 (inline_read_summary): Likewise.
3610 (inline_write_summary): Likewise.
3611 * Makefile.in (ipa-inline-analysis.c): New file.
3613 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3615 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3616 * configure: Regenerate.
3618 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3620 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3621 instead of tree_common.
3622 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3624 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3625 TS_TYPED rather than TS_COMMON.
3626 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3628 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3631 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3632 r20 around calls of __tablejump_elpm__
3634 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3637 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3639 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3641 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3643 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3644 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3645 (cfi_vec): New typedef.
3646 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3647 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3648 (cie_cfi_vec): New static variable.
3649 (cie_cfi_head): Delete.
3650 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3651 declaration changed. Use vector rather than list operations.
3652 (new_cfi): Don't initialize the dw_cfi_next field.
3653 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3654 rather than list operations.
3655 (lookup_cfa): Use vector rather than list operations.
3656 (output_cfis): New argument upto. Accept a cfi_vec rather than
3657 a dw_cfi_ref list head as argument. All callers changed.
3658 Iterate over the vector using upto as a maximum index.
3659 (output_all_cfis): New static function.
3660 (output_fde): Use vector rather than list operations. Use the
3661 new upto argument for output_cfis rather than manipulating a
3663 (dwarf2out_begin_prologue): Change initializations to match
3665 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3666 from the vector length rather than searching for the end of a list.
3667 Use output_all_cfis.
3668 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3670 2011-04-13 Nick Clifton <nickc@redhat.com>
3672 * config/rx/rx.md (movmemsi): Do not use this pattern when
3673 volatile pointers are involved.
3675 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3677 * config/i386/sse.md (pinsrbits): Remove.
3678 (sse2_packsswb): Merge with *avx_packsswb.
3679 (sse2_packssdw): Merge with *avx_packssdw.
3680 (sse2_packuswb): Merge with *avx_packuswb.
3681 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3682 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3683 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3684 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3685 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3686 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3687 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3688 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3689 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3690 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3691 (sse2_loadld): Merge with *avx_loadld.
3692 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3693 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3694 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3695 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3696 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3698 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3700 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3702 * print-tree.c (print_node): Likewise.
3703 * tree-inline.c (copy_tree_r): Likewise.
3704 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3705 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3706 instead of TS_COMMON.
3707 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3708 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3709 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3710 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3711 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3713 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3715 (TREE_CHAIN): Check for a TS_COMMON structure.
3716 (TREE_TYPE): Check for a TS_TYPED structure.
3718 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3720 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3721 cgraph_get_create_node instead of cgraph_node.
3723 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3725 * c-parser.c (c_parser_initelt): Updated call to
3726 objc_build_message_expr.
3727 (c_parser_postfix_expression): Likewise.
3729 2011-04-12 Kai Tietz <ktietz@redhat.com>
3731 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3732 MASK_MS_BITFIELD_LAYOUT bit.
3734 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3736 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3737 assert it is always true.
3738 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3741 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3743 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3744 compiling Objective-C to be more efficient.
3746 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3748 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3751 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3753 * recog.h, genoutput.c, optabs.c: Revert last patch.
3755 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3758 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3760 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3762 * recog.h (insn_operand_data): Add an "allows_mem" field.
3763 * genoutput.c (output_operand_data): Initialize it.
3764 * optabs.c (maybe_legitimize_operand_same_code): New function.
3765 (maybe_legitimize_operand): Use it when matching the original
3768 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3770 * genpreds.c (process_define_predicate): Move most processing
3771 to gensupport.c. Continue to validate the expression.
3772 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3773 (process_define_predicate): Move processing to gensupport.c.
3774 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3775 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3776 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3778 (valid_predicate_name_p): New function, split out from old
3779 genpreds.c:process_define_predicate.
3780 (process_define_predicate): New function, combining code from
3781 old genpreds.c and genrecog.c functions.
3782 (process_rtx): Call it for DEFINE_PREDICATE and
3783 DEFINE_SPECIAL_PREDICATE.
3785 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3787 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3788 size of a '%A' memory reference.
3789 (T_DREG, T_QREG): New neon_builtin_type_bits.
3790 (arm_init_neon_builtins): Assert that the load and store operands
3791 are neon_struct_operands.
3792 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3793 (NEON_ARG_MEMORY): New builtin_arg.
3794 (neon_dereference_pointer): New function.
3795 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3796 Handle NEON_ARG_MEMORY.
3797 (arm_expand_neon_builtin): Update after above interface changes.
3798 Use NEON_ARG_MEMORY for loads and stores.
3799 * config/arm/predicates.md (neon_struct_operand): New predicate.
3800 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3801 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3802 (V_four_elem): Tweak formatting.
3803 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3804 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3805 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3806 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3807 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3808 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3809 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3810 Use %A in the output template.
3811 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3812 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3813 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3814 the width of the memory access. Remove post-increment.
3815 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3817 2011-04-12 Nick Clifton <nickc@redhat.com>
3819 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3820 instruction for interrupt handlers if the target is the basic V850
3822 (expand_epilogue): Likewise.
3824 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3826 PR rtl-optimization/48549
3827 * combine.c (propagate_for_debug): Also stop after BB_END of
3828 this_basic_block. Process LAST and just stop processing after it.
3829 (combine_instructions): If last_combined_insn has been deleted,
3830 set last_combined_insn to its PREV_INSN.
3832 2011-04-12 Richard Guenther <rguenther@suse.de>
3834 PR tree-optimization/46076
3835 * gimple.h (struct gimple_statement_call): Add fntype field.
3836 (gimple_call_fntype): Adjust.
3837 (gimple_call_set_fntype): New function.
3838 * gimple.c (gimple_build_call_1): Set the call function type.
3839 * gimplify.c (gimplify_call_expr): Preserve the function
3840 type the frontend used for the call.
3841 (gimplify_modify_expr): Likewise.
3842 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3844 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
3846 * tree-ssa.c (useless_type_conversion_p): Function pointer
3847 conversions are useless.
3849 2011-04-12 Martin Jambor <mjambor@suse.cz>
3851 * cgraph.h (cgraph_node): Remove function declaration.
3852 (cgraph_create_node): Declare.
3853 (cgraph_get_create_node): Likewise.
3854 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
3855 Updated all callers.
3856 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
3857 the decl does not already exist. Call cgraph_get_create_node instead
3859 (cgraph_get_create_node): New function.
3860 (cgraph_same_body_alias): Update comment.
3861 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
3862 assert it does not return NULL.
3863 (cgraph_update_edges_for_call_stmt): Likewise.
3864 (cgraph_clone_edge): Likewise.
3865 (cgraph_create_virtual_clone): Likewise.
3866 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
3867 instead of cgraph_node.
3868 (cgraph_add_new_function): Call cgraph_create_node or
3869 cgraph_get_create_node instead of cgraph_node.
3870 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
3871 instead of cgraph_node.
3872 (record_eh_tables): Likewise.
3873 (mark_address): Likewise.
3874 (mark_load): Likewise.
3875 (build_cgraph_edges): Call cgraph_get_create_node instead
3877 (rebuild_cgraph_edges): Likewise.
3878 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
3879 instead of cgraph_node.
3880 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
3882 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
3883 cgraph_create_node instead of cgraph_node.
3884 * c-decl.c (finish_function): Call cgraph_get_create_node instead
3886 * lto-cgraph.c (input_node): Likewise.
3887 * lto-streamer-in.c (input_function): Likewise.
3888 * varasm.c (mark_decl_referenced): Likewise.
3889 (assemble_alias): Likewise.
3891 2011-04-12 Martin Jambor <mjambor@suse.cz>
3893 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
3894 instead of cgraph_node and assert it does not return NULL.
3895 * lto-streamer-in.c (lto_read_body): Likewise.
3896 * omp-low.c (new_omp_context): Likewise.
3897 (create_task_copyfn): Likewise.
3898 * tree-emutls.c (lower_emutls_function_body): Likewise.
3899 * matrix-reorg.c (transform_allocation_sites): Likewise.
3901 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3904 * c-typeck.c (build_asm_expr): Error out on attempts to use
3905 void type outputs or inputs for constraints that allow reg or
3908 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
3909 Richard Earnshaw <rearnsha@arm.com>
3912 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
3913 to use sign-magnitude offsets. Reject unsupported unaligned
3914 cases. Add detailed description in comments.
3915 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
3916 condition from TARGET_32BIT to TARGET_ARM.
3918 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
3920 * tree.h (struct typed_tree): New.
3921 (struct tree_common): Include it instead of tree_base.
3922 (TREE_TYPE): Update for new location of type field.
3923 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
3924 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
3925 (union tree_node): Add typed field.
3926 * treestruct.def (TS_TYPED): New.
3927 * lto-streamer.c (check_handled_ts_structures): Handle it.
3928 * tree.c (MARK_TS_TYPED): New macro.
3929 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
3931 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
3933 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
3934 (force_nonfallthru): Do not alter the loop nest if no basic block
3937 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3939 * config/i386/sse.md (VI): New mode iterator.
3941 (AVX256MODEI): Ditto.
3942 (AVXMODEF4P): Ditto.
3943 (avxvecpsmode): Ditto.
3944 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
3945 (sse2_andnot<mode>3): New expander.
3946 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
3947 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
3948 (<any_logic:code><mode>3): Use VI mode iterator.
3949 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
3950 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
3951 (*andnottf3): Handle AVX three-operand constraints.
3952 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
3954 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3955 Robert Millan <rmh@gnu.org>
3957 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
3958 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
3959 GNU_USER_DYNAMIC_LINKER64): Define.
3960 (REG_NAME): Don't undefine.
3961 (MD_UNWIND_SUPPORT): Undefine.
3962 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
3963 (REG_NAME): Don't undefine.
3964 (MD_UNWIND_SUPPORT): Undefine.
3965 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
3967 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3969 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
3970 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
3972 2011-04-11 Xinliang David Li <davidxl@google.com>
3974 * value-profile.c (check_ic_target): New function.
3975 (gimple_ic_transform): Sanity check indirect call target.
3976 * gimple-low.c (gimple_check_call_args): Interface change.
3977 (gimple_check_call_matching_types): New function.
3978 * tree-inline.c (tree_can_inline_p): Call new function.
3980 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
3982 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
3983 tree-pretty-print.h & realmpfr.h.
3985 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
3988 * ira.c (setup_pressure_classes): Fix typo in loop condition.
3989 (setup_allocno_and_important_classes): Ditto.
3991 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3993 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
3994 GNU_USER_DYNAMIC_LINKER.
3995 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
3996 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3997 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
3998 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3999 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4000 GNU_USER_TARGET_OS_CPP_BUILTINS.
4001 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4002 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4003 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4004 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4005 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4006 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4007 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4008 GNU_USER_TARGET_OS_CPP_BUILTINS.
4009 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4010 GNU_USER_DYNAMIC_LINKER.
4011 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4012 GNU_USER_TARGET_OS_CPP_BUILTINS.
4013 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4014 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4015 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4016 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4017 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4018 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4019 GNU_USER_DYNAMIC_LINKER64): Remove.
4020 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4021 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4022 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4023 GNU_USER_DYNAMIC_LINKER.
4024 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4025 GNU_USER_TARGET_OS_CPP_BUILTINS.
4026 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4027 GNU_USER_TARGET_OS_CPP_BUILTINS.
4028 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4029 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4030 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4031 GNU_USER_TARGET_OS_CPP_BUILTINS.
4032 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4033 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4034 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4035 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4036 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4037 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4038 GNU_USER_DYNAMIC_LINKER.
4039 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4040 GNU_USER_TARGET_OS_CPP_BUILTINS.
4041 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4042 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4043 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4044 GNU_USER_DYNAMIC_LINKER.
4045 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4046 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4047 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4048 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4049 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4050 GNU_USER_DYNAMIC_LINKER.
4051 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4052 GNU_USER_DYNAMIC_LINKERN32.
4053 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4054 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4055 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4056 GNU_USER_DYNAMIC_LINKER32.
4057 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4058 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4059 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4060 GNU_USER_DYNAMIC_LINKER.
4061 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4062 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4063 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4064 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4065 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4066 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4067 GNU_USER_DYNAMIC_LINKER32.
4068 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4069 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4070 GNU_USER_DYNAMIC_LINKER.
4071 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4072 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4073 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4074 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4075 GNU_USER_DYNAMIC_LINKER64.
4076 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4077 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4078 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4079 GNU_USER_DYNAMIC_LINKER.
4080 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4081 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4082 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4083 GNU_USER_DYNAMIC_LINKER.
4084 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4085 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4086 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4087 GNU_USER_DYNAMIC_LINKER32.
4088 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4089 GNU_USER_DYNAMIC_LINKER64.
4090 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4091 GNU_USER_DYNAMIC_LINKER64.
4092 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4093 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4094 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4095 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4096 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4098 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4100 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4101 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4102 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4103 GNU_USER_DYNAMIC_LINKER.
4104 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4105 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4106 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4107 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4108 GNU_USER_DYNAMIC_LINKER64.
4109 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4110 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4111 GNU_USER_LINK_EMULATION.
4112 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4113 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4114 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4115 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4116 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4117 CPP_SPEC, CC1_SPEC): Remove.
4118 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4119 (GNU_USER_DYNAMIC_LINKER): Define.
4120 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4121 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4122 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4123 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4124 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4125 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4126 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4127 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4128 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4129 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4130 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4131 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4132 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4133 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4134 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4135 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4136 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4137 GNU_USER_DYNAMIC_LINKER.
4138 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4139 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4140 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4141 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4142 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4143 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4144 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4145 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4146 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4147 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4149 2011-04-11 Kai Tietz <ktietz@redhat.com>
4153 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4154 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4156 (ix86_is_msabi_thiscall): Removed.
4157 (ix86_is_type_thiscall): Likewise.
4158 (ix86_get_callcvt): New function.
4159 (ix86_comp_type_attributes): Simplify check.
4160 (ix86_function_regparm): Use ix86_get_callcvt for calling
4161 convention attribute checks.
4162 (ix86_return_pops_args): Likewise.
4163 (ix86_static_chain): Likewise.
4164 (x86_this_parameter): Likewise.
4165 (x86_output_mi_thunk): Likewise.
4166 (ix86_function_type_abi): Optimize check for types without attributes.
4167 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4168 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4169 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4171 (IX86_BASE_CALLCVT): Helper macro.
4172 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4173 Use ix86_get_callcvt for calling convention attribute checks and avoid
4174 symbol-decoration for stdcall in TARGET_RTD case.
4175 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4177 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4180 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4182 * config/i386/sse.md (VI_128): New mode iterator.
4183 (VI12_128): Rename from SSEMODE12.
4184 (VI14_128): Rename from SSEMODE14.
4185 (VI124_128): New mode iterator.
4186 (VI24_128): Rename from SSEMODE248.
4187 (VI248_128): Rename from SSEMODE248.
4188 (SSEMODE124C8): Remove.
4189 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4190 (*sse2_<plusminus_insn><mode>3): Merge with
4191 *avx_<plusminus_insn><mode>3.
4192 (*mulv8hi3): Merge with *avx_mulv8hi3.
4193 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4194 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4195 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4196 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4197 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4198 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4199 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4200 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4201 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4202 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4203 (*<smaxmin:code>v8hi3): Ditto.
4204 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4205 (*<smaxmin:code>v16qi3): Ditto.
4206 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4207 (*sse2_eq<mode>3): Ditto.
4208 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4209 (*sse2_gt<mode>3): Ditto.
4210 (vcondv2di): Split out of vcond<mode>.
4211 (vconduv2di): Split out of vcondu<mode>.
4213 2011-04-11 Richard Guenther <rguenther@suse.de>
4215 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4216 before calling tree_low_cst.
4218 2011-04-11 Richard Guenther <rguenther@suse.de>
4220 * stor-layout.c (layout_type): Compute all array index size operations
4221 in the original type.
4222 (initialize_sizetypes): Add comment.
4223 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4225 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4227 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4229 2011-04-11 Martin Jambor <mjambor@suse.cz>
4231 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4232 of cgraph_node, handle NULL return value.
4233 (cgraph_global_info): Likewise.
4234 (cgraph_rtl_info): Likewise.
4235 * tree-inline.c (estimate_num_insns): Likewise.
4236 * gimplify.c (unshare_body): Likewise.
4237 (unvisit_body): Likewise.
4238 (gimplify_body): Likewise.
4239 * predict.c (optimize_function_for_size_p): Likewise.
4240 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4241 (call_may_clobber_ref_p_1): Likewise.
4242 * varasm.c (function_section_1): Likewise.
4243 (assemble_start_function): Likewise.
4245 2011-04-11 Martin Jambor <mjambor@suse.cz>
4247 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4249 * final.c (rest_of_clean_state): Likewise.
4250 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4251 * passes.c (pass_init_dump_file): Likewise.
4252 (execute_all_ipa_transforms): Likewise.
4253 (function_called_by_processed_nodes_p): Likewise.
4254 * predict.c (maybe_hot_frequency_p): Likewise.
4255 (probably_never_executed_bb_p): Likewise.
4256 (compute_function_frequency): Likewise.
4257 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4258 (unnest_nesting_tree_1): Likewise.
4259 (lower_nested_functions): Likewise.
4260 * tree-optimize.c (execute_fixup_cfg): Likewise.
4261 (tree_rest_of_compilation): Likewise.
4262 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4263 * tree-sra.c (ipa_early_sra): Likewise.
4264 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4265 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4266 * ipa.c (record_cdtor_fn): Likewise.
4267 * ipa-inline.c (cgraph_early_inlining): Likewise.
4268 (compute_inline_parameters_for_current): Likewise.
4269 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4270 * ipa-pure-const.c (local_pure_const): Likewise.
4271 * ipa-split.c (split_function): Likewise.
4272 (execute_split_functions): Likewise.
4273 * cgraphbuild.c (build_cgraph_edges): Likewise.
4274 (rebuild_cgraph_edges): Likewise.
4275 (cgraph_rebuild_references): Likewise.
4276 (remove_cgraph_callee_edges): Likewise.
4277 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4278 (verify_cgraph_node): Likewise.
4279 (cgraph_analyze_functions): Likewise.
4280 (cgraph_preserve_function_body_p): Likewise.
4281 (save_inline_function_body): Likewise.
4282 (save_inline_function_body): Likewise.
4283 * tree-inline.c (copy_bb): Likewise.
4284 (optimize_inline_calls): Likewise.
4286 2011-04-11 Martin Jambor <mjambor@suse.cz>
4288 PR tree-optimization/48195
4289 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4290 ipa_check_create_edge_args.
4291 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4292 ipa_check_create_edge_args.
4293 * ipa-inline.c (inline_generate_summary): Do not call
4294 ipa_check_create_node_params and ipa_check_create_edge_args.
4295 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4296 ipa_check_create_edge_args.
4298 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4300 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4302 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4303 * function.c (record_hard_reg_sets): Likewise.
4304 * ira.c (compute_regs_asm_clobbered): Likewise.
4305 * sched-deps.c (sched_analyze_1): Likewise.
4306 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4308 2011-04-09 Xinliang David Li <davidxl@google.com>
4310 PR tree-optimization/PR48484
4311 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4312 has_valid_pred lazily
4314 2011-04-09 Duncan Sands <baldrick@free.fr>
4316 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4318 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4320 * combine.c (combine_validate_cost): Adjust comments. Set registered
4321 cost of I0 to zero at the end, if any.
4323 2011-04-08 Xinliang David Li <davidxl@google.com>
4325 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4326 to insane profile data.
4328 2011-04-08 Xinliang David Li <davidxl@google.com>
4330 * ipa-cp.c (ipcp_update_profiling): Correct
4331 negative scale factor due to insane profile data.
4333 2011-04-08 Xinliang David Li <davidxl@google.com>
4335 * final.c (dump_basic_block_info): New function.
4336 (final): Dump basic block.
4337 (final_scan_insn): Remove old dump.
4339 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4342 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4345 2011-04-08 Michael Matz <matz@suse.de>
4348 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4350 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4351 * rtl.h (rebuild_jump_labels_chain): Declare.
4352 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4353 insns inserted on edges.
4355 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4357 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4358 * config/arm/arm-arches.def: New.
4359 * config/arm/arm-opts.h: New.
4360 * config/arm/genopt.sh: New.
4361 * config/arm/arm-tables.opt: New (generated).
4362 * config/arm/arm.c (arm_handle_option, arm_target_help,
4363 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4364 (all_architectures): Get most table contents from arm-arches.def.
4365 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4366 arm_selected_tune here.
4367 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4368 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4369 (march=, mcpu=, mtune=): Use Enum and Var.
4370 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4371 (arm.o): Update dependencies.
4373 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4375 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4377 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4378 (write_typed_alloc_defns): Likewise.
4379 (main): Calls write_typed_alloc_defns with output_header.
4381 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4384 * ira-color.c (setup_profitable_hard_regs): Add comments.
4385 Don't take prohibited hard regs into account.
4386 (setup_conflict_profitable_regs): Rename to
4387 get_conflict_profitable_regs.
4388 (check_hard_reg_p): Check prohibited hard regs.
4390 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4392 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4393 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4394 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4396 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4399 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4400 move from floating point to shift amount register.
4401 (emit_move_sequence): Remove secondary reload support for floating
4402 point to shift amount amount register copies.
4403 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4404 amount register copies.
4405 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4406 register, return false if mode isn't a scalar integer mode.
4407 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4409 2011-04-08 Richard Guenther <rguenther@suse.de>
4411 * gimple.c (gimple_call_flags): Remove kludge.
4413 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4415 * sel-sched.c (sel_region_init): Move call to
4416 sel_setup_region_sched_flags after setup_current_loop_nest.
4418 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4420 PR rtl-optimization/48272
4421 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4422 init_insn_reg_pressure_info. Adjust a caller.
4423 * sched-int.h (init_insn_reg_pressure_info): Declare.
4424 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4425 when sched-pressure is enabled.
4427 2011-04-08 Richard Guenther <rguenther@suse.de>
4429 * gimple.c (gimple_set_modified): Do not queue calls to
4430 MODIFIED_NORETURN_CALLS here ...
4431 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4433 2011-04-08 Richard Guenther <rguenther@suse.de>
4436 * toplev.c (lang_dependent_init): Do not open asm_out_file
4437 in WPA mode, nor perform debug machinery initialization.
4438 (finalize): Do not unlink asm_out_file in WPA mode.
4440 2011-04-08 Richard Guenther <rguenther@suse.de>
4442 * gimple.h (gimple_call_fntype): New function.
4443 (gimple_call_return_type): Use it.
4444 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4445 * gimple-low.c (gimple_check_call_args): Likewise.
4446 * gimple.c (gimple_call_flags): Likewise.
4447 (gimple_call_arg_flags): Likewise.
4448 (gimple_call_return_flags): Likewise.
4449 * tree-cfg.c (verify_gimple_call): Likewise.
4450 (do_warn_unused_result): Likewise.
4451 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4452 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4454 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4456 PR rtl-optimization/48235
4457 * sel-sched.c (code_motion_process_successors): Recompute the last
4458 insn in basic block if control flow changed.
4459 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4460 Update condition for ilist_remove.
4462 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4464 PR rtl-optimization/48302
4465 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4466 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4467 it to record added preheader blocks.
4468 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4469 on to sel_add_loop_preheaders.
4470 (sel_region_init): Move call to setup_current_loop_nest after
4473 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4476 * cfgloop.h (loop_has_exit_edges): New helper.
4477 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4479 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4480 that have no exit edges.
4482 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4484 PR rtl-optimization/48442
4485 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4486 all callers. Adjust assert.
4488 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4490 PR tree-optimization/48377
4491 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4492 is_packed to true even for types with smaller TYPE_ALIGN than
4495 2011-04-08 Richard Guenther <rguenther@suse.de>
4498 * doc/tm.texi: Re-generate.
4500 2011-04-08 Wei Guozhi <carrot@google.com>
4503 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4504 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4505 * config/arm/arm.md (*push_multi): Change the length computation to
4508 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4510 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4511 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4512 * doc/tm.texi: Regenerate.
4513 * system.h (ASM_OUTPUT_BSS): Poison.
4514 * varasm.c (asm_output_bss): Remove function.
4515 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4517 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4518 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4519 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4520 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4522 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4524 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4526 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4528 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4530 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4533 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4535 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4536 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4537 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4539 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4540 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4541 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4542 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4543 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4544 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4545 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4546 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4547 options. Don't map other m68k options manually. Don't handle
4548 old-style options as canonical.
4549 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4550 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4552 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4554 * basic-block.h (force_nonfallthru): Move to...
4555 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4556 (force_nonfallthru): ...here.
4557 * cfghooks.c (force_nonfallthru): New function.
4558 * cfgrtl.c (force_nonfallthru): Rename into...
4559 (rtl_force_nonfallthru): ...this.
4560 (commit_one_edge_insertion): Do not set AUX field.
4561 (commit_edge_insertions): Do not discover new basic blocks.
4562 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4563 (cfg_layout_rtl_cfg_hooks): Likewise.
4564 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4565 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4566 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4568 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4570 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4573 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4575 * config/i386/sse.md: Update copyright year.
4576 (avxcvtvecmode): Remove.
4577 (sse_movhlps): Merge with *avx_movhlps.
4578 (sse_movlhps): Merge with *avx_movlhps.
4579 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4580 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4581 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4582 (sse_loadhps): Merge with *avx_loadhps.
4583 (sse_storelps): Merge with *avx_storelps.
4584 (sse_loadlps): Merge with *avx_loadlps.
4585 (sse_movss): Merge with *avx_movss.
4586 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4587 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4588 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4589 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4590 (vec_set<mode>_0): Ditto.
4591 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4592 (sse4_1_insertps): Merge with *avx_insertps.
4593 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4594 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4595 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4596 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4597 (sse2_storehpd): Merge with *avx_storehpd.
4598 (sse2_loadhpd): Merge with *avx_loadhpd.
4599 (sse2_loadlpd): Merge with *avx_loadlpd.
4600 (sse2_movsd): Merge with *avx_movsd.
4601 (*vec_concatv2df): Merge with *vec_concatv2df.
4603 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4606 * combine.c (combine_instructions): Add last_combined_insn,
4607 update it if insn is after it, pass it to all try_combine calls.
4608 (try_combine): Add last_combined_insn parameter, pass it instead of
4609 i3 to propagate_for_debug.
4611 2011-04-07 Nick Clifton <nickc@redhat.com>
4613 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4614 to handle MDR <-> data register transfers.
4615 (movhi_internal): Likewise.
4617 2011-04-07 Alan Modra <amodra@gmail.com>
4619 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4620 previous stack info.
4622 2011-04-07 Tom de Vries <tom@codesourcery.com>
4625 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4626 flow_find_cross_jump. Swap variables to implement backward replacement.
4627 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4629 2011-04-07 Tom de Vries <tom@codesourcery.com>
4632 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4633 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4635 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4636 src1 or src2. Redirect edges to the last basic block. Update
4637 frequency and count on multiple basic blocks in case of fallthru.
4639 2011-04-07 Tom de Vries <tom@codesourcery.com>
4642 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4644 (old_insns_match_p): Change return type. Replace return false/true
4645 with return dir_none/dir_both. Use can_replace_by.
4646 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4647 direction from dir_p. Register replacement direction in dir, last_dir
4648 and afterlast_dir. Handle new return type of old_insns_match_p using
4649 merge_dir. Return replacement direction in dir_p.
4650 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4651 return type of old_insns_match_p.
4652 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4653 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4654 flow_find_cross_jump.
4655 * basic-block.h (enum replace_direction): New type.
4656 (flow_find_cross_jump): Add parameter to declaration.
4658 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4660 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4661 (AVXMODEDCVTPS2DQ): Ditto.
4662 (VEC_FLOAT_MODE): Ditto.
4663 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4664 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4665 (<any_logic:code><mode>3): Use VF mode iterator.
4666 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4667 Use VF mode iterator.
4668 (copysign<mode>3): Use VF mode iterator.
4669 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4670 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4671 (*<any_logic:code><MODEF:mode>3): Merge with
4672 *avx_<any_logic:code><MODEF:mode>3.
4673 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4674 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4675 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4676 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4677 (sse2_cvtdq2ps): Use %v modifier.
4678 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4679 (avx_cvtps2dq<avxmodesuffix>): Remove.
4680 (sse2_cvtps2dq): Use %v modifier.
4681 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4682 (avx_cvttps2dq<avxmodesuffix>): Remove.
4683 (sse2_cvttps2dq): Use %v modifier.
4684 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4685 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4686 (sse2_cvtsd2siq): Fix insn template.
4687 (sse2_cvtsd2siq_2): Ditto.
4688 (sse2_cvttsd2siq): Ditto.
4689 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4690 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4692 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4694 * gcov-io.c: Use GCC Runtime Library Exception.
4696 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4699 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4700 as base_reg whatever register reg has been eliminated to, instead
4701 of hardcoding STACK_POINTER_REGNUM.
4703 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4705 * doc/tm.texi.in: Document C target hooks as separate from general
4707 * doc/tm.texi: Regenerate.
4708 * genhooks.c (struct hook_desc): Add docname field.
4709 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4711 (hook_array): Include c-target.def.
4712 (emit_documentation): Use docname field in output.
4713 (emit_init_macros): Take docname argument. Only emit definitions
4714 for hooks matching docname.
4715 (main): Expect additional arguments in all cases. Pass argument
4716 to emit_init_macros.
4717 * target.def: Move initial macro definitions and comments to
4718 target-hooks-macros.h.
4719 (gcc_targetcm): Move to c-family/c-target.def.
4720 * target.h (targetcm): Move declaration to c-family/c-target.h.
4721 * targhooks.c (default_handle_c_option): Move to
4723 * targhooks.h (default_handle_c_option): Move declaration to
4724 c-family/c-common.h.
4725 * target-hooks-macros.h: New file.
4726 * config.gcc (target_has_targetcm): Define and use to add to
4727 c_target_objs and cxx_target_objs.
4728 * config/default-c.c: New file.
4729 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4730 of target.h and target-def.h.
4731 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4732 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4733 darwin_check_cfstring_format_arg): Make static.
4734 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4735 TARGET_STRING_OBJECT_REF_TYPE_P,
4736 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4737 * config/darwin-protos.h (darwin_objc_construct_string,
4738 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4740 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4741 TARGET_STRING_OBJECT_REF_TYPE_P,
4742 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4743 * config/t-darwin (darwin-c.o): Update dependencies.
4744 * system.h (TARGET_HAS_TARGETCM): Poison.
4745 * Makefile.in (TARGET_H): Update.
4746 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4747 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4748 (default-c.o): New target.
4749 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4750 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4751 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4753 (build/genhooks.o): Update dependencies.
4755 2011-04-06 Richard Guenther <rguenther@suse.de>
4757 * ipa-inline.c (enum inlining_mode): Remove.
4758 (cgraph_flatten): Use some other token.
4759 (cgraph_edge_early_inlinable_p): New function, split out from ...
4760 (cgraph_perform_always_inlining): New function, split out from ...
4761 (cgraph_decide_inlining_incrementally): ... here.
4762 (cgraph_mark_inline_edge): Adjust.
4763 (cgraph_early_inlining): Re-structure.
4764 (pass_early_inline): Require SSA form.
4766 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4767 Julian Brown <julian@codesourcery.com>
4768 Mark Shinwell <shinwell@codesourcery.com>
4770 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4771 LO_REGS only for Thumb-1.
4772 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4773 be used in short instructions when optimising for size on Thumb-2.
4775 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4777 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4778 associated with user returns to be preserved.
4780 2011-04-06 Tristan Gingold <gingold@adacore.com>
4782 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4783 symbol_queue_size, DBXOUT_DECR_NESTING,
4784 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4785 if XCOFF_DEBUGGING_INFO.
4787 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4789 * config/i386/i386.md (attribute isa): New.
4790 (attribute enabled): New.
4791 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4792 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4793 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4794 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4795 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4796 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4797 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4798 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4800 * config/i386/sse.md (VF): New mode iterator.
4804 (SSEMODEF4): Remove.
4805 (attribute sse): Handle V8SF and V4DF modes.
4806 (<absneg:code><mode>2): Use VF mode iterator.
4807 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4809 (<plusminus_insn><mode>3): Use VF mode iterator.
4810 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4811 Use VF mode iterator.
4812 (<sse>_vm<plusminus_insn><mode>3): Merge with
4813 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4814 (mul<mode>3): Use VF mode iterator.
4815 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4816 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4818 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4819 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4820 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4821 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4823 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4824 Use VF1 mode iterator.
4825 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4826 (sqrt<VF2:mode>2): New expander.
4827 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4828 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4829 and sqrtv2df2. Use VF mode iterator.
4830 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4832 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4833 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4834 Use VF1 mode iterator.
4835 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4836 (<smaxmin:code><mode>3): Use VF mode iterator.
4837 (*<smaxmin:code><mode>3_finite): Merge with
4838 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4839 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4840 (<sse>_vm<smaxmin:code><mode>2): Merge with
4841 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4842 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4844 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
4846 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
4847 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
4848 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
4849 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
4850 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
4852 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
4853 Use VF_128 mode iterator.
4854 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
4856 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
4857 VF_128 mode iterator.
4858 (vcond<mode>): Use VF mode iterator.
4859 * config/i386/predicates.md (sse_comparison_operator): Merge with
4860 avx_comparison_float_operator. Do not declare as special_predicate.
4861 * config/i386/i386.c (struct builtin_description): Update for renamed
4863 (ix86_expand_args_builtin): Ditto.
4864 (ix86_expand_sse_compare_mask): Ditto.
4866 2011-04-06 Richard Guenther <rguenther@suse.de>
4868 * tree-inline.c (estimate_num_insns): For calls simply account
4869 for all passed arguments and a used return value.
4871 2011-04-06 Richard Guenther <rguenther@suse.de>
4873 PR tree-optimization/47663
4874 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
4875 call_stmt_time fields.
4876 (cgraph_edge_inlinable_p): Declare.
4877 (cgraph_edge_recursive_p): New inline function.
4878 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
4879 (cgraph_clone_edge): Copy it.
4880 * ipa-inline.c (cgraph_estimate_edge_time): New function.
4881 Account for call stmt time.
4882 (cgraph_estimate_time_after_inlining): Take edge argument.
4883 (cgraph_estimate_edge_growth): Account call stmt size.
4884 (cgraph_estimate_size_after_inlining): Take edge argument.
4885 (cgraph_mark_inline_edge): Adjust.
4886 (cgraph_check_inline_limits): Likewise.
4887 (cgraph_recursive_inlining_p): Remove.
4888 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
4889 (cgraph_decide_recursive_inlining): Take edge argument and
4891 (cgraph_decide_inlining_of_small_functions): Do not avoid
4892 diags for recursive inlining here.
4893 (cgraph_flatten): Adjust.
4894 (cgraph_decide_inlining_incrementally): Likewise.
4895 (estimate_function_body_sizes): Remove call cost handling.
4896 (compute_inline_parameters): Initialize caller edge call costs.
4897 (cgraph_estimate_edge_growth): New function.
4898 (cgraph_estimate_growth): Use it.
4899 (cgraph_edge_badness): Likewise.
4900 (cgraph_check_inline_limits): Take an edge argument.
4901 (cgraph_decide_inlining_of_small_functions): Adjust.
4902 (cgraph_decide_inlining): Likewise.
4903 * tree-inline.c (estimate_num_insns): Only account for call
4904 return value if it is used.
4905 (expand_call_inline): Avoid diagnostics on recursive inline
4907 * lto-cgraph.c (lto_output_edge): Output edge call costs.
4908 (input_edge): Input edge call costs.
4910 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4912 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
4914 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4916 * doc/invoke.texi (Spec Files): Fix typo.
4918 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4920 * profile.c (branch_prob): Move declaration of local variable. Remove
4921 obsolete ??? comment. Expand the location explicitly instead of using
4922 the LOCATION_FILE and LOCATION_LINE macros.
4924 2011-04-06 Wei Guozhi <carrot@google.com>
4927 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
4928 (arm_cond_branch): Likewise.
4929 (arm_cond_branch_reversed): Likewise.
4930 (arm_jump): Likewise.
4931 (push_multi): Likewise.
4932 * config/arm/constraints.md (Py): New constraint.
4934 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4937 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
4939 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
4940 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
4941 #ifdef DBX_DEBUGGING_INFO.
4943 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
4946 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
4947 if old and new states differ.
4949 2011-04-05 Joseph Myers <joseph@codesourcery.com>
4951 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
4952 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
4953 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4954 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
4955 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
4957 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
4958 ColdFire options to -mcpu= options.
4960 2011-04-05 Jeff Law <law@redhat.com>
4962 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
4963 check if BB is a successor of LOOP->header and return
4964 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
4966 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4968 * cprop.c (struct reg_use): Remove.
4969 (reg_use_table): Make an array of RTX.
4970 (find_used_regs, constprop_register, local_cprop_pass,
4971 bypass_block): Simplify users of reg_use_table.
4972 (cprop_insn): Likewise. Iterate if copy propagation succeeded
4973 on one of the uses found by find_used_regs.
4975 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4978 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
4981 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4983 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
4985 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
4987 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
4990 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
4992 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
4994 * combine.c: Include obstack.h.
4995 (struct insn_link): Define.
4996 (uid_log_links): Adjust type.
4997 (FOR_EACH_LOG_LINK): New macro.
4998 (insn_link_obstack): Declare.
4999 (alloc_insn_link): Define.
5000 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5001 type of link variables.
5002 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5003 (try_combine, record_promoted_values, distribute_notes): Likewise.
5004 (distribute_links): Likewise. Tweak prototype.
5005 (clear_log_links): Delete.
5006 (adjust_for_new_dest): Call alloc_insn_link.
5007 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5009 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5011 * gcse.c (modify_mem_list): Convert to an array of VECs.
5012 (canon_modify_mem_list, compute_transp): Tweak formatting.
5013 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5014 (load_killed_in_block_p): Likewise.
5015 (record_last_mem_set_info): Likewise.
5016 (clear_modify_mem_tables): Likewise.
5018 2011-04-05 Tom de Vries <tom@codesourcery.com>
5021 * function.c (emit_use_return_register_into_block): Only define if
5024 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5026 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5028 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5030 * config/rx/rx-opts.h: New.
5031 * config/rx/rx.c (rx_cpu_type): Remove.
5032 (rx_handle_option): Don't assert that global structures are in
5033 use. Access variables via opts pointer. Defer most handling of
5034 OPT_mint_register_. Use error_at.
5035 (rx_option_override): Handle deferred OPT_mint_register_ here.
5036 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5037 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5038 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5039 (rx_cpu_types): New Enum and EnumValue entries.
5040 (mint-register=): Use Defer and use Var accordingly.
5042 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5044 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5045 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5046 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5048 (debug_free_queue, debug_nesting, symbol_queue_index):
5050 * dbxout.c: ...to here. Make static.
5052 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5054 * gcse.c (modify_pair): Define. Define a VEC of it.
5055 (canon_modify_mem_list): Convert to an array of VECs.
5056 (free_insn_expr_list_list): Delete.
5057 (clear_modify_mem_tables): Call VEC_free instead.
5058 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5059 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5060 (canon_list_insert, compute_transp): Likewise.
5062 2011-04-05 Tom de Vries <tom@codesourcery.com>
5065 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5068 2011-04-05 Tom de Vries <tom@codesourcery.com>
5071 * function.c (emit_use_return_register_into_block): New function.
5072 (thread_prologue_and_epilogue_insns): Use
5073 emit_use_return_register_into_block.
5075 2011-04-05 Tom de Vries <tom@codesourcery.com>
5078 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5081 2011-04-05 Tom de Vries <tom@codesourcery.com>
5083 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5085 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5087 * config/arm/arm.md (define_constants for unspec): Replace with
5089 (define_constants for unspecv): Replace with define_c_enum.
5090 * config/arm/neon.md (define_constants for unspec): Replace with
5093 2011-04-04 Richard Henderson <rth@redhat.com>
5096 * dwarf2out.c (output_line_info): Always emit line info from
5097 at least one section.
5098 (dwarf2out_init): Create text_section_line_info here ...
5099 (set_cur_line_info_table): ... not here.
5101 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5104 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5107 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5109 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5111 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5112 (expr_equiv_p): Remove.
5113 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5114 (hash_scan_set): Update call to insert_set_in_table.
5115 (dump_hash_table): Dump <dest, src> pair.
5116 (lookup_set): Simplify. Lookup <dest, src> pair.
5117 (compute_transp): Remove, fold heavily simplified code into...
5118 (compute_local_properties): ...here. Expect COMP and TRANSP
5120 (find_avail_set): Take set directly from struct expr.
5121 (find_bypass-set): Likewise.
5122 (bypass_block): Likewise.
5123 (cprop_insn): Likewise. Remove redundant INSN_P test.
5125 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5126 checks on form of COND from find_implicit_sets to here.
5127 (find_implicit_sets): Cleanup control flow. Split critical edges
5128 if it exposes implicit sets. Allocate/resize implicit_sets as
5130 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5131 changed something. Run df_analyze after find_implicit_sets if any
5132 edges were split. Do not allocate implicit_sets here.
5134 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5135 (gcse_obstack): Renamed to cprop_obstack.
5136 (GNEW, GNEWVEC, GNEWVAR): Remove.
5138 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5139 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5140 (gcse_alloc): Likewise, and rename to cprop_alloc.
5141 (alloc_gcse_men, free_gcse_mem): Remove.
5142 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5143 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5144 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5146 * cprop.c (oprs_not_set_p): Remove.
5147 (mark_set, mark_clobber): Remove.
5148 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5149 (reg_not_set_p): New function.
5150 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5151 (cprop_insn): Likewise.
5152 (cprop_jump): Use FOR_EACH_EDGE.
5154 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5157 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5158 (rank_for_schedule): Use scheduled_insns vector instead of
5159 last_scheduled_insn.
5160 (ok_for_early_queue_removal): Likewise.
5161 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5163 (choose_ready): Likewise.
5164 (commit_schedule): Use VEC_iterate.
5165 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5166 a dbg_cnt, use it and ensure the first insn is in the ready list.
5167 (haifa_sched_init): Allocate scheduled_insns.
5168 (sched_extend_ready_list): Don't allocate it; reserve space.
5169 (haifa_sched_finish): Free it.
5171 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5173 * optc-gen.awk: Always remove type from Variable entry before
5174 recording in var_seen.
5176 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5178 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5179 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5180 call to tidy_fallthru_edges.
5182 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5184 * doc/options.texi (ToLower): Document.
5185 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5186 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5187 * opts.h (cl_option): Add cl_tolower field.
5188 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5189 arguments with lowercase strings.
5190 * config/rx/rx.opt (mcpu=): Add ToLower.
5191 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5194 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5196 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5198 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5200 * config/vax/vax.c: Include reload.h.
5202 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5204 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5205 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5206 (sparc_preferred_reload_class): New function.
5208 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5211 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5212 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5214 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5216 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5217 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5219 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5221 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5222 (ASM_OUTPUT_ALIGNED_BSS): Define.
5224 2011-04-03 Michael Matz <matz@suse.de>
5226 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5227 and next_slot members.
5228 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5229 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5230 (lto_streamer_cache_append): Declare.
5231 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5232 unsigned index, remove offset parameter, ensure that we append
5233 or update existing entries.
5234 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5235 parameter, update next_slot for append.
5236 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5238 (lto_streamer_cache_insert_at): Likewise.
5239 (lto_streamer_cache_append): New function.
5240 (lto_streamer_cache_lookup): Use unsigned index.
5241 (lto_streamer_cache_get): Likewise.
5242 (lto_record_common_node): Don't test tree_node_can_be_shared.
5243 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5244 (lto_streamer_cache_delete): Don't free offsets member.
5245 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5246 (lto_output_string_with_length): Use lto_output_data_stream.
5247 (lto_output_tree_header): Remove ix parameter, don't write it.
5248 (lto_output_builtin_tree): Likewise.
5249 (lto_write_tree): Adjust callers to above, don't track and write
5250 offset, write unsigned index.
5251 (output_unreferenced_globals): Don't emit all global vars.
5252 (write_global_references): Use unsigned indices.
5253 (lto_output_decl_state_refs): Likewise.
5254 (write_symbol): Likewise.
5255 * lto-streamer-in.c (lto_input_chain): Move earlier.
5256 (input_function): Use unsigned index.
5257 (input_alias_pairs): Don't read and then ignore all global vars.
5258 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5259 don't pass it back, use lto_streamer_cache_append.
5260 (lto_register_var_decl_in_symtab): Use unsigned index.
5261 (lto_register_function_decl_in_symtab): Likewise.
5262 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5264 (lto_get_builtin_tree): Don't read index, use
5265 lto_streamer_cache_append.
5266 (lto_read_tree): Adjust call to lto_materialize_tree.
5268 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5269 don't use function calls in arguments to MIN.
5271 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5274 * gimple.c (gimple_type_leader_entry): Mark deletable.
5276 2011-04-03 Alan Modra <amodra@gmail.com>
5278 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5280 2011-04-03 Michael Matz <matz@suse.de>
5282 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5284 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5286 2011-04-03 Michael Matz <matz@suse.de>
5288 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5289 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5290 without function context.
5291 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5292 current_function_decl and cfun.
5294 2011-04-03 Michael Matz <matz@suse.de>
5296 * tree.c (decl_init_priority_insert): Don't create entry for
5298 (decl_fini_priority_insert): Ditto.
5299 (fields_compatible_p, find_compatible_field): Remove.
5300 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5301 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5303 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5305 * combine.c (try_combine): Remove useless local variable.
5307 2011-04-03 Richard Guenther <rguenther@suse.de>
5308 Ira Rosen <ira.rosen@linaro.org>
5310 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5311 non-variable offsets and compare the remaining bases of the two
5312 accesses instead of looking for exact same data-ref.
5314 2011-04-02 Kai Tietz <ktietz@redhat.com>
5317 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5319 * i386.c (ix86_is_msabi_thiscall): New helper function.
5320 (ix86_is_type_thiscall): New helper function.
5321 (ix86_comp_type_attributes): Handle thiscall for method-functions
5323 (init_cumulative_args): Likewise.
5324 (find_drap_reg): Likewise.
5325 (ix86_static_chain): Likewise.
5326 (x86_this_parameter): Likewise.
5327 (x86_output_mi_thunk): Likewise.
5329 2011-04-01 Olivier Hainque <hainque@adacore.com>
5330 Nicolas Setton <setton@adacore.com>
5331 Eric Botcazou <ebotcazou@adacore.com>
5333 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5334 (add_gnat_descriptive_type_attribute): New function.
5335 (gen_array_type_die): Call it.
5336 (gen_enumeration_type_die): Likewise.
5337 (gen_struct_or_union_type_die): Likewise.
5338 (modified_type_die): Likewise.
5339 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5340 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5341 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5343 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5346 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5347 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5350 2011-03-17 Richard Guenther <rguenther@suse.de>
5353 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5354 origin for decls in other ltrans units.
5355 (input_varpool_node): Likewise.
5357 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5360 * expr.c (expand_assignment): Handle all possibilities
5361 if TO_RTX is CONCAT.
5362 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5363 (store_split_bit_field): If SUBREG_REG (op0) or
5364 op0 itself has smaller mode than word, return it
5365 for offset 0 and const0_rtx for out-of-bounds stores.
5366 If word is const0_rtx, skip it.
5368 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5370 * config/h8300/h8300.c (print_operand_address): Rename to...
5371 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5372 Call h8300_print_operand and h8300_print_operand_address instead of
5373 print_operand and print_operand_address. Declare.
5374 (print_operand): Renake to...
5375 (h8300_print_operand): ...this. Make static. Adjust comments.
5376 Call h8300_print_operand instead of print_operand. Declare.
5377 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5378 (h8300_register_move_cost): Likewise.
5379 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5380 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5381 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5382 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5383 * config/h8300/h8300-protos.h (print_operand): Delete.
5384 (print_operand_address): Delete.
5386 2011-04-01 Richard Henderson <rth@redhat.com>
5389 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5390 in strict mode before dwarf4. Re-order tests to early out
5391 before switching sections.
5393 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5395 * config/h8300/constraints.md: New file.
5396 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5397 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5398 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5399 * config/h8300/predicates.md (bit_operand): Likewise.
5400 (incdec_operand): Use satisfies_constraint_M and
5401 satisfies_constraint_O. Don't use C code block.
5402 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5403 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5404 (compute_mov_length): Use satisfies_constraint_G.
5405 (fix_bit_operand): Use satisfies_constraint_U.
5406 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5407 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5408 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5409 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5410 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5411 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5412 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5413 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5414 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5415 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5416 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5417 (EXTRA_MEMORY_CONSTRAINT): Delete.
5419 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5420 Michael Meissner <meissner@linux.vnet.ibm.com>
5423 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5424 operands, as per the specifications.
5426 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5427 (vec_extract_evenv4sf): Ditto.
5428 (vec_extract_evenv8hi): Ditto.
5429 (vec_extract_evenv16qi): Ditto.
5430 (vec_extract_oddv4si): Ditto.
5432 2011-03-31 Mark Wielaard <mjw@redhat.com>
5434 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5435 high_pc attribute if the CU has no associated code. Only output
5436 DW_AT_entry_pc for CU if not generating strict dwarf and
5439 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5441 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5442 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5444 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5445 * final.c (final_start_function): Call the new function rather
5446 than using a NULL argument for dwarf2out_frame_debug.
5448 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5449 that contains the prologue.
5451 * haifa-sched.c (queue_insn): New arg REASON. All callers
5452 changed. Print it in debugging output.
5454 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5456 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5457 Split most of the code into...
5458 (begin_move_insn): ... here. New function.
5459 (ebb_sched_info): Add a pointer to it.
5460 * haifa-sched.c (scheduled_insns): New static variable.
5461 (sched_extend_ready_list): Allocate it.
5462 (schedule_block): Use it to record the order of scheduled insns.
5463 Perform RTL changes to move insns only after all scheduling
5464 decisions have been made.
5465 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5466 begin_move_insn field.
5467 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5468 * sched-int.h (struct haifa_sched_info): Remove second argument
5469 from begin_schedule_ready hook. Add new member begin_move_insn.
5470 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5471 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5473 * haifa-sched.c (prune_ready_list): New function, broken out of
5475 (schedule_block): Use it.
5477 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5479 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5481 2011-04-01 Kai Tietz <ktietz@redhat.com>
5483 * config.gcc (*-*-mingw*): Allow as option the
5484 posix threading model.
5485 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5486 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5488 (CPP_SPEC): Add pthread/no-pthread handling.
5489 (LIB_SPEC): Likewise.
5490 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5491 (LIB_SPEC): Likewise.
5492 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5493 flag to pass -pthread option for shared libgcc build.
5494 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5495 for shared libgcc build.
5496 * config/i386/t-mingw-pthread: New file.
5497 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5498 New define to enable use of library pthread by default.
5499 * config/i386/mingw.opt (pthread): New driver option.
5500 (no-pthread): New driver option.
5501 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5502 * config/i386/mingw-w64.opt: Likewise.
5504 2011-04-01 Gary Funck <gary@intrepid.com>
5506 * c-decl.c (grokdeclarator): Fix formatting.
5508 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5510 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5511 instead of n_operands.
5512 (set_storage_via_setmem): Likewise.
5513 * optabs.c (maybe_gen_insn): Likewise.
5514 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5515 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5516 (mips_expand_builtin_direct): Likewise.
5517 * config/spu/spu.c (expand_builtin_args): Likewise.
5519 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5521 * recog.h (insn_data_d): Add n_generator_args.
5522 * genoutput.c (data): Likewise.
5523 (output_insn_data): Print it.
5524 (max_opno, num_dups): Delete.
5525 (scan_operands): Just fill in "d->operand[...]".
5526 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5528 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5530 * gensupport.h (pattern_stats): New structure.
5531 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5532 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5533 (max_operand_1, max_operand_vec): Delete.
5534 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5536 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5538 * emit-rtl.c (emit_pattern_after_setloc): New function.
5539 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5540 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5541 (emit_pattern_after): New function.
5542 (emit_insn_after, emit_jump_insn_after): Call it.
5543 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5544 (emit_pattern_before_setloc): New function.
5545 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5546 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5548 (emit_pattern_before): New function.
5549 (emit_insn_before, emit_jump_insn_before): Call it.
5550 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5552 2011-03-31 Richard Henderson <rth@redhat.com>
5554 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5555 (dw_separate_line_info_entry): Remove.
5556 (enum dw_line_info_opcode): New.
5557 (dw_line_info_entry): Use it.
5558 (dw_line_info_table, dw_line_info_table_p): New.
5559 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5560 (line_info_table, line_info_label_num): Remove.
5561 (line_info_table_in_use): Remove.
5562 (separate_line_info_table): Remove.
5563 (separate_line_info_table_allocated): Remove.
5564 (separate_line_info_table_in_use): Remove.
5565 (LINE_INFO_TABLE_INCREMENT): Remove.
5566 (line_info_label_num): New.
5567 (cur_line_info_table): New.
5568 (text_section_line_info, cold_text_section_line_info): New.
5569 (separate_line_info): New.
5570 (SEPARATE_LINE_CODE_LABEL): Remove.
5571 (print_dwarf_line_table): Remove.
5572 (debug_dwarf): Don't dump it.
5573 (output_one_line_info_table): New.
5574 (output_line_info): Use it.
5575 (new_line_info_table): New.
5576 (set_cur_line_info_table): New.
5577 (dwarf2out_switch_text_section): Use it.
5578 (dwarf2out_begin_function): Likewise.
5579 (push_dw_line_info_entry): New.
5580 (dwarf2out_source_line): Rewrite for new line info tables.
5581 (dwarf2out_init): Remove dead initailizations.
5583 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5585 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5587 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5588 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5589 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5590 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5591 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5592 * opt-functions.awk (flag_init, switch_bit_fields): New.
5593 (switch_flags): Don't handle flags moved to bit-fields. Don't
5594 generate CL_MISSING_OK or CL_SAVE.
5595 * optc-gen.awk: Update to generate bit-field output as well as
5597 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5598 bit-field instead of CL_REJECT_DRIVER flag.
5599 * opts-common.c (generate_canonical_option,
5600 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5601 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5602 instead of CL_REJECT_NEGATIVE flag.
5603 * toplev.c (print_switch_values): Use cl_report bit-field instead
5606 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5608 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5609 a zero minimum index only if it is redundant.
5611 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5613 PR rtl-optimization/48381
5614 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5615 instead of ira_class_hard_reg_index for calculating conflicting
5618 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5620 * cprop.c: Clean up hash table building.
5621 (reg_avail_info): Remove.
5622 (oprs_available_p): Remove.
5623 (record_last_reg_set_info): Remove.
5624 (record_last_set_info): Remove.
5625 (reg_available_p): New function.
5626 (gcse_constant_p): Do not treat unfolded conditions as constants.
5627 (make_set_regs_unavailable): New function.
5628 (hash_scan_set): Simplify with new reg_available_p.
5629 (compute_hash_table_work): Traverse insns stream only once.
5630 Do not compute reg_avail_info. Traverse insns in reverse order.
5631 Record implicit sets after recording explicit sets from the block.
5633 2011-03-31 Michael Matz <matz@suse.de>
5635 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5637 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5639 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5640 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5641 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5642 (h8300_mode_dependent_address_p): New function.
5643 (h8300_get_index): Make static.
5645 2011-03-31 Jeff Law <law@redhat.com>
5647 * reload1.c (elimination_effects): Fix typo in recent change.
5649 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5650 typo potentially leading to null pointer dereference.
5652 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5653 (setup_save_areas): Corresponding changes to avoid useless
5656 * jump.c (reversed_comparison_code_parts): Avoid successive return
5657 statements when REVERSE_CONDITION is defined.
5659 * expr.c (expand_assignment): Avoid useless assignments.
5660 (expand_expr_real_1): Likewise.
5661 (expand_expr_real_2): Avoid useless statements.
5663 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5665 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5667 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5670 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5672 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5675 * doc/tm.texi.in (TARGET_VERSION): Remove.
5676 * doc/tm.texi: Regenerate.
5677 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5678 * collect2.c (main): Don't use TARGET_VERSION.
5679 * mips-tdump.c (main): Don't use TARGET_VERSION.
5680 * mips-tfile.c (main): Don't use TARGET_VERSION.
5681 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5682 * config/rs6000/vxworksae.h: Remove.
5683 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5684 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5685 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5686 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5687 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5688 * config/arm/arm.h (TARGET_VERSION): Remove.
5689 * config/arm/coff.h (TARGET_VERSION): Remove.
5690 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5691 * config/arm/elf.h (TARGET_VERSION): Remove.
5692 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5693 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5694 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5695 * config/arm/pe.h (TARGET_VERSION): Remove.
5696 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5697 * config/arm/semi.h (TARGET_VERSION): Remove.
5698 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5699 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5700 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5701 * config/avr/avr.h (TARGET_VERSION): Remove.
5702 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5703 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5704 * config/frv/frv.h (TARGET_VERSION): Remove.
5705 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5706 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5707 * config/i386/darwin.h (TARGET_VERSION): Remove.
5708 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5709 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5710 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5711 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5712 * config/i386/gnu.h (TARGET_VERSION): Remove.
5713 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5714 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5715 * config/i386/linux.h (TARGET_VERSION): Remove.
5716 * config/i386/linux64.h (TARGET_VERSION): Remove.
5717 * config/i386/lynx.h (TARGET_VERSION): Remove.
5718 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5719 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5720 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5721 * config/i386/netware.h (TARGET_VERSION): Remove.
5722 * config/i386/nto.h (TARGET_VERSION): Remove.
5723 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5724 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5725 * config/ia64/elf.h (TARGET_VERSION): Remove.
5726 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5727 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5728 * config/ia64/linux.h (TARGET_VERSION): Remove.
5729 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5730 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5731 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5732 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5733 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5734 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5735 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5736 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5737 * config/m68k/linux.h (TARGET_VERSION): Remove.
5738 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5739 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5740 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5741 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5742 * config/mep/mep.h (TARGET_VERSION): Remove.
5743 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5744 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5745 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5746 * config/mips/linux.h (TARGET_VERSION): Remove.
5747 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5748 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5749 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5750 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5751 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5752 * config/pa/pa.h (TARGET_VERSION): Remove.
5753 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5754 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5755 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5756 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5757 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5758 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5759 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5760 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5761 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5762 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5763 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5764 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5765 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5766 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5767 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5768 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5769 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5770 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5771 * config/s390/linux.h (TARGET_VERSION): Remove.
5772 * config/s390/s390.h (TARGET_VERSION): Remove.
5773 * config/s390/tpf.h (TARGET_VERSION): Remove.
5774 * config/score/score.h (TARGET_VERSION): Remove.
5775 * config/sh/linux.h (TARGET_VERSION): Remove.
5776 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5777 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5778 * config/sh/sh.h (TARGET_VERSION): Remove.
5779 * config/sh/sh64.h (TARGET_VERSION): Remove.
5780 * config/sh/superh.h (TARGET_VERSION): Remove.
5781 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5782 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5783 * config/sparc/linux.h (TARGET_VERSION): Remove.
5784 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5785 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5786 TARGET_NAME32, TARGET_NAME): Remove.
5787 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5788 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5789 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5790 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5791 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5792 * config/spu/spu.h (TARGET_VERSION): Remove.
5793 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5794 * config/v850/v850.h (TARGET_VERSION): Remove.
5795 * config/vax/linux.h (TARGET_VERSION): Remove.
5796 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5797 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5798 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5800 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5803 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5804 frame-related from frame-unrelated adjustments to the stack pointer.
5806 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5808 * common.opt (fdebug-types-section): Move earlier.
5809 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5811 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5813 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5816 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5818 * tree.h (CASE_CHAIN): Define.
5819 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5820 (gimple_redirect_edge_and_branch): Likewise.
5822 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5825 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5828 2011-03-30 Jeff Law <law@redhat.com>
5830 * PR bootstrap/48371
5831 * reload1.c (reload): Fix botch in last change.
5833 * reload.h (struct reload): Fix typo introduced in last change.
5835 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5837 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5838 Undocumented. Remove help text.
5839 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5842 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5844 * doc/options.texi (NegativeAlias): Document.
5845 (Alias): Mention NegativeAlias.
5846 * opt-functions.awk: Handle NegativeAlias.
5847 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
5848 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
5849 * opts.h (CL_NEGATIVE_ALIAS): Define.
5850 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
5851 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
5853 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
5855 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5856 mno-spe and mno-isel instead of mspe=no and -misel=no.
5858 2011-03-29 Mark Wielaard <mjw@redhat.com>
5860 * common.opt (fdebug-types-section): New flag.
5861 * doc/invoke.texi: Document new -fno-debug-types-section flag.
5862 * dwarf2out.c (use_debug_types): New define.
5863 (struct die_struct): Mark die_id with GTY desc use_debug_types.
5864 (print_die): Guard output of type unit signatures using
5866 (build_abbrev_table): Replace assert of dwarf_version >= 4
5867 with assert on use_debug_types.
5868 (size_of_die): Likewise.
5869 (unmark_dies): Likewise.
5870 (value_format): Decide AT_ref_external form on use_debug_types.
5871 (output_die): Replace dwarf_version version check guard with
5872 use_debug_types where appropriate.
5873 (modified_type_die): Likewise.
5874 (gen_reference_type_die): Likewise.
5875 (dwarf2out_start_source_file): Likewise.
5876 (dwarf2out_end_source_file): Likewise.
5877 (prune_unused_types_walk_attribs): Likewise.
5878 (dwarf2out_finish): Likewise.
5880 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5882 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
5884 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5886 PR rtl-optimization/48332
5887 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
5888 mode of input operand N and modeN to its actual mode.
5890 2011-03-30 Jeff Law <law@redhat.com>
5892 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
5893 define accessor macro.
5894 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
5895 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
5896 (reg_equiv_init): Likewise.
5897 (reg_equivs_size): New variable.
5898 (reg_equiv_init_size): Remove.
5899 (allocate_initial_values): Move prototype to here from....
5900 * integrate.h (allocate_initial_values): Remove prototype.
5901 * integrate.c: Include reload.h.
5902 (allocate_initial_values): Corresponding changes.
5903 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
5904 (fix_reg_equiv_init, no_equiv): Corresponding changes.
5905 (update_equiv_regs): Corresponding changes.
5906 (ira): Corresponding changes.
5907 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
5908 (push_secondary_reload): Corresponding changes.
5909 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
5910 (make_memloc, find_reloads_address): Corresponding changes.
5911 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
5912 (find_reloads_address_1): Corresponding changes.
5913 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
5914 (refers_to_regno_for_reload_p): Corresponding changes.
5915 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
5916 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
5917 * reload1.c: Include ggc.h.
5918 (grow_reg_equivs): New function.
5919 (replace_pseudos_in, reload): Corresponding changes.
5920 (calculate_needs_all_insns, alter_regs): Corresponding changes.
5921 (eliminate_regs_1, elimination_effects): Corresponding changes.
5922 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
5923 (delete_output_reload): Likewise.
5924 * caller-save.c (mark_referenced_regs): Corresponding changes.
5925 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
5926 * frv/predicates.md (frv_load_operand): Corresponding changes.
5927 * microblaze/microblaze.c (double_memory_operand): Corresponding
5929 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
5930 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
5931 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
5932 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
5933 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
5935 * pa/pa.c (emit_move_sequence): Corresponding changes.
5936 * vax/vax.c (nonindexed_address_p): Corresponding changes.
5938 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5941 * config/arm/arm.c (coproc_secondary_reload_class): Handle
5942 structure modes. Don't check neon_vector_mem_operand for
5943 vector or structure modes.
5945 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
5946 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5949 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
5950 operand 1 and reshuffle the operands to match.
5951 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
5953 2011-03-30 Christian Schüler <cschueler@gmx.de>
5956 * config/c.opt (F): Added 'Driver' to -F option.
5959 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
5961 * config/darwin.opt: Added '-arch' option.
5963 2011-03-30 Nick Clifton <nickc@redhat.com>
5965 * config/rx/rx.md: Add peepholes and patterns to combine
5966 extending loads and simple arithmetic instructions.
5967 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
5968 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
5969 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
5970 modes to use pre-decrement and post-increment addressing.
5971 (rx_is_restricted_memory_address): Add range checking of REG+INT
5973 (rx_print_operand): Add support for %Q. Fix handling of %Q.
5974 (rx_memory_move_cost): Adjust cost of stores.
5975 (rx_adjust_insn_length): New function.
5977 2011-03-30 Jakub Jelinek <jakub@redhat.com>
5980 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5981 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
5982 matching arg00/arg01 types.
5984 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
5986 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
5987 last_location to UNKNOWN_LOCATION.
5989 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
5992 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
5995 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5996 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5999 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6001 (sparc_cpu): Likewise.
6002 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6005 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6009 PR rtl-optimization/48345
6010 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6011 hard regs for given mode from profitable regs when doing secondary
6014 2011-03-29 Jeff Law <law@redhat.com>
6017 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6018 do_not_duplicate field.
6019 (lookup_redirection_data): Corresponding changes.
6020 (create_duplicates): Always create a template block.
6021 (redirect_edges): Remove code which reused the original block
6022 when it was going to become unreachable code.
6023 (thread_block): Don't set do_not_duplicate field.
6025 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6027 * lto-opts.c (register_user_option_p, lto_register_user_option):
6028 Make type argument unsigned.
6029 * lto-streamer.h (lto_register_user_option): Make type argument
6031 * opth-gen.awk: Make CL_* macros unsigned.
6032 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6033 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6034 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6035 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6036 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6037 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6038 (find_opt): Make lang_mask argument unsigned.
6040 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6042 PR rtl-optimization/48331
6043 PR rtl-optimization/48334
6044 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6045 for any used algorithm.
6047 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6049 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6052 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6054 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6055 (alpha_option_override): Don't set alpha_sr_alias_set.
6056 (emit_frame_store_1): Use gen_frame_mem rather than calling
6058 (alpha_expand_epilogue): Ditto.
6060 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6062 PR tree-optimization/48290
6063 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6064 vectorization, check that relevant phis in the basic block after
6065 the inner loop are really inner loop's exit phis.
6067 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6070 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6071 (cached_dw_loc_list_def): New structure.
6072 (cached_dw_loc_list): New typedef.
6073 (cached_dw_loc_list_table): New variable.
6074 (cached_dw_loc_list_table_hash): New function.
6075 (cached_dw_loc_list_table_eq): Likewise.
6076 (add_location_or_const_value_attribute): Take a bool cache_p.
6077 Cache the list when the parameter is true.
6078 (gen_formal_parameter_die): Update caller.
6079 (gen_variable_die): Likewise.
6080 (dwarf2out_finish): Likewise.
6081 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6082 while generating debug info for the decl.
6083 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6084 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6085 (resolve_addr): Cache the result of resolving a chain of
6088 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6090 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6091 conflict object hard regset nodes have intersecting hard reg sets.
6093 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6094 after regstat_init_n_sets_and_refs.
6096 * ira.c: Add more comments at the top.
6097 (setup_stack_reg_pressure_class, setup_pressure_classes):
6098 Add comments how we compute the register pressure classes.
6099 (setup_allocno_and_important_classes): Add more comments.
6100 (setup_class_translate_array, reorder_important_classes)
6101 (setup_reg_class_relations): Add comments.
6103 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6106 * ira-color.c: Add 2011 to the Copyright line.
6107 (assign_hard_reg): Add more comments.
6108 (improve_allocation): Ditto.
6110 * ira-costs.c: Add 2011 to the Copyright line.
6111 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6113 (setup_regno_cost_classes_by_mode): Ditto.
6115 Initial patches from ira-improv branch:
6117 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6119 * ira-build.c (ira_create_object): Remove initialization of
6120 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6121 (ira_create_allocno): Remove initialization of
6122 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6123 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6124 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6125 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6126 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6127 Initialize ALLOCNO_ADD_DATA.
6128 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6129 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6131 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6132 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6134 * ira.c (ira_reallocate): Remove.
6135 (setup_pressure_classes): Call
6136 ira_init_register_move_cost_if_necessary. Use
6137 ira_register_move_cost instead of ira_get_register_move_cost.
6138 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6139 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6141 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6142 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6143 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6144 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6145 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6146 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6148 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6149 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6150 (struct allocno_color_data): New.
6151 (allocno_color_data_t): New typedef.
6152 (allocno_color_data): New definition.
6153 (ALLOCNO_COLOR_DATA): New macro.
6154 (struct object_color_data): New.
6155 (object_color_data_t): New typedef.
6156 (object_color_data): New definition.
6157 (OBJECT_COLOR_DATA): New macro.
6158 (update_copy_costs, calculate_allocno_spill_cost): Call
6159 ira_init_register_move_cost_if_necessary. Use
6160 ira_register_move_cost instead of ira_get_register_move_cost.
6161 (move_spill_restore, update_curr_costs): Ditto.
6162 (allocno_spill_priority): Make it inline.
6163 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6164 (struct coalesce_data, coalesce_data_t): New.
6165 (allocno_coalesce_data): New definition.
6166 (ALLOCNO_COALESCE_DATA): New macro.
6167 (merge_allocnos, coalesced_allocno_conflict_p): Use
6168 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6169 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6170 (coalesce_allocnos): Ditto.
6171 (setup_coalesced_allocno_costs_and_nums): Ditto.
6172 (collect_spilled_coalesced_allocnos): Ditto.
6173 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6174 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6175 (coalesce_spill_slots): Ditto.
6176 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6177 free allocno_coalesce_data.
6179 * ira-conflicts.c: Fix formatting.
6180 (process_regs_for_copy): Call
6181 ira_init_register_move_cost_if_necessary. Use
6182 ira_register_move_cost instead of ira_get_register_move_cost.
6183 (build_object_conflicts): Optimize.
6185 * ira-costs.c (record_reg_classes): Optimize. Call
6186 ira_init_register_move_cost_if_necessary. Use
6187 ira_register_move_cost, ira_may_move_in_cost, and
6188 ira_may_move_out_cost instead of ira_get_register_move_cost and
6189 ira_get_may_move_cost.
6190 (record_address_regs): Ditto.
6191 (scan_one_insn): Optimize.
6192 (find_costs_and_classes): Optimize.
6193 (process_bb_node_for_hard_reg_moves): Call
6194 ira_init_register_move_cost_if_necessary. Use
6195 ira_register_move_cost instead of ira_get_register_move_cost.
6197 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6198 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6199 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6200 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6202 (ira_initiate_emit_data, ira_finish_emit_data)
6203 (create_new_allocno): New functions.
6204 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6205 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6206 Use ira_register_move_cost instead of ira_get_register_move_cost.
6208 * ira-int.h: Fix some comments.
6209 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6210 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6211 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6212 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6214 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6215 bitfield after mode. Make hard_regno a short int. Make
6216 hard_regno short. Remove first_coalesced_allocno and
6217 next_coalesced_allocno. Move mem_optimized_dest_p,
6218 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6219 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6220 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6221 temp, colorable_p. Add new member add_data.
6222 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6223 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6224 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6225 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6226 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6227 (ALLOCNO_ADD_DATA): New macro.
6228 (ira_emit_data_t): New typedef.
6229 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6230 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6231 from struct ira_allocno.
6232 (ALLOCNO_EMIT_DATA): New macro.
6233 (ira_allocno_emit_data, allocno_emit_reg): New.
6234 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6235 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6236 (OBJECT_ADD_DATA): New macro.
6237 (ira_reallocate): Remove.
6238 (ira_initiate_emit_data, ira_finish_emit_data): New.
6239 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6240 (ira_init_register_move_cost_if_necessary): New.
6241 (ira_object_conflict_iter_next): Merge into
6242 ira_object_conflict_iter_cond.
6243 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6245 * ira-live.c (process_single_reg_class_operands): Call
6246 ira_init_register_move_cost_if_necessary. Use
6247 ira_register_move_cost instead of ira_get_register_move_cost.
6249 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6251 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6253 * ira-costs.c: Fix formatting.
6254 (cost_classes, cost_classes_num): Remove.
6255 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6256 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6257 (cost_classes_del, cost_classes_htab): New.
6258 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6259 (initiate_regno_cost_classes, setup_cost_classes): New.
6260 (setup_regno_cost_classes_by_aclass): New.
6261 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6262 (record_reg_classes): Use regno_cost_classes instead of
6263 cost_classes. Move checking opposite operand up.
6264 (record_address_regs): Use regno_cost_classes
6265 instead of cost_classes.
6266 (scan_one_insn): Ditto. Use always general register.
6267 (print_allocno_costs): Use regno_cost_classes instead of
6269 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6270 (find_costs_and_classes): Set up cost classes for each registers.
6271 Use also their mode for this. Use regno_cost_classes instead of
6273 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6275 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6276 (ira_costs, ira_set_pseudo_classes): Call
6277 initiate_regno_cost_classes and finish_regno_cost_classes.
6279 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6281 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6283 * target.def (ira_cover_classes): Remove.
6285 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6287 * doc/tm.texi.in: Ditto.
6289 * ira-conflicts.c: Remove mentioning cover classes from the file.
6290 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6291 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6293 * targhooks.c (default_ira_cover_classes): Remove.
6295 * targhooks.h (default_ira_cover_classes): Ditto.
6297 * haifa-sched.c: Remove mentioning cover classes from the file.
6298 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6299 ira_pressure_classes and ira_pressure_classes_num instead of
6300 ira_reg_class_cover_size and ira_reg_class_cover. Use
6301 sched_regno_pressure_class instead of sched_regno_cover_class.
6302 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6303 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6305 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6306 classes from the file.
6307 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6308 (struct object_hard_regs, struct object_hard_regs_node): New.
6309 (struct ira_object): New members profitable_hard_regs,
6310 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6311 (struct ira_allocno): Rename cover_class to aclass. Rename
6312 cover_class_cost and updated_cover_class_cost to class_cost and
6313 updated_class_cost. Remove splay_removed_p and
6314 left_conflict_size. Add new members colorable_p.
6315 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6316 (ALLOCNO_COLORABLE_P): New macro.
6317 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6318 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6319 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6320 (OBJECT_...): Rename parameter C to O.
6321 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6322 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6323 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6324 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6325 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6326 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6327 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6328 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6329 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6330 x_ira_reg_class_subunion.
6331 (ira_max_memory_move_cost, ira_max_register_move_cost)
6332 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6333 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6334 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6335 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6336 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6337 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6338 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6339 (ira_tune_allocno_costs_and_cover_classes): Rename to
6340 ira_tune_allocno_costs.
6341 (ira_debug_hard_regs_forest): New.
6342 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6343 (ira_object_conflict_iter_next): Fix comments.
6344 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6345 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6346 cover_class to aclass.
6347 (ira_allocate_and_accumulate_costs): Ditto.
6348 (ira_allocate_and_set_or_copy_costs): Ditto.
6350 * opts.c (decode_options): Remove ira_cover_class check.
6352 * ira-color.c: Remove mentioning cover classes from the file. Use
6353 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6354 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6355 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6356 (splay-tree.h): Remove include.
6357 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6358 before copy_freq_compare_func.
6359 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6360 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6362 (hard_regs_roots, hard_regs_node_vec): Ditto.
6363 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6364 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6365 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6366 (create_new_object_hard_regs_node): Ditto.
6367 (add_new_object_hard_regs_node_to_forest): Ditto.
6368 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6369 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6371 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6372 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6373 (remove_unused_object_hard_regs_nodes): Ditto.
6374 (enumerate_object_hard_regs_nodes): Ditto.
6375 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6376 (object_hard_regs_subnode_t): Ditto.
6377 (struct object_hard_regs_subnode): Ditto.
6378 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6379 (setup_object_hard_regs_subnode_index): Ditto.
6380 (get_object_hard_regs_subnodes_num): Ditto.
6381 (form_object_hard_regs_nodes_forest): Ditto.
6382 (finish_object_hard_regs_nodes_tree): Ditto.
6383 (finish_object_hard_regs_nodes_forest): Ditto.
6384 (allocnos_have_intersected_live_ranges_p): Rename to
6385 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6386 (pseudos_have_intersected_live_ranges_p): Rename to
6387 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6388 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6389 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6390 (update_copy_costs): Remove assert. Skip cost update if the hard
6391 reg does not belong the class.
6392 (assign_hard_reg): Process only profitable hard regs.
6393 (uncolorable_allocnos_num): Make it scalar.
6394 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6395 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6396 and ira_reg_class_max_nregs.
6397 (bucket_allocno_compare_func): Check frequency first.
6398 (sort_bucket): Add compare function as a parameter.
6399 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6400 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6401 (push_allocno_to_stack): Rewrite for checking new allocno
6403 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6404 (push_only_colorable): Pass new parameter to sort_bucket.
6405 (push_allocno_to_spill): Remove.
6406 (allocno_spill_priority_compare): Make it inline and rewrite.
6407 (splay_tree_allocate, splay_tree_free): Remove.
6408 (allocno_spill_sort_compare): New function.
6409 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6410 build and use splay tree. Choose first allocno in uncolorable
6411 allocno bucket to spill. Remove setting spill cost.
6412 (all_conflicting_hard_regs): Remove.
6413 (setup_allocno_available_regs_num): Check only profitable hard
6414 regs. Print info about hard regs nodes.
6415 (setup_allocno_left_conflicts_size): Remove.
6416 (put_allocno_into_bucket): Don't call
6417 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6418 (improve_allocation): New.
6419 (color_allocnos): Call setup_profitable_hard_regs,
6420 form_object_hard_regs_nodes_forest, improve_allocation,
6421 finish_object_hard_regs_nodes_forest. Setup spill cost.
6422 (print_loop_title): Use pressure classes.
6423 (color_allocnso): Ditto.
6424 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6425 and allocnos_for_spilling.
6426 (ira_sort_regnos_for_alter_reg): Don't setup members
6427 {first,next}_coalesced_allocno.
6428 (color): Remove allocating and freeing removed_splay_allocno_vec.
6429 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6430 prohibited_class_mode_regs.
6432 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6434 (update_allocno_pressure_excess_length): Use pressure classes.
6435 (inc_register_pressure, dec_register_pressure): Check for pressure
6437 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6438 pressure class. Use ira_reg_class_nregs instead of
6439 ira_reg_class_max_nregs.
6440 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6441 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6442 (single_reg_class): Use ira_reg_class_nregs instead of
6443 ira_reg_class_max_nregs.
6444 (process_bb_node_lives): Use pressure classes.
6446 * ira-emit.c: Remove mentioning cover classes from the file. Use
6447 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6448 (change_loop): Use pressure classes.
6449 (modify_move_list): Call ira_set_allocno_class instead of
6450 ira_set_allocno_cover_class.
6452 * ira-build.c: Remove mentioning cover classes from the file. Use
6453 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6454 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6455 ALLOCNO_UPDATED_CLASS_COST instead of
6456 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6457 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6458 (ira_create_allocno): Remove initialization of
6459 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6460 ALLOCNO_COLORABLE_P.
6461 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6462 Update conflict regs for the objects.
6463 (create_cap_allocno): Remove assert. Don't propagate
6464 ALLOCNO_AVAILABLE_REGS_NUM.
6465 (ira_free_allocno_costs): New function.
6466 (finish_allocno): Change a part of code into call of
6467 ira_free_allocno_costs.
6468 (low_pressure_loop_node_p): Use pressure classes.
6469 (object_range_compare_func): Don't compare classes.
6470 (setup_min_max_conflict_allocno_ids): Ditto.
6472 * loop-invariant.c: Remove mentioning cover classes from the file.
6473 Use ira_pressure_classes and ira_pressure_classes_num instead of
6474 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6475 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6476 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6477 Use reg_allocno_class instead of reg_cover_class.
6478 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6479 STACK_REG_COVER_CLASS.
6480 (get_regno_cover_class): Rename to get_regno_pressure_class.
6481 (move_loop_invariants): Initialize and finalize regstat.
6483 * ira.c: Remove mentioning cover classes from the file. Add
6484 comments about coloring without cover classes. Use ALLOCNO_CLASS
6485 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6486 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6487 setup_class_subset_and_memory_move_costs.
6488 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6489 (setup_cover_and_important_classes): Rename to
6490 setup_allocno_and_important_classes.
6491 (setup_class_translate_array): New.
6492 (setup_class_translate): Call it for allocno and pressure classes.
6493 (cover_class_order): Rename to allocno_class_order.
6494 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6495 of ira_class_translate.
6496 (reorder_important_classes): Set up ira_important_class_nums.
6497 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6498 (print_class_cover): Rename to print_classes. Add parameter.
6499 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6500 Print pressure classes too.
6501 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6502 setup_reg_subclasses.
6503 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6504 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6505 (setup_prohibited_class_mode_regs): Use
6506 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6507 (clarify_prohibited_class_mode_regs): New function.
6508 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6509 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6510 (ira_init_once): Initialize them.
6511 (free_register_move_costs): Process them.
6512 (ira_init): Move calls of find_reg_classes and
6513 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6514 Call clarify_prohibited_class_mode_regs.
6515 (ira_no_alloc_reg): Remove.
6516 (too_high_register_pressure_p): Use pressure classes.
6518 * sched-deps.c: Remove mentioning cover classes from the file.
6519 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6520 ira_pressure_classes and ira_pressure_classes_num instead of
6521 ira_reg_class_cover_size and ira_reg_class_cover.
6522 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6523 sched_regno_pressure_class instead of sched_regno_cover_class.
6524 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6525 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6527 * ira.h: Add 2010 to Copyright.
6528 (ira_no_alloc_reg): Remove external.
6529 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6530 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6531 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6532 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6533 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6534 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6535 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6536 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6537 x_ira_no_alloc_regs.
6538 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6539 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6540 ira_allocno_classes_num and ira_allocno_classes.
6541 (ira_class_translate): Rename to ira_allocno_class_translate.
6542 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6543 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6544 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6545 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6546 (ira_no_alloc_regs): New.
6548 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6549 classes from the file. Use ALLOCNO_CLASS instead of
6550 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6551 ALLOCNO_COVER_CLASS_COST.
6552 (regno_cover_class): Rename to regno_aclass.
6553 (record_reg_classes): Use ira_reg_class_subunion instead of
6554 ira_reg_class_union.
6555 (record_address_regs): Check overflow.
6556 (scan_one_insn): Ditto.
6557 (print_allocno_costs): Print total mem cost fore regional allocation.
6558 (print_pseudo_costs): Use REG_N_REFS.
6559 (find_costs_and_classes): Use classes intersected with them on the
6560 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6561 ira_reg_class_union. Use ira_allocno_class_translate and
6562 regno_aclass instead of ira_class_translate and regno_cover_class.
6563 Modify code for finding regno_aclass. Setup preferred classes for
6565 (setup_allocno_cover_class_and_costs): Rename to
6566 setup_allocno_class_and_costs. Use regno_aclass instead of
6567 regno_cover_class. Use ira_set_allocno_class instead of
6568 ira_set_allocno_cover_class.
6569 (init_costs, finish_costs): Use regno_aclass instead of
6571 (ira_costs): Use setup_allocno_class_and_costs instead of
6572 setup_allocno_cover_class_and_costs.
6573 (ira_tune_allocno_costs_and_cover_classes): Rename to
6574 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6575 by processing objects. Use ira_reg_class_max_nregs instead of
6576 ira_reg_class_nregs.
6578 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6580 * sched-int.h: Remove mentioning cover classes from the file.
6581 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6583 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6584 classes from the file.
6585 (struct reg_pref): Rename coverclass into allocnoclass.
6586 (reg_cover_class): Rename to reg_allocno_class.
6588 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6590 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6592 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6594 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6596 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6598 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6600 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6602 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6604 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6606 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6608 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6609 (i386_ira_cover_classes): Ditto.
6611 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6613 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6615 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6617 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6619 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6621 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6623 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6624 (mips_ira_cover_classes): Ditto.
6626 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6628 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6630 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6632 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6634 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6636 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6637 (IRA_COVER_CLASSES_VSX): Ditto.
6639 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6640 (rs6000_ira_cover_classes): Ditto.
6642 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6644 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6646 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6648 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6650 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6652 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6654 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6656 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6658 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6660 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6662 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6665 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6666 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6667 dw_fde_unlikely_section_end_label, cold_in_std_section,
6668 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6669 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6671 (output_fde): Use dw_fde_second_{begin,end} if second is
6672 true, otherwise dw_fde_{begin,end}.
6673 (output_call_frame_info): Test dw_fde_second_begin != NULL
6674 instead of dw_fde_switched_sections.
6675 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6676 fields, initialize new fields. Initialize in_std_section
6677 unconditionally from the first partition.
6678 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6679 dw_fde_second_begin is non-NULL.
6680 (dwarf2out_switch_text_section): Stop initializing removed
6681 dw_fde_struct fields, initialize new fields, initialize
6682 also dw_fde_end here. Set dw_fde_switch_cfi even when
6683 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6684 (struct var_loc_list_def): Add last_before_switch field.
6685 (arange_table, arange_table_allocated, arange_table_in_use,
6686 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6687 (size_of_aranges): Count !in_std_section and !second_in_std_section
6688 hunks in fdes, instead of looking at arange_table_in_use.
6689 (output_aranges): Add aranges_length argument, don't call
6690 size_of_aranges here. Instead of using aranges_table*
6691 emit ranges for fdes when !in_std_section resp.
6692 !second_in_std_section.
6693 (dw_loc_list): Break ranges crossing section switch.
6694 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6695 use dw_fde_second_end instead of dw_fde_end as end of last range.
6696 (gen_subprogram_die): Don't call add_arange. Use
6697 dw_fde_{begin,end} for first partition and if switched
6698 section dw_fde_second_{begin,end} for the second.
6699 (var_location_switch_text_section_1,
6700 var_location_switch_text_section): New functions.
6701 (dwarf2out_begin_function): Initialize cold_text_section even
6702 when function_section () isn't text_section.
6703 (prune_unused_types): Don't walk arange_table.
6704 (dwarf2out_finish): Don't needlessly test
6705 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6706 If info_section_emitted, call size_of_aranges and if it indicates
6707 non-empty .debug_aranges, call output_aranges with the computed
6708 size. Stop using removed dw_fde_struct fields, use
6709 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6713 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6714 create ENTRY_VALUE if incoming or address of incoming's MEM
6716 * dwarf2out.c (mem_loc_descriptor): Don't emit
6717 DW_OP_GNU_entry_value of DW_OP_fbreg.
6718 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6719 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6720 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6721 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6723 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6724 is a REG_P or MEM_P with REG_P address, compute hash directly
6725 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6726 (preserve_only_constants): Don't clear VALUES forwaring
6727 ENTRY_VALUE to some other VALUE.
6729 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6731 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6734 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6736 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6737 block before expanding the statement.
6738 (expand_gimple_stmt_1): Likewise. Set them here...
6739 (expand_gimple_stmt): ...and not here. Tidy.
6740 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6743 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6745 * Makefile.in: New rule for cprop.o.
6746 * gcse.c: Move constant/copy propagation to cprop.c.
6747 (compute_local_properties): Only handle expression tables.
6748 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6749 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6750 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6751 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6752 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6753 compute_cprop_data, find_used_regs, try_replace_reg,
6754 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6755 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6756 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6757 find_bypass_set, reg_killed_on_edge, bypass_block,
6758 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6759 execute_rtl_cprop, pass_rtl_cprop): Move to...
6760 * cprop.c: ...here. New file, constant/copy propagation for RTL
6761 moved from gcse.c to here with minor cleanups in duplicated code.
6763 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6765 * config/i386/i386.c (flag_opts): Fix a typo in
6766 -mavx256-split-unaligned-store.
6768 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6770 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6771 LIBCALL_VALUE): Remove macros.
6772 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6773 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6774 (h8300_function_value, h8300_libcall_value,
6775 h8300_function_value_regno_p): New functions.
6777 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6779 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6781 2011-03-28 Jeff Law <law@redhat.com>
6783 * tree-ssa-threadupdate.c (redirect_edges): Call
6784 create_edge_and_update_destination_phis as needed.
6785 (create_edge_and_update_destination_phis): Accept new BB argument.
6786 All callers updated.
6787 (thread_block): Do not update the profile when threading around
6788 intermediate blocks.
6789 (thread_single_edge): Likewise.
6790 (determine_bb_domination_status): If BB is not a successor of the
6791 loop header, return NONDOMINATING.
6792 (register_jump_thread): Note when we register a jump thread around
6793 an intermediate block.
6794 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6795 (thread_across_edge): Use it.
6797 2011-03-28 Tristan Gingold <gingold@adacore.com>
6799 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6800 when for_return is 2.
6802 2011-03-28 Jeff Law <law@redhat.com>
6804 * var-tracking.c (canonicalize_values_mark): Delete unused
6806 (canonicalize_values_star, set_variable_part): Likewise.
6807 (clobber_variable_part, delete_variable_part): Likewise.
6809 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6811 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6813 2011-03-28 Martin Jambor <mjambor@suse.cz>
6815 * tree-inline.c (expand_call_inline): Do not check that destination
6817 (optimize_inline_calls): Assert that destination node is analyzed.
6818 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6819 not call tree_lowering_passes.
6820 * cgraph.h (cgraph_analyze_function): Declare.
6821 * cgraphunit.c (cgraph_analyze_function): Make public.
6823 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6825 * config/sparc/sparc-opts.h: New.
6826 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6827 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6828 (sparc_option_override): Store processor_type enumeration rather
6829 than string in cpu_default. Remove name and enumeration from
6830 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6831 without using sparc_select. Use target_flags_explicit instead of
6833 * config/sparc/sparc.h (enum processor_type): Move to
6835 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6836 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6837 HeaderInclude entry.
6838 (mcpu=, mtune=): Use Var and Enum.
6839 (sparc_processor_type): New Enum and EnumValue entries.
6841 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6842 Iain Sandoe <iains@gcc.gnu.org>
6845 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
6847 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6849 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
6850 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
6851 Insert new statements at it in lieu of STMT.
6852 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
6853 * tree-vect-stmts.c (vectorizable_store): Likewise.
6854 (vectorizable_load): Likewise.
6856 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
6858 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
6863 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6865 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
6866 unaligned 256bit load/store.
6867 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
6868 (*avx_movdqu<avxmodesuffix>): Likewise.
6870 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6873 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
6874 * config/pa/pa.md (iordi3): Use new predicate in expander.
6877 2011-03-27 Anatoly Sokolov <aesok@post.ru>
6879 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
6880 FUNCTION_VALUE_REGNO_P): Remove macros.
6881 * config/mips/mips-protos.h (mips_function_value): Remove.
6882 * config/mips/mips.c (mips_function_value): Rename to...
6883 (mips_function_value_1): ... this. Make static. Handle receiving
6884 the function type in 'fn_decl_or_type' argument.
6885 (mips_function_value, mips_libcall_value,
6886 mips_function_value_regno_p): New function.
6887 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6888 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6890 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
6892 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
6893 and -mavx256-split-unaligned-store.
6894 (ix86_option_override_internal): Split 32-byte AVX unaligned
6895 load/store by default.
6896 (ix86_avx256_split_vector_move_misalign): New.
6897 (ix86_expand_vector_move_misalign): Use it.
6899 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
6900 -mavx256-split-unaligned-store.
6902 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
6903 256bit load/store. Generate unaligned store on misaligned memory
6905 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
6907 (*avx_movdqu<avxmodesuffix>): Likewise.
6909 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
6910 -mavx256-split-unaligned-store.
6912 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6915 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
6918 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
6920 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
6921 opno arguments with an expand_operand. Use create_input_operand.
6922 (mips_prepare_builtin_target): Delete.
6923 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
6925 (mips_expand_builtin_direct): Use create_output_operand and
6926 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
6927 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
6928 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
6930 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
6932 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
6934 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6936 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
6938 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
6939 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
6940 basic blocks and call commit_edge_insertions directly.
6941 (fixup_abnormal_edges): Move from here to...
6942 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
6943 on the edges and return whether some have actually been inserted.
6944 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
6947 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
6949 PR rtl-optimization/48144
6950 * sel-sched-ir.c (merge_history_vect): Factor out from ...
6951 (merge_expr_data): ... here.
6952 (av_set_intersect): Rename to av_set_code_motion_filter.
6953 Update all callers. Call merge_history_vect when an expression
6954 is found in both sets.
6955 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
6957 2011-03-26 Alan Modra <amodra@gmail.com>
6959 * config/rs6000/predicates.md (word_offset_memref_op): Handle
6960 cmodel medium addresses.
6961 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
6962 64-bit gpr loads and stores.
6963 (rs6000_secondary_reload_ppc64): New function.
6964 * config/rs6000/rs6000-protos.h: Declare it.
6965 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
6967 2011-03-26 Alan Modra <amodra@gmail.com>
6970 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
6971 GNU Go in traceback table.
6973 2011-03-25 Richard Henderson <rth@redhat.com>
6975 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
6976 if there are exactly 6 operands.
6977 (set_storage_via_setmem): Similarly.
6979 2011-03-25 Kai Tietz <ktietz@redhat.com>
6981 * collect2.c (write_c_file_stat): Handle backslash
6982 as right-hand directory separator.
6983 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
6984 checking just for slash.
6985 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
6986 instead of checking for trailing slash.
6987 * gcc.c (record_temp_file): Use filename_cmp instead
6989 (do_spec_1): Likewise.
6990 (replace_outfile_spec_function): Likewise.
6991 (is_directory): Use filename_ncmp instead of strncmp.
6992 (print_multilib_info): Likewise.
6993 * gcov.c (find_source): Use filename_cmp instead
6995 (make_gcov_file_name): Fix order of slash/backslash
6997 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
6998 (add_standard_paths): Likewise.
6999 * mips-tfile.c (saber_stop): Handle backslash.
7000 * prefix.c (update_path): Use filename_ncmp instead of
7002 * profile.c (output_location): Use filename_cmp instead
7004 * read-md.c (handle_toplevel_file): Handle backslash.
7005 * tlink.c (frob_extension): Likewise.
7006 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7008 * tree-dump.c (dequeue_and_dump): Handle backslash.
7009 * tree.c (get_file_function_name): Likewise.
7010 * gengtype.c (read_input_list): Likewise.
7011 (get_file_realbasename): Likewise.
7012 (get_output_file_with_visibility): Use filename_cmp
7015 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7017 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7020 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7022 * fold-const.c (expr_location_or): New function.
7023 (fold_truth_not_expr): Call it.
7025 2011-03-25 Jeff Law <law@redhat.com>
7027 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7029 * c-family/c-common.c (def_fn_type): Likewise.
7030 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7031 * emit-rtl.c (gen_rtvec): Likewise.
7032 * lto/lto-lang.c (def_fn_type): Likewise.
7034 2011-03-25 Richard Guenther <rguenther@suse.de>
7036 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7037 also generate copies.
7038 (fini_copy_prop): Handle constant values properly.
7040 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7042 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7043 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7044 (hash_loc_operands, compare_loc_operands): Handle
7045 DW_OP_GNU_entry_value.
7047 2011-03-25 Kai Tietz <ktietz@redhat.com>
7049 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7050 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7051 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7052 comment and use macro TARGET_64BIT_MS_ABI instead.
7053 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7054 and change default behavior for 32-bit MS_ABI.
7055 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7056 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7058 (ix86_cfun_abi): Likewise.
7059 (ix86_maybe_switch_abi): Adjust comment.
7060 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7061 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7062 instead of checking for SYSV_ABI.
7063 (ix86_nsaved_sseregs): Likewise.
7064 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7066 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7067 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7068 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7069 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7070 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7072 2011-03-25 Richard Guenther <rguenther@suse.de>
7074 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7075 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7076 (verify_gimple): Remove.
7077 * tree-cfg.c (verify_gimple_call): Merge verification
7079 (verify_gimple_phi): Merge verification from verify_stmts.
7080 (verify_gimple_label): New function.
7081 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7082 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7083 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7084 (verify_stmts): Rename to verify_gimple_in_cfg.
7085 (verify_gimple_in_cfg): New function.
7086 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7087 * tree-ssa.c (verify_ssa): Likewise.
7088 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7090 2011-03-25 Richard Guenther <rguenther@suse.de>
7092 * passes.c (init_optimization_passes): Add FRE pass after
7095 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7096 Andrew Stubbs <ams@codesourcery.com>
7098 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7100 (arm_movdi_vfp_cortexa8): New pattern.
7101 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7102 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7103 instructions when tuning for Cortex-A8. Set attribute "arch".
7104 * config/arm/arm.md: Move include arm-tune.md up a bit.
7105 (define_attr "arch"): Add "onlya8" and "nota8" values.
7106 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7108 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7112 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7114 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7115 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7116 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7117 * passes.c (init_optimization_passes): Move
7118 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7120 2011-03-25 Kai Tietz <ktietz@redhat.com>
7122 * c-typeck.c (comptypes_internal): Replace target
7123 hook call of comp_type_attributes by version in tree.c file.
7124 * gimple.c (gimple_types_compatible_p_1): Likewise.
7125 * tree-ssa.c (useless_type_conversion_p): Likewise.
7126 * tree.c (build_type_attribute_qual_variant): Likewise.
7127 (attribute_value_equal): New static helper function.
7128 (comp_type_attributes): New function.
7129 (merge_attributes): Use attribute_value_equal for comparison.
7130 (attribute_list_contained): Likewise.
7131 * tree.h (comp_type_attributes): New prototype.
7133 2011-03-25 Richard Guenther <rguenther@suse.de>
7135 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7136 of complex types at -O0.
7137 (verify_gimple_assign_binary): Likewise.
7138 (verify_gimple_assign_ternary): Likewise.
7140 2011-03-24 Mark Wielaard <mjw@redhat.com>
7142 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7143 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7145 2011-03-24 Mark Wielaard <mjw@redhat.com>
7148 * dwarf2out.c (output_abbrev_section): Only write table when
7149 abbrev_die_table_in_use > 1.
7151 2011-02-24 Richard Henderson <rth@redhat.com>
7153 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7154 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7155 (alpha_expand_unaligned_load_words): Use extql.
7156 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7157 (emit_insxl): Handle all modes for consistency.
7159 2011-02-24 Richard Henderson <rth@redhat.com>
7161 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7162 (alpha_expand_unaligned_load): Likewise.
7163 (alpha_expand_unaligned_store): Likewise.
7164 (alpha_expand_unaligned_load_words): Likewise.
7165 (alpha_expand_unaligned_store_words): Likewise.
7166 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7167 (alpha_split_lock_test_and_set_12): Likewise.
7168 (print_operand, alpha_fold_builtin_extxx): Likewise.
7169 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7170 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7171 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7172 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7173 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7174 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7175 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7176 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7177 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7178 (extwl, extll, extql): Similarly.
7179 (inswh, inslh, insqh): Similarly.
7180 (mskbl, mskwl, mskll, mskql): Similarly.
7181 (mskwh, msklh, mskqh): Similarly.
7183 2011-02-24 Richard Henderson <rth@redhat.com>
7185 * config/alpha/alpha.md (attribute isa): Add er, ner.
7186 (attribute enabled): Handle them.
7187 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7189 2011-02-24 Richard Henderson <rth@redhat.com>
7191 * config/alpha/alpha.md (attribute isa): Add vms.
7192 (attribute enabled): Handle it.
7193 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7194 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7195 (*movtf): Rename from *movtf_internal for consistency.
7196 (*movsi): Merge with *movsi_nt_vms.
7197 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7198 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7199 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7200 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7202 2011-02-24 Richard Henderson <rth@redhat.com>
7204 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7205 (extendqisi2, extendhisi2): Likewise.
7206 (extendqidi2): Simplify BWX/non-BWX expansions.
7207 (extendhidi2): Similarly.
7209 2011-02-24 Richard Henderson <rth@redhat.com>
7211 * config/alpha/alpha.md (attribute isa): New.
7212 (attribute enabled): New.
7213 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7214 (zero_extendqisi2, zero_extendqidi2): Similarly.
7215 (zero_extendhisi2, zero_extendhidi2): Similarly.
7216 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7218 2011-02-24 Richard Henderson <rth@redhat.com>
7220 * config/alpha/predicates.md (input_operand): Revert last change;
7221 update comment to mention 32-bit VMS rather than Windows.
7223 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7225 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7226 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7227 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7228 * passes.c (init_optimization_passes): Move
7229 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7231 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7233 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7235 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7237 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7240 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7243 * simplify-rtx.c (simplify_const_unary_operation): Call
7244 real_convert when changing mode class with FLOAT_EXTEND.
7246 2011-03-24 Nick Clifton <nickc@redhat.com>
7248 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7249 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7250 * config/rx/rx.c (rx_option_override): Set align_jumps,
7251 align_loops and align_labels if not set by the user.
7252 (rx_align_for_label): New function.
7253 (rx_max_skip_for_label): New function.
7254 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7255 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7256 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7257 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7258 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7260 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7262 PR rtl-optimization/48263
7263 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7264 and original commutative_p handling. Use maybe_gen_insn.
7266 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7268 * reload.c (find_reloads_subreg_address): Add address_reloaded
7269 parameter and return true there if the full address has been
7271 (find_reloads_toplev): Pass address_reloaded flag.
7272 (find_reloads_address_1): Don't use address_reloaded parameter.
7274 2011-03-24 Jeff Law <law@redhat.com>
7276 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7277 unused variable "ann".
7278 (remove_unused_locals): Likewise.
7280 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7283 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7286 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7288 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7289 for invalid symbolic addresses.
7290 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7293 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7295 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7296 the argument in calls to fold_truth_not_expr.
7298 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7300 * tree.c (record_node_allocation_statistics): New function.
7301 (make_node_stat, copy_node_stat, build_string): Call it.
7302 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7303 (build1_stat, build_omp_clause): Likewise.
7305 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7307 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7310 2011-03-24 Richard Guenther <rguenther@suse.de>
7312 PR tree-optimization/48271
7313 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7314 blocks that still exist.
7316 2011-03-24 Richard Guenther <rguenther@suse.de>
7318 PR tree-optimization/48270
7319 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7320 not free datarefs before ddrs.
7322 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7324 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7325 from the address built for a reference with variable offset.
7327 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7330 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7331 alternatives that can be handled with movq or movabsq insn.
7332 (*movdf_internal): Disable for !TARGET_64BIT.
7333 (*movdf_internal_nointeger): Ditto.
7334 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7336 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7338 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7339 (FUNCTION_ARG_ADVANCE): Likewise.
7340 * tm.texi.in: Change references to them to hook references.
7341 * tm.texi: Regenerate.
7342 * targhooks.c (default_function_arg): Eliminate check for target macro.
7343 (default_function_incoming_arg): Likewise.
7344 (default_function_arg_advance): Likewise.
7345 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7346 (function_arg_advance): Likewise.
7347 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7349 2011-03-24 Richard Guenther <rguenther@suse.de>
7352 * tree-object-size.c (addr_object_size): Do not double-account
7353 for MEM_REF offsets.
7355 2011-03-24 Diego Novillo <dnovillo@google.com>
7357 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7358 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7359 (lto_input_data_block): Move from lto-opts.c. Make extern.
7361 (lto_input_string): Rename from input_string. Make extern.
7363 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7364 output_string_with_length.
7365 Output 0 to indicate a non-NULL string. Update all callers to
7367 (lto_output_string): Rename from output_string. Make extern.
7369 (lto_output_decl_state_streams): Make extern.
7370 (lto_output_decl_state_refs): Make extern.
7371 * lto-streamer.h (lto_input_string): Declare.
7372 (lto_input_data_block): Declare.
7373 (lto_output_string): Declare.
7374 (lto_output_string_with_length): Declare.
7375 (lto_output_decl_state_streams): Declare.
7376 (lto_output_decl_state_refs): Declare.
7378 2011-03-24 Richard Guenther <rguenther@suse.de>
7380 PR tree-optimization/46562
7381 * tree.c (build_invariant_address): New function.
7382 * tree.h (build_invariant_address): Declare.
7383 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7384 a renamed function moved ...
7385 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7386 Take valueization callback parameter.
7387 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7388 * gimple-fold.h: New file.
7389 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7390 (ccp_fold, fold_const_aggregate_ref,
7391 fold_ctor_reference, fold_nonarray_ctor_reference,
7392 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7393 get_base_constructor): Move ...
7394 * gimple-fold.c: ... here.
7395 (gimple_fold_stmt_to_constant_1): New function
7396 split out from ccp_fold. Take a valueization callback parameter.
7397 Valueize all operands.
7398 (gimple_fold_stmt_to_constant): New wrapper function.
7399 (fold_const_aggregate_ref_1): New function split out from
7400 fold_const_aggregate_ref. Take a valueization callback parameter.
7401 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7402 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7403 invariant POINTER_PLUS_EXPRs to invariant form.
7404 (vn_valueize): New function.
7405 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7406 * tree-vrp.c (vrp_valueize): New function.
7407 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7408 to fold statements to constants.
7409 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7410 function declarations.
7411 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7412 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7414 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7416 * config/h8300/predicates.md (jump_address_operand): Fix register
7419 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7421 * doc/invoke.texi (max-stores-to-sink): Document.
7422 * params.h (MAX_STORES_TO_SINK): Define.
7423 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7424 if either vectorization or if-conversion is disabled.
7425 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7426 tree-vect-data-refs.c vect_equal_offsets.
7427 (dr_equal_offsets_p): New function.
7428 (find_data_references_in_bb): Remove static.
7429 * tree-data-ref.h (find_data_references_in_bb): Declare.
7430 (dr_equal_offsets_p): Likewise.
7431 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7432 (vect_drs_dependent_in_basic_block): Update calls to
7434 (vect_check_interleaving): Likewise.
7435 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7436 (cond_if_else_store_replacement): Rename to...
7437 (cond_if_else_store_replacement_1): ... this. Change arguments and
7439 (cond_if_else_store_replacement): New function.
7440 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7441 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7443 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7446 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7447 to subtract lower bound instead of GEN_INT().
7449 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7454 * doc/extend.texi (Alignment): Move section to match order in TOC.
7455 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7456 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7458 2011-03-23 Jeff Law <law@redhat.com>
7460 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7461 before removing the edge.
7463 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7464 it may have been freed by redirect_branch_edge or
7465 redirect_edge_succ_nodup.
7467 2011-03-23 Richard Guenther <rguenther@suse.de>
7469 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7470 (check_va_list_escapes): Likewise.
7471 (check_all_va_list_escapes): Likewise.
7473 2011-03-23 Richard Guenther <rguenther@suse.de>
7475 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7476 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7477 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7478 (alias.o): Likewise.
7479 (ipa-type-escape.o): Remove.
7480 (ipa-struct-reorg.o): Likewise.
7481 (GTFILES): Remove ipa-struct-reorg.c.
7482 * alias.c: Do not include ipa-type-escape.h.
7483 * tree-ssa-alias.c: Likewise.
7484 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7485 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7486 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7487 and ipa-type-escape passes.
7488 * tree-pass.h (pass_ipa_type_escape): Remove.
7489 (pass_ipa_struct_reorg): Likewise.
7490 * ipa-struct-reorg.h: Remove.
7491 * ipa-struct-reorg.c: Likewise.
7492 * ipa-type-escape.h: Likewise.
7493 * ipa-type-escape.c: Likewise.
7494 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7495 (--param struct-reorg-cold-struct-ratio): Likewise.
7496 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7497 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7498 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7500 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7502 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7503 cpu attribute value.
7504 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7505 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7506 * config/s390/s390.c (processor_flags_table): New constant array.
7507 (s390_handle_arch_option): Remove.
7508 (s390_handle_option): Remove s390_handle_arch_option invocations
7509 and OPT_mwarn_framesize_ handling.
7510 (s390_option_override): Remove s390_handle_arch_option invocation.
7511 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7513 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7514 * config/s390/s390.opt (s390_tune, s390_arch)
7515 (march=): Replace s390_arch_option enum and values with
7516 processor_type. Set variable name to s390_arch. Set
7517 initialization value.
7518 (mtune=): Replace s390_arch_option with processor_type. Set
7519 variable name to s390_tune. Set initialization value.
7521 2011-03-23 Julian Brown <julian@codesourcery.com>
7523 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7524 accesses which are not naturally aligned.
7526 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7529 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7531 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7533 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7534 parameter from "int" to "enum insn_code".
7535 (expand_operand_type): New enum.
7536 (expand_operand): New structure.
7537 (create_expand_operand): New function.
7538 (create_fixed_operand, create_output_operand): Likewise
7539 (create_input_operand, create_convert_operand_to): Likewise.
7540 (create_convert_operand_from, create_address_operand): Likewise.
7541 (create_integer_operand): Likewise.
7542 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7543 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7544 (expand_insn, expand_jump_insn): Likewise.
7545 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7546 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7547 (expand_movstr, expand_builtin___clear_cache): Likewise.
7548 (expand_builtin_lock_release): Likewise.
7549 * explow.c (allocate_dynamic_stack_space): Likewise.
7550 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7551 and use the default handling in that case.
7552 * expmed.c (check_predicate_volatile_ok): Delete.
7553 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7554 (emit_cstore): Likewise.
7555 * expr.c (emit_block_move_via_movmem): Likewise.
7556 (set_storage_via_setmem, expand_assignment): Likewise.
7557 (emit_storent_insn, try_casesi): Likewise.
7558 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7559 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7560 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7561 (expand_twoval_unop, expand_twoval_binop): Likewise.
7562 (expand_unop_direct, emit_indirect_jump): Likewise.
7563 (emit_conditional_move, vector_compare_rtx): Likewise.
7564 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7565 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7566 (expand_sync_lock_test_and_set): Likewise.
7567 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7568 (emit_unop_insn): Likewise.
7569 (expand_copysign_absneg): Change icode to an insn_code.
7570 (create_convert_operand_from_type): New function.
7571 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7572 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7573 (expand_insn, expand_jump_insn): Likewise.
7574 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7575 than const_int_operand for operand 2.
7577 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7579 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7582 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7584 * emit-rtl.c (emit_pattern_before_noloc): New function.
7585 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7586 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7587 (emit_pattern_after_noloc): New function.
7588 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7589 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7591 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7593 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7594 (__ffsDI2): Likewise.
7596 2011-03-22 Richard Henderson <rth@redhat.com>
7598 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7599 of !TARGET_ABI_OPEN_VMS.
7600 (alpha_trampoline_init, alpha_start_function): Likewise.
7601 (alpha_expand_epilogue, alpha_file_start): Likewise.
7602 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7603 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7604 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7605 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7606 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7608 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7610 * config/s390/s390-opts.h: New.
7611 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7612 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7613 s390_stack_guard): Remove.
7614 (s390_handle_arch_option): Return void. Take enum
7615 s390_arch_option value instead of string and searching array.
7616 (s390_handle_option): Don't assert that global structures are in
7617 use. Access variables via opts pointer. Use error_at. Don't use
7618 sscanf for -mstack-guard= or -mstack-size=. Update call to
7619 s390_handle_arch_option.
7620 (s390_option_override): Update call to s390_handle_arch_option.
7621 (s390_emit_prologue): Use %d format for s390_stack_size in
7622 diagnostic. Use %wd for HOST_WIDE_INT.
7623 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7624 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7625 * config/s390/s390.opt (config/s390/s390-opts.h): New
7626 HeaderInclude entry.
7627 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7628 s390_arch_flags, s390_warn_framesize): New Variable entries.
7629 (s390_arch_option): New Enum and EnumValue entries.
7630 (march=): Use Enum instead of Var.
7631 (mstack-guard=, mstack-size=): Use UInteger and Var.
7634 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7636 * config/score/score.c (score_handle_option): Don't assert that
7637 global structures are in use. Access target_flags via opts
7638 pointer. Use value of -march= option to determine target_flags
7640 * config/score/score.opt (march=): Use Enum.
7641 (score_arch): New Enum and EnumValue entries.
7643 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7645 * config/mep/mep.c (option_mtiny_specified): Remove.
7646 (mep_option_override): Move register handling for -mivc2 from
7647 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7648 instead of option_mtiny_specified.
7649 (mep_handle_option): Access target_flags via opts pointer. Don't
7650 assert that global structures are in use. Defer part of -mivc2
7651 handling and move it to mep_option_override.
7652 * config/mep/mep.opt (IVC2): New Mask entry.
7653 (mivc2): Use Var and Defer instead of Mask.
7655 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7657 * config/v850/v850-opts.h: New.
7658 * config/v850/v850.c (small_memory): Replace with
7659 small_memory_physical_max array. Make that array static const.
7660 (v850_handle_memory_option): Take integer value of argument. Take
7661 gcc_options pointer, option text and location. Return void.
7662 Update for changes to small memory structures.
7663 (v850_handle_option): Access target_flags via opts pointer. Don't
7664 assert that global structures are in use. Update calls to
7665 v850_handle_memory_option.
7666 (v850_encode_data_area): Update references to small memory settings.
7667 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7668 (enum small_memory_type): Move to v850-opts.h.
7669 * config/v850/v850.opt (config/v850/v850-opts.h): New
7670 HeaderInclude entry.
7671 (small_memory_max): New Variable entry.
7672 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7673 (mtda, mzda): Likewise.
7675 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7677 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7678 pointer. Don't assert that global structures are in use.
7680 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7682 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7683 via opts pointer. Don't assert that global structures are in use.
7685 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7687 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7688 (munix=93): Use Var.
7689 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7690 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7691 * config/pa/pa-opts.h: New.
7692 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7693 (pa_handle_option): Don't assert that global structures are in
7694 use. Access target_flags via opts pointer. Don't handle
7695 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7697 (pa_option_override): Handle deferred OPT_mfixed_range_.
7699 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7701 * config/mn10300/mn10300-opts.h: New.
7702 * config/mn10300/mn10300.c (mn10300_processor,
7703 mn10300_tune_string): Remove.
7704 (mn10300_handle_option): Don't assert that global structures are
7705 in use. Access mn10300_processor via opts pointer. Don't handle
7707 * config/mn10300/mn10300.h (enum processor_type): Move to
7709 (mn10300_processor): Remove.
7710 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7711 HeaderInclude entry.
7712 (mn10300_processor): New Variable entry.
7715 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7717 * config/microblaze/microblaze.c: Don't include opts.h.
7718 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7719 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7720 (mno-clearbss): Use Var and Warn.
7722 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7724 * config/m32r/m32r-opts.h: New.
7725 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7726 (m32r_handle_option): Don't assert that global structures are in
7727 use. Access target_flags and m32r_cache_flush_func via opts
7728 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7729 OPT_mno_flush_trap here.
7730 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7731 include of m32r-opts.h.
7732 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7733 HeaderInclude entry.
7734 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7735 (mmodel=): Use Enum and Var.
7736 (m32r_model): New Enum and EnumValue entries.
7737 (mno-flush-trap): Use Var.
7738 (msdata=): Use Enum and Var.
7739 (m32r_sdata): New Enum and EnumValue entries.
7741 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7743 * config/m32c/m32c.c: Don't include opts.h.
7744 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7745 m32c_handle_option): Remove.
7746 (m32c_option_override): Check global_options_set.x_target_memregs
7747 instead of target_memregs_set.
7748 * config/m32c/m32c.h (target_memregs): Remove.
7749 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7752 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7754 * config/iq2000/iq2000-opts.h: New.
7755 * config/iq2000/iq2000.c: Don't include opts.h.
7756 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7757 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7758 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7759 HeaderInclude entry.
7760 (iq2000_tune): New Variable entry.
7761 (march=): Add comment. Use Enum.
7762 (iq2000_arch): New Enum and EnumValue entries.
7763 (mcpu=): Use Enum and Var.
7764 (iq2000_tune): New Enum and EnumValue entries.
7766 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7768 * config/ia64/ia64-opts.h: New.
7769 * config/ia64/ia64.c (ia64_tune): Remove.
7770 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7772 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7773 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7774 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7775 HeaderInclude entry.
7776 (ia64_tune): New Variable entry.
7777 (mfixed-range=): Use Defer and Var.
7778 (mtune=): Use Enum and Var.
7779 (ia64_tune): New Enum and EnumValue entries.
7781 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7783 * config/frv/frv-opts.h: New.
7784 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7786 (frv_cpu_type): Remove.
7787 * config/frv/frv.c: Don't include opts.h.
7788 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7789 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7790 (frv_cpu_type): New Variable entry.
7791 (frv_cpu): New Enum and EnumValue entries.
7793 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7795 * config/cris/cris.c (cris_handle_option): Access target_flags via
7796 opts pointer. Don't assert that global structures are in use.
7797 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7798 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7800 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7802 * config/bfin/bfin-opts.h: New.
7803 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7804 bfin_si_revision, bfin_workarounds): Remove.
7805 (bfin_cpus): Make static const.
7806 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7807 not bfin_lib_id_given.
7808 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7809 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7810 pointer. Use error_at. Don't assert that global structures are in use.
7811 * config/bfin/bfin.h: Include bfin-opts.h.
7812 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7813 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7814 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7815 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7818 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7820 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7821 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7822 or -msoft-float here.
7823 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7824 -msoft-float and -mhard-float.
7825 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7826 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7828 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7830 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7831 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7833 (LIBGCC_SPEC): Don't handle -msoft-float.
7834 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7836 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7838 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7839 -mfloat-abi=*, not -msoft-float and -mhard-float.
7840 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7842 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7843 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7844 mhard-float and msoft-float.
7845 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
7846 mfloat-abi=soft in comments, not mhard-float and msoft-float.
7847 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7848 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
7850 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
7851 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
7853 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
7855 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
7858 2011-03-22 Richard Henderson <rth@redhat.com>
7860 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
7861 TARGET_ABI_WINDOWS_NT.
7862 (alpha_output_function_end_prologue): Likewise.
7863 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
7864 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7865 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
7866 (trap, *movsi_nt_vms): Likewise.
7867 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
7868 (*tablejump_osf_nt_internal): Remove.
7869 * config/alpha/predicates.md (input_operand): Only test Pmode.
7871 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7873 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
7874 via opts pointer. Use error_at. Don't assert that global
7875 structures are in use.
7877 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7879 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
7880 (ix86_handle_option): Access ix86_isa_flags and
7881 ix86_isa_flags_explicit via opts pointer. Don't assert that
7882 global structures are in use.
7883 (ix86_function_specific_save, ix86_function_specific_restore):
7884 Update ix86_isa_flags_explicit field name.
7885 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
7886 (ix86_isa_flags_explicit): Rename TargetSave entry to
7887 x_ix86_isa_flags_explicit.
7889 2011-03-22 Richard Henderson <rth@redhat.com>
7891 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
7892 (alpha_option_override, direct_return): Likewise.
7893 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
7894 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
7895 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
7896 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7897 (alpha_expand_epilogue, alpha_end_function): Likewise.
7898 (alpha_init_libfuncs): Likewise.
7899 (struct machine_function): Remove unicosmk members.
7900 (print_operand) ['t']: Remove.
7901 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
7902 unicosmk_output_module_name, unicosmk_output_common,
7903 current_section_align, unicosmk_output_text_section_asm_op,
7904 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
7905 unicosmk_section_type_flags, unicosmk_unique_section,
7906 unicosmk_asm_named_section, unicosmk_insert_attributes,
7907 unicosmk_output_align, unicosmk_defer_case_vector,
7908 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
7909 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
7910 unicosmk_output_ssib, unicosmk_add_call_info_word,
7911 unicosmk_extern_head, unicosmk_output_default_externs,
7912 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
7913 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
7914 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
7915 * config/alpha/alpha-protos.h: Update.
7916 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
7917 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
7918 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
7919 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
7920 (*mulsi_se, mulvsi3): Likewise.
7921 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
7922 (*divmodsi_internal, call, call_value, realign): Likewise.
7923 (moddi3, umoddi3): Likewise; remove duplicate expander.
7924 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
7925 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
7926 (*movdi_nofix): Remove r/U alternative.
7927 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
7928 * config/alpha/constraints.md ("U"): Remove.
7929 * config/alpha/predicates.md (call_operand"): Don't test
7930 TARGET_ABI_UNICOSMK.
7932 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7934 * target.def (handle_option): Take gcc_options and
7935 cl_decoded_option pointers and location_t.
7936 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
7937 * doc/tm.texi: Regenerate.
7938 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
7939 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
7940 * lto-opts.c (lto_reissue_options): Generate option structure for
7941 targetm.handle_option call.
7942 * opts.c (target_handle_option): Update call to
7943 targetm.handle_option. Remove assertions about values now passed
7945 * targhooks.c (default_target_handle_option): New.
7946 * targhooks.h (default_target_handle_option): Declare.
7947 * config/alpha/alpha.c: Include opts.h.
7948 (alpha_handle_option): Update to new hook interface.
7949 * config/arm/arm.c: Include opts.h.
7950 (arm_handle_option): Update to new hook interface.
7951 * config/arm/t-arm (arm.o): Update dependencies.
7952 * config/bfin/bfin.c: Include opts.h.
7953 (bfin_handle_option): Update to new hook interface.
7954 * config/cris/cris.c: Include opts.h.
7955 (cris_handle_option): Update to new hook interface.
7956 * config/frv/frv.c: Include opts.h.
7957 (frv_handle_option): Update to new hook interface.
7958 * config/i386/i386.c: Include opts.h.
7959 (ix86_handle_option): Update to new hook interface.
7960 (ix86_valid_target_attribute_inner_p): Generate option structure
7961 for call to ix86_handle_option.
7962 * config/i386/t-i386 (i386.o): Update dependencies.
7963 * config/ia64/ia64.c: Include opts.h.
7964 (ia64_handle_option): Update to new hook interface.
7965 * config/ia64/t-ia64 (ia64.o): Update dependencies.
7966 * config/iq2000/iq2000.c: Include opts.h.
7967 (iq2000_handle_option): Update to new hook interface.
7968 * config/m32c/m32c.c: Include opts.h.
7969 (m32c_handle_option): Update to new hook interface.
7970 * config/m32r/m32r.c: Include opts.h.
7971 (m32r_handle_option): Update to new hook interface.
7972 * config/m68k/m68k.c: Include opts.h.
7973 (m68k_handle_option): Update to new hook interface.
7974 * config/mep/mep.c: Include opts.h.
7975 (mep_handle_option): Update to new hook interface.
7976 * config/microblaze/microblaze.c: Include opts.h.
7977 (microblaze_handle_option): Update to new hook interface.
7978 * config/mips/mips.c: Include opts.h.
7979 (mips_handle_option): Update to new hook interface.
7980 * config/mn10300/mn10300.c: Include opts.h.
7981 (mn10300_handle_option): Update to new hook interface.
7982 * config/pa/pa.c: Include opts.h.
7983 (pa_handle_option): Update to new hook interface.
7984 * config/pdp11/pdp11.c: Include opts.h.
7985 (pdp11_handle_option): Update to new hook interface.
7986 * config/rs6000/rs6000.c: Include opts.h.
7987 (rs6000_handle_option): Update to new hook interface.
7988 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7989 * config/rx/rx.c: Include opts.h.
7990 (rx_handle_option): Update to new hook interface.
7991 * config/s390/s390.c: Include opts.h.
7992 (s390_handle_option): Update to new hook interface.
7993 * config/score/score.c: Include opts.h.
7994 (score_handle_option): Update to new hook interface.
7995 * config/sh/sh.c: Include opts.h.
7996 (sh_handle_option): Update to new hook interface.
7997 * config/sparc/sparc.c: Include opts.h.
7998 (sparc_handle_option): Update to new hook interface.
7999 * config/v850/v850.c: Include opts.h.
8000 (v850_handle_option): Update to new hook interface.
8002 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8004 * gcc.c (driver_unknown_option_callback): Only permit and save
8005 unknown -Wno- options.
8006 (driver_wrong_lang_callback): Save options directly instead of via
8007 driver_unknown_option_callback.
8009 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8011 * combine.c (simplify_set): Try harder to find the best CC mode when
8012 simplifying a nested COMPARE on the RHS.
8014 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8016 * config/alpha/gnu.h: Remove.
8017 * config/arc: Remove directory.
8018 * config/arm/netbsd.h: Remove.
8019 * config/arm/t-pe: Remove.
8020 * config/crx: Remove directory.
8021 * config/i386/netbsd.h: Remove.
8022 * config/m68hc11: Remove directory.
8023 * config/m68k/uclinux-oldabi.h: Remove.
8024 * config/mcore/mcore-pe.h: Remove.
8025 * config/mcore/t-mcore-pe: Remove.
8026 * config/netbsd-aout.h: Remove.
8027 * config/rs6000/gnu.h: Remove.
8028 * config/sh/sh-symbian.h: Remove.
8029 * config/sh/symbian-base.c: Remove.
8030 * config/sh/symbian-c.c: Remove.
8031 * config/sh/symbian-cxx.c: Remove.
8032 * config/sh/symbian-post.h: Remove.
8033 * config/sh/symbian-pre.h: Remove.
8034 * config/sh/t-symbian: Remove.
8035 * config/svr3.h: Remove.
8036 * config/vax/netbsd.h: Remove.
8037 * config.build: Don't handle i[34567]86-*-pe.
8038 * config.gcc: Remove handling of deprecations for most deprecated
8040 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8041 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8042 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8043 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8044 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8045 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8047 * config.host: Don't handle i[34567]86-*-pe.
8048 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8049 (ASM_SPEC32): Don't handle -mcall-gnu.
8050 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8052 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8053 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8054 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8055 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8056 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8057 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8058 conditional on SYMBIAN.
8059 * configure.ac: Don't handle powerpc*-*-gnu*.
8060 * configure: Regenerate.
8061 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8062 * doc/install-old.texi (m6811, m6812): Don't mention.
8063 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8064 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8065 (m68k-uclinuxoldabi): Don't mention.
8066 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8068 (-mcall-gnu): Remove.
8069 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8070 families): Remove constraint documentation.
8072 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8074 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8075 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8076 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8078 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8081 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8082 vector when peeking at the next token for vector, don't expand the
8085 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8087 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8088 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8089 * config/avr/avr.c (init_cumulative_args)
8090 (avr_function_arg_advance): Use it.
8091 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8093 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8094 (avr_function_ok_for_sibcall): ...this new function.
8095 (avr_lookup_function_attribute1): New static Function.
8096 (avr_naked_function_p, interrupt_function_p)
8097 (signal_function_p, avr_OS_task_function_p)
8098 (avr_OS_main_function_p): Use it.
8099 * config/avr/avr.md ("sibcall", "sibcall_value")
8100 ("sibcall_epilogue"): New expander.
8101 ("*call_insn", "*call_value_insn"): New insn.
8102 ("call_insn", "call_value_insn"): Remove
8103 ("call", "call_value", "epilogue"): Change expander to handle
8106 2011-03-21 Nick Clifton <nickc@redhat.com>
8108 * doc/invoke.texi (Overall Options): Move closing brace to end of
8110 (Optimization Options): Add missing @gol.
8111 (Directory Options): Likewise.
8112 (i386 and x86-64 Options): Likewise.
8113 (RS6000 and PowerPC Options): Likewise.
8114 (i386 and x86-64 Windows Options): Likewise.
8115 (V850 Options): Add text missing from descriptions.
8117 2011-03-22 Richard Henderson <rth@redhat.com>
8119 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8120 (avr_incoming_return_addr_rtx): New.
8121 (emit_push_byte): New.
8122 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8123 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8124 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8125 (emit_pop_byte): New.
8126 (expand_epilogue): Use it. Pop frame pointer by bytes.
8127 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8128 (INCOMING_RETURN_ADDR_RTX): New.
8129 (INCOMING_FRAME_SP_OFFSET): New.
8130 (ARG_POINTER_CFA_OFFSET): New.
8131 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8132 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8135 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8137 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8139 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8140 (FUNCTION_ARG_ADVANCE): Likewise.
8141 * tm.texi.in: Change references to them to hook references.
8142 * tm.texi: Regenerate.
8143 * targhooks.c (default_function_arg): Eliminate check for target
8145 (default_function_incoming_arg): Likewise.
8146 (default_function_arg_advance): Likewise.
8147 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8148 (function_arg_advance): Likewise.
8149 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8151 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8153 * tree.c (build_call_1): New function.
8154 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8156 2011-03-22 Richard Guenther <rguenther@suse.de>
8158 PR tree-optimization/48228
8159 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8160 for single-arg PHIs.
8162 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8164 PR rtl-optimization/48143
8165 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8166 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8167 sse2_cvtps2pd): Likewise.
8169 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8171 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8173 2011-03-22 Richard Guenther <rguenther@suse.de>
8175 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8176 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8177 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8178 and REALIGN_LOAD_EXPR.
8179 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8180 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8181 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8182 DOT_PROD_EXPR case ...
8183 (expand_expr_real_2): ... here.
8184 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8185 and REALIGN_LOAD_EXPR.
8186 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8187 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8188 (vect_create_epilog_for_reduction): Likewise.
8189 (vectorizable_reduction): Likewise.
8190 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8191 * tree-vect-stmts.c (vectorizable_load): Likewise.
8193 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8195 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8197 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8199 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8200 handling for PLTOFF/GOTOFF.
8202 2011-03-22 Nick Clifton <nickc@redhat.com>
8204 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8205 trailing backslash from the end of the macro definition.
8207 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8209 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8212 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8214 * expr.h (prepare_operand): Move to...
8215 * optabs.h (prepare_operand): ...here and change the insn code
8216 parameter from "int" to "enum insn_code".
8217 (insn_operand_matches): Declare.
8218 * expr.c (init_expr_target): Use insn_operand_matches.
8219 (compress_float_constant): Likewise.
8220 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8221 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8222 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8223 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8225 (gen_cond_trap): Likewise.
8226 (prepare_operand): Likewise. Change icode to an insn_code.
8227 (insn_operand_matches): New function.
8228 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8229 * reload1.c (gen_reload): Likewise.
8230 * targhooks.c (default_secondary_reload): Likewise.
8232 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8234 * config/alpha/alpha.md (unspec): New define_c_enum.
8237 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8240 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8241 between a call and its CALL_ARG_LOCATION note.
8243 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8245 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8247 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8251 * c-common.c (shorten_compare): If primopN is first sign-extended
8252 to opN and then zero-extended to result type, set primopN to opN.
8254 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8256 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8257 for barrier handlers.
8259 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8261 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8262 UNSPEC constants to be in the unspec enumeration, and redefine
8263 all UNSPECV constants to be in the unspecv enumeration, so that
8264 dumps print which unspec/unspec_volatile this is.
8265 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8266 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8267 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8268 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8269 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8271 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8272 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8273 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8274 * config/rs6000/sync.md (isync, lwsync): Ditto.
8276 2011-03-21 Richard Guenther <rguenther@suse.de>
8278 * params.def (lto-min-partition): Fix typo.
8280 2011-03-21 Richard Guenther <rguenther@suse.de>
8283 * c-decl.c (grokdeclarator): Drop to the main variant only
8284 for array types. Drop flag_gen_aux_info check.
8286 2011-03-21 Richard Guenther <rguenther@suse.de>
8288 PR translation/47911
8289 * params.def (lto-partitions): Fix typo.
8290 (lto-min-partition): Fix wording.
8292 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8294 * config/rs6000/t-freebsd: Remove duplication from file.
8296 2011-03-21 Richard Guenther <rguenther@suse.de>
8299 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8301 2011-03-21 Richard Guenther <rguenther@suse.de>
8304 * params.def (lto-partitions): Require at least 1 partition.
8306 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8308 * gthr-solaris.h: Remove.
8309 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8310 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8311 (LIB_SPEC): Likewise.
8312 * config/sol2.opt (threads): Remove.
8313 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8314 (sparc*-*-solaris2*): Likewise.
8315 * configure.ac (enable_threads): Enable solaris support.
8316 * configure: Regenerate.
8317 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8318 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8321 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8323 * config.gcc: Obsolete *-*-solaris2.8*.
8324 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8326 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8329 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8330 reference. Solaris 8 perl works.
8332 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8335 * doc/install.texi (Prerequisites): Move jar etc. up.
8336 Explain support library version requirements.
8338 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8341 * doc/install.texi (Prerequisites): Move Perl to build
8342 requirements. Always necessary on Solaris 2 with Sun ld.
8344 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8346 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8348 (Specific, i?86-*-solaris2.[89]): Likewise.
8349 (Specific, i?86-*-solaris2.10): Likewise.
8350 (Specific, mips-sgi-irix6): Likewise.
8351 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8352 Update for binutils 2.21.
8354 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8356 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8357 Allow -fuse-linker-plugin for non-default plugin linker.
8358 * configure: Regenerate.
8360 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8363 * gengtype.c (files_rules): Added rule for cp/parser.h.
8365 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8368 * config/s390/s390.c (s390_delegitimize_address): Don't call
8369 lowpart_subreg if orig_x has BLKmode.
8371 2011-03-21 Kai Tietz <ktietz@redhat.com>
8374 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8375 * tree.h (attribute_spec): Add new member affects_type_identity.
8376 * attribs.c (empty_attribute_table): Adjust attribute_spec
8378 * config/alpha/alpha.c: Likewise.
8379 * config/arc/arc.c: Likewise.
8380 * config/arm/arm.c: Likewise.
8381 * config/avr/avr.c: Likewise.
8382 * config/bfin/bfin.c: Likewise.
8383 * config/crx/crx.c: Likewise.
8384 * config/darwin.h: Likewise.
8385 * config/h8300/h8300.c: Likewise.
8386 * config/i386/cygming.h: Likewise.
8387 * config/i386/i386.c: Likewise.
8388 * config/ia64/ia64.c: Likewise.
8389 * config/m32c/m32c.c: Likewise.
8390 * config/m32r/m32r.c: Likewise.
8391 * config/m68hc11/m68hc11.c: Likewise.
8392 * config/m68k/m68k.c: Likewise.
8393 * config/mcore/mcore.c: Likewise.
8394 * config/mep/mep.c: Likewise.
8395 * config/microblaze/microblaze.c: Likewise.
8396 * config/mips/mips.c: Likewise.
8397 * config/rs6000/rs6000.c: Likewise.
8398 * config/rx/rx.c: Likewise.
8399 * config/sh/sh.c: Likewise.
8400 * config/sol2.h: Likewise.
8401 * config/sparc/sparc.c: Likewise.
8402 * config/spu/spu.c: Likewise.
8403 * config/stormy16/stormy16.c: Likewise.
8404 * config/v850/v850.c: Likewise.
8406 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8408 * simplify-rtx.c (simplify_binary_operation_1): Handle
8409 (xor (and A B) C) case when B and C are both constants.
8411 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8413 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8415 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8418 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8420 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8422 PR rtl-optimization/48156
8423 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8424 assume df and df_lr are not NULL.
8426 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8429 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8430 between a call and its CALL_ARG_LOCATION note.
8432 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8435 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8436 between a call and its corresponding CALL_ARG_LOCATION note.
8438 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8440 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8441 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8442 * haifa-sched.c (setup_ref_regs): Ditto.
8443 * caller-save.c (add_used_regs_1): Ditto.
8444 * dse.c (look_for_hardregs): Ditto.
8445 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8446 * sched-rgn.c (check_live_1): Ditto.
8448 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8450 * c-decl.c (diagnose_mismatched_decls): Give an error for
8451 redefining a typedef with variably modified type.
8453 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8455 * c-decl.c (grokfield): Don't allow typedefs for structures or
8456 unions with no tag by default.
8457 * doc/extend.texi (Unnamed Fields): Update.
8459 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8461 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8462 Rewrite using indirect functions.
8463 (lwp_slwpcb): Ditto.
8464 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8465 (avx_vinsertf128<mode>): Ditto.
8467 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8469 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8472 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8474 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8475 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8477 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8479 PR rtl-optimization/48170
8480 * gcse.c (hoist_code): Remove bogus asserts.
8482 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8484 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8485 computation for prologue/epilogue.
8487 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8489 * Makefile.in (check-consistency): Remove.
8491 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8494 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8495 arange_table_in_use is 0, but either text_section_used or
8496 cold_text_section_used is true. Don't call it if
8497 !info_section_emitted.
8499 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8501 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8502 FUNCTION_VALUE_REGNO_P): Remove.
8503 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8505 * config/avr/avr.c (avr_ret_register): Make static inline.
8506 (avr_function_value_regno_p): New function.
8507 (avr_libcall_value): Make static. Add 'func' argument.
8508 (avr_function_value): Make static. Rename 'func' argument to
8509 'fn_decl_or_type', forward it to avr_libcall_value. Call
8510 avr_ret_register function instead of RET_REGISTER macro.
8511 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8513 2011-03-18 Jason Merrill <jason@redhat.com>
8516 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8518 2011-03-18 Richard Guenther <rguenther@suse.de>
8520 * doc/install.texi (--enable-gold): Remove.
8521 (--with-plugin-ld): Document.
8522 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8524 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8527 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8528 again after expansion changes.
8530 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8532 * combine.c (try_combine): Do simplification only call of
8533 subst() on i2 even when i1 is present. Update comments.
8535 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8537 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8538 and UNSPEC_PCREL_SYMOFF.
8540 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8542 * config/s390/s390.md: Use define_c_enum for the unspec constant
8545 2011-03-18 Richard Henderson <rth@redhat.com>
8546 Jakub Jelinek <jakub@redhat.com>
8549 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8550 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8552 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8555 * combine.c (cant_combine_insn_p): Don't check zero/sign
8556 extended hard registers.
8558 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8561 * combine.c (cant_combine_insn_p): Check zero/sign extended
8564 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8566 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8567 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8568 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8569 Change return type to bool.
8570 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8572 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8575 * var-tracking.c (prepare_call_arguments): If CALL target
8576 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8577 pc instead of looking it up using cselib_lookup and use
8578 Pmode for it if x has VOIDmode.
8579 * dwarf2out.c (gen_subprogram_die): If also both first and
8580 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8583 * function.c (assign_parms): For data.passed_pointer parms
8584 use MEM of data.entry_parm instead of data.entry_parm itself
8585 as DECL_INCOMING_RTL.
8586 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8587 also when passed and declared mode is the same, DECL_RTL
8588 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8591 2011-03-16 Jeff Law <law@redhat.com>
8593 PR rtl-optimization/37273
8594 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8595 handle them like argument loads from stack slots. Do not double
8596 count memory for memory constants and argument loads from stack slots.
8598 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8601 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8603 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8606 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8608 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8611 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8613 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8614 Clear call_arg_locations and call_arg_loc_last always.
8617 * var-tracking.c (prepare_call_arguments): If argument needs to be
8618 passed by reference, adjust argtype and mode.
8620 2011-03-17 Richard Guenther <rguenther@suse.de>
8623 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8624 a value make sure to fold the statement.
8626 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8629 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8630 return condition with !cfun->calls_alloca.
8632 2011-03-17 Richard Guenther <rguenther@suse.de>
8635 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8636 origin for decls in other ltrans units.
8637 (input_varpool_node): Likewise.
8639 2011-03-17 Richard Guenther <rguenther@suse.de>
8642 * tree-object-size.c (compute_object_offset): Properly return
8643 the offset operand of MEM_REFs as sizetype.
8645 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8647 PR rtl-optimization/48141
8648 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8649 * dse.c: Include params.h.
8650 (active_local_stores_len): New variable.
8651 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8653 (record_store, check_mem_read_rtx): Decrease it when removing
8655 (scan_insn): Likewise. Increase it when adding to chain, if it
8656 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8657 set active_local_stores to NULL before the addition.
8658 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8660 PR rtl-optimization/48141
8661 * dse.c (record_store): If no positions are needed in an insn
8662 that cannot be deleted, at least unchain it from active_local_stores.
8664 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8667 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8668 (lookup_type_die_strip_naming_typedef): ... here.
8669 (get_context_die): Use it.
8670 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8671 the anonymous struct named by the naming typedef.
8673 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8676 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8677 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8679 2011-03-16 Jeff Law <law@redhat.com>
8681 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8682 check for operands of conditional. Allow type to be a pointer.
8684 2011-03-16 Richard Guenther <rguenther@suse.de>
8686 PR tree-optimization/48149
8687 * fold-const.c (fold_binary_loc): Fold
8688 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8690 2011-03-16 Richard Guenther <rguenther@suse.de>
8692 PR tree-optimization/26134
8693 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8694 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8695 (non_rewritable_mem_ref_base): Handle complex type component
8696 accesses, constrain offsets for vector and complex extracts
8699 2011-03-16 Richard Guenther <rguenther@suse.de>
8701 PR tree-optimization/48146
8702 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8703 operands avoiding the need for renaming.
8705 2011-03-16 Richard Guenther <rguenther@suse.de>
8707 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8708 constant folding. Move MEM_REF canonicalization first.
8709 Rely on fold_const_aggregate_ref for initializer folding.
8710 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8712 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8715 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8716 arg0/arg1 or their arguments are always fold converted to matching
8719 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8722 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8725 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8726 Handle in-tree gold.
8727 (ld_vers): Extract binutils version for gold.
8728 (gcc_cv_ld_hidden): Handle gold here.
8729 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8730 * configure: Regenerate.
8731 * config.in: Regenerate.
8732 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8733 -fuse-linker-plugin otherwise.
8734 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8735 (LINK_COMMAND_SPEC): Use it.
8736 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8738 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8740 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8741 * calls.c: Remove debug.h include.
8742 (emit_call_1): Don't call virtual_call_token debug hook.
8743 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8744 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8745 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8746 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8747 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8748 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8749 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8750 dwarf2out_virtual_call): Remove.
8751 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8752 copy_call_info and virtual_call hooks.
8753 (dwarf2out_init): Don't initialize vcall_insn_table,
8754 debug_dcall_section and debug_vcall_section.
8755 (prune_unused_types): Don't mark nodes from dcall_table.
8756 (dwarf2out_finish): Don't output dcall or vcall tables.
8757 * final.c (final_scan_insn): Don't call direct_call or
8758 virtual_call debug hooks.
8759 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8760 virtual_call_token, copy_call_info and virtual_call hooks.
8761 (debug_nothing_uid): Remove prototype.
8762 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8763 copy_call_info and virtual_call hooks.
8764 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8765 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8766 * debug.c (do_nothing_debug_hooks): Likewise.
8767 (debug_nothing_uid): Remove.
8768 * doc/invoke.texi (-fenable-icf-debug): Remove.
8769 * common.opt (-fenable-icf-debug): Likewise.
8771 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8772 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8773 call's MEM. Handle functions returning aggregate through a hidden
8774 first pointer. For virtual calls add clobbered pc to call arguments
8776 * dwarf2out.c (gen_subprogram_die): Emit
8777 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8781 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8782 * rtl.h (ENTRY_VALUE_EXP): Define.
8783 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8784 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8785 * print-rtl.c (print_rtx): Likewise.
8786 * gengtype.c (adjust_field_rtx_def): Likewise.
8787 * var-tracking.c (vt_add_function_parameter): Adjust
8788 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8789 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8790 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8791 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8792 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8794 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8795 Call var_location debug hook even on CALL_INSNs.
8796 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8797 * rtl.def (ENTRY_VALUE): New.
8798 * dwarf2out.c: Include cfglayout.h.
8799 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8800 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8801 (struct call_arg_loc_node): New type.
8802 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8803 tail_call_site_count): New variables.
8804 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8805 DW_TAG_GNU_call_site_parameter.
8806 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8807 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8808 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8809 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8810 and DW_AT_GNU_all_source_call_sites.
8811 (mem_loc_descriptor): Handle ENTRY_VALUE.
8812 (add_src_coords_attributes): Don't add enything if
8813 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8814 (dwarf2out_abstract_function): Save and clear call_arg_location,
8815 call_site_count and tail_call_site_count around dwarf2out_decl call.
8816 (gen_call_site_die): New function.
8817 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8818 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8819 (dwarf2out_function_decl): Clear call_arg_locations,
8820 call_arg_loc_last, set call_site_count and tail_call_site_count
8821 to -1 and free block_map.
8822 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8823 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8824 followed by any real instructions.
8825 (dwarf2out_begin_function): Set call_site_count and
8826 tail_call_site_count to 0.
8827 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8828 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8829 attempt to force a DIE for it and worst case remove the attribute.
8830 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8831 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8833 * var-tracking.c: Include tm_p.h.
8834 (vt_stack_adjustments): For calls call note_register_arguments.
8835 (argument_reg_set): New variable.
8836 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8837 ensure the VALUE is resolved.
8838 (call_arguments): New variable.
8839 (prepare_call_arguments): New function.
8840 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8841 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8842 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8843 always use the best expression.
8844 (vt_expand_loc): Add ignore_cur_loc argument.
8845 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
8846 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
8847 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
8849 (vt_add_function_parameter): Use cselib_lookup_from_insn.
8850 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
8851 argument. Don't call cselib_preserve_only_values and
8853 (note_register_arguments): New function.
8854 (vt_initialize): Compute argument_reg_set. Call
8855 vt_add_function_parameters before processing basic blocks instead of
8856 afterwards. For calls call prepare_call_arguments before calling
8857 cselib_process_insn.
8858 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
8859 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
8860 (var-tracking.o): Depend on $(TM_P_H).
8861 * cfglayout.h (insn_scope): New prototype.
8862 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
8863 * cfglayout.c (insn_scope): No longer static.
8864 * insn-notes.def (CALL_ARG_LOCATION): New.
8865 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
8866 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
8867 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
8868 nothing for DECL_EXTERNAL BLOCK_VARS.
8870 2011-03-16 Alan Modra <amodra@gmail.com>
8873 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
8874 create invalid offset address for vsx splat insn.
8875 * config/rs6000/predicates.md (splat_input_operand): New.
8876 * config/rs6000/vsx.md (vsx_splat_*): Use it.
8878 2011-03-15 Xinliang David Li <davidxl@google.com>
8881 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
8882 (normalize_preds): New function.
8883 (is_use_properly_guarded): Normalize def predicates.
8885 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8888 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
8889 in the output template.
8891 2011-03-15 Richard Guenther <rguenther@suse.de>
8894 * tree-pretty-print.c (dump_function_declaration): Properly
8895 dump unprototyped and varargs function types.
8897 2011-03-15 Richard Guenther <rguenther@suse.de>
8899 PR tree-optimization/13954
8900 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
8903 2011-03-15 Richard Guenther <rguenther@suse.de>
8905 PR tree-optimization/48037
8906 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
8907 selects into BIT_FIELD_REFs.
8908 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
8911 2011-03-15 Jakub Jelinek <jakub@redhat.com>
8913 PR tree-optimization/48129
8914 * builtins.c (fold_builtin_snprintf): Convert to type of
8915 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
8916 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
8918 2011-03-15 Richard Guenther <rguenther@suse.de>
8920 PR tree-optimization/41490
8921 * tree-ssa-dce.c (propagate_necessity): Handle returns without
8922 value but with VUSE.
8923 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
8925 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
8926 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
8927 * tree-tailcall.c (find_tail_calls): Ignore returns.
8929 2011-03-15 Richard Guenther <rguenther@suse.de>
8932 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
8933 or variable-indexed array accesses when in gimple form.
8935 2011-03-15 Richard Guenther <rguenther@suse.de>
8937 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
8939 2011-03-15 Alan Modra <amodra@gmail.com>
8942 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
8943 presume symbol_refs without a symbol_ref_decl are suitably
8944 aligned, nor other trees we may see here. Handle anchor symbols.
8945 (legitimate_constant_pool_address_p): Comment. Add mode param.
8946 Check cmodel=medium addresses. Adjust all calls.
8947 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
8948 creating cmodel=medium optimized access to locals.
8949 * config/rs6000/constraints.md (R): Pass QImode to
8950 legitimate_constant_pool_address_p.
8951 * config/rs6000/predicates.md (input_operand): Pass mode to
8952 legitimate_constant_pool_address_p.
8953 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
8956 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8959 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
8960 64-bit constants being loaded into registers other than GPRs such
8961 as loading 0 into a VSX register.
8963 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8965 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
8967 2011-03-14 Jakub Jelinek <jakub@redhat.com>
8970 * builtins.c (fold_builtin_snprintf): New function.
8971 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
8972 (fold_builtin_4): Likewise.
8975 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
8976 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
8977 and C - X == X also strip nops from +/-/p+ operand.
8978 When optimizing -X == C, fold C to arg0's type.
8981 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
8982 emit it as add_AT_int instead of add_AT_unsigned.
8984 2011-03-14 Tom Tromey <tromey@redhat.com>
8986 * unwind-dw2.c: Include sys/sdt.h if it exists.
8987 (_Unwind_DebugHook): Use STAP_PROBE2.
8988 * config.in, configure: Rebuild.
8989 * configure.ac: Check for sys/sdt.h.
8991 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
8993 * config/i386/i386.md (ROUND_FLOOR): New constant.
8994 (ROUND_CEIL): Ditto.
8995 (ROUND_TRUNC): Ditto.
8996 (ROUND_MXCSR): Ditto.
8997 (ROUND_NO_EXC): Ditto.
8998 (rint<mode>2): Use new defines instead of numerical constants.
8999 (floor<mode>2): Ditto.
9000 (ceil<mode>2): Ditto.
9001 (btrunc<mode>2): Ditto.
9002 * config/i386/i386-builtin-types.def: Define ROUND function type
9004 * config/i386/i386.c (enum ix86_builtins): Add
9005 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9006 (struct builtin_description): Add
9007 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9008 (ix86_expand_sse_round): New static function.
9009 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9011 (ix86_builtin_vectorized_function): Handle
9012 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9014 2011-03-14 Tom Tromey <tromey@redhat.com>
9016 * c-parser.c (c_parser_asm_string_literal): Clear
9017 warn_overlength_strings.
9019 2011-03-14 Tom Tromey <tromey@redhat.com>
9021 * c-parser.c (disable_extension_diagnostics): Save
9022 warn_overlength_strings.
9023 (restore_extension_diagnostics): Restore warn_overlength_strings.
9025 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9027 * BASE-VER: Change to 4.7.0.
9029 2011-03-14 Richard Guenther <rguenther@suse.de>
9032 * tree.c (build_vector_from_val): Adjust assert to requirements
9035 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9038 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9040 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9042 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9043 terms of target_flags_explicit. Adjust copyright year.
9045 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9046 * config/rs6000/t-freebsd: New file. Add override for
9049 2011-03-13 Chris Demetriou <cgd@google.com>
9051 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9052 (-fno-diagnostics-show-option): this, to reflect current default.
9053 (-Werror=): Update text about -fno-diagnostics-show-option.
9055 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9058 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9059 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9060 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9061 mode is not V2DImode or V2DFmode.
9062 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9063 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9064 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9066 (movdi_internal64): Likewise.
9068 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9070 PR tree-optimization/47127
9071 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9073 (set_cloog_options): Same.
9074 (scop_to_clast): Same.
9075 (print_clast_stmt): Do not call cloog_state_malloc and
9077 (print_generated_program): Same.
9079 * graphite-clast-to-gimple.h (cloog_state): Declared.
9080 (scop_to_clast): Adjust declaration.
9081 * graphite.c (cloog_state): Defined here.
9082 (graphite_initialize): Call cloog_state_malloc.
9083 (graphite_finalize): Call cloog_state_free.
9085 2011-03-11 Jason Merrill <jason@redhat.com>
9087 * attribs.c (lookup_attribute_spec): Take const_tree.
9090 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9092 * config/sparc/sparc.c (sparc_option_override): Use
9093 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9095 2011-03-11 Richard Guenther <rguenther@suse.de>
9097 PR tree-optimization/48067
9098 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9099 multiplication result will be only used once on the target
9102 2011-03-11 Richard Guenther <rguenther@suse.de>
9104 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9106 2011-03-11 Richard Guenther <rguenther@suse.de>
9109 * tree.c (find_decls_types_r): Do not walk types only reachable
9110 from IDENTIFIER_NODEs.
9112 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9115 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9116 all vnode->force_output nodes as needed.
9118 2011-03-11 Jason Merrill <jason@redhat.com>
9121 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9122 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9124 2011-03-11 Martin Jambor <mjambor@suse.cz>
9126 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9129 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9131 PR tree-optimization/48063
9132 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9133 inline functions called once if !tree_can_inline_p (node->callers).
9135 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9137 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9139 * config/score/score3.c: Delete.
9140 * config/score/score3.h: Delete.
9141 * config/score/mul-div.S: Delete.
9142 * config/score/sfp-machine.h: Add new file.
9143 * config/score/constraints.md: Add new file.
9144 * config/score/t-score-softfp: Add new file.
9145 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9146 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9147 (score7_extra_constraint): Delete.
9148 (score7_option_override): Remove unused code.
9149 * config/score/score.c: Remove score3 and score5 define and code.
9150 * config/score/score.h: Remove score3 and score5 define and code.
9151 * config/score/score.md: Remove score3 template and unusual insn.
9152 * config/score/score.opt: Remove score3 and score5 options.
9154 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9156 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9157 when _HPUX_SOURCE is defined.
9158 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9160 2011-03-10 Jason Merrill <jason@redhat.com>
9163 * stor-layout.c (layout_type): Don't set structural equality
9164 on arrays of incomplete type.
9165 * tree.c (type_hash_eq): Handle comparing them properly.
9167 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9170 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9171 result mode matches original rtl mode.
9173 2011-03-10 Nick Clifton <nickc@redhat.com>
9175 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9176 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9178 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9180 PR rtl-optimization/47866
9181 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9182 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9183 if target wasn't scalar.
9184 * function.c (assign_stack_temp_for_type): Assert that neither
9185 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9186 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9188 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9190 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9192 * config/s390/s390-protos.h (s390_label_align): New prototype.
9193 * config/s390/s390.c (s390_label_align): New function.
9194 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9196 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9199 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9200 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9201 (output_vec_const_move): Ditto.
9203 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9205 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9206 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9207 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9208 Change 'rclass' argument and result type to reg_class_t.
9209 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9211 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9213 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9214 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9215 (TARGET_MEMORY_MOVE_COST): Define.
9216 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9218 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9221 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9224 PR tree-optimization/48022
9225 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9228 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9231 * var-tracking.c (find_use_val): Return NULL for
9232 cui->sets && cui->store_p BLKmode MEMs.
9234 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9236 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9238 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9239 xstormy16_print_operand_address): Remove.
9240 * config/stormy16/stormy16.c (xstormy16_print_operand,
9241 xstormy16_print_operand_address): Make static.
9242 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9244 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9247 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9248 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9251 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9254 * cfgloopmanip.c (fix_bb_placements): Return immediately
9255 if FROM is BASE_LOOP's header.
9257 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9259 * gimplify.c (gimplify_function_tree): Fix building calls
9260 to __builtin_return_address.
9262 2011-03-07 Alan Modra <amodra@gmail.com>
9264 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9265 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9266 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9267 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9269 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9270 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9271 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9272 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9273 * config/rs6000/rs6000.c
9274 (rs6000_elf_end_indicate_exec_stack): Rename to..
9275 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9276 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9277 (rs6000_file_start): ..here.
9278 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9279 file scope variables.
9280 (call_ABI_of_interest): New function.
9281 (init_cumulative_args): Set above vars when function return value
9282 is a float, vector, or small struct.
9283 (rs6000_function_arg_advance_1): Likewise for function args.
9284 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9285 references float args.
9287 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9289 * doc/cfg.texi: Remove "See" before @ref.
9290 * doc/invoke.texi: Likewise.
9292 2011-03-05 Jason Merrill <jason@redhat.com>
9294 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9296 2011-03-05 Anthony Green <green@moxielogic.com>
9298 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9300 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9302 PR rtl-optimization/47899
9303 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9304 to flow_loop_nested_p when moving the loop upward.
9306 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9309 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9311 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9313 PR tree-optimization/47967
9314 * ipa-cp.c (build_const_val): Return NULL instead of creating
9315 VIEW_CONVERT_EXPR for mismatching sizes.
9316 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9317 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9318 give up on versioning.
9320 2011-03-05 Alan Modra <amodra@gmail.com>
9323 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9324 full cmodel medium/large lo_sum + high addresses.
9326 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9328 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9329 pool references in UNSPEC_LTREL_OFFSET.
9331 2011-03-04 Jan Hubicka <jh@suse.cz>
9334 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9335 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9336 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9338 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9339 cgraph_add_thunk): Add node pointers.
9340 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9341 associated to right node.
9342 (input_node): Update use of cgraph_same_body_alias
9343 and cgraph_add_thunk.
9345 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9347 * config/i386/i386.opt (mprefer-avx128): New flag.
9348 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9349 modes when the flag -mprefer-avx128 is on.
9351 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9353 * dwarf2out.c (compare_loc_operands): Fix address handling.
9355 2011-03-04 Alan Modra <amodra@gmail.com>
9357 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9359 2011-03-04 Richard Guenther <rguenther@suse.de>
9362 * expmed.c (extract_bit_field_1): Prefer vector modes that
9363 vec_extract patterns can handle.
9365 2011-03-04 Richard Guenther <rguenther@suse.de>
9368 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9370 2011-03-04 Richard Henderson <rth@redhat.com>
9372 * explow.c (emit_stack_save): Remove 'after' parameter.
9373 (emit_stack_restore): Likewise.
9374 * expr.h: Update to match.
9375 * builtins.c, calls.c, stmt.c: Likewise.
9376 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9377 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9378 * function.c (expand_function_end): Insert the emit_stack_save
9379 sequence before parm_birth_insn instead of after.
9381 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9383 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9384 (ssse3_pmaddubsw128): Ditto.
9385 (ssse3_pmaddubsw): Ditto.
9387 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9389 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9391 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9394 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9395 on TYPE_SIZE_UNIT if it is a DECL.
9398 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9399 first operand is not is_gimple_mem_ref_addr, try to fold it.
9400 If the operand still isn't is_gimple_mem_ref_addr, clear
9403 2011-03-03 Richard Guenther <rguenther@suse.de>
9406 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9408 (refs_may_alias_p_1): For release branches return true if
9409 we are confused by our input.
9411 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9413 * config/s390/s390.c (s390_function_value): Rename to ...
9414 (s390_function_and_libcall_value): ... this.
9415 (s390_function_value): New function.
9416 (s390_libcall_value): New function.
9417 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9418 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9419 target macro definitions.
9420 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9422 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9424 * config/i386/freebsd64.h (CC1_SPEC): Define.
9425 * config/i386/linux64.h (CC1_SPEC): Define.
9426 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9428 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9430 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9432 * config/stormy16/stormy16.c: Include reload.h.
9433 (xstormy16_memory_move_cost): New function.
9434 (TARGET_MEMORY_MOVE_COST): Define.
9436 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9438 PR rtl-optimization/47925
9439 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9440 with side effects. Remove the more-specific check for volatile asms.
9442 2011-03-02 Alan Modra <amodra@gmail.com>
9445 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9446 toc relative addresses for valid offsets.
9448 2011-03-01 Richard Guenther <rguenther@suse.de>
9450 PR tree-optimization/47890
9451 * tree-vect-loop.c (get_initial_def_for_induction): Set
9452 related stmt properly.
9454 2011-03-01 Richard Guenther <rguenther@suse.de>
9457 * lto-streamer.c (lto_record_common_node): Also register
9460 2011-03-01 Richard Guenther <rguenther@suse.de>
9463 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9464 Do not stream DECL_ABSTRACT_ORIGIN.
9465 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9466 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9467 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9468 Do not stream DECL_ABSTRACT_ORIGIN.
9469 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9470 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9472 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9474 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9475 FUNCTION_VALUE_REGNO_P): Remove.
9476 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9477 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9478 Add 'outgoing' argument.
9479 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9481 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9482 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9484 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9487 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9488 (lookup_filename): Likewise.
9489 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9491 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9492 Jakub Jelinek <jakub@redhat.com>
9495 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9496 (assign_stack_local_1): Change last argument type to int.
9497 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9498 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9499 don't record padding space into frame_space_list nor use those areas.
9500 (assign_stack_local): Adjust caller.
9501 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9502 of assign_stack_local, pass 0 as last argument.
9503 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9506 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9509 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9510 Use target address_mode and pointer_mode hooks instead of hardcoded
9511 Pmode and ptr_mode. Handle some simple cases of extending if
9512 POINTERS_EXTEND_UNSIGNED < 0.
9513 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9514 Call convert_debug_memory_address.
9515 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9516 convert_debug_memory_address.
9519 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9520 * configure: Regenerated.
9521 * config.in: Regenerated.
9522 * varasm.c (default_function_section): Return NULL
9523 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9525 2011-02-28 Martin Jambor <mjambor@suse.cz>
9527 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9528 the description to match the printed values.
9530 2011-02-28 Richard Guenther <rguenther@suse.de>
9532 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9533 of the copied scope tree.
9535 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9537 * doc/extend.texi (Function Attributes): Avoid deeply (and
9538 wrongly) nested tables.
9540 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9543 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9544 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9545 r isn't op0 nor op1.
9547 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9549 * config/avr/avr.md: Remove magic comment for emacs.
9551 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9554 * config/avr/avr.c (avr_option_override): Use error on bad options.
9555 (avr_help): New function.
9556 (TARGET_HELP): Define.
9558 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9561 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9562 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9564 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9566 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9567 (ARM Options): Ditto.
9568 (i386 and x86-64 Options): Ditto.
9569 (RX Options): Ditto.
9570 (SPARC Options): Ditto.
9572 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9574 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9575 FreeBSD 6 and later. Generally use cpu generic.
9577 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9579 * doc/cpp.texi: Update copyright years.
9581 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9584 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9586 2011-02-25 Jon Beniston <jon@beniston.com>
9589 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9590 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9591 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9592 (lm32_block_move_inline): Add type cast to remove warning.
9593 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9594 (gen_int_relational): Move declarations to start of function.
9596 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9598 PR tree-optimization/45470
9599 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9600 can throw internally only.
9601 * tree-vect-stmts.c (vectorizable_call): Likewise.
9603 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9605 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9606 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9607 * config/stormy16/stormy16-protos.h
9608 (xstormy16_preferred_reload_class): Remove.
9609 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9610 static. Change 'rclass' argument and return type to reg_class_t.
9611 (TARGET_PREFERRED_RELOAD_CLASS,
9612 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9614 2011-02-24 Richard Guenther <rguenther@suse.de>
9616 * lto-streamer-in.c (input_bb): Do not find referenced vars
9617 in debug statements.
9619 2011-02-23 Jason Merrill <jason@redhat.com>
9621 * common.opt (fabi-version): Document v5 and v6.
9623 2011-02-23 Richard Guenther <rguenther@suse.de>
9625 PR tree-optimization/47849
9626 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9628 2011-02-23 Jie Zhang <jie@codesourcery.com>
9630 * opts-common.c (decode_cmdline_option): Print empty string
9631 argument as "" in decoded->orig_option_with_args_text.
9632 * gcc.c (execute): Print empty string argument as ""
9633 in the verbose output.
9634 (do_spec_1): Keep empty string argument.
9636 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9638 * config.gcc: Declare score-* and crx-* obsolete.
9640 2011-02-23 Jie Zhang <jie@codesourcery.com>
9642 PR rtl-optimization/47763
9643 * web.c (web_main): Ignore naked clobber when replacing register.
9645 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9647 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9650 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9653 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9655 2011-02-22 Mike Stump <mikestump@comcast.net>
9657 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9659 * configure: Regenerate.
9661 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9663 PR rtl-optimization/46002
9664 * ira-color.c (update_copy_costs): Change class intersection
9665 test to reg_class_contents[] test of 'hard_regno'.
9667 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9669 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9671 * config/hpux11.opt (mt): Likewise.
9672 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9673 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9674 * config/vax/elf.opt (mno-asm-pic): Likewise.
9675 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9677 2011-02-21 Mike Stump <mikestump@comcast.net>
9680 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9681 tree so we can get save the type.
9682 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9683 for CFString instead of trying to use past the end of the builtins.
9684 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9685 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9686 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9687 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9688 Rename to darwin_builtin_cfstring.
9689 (darwin_init_cfstring_builtins): Return the built type.
9691 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9694 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9695 (_mm256_insert_epi64): Use _mm_insert_epi64.
9697 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9699 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9700 * config/stormy16/stormy16-protos.h
9701 (xstormy16_mode_dependent_address_p): Remove.
9702 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9703 Make static. Change return type to bool. Change argument type to
9704 const_rtx. Remove dead code.
9705 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9707 2011-02-21 Richard Guenther <rguenther@suse.de>
9710 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9711 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9712 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9714 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9715 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9717 2011-02-20 Richard Guenther <rguenther@suse.de>
9720 * tree.c (free_lang_data_in_decl): Clean builtins from
9721 the TU decl BLOCK_VARS.
9723 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9727 * haifa-sched.c (fix_tick_ready): Skip tick computation
9730 2011-02-19 Richard Guenther <rguenther@suse.de>
9733 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9734 Remove lazy BLOCK_VARS streaming.
9735 (lto_input_ts_block_tree_pointers): Likewise.
9736 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9738 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9740 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9742 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9744 * config/i386/biarch32.h, config/i386/mach.h,
9745 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9747 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9750 * config/i386/i386.md (peephole2 for shift and plus): Use
9751 operands[1] original mode in the first insn.
9753 2011-02-18 Mike Stump <mikestump@comcast.net>
9755 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9757 2011-02-18 Jan Hubicka <jh@suse.cz>
9760 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9761 to zero when the function is not inlinable at all.
9763 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9765 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9766 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9767 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9768 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9769 * config/pa/t-pa64: Likewise.
9770 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9772 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9775 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9777 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9780 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9782 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9784 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9785 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9786 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9787 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9788 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9789 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9790 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9791 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9792 m32r_legitimate_address_p): New functions.
9793 * config/m32r/constraints.md (constraint "S"): Don't use
9794 STORE_PREINC_PREDEC_P.
9795 (constraint "U"): Don't use LOAD_POSTINC_P.
9797 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9799 PR rtl-optimization/46178
9800 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9801 compute ira_hard_regno_cover_class[].
9803 2011-02-18 Richard Guenther <rguenther@suse.de>
9806 * lto-streamer.h (lto_global_var_decls): Declare.
9807 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9808 statics for global var processing.
9810 2011-02-18 Richard Guenther <rguenther@suse.de>
9812 PR tree-optimization/47737
9813 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9814 edge dominance check.
9816 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9819 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9820 avoid invalid rtx sharing.
9822 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9824 * doc/cpp.texi (Obsolete Features): Add background on the
9825 origin of assertions.
9827 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9829 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9831 * config/darwin.c (output_objc_section_asm_op): Added support for
9833 (is_objc_metadata): New.
9834 (darwin_objc2_section): New.
9835 (darwin_objc1_section): New.
9836 (machopic_select_section): Added support for ABI v1 and v2.
9837 (darwin_emit_objc_zeroed): New.
9838 (darwin_output_aligned_bss): Detect objc metadata and treat it
9840 (darwin_asm_output_aligned_decl_common): Same.
9841 (darwin_asm_output_aligned_decl_local): Same.
9842 * config/darwin-sections.def: Updated for ABI v1 and v2.
9843 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9844 compiling Objective-C code for the NeXT runtime, default to using
9845 ABI version 0 for 32-bit, and version 2 for 64-bit.
9847 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9849 * common.opt (optimize_fast): New Variable.
9850 * opts.c (default_options_optimization): Use opts->x_optimize_fast
9851 instead of local variable ofast.
9853 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
9855 * doc/invoke.texi (fobjc-abi-version): Documented.
9856 (fobjc-nilcheck): Documented.
9857 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
9860 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9863 * common.opt (export-dynamic): New Driver option.
9864 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
9866 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9868 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
9870 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
9871 Jan Hubicka <jh@suse.cz>
9875 * cfgexpand.c (account_used_vars_for_block): Remove.
9876 (estimated_stack_frame_size): Use referenced vars.
9877 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
9878 that were referenced in the original function. Test src_fn
9879 rather than cfun. Drop redundant get_var_ann.
9880 (setup_one_parameter): Drop redundant get_var_ann.
9881 (declare_return_variable): Likewise.
9882 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
9883 (copy_arguments_for_versioning): Drop redundant get_var_ann.
9884 * ipa-inline.c (compute_inline_parameters): Do not compute
9885 disregard_inline_limits here.
9886 (compute_inlinable_for_current, pass_inlinable): New.
9887 (pass_inline_parameters): Require PROP_referenced_vars.
9888 * cgraphunit.c (cgraph_process_new_functions): Don't run
9889 compute_inline_parameters explicitly unless function is in SSA form.
9890 (cgraph_analyze_function): Set .disregard_inline_limits.
9891 * tree-sra.c (convert_callers): Compute inliner parameters
9892 only for functions already in SSA form.
9894 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9896 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
9897 -mlittle-endian-data.
9899 2011-02-17 Joseph Myers <joseph@codesourcery.com>
9901 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
9902 -mno-fpu, not -fpu and -no-fpu.
9903 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
9904 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
9906 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
9909 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
9910 input reload with PLUS RTX.
9912 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9914 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
9915 of InverseVar(MDMX).
9917 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9919 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
9922 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9924 * config/mn10300/mn10300.opt (mno-crt0): New.
9926 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9928 * config/m68k/uclinux.opt (static-libc): New Driver option.
9930 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9932 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
9934 2011-02-16 Joseph Myers <joseph@codesourcery.com>
9936 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
9937 %{muser-extend-enabled}.
9939 2011-02-16 Richard Guenther <rguenther@suse.de>
9941 PR tree-optimization/47738
9942 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
9943 the TODO from tree_predictive_commoning.
9945 2011-02-15 Jeff Law <law@redhat.com>
9948 2011-01-25 Jeff Law <law@redhat.com>
9950 PR rtl-optimization/37273
9951 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9952 handle them like argument loads from stack slots. Do not double
9953 count memory for memory constants and argument loads from stack slots.
9955 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9958 * combine.c (cant_combine_insn_p): Revert the last change.
9960 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
9963 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
9964 mode for vector constants. Remove code that checks for TImode.
9966 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9970 * cgraph.h (compute_inline_parameters): Return void.
9971 * ipa-inline.c (compute_inline_parameters): Adjust.
9973 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9977 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
9979 * cfgexpand.c (estimated_stack_frame_size): Likewise.
9980 * ipa-inline.c (compute_inline_parameters): Adjust.
9982 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
9986 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
9987 Adjust all users. Pass FN to...
9988 * tree-flow-inline.h (first_referenced_var): ... this. Add
9990 * ipa-struct-reorg.c: Adjust.
9991 * tree-dfa.c: Adjust.
9992 * tree-into-ssa.c: Adjust.
9993 * tree-sra.c: Adjust.
9994 * tree-ssa-alias.c: Adjust.
9995 * tree-ssa-live.c: Adjust.
9996 * tree-ssa.c: Adjust.
9997 * tree-ssanames.c: Adjust.
9998 * tree-tailcall.c: Adjust.
10000 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10004 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10005 Adjust all callers.
10006 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10007 * tree-flow-inline.h: Adjust.
10008 * gimple-pretty-print.c: Adjust.
10009 * tree-into-ssa.c: Adjust.
10010 * tree-ssa.c: Adjust.
10011 * cfgexpand.c: Adjust.
10013 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10015 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10016 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10017 (EXTRA_CONSTRAINT): Delete.
10018 * config/iq2000/constraints.md: New file.
10019 * config/iq2000/iq2000.md: Include it.
10020 (define_insn ""): Delete.
10021 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10022 unsupported constraint letters from patterns.
10023 (call_value, call_value_internal1): Likewise.
10024 (call_value_multiple_internal1): Likewise.
10026 2011-02-15 Nick Clifton <nickc@redhat.com>
10028 * config/mn10300/mn10300.c: Include tm-constrs.h.
10029 (struct liw_data): New data structure describing an LIW candidate
10031 (extract_bundle): Use struct liw_data. Allow small integer
10032 operands for some instructions.
10033 (check_liw_constraints): Use struct liw_data. Remove swapped
10034 parameter. Add comments describing the checks. Fix bug when
10035 assigning the source of liw1 to the source of liw2.
10036 (liw_candidate): Delete. Code moved into extract_bundle.
10037 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10039 * config/mn10300/predicates.md (liw_operand): New predicate.
10040 Allows registers and small integer constants.
10041 * config/mn10300/constraints.md (O): New constraint. Accetps
10042 integers in the range -8 to +7 inclusive.
10043 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10044 for moving a small integer into a register. Give this alternative
10046 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10047 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10048 using the J,K,L and M constraints,
10049 (liw): Remove SI mode on second operands to allow for HI and QI
10051 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10054 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10056 PR middle-end/47725
10057 * combine.c (cant_combine_insn_p): Check zero/sign extended
10060 2011-02-15 Richard Guenther <rguenther@suse.de>
10062 PR tree-optimization/47743
10063 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10064 for a non-type-compatible VN lookup bail out.
10066 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10068 * config/fr30/constraints.md: New file.
10069 * config/fr30/fr30.md: Include it.
10070 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10071 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10072 (EXTRA_CONSTRAINT): Delete.
10074 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10076 * config/frv/constraints.md: New file.
10077 * config/frv/predicates.md: Include it.
10078 * config/frv/frv.c (reg_class_from_letter): Delete.
10079 (frv_option_override): Don't initialize it.
10080 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10081 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10082 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10083 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10084 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10085 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10086 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10087 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10088 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10089 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10090 (REG_CLASS_FROM_CONSTRAINT): Delete.
10092 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10094 PR middle-end/47581
10095 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10096 if frame size is 0 in a leaf function.
10098 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10101 * config/alpha/host-osf.c: New file.
10102 * config/alpha/x-osf: New file.
10103 * config.host (alpha*-dec-osf*): Use it.
10105 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10107 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10108 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10109 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10110 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10112 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10114 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10116 * config/stormy16/constraints.md: New file.
10117 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10118 Use satisfies_constraint_Q and satisfies_constraint_R.
10119 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10121 (xstormy16_legitiamte_address_p): Declare.
10122 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10123 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10124 (EXTRA_CONSTRAINT): Delete.
10125 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10127 (xstormy16_extra_constraint_p): Delete.
10129 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10131 PR tree-optimization/46494
10132 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10133 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10134 (pass_rtl_loop_done): Add TODO_verify_flow.
10135 * fwprop.c (pass_rtl_fwprop): Likewise.
10136 * modulo-sched.c (pass_sms): Likewise.
10137 * tree-ssa-dom.c (pass_dominator): Likewise.
10138 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10139 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10140 (pass_tree_loop_done): Likewise.
10141 * tree-ssa-pre.c (execute_pre): Likewise.
10142 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10143 * tree-ssa-sink.c (pass_sink_code): Likewise.
10144 * tree-vrp.c (pass_vrp): Likewise.
10146 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10148 * config/v850/constraints.md: New file.
10149 * config/v850/v850.md: Include it.
10150 * config/v850/predicates.md (reg_or_0_operand): Use
10151 satisfies_constraint_G.
10152 (special_symbolref_operand): Use satisfies_constraint_K.
10153 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10154 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10155 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10156 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10157 (EXTRA_CONSTRAINT): Delete.
10158 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10159 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10160 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10162 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10165 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10168 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10170 * config/mcore/constraints.md: New file.
10171 * config/mcore/mcore.md: Include it.
10172 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10173 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10174 (REG_CLASS_FROM_LETTER): Delete.
10175 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10176 insn_const_int_ok_for_constraint.
10177 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10178 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10179 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10180 (EXTRA_CONSTRAINT): Delete.
10182 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10185 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10186 (IS_SIGHANDLER): Define.
10187 (sparc64_is_sighandler): New function, split off from
10188 sparc64_fallback_frame_state.
10189 (sparc_is_sighandler): New function, split off from
10190 sparc_fallback_frame_state.
10191 (sparc64_fallback_frame_state): Merge with ...
10192 (sparc_fallback_frame_state): ... this into ...
10193 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10194 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10195 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10196 stack instead of hardcoded offsets.
10198 2011-02-14 Andriy Gapon <avg@freebsd.org>
10201 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10203 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10205 * configure: Regenerate.
10207 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10210 * gcc.c (asm_options): Correct spec matching --target-help.
10212 2011-02-12 Martin Jambor <mjambor@suse.cz>
10214 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10215 to gimple call error.
10217 2011-02-12 Mike Stump <mikestump@comcast.net>
10219 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10220 comments in backslash regions.
10222 2011-02-12 Mike Stump <mikestump@comcast.net>
10223 Jakub Jelinek <jakub@redhat.com>
10224 Iain Sandoe <iains@gcc.gnu.org>
10227 * dwarf2out.c (output_cfa_loc): When required, apply the
10228 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10229 (output_loc_sequence): Likewise.
10230 (output_loc_operands_raw): Likewise.
10231 (output_loc_sequence_raw): Likewise.
10232 (output_cfa_loc): Likewise.
10233 (output_loc_list): Suppress register number adjustment when
10234 calling output_loc_sequence()
10235 (output_die): Likewise.
10237 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10239 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10241 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10242 xtensa_memory_move_cost): New functions.
10243 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10245 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10248 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10249 in the current directory.
10250 * configure: Rebuilt.
10252 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10254 * config/darwin.c (darwin_override_options): Add a hunk missed
10255 from the commit of r168571. Trim comment line lengths and
10256 correct indents of the preceding block.
10258 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10260 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10263 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10265 * common.opt (nostartfiles): New Driver option.
10267 2011-02-11 Xinliang David Li <davidxl@google.com>
10269 PR tree-optimization/47707
10270 * tree-chrec.c (convert_affine_scev): Keep type precision.
10272 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10274 PR tree-optimization/47420
10275 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10277 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10279 PR rtl-optimization/47614
10280 * rtl.h (check_for_inc_dec): Declare.
10281 * dse.c (check_for_inc_dec): Externalize...
10282 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10283 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10285 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10288 * gcc.c (main): Do not compile inputs if there were errors in
10290 * opts-common.c (read_cmdline_option): Check for wrong language
10291 after other error checks.
10293 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10295 * cgraph.c: Fix comment typos.
10296 * cgraph.h: Likewise.
10297 * cgraphunit.c: Likewise.
10298 * ipa-cp.c: Likewise.
10299 * ipa-inline.c: Likewise.
10300 * ipa-prop.c: Likewise.
10301 * ipa-pure-const.c: Likewise.
10302 * ipa-ref.c: Likewise.
10303 * ipa-reference.c: Likewise.
10305 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10308 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10310 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10313 * doc/sourcebuild.texi (Require Support): Document
10314 dg-require-ascii-locale.
10316 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10318 * doc/lto.texi (Write summary): Fix missing parentheses.
10320 2011-02-10 DJ Delorie <dj@redhat.com>
10322 * config/m32c/m32c.c (m32c_option_override): Disable
10323 -fcombine-stack-adjustments until flag value tracking and compare
10324 optimization can be rewritten.
10326 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10328 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10330 (PROCESSOR_DEFAULT64): Likewise.
10332 2011-02-10 Richard Henderson <rth@redhat.com>
10334 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10335 change from 2011-02-03.
10336 * config/rx/rx.c (flags_from_code): Likewise.
10337 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10338 is valid, n/pz otherwise.
10339 (rx_select_cc_mode): Return CCmode if Y is not zero.
10341 2011-02-10 Richard Guenther <rguenther@suse.de>
10343 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10345 2011-02-10 Richard Guenther <rguenther@suse.de>
10347 PR tree-optimization/47677
10348 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10350 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10353 * combine.c (make_compound_operation): Only change shifts into
10354 multiplication for SCALAR_INT_MODE_P.
10356 2011-02-10 Jie Zhang <jie@codesourcery.com>
10360 2011-02-05 Jie Zhang <jie@codesourcery.com>
10362 * web.c (entry_register): Don't clobber the number of the
10363 first uninitialized reference in used[].
10365 2011-02-09 Richard Guenther <rguenther@suse.de>
10367 PR tree-optimization/47664
10368 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10371 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10375 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10377 (PROCESSOR_DEFAULT64): Same.
10378 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10380 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10382 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10384 2011-02-09 Martin Jambor <mjambor@suse.cz>
10386 PR middle-end/45505
10387 * tree-sra.c (struct access): New flags grp_scalar_read and
10388 grp_scalar_write. Changed description of assignment read and write
10390 (dump_access): Dump new flags, reorder all of them.
10391 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10392 to detect multiple scalar reads.
10393 (analyze_access_subtree): Use the new scalar read write flags instead
10394 of the old flags. Adjusted comments.
10396 2011-02-08 DJ Delorie <dj@redhat.com>
10399 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10402 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10404 * config/m68k/uclinux.opt: New.
10405 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10407 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10409 * config/cris/elf.opt (sim): New Driver option.
10411 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10413 * config/xtensa/elf.opt: New.
10414 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10416 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10418 * config/vax/elf.opt: New.
10419 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10421 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10423 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10425 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10427 * config/gnu-user.opt: New.
10428 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10429 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10430 *-*-uclinux*): Use gnu-user.opt.
10432 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10434 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10435 * config/i386/gnu.h (CPP_SPEC): Likewise.
10437 2011-02-08 Ian Lance Taylor <iant@google.com>
10439 * common.opt (fcx-limited-range): Add SetByCombined flag.
10440 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10441 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10442 (fassociative-math, freciprocal-math): Likewise.
10443 (funsafe-math-optimizations): Likewise.
10444 * opth-gen.awk: Handle SetByCombined.
10445 * optc-gen.awk: Likewise.
10446 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10447 (set_unsafe_math_optimizations_flags): Likewise.
10448 * doc/options.texi (Option properties): Document SetByCombined.
10450 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10452 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10453 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10454 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10455 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10456 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10458 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10460 PR tree-optimization/46834
10461 PR tree-optimization/46994
10462 PR tree-optimization/46995
10463 * graphite-sese-to-poly.c (used_outside_reduction): New.
10464 (detect_commutative_reduction): Call used_outside_reduction.
10465 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10466 translate_scalar_reduction_to_array only when at least one
10467 loop-phi/close-phi tuple has been detected.
10469 2011-02-08 Richard Guenther <rguenther@suse.de>
10471 PR middle-end/47639
10472 * tree-vect-generic.c (expand_vector_operations_1): Update
10474 (expand_vector_operations): ... not here. Cleanup EH info
10475 and the CFG if required.
10477 2011-02-08 Richard Guenther <rguenther@suse.de>
10479 PR tree-optimization/47641
10480 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10481 require type compatibility.
10483 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10485 * gimple-low.c (lower_function_body): Don't remove the location of
10486 the return statement here.
10487 (lower_gimple_return): Do it here instead but only if the return
10488 statement is actually used twice.
10490 2011-02-08 Richard Guenther <rguenther@suse.de>
10492 PR tree-optimization/47632
10493 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10494 unused up_to_stmt parameter, return whether cfg-cleanup is
10495 necessary, remove EH info properly.
10496 (forward_propagate_into_gimple_cond): Adjust caller.
10497 (forward_propagate_into_cond): Likewise.
10498 (forward_propagate_comparison): Likewise.
10499 (tree_ssa_forward_propagate_single_use_vars): Make
10500 forward_propagate_comparison case similar to the two others.
10502 2011-02-08 Nick Clifton <nickc@redhat.com>
10504 * config/mn10300/mn10300.opt (mliw): New command line option.
10505 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10506 (liw_bundling): New automaton.
10507 (liw): New attribute.
10508 (liw_op): New attribute.
10509 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10510 (movsi_internal): Add LIW attributes.
10511 (andsi3): Likewise.
10512 (iorsi3): Likewise.
10513 (xorsi3): Likewise.
10514 (addsi3): Separate register and immediate alternatives.
10515 Add LIW attributes.
10516 (subsi3): Likewise.
10518 (aslsi3): Likewise.
10519 (lshrsi3): Likewise.
10520 (ashrsi3): Likewise.
10521 (liw): New pattern.
10522 * config/mn10300/mn10300.c (liw_op_names): New
10523 (mn10300_print_operand): Handle 'W' operand descriptor.
10524 (extract_bundle): New function.
10525 (check_liw_constraints): New function.
10526 (liw_candidate): New function.
10527 (mn10300_bundle_liw): New function.
10528 (mn10300_reorg): New function.
10529 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10530 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10531 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10532 __LIW__ or __NO_LIW__.
10533 * doc/invoke.texi: Describe the -mliw command line option.
10535 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10537 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10538 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10539 pthread_mutex_unlock): Remove.
10540 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10541 * config/pa/t-pa64: Likewise.
10542 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10543 shared libc if not linking against libpthread.
10544 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10546 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10549 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10550 on 10.6 and later to ensure that we always use the unwinder from
10551 the system. Only add -no_compact_unwind when tarteting darwin
10554 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10557 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10558 (vec_interleave_lowv2sf): Ditto.
10559 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10560 (vec_extract_oddv2sf): Ditto.
10562 2011-02-07 Mike Stump <mikestump@comcast.net>
10565 Add __ieee_divdc3 entry point.
10566 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10568 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10569 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10570 * config/darwin.c (darwin_rename_builtins): Add.
10571 * config/darwin-protos.h (darwin_rename_builtins): Add.
10573 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10576 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10579 2011-02-07 Mike Stump <mikestump@comcast.net>
10581 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10583 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10586 * config/avr/libgcc.S (exit): Move .endfunc
10588 2011-02-07 Richard Guenther <rguenther@suse.de>
10590 PR tree-optimization/47615
10591 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10592 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10593 (run_scc_vn): Initialize it.
10594 (visit_reference_op_load): Use it.
10595 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10597 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10599 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10600 DImode trapping arithmetic libfuncs.
10602 2011-02-07 Richard Guenther <rguenther@suse.de>
10604 PR tree-optimization/47621
10605 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10607 (execute_update_addresses_taken): ... here. Make it more
10608 conservative in what we accept.
10610 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10612 * config/sparc/freebsd.h (ASM_SPEC): Define.
10613 * config/sparc/vxworks.h (ASM_SPEC): Define.
10615 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10617 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10619 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10621 * doc/invoke.texi: Remove reference to compiler internals from
10622 user documentation.
10624 * reg-notes.def: Remove REG_VALUE_PROFILE.
10625 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10627 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10629 PR middle-end/47610
10630 * varasm.c (default_section_type_flags): If decl is NULL,
10631 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10633 2011-02-05 Jie Zhang <jie@codesourcery.com>
10636 * web.c (entry_register): Don't clobber the number of the
10637 first uninitialized reference in used[].
10639 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10641 PR tree-optimization/46194
10642 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10643 (build_classic_dist_vector_1): Do not represent classic distance
10644 vectors when the access functions are variating in different loops.
10646 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10648 * config/mips/iris6.opt: New.
10649 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10651 2011-02-04 Richard Henderson <rth@redhat.com>
10652 Steve Ellcey <sje@cup.hp.com>
10655 * config/ia64/predicates.md (mux1_brcst_element): New.
10656 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10657 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10658 (ia64_unpack_sign): New.
10659 (ia64_expand_unpack): Rewrite using new routines.
10660 (ia64_expand_widen_sum): Ditto.
10661 (ia64_expand_dot_prod_v8qi): Ditto.
10662 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10663 routines, add endian check.
10664 (pmpy2_even): Rename from pmpy2_r, add endian check.
10665 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10666 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10667 (vec_widen_smult_hi_v4hi): Ditto.
10668 (vec_widen_umult_lo_v4hi): Ditto.
10669 (vec_widen_umult_hi_v4hi): Ditto.
10670 (mulv2si3): Change endian checks.
10671 (sdot_prodv4hi): Rewrite with new calls.
10672 (udot_prodv4hi): New.
10673 (vec_pack_ssat_v4hi): Add endian check.
10674 (vec_pack_usat_v4hi): Ditto.
10675 (vec_pack_ssat_v2si): Ditto.
10676 (max1_even): Rename from max1_r, add endian check.
10677 (max1_odd): Rename from max1_l, add endian check.
10678 (*mux1_rev): Format change.
10679 (*mux1_mix): Ditto.
10680 (*mux1_shuf): Ditto.
10681 (*mux1_alt): Ditto.
10682 (*mux1_brcst_v8qi): Use new predicate.
10683 (vec_extract_evenv8qi): Remove endian check.
10684 (vec_extract_oddv8qi): Ditto.
10685 (vec_interleave_lowv4hi): Format change.
10686 (vec_interleave_highv4hi): Ditto.
10687 (mix2_even): Rename from mix2_r, add endian check.
10688 (mix2_odd): Rename from mux2_l, add endian check.
10689 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10690 (vec_extract_evenodd_helper): Format change.
10691 (vec_extract_evenv4hi): Remove endian check.
10692 (vec_extract_oddv4hi): Remove endian check.
10693 (vec_interleave_lowv2si): Format change.
10694 (vec_interleave_highv2si): Format change.
10695 (vec_initv2si): Remove endian check.
10696 (vecinit_v2si): Add endian check.
10697 (reduc_splus_v2sf): Add endian check.
10698 (reduc_smax_v2sf): Ditto.
10699 (reduc_smin_v2sf): Ditto.
10700 (vec_initv2sf): Remove endian check.
10701 (fpack): Add endian check.
10702 (fswap): Add endian check.
10703 (vec_interleave_highv2sf): Add endian check.
10704 (vec_interleave_lowv2sf): Add endian check.
10705 (fmix_lr): Add endian check.
10706 (vec_setv2sf): Format change.
10707 (*vec_extractv2sf_0_be): Use shift to extract operand.
10708 (*vec_extractv2sf_1_be): New.
10709 (vec_pack_trunc_v4hi): Add endian check.
10710 (vec_pack_trunc_v2si): Format change.
10712 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10714 PR inline-asm/23200
10715 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10716 do bb, locus and block comparison and disallow loads if it is not set.
10717 (stmt_is_replaceable_p): New function.
10718 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10720 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10721 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10723 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10725 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10727 * config/rs6000/xilinx.opt: New.
10728 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10730 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10732 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10734 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10736 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10737 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10738 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10739 secondary_reload_info, xtensa_secondary_reload): Remove.
10740 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10741 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10742 (xtensa_preferred_reload_class): Make static. Change return and
10743 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10744 Use CONST_DOUBLE_P predicate.
10745 (xtensa_preferred_output_reload_class): New function.
10746 (xtensa_secondary_reload): Make static.
10748 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10750 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10751 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10752 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10754 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10756 PR middle-end/31490
10757 * output.h (SECTION_RELRO): Define.
10758 (SECTION_MACH_DEP): Adjust.
10759 (get_variable_section): New prototype.
10760 * varpool.c (varpool_finalize_named_section_flags): New function.
10761 (varpool_assemble_pending_decls): Call it.
10762 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10763 * cgraphunit.c (cgraph_output_in_order): Call
10764 varpool_finalize_named_section_flags.
10765 * varasm.c (get_section): Allow section flags conflicts between
10766 relro and read-only sections if the section hasn't been declared yet.
10767 Set SECTION_OVERRIDE after diagnosing section type conflict.
10768 (get_variable_section): No longer static.
10769 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10770 readonly sections that need relocations.
10771 (decl_readonly_section_1): New function.
10772 (decl_readonly_section): Use it.
10775 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10776 Steve Ellcey <sje@cup.hp.com>
10778 PR middle-end/31490
10779 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10780 if section attribute used.
10782 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10784 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10785 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10786 (darwin_init_sections): Remove assertion.
10788 2011-02-03 Nick Clifton <nickc@redhat.com>
10790 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10792 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10793 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10794 instead of "n" and "pz".
10795 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10798 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10801 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10802 fma, expand FMA_EXPR as fma{,f,l} call.
10805 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10806 copy them into a unsigned char variable and pass address of it to
10807 lto_output_data_stream.
10810 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10811 around backend_init_target and lang_dependent_init_target calls.
10812 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10813 (verify_cgraph_node): Don't call set_cfun here. Use
10814 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10815 Set error_found for incorrectly represented calls to thunks.
10817 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10820 PR rtl-optimization/43494
10821 * rtl.h (for_each_inc_dec_fn): New type.
10822 (for_each_inc_dec): Declare.
10823 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10824 (for_each_inc_dec_find_inc_dec): New fn.
10825 (for_each_inc_dec_find_mem): New fn.
10826 (for_each_inc_dec): New fn.
10827 * dse.c (struct insn_size): Remove.
10828 (replace_inc_dec, replace_inc_dec_mem): Remove.
10829 (emit_inc_dec_insn_before): New fn.
10830 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10831 (canon_address): Pass mem modes to cselib_lookup.
10832 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10833 (cselib_lookup_from_insn): Likewise.
10834 (cselib_subst_to_values): Likewise.
10835 * cselib.c (find_slot_memmode): New var.
10836 (cselib_find_slot): New fn. Use it instead of
10837 htab_find_slot_with_hash everywhere.
10838 (entry_and_rtx_equal_p): Use find_slot_memmode.
10839 (autoinc_split): New fn.
10840 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10841 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10842 Deal with autoinc. Special-case recursion into MEMs.
10843 (cselib_hash_rtx): Likewise.
10844 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
10845 address and MEM modes.
10846 (cselib_subst_to_values): Add memmode, pass it on.
10848 (cselib_lookup): Add memmode argument, pass it on.
10849 (cselib_lookup_from_insn): Add memmode.
10850 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
10851 (struct cselib_record_autoinc_data): New.
10852 (cselib_record_autoinc_cb): New fn.
10853 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
10854 mode to cselib_lookup. Reset autoinced REGs here instead of...
10855 (cselib_process_insn): ... here.
10856 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
10858 (add_uses): Likewise, also to cselib_subst_to_values.
10859 (add_stores): Likewise.
10860 * sched-deps.c (add_insn_mem_dependence): Pass mode to
10861 cselib_subst_to_values.
10862 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
10863 * gcse.c (do_local_cprop): Adjusted.
10864 * postreload.c (reload_cse_simplify_set): Adjusted.
10865 (reload_cse_simplify_operands): Adjusted.
10866 * sel-sched-dump (debug_mem_addr_value): Pass mode.
10868 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10870 PR tree-optimization/45122
10871 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
10872 unsafe assumptions when there's more than one loop exit.
10874 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10877 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10878 Document using vector double with the load/store builtins, and
10879 that the load/store builtins always use Altivec instructions.
10881 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
10882 to use altivec memory instructions, even on VSX.
10883 (vector_altivec_store_<mode>): Ditto.
10885 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
10888 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10889 V2DF, V2DI support to load/store overloaded builtins.
10891 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
10892 altivec load/store builtins for V2DF/V2DI types.
10894 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10895 set avoid indexed addresses on power6 if -maltivec.
10896 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
10897 vector_altivec_load/vector_altivec_store builtins.
10898 (altivec_expand_st_builtin): Ditto.
10899 (altivec_expand_builtin): Add VSX memory builtins.
10900 (rs6000_init_builtins): Add V2DI types to internal types.
10901 (altivec_init_builtins): Add support for V2DF/V2DI altivec
10902 load/store builtins.
10903 (rs6000_address_for_altivec): Insure memory address is appropriate
10906 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
10907 vec_vsx_ld and vec_vsx_st.
10908 (vsx_store_<mode>): Ditto.
10910 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
10911 variables to hold long long types for VSX vector memory builtins.
10912 (RS6000_BTI_unsigned_long_long): Ditto.
10913 (long_long_integer_type_internal_node): Ditti.
10914 (long_long_unsigned_type_internal_node): Ditti.
10916 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
10917 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
10918 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
10920 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
10922 (vec_vsx_st): Ditto.
10924 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10926 * config/pa/pa-hpux10.opt: New.
10927 * config/hpux11.opt (pthread): New Driver option.
10928 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
10929 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
10931 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10933 * config/ia64/vms.opt: New.
10934 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
10936 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10939 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
10940 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
10941 generator functions.
10942 (vsx_floatuns<VSi><mode>2): Ditto.
10943 (vsx_fix_trunc<mode><VSi>2): Ditto.
10944 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
10946 2011-02-02 Joseph Myers <joseph@codesourcery.com>
10948 * config/i386/djgpp.opt (posix): New Driver option.
10950 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10952 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
10953 Move to the unsupported targets list.
10955 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
10957 PR rtl-optimization/47525
10958 * df-scan.c: Update copyright years.
10959 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
10960 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
10962 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10964 * config/i386/sysv4.h (TARGET_VERSION): Remove.
10965 (SUBTARGET_RETURN_IN_MEMORY): Remove.
10966 (ASM_OUTPUT_ASCII): Remove.
10967 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
10969 2011-02-02 Jeff Law <law@redhat.com>
10971 PR middle-end/47543
10972 * reload.c (find_reloads_address): Handle reg+d address where both
10973 components are invalid by reloading the entire address.
10975 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10976 Richard Guenther <rguenther@suse.de>
10978 PR tree-optimization/40979
10980 * passes.c (init_optimization_passes): After LIM call copy_prop
10981 and DCE to clean up.
10982 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
10984 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
10986 PR tree-optimization/47576
10987 PR tree-optimization/47555
10988 * doc/invoke.texi (scev-max-expr-complexity): Documented.
10989 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10990 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
10991 * tree-scalar-evolution.c (follow_ssa_edge): Use
10992 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
10994 2011-02-02 Richard Guenther <rguenther@suse.de>
10996 PR tree-optimization/47566
10997 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
10999 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11003 * tree-inline.c (declare_return_variable): Remove unused caller
11008 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11009 * cfgexpand.c (account_used_vars_for_block): Use them.
11010 * tree-nrv.c (tree_nrv): Likewise.
11011 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11012 (dump_scope_block): Likewise.
11013 (remove_unused_locals): Likewise.
11017 * tree-inline.c (declare_return_variable): Add result decl to
11018 local decls only once.
11019 * gimple-low.c (record_vars_into): Mark newly-created variables
11022 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11028 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11030 (no_real_insns_p, schedule_block, set_priorities): Drop special
11031 treatment of boundary debug insns.
11032 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11033 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11034 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11035 (BOUNDARY_DEBUG_INSN_P): Likewise.
11036 (SCHEDULE_DEBUG_INSN_P): Likewise.
11037 * sched-rgn.c (init_ready_list): Drop special treatment of
11038 boundary debug insns.
11039 * final.c (rest_of_clean_state): Clear notes' BB.
11041 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11043 * config/openbsd.opt (assert=): New Driver option.
11045 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11047 * config/i386/nto.opt: New.
11048 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11050 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11052 * config/i386/netware.opt: New.
11053 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11055 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11057 * config/interix.opt (posix): New Driver option.
11059 2011-02-01 DJ Delorie <dj@redhat.com>
11061 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11063 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11066 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11068 PR tree-optimization/47561
11069 * toplev.c (process_options): Print the Graphite flags. Add
11070 flag_loop_flatten to the list of options requiring Graphite.
11072 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11074 * config/i386/cygming.opt (posix): New Driver option.
11076 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11078 * config/arm/vxworks.opt: New.
11079 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11081 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11083 * config/alpha/elf.opt: New.
11084 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11085 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11087 2011-02-01 Richard Guenther <rguenther@suse.de>
11089 PR tree-optimization/47559
11090 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11091 store-motion on references that can throw.
11093 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11095 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11096 * tree-pass.h (TDF_CSELIB): New macro.
11097 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11098 cselib_lookup): Check for it rather than for TDF_DETAILS.
11100 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11103 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11104 is HOST_BIT_BUCKET.
11106 * opts.c (finish_options): Don't add x_aux_base_name if it is
11109 2011-02-01 Richard Guenther <rguenther@suse.de>
11111 PR tree-optimization/47555
11113 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11115 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11117 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11120 * config/lm32/t-lm32: Add multilib for all CPU options.
11122 2011-02-01 Richard Guenther <rguenther@suse.de>
11124 PR tree-optimization/47541
11125 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11126 sure to have a field at offset zero.
11128 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11130 * config/arc/arc.opt (EB, EL): New Driver options.
11132 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11134 * config/alpha/osf5.opt: New.
11135 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11137 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11139 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11141 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11143 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11144 -floop-interchange.
11145 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11146 is an alias of -floop-interchange and that it requires the
11147 Graphite infrastructure.
11148 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11149 flag_loop_interchange based on the value of flag_tree_loop_linear.
11151 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11152 Richard Guenther <rguenther@suse.de>
11154 PR tree-optimization/47538
11155 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11156 type instead of r1type, except for comparisons. For right
11157 shifts and comparisons punt if there are mismatches in
11158 sizetype vs. non-sizetype types.
11160 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11162 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11165 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11167 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11169 * configure: Regenerate.
11171 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11173 * configure.ac (gcc_cv_ld_static_option): Define.
11174 (gcc_cv_ld_dynamic_option): Define.
11175 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11177 (HAVE_LD_STATIC_DYNAMIC): Update message.
11178 (LD_STATIC_OPTION): Define.
11179 (LD_DYNAMIC_OPTION): Define.
11180 * configure: Regenerate.
11181 * config.in: Regenerate.
11182 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11183 HAVE_LD_STATIC_DYNAMIC]: Use them.
11185 2011-01-31 Nick Clifton <nickc@redhat.com>
11187 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11188 registers inside interrupt handlers if the handler is not a leaf
11191 2011-01-31 Nick Clifton <nickc@redhat.com>
11193 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11194 reg_renumber returning an INVALID_REGNUM.
11196 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11199 * doc/install.texi: Document host options discarded when cross
11200 configuring target libraries.
11202 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11205 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11208 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11210 (no_real_insns_p, schedule_block, set_priorities): Drop special
11211 treatment of boundary debug insns.
11212 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11213 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11214 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11215 (BOUNDARY_DEBUG_INSN_P): Likewise.
11216 (SCHEDULE_DEBUG_INSN_P): Likewise.
11217 * sched-rgn.c (init_ready_list): Drop special treatment of
11218 boundary debug insns.
11219 * final.c (rest_of_clean-state): Clear notes' BB.
11221 2011-01-31 Alan Modra <amodra@gmail.com>
11223 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11224 toc relative expressions as we do in print_operand_address.
11226 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11228 * doc/extend.texi: Follow spelling conventions.
11229 * doc/invoke.texi: Fix a typo.
11231 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11233 * config/hpux11.opt: New.
11234 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11235 ia64*-*-hpux*): Use hpux11.opt.
11237 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11239 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11242 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11244 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11247 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11249 * doc/install.texi (Binaries): Remove outdated reference for
11250 Motorola 68HC11/68HC12 downloads.
11252 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11254 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11257 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11260 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11263 2011-01-28 Ahmad Sharif <asharif@google.com>
11265 * value-prof.c (check_counter): Corrected error message.
11267 2011-01-29 Jie Zhang <jie@codesourcery.com>
11269 * config/arm/arm.c (arm_legitimize_reload_address): New.
11270 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11271 arm_legitimize_reload_address.
11272 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11274 2011-01-28 Ian Lance Taylor <iant@google.com>
11276 * godump.c (go_define): Ignore macros whose definitions include
11277 two adjacent operands.
11279 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11282 * varasm.c (force_const_mem): Store copy of x in desc->constant
11283 instead of x itself.
11284 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11285 itself into REG_EQUAL note.
11287 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11289 * config/freebsd.opt (posix, rdynamic): New Driver options.
11291 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11293 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11294 -Bstatic/-Bdynamic.
11295 * configure: Regenerate.
11297 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11299 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11300 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11302 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11304 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11305 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11306 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11307 (s390_preferred_reload_class): Make static. Change return and
11308 'rclass' argument type to reg_class_t.
11310 2011-01-27 Jan Hubicka <jh@suse.cz>
11312 PR middle-end/46949
11313 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11314 (process_function_and_variable_attributes): Check defined weakrefs.
11316 2011-01-27 Martin Jambor <mjambor@suse.cz>
11318 PR tree-optimization/47228
11319 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11320 build_ref_for_offset.
11322 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11324 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11326 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11328 PR rtl-optimization/46856
11329 * postreload.c (reload_combine_recognize_const_pattern): Do not
11330 separate cc0 setter and user on cc0 targets.
11332 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11335 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11336 passed a VOID_TYPE expression, immediately emit an error and
11337 return error_mark_node.
11339 2011-01-26 Jeff Law <law@redhat.com>
11341 PR rtl-optimization/47464
11342 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11343 rather than may_trap_p as needed.
11345 2011-01-26 DJ Delorie <dj@redhat.com>
11347 PR rtl-optimization/46878
11348 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11349 setter/user dependency as well.
11351 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11353 PR rtl-optimization/44469
11354 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11355 after removing trivially dead basic blocks.
11357 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11359 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11360 * config/frv/frv.h (LINK_SPEC): Likewise.
11361 * config/i386/netware.h (LINK_SPEC): Likewise.
11362 * config/m68k/linux.h (ASM_SPEC): Likewise.
11363 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11364 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11365 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11366 * config/sparc/linux.h (ASM_SPEC): Likewise.
11367 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11368 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11370 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11372 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11373 * config/frv/frv.h (ASM_SPEC): Likewise.
11374 * config/m68k/linux.h (ASM_SPEC): Likewise.
11375 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11376 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11377 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11378 * config/sparc/linux.h (ASM_SPEC): Likewise.
11379 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11380 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11382 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11384 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11385 * config/frv/frv.h (LINK_SPEC): Likewise.
11386 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11388 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11390 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11391 * config/frv/frv.h (ASM_SPEC): Likewise.
11392 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11393 * config/m68k/linux.h (ASM_SPEC): Likewise.
11394 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11395 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11396 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11397 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11398 * config/sparc/linux.h (ASM_SPEC): Likewise.
11399 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11400 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11401 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11403 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11406 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11408 (vec_extract_evenodd_help): Ditto.
11409 (vec_extract_evenv4hi): Ditto.
11410 (vec_extract_oddv4hi): Ditto.
11411 (vec_interleave_lowv2si): Ditto.
11412 (vec_interleave_highv2si): Ditto.
11413 (vec_extract_evenv2si): Ditto.
11414 (vec_extract_oddv2si: Ditto.
11415 (vec_pack_trunc_v2si): Ditto.
11417 2011-01-22 Jan Hubicka <jh@suse.cz>
11420 * cgraph.h (cgraph_local_info): New field can_change_signature.
11421 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11422 signature can change.
11423 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11425 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11426 (cgraph_function_versioning): We can not change signature of functions
11427 that don't allow that.
11428 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11429 (lto_input_node): Likewise.
11430 * ipa-inline.c (compute_inline_parameters): Compute
11431 local.can_change_signature.
11432 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11433 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11434 functions that can not change signature.
11435 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11436 init_cumulative_args): Do not use local calling conventions
11437 for functions that can not change signature.
11439 2011-01-22 Jan Hubicka <jh@suse.cz>
11441 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11443 2011-01-26 Richard Guenther <rguenther@suse.de>
11445 PR tree-optimization/47190
11446 * cgraphunit.c (process_common_attributes): New function.
11447 (process_function_and_variable_attributes): Use it.
11449 2011-01-26 Richard Guenther <rguenther@suse.de>
11452 * cgraphbuild.c (record_eh_tables): Record reference to personality
11455 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11458 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11459 non-debug insns from moving up.
11461 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11464 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11465 t-dlldir{,-x} fragment for build and add it to tmake_file.
11466 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11467 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11468 * config/i386/t-dlldir: New file.
11469 (SHLIB_DLLDIR): Define.
11470 * config/i386/t-dlldir-x: New file.
11471 (SHLIB_DLLDIR): Define.
11472 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11473 (SHLIB_INSTALL): Use it.
11475 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11478 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11479 lower bound of the allowed Thumb-2 coprocessor load/store
11480 index range to -256. Add explaining comment.
11482 2011-01-25 Ian Lance Taylor <iant@google.com>
11484 * godump.c (go_define): Improve lexing of macro expansion to only
11485 accept expressions which match Go spec.
11487 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11490 * tree.c (handle_dll_attribute): Handle it.
11491 * doc/extend.texi (@item dllexport): Mention it.
11492 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11494 2011-01-25 Ian Lance Taylor <iant@google.com>
11496 PR tree-optimization/26854
11497 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11498 (decl_jump_unsafe): Move higher in file, with no other change.
11499 (bind): Set has_jump_unsafe_decl if appropriate.
11500 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11501 (check_earlier_gotos): Likewise.
11502 (c_check_switch_jump_warnings): Likewise.
11504 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11506 * doc/invoke.texi (Warning Options): Add missing hyphen.
11507 (-fprofile-dir): Minor grammatical fixes.
11508 (-fbranch-probabilities): Likewise.
11510 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11514 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11516 (no_real_insns_p, schedule_block, set_priorities): Drop special
11517 treatment of boundary debug insns.
11518 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11519 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11520 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11521 (BOUNDARY_DEBUG_INSN_P): Likewise.
11522 (SCHEDULE_DEBUG_INSN_P): Likewise.
11523 * sched-rgn.c (init_ready_list): Drop special treatment of
11524 boundary debug insns.
11525 * final.c (rest_of_clean-state): Clear notes' BB.
11527 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11529 * Makefile.in (LAMBDA_H): Removed.
11530 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11531 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11532 lambda-trans.o, and tree-loop-linear.o.
11533 (lto-symtab.o): Remove dependence on LAMBDA_H.
11534 (tree-loop-linear.o): Remove rule.
11535 (lambda-mat.o): Same.
11536 (lambda-trans.o): Same.
11537 (lambda-code.o): Same.
11538 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11539 (tree-vect-slp.o): Same.
11540 * hwint.h (gcd): Moved here.
11541 (least_common_multiple): Same.
11542 * lambda-code.c: Removed.
11543 * lambda-mat.c: Removed.
11544 * lambda-trans.c: Removed.
11545 * lambda.h: Removed.
11546 * tree-loop-linear.c: Removed.
11547 * lto-symtab.c: Do not include lambda.h.
11548 * omega.c (gcd): Removed.
11549 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11550 * tree-data-ref.c (print_lambda_vector): Moved here.
11551 (lambda_vector_copy): Same.
11552 (lambda_matrix_copy): Same.
11553 (lambda_matrix_id): Same.
11554 (lambda_vector_first_nz): Same.
11555 (lambda_matrix_row_add): Same.
11556 (lambda_matrix_row_exchange): Same.
11557 (lambda_vector_mult_const): Same.
11558 (lambda_vector_negate): Same.
11559 (lambda_matrix_row_negate): Same.
11560 (lambda_vector_equal): Same.
11561 (lambda_matrix_right_hermite): Same.
11562 * tree-data-ref.h: Do not include lambda.h.
11563 (lambda_vector): Moved here.
11564 (lambda_matrix): Same.
11565 (dependence_level): Same.
11566 (lambda_transform_legal_p): Removed declaration.
11567 (lambda_collect_parameters): Same.
11568 (lambda_compute_access_matrices): Same.
11569 (lambda_vector_gcd): Same.
11570 (lambda_vector_new): Same.
11571 (lambda_vector_clear): Same.
11572 (lambda_vector_lexico_pos): Same.
11573 (lambda_vector_zerop): Same.
11574 (lambda_matrix_new): Same.
11575 * tree-flow.h (least_common_multiple): Removed declaration.
11576 * tree-parloops.c (lambda_trans_matrix): Moved here.
11577 (LTM_MATRIX): Same.
11578 (LTM_ROWSIZE): Same.
11579 (LTM_COLSIZE): Same.
11580 (LTM_DENOMINATOR): Same.
11581 (lambda_trans_matrix_new): Same.
11582 (lambda_matrix_vector_mult): Same.
11583 (lambda_transform_legal_p): Same.
11584 * tree-pass.h (pass_linear_transform): Removed declaration.
11585 * tree-ssa-loop.c (tree_linear_transform): Removed.
11586 (gate_tree_linear_transform): Removed.
11587 (pass_linear_transform): Removed.
11588 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11589 flag_loop_interchange.
11591 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11593 PR tree-optimization/47265
11594 PR tree-optimization/47443
11595 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11596 if name still has some uses.
11598 2011-01-25 Martin Jambor <mjambor@suse.cz>
11600 PR tree-optimization/47382
11601 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11602 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11604 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11606 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11607 sjlj_except_unwind_info.
11609 2011-01-25 Richard Guenther <rguenther@suse.de>
11611 PR tree-optimization/47426
11612 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11613 visible functions results escape.
11615 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11618 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11619 (arm_get_frame_offsets): Use it.
11621 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11622 Jakub Jelinek <jakub@redhat.com>
11624 PR tree-optimization/47271
11625 * tree-if-conv.c (bb_postdominates_preds): New.
11626 (if_convertible_bb_p): Call bb_postdominates_preds.
11627 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11628 (predicate_scalar_phi): Call bb_postdominates_preds.
11630 2011-01-25 Nick Clifton <nickc@redhat.com>
11632 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11633 * config/rx/rx.c (rx_function_value): Likewise.
11634 (rx_promote_function_mode): Likewise.
11635 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11636 in order to make it legitimate.
11637 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11638 make sure that the first operand is the same as the result register.
11639 (addsi3_unspec): Delete.
11640 (subdi3): Do not accept immediate operands.
11641 (subdi3_internal): Likewise.
11643 2011-01-25 Jeff Law <law@redhat.com>
11645 PR rtl-optimization/37273
11646 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11647 handle them like argument loads from stack slots. Do not double
11648 count memory for memory constants and argument loads from stack slots.
11650 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11652 PR tree-optimization/47427
11653 PR tree-optimization/47428
11654 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11655 coalesce if the new root var would be TREE_READONLY.
11657 2011-01-25 Richard Guenther <rguenther@suse.de>
11659 PR middle-end/47414
11660 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11661 correct type for TBAA.
11663 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11665 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11666 (close_phi_written_to_memory): Call for_each_index with
11667 dr_indices_valid_in_loop.
11669 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11671 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11672 when it is initialized.
11674 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11676 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11677 call to graphite_find_data_references_in_stmt.
11678 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11679 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11680 call to graphite_find_data_references_in_stmt.
11681 (analyze_drs_in_stmts): Same.
11682 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11683 in which the scalar analysis of indices is performed.
11684 (create_data_ref): Same. Update call to dr_analyze_indices.
11685 (find_data_references_in_stmt): Update call to create_data_ref.
11686 (graphite_find_data_references_in_stmt): Same.
11687 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11689 (create_data_ref): Same.
11690 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11691 call to create_data_ref.
11693 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11695 * graphite-sese-to-poly.c (build_poly_scop): Move
11696 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11698 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11700 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11701 VAR_DECL, PARM_DECL, and RESULT_DECL.
11703 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11705 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11706 in a reduction PBB.
11707 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11708 that have already been marked as PBB_IS_REDUCTION.
11710 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11712 * graphite-scop-detection.c (same_close_phi_node): New.
11713 (remove_duplicate_close_phi): New.
11714 (make_close_phi_nodes_unique): New.
11715 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11717 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11719 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11720 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11721 of both data references to be the same.
11723 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11725 * graphite-dependences.c (build_lexicographical_constraint): Remove
11726 the gdim parameter.
11727 (build_lexicographical_constraint): Adjust call to
11728 ppl_powerset_is_empty.
11729 (dependence_polyhedron): Same.
11730 (graphite_legal_transform_dr): Same.
11731 (graphite_carried_dependence_level_k): Same.
11732 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11734 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11736 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11738 * graphite-sese-to-poly.c
11739 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11740 (close_phi_written_to_memory): New.
11741 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11744 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11746 * doc/install.texi: Update the expected version number of PPL to 0.11.
11747 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11748 #if PPL_VERSION_MINOR < 11.
11750 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11752 * graphite-dependences.c: Include graphite-cloog-util.h.
11753 (new_poly_ddr): Inlined into dependence_polyhedron.
11754 (free_poly_ddr): Moved close by new_poly_ddr.
11755 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11756 Early return NULL when ppl_powerset_is_empty returns true.
11757 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11758 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11759 (graphite_legal_transform_dr): Call new_poly_ddr.
11760 (graphite_carried_dependence_level_k): Same.
11761 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11762 (dot_transformed_deps_stmt_1): Removed.
11763 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11764 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11765 (dot_deps_1): Call dot_deps_2.
11766 * Makefile.in (graphite-dependences.o): Add missing dependence on
11767 graphite-cloog-util.h.
11769 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11771 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11772 (build_lexicographical_constraint): Same.
11773 (dependence_polyhedron_1): Same.
11774 (graphite_legal_transform_dr): Same.
11775 (graphite_carried_dependence_level_k): Same.
11776 * graphite-ppl.c (ppl_powerset_is_empty): New.
11777 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11778 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11780 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11782 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11783 the "a followed by b" relation and document it.
11785 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11787 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11788 iteration when the bag of constraints is empty.
11790 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11792 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11794 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11796 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11797 nest and two loop depths as parameters.
11798 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11799 lst_perfect_nestify.
11801 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11803 * graphite-dependences.c (print_pddr): Call
11804 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11806 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11808 * graphite-ppl.c (debug_gmp_value): New.
11809 * graphite-ppl.h (debug_gmp_value): Declared.
11811 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11813 * doc/install.texi: Document availability of cloog-0.16.
11815 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11817 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11818 invalid postdominance info.
11820 2011-01-24 Jan Hubicka <jh@suse.cz>
11823 * doc/extend.texi (weak pragma): Drop claim that it must
11824 appear before definition.
11825 * varasm.c (merge_weak, declare_weak): Only sanity check
11826 that DECL is not output at a time it is declared weak.
11828 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11830 * machmode.def: Fixed comments.
11832 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11834 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11836 2011-01-24 Paul Koning <ni1d@arrl.net>
11838 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11841 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11844 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
11845 (block_info): Add scanned and prev.
11846 (move_or_delete_vzeroupper_2): Return if the basic block
11847 has been scanned and the upper 128bit state is unchanged
11848 from the last scan.
11849 (move_or_delete_vzeroupper_1): Return true if the exit
11851 (move_or_delete_vzeroupper): Visit basic blocks using the
11852 work-list based algorithm based on vt_find_locations in
11855 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
11857 2011-01-24 Nick Clifton <nickc@redhat.com>
11859 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
11860 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
11861 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
11862 then define __v850e1__.
11863 * doc/invoke.texi: Document -mv850es.
11865 2011-01-24 Richard Henderson <rth@redhat.com>
11867 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
11868 compound unordered comparisons.
11869 * config/rx/rx.c (rx_split_fp_compare): Remove.
11870 * config/rx/rx-protos.h: Update.
11871 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
11872 (cbranchsf4): Don't call rx_split_fp_compare.
11873 (*cbranchsf4): Use rx_split_cbranch.
11874 (*cmpsf): Don't accept "i" constraint.
11875 (*conditional_branch): Only valid after reload.
11876 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
11878 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11881 * config/rs6000/altivec.md (vector constant splitters): Add
11882 support for creating vector single precision constants if -mvsx is
11883 used and we would create the constant using Altivec primitives.
11885 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
11886 Richard Sandiford <rdsandiford@googlemail.com>
11888 PR rtl-optimization/47166
11889 * reload1.c (emit_reload_insns): Disable the spill_reg_store
11890 mechanism for PRE_MODIFY and POST_MODIFY.
11891 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
11894 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
11896 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
11898 2011-01-22 Jan Hubicka <jh@suse.cz>
11901 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
11903 2011-01-22 Jan Hubicka <jh@suse.cz>
11905 PR tree-optimization/43884
11907 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
11908 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
11910 2011-01-22 Anatoly Sokolov <aesok@post.ru>
11912 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11913 * config/s390/s390.c (s390_register_move_cost,
11914 s390_memory_move_cost): New.
11915 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11917 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11919 PR middle-end/47401
11920 * except.c (sjlj_assign_call_site_values): Move setting the
11921 crtl->uses_eh_lsda flag to ...
11922 (sjlj_mark_call_sites): ... here.
11923 (sjlj_emit_function_enter): Support NULL dispatch label.
11924 (sjlj_build_landing_pads): In a function with no landing pads
11925 that still has must-not-throw regions, generate code to register
11926 a personality function with empty LSDA.
11928 2011-01-21 Richard Henderson <rth@redhat.com>
11930 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
11932 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
11934 * compare-elim.c: New file.
11935 * Makefile.in (OBJS-common): Add it.
11936 (compare-elim.o): New.
11937 * common.opt (fcompare-elim): New.
11938 * opts.c (default_options_table): Add OPT_fcompare_elim.
11939 * tree-pass.h (pass_compare_elim_after_reload): New.
11940 * passes.c (init_optimization_passes): Add it.
11941 * recog.h: Protect against re-inclusion.
11942 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
11943 * doc/invoke.texi (-fcompare-elim): Document it.
11944 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
11945 * doc/tm.texi: Rebuild.
11947 2011-01-22 Nick Clifton <nickc@redhat.com>
11949 * config/rx/rx.md (cstoresf4): Pass comparison operator to
11950 rx_split_fp_compare.
11952 2011-01-22 Nick Clifton <nickc@redhat.com>
11954 * config/rx/rx.md (UNSPEC_CONST): New.
11955 (deallocate_and_return): Wrap the amount popped off the stack in
11956 an UNSPEC_CONST in order to stop it being rejected by
11957 -mmax-constant-size.
11958 (pop_and_return): Add a "(return)" rtx.
11959 (call): Drop the immediate operand.
11960 (call_internal): Likewise.
11961 (call_value): Likewise.
11962 (call_value_internal): Likewise.
11963 (sibcall_internal): Likewise.
11964 (sibcall_value_internal): Likewise.
11965 (sibcall): Likewise. Generate an explicit call using
11967 (sibcall_value): Likewise.
11968 (mov<>): FAIL if a constant operand is not legitimate.
11969 (addsi3_unpsec): New pattern.
11971 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
11972 (ok_for_max_constant): New function.
11973 (gen_safe_add): New function.
11974 (rx_expand_prologue): Use gen_safe_add.
11975 (rx_expand_epilogue): Likewise.
11976 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
11979 2011-01-21 Jeff Law <law@redhat.com>
11981 PR tree-optimization/47053
11982 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
11983 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
11984 statements are deleted.
11985 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
11986 is nonempty, then purge dead edges and cleanup the CFG.
11988 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11991 Temporarily revert:
11992 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
11994 * tree-dfa.c (create_var_ann): Mark variable as used.
11996 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11998 PR middle-end/45566
11999 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12000 notes from other section in hot/cold partitioning even if
12001 last_action is -3. Increment call_site_base.
12003 PR rtl-optimization/47366
12004 * fwprop.c (forward_propagate_into): Return bool. If
12005 any changes are made, -fnon-call-exceptions is used and
12006 REG_EH_REGION note is present, call purge_dead_edges
12007 and return true if it purged anything.
12008 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12009 any EH edges were purged.
12011 2011-01-21 Jeff Law <law@redhat.com>
12013 PR rtl-optimization/41619
12014 * caller-save.c (setup_save_areas): Break out code to determine
12015 which hard regs are live across calls by examining the reload chains
12016 so that it is always used.
12017 Eliminate code which checked REG_N_CALLS_CROSSED.
12019 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12021 PR tree-optimization/47355
12022 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12023 NOP has non-debug uses beyond PHIs in new_bb.
12025 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12028 * cfgexpand.c (account_used_vars_for_block): Only account vars
12029 that are annotated as used.
12030 (estimated_stack_frame_size): Don't set TREE_USED.
12031 * tree-dfa.c (create_var_ann): Mark variable as used.
12033 2011-01-21 Richard Guenther <rguenther@suse.de>
12035 PR middle-end/47395
12036 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12038 2011-01-21 Richard Guenther <rguenther@suse.de>
12040 PR tree-optimization/47365
12041 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12042 (vn_reference_lookup_pieces): Adjust.
12043 (vn_reference_lookup): Likewise.
12044 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12045 (vn_reference_lookup_3): Only look through kills if in
12046 VN_WALKREWRITE mode.
12047 (vn_reference_lookup_pieces): Adjust.
12048 (vn_reference_lookup): Likewise.
12049 (visit_reference_op_load): Likewise.
12050 (visit_reference_op_store): Likewise.
12051 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12052 (compute_avail): Likewise.
12053 (eliminate): Likewise.
12055 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12057 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12058 DECL_IGNORED_P non-reg vars if they are used.
12060 PR tree-optimization/47391
12061 * varpool.c (const_value_known_p): Return false if
12064 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12067 * config/i386/i386.c (ix86_local_alignment): Handle
12068 case for va_list_type_node is nil.
12069 (ix86_canonical_va_list_type): Likewise.
12071 2011-01-21 Alan Modra <amodra@gmail.com>
12073 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12074 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12076 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12078 * config/arm/arm.md (define_attr type): Rename f_load
12079 and f_store to f_fpa_load and f_fpa_store. Update.
12080 (write_conflict): Deal with rename fallout.
12081 (*push_fp_multi): Likewise.
12082 * config/arm/fpa.md (f_load): Use f_fpa_load.
12083 (f_store): Use f_fpa_store.
12084 (*movsf_fpa): Likewise.
12085 (*movdf_fpa): Likewise.
12086 (*movxf_fpa): Likewise.
12087 (*thumb2_movsf_fpa): Likewise.
12088 (*thumb2_movdf_fpa): Likewise.
12089 (*thumb2_movxf_fpa): Likewise.
12090 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12091 f_loadd and f_stored.
12092 (*thumb2_movdi_vfp): Likewise.
12093 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12094 (*thumb2_movsi_vfp): Likewise.
12095 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12096 Use f_loads instead of f_load.
12097 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12099 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12101 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12102 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12103 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12104 (xtensa_mode_dependent_address_p): New function.
12105 (constantpool_address_p): Make static. Change return type to bool.
12106 Change argument type to const_rtx. Use CONST_INT_P predicate.
12108 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12111 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12113 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12116 * cfgexpand.c (expand_debug_expr): Instead of generating
12117 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12120 2011-01-20 Richard Guenther <rguenther@suse.de>
12122 PR middle-end/47370
12123 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12124 the pointer operand of MEM_REFs.
12126 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12128 PR tree-optimization/46130
12129 * ipa-split.c (consider_split): If return_bb contains non-virtual
12130 PHIs other than for retval or if split_function would not adjust it,
12133 2011-01-20 Richard Guenther <rguenther@suse.de>
12135 PR tree-optimization/47167
12136 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12137 Revert previous change, only avoid enumeral type changes.
12139 2011-01-19 Mike Stump <mikestump@comcast.net>
12141 * doc/tm.texi.in (BRANCH_COST): Englishify.
12142 * doc/tm.texi (BRANCH_COST): Likewise.
12144 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12147 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12148 (gen_scheduled_generic_parms_dies): New functions.
12149 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12150 generation for the end of CU compilation.
12151 (dwarf2out_finish): Generate template parameters DIEs here.
12153 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12156 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12157 debug bind stmt on merge edges.
12159 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12163 * function.c (instantiate_expr): Instantiate incoming rtl of
12164 implicit arguments, and recurse on VALUE_EXPRs.
12165 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12166 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12168 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12170 * c-parser.c (c_parser_for_statement): Initialize
12171 collection_expression.
12173 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12175 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12177 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12179 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12180 (LINK_SHLIB_SPEC): Don't use %(link_path).
12181 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12183 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12185 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12186 (NO_SHARED_LIB_SUPPORT): Remove.
12187 (LINK_SHLIB_SPEC): Remove one conditional definition.
12189 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12191 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12193 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12194 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12195 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12196 %{call_shared} and conditionals on these options not being passed.
12197 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12200 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12202 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12205 * ipa-split.c: Spelling fixes.
12207 2011-01-19 Richard Henderson <rth@redhat.com>
12209 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12210 (*mulsi3): Likewise.
12212 * longlong.h [__mn10300__] (count_leading_zeros): New.
12213 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12214 [__mn10300__] (add_ssaaaa, subddmmss): New.
12215 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12216 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12218 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12220 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12222 2011-01-19 Richard Henderson <rth@redhat.com>
12224 * config/mn10300/mn10300.md (addsi3_flags): New.
12225 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12226 (subsi3_flags, subc_internal, subdi3): New.
12227 (subdi3_internal, *subdi3_degenerate): New.
12228 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12230 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12231 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12232 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12233 * config/mn10300/mn10300-protos.h: Update.
12234 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12235 (return_ret): Likewise. Rename from return_internal_regs.
12236 (return_internal): Remove.
12238 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12239 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12240 (mn10300_legitimate_constant_p): Likewise.
12241 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12242 (mn10300_frame_size): New.
12243 (mn10300_expand_prologue): Use it.
12244 (mn10300_expand_epilogue): Likewise.
12245 (mn10300_initial_offset): Likewise.
12246 * config/mn10300/mn10300-protos.h: Update.
12247 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12248 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12249 (prologue, epilogue, return_internal): Tidy output code.
12250 (mn10300_store_multiple_operation, return): Likewise.
12251 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12252 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12253 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12254 (load_pic, am33_load_pic): New.
12255 (mn10300_load_pic0, mn10300_load_pic1): New.
12257 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12258 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12259 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12260 (cc_flags_for_mode, cc_flags_for_code): New.
12261 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12262 overflow flag is not valid. Validate that the flags we need
12263 for the comparison are valid.
12264 (mn10300_output_cmp): Remove.
12265 (mn10300_output_add): New.
12266 (mn10300_select_cc_mode): Use cc_flags_for_code.
12267 (mn10300_split_cbranch): New.
12268 (mn10300_match_ccmode): New.
12269 (mn10300_split_and_operand_count): New.
12270 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12272 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12273 (addsi3): ... here. Use mn10300_output_add.
12274 (*addsi3_flags): New.
12275 (*am33_subsi3, *mn10300_subsi3): Merge...
12276 (subsi3): ... here. Use attribute isa.
12277 (*subsi3_flags): New.
12278 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12280 (*am33_andsi3, *mn10300_andsi3): Merge...
12281 (andsi3): ... here.
12282 (*andsi3_flags): New.
12283 (andsi3 splitters): New.
12284 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12285 (iorsi3): ... here.
12286 (*iorsi3_flags): New.
12287 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12288 (xorsi3): ... here.
12289 (*xorsi3_flags): New.
12290 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12291 (one_cmplsi2): ... here.
12292 (*one_cmplsi2_flags): New.
12293 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12294 instead of "dax" in constraints. Use mn10300_split_cbranch.
12295 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12296 use matching constraints to eliminate a self-comparison.
12297 (*integer_conditional_branch): Rename from integer_conditional_branch.
12298 Use int_mode_flags to match CC_REG.
12299 (*cbranchsi4_btst, *btstsi): New.
12300 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12301 mn10300_split_cbranch.
12302 (*am33_cmpsf): Rename from am33_cmpsf.
12303 (*float_conditional_branch): Rename from float_conditional_branch.
12304 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12305 (zero_extendqisi2): ... here.
12306 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12307 (zero_extendhisi2): ... here.
12308 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12309 (extendqisi2): ... here.
12310 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12311 (extendhisi2): ... here.
12312 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12313 (ashlsi3): ... here.
12314 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12315 (lshrsi3): ... here.
12316 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12317 (ashrsi3): ... here.
12318 (consecutive add peephole): Remove.
12319 * config/mn10300/predicates.md (label_ref_operand): New.
12320 (int_mode_flags): New.
12321 (CCZN_comparison_operator): New.
12323 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12324 (throughput_42_latency_43): New reservation.
12325 (mulsidi3, umulsidi3): New expanders.
12326 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12327 the MDR register to allocation; separately allocate the low and
12328 high parts of the DImode result.
12329 (umulsidi3_internal): Similarly.
12330 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12331 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12332 (udivsi3, umodsi3): Remove.
12333 (udivmodsi4, divmodsi4): New expanders.
12334 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12335 (*divmodsi4): Simiarly.
12336 (ext_internal): New.
12338 * config/mn10300/constraints.md ("z"): New constraint.
12339 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12340 (FIXED_REGISTERS): Don't fix MDR.
12341 (CALL_USED_REGSITERS): Reformat nicely.
12342 (REG_ALLOC_ORDER): Add MDR.
12343 (enum regclass): Add MDR_REGS.
12344 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12345 (IRA_COVER_CLASSES): Add MDR_REGS.
12346 (REGNO_REG_CLASS): Handle MDR_REG.
12347 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12348 (mn10300_register_move_cost): Likewise.
12349 * config/mn10300/mn10300.md (MDR_REG): New.
12350 (*movsi_internal): Handle moves to/from MDR_REGS.
12352 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12354 (mn10300_secondary_reload): Tidy combination reload classes.
12355 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12356 addresses for AM33. Allow symbolic offsets for reg+imm.
12357 (mn10300_regno_in_class_p): New.
12358 (mn10300_legitimize_reload_address): New.
12359 * config/mn10300/mn10300.h (enum reg_class): Remove
12360 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12361 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12362 SP_OR_GENERAL_REGS.
12363 (REG_CLASS_NAMES): Update to match.
12364 (REG_CLASS_CONTENTS): Likewise.
12365 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12366 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12367 (REGNO_IN_RANGE_P): Remove.
12368 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12369 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12370 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12371 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12372 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12373 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12374 (REGNO_GENERAL_P): New.
12375 (HAVE_POST_MODIFY_DISP): New.
12376 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12377 (LEGITIMIZE_RELOAD_ADDRESS): New.
12378 * config/mn10300/mn10300-protos.h: Update.
12380 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12381 DATA_REGS for AM33 stack-pointer destination.
12382 (mn10300_preferred_output_reload_class): Likewise.
12383 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12384 into a form appropriate for ...
12385 (TARGET_SECONDARY_RELOAD): New.
12386 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12387 * config/mn10300/mn10300-protos.h: Update.
12388 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12389 reload_insi; use the "A" constraint for the scratch; handle AM33
12390 moves of sp to non-address registers.
12392 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12393 (*movqi_internal): ... here.
12394 (*am33_movhi, *mn10300_movhi): Merge into...
12395 (*movhi_internal): ... here.
12396 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12397 as the source/destination of moves from/to SP.
12398 (movsf): Only allow for AM33-2.
12399 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12400 any integer constant constraint. Only allow for AM33-2. Tidy
12401 all of the alternative outputs.
12402 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12403 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12405 (udivsi3, umodsi3): New patterns for MN103 only.
12407 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12409 * doc/tm.texi.in: Spell out that a lack of register class unions
12411 * doc/tm.texi: Regenerate.
12413 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12415 PR rtl-optimization/47337
12416 * dce.c (check_argument_store): New function.
12417 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12419 PR tree-optimization/47290
12420 * tree-eh.c (infinite_empty_loop_p): New function.
12421 (cleanup_empty_eh): Use it.
12423 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12426 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12427 (a64_expand_widen_sum): Ditto.
12428 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12429 (vec_extract_evenodd_help): Ditto.
12430 (vec_extract_evenv4hi): Ditto.
12431 (vec_extract_oddv4hi): Ditto.
12432 (vec_extract_evenv2si): Ditto.
12433 (vec_extract_oddv2si): Ditto.
12434 (vec_extract_evenv2sf): Ditto.
12435 (vec_extract_oddv2sf): Ditto.
12436 (vec_pack_trunc_v4hi: Ditto.
12437 (vec_pack_trunc_v2si): Ditto.
12438 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12439 (vec_interleave_highv8qi): Ditto.
12441 (vec_extract_oddv8qi): Ditto.
12442 (vec_interleave_lowv4hi): Ditto.
12443 (vec_interleave_highv4hi): Ditto.
12444 (vec_interleave_lowv2si): Ditto.
12445 (vec_interleave_highv2si): Ditto.
12447 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12449 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12450 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12451 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12452 (pa_c_mode_for_suffix): New.
12453 (TARGET_EXPAND_BUILTIN): Define.
12454 (TARGET_C_MODE_FOR_SUFFIX): Define.
12455 (pa_builtins): Define.
12456 (pa_init_builtins): Register __float128 type and init new support
12458 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12459 * config/pa/quadlib.c (_U_Qfcopysign): New.
12461 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12463 PR middle-end/46894
12464 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12465 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12468 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12470 PR tree-optimization/47179
12471 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12472 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12474 2011-01-18 Richard Guenther <rguenther@suse.de>
12476 PR rtl-optimization/47216
12477 * emit-rtl.c: Include tree-flow.h.
12478 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12479 of replicating it with different semantics.
12480 * Makefile.in (emit-rtl.o): Adjust.
12482 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12484 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12485 (cortex_a9_dp): Handle neon types correctly.
12487 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12489 PR rtl-optimization/47299
12490 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12491 subtarget. Use normal multiplication if both operands are constants.
12492 * expmed.c (expand_widening_mult): Don't try to optimize constant
12493 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12496 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12498 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12499 spacing after 'e.g.', typos, comma, hyphenation.
12501 2011-01-17 Richard Henderson <rth@redhat.com>
12503 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12504 (rx_restricted_mem_operand): New.
12505 (rx_shift_operand): Use register_operand.
12506 (rx_source_operand, rx_compare_operand): Likewise.
12507 * config/rx/rx.md (addsi3_flags): New expander.
12508 (adddi3): Rewrite as expander.
12509 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12510 (subsi3_flags): New expander.
12511 (subdi3): Rewrite as expander.
12512 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12514 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12515 (rx_init_builtins): Remove sat builtin.
12516 (rx_expand_builtin): Likewise.
12517 * config/rx/rx.md (ssaddsi3): New.
12518 (*sat): Rename from sat. Represent the CC_REG input.
12520 * config/rx/predicates.md (rshift_operator): New.
12521 * config/rx/rx.c (rx_expand_insv): Remove.
12522 * config/rx/rx-protos.h: Update.
12523 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12524 operand to the canonical position.
12525 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12526 (*bitclr, *bitclr_in_memory): Similarly.
12527 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12528 (insv): Retain the zero_extract in the expansion.
12530 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12531 (bswaphi2, bitinvert, revw): Likewise.
12533 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12534 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12535 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12536 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12537 (bitset, bitset_in_memory): Likewise.
12538 (bitinvert, bitinvert_in_memory): Likewise.
12539 (bitclr, bitclr_in_memory): Likewise.
12540 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12541 (rx_strend, rx_cmpstrn): Likewise.
12542 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12543 (bitop peep2 patterns): Remove.
12545 * config/rx/rx.c (rx_match_ccmode): New.
12546 * config/rx/rx-protos.h: Update.
12547 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12548 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12549 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12550 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12551 (fix_truncsfsi2, floatsisf2): Likewise.
12552 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12553 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12554 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12555 (*subsi3_flags, *xorsi3_flags): New.
12557 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12559 * config/rx/rx.c (rx_print_operand): Remove workaround for
12560 unsplit comparison operations.
12562 * config/rx/rx.md (movsicc): Split after reload.
12563 (*movsicc): Merge *movsieq and *movsine via match_operator.
12564 (*stcc): New pattern.
12566 * config/rx/rx.c (rx_float_compare_mode): Remove.
12567 * config/rx/rx.h (rx_float_compare_mode): Remove.
12568 * config/rx/rx.md (cstoresi4): Split after reload.
12569 (*sccc): New pattern.
12571 * config/rx/predicates.md (label_ref_operand): New.
12572 (rx_z_comparison_operator): New.
12573 (rx_zs_comparison_operator): New.
12574 (rx_fp_comparison_operator): New.
12575 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12576 Validate that the flags are set properly for the comparison.
12577 (rx_gen_cond_branch_template): Remove.
12578 (rx_cc_modes_compatible): Remove.
12579 (mode_from_flags): New.
12580 (flags_from_code): Rename from flags_needed_for_conditional.
12581 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12582 (rx_select_cc_mode): Likewise.
12583 (rx_split_fp_compare): New.
12584 (rx_split_cbranch): New.
12585 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12586 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12587 (*cbranchsf4): Similarly.
12588 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12589 match_operator and rx_split_cbranch.
12590 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12591 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12592 (*cmpsi): Rename from cmpsi.
12593 (*tstsi): Rename from tstsi.
12594 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12595 (*conditional_branch): Rename from conditional_branch.
12596 (*reveresed_conditional_branch): Remove.
12597 (b<code>): Remove expander.
12598 * config/rx/rx-protos.h: Update.
12600 * config/rx/rx.c (rx_compare_redundant): Remove.
12601 * config/rx/rx.md (cmpsi): Don't use it.
12602 * config/rx/rx-protos.h: Update.
12604 * config/rx/rx-modes.def (CC_F): New mode.
12605 * config/rx/rx.c (rx_select_cc_mode): New.
12606 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12607 * config/rx/rx-protos.h: Update.
12609 2011-01-17 Richard Henderson <rth@redhat.com>
12611 * except.c (dump_eh_tree): Fix stray ; after for statement.
12613 2011-01-17 Richard Guenther <rguenther@suse.de>
12615 PR tree-optimization/47313
12616 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12617 handling before copying the body. Properly deal with
12618 by-reference result in SSA form.
12620 2011-01-17 Ian Lance Taylor <iant@google.com>
12623 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12624 (struct_value_alias_set): Don't define.
12625 (sparc_option_override): Don't set sparc_sr_alias_set and
12626 struct_value_alias_set.
12627 (save_or_restore_regs): Use gen_frame_mem rather than calling
12629 (sparc_struct_value_rtx): Likewise.
12631 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12634 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12635 (_mm_maskstore_pd): Likewise.
12636 (_mm_maskload_ps): Likewise.
12637 (_mm_maskstore_ps): Likewise.
12638 (_mm256_maskload_pd): Change mask to __m256i.
12639 (_mm256_maskstore_pd): Likewise.
12640 (_mm256_maskload_ps): Likewise.
12641 (_mm256_maskstore_ps): Likewise.
12643 * config/i386/i386-builtin-types.def: Updated.
12644 (ix86_expand_special_args_builtin): Likewise.
12646 * config/i386/i386.c (bdesc_special_args): Update
12647 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12648 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12649 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12650 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12652 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12653 Use <avxpermvecmode> on mask register.
12654 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12656 2011-01-17 Olivier Hainque <hainque@adacore.com>
12657 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12658 Eric Botcazou <ebotcazou@adacore.com>
12661 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12662 if <= USHRT_MAX in 32-bit mode.
12664 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12666 * doc/install.texi (Configuration, Specific): Wrap long
12667 lines in examples. Allow line wrapping in long options
12668 and URLs where beneficial for PDF output.
12670 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12672 * config/mips/mips.c (mips_classify_symbol): Don't return
12673 SYMBOL_PC_RELATIVE for nonlocal labels.
12675 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12677 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12679 2011-01-15 Jan Hubicka <jh@suse.cz>
12681 PR tree-optimization/47276
12682 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12683 declarations as needed.
12685 2011-01-15 Martin Jambor <mjambor@suse.cz>
12687 * common.opt (fdevirtualize): New flag.
12688 * doc/invoke.texi (Option Summary): Document it.
12689 * opts.c (default_options_table): Add devirtualize flag.
12690 * ipa-prop.c (detect_type_change): Return immediately if
12691 devirtualize flag is not set.
12692 (detect_type_change_ssa): Likewise.
12693 (compute_known_type_jump_func): Likewise.
12694 (ipa_analyze_virtual_call_uses): Likewise.
12696 2011-01-14 Martin Jambor <mjambor@suse.cz>
12698 PR tree-optimization/45934
12699 PR tree-optimization/46302
12700 * ipa-prop.c (type_change_info): New type.
12701 (stmt_may_be_vtbl_ptr_store): New function.
12702 (check_stmt_for_type_change): Likewise.
12703 (detect_type_change): Likewise.
12704 (detect_type_change_ssa): Likewise.
12705 (compute_complex_assign_jump_func): Check for dynamic type change.
12706 (compute_complex_ancestor_jump_func): Likewise.
12707 (compute_known_type_jump_func): Likewise.
12708 (compute_scalar_jump_functions): Likewise.
12709 (ipa_analyze_virtual_call_uses): Likewise.
12710 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12712 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12714 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12715 * config/i386/i386.opt (msse5): New Alias.
12717 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12719 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12720 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12721 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12722 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12724 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12726 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12728 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12729 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12730 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12731 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12733 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12735 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12737 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12739 2011-01-14 Mike Stump <mikestump@comcast.net>
12741 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12742 * config/fr30/fr30.md: Likweise
12743 (movsi_push): Likewise.
12744 (movsi_pop): Likewise.
12745 (enter_func): Likewise.
12746 * config/moxie/moxie.md (movsi_push): Likewise.
12747 (movsi_pop): Likewise.
12749 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12751 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12752 %{no_archive} %{exact_version}.
12753 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12754 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12755 %{no_archive} %{exact_version}.
12756 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12757 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12758 * config/mips/vxworks.h: Likewise.
12760 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12762 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12764 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12766 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12767 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12769 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12771 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12774 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12776 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12778 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12779 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12781 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12782 Don't handle -shlib.
12784 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12786 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12787 (CC1_SPEC): Don't handle -profile.
12789 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12791 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12792 * config/mips/mips.h (CC1_SPEC): Likewise.
12794 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12796 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12797 * config/mips/mips.h (CC1_SPEC): Likewise.
12799 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12801 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12802 * config/m32r/linux.h (LINK_SPEC): Likewise.
12803 * config/mips/linux.h (LINK_SPEC): Likewise.
12804 * config/mips/linux64.h (LINK_SPEC): Likewise.
12805 * config/sparc/linux.h (LINK_SPEC): Likewise.
12806 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12807 LINK_SPEC): Likewise.
12808 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12810 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12812 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12814 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12816 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12818 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12819 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12821 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12823 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12825 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12827 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12828 supports -Bstatic/-Bdynamic.
12829 * configure: Regenerate.
12831 2011-01-14 Jan Hubicka <jh@suse.cz>
12832 Jack Howarth <howarth@bromo.med.uc.edu>
12835 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12836 when checking debug_info_level. Test write_symbols instead of
12837 debug_hooks->var_location when setting flag_var_tracking_uninit.
12839 2011-01-14 Richard Guenther <rguenther@suse.de>
12841 PR tree-optimization/47179
12842 * target.def (ref_may_alias_errno): New target hook.
12843 * targhooks.h (default_ref_may_alias_errno): Declare.
12844 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
12845 (default_ref_may_alias_errno): New function.
12846 * target.h (struct ao_ref_s): Declare.
12847 * tree-ssa-alias.c: Include target.h.
12848 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
12849 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
12850 (targhooks.o): Likewise.
12851 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
12852 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
12854 2011-01-14 Richard Guenther <rguenther@suse.de>
12856 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
12858 2011-01-14 Richard Guenther <rguenther@suse.de>
12860 PR tree-optimization/47280
12861 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
12862 return CFG changes.
12863 (tree_ssa_forward_propagate_single_use_vars): Deal with
12864 CFG changes from associate_plusminus.
12866 2011-01-14 Richard Guenther <rguenther@suse.de>
12868 PR middle-end/47281
12870 2011-01-11 Richard Guenther <rguenther@suse.de>
12872 PR tree-optimization/46076
12873 * tree-ssa.c (useless_type_conversion_p): Conversions from
12874 unprototyped to empty argument list function types are useless.
12876 2011-01-14 Richard Guenther <rguenther@suse.de>
12878 PR tree-optimization/47286
12879 * tree-ssa-structalias.c (new_var_info): Register variables are global.
12881 2011-01-14 Martin Jambor <mjambor@suse.cz>
12883 PR middle-end/46823
12884 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
12886 2011-01-13 Anatoly Sokolov <aesok@post.ru>
12888 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
12889 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12890 * config/xtensa/xtensa.c (xtensa_libcall_value,
12891 xtensa_function_value_regno_p): New functions.
12892 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12894 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
12897 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
12899 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
12900 New function prototype.
12901 * config/i386/winnt.c (i386_pe_assemble_visibility):
12902 Warn only if attribute was specified by user.
12904 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12907 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
12909 (floatunsdidf2_fcfidu): Ditto.
12911 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12913 * config/s390/s390.c (print_operand_address): Replace 'error' with
12914 'output_operand_lossage'.
12915 (print_operand): Likewise.
12917 2011-01-13 Jeff Law <law@redhat.com>
12919 PR rtl-optimization/39077
12920 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
12921 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
12922 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
12923 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
12924 * gcse.c (prune_insertions_deletions): New function.
12925 (compute_pre_data): Use it.
12927 2011-01-13 Dodji Seketeli <dodji@redhat.com>
12930 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
12932 (prune_unused_types_mark): Use it.
12934 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
12936 PR rtl-optimization/45352
12937 * sel-sched.c: Update copyright years.
12938 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
12939 in the advancing loop when we have issued issue_rate insns.
12941 2011-01-12 Richard Henderson <rth@redhat.com>
12943 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
12944 (TARGET_MD_ASM_CLOBBERS): New.
12946 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
12947 (TARGET_DELEGITIMIZE_ADDRESS): New.
12949 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
12950 (clzsi2, *bsch): New patterns.
12952 * config/mn10300/mn10300.md (INT): New mode iterator.
12953 (*mov<INT>_clr): New pattern, and peep2 to generate it.
12955 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
12956 flag_split_wide_types.
12958 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
12959 (mn10300_trampoline_init): Rewrite without a template, an immediate
12960 load and a direct branch.
12961 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
12963 2011-01-12 Anatoly Sokolov <aesok@post.ru>
12965 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12966 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
12967 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
12968 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12970 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
12973 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
12976 2011-01-12 Jan Hubicka <jh@suse.cz>
12979 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
12980 (PLUGIN_COND_CLOSE): New macro.
12981 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
12983 2011-01-12 Richard Guenther <rguenther@suse.de>
12986 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
12987 register variables in a MEM_REF.
12989 2011-01-12 Joseph Myers <joseph@codesourcery.com>
12991 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
12992 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
12993 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
12994 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12995 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12996 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
12997 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
12998 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
12999 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13000 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13001 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13002 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13003 * config/gnu-user.h: New. Copied from linux.h.
13004 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13005 GNU_USER_TARGET_STARTFILE_SPEC.
13006 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13007 GNU_USER_TARGET_ENDFILE_SPEC.
13008 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13009 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13010 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13011 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13012 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13013 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13014 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13015 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13016 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13017 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13018 * config/arm/linux-eabi.h (CC1_SPEC): Use
13019 GNU_USER_TARGET_CC1_SPEC.
13020 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13021 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13022 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13023 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13024 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13025 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13026 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13027 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13029 2011-01-12 Richard Guenther <rguenther@suse.de>
13032 * doc/invoke.texi (ffast-math): Document it is turned on
13035 2011-01-12 Jan Hubicka <jh@suse.cz>
13037 PR tree-optimization/47233
13038 * opts.c (common_handle_option): Disable ipa-reference with profile
13041 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13043 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13046 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13048 * c-parser.c (c_lex_one_token): Updated and reindented some
13049 comments. No changes in code.
13051 2011-01-11 Ian Lance Taylor <iant@google.com>
13053 * godump.c (go_output_var): Don't output the variable if there is
13054 already a type with the same name.
13056 2011-01-11 Ian Lance Taylor <iant@google.com>
13058 * godump.c (go_format_type): Don't generate float80.
13060 2011-01-11 Richard Henderson <rth@redhat.com>
13062 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13063 declaration. Rewrite for both speed and size.
13064 (mn10300_address_cost_1): Remove.
13065 (mn10300_register_move_cost): New.
13066 (mn10300_memory_move_cost): New.
13067 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13068 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13069 extensions, shifts, BSWAP, CLZ.
13070 (mn10300_wide_const_load_uses_clr): Remove.
13071 (TARGET_REGISTER_MOVE_COST): New.
13072 (TARGET_MEMORY_MOVE_COST): New.
13073 * config/mn10300/mn10300-protos.h: Update.
13074 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13076 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13077 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13078 * config/mn10300/mn10300-protos.h: Update.
13079 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13080 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13081 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13082 (*test_int_bitfield, *test_byte_bitfield): Remove.
13083 (*bit_test, *subreg_bit_test): Remove.
13084 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13086 * config/mn10300/constraints.md ("c"): Rename from "A".
13087 ("A", "D"): New constraint letters.
13088 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13089 (fmssf4, fnmasf4, fnmssf4): Likewise.
13091 * config/mn10300/mn10300.md (isa): New attribute.
13092 (enabled): New attribute.
13094 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13095 (abssf2, negsf2): Define only for hardware fp.
13096 (sqrtsf2): Reformat.
13097 (addsf3, subsf3, mulsf3): Merge expander and insn.
13099 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13100 (DEBUGGER_AUTO_OFFSET): Remove.
13101 (DEBUGGER_ARG_OFFSET): Remove.
13103 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13104 Emit register stores with the same offsets as the hardware.
13105 (mn10300_store_multiple_operation): Don't check that the register
13106 save offsets are monotonic.
13107 * config/mn10300/mn10300-protos.h: Update.
13109 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13111 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13112 in terms of the value on the stack, not the MDR register.
13114 2011-01-11 Jan Hubicka <jh@suse.cz>
13118 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13119 (symbol_alias_set_destroy, symbol_alias_set_contains,
13120 propagate_aliases_backward): Declare.
13121 * lto-streamer-out.c (struct sets): New sturcture.
13122 (trivally_defined_alias): New function.
13123 (output_alias_pair_p): Rewrite.
13124 (output_unreferenced_globals): Fix output of alias pairs.
13125 (produce_symtab): Likewise.
13126 * ipa.c (function_and_variable_visibility): Set weak alias destination
13128 * varasm.c (symbol_alias_set_t): Remove.
13129 (symbol_alias_set_destroy): Export.
13130 (propagate_aliases_forward, propagate_aliases_backward): New functions
13132 (compute_visible_aliases): ... this one; remove.
13133 (trivially_visible_alias): New
13134 (trivially_defined_alias): New.
13135 (remove_unreachable_alias_pairs): Rewrite.
13136 (finish_aliases_1): Reorganize code checking if alias is defined.
13137 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13140 2011-01-11 Richard Guenther <rguenther@suse.de>
13142 PR tree-optimization/46076
13143 * tree-ssa.c (useless_type_conversion_p): Conversions from
13144 unprototyped to empty argument list function types are useless.
13146 2011-01-11 Richard Guenther <rguenther@suse.de>
13148 PR middle-end/45235
13149 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13150 volatile MEMs as MEM_READONLY_P.
13152 2011-01-11 Richard Guenther <rguenther@suse.de>
13154 PR tree-optimization/47239
13155 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13157 2011-01-11 Jeff Law <law@redhat.com>
13159 PR tree-optimization/47086
13160 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13161 IVs from statements that might throw.
13163 2011-01-10 Jan Hubicka <jh@suse.cz>
13166 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13168 2011-01-10 Jan Hubicka <jh@suse.cz>
13171 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13172 when correcting profile.
13174 2011-01-10 Jan Hubicka <jh@suse.cz>
13177 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13178 DECL_FINI_PRIORITY.
13179 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13180 Restore DECL_FINI_PRIORITY.
13182 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13184 * doc/gimple.texi: Fix quoting of multi-word return values in
13185 @deftypefn statements. Ensure presence of return value. Wrap
13186 overlong @deftypefn lines.
13187 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13188 descriptions of removed functions.
13189 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13190 of multi-word return value in @deftypefn statement.
13192 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13194 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13195 (Conditional Expressions, Logical Operators)
13196 (Statement and operand traversals): Do not indent smallexample
13197 code. Fix duplicate function argument in example.
13199 2011-01-10 Jeff Law <law@redhat.com>
13201 PR tree-optimization/47141
13202 * ipa-split.c (split_function): Handle case where we are
13203 returning a value and the return block has a virtual operand phi.
13205 2011-01-10 Jan Hubicka <jh@suse.cz>
13207 PR tree-optimization/47234
13208 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13209 (pass_feedback_split_functions): Declare.
13210 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13212 * ipa-split.c (gate_split_functions): Update comments; disable
13213 split-functions for profile_arc_flag and branch_probabilities.
13214 (gate_feedback_split_functions): New function.
13215 (execute_feedback_split_functions): New function.
13216 (pass_feedback_split_functions): New global var.
13218 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13221 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13222 calling gimple_call_set_cannot_inline.
13224 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13226 * config/darwin-sections.def: Remove unused section.
13228 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13231 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13233 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13236 * c-parser.c (c_parser_declaration_or_fndef): Improved
13239 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13241 * config/i386/winnt.c (i386_pe_start_function): Make sure
13242 to switch back to function's section.
13244 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13248 * plugin.c: Move include of dlfcn.h from here...
13249 * system.h: ... to here.
13251 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13253 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13255 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13256 two extra empty pages in PDF output.
13258 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13261 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13262 for error recovery purposes behave as if it was not specified so
13263 that the default type is usd.
13265 2011-01-07 Jan Hubicka <jh@suse.cz>
13267 PR tree-optmization/46469
13268 * ipa.c (function_and_variable_visibility): Clear needed flags on
13269 nodes with external decls; handle weakrefs merging correctly.
13271 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13273 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13276 2011-01-07 Jan Hubicka <jh@suse.cz>
13278 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13279 and no longer claim that gold is required for linker plugin.
13280 * configure: Regenerate.
13281 * gcc.c (PLUGIN_COND): New macro.
13282 (LINK_COMMAND_SPEC): Use it.
13283 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13284 * config.in (HAVE_LTO_PLUGIN): New.
13285 * configure.ac (--with-lto-plugin): New parameter; autodetect
13288 2011-01-07 Jan Hubicka <jh@suse.cz>
13290 PR tree-optimization/46367
13291 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13292 when we can update original.
13293 (cgraph_mark_inline_edge): Sanity check.
13294 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13296 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13298 * config/spu/spu.h (ASM_COMMENT_START): Define.
13300 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13303 * gcc.c (%>S): New.
13304 (SWITCH_KEEP_FOR_GCC): Likewise.
13305 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13306 (do_spec_1): Handle "%>".
13308 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13310 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13313 * config/i386/i386.c (ix86_delegitimize_address): If
13314 simplify_gen_subreg fails, return orig_x.
13317 * value-prof.c (gimple_stringop_fixed_value): Handle
13318 lhs of the call properly.
13320 2011-01-07 Jan Hubicka <jh@suse.cz>
13323 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13325 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13327 * target.def (function_switched_text_sections): New hook.
13328 * doc/tm.texi: Regenerated.
13329 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13330 * final.c (default_function_switched_text_sections): New.
13331 (final_scan_insn): Call function_switched_text_sections when a
13332 mid-function section change occurs.
13333 * output.h (default_function_switched_text_sections): Declare.
13334 * config/darwin-protos.h (darwin_function_switched_text_sections):
13336 * config/darwin.c (darwin_function_switched_text_sections): New.
13337 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13339 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13341 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13342 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13343 the secondary code fragment when outputting for DWARF == 2.
13345 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13347 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13348 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13350 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13351 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13353 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13356 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13357 when it is not empty.
13359 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13362 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13363 (case ${target}): Add btver1.
13364 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13365 -march=native recognize btver1 processors.
13366 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13367 btver1 def_and_undef
13368 * config/i386/i386.c (struct processor_costs btver1_cost): New
13370 (m_BTVER1): New definition.
13371 (m_AMD_MULTIPLE): Includes m_BTVER1.
13372 (initial_ix86_tune_features): Add btver1 tune.
13373 (processor_target_table): Add btver1 entry.
13374 (static const char *const cpu_names): Add btver1 entry.
13375 (software_prefetching_beneficial_p): Add btver1.
13376 (ix86_option_override_internal): Add btver1 instruction sets.
13377 (ix86_issue_rate): Add btver1.
13378 (ix86_adjust_cost): Add btver1.
13379 * config/i386/i386.h (TARGET_BTVER1): New definition.
13380 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13381 (enum processor_type): Add PROCESSOR_BTVER1.
13382 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13384 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13387 * config/i386/i386.c (legitimize_tls_address)
13388 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13389 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13390 (tls_initial_exec_64_sun): New pattern.
13392 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13394 * doc/invoke.texi (Overall Options): Improve wording and markup
13395 of the description of -wrapper.
13397 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13399 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13400 rdynamic, threads): New Driver options.
13402 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13405 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13406 if coming from .tdata.
13407 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13409 2011-01-06 Jan Hubicka <jh@suse.cz>
13412 * collect2.c (main): Do not enable LTOmode when plugin is active.
13414 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13417 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13418 --version output if supported.
13419 * configure: Regenerate.
13421 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13423 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13426 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13429 * c-convert.c (convert): When converting a complex expression
13430 other than COMPLEX_EXPR to a different complex type, ensure
13431 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13432 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13433 when converting COMPLEX_TYPE.
13435 2011-01-06 Ira Rosen <irar@il.ibm.com>
13437 PR tree-optimization/47139
13438 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13439 only the last reduction value is used outside the loop. Update
13442 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13444 * config/rtems.opt: New.
13445 * config.gcc (*-*-rtems*): Use rtems.opt.
13447 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13449 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13450 processors do not support 3DNow instructions.
13452 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13454 * config/spu/spu.c (spu_option_override): Set parameter
13455 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13457 2011-01-05 Jan Hubicka <jh@suse.cz>
13459 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13460 at the command line.
13462 2011-01-05 Martin Jambor <mjambor@suse.cz>
13465 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13466 deltas on streamed outgoing edges.
13467 (output_node_opt_summary): Output info for outgoing edges only when
13468 the node is in new parameter set.
13469 (output_cgraph_opt_summary): New parameter set, passed to the two
13470 aforementioned functions. Update its forward declaration and its
13473 2011-01-05 Tom Tromey <tromey@redhat.com>
13475 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13476 operator to c_finish_omp_atomic.
13477 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13478 (build_unary_op): Update.
13479 (build_modify_expr): Update.
13480 (build_asm_expr): Update.
13482 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13484 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13485 newly inserted insns.
13486 (pad_bb): Likewise.
13487 (spu_emit_branch_hint): Likewise.
13488 (insert_hbrp_for_ilb_runout): Likewise.
13489 (spu_machine_dependent_reorg): Call df_finish_pass after
13490 schedule_insns returns.
13492 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13494 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13496 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13498 PR tree-optimization/47005
13499 * tree-sra.c (struct access): Add 'non_addressable' bit.
13500 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13501 (decide_one_param_reduction): Return 0 if the parameter is passed by
13502 reference and one of the accesses in the group is non_addressable.
13504 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13506 PR tree-optimization/47056
13507 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13508 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13509 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13511 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13513 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13514 initializer. Skip view conversions from aggregate types.
13516 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13519 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13521 2011-01-04 Philipp Thomas <pth@suse.de>
13523 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13526 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13528 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13529 on empty epilogue sequences.
13531 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13533 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13534 non-static): New Driver options.
13536 2011-01-04 Jie Zhang <jie@codesourcery.com>
13539 * gcc.c (default_compilers[]): Set combinable field to 0
13540 for all assembly languages.
13542 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13544 * config/mips/loongson3a.md: New file.
13545 * config/mips/mips.md: Include loongson3a.md.
13546 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13549 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13551 PR middle-end/47017
13552 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13553 instead of convert_memory_address_addr_space on the base expression.
13555 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13557 * config/spu/spu.c (spu_option_override): Update error text
13558 for bad -march= / -mtune= values.
13560 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13562 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13563 if branch-hint optimization will be performed.
13565 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13567 PR tree-optimization/47148
13568 * ipa-split.c (split_function): Convert arguments to
13569 DECL_ARG_TYPE if possible.
13571 PR tree-optimization/47155
13572 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13573 when computing uns.
13575 PR rtl-optimization/47157
13576 * combine.c (try_combine): If undobuf.other_insn becomes
13577 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13578 and set *new_direct_jump_p too.
13580 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13582 PR tree-optimization/47021
13583 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13585 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13587 * gcc.c (process_command): Update copyright notice dates.
13588 * gcov.c (print_version): Likewise.
13589 * gcov-dump.c (print_version): Likewise.
13590 * mips-tfile.c (main): Likewise.
13591 * mips-tdump.c (main): Likewise.
13593 2011-01-03 Martin Jambor <mjambor@suse.cz>
13595 PR tree-optimization/46801
13596 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13597 aggregate fields start at byte boundary instead of the bit-field flag.
13599 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13602 * gcc.c (main): Revert revision 168407.
13604 2011-01-03 Martin Jambor <mjambor@suse.cz>
13606 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13608 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13610 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13611 vector optab to expand vector/scalar shift, update gimple to vector.
13613 2011-01-03 Martin Jambor <mjambor@suse.cz>
13615 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13618 2011-01-03 Martin Jambor <mjambor@suse.cz>
13620 PR tree-optimization/46984
13621 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13623 (cgraph_create_indirect_edge): Fixed line length.
13624 (cgraph_indirect_call_info): Declare.
13625 (cgraph_make_edge_direct) Update declaration.
13626 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13627 (cgraph_create_indirect_edge): Use it.
13628 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13630 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13631 the new thunk_delta representation.
13632 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13634 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13635 (ipa_read_indirect_edge_info): Likewise.
13636 * lto-cgraph.c (output_edge_opt_summary): New function.
13637 (output_node_opt_summary): Call it on all outgoing edges.
13638 (input_edge_opt_summary): New function.
13639 (input_node_opt_summary): Call it on all outgoing edges.
13641 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13644 * gcc.c (main): Don't check have_o when settting combine_inputs.
13646 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13648 * regrename.c: Add general comment describing the pass.
13649 (struct du_head): Remove 'length' field.
13650 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13651 (regrename_optimize): Do not sort chains. Rework comments, add others.
13652 Force renaming to the preferred class (if any) in the first pass and do
13653 not consider registers that belong to it in the second pass.
13654 (create_new_chain): Do not set 'length' field.
13655 (scan_rtx_reg): Likewise.
13657 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13659 PR tree-optimization/47140
13660 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13661 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13662 to bit_value_binop.
13664 PR rtl-optimization/47028
13665 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13666 parm_birth_insn instead of at the beginning of first bb.
13668 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13670 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13671 Remove the word "see" before "@pxref".
13672 * doc/rtl.texi: Remove the word "see" before "@pxref".
13674 2011-01-01 Jan Hubicka <jh@suse.cz>
13676 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13679 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13682 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13685 Copyright (C) 2011 Free Software Foundation, Inc.
13687 Copying and distribution of this file, with or without modification,
13688 are permitted in any medium without royalty provided the copyright
13689 notice and this notice are preserved.