1 2011-05-09 Richard Guenther <rguenther@suse.de>
3 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5 (lto_symtab_merge): Likewise. Do not register types here.
6 (lto_symtab_merge_decls_2): Likewise.
7 (lto_symtab_merge_decls_1): Likewise.
8 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
9 * gimple.c (enum gtc_mode): Declare.
10 (gimple_types_compatible_p): Make static.
12 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
15 temporary register to match Pmode.
17 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
19 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
20 and *vec_concatv4si_1_avx.
22 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
24 PR rtl-optimization/48927
25 * ira-conflicts.c (commutative_constraint_p): Use
26 recog_data.alternative_enabled_p to disable alternatives where
27 "enabled" attribute is false.
29 * ira-lives.c (single_reg_class): Ditto.
30 (ira_implicitly_set_insn_hard_regs): Ditto.
32 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
34 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
35 (dataflow_set_preserve_mem_locs): Likewise.
37 2011-05-09 Philipp Thomas <pth@suse.de>
39 * config/mep/mep.c (mep_validate_vliw): Syntax description
40 should not be translated.
42 2011-05-09 Joseph Myers <joseph@codesourcery.com>
44 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
45 * config/mips/mips-tables.opt: New file (generated).
46 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
47 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
48 MIPS_ARCH_OPTION_NATIVE): Define.
49 * config/mips/mips.c (mips_cpu_info_table): Move contents to
51 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
52 mips_parse_cpu): Remove.
53 (mips_cpu_info_from_opt, mips_default_arch): New.
54 (mips_handle_option): Don't assert that global structures are in
55 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
56 (mips_option_override): Use new variables and functions to set
57 state of these options. Use strcmp to check for individual CPU names.
58 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
60 * config/mips/mips.opt (march=): Use ToLower and Enum.
61 (mips): Use ToLower, Enum and Var.
62 (mtune=): Use ToLower and Enum.
63 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
65 2011-05-08 Jan Hubicka <jh@suse.cz>
67 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
68 Arrange type pairs to be UID ordered.
69 (gimple_lookup_type_leader): Make inline.
71 2011-05-09 Nick Clifton <nickc@redhat.com>
74 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
78 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
81 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
83 * combine.c (simplify_comparison): Abstract out parts into...
84 (simplify_compare_const): ... new function.
85 (try_combine): Generalize parallel arithmetic/compare combining
86 to call simplify_compare_const() and CANONICALIZE_COMPARE().
88 2011-05-08 Jan Hubicka <jh@suse.cz>
90 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
91 (cgraph_create_virtual_clone): Call hooks once virtual clone
93 * cgraph.h (cgraph_clone_node): Update prototype.
94 * ipa-cp.c (ipcp_estimate_growth): Use
95 estimate_ipcp_clone_size_and_time.
96 * ipa-inline-transform.c (clone_inlined_nodes): Update.
97 * lto-cgraph.c (input_node): Update.
98 * ipa-inline.c (recursive_inlining): Update.
99 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
100 (evaluate_conditions_for_known_args): Break out from ...
101 (evaluate_conditions_for_edge): ... here.
102 (evaluate_conditions_for_ipcp_clone): New function.
103 (inline_node_duplication_hook): Update clone summary based
105 (estimate_callee_size_and_time): Rename to ...
106 (estimate_node_size_and_time): take NODE instead of EDGE;
107 take POSSIBLE_TRUTHS as argument.
108 (estimate_callee_size_and_time): Update.
109 (estimate_ipcp_clone_size_and_time): New function.
110 (do_estimate_edge_time): Update.
112 2011-05-08 Richard Guenther <rguenther@suse.de>
116 * expmed.c (expand_shift_1): Compute adjusted constant shift
119 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
121 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
123 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
125 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
127 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
129 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
131 2011-05-07 Jan Hubicka <jh@suse.cz>
133 * ipa-inline-transform.c (inline_call): Account when program size
135 * ipa-inline.c (relative_time_benefit): New function.
136 (edge_badness): Reorganize to be power 2 based; fix thinko when
137 computing badness for negative growth; update comments to match
138 reality; better dumps.
140 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
142 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
143 type to bool and adjust comment.
144 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
145 (fold_mathfn_compare): Remove calls to global_bindings_p.
146 (fold_inf_compare): Likewise.
147 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
148 * c-tree.h (global_bindings_p): Adjust prototype.
149 * c-decl.c (global_bindings_p): Return bool and simplify.
151 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
153 PR tree-optimization/48837
154 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
155 when accumulator transformation is performed.
157 2011-05-06 Jan Hubicka <jh@suse.cz>
159 * i386.h (ix86_tune_indices): Add
160 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
161 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
162 * i386.c (initial_ix86_tune_features): Add
163 X86_SOFTARE_PREFETCHING_BENEFICIAL.
164 (software_prefetching_beneficial_p): Remove predicate.
165 (ix86_option_override_internal): Use new macro.
167 2011-05-06 Jan Hubicka <jh@suse.cz>
169 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
171 2011-05-06 Jan Hubicka <jh@suse.cz>
173 * cgraph.c (cgraph_add_thunk): Create real function node instead
174 of alias node; finalize it and mark needed/reachale; arrange visibility
175 to be right and add it into the corresponding same comdat group list.
176 (dump_cgraph_node): Dump thunks.
177 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
178 cgraph_function_with_gimple_body_p,
179 cgraph_first_function_with_gimple_body,
180 cgraph_next_function_with_gimple_body): New functions.
181 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
183 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
184 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
185 * cgraphunit.c (cgraph_finalize_function): Only look into possible
186 devirtualization when optimizing.
187 (verify_cgraph_node): Verify thunks.
188 (cgraph_analyze_function): Analyze thunks.
189 (cgraph_mark_functions_to_output): Output thunks only in combination
190 with function they are assigned to.
191 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
192 alias into normal node.
193 (assemble_thunks): New functoin.
194 (cgraph_expand_function): Use it.
195 * lto-cgraph.c (lto_output_node): Stream thunks.
196 (input_overwrite_node): Stream in thunks.
197 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
198 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
199 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
200 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
201 (inline_analyze_function): Do not care about thunk jump functions.
202 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
203 * ipa-prop.c (ipa_prop_write_jump_functions): Use
204 cgraph_function_with_gimple_body_p.
205 * passes.c (do_per_function_toporder): Use
206 cgraph_function_with_gimple_body_p.
207 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
208 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
209 (function_called_by_processed_nodes_p): Likewise.
211 2011-05-06 Joseph Myers <joseph@codesourcery.com>
213 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
214 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
216 (mabi=): Replace with separate entries for mabi=altivec,
217 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
218 mabi=ieeelongdouble and mabi=ibmlongdouble.
219 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
220 check for -mabi=spe without SPE ABI support here.
221 (rs6000_handle_option): Replace OPT_mabi_ handling with
222 OPT_mabi_altivec and OPT_mabi_spe handling.
224 2011-05-06 Cary Coutant <ccoutant@google.com>
226 * dwarf2out.c (contains_subprogram_definition): New function.
227 (should_move_die_to_comdat): Call it.
229 2011-05-06 Jeff Law <law@redhat.com>
231 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
232 remove_ctrl_stmt_and_useless_edges.
233 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
234 (fixup_template_block, thread_single_edge): Likewise.
235 (mark_threaded_blocks): Use THREAD_TARGET.
237 2011-05-06 Alan Modra <amodra@gmail.com>
240 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
241 const0_rtx as the arg to the dummy __tls_get_addr libcall.
243 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
245 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
246 constraint modifier to "r".
248 2011-05-06 Joseph Myers <joseph@codesourcery.com>
250 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
251 fall through for OPT_mcmodel_.
253 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
255 * config/s390/s390.c (s390_asm_trampoline_template): Comment
257 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
259 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
262 * config/arm/arm.opt (marm): Document it.
263 (mthumb): Reject negative variant.
265 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
268 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
269 Fix typo in "ccvt" variable name.
271 2011-05-06 Tristan Gingold <gingold@adacore.com>
274 * config/vms/vms-ar.c (main): Remove cwd variable.
276 2011-05-06 Jakub Jelinek <jakub@redhat.com>
279 * var-tracking.c (prepare_call_arguments): Move else before #endif.
281 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
283 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
284 * gimplify.c (gimplify_switch_expr): Likewise.
285 * omp-low.c (expand_omp_sections): Likewise.
286 * tree-eh.c (lower_try_finally_switch): Likewise.
287 (lower_eh_dispatch): Likewise.
288 * tree.h (build_case_label): Declare.
289 * tree.c (build_case_label): Define.
291 2011-05-05 Jason Merrill <jason@redhat.com>
294 * tree-inline.c (copy_tree_r): Use copy_statement_list.
295 (copy_statement_list): Don't recurse.
296 * stor-layout.c (copy_self_referential_tree_r): Don't allow
299 2011-05-05 Joseph Myers <joseph@codesourcery.com>
301 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
302 through from -mfpu= handling.
303 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
305 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
307 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
310 2011-05-05 Steve Ellcey <sje@cup.hp.com>
312 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
314 (hppa[12]*-*-hpux11*): Ditto.
315 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
316 * config/ia64/hpux-unix2003.h: New.
317 * config/pa/pa-hpux1131.opt: New.
318 * config/pa/pa-hpux1131.h: New.
319 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
320 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
321 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
323 2011-05-05 Jakub Jelinek <jakub@redhat.com>
326 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
327 instead of mode as 3rd argument to recursive call.
328 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
329 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
331 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
332 don't give up if mode is Pmode and mem_mode is not VOIDmode.
333 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
334 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
336 2011-05-05 Julian Brown <julian@codesourcery.com>
338 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
339 parenthesis in D-register case.
341 2011-05-05 Joseph Myers <joseph@codesourcery.com>
343 * opt-functions.awk (var_type_struct): Handle Enum options.
344 * optc-gen.awk: Don't check range of variables of character type.
345 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
346 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
347 rs6000_sdata_name, rs6000_explicit_options): Remove.
348 (rs6000_option_override_internal): Check for -malign-power here.
349 Use global_options_set instead of rs6000_explicit_options.
350 (rs6000_parse_fpu_option): Remove.
351 (rs6000_handle_option): Access variables via opts and opts_set
352 pointers. Use error_at and warning_at. Add fall-through
353 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
354 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
355 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
356 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
357 here. Don't use rs6000_parse_fpu_option.
358 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
359 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
360 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
362 (mspe): Use Var and Save.
363 (mtraceback=): Use Enum and Var.
364 (rs6000_traceback_type): New Enum and EnumValue entries.
365 (mfloat-gprs=): Use Enum, Var and Save.
366 (rs6000_float_gprs): New Enum and EnumValue entries.
367 (mlong-double-): use Var and Save.
368 (msched-costly-dep=, minsert-sched-nops=): Use Var.
369 (malign-): Use Enum and Var.
370 (rs6000_alignment_flags): New Enum and EnumValue entries.
372 (fpu_type_t): New Enum and EnumValue entries.
373 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
374 global_options_set instead of rs6000_explicit_options.
375 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
376 global_options_set instead of rs6000_explicit_options.
377 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
378 global_options_set instead of rs6000_explicit_options.
379 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
380 global_options_set instead of rs6000_explicit_options.
381 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
382 global_options_set instead of rs6000_explicit_options.
383 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
384 global_options_set instead of rs6000_explicit_options.
385 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
387 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
388 global_options_set instead of rs6000_explicit_options.
389 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
390 (rs6000_cmodel): New Enum and EnumValue entries.
391 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
392 global_options_set instead of rs6000_explicit_options.
393 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
394 (mtls-size=): Use Enum and Var.
395 (rs6000_tls_size): New Enum and EnumValue entries.
397 2011-05-05 Michael Matz <matz@suse.de>
399 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
400 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
401 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
402 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
403 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
404 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
405 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
406 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
407 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
408 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
409 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
410 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
411 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
412 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
413 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
414 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
416 2011-05-05 Richard Guenther <rguenther@suse.de>
418 * expmed.c (expand_variable_shift): Rename to ...
419 (expand_shift_1): ... this. Take an expanded shift amount.
420 For rotates recurse directly not building trees for the shift amount.
421 (expand_variable_shift): Wrap around expand_shift_1.
422 (expand_shift): Adjust.
424 2011-05-05 Jakub Jelinek <jakub@redhat.com>
426 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
428 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
430 * tree.h (get_pending_sizes): Remove prototype.
431 (put_pending_size): Likewise.
432 (put_pending_sizes): Likewise.
433 * stor-layout.c (pending_sizes): Delete.
434 (get_pending_sizes): Likewise.
435 (put_pending_size): Likewise.
436 (put_pending_sizes): Likewise.
437 (variable_size): Do not call put_pending_size and tidy up.
438 * function.h (struct function): Remove dont_save_pending_sizes_p.
439 * lto-streamer-in.c (input_function): Do not stream it.
440 * lto-streamer-out.c (output_function): Likewise.
441 * tree-inline.c (initialize_cfun): Do not copy it.
442 * c-decl.c (store_parm_decls): Do not set it.
443 * omp-low.c (create_task_copyfn): Likewise.
444 * tree-optimize.c (tree_rest_of_compilation): Likewise.
446 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
448 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
450 (*movdf_internal): Ditto.
451 (*movdf_internal_nointeger): Ditto.
452 (*movsf_internal): Ditto.
454 2011-05-05 Joseph Myers <joseph@codesourcery.com>
456 * c-decl.c (finish_decl): Don't call get_pending_sizes.
457 (grokparm): Add parameter expr. Pass it to grokdeclarator.
458 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
459 (c_variable_size): Remove.
460 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
461 call put_pending_sizes.
462 (get_parm_info): Add parameter expr. Use it to set
463 arg_info->pending_sizes.
464 (store_parm_decls): Use arg_info->pending_sizes instead or calling
466 * c-parser.c (c_parser_parms_declarator): Update call to
467 c_parser_parms_list_declarator.
468 (c_parser_parms_list_declarator): Take parameter expr. Update
469 call to push_parm_decl. Update recursive call. Don't call
470 get_pending_sizes. Update calls to get_parm_info.
471 (c_parser_objc_method_definition): Update calls to
472 c_parser_objc_method_decl and objc_start_method_definition.
473 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
474 (c_parser_objc_method_decl): Add parameter expr. Update call to
476 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
477 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
478 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
480 2011-05-05 Michael Hope <michael.hope@linaro.org>
483 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
486 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
488 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
489 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
490 (spu_output_mi_thunk): New function.
492 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
494 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
495 targetm.asm_out.print_operand.
496 * config/sol2.c: Include target.h.
498 2011-05-04 Jan Hubicka <jh@suse.cz>
500 * ipa-inline.c (reset_edge_caches): New function.
501 (update_caller_keys): Add check_inlinablity_for; do not
502 reset edge caches; remove now unnecesary loop.
503 (update_callee_keys): Add comments; reset node_growth_cache of callee.
504 (update_all_callee_keys): Likewise.
505 (inline_small_functions): Sanity check cache; update code
508 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
510 PR rtl-optimization/47612
511 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
512 as the last insn of the sequence to be moved.
514 2011-05-04 Tobias Burnus <burnus@net-b.de>
517 * doc/invoke.texi (Ofast): Document that it
518 enables Fortran's -fno-protect-parens.
520 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
522 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
524 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
526 * stor-layout.c (variable_size): Do not issue errors.
528 2011-05-04 Richard Guenther <rguenther@suse.de>
530 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
531 for array-ref indices.
532 (tree_coverage_counter_addr): Likewise.
533 (build_fn_info_type): Use size_int for index types.
534 (build_gcov_info): Likewise.
536 2011-05-04 Richard Guenther <rguenther@suse.de>
538 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
540 * c-typeck.c (really_start_incremental_init): Use bitsize_int
541 for constructor indices.
542 (push_init_level): Likewise.
544 2011-05-04 Richard Guenther <rguenther@suse.de>
546 * explow.c (promote_mode): Move variable declarations before code.
548 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
550 * tree.h (build_function_type_array): Declare.
551 (build_varargs_function_type_array): Declare.
552 (build_function_type_vec, build_varargs_function_type_vec): Define.
553 * tree.c (build_function_type_array_1): New function.
554 (build_function_type_array): New function.
555 (build_varargs_function_type_array): New function.
557 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
559 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
560 before setting STMT_VINFO_TYPE.
562 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
564 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
565 instead of spu_pass_by_reference.
567 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
569 * calls.c (emit_library_call_value_1): Invoke
570 promote_function_mode hook on libcall arguments.
571 * explow.c (promote_function_mode, promote_mode): Handle TYPE
573 * targhooks.c (default_promote_function_mode): Lisewise.
574 * config/s390/s390.c (s390_promote_function_mode): Likewise.
575 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
577 * doc/tm.texi: Document that TYPE argument might be NULL.
579 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
581 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
583 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
586 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
588 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
590 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
591 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
593 * mips-tfile.c: ... here.
594 Don't include coretypes.h, tm.h, filenames.h.
595 (saber_stop): Remove definition and all calls.
597 (__LINE__): Remove default.
598 (Size_t, Ptrdiff_t): Remove definitions.
599 Replace by size_t, ptrdiff_t.
600 [!MIPS_DEBUGGING_INFO]: Remove.
601 (SHASH_SIZE, THASH_SIZE): Remove defaults.
602 (progname): Add const.
604 Replace all uses by static.
605 (ALIGN_SYMTABLE_OFFSET): Remove default.
606 * mips-tdump.c: Don't include coretypes.h, tm.h.
607 Remove !MIPS_IS_STAB guard.
608 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
609 $(TM_H), filenames.h dependencies.
610 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
612 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
615 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
616 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
618 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
621 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
622 account and save/restore RETS.
623 (PROFILE_BEFORE_PROLOGUE): Define.
624 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
625 the push insn to use predecrement.
627 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
630 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
632 2011-05-04 Nick Clifton <nickc@redhat.com>
634 * config/mn10300/mn10300.c: Include cfgloop.h.
636 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
637 Lcc or a FLcc insn into the instruction stream.
638 (mn10300_block_contains_call): New function. Returns true if the
639 given basic block contains a CALL insn.
640 (mn10300_loop_contains_call_insn): New function. Returns true if
641 the given loop contains a CALL insn.
642 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
643 to use the SETLB and Lcc or FLcc insns.
644 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
645 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
646 * config/mn10300/mn10300.opt (msetlb): New option. Used to
647 disable the SETLB optimization.
648 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
649 __SETLB__ or __NO_SETLB__.
650 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
651 (movsf_internal): Handle MDR register.
652 (cmpsi): Make visible.
653 (setlb): New pattern.
657 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
660 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
662 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
663 (vec_concatv2di_rex64_sse): Ditto.
664 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
665 (*vec_extractv2di_1_rex64): Ditto.
668 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
670 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
672 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
674 2011-05-04 Richard Guenther <rguenther@suse.de>
676 * tree.h (int_const_binop): Remove notrunc argument.
677 * fold-const.c (int_const_binop): Remove notrunc argument. Always
678 create integer constants that are properly truncated.
679 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
680 (const_binop): Remove zero notrunc argument to int_const_binop.
681 (size_binop_loc): Likewise.
682 (fold_div_compare): Likewise.
683 (maybe_canonicalize_comparison_1): Likewise.
684 (fold_comparison): Likewise.
685 (fold_binary_loc): Likewise.
686 (multiple_of_p): Likewise.
687 * expr.c (store_constructor): Likewise.
688 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
689 (maybe_fold_stmt_addition): Likewise.
690 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
691 * stor-layout.c (layout_type): Likewise.
692 * tree-data-ref.c (tree_fold_divides_p): Likewise.
693 * tree-sra.c (build_ref_for_offset): Likewise.
694 (build_user_friendly_ref_for_offset): Likewise.
695 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
696 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
697 * tree-ssa-loop-niter.c (inverse): Likewise.
698 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
699 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
700 * tree-switch-conversion.c (check_range): Likewise.
701 (build_constructors): Likewise.
702 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
703 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
704 (extract_range_from_assert): Likewise.
705 (vrp_int_const_binop): Likewise.
706 (extract_range_from_binary_expr): Likewise.
707 (extract_range_from_unary_expr): Likewise.
708 (check_array_ref): Likewise.
709 (find_case_label_range): Likewise.
710 (simplify_div_or_mod_using_ranges): Likewise.
711 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
712 comparing case labels for merging.
714 2011-05-03 Mark Wielaard <mjw@redhat.com>
716 * dwarf2out.c (debug_str_hash_forced): Removed.
717 (gen_label_for_indirect_string): Removed.
718 (get_debug_string_label): Removed.
719 (AT_string_form): Generate label directly.
720 (output_indirect_string): Test indirect_string_node for
721 DW_FORM_strp instead of checking label and refcount.
722 (prune_indirect_string): Removed.
723 (prune_unused_types): Don't check debug_str_hash_forced or
724 call prune_indirect_string.
726 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
729 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
731 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
735 * combine.c (try_combine): Skip debug insns at m_split tests.
737 2011-04-26 Mark Wielaard <mjw@redhat.com>
740 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
741 when info_section_emitted.
743 2011-05-03 Joseph Myers <joseph@codesourcery.com>
745 * config/mips/mips-opts.h: New.
746 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
748 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
749 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
750 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
752 * config/mips/mips.h (enum mips_code_readable_setting): Move to
754 (mips_abi, mips_code_readable): Don't declare.
755 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
756 (mabi=): Use Enum and Var.
757 (mips_abi): New Enum and EnumValue entries.
758 (mcode-readable=): Use Enum and Var.
759 (mips_code_readable_setting): New Enum and EnumValue entries.
760 (mr10k-cache-barrier=): Use Enum and Var.
761 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
763 2011-05-03 Jan Hubicka <jh@suse.cz>
765 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
766 replace hash by pointer map.
767 (cgraph_node_set_element_def, cgraph_node_set_element,
768 const_cgraph_node_set_element, varpool_node_set_element_def,
769 varpool_node_set_element, const_varpool_node_set_element): Remove.
770 (free_cgraph_node_set, free_varpool_node_set): New function.
771 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
772 * tree-emutls.c: Free varpool node set.
773 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
774 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
775 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
776 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
777 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
778 Move here from ipa.c; implement using pointer_map
779 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
780 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
781 debug_cgraph_node_set, varpool_node_set_new,
782 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
783 dump_varpool_node_set, debug_varpool_node_set):
785 * passes.c (ipa_write_summaries): Update.
787 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
790 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
791 bf542/bf544/bf547/bf548/bf549.
793 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
795 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
797 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
800 * config/bfin/bfin.md (MOVCC): New mode_macro.
801 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
802 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
803 comments from generated assembly.
805 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
808 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
809 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
810 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
811 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
812 * config/bfin/lib1funcs.asm (___muldi3): New function.
814 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
816 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
817 build_function_type_list instead of build_function_type.
818 Rearrange initialization of `args' to do so.
820 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
822 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
823 instead of build_function_type.
825 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
827 * config/rs6000/rs6000.c (spe_init_builtins): Call
828 build_function_type_list instead of build_function_type.
829 (paired_init_builtins, altivec_init_builtins): Likewise.
830 (builtin_function_type): Likewise.
832 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
834 * config/sh/sh.c (sh_media_init_builtins): Call
835 build_function_type_list instead of build_function_type.
837 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
839 * config/sparc/sparc.c (sparc_file_end): Call
840 build_function_type_list instead of build_function_type.
842 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
844 * config/alpha/alpha.c (alpha_init_builtins): Call
845 build_function_type_list instead of build_function_type.
847 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
849 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
850 build_function_type_list instead of build_function_type.
852 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
854 * config/iq2000/i2000.c (iq2000_init_builtins): Call
855 build_function_type_list instead of build_function_type.
856 Delete `endlink' variable.
858 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
860 * config/avr/avr.c (avr_init_builtins): Call
861 build_function_type_list instead of build_function_type.
863 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
865 * config/picochip/picochip.c (picochip_init_builtins): Call
866 build_function_type_list instead of build_function_type.
867 Delete `endlink' variable.
869 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
871 * config/bfin/bfin.c (bfin_init_builtins): Call
872 build_function_type_list instead of build_function_type.
874 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
877 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
878 that's not CONST_INT. Seemingly redundant check is due to PR39768.
880 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
883 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
884 libbffastfp overrides libgcc when -mfast-fp.
886 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
888 Originally from Bernd Schmidt
889 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
890 * config/bfin/bfin.c (override_options): Test it and error if
893 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
895 Originally From Bernd Schmidt
896 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
899 2011-05-03 Jeff Law <law@redhat.com>
901 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
902 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
903 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
904 than accessing AUX field directly. Free the AUX field before
906 (thread_block, thread_through_loop_header): Likewise.
907 (thread_single_edge, mark_threaded_blocks): Likewise.
908 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
909 (register_jump_thread): Do not attempt to thread to a NULL edge.
911 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
913 * function.c (init_function_start): Call decide_function_section.
914 * varasm.c (decide_function_section): New function.
915 (assemble_start_function): When not using
916 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
917 or first_function_block_is_cold.
918 * rtl.h (decide_function_section): Declare.
920 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
921 Jakub Jelinek <jakub@redhat.com>
924 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
925 only succeed if req_mode is the same as set_mode.
927 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
929 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
930 * genemit.c (gen_exp): Handle RETURN.
931 * emit-rtl.c (verify_rtx_sharing): Likewise.
932 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
933 * rtl.c (copy_rtx): RETURN is shared.
934 * rtl.h (enum global_rtl_index): Add GR_RETURN.
936 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
937 * config/s390/s390.c (s390_emit_epilogue): Likewise.
938 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
939 * config/cris/cris.c (cris_expand_return): Likewise.
940 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
941 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
942 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
943 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
944 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
946 * config/v850/v850.c (expand_epilogue): Likewise.
947 * config/bfin/bfin.c (bfin_expand_call): Likewise.
948 * config/arm/arm.md (epilogue): Likewise.
949 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
950 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
953 2011-05-03 Richard Guenther <rguenther@suse.de>
956 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
957 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
958 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
960 2011-05-03 Richard Guenther <rguenther@suse.de>
962 * c-decl.c (grokdeclarator): Instead of looking at
963 TREE_OVERFLOW check if the constant fits in the index type.
965 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
967 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
968 (vec_store_lanes<mode><mode>): Likewise.
970 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
972 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
973 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
974 convert_optab_index values.
975 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
976 * genopinit.c (optabs): Initialize the new optabs.
977 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
978 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
979 (expand_STORE_LANES): New functions.
980 * tree.h (build_array_type_nelts): Declare.
981 * tree.c (build_array_type_nelts): New function.
982 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
983 (vect_model_load_cost): Likewise.
984 (vect_store_lanes_supported, vect_load_lanes_supported)
985 (vect_record_strided_load_vectors): Declare.
986 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
987 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
988 (vect_transform_strided_load): Split out statement recording into...
989 (vect_record_strided_load_vectors): ...this new function.
990 * tree-vect-stmts.c (create_vector_array, read_vector_array)
991 (write_vector_array, create_array_ref): New functions.
992 (vect_model_store_cost): Add store_lanes_p argument.
993 (vect_model_load_cost): Add load_lanes_p argument.
994 (vectorizable_store): Try to use store-lanes functions for
996 (vectorizable_load): Likewise load-lanes and loads.
997 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
998 to vect_model_store_cost.
999 (vect_build_slp_tree): Likewise vect_model_load_cost.
1001 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1003 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1004 * hooks.c (hook_bool_mode_uhwi_false): New function.
1005 * target.def (array_mode_supported_p): New hook.
1006 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1007 * doc/tm.texi: Regenerate.
1008 * stor-layout.c (mode_for_array): New function.
1009 (layout_type): Use it.
1010 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1011 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1013 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1016 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1017 for -fstack-check if the size to allocate is negative.
1019 2011-05-02 Lawrence Crowl <crowl@google.com>
1021 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1022 (timevar_cond_start): New for starting a timer only when it is not
1024 (timevar_cond_stop): New for stopping a timer when it was not already
1027 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1028 (timevar_cond_start): New as above.
1029 (timevar_cond_stop): New as above.
1031 * timevar.def: Add start/stop timers for compiler phases,
1032 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1033 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1034 and TV_PHASE_FINALIZE.
1035 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1036 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1037 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1038 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1039 Make unused TV_OVERLOAD into a start/stop timer.
1041 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1042 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1043 to indicate that they are start/stop timers.
1045 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1046 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1047 Move initialization to do_compile.
1048 (do_compile): Add initialization from above.
1049 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1051 * c-decl.c (c_write_global_declarations): Add start/stop of
1052 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1054 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1055 or TV_PARSE_INLINE, as appropriate.
1056 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1057 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1059 2011-05-02 Jason Merrill <jason@redhat.com>
1062 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1064 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1067 * c-decl.c (finish_decl): Only create a composite if the types are
1070 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1072 * config/fr30/fr30-protos.h (Mmode): Don't define.
1073 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1074 definition where used.
1075 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1076 define. Expand definitions where used.
1077 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1078 Expand definitions where used.
1079 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1080 rx_function_arg, rx_function_arg_advance,
1081 rx_function_arg_boundary): Expand definitions of those macros.
1082 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1083 definition where used.
1085 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1087 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1089 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1090 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1091 with *movv2sf_internal_rex64_avx.
1092 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1093 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1094 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1095 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1096 "vex" in "prefix" attribute calculation.
1097 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1099 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1102 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1103 inputs match the output.
1105 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1108 * config/m68k/m68k.c (m68k_expand_prologue): Set
1109 current_function_static_stack_size.
1111 2011-05-02 Jan Hubicka <jh@suse.cz>
1113 * lto-streamer.c (lto_streamer_cache_insert_1,
1114 lto_streamer_cache_lookup, lto_streamer_cache_create,
1115 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1116 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1118 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1120 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1121 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1122 config/m68k/t-opts: New files.
1123 * config/m68k/m68k-tables.opt: New file (generated).
1124 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1125 extra_options and m68k/t-opts to tmake_file.
1126 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1127 (all_isas): Initialize using m68k-isas.def.
1128 (all_microarchs): Initialize using m68k-microarchs.def.
1129 (m68k_find_selection): Remove.
1130 (m68k_handle_option): Don't assert that global structures are in
1131 use. Use error_at. Access variables via opts pointer. Don't
1132 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1133 directly for -m68020-40 and -m68020-60.
1134 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1135 m68k_tune_entry here.
1136 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1138 (m68k_library_id_string): Remove declaration.
1139 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1140 (m68k_library_id_string): New Variable.
1141 (march=, mcpu=, mtune=): Use Enum and Var.
1143 2011-05-02 Richard Guenther <rguenther@suse.de>
1145 * varasm.c (output_constructor_regular_field): Compute zero-based
1146 index with double-ints. Make sure to ICE instead of producing
1148 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1149 in asserts. Properly use a signed type.
1151 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1153 * config/i386/sse.md (V): New mode iterator.
1154 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1156 (V_256): Rename from AVX256MODE.
1157 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1158 condition to all users.
1160 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1161 condition to all users.
1162 (VF_128): Make V4SF mode unconditional.
1163 (VF_256): Rename from AVX256MODEF2P.
1164 (VI4F_128): Rename from SSEMODE4S.
1165 (VI8F_128): Rename from SSEMODE2D.
1166 (VI4F_256): Rename from AVX256MODE8P.
1167 (VI8F_256): Rename from AVX256MODE4P.
1168 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1169 (ssescalarmodesuffix): Remove SF and DF modes.
1170 (SSEMODE124): Remove.
1171 (SSEMODE1248): Ditto.
1172 (SSEMODEF2P): Ditto.
1173 (AVXMODEF2P): Ditto.
1174 (AVXMODEFDP): Ditto.
1175 (AVXMODEFSP): Ditto.
1176 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1178 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1180 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1181 xop_pcmov_<mode>256. Use V mode iterator.
1183 Adjust RTX patterns globally for renamed mode attributes.
1185 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1187 * haifa-sched.c (sched_emit_insn): Emit insn before first
1188 non-scheduled insn. Inform back-end about new insn. Add
1189 new insn to scheduled_insns list.
1191 2011-05-02 Richard Guenther <rguenther@suse.de>
1193 PR tree-optimization/48822
1194 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1195 (process_scc): Indicate which iteration we start.
1197 2011-05-02 Jan Hubicka <jh@suse.cz>
1199 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1200 (lto_section_overrun): New.
1201 * lto-section-out.c (append_block): Rename to ...
1202 (lto_append_block): ... this one; export.
1203 (lto_output_1_stream): Move lto lto-streamer.h
1204 (lto_output_data_stream): Update.
1205 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1206 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1209 2011-05-02 Richard Guenther <rguenther@suse.de>
1211 * tree.c (tree_code_counts): New global array.
1212 (record_node_allocation_statistics): Count individual tree codes.
1213 (dump_tree_statistics): Dump individual code stats.
1215 2011-05-01 Jan Hubicka <jh@suse.cz>
1217 * ipa-inline.c (caller_growth_limits): Fix thinko when
1218 looking for largest stack frame.
1219 * ipa-inline.h (dump_inline_summary): Declare.
1220 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1222 (dump_inline_summary): Export.
1223 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1225 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1227 * reginfo.c (memory_move_cost): Change rclass argument type form
1228 'enum reg_class' to reg_class_t.
1229 * reload.h (memory_move_cost): Update prototype.
1230 * postreload.c reload_cse_simplify_set): Change type dclass var to
1232 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1234 (ira_allocate_and_set_costs): Change aclass argument type form
1235 'enum reg_class' to reg_class_t.
1236 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1237 Change aclass argument type to reg_class_t.
1238 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1240 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1241 memory_move_cost call.
1243 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1244 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1245 Change type tmp var to reg_class_t.
1247 2011-04-30 Jan Hubicka <jh@suse.cz>
1249 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1250 inlining into function with flatten attribute.
1251 (want_inline_small_function_p): Be more realistic about inlining
1252 cold calls where callee size grows.
1254 2011-04-30 Jan Hubicka <jh@suse.cz>
1256 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1259 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1261 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1262 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1263 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1264 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1265 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1266 (print_operand): Rename to...
1267 (sparc_print_operand): ...this. Make static. Adjust
1268 sparc_print_operand function call.
1269 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1272 2011-04-30 Jan Hubicka <jh@suse.cz>
1275 * ipa-inline.c (early_inliner): Disable when doing late
1276 addition of function.
1278 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1280 * dwarf2out.c (get_address_mode): New inline.
1281 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1282 if not dwarf_strict emit
1283 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1284 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1285 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1286 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1287 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1288 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1289 mem_loc_descriptor callers.
1290 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1291 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1292 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1293 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1294 (base_types): New variable.
1295 (get_base_type_offset, calc_base_type_die_sizes,
1296 base_type_for_mode, mark_base_types, base_type_cmp,
1297 move_marked_base_types): New functions.
1298 (calc_die_sizes): Assert that die_offset is 0 or equal to
1300 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1301 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1302 callers. If not dwarf_strict, call mem_loc_descriptor even for
1303 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1304 (gen_subprogram_die): Don't give up on call site parameters
1305 with non-integral or large integral modes. Adjust
1306 mem_loc_descriptor callers.
1307 (prune_unused_types): Call prune_unused_types_mark on base_types
1309 (resolve_addr): Call mark_base_types.
1310 (dwarf2out_finish): Call move_marked_base_types.
1312 PR tree-optimization/48809
1313 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1315 (gen_inbound_check): Don't compute index_expr - range_min in utype
1316 again, instead reuse SSA_NAME initialized in build_arrays.
1317 Remove two useless gsi_for_stmt calls.
1319 2011-04-29 Jeff Law <law@redhat.com>
1321 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1323 2011-04-29 Martin Jambor <mjambor@suse.cz>
1325 * cgraph.h (cgraph_postorder): Remove declaration.
1326 * ipa-utils.h (ipa_free_postorder_info): Declare.
1327 (ipa_reverse_postorder): Likewise.
1328 * cgraphunit.c: Include ipa-utils.h.
1329 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1330 * ipa-inline.c: Include ipa-utils.h.
1331 (ipa_inline): Update call to ipa_reverse_postorder.
1332 * ipa-pure-const.c (propagate_pure_const): Update call to
1333 ipa_reduced_postorder and ipa_print_order. Call
1334 ipa_free_postorder_info to clean up.
1335 (propagate_nothrow): Likewise.
1336 * ipa-reference.c (propagate): Removed a useless call to
1337 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1338 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1339 * ipa.c: Include ipa-utils.h.
1340 (ipa_profile): Update call to ipa_reverse_postorder.
1341 (cgraph_postorder): Moved to...
1342 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1343 (ipa_utils_print_order): Renamed to ipa_print_order.
1344 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1346 (ipa_free_postorder_info): New function.
1347 * passes.c: Include ipa-utils.h.
1348 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1349 (ipa_write_summaries): Likewise.
1350 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1351 (cgraphunit.o): Likewise.
1353 (ipa-inline.o): Likewise.
1355 2011-04-29 Jan Hubicka <jh@suse.cz>
1357 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1358 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1359 * ipa-inline.h (clause_t): Turn into unsigned int.
1360 * ipa-inline-analysis.c (add_clause): Do more simplification.
1361 (and_predicates): Shortcut more cases.
1362 (predicates_equal_p): Move forward; check that clauses are properly
1364 (or_predicates): Shortcut more cases.
1365 (edge_execution_predicate): Rewrite as...
1366 (set_cond_stmt_execution_predicate): ... this function; handle
1367 __builtin_constant_p.
1368 (set_switch_stmt_execution_predicate): New .
1369 (compute_bb_predicates): New.
1370 (will_be_nonconstant_predicate): Update TODO.
1371 (estimate_function_body_sizes): Use compute_bb_predicates
1372 and free them later, always try to estimate if stmt is constant.
1373 (estimate_time_after_inlining, estimate_size_after_inlining):
1374 Gracefully handle optimized out edges.
1375 (read_predicate): Fix off by one error.
1377 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1379 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1381 2011-04-27 Xinliang David Li <davidxl@google.com>
1383 * tree-profile.c (init_ic_make_global_vars): Set
1384 tls attribute on ic vars.
1385 * coverage.c (coverage_end_function): Initialize
1386 function_list with zero.
1388 2011-04-29 Richard Guenther <rguenther@suse.de>
1390 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1391 for the type of the result.
1392 (fold_builtin_isascii): Likewise.
1393 (fold_builtin_toascii): Use integer_type_node where appropriate.
1394 (fold_builtin_logb): Likewise.
1395 (fold_builtin_frexp): Likewise.
1396 (fold_builtin_strstr): Likewise.
1397 (fold_builtin_strpbrk): Likewise.
1398 (fold_builtin_fputs): Likewise.
1399 (fold_builtin_sprintf): Likewise.
1400 (fold_builtin_snprintf): Likewise.
1401 (fold_builtin_printf): Likewise.
1402 (do_mpfr_remquo): Use a proper type for the assigned constant.
1403 (do_mpfr_lgamma_r): Likewise.
1404 * dwarf2out.c (resolve_one_addr): Use size_int.
1405 * except.c (init_eh): Likewise.
1406 (assign_filter_values): Use integer_type_node for filter values.
1407 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1409 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1410 for EH region numbers.
1411 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1412 for the shift amount.
1414 2011-04-29 Richard Guenther <rguenther@suse.de>
1416 * expr.h (expand_shift): Rename to ...
1417 (expand_variable_shift): ... this.
1418 (expand_shift): Take a constant shift amount.
1419 * expmed.c (expand_shift): Rename to ...
1420 (expand_variable_shift): ... this.
1421 (expand_shift): New wrapper around expand_variable_shift.
1422 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1423 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1424 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1425 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1426 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1427 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1428 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1429 emit_store_flag_1, emit_store_flag): Likewise.
1430 * builtins.c (expand_builtin_signbit): Likewise.
1431 * calls.c (load_register_parameters): Likewise.
1432 * function.c (assign_parm_setup_block): Likewise.
1433 * lower-subreg.c (resolve_shift_zext): Likewise.
1434 * optabs.c (widen_bswap, expand_abs_nojump,
1435 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1436 * spu/spu.c (spu_expand_extv): Likewise.
1437 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1439 2011-04-29 Richard Guenther <rguenther@suse.de>
1441 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1442 for the remapped region number.
1443 * predict.c (build_predict_expr): Use integer_type_node for the
1445 * fold-const.c (fold_binary_loc): Use integer_type_node for
1446 the shift amount. Use a proper type for the PLUS_EXPR operand.
1448 2011-04-29 Michael Matz <matz@suse.de>
1450 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1451 other trees that just builtins.
1452 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1454 2011-04-29 Richard Guenther <rguenther@suse.de>
1456 * tree-nested.c (get_trampoline_type): Use size_int.
1457 (get_nl_goto_field): Likewise.
1458 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1460 (lower_eh_constructs_2): Likewise.
1461 (lower_resx): Likewise.
1462 (lower_eh_dispatch): Likewise.
1463 * tree-mudflap.c (mf_build_string): Use size_int.
1464 (mudflap_register_call): Use integer_type_node for the flag.
1465 (mudflap_enqueue_constant): Use size_int.
1466 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1467 instead of rebuilding it.
1469 2011-04-29 Richard Guenther <rguenther@suse.de>
1471 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1472 Handle OBJ_TYPE_REF.
1473 (find_func_aliases_for_call): Use it more consistently.
1475 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1477 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1478 (rank_for_schedule): Use it.
1479 (schedule_block): Set it.
1481 2011-04-28 David Li <davidxl@google.com>
1483 * tree.c (crc32_string): Use crc32_byte.
1484 (crc32_byte): New function.
1485 * tree.h (crc32_byte): New function.
1486 * gcov.c (read_graph_file): Handle new cfg_cksum.
1487 (read_count_file): Ditto.
1488 * profile.c (instrument_values): Ditto.
1489 (get_exec_counts): Ditto.
1490 (read_profile_edge_counts): Ditto.
1491 (compute_branch_probabilities): Ditto.
1492 (compute_value_histograms): Ditto.
1493 (branch_prob): Ditto.
1494 (end_branch_prob): Ditto.
1495 * coverage.c (read_counts_file): Ditto.
1496 (get_coverage_counts): Ditto.
1497 (tree_coverage_counter_addr): Ditto.
1498 (coverage_checksum_string): Ditto.
1499 (coverage_begin_output): Ditto.
1500 (coverage_end_function): Ditto.
1501 (build_fn_info_type): Ditto.
1502 (build_fn_info_value): Ditto.
1503 * libgcov.c (gcov_exit): Ditto.
1504 * gcov-dump.c (tag_function): Ditto.
1505 (compute_checksum): Remove.
1507 2011-04-29 Alan Modra <amodra@gmail.com>
1509 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1510 unspec plus offset. Tidy macho code.
1512 2011-04-29 Martin Jambor <mjambor@suse.cz>
1514 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1515 node instead of a decl. Update all callers.
1516 * cgraph.h: Update declaration.
1518 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1520 PR tree-optimization/48765
1521 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1522 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1523 to indicate if loop aware SLP is being used. Scan the statements
1524 and update the vectorization factor according to the type of
1525 vectorization before statement analysis.
1526 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1527 pass it to vect_analyze_loop_operations.
1528 (vectorizable_reduction): Set number of copies to 1 in case of pure
1530 * tree-vect-stmts.c (vectorizable_conversion,
1531 vectorizable_assignment, vectorizable_shift,
1532 vectorizable_operation, vectorizable_type_demotion,
1533 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1535 (vectorizable_condition): Move the check that it is not SLP
1536 vectorization before the number of copies check.
1537 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1538 to vectorize the loop using SLP.
1540 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1543 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1546 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1548 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1549 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1550 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1551 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1552 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1554 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1555 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1556 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1557 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1558 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1559 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1561 * config/i386/linux.h (REG_NAME): Don't define.
1562 * config/i386/linux64.h (REG_NAME): Don't define.
1563 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1564 Undefine before defining.
1566 2011-04-28 Jan Hubicka <jh@suse.cz>
1568 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1569 nonconstant_names array.
1570 (estimate_function_body_sizes): Build nonconstant_names array; handle
1571 BUILT_IN_CONSTANT_P.
1573 2011-04-28 Richard Guenther <rguenther@suse.de>
1577 2011-04-28 Richard Guenther <rguenther@suse.de>
1579 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1580 as late as possible.
1582 2011-04-28 Richard Guenther <rguenther@suse.de>
1584 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1585 (debug_constraint): Do it here.
1586 (dump_constraints): And here.
1587 (rewrite_constraints): And here.
1588 (dump_constraint_edge): Remove.
1589 (dump_constraint_graph): Rewrite to produce DOT output.
1590 (solve_constraints): Build succ graph as late as possible.
1591 Dump constraint graphs before and after solving.
1593 2011-04-28 Richard Guenther <rguenther@suse.de>
1595 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1596 New function split out from ...
1597 (find_func_aliases): ... here. Call it.
1598 (find_func_aliases_for_call): Likewise.
1600 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1602 * internal-fn.h (internal_fn_name_array): Declare.
1603 (internal_fn_flags_array): Likewise.
1605 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1607 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1608 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1610 (ssemodefsuffix): Remove.
1611 (ssevecmodesuffix): New mode attribute.
1612 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1613 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1614 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1615 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1616 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1617 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1618 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1619 ssemodesuffix mode attribute.
1620 (float splitters): Use ssevecmodesuffix mode attribute.
1621 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1622 (sseinsmode): Rename from avxvecmode.
1623 (avxsizesuffix): Rename from avxmodesuffix.
1624 (sseintvecmode): Rename from avxpermvecmode.
1625 (ssedoublevecmode): Rename from ssedoublesizemode.
1626 (ssehalfvecmode): Rename from avxhalfvecmode.
1627 (ssescalarmode): Rename from avxscalarmode.
1628 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1629 templates for ssemodesuffix mode attribute.
1630 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1633 Adjust RTX patterns globally for renamed mode attributes.
1635 2011-04-27 Jan Hubcika <jh@suse.cz>
1637 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1638 * ipa-inline-analysis.c: Include alloc-pool.h.
1639 (edge_predicate_pool): New.
1640 (trye_predicate_p): New function
1641 (false_predicate_p): New function.
1642 (add_clause): Sanity check that false clauses are "optimized";
1643 never add clauses to predicate that is already known to be false.
1644 (and_predicate): Use flase_predicate_p.
1645 (evaulate_predicate): Rename to ...
1646 (evaluate_predicate): ... this one; update all callers; assert
1647 that false is not listed among possible truths.
1648 (dump_predicate): Use true_predicate_p.
1649 (account_size_time): Use false_predicate_p.
1650 (evaulate_conditions_for_edge): Rename to ...
1651 (evaluate_conditions_for_edge) ... this one.
1652 (edge_set_predicate): New function.
1653 (inline_edge_duplication_hook): Duplicate edge predicates.
1654 (inline_edge_removal_hook): Free edge predicates.
1655 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1656 (dump_inline_summary): Update.
1657 (estimate_function_body_sizes): Set edge predicates.
1658 (estimate_calls_size_and_time): Handle predicates.
1659 (estimate_callee_size_and_time): Update.
1660 (remap_predicate): Add toplev_predicate; update comment.
1661 (remap_edge_predicates): New function.
1662 (inline_merge_summary): Compute toplev predicate; update.
1663 (read_predicate): New function.
1664 (read_inline_edge_summary): Use it.
1665 (inline_read_section): Likewise.
1666 (write_predicate): New function.
1667 (write_inline_edge_summary): Use it.
1668 (inline_write_summary): Likewise.
1669 (inline_free_summary): Free alloc pool and edge summary vec.
1671 2011-04-27 Richard Guenther <rguenther@suse.de>
1673 * tree-ssa-structalias.c (changed_count): Remove.
1674 (changed): Use a bitmap.
1675 (unify_nodes): Adjust.
1676 (do_sd_constraint): Likewise.
1677 (do_ds_constraint): Likewise.
1678 (do_complex_constraint): Likewise.
1679 (solve_graph): Likewise.
1681 2011-04-27 Jan Hubicka <jh@suse.cz>
1683 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1685 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1687 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1688 (avx_vperm2f128_*_operand): Ditto.
1689 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1690 Use avx_vpermilp_parallel in insn condition.
1691 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1692 Use avx_vperm2f128_parallel in insn condition.
1694 2011-04-27 Richard Guenther <rguenther@suse.de>
1696 * Makefile.in (tree-ssa-structalias.o): Remove
1697 gt-tree-ssa-structalias.h dependency.
1698 (GTFILES): Remove tree-ssa-structalias.c.
1699 * tree.c (allocate_decl_uid): New function.
1700 (make_node_stat): Use it.
1701 (copy_node_stat): Likewise.
1702 * tree.h (allocate_decl_uid): Declare.
1703 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1704 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1705 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1706 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1707 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1708 (struct heapvar_map): Likewise.
1709 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1710 heapvar_insert): Likewise.
1711 (make_heapvar_for): Rename to ...
1712 (make_heapvar): ... this. Simplify.
1713 (fake_var_decl_obstack): New global var.
1714 (build_fake_var_decl): New function.
1715 (make_constraint_from_heapvar): Adjust.
1716 (handle_lhs_call): Likewise.
1717 (create_function_info_for): Likewise.
1718 (intra_create_variable_infos): Likewise.
1719 (init_alias_vars): Allocate fake_var_decl_obstack.
1720 (init_alias_heapvars, delete_alias_heapvars): Remove.
1721 (compute_points_to_sets): Do not call init_alias_heapvars.
1722 (ipa_pta_execute): Likewise.
1723 (delete_points_to_sets): Free fake_var_decl_obstack.
1725 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1727 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1728 (si_from_UTItype, si_to_UTItype): New functions.
1729 (__udivmodti4): Use them to implement type-punning.
1730 * config/spu/multi3.c (union qword_TItype): New data type.
1731 (si_from_TItype, si_to_TItype): New functions.
1732 (__multi3): Use them to implement type-punning.
1734 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1736 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1738 2011-04-27 Jan Hubicka <jh@suse.cz>
1740 * ipa-prop.c (function_insertion_hook_holder): New holder.
1741 (ipa_add_new_function): New function.
1742 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1743 Register/deregister holder.
1745 2011-04-27 Richard Guenther <rguenther@suse.de>
1747 PR tree-optimization/48772
1748 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1750 2011-04-27 Richard Guenther <rguenther@suse.de>
1752 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1753 TARGET_MEM_REF handling.
1755 2011-04-27 Nick Clifton <nickc@redhat.com>
1757 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1758 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1759 (REG_CLASS_NAMES): Likewise.
1760 (REG_CLASS_CONTENTS): Likewise.
1761 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1762 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1763 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1764 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1765 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1766 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1767 duplicate register classes.
1768 (frv_class_likely_spilled_p): Likewise.
1769 (frv_register_move_cost): Likewise.
1771 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1772 end of the regno_reg_class array.
1774 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1777 * c-typeck.c (build_binary_op): Don't wrap arguments if
1778 int_operands is true.
1780 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1783 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1784 targetm.calls.must_pass_in_stack for void type.
1786 2011-04-26 Jan Hubicka <jh@suse.cz>
1788 * cgraphbuild.c (build_cgraph_edges): Update call
1789 of cgraph_create_edge and cgraph_create_indirect_edge.
1790 * cgraph.c (cgraph_create_edge_including_clones,
1791 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1792 cgraph_update_edges_for_call_stmt_node): Do not take nest
1793 argument; do not initialize call_stmt_size/time.
1794 (dump_cgraph_node): Do not dump nest.
1795 (cgraph_clone_edge): Do not take loop_nest argument;
1796 do not propagate it; do not clone call_stmt_size/time.
1797 (cgraph_clone_node): Likewise.
1798 (cgraph_create_virtual_clone): Update.
1799 * cgraph.h (struct cgraph_edge): Remove
1800 call_stmt_size/call_stmt_time/loop_nest.
1801 (cgraph_create_edge, cgraph_create_indirect_edge,
1802 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1804 * tree-emutls.c (gen_emutls_addr): Update.
1805 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1806 loop_nest; handle indirect calls, too.
1807 (clone_inlined_nodes): Do not care about updating inline summaries.
1808 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1809 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1810 stream call_stmt_size/call_stmt_time/loop_nest.
1811 * ipa-inline.c (edge_badness): Update.
1812 (ipa_inline): dump summaries after inlining.
1813 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1815 (inline_edge_summary): New function.
1816 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1817 (inline_edge_removal_hook): Handle edge summaries.
1818 (inline_edge_duplication_hook): New hook.
1819 (inline_summary_alloc): Alloc hooks.
1820 (initialize_growth_caches): Do not register removal hooks.
1821 (free_growth_caches); Do not free removal hook.
1822 (dump_inline_edge_summary): New function.
1823 (dump_inline_summary): Use it.
1824 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1825 (inline_update_callee_summaries): New function.
1826 (inline_merge_summary): Use it.
1827 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1828 (read_inline_edge_summary): New function.
1829 (inline_read_section): Use it.
1830 (write_inline_edge_summary): New function.
1831 (inline_write_summary): Use it.
1832 (inline_free_summary): Free edge new holders.
1833 * tree-inline.c (copy_bb): Update.
1835 2011-04-26 Jason Merrill <jason@redhat.com>
1837 * tree-eh.c (lower_try_finally_switch): Create the label along with
1838 the CASE_LABEL_EXPR.
1840 2011-04-26 David S. Miller <davem@davemloft.net>
1841 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1843 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1844 * configure: Regenerate.
1846 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1849 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1851 (VEC_reduc): New code iterator and splitters for vector reduction.
1852 (VEC_reduc_name): Ditto.
1853 (VEC_reduc_rtx): Ditto.
1854 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1855 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1857 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1858 support for extracting SF on VSX.
1860 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1861 generating xscvspdp.
1862 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1863 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1864 double add, minimum, maximum vector reduction.
1865 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1866 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1867 optimize double vector reduction.
1868 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1870 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1872 * config/fr30/fr30.h (inhibit_libc): Don't define.
1873 * config/m32r/m32r-protos.h: Correct comment.
1874 * config/v850/v850.h (GHS_default_section_names,
1875 GHS_current_section_names): Use tree, not union tree_node *.
1877 2011-04-26 Xinliang David Li <davidxl@google.com>
1879 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1880 * c-family/c-opts.c (c_common_handle_option): Set
1881 warn_maybe_uninitialized.
1882 * opts.c (common_handle_option): Ditto.
1883 * common.opt: New option.
1884 * tree-ssa.c (warn_uninit): Add one more parameter.
1885 (warn_uninitialized_var): Pass warning code.
1886 * tree-flow.h: Interface change.
1889 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1891 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1892 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1893 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1895 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1897 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1898 * config/mips/mips.opt (mmips-tfile): Remove.
1900 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1901 mips-tdump reference to ...
1902 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1903 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1904 reference by Tru64 UNIX.
1906 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1909 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1910 is error_mark_node, set value to NULL.
1912 PR tree-optimization/48734
1913 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1914 if return value from maybe_fold_*_comparsions isn't something
1915 the code is prepared to handle.
1917 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1919 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1921 (ext_QIreg_nomode_operands): Remove.
1922 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1926 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1928 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1930 2011-04-26 Richard Guenther <rguenther@suse.de>
1932 * c-typeck.c (build_unary_op): Do not expand array-refs via
1933 pointer arithmetic. Only adjust qualifiers for function types.
1935 2011-04-26 Richard Guenther <rguenther@suse.de>
1938 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1939 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1940 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1941 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1943 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1945 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1946 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1947 * doc/extend.texi: Document __underlying_type.
1949 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1951 * config/rs6000/titan.md (automata_option "progress"): Remove.
1953 2011-04-25 Jeff Law <law@redhat.com>
1955 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1957 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1959 * system.h (ENUM_BITFIELD): Remove.
1961 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1962 Eric Botcazou <ebotcazou@adacore.com>
1964 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1965 for STORE_FLAG_VALUE==-1 case.
1967 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1970 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1971 LEGITIMATE_PIC_OPERAND_P.
1973 2011-04-24 Jan Hubicka <jh@suse.cz>
1975 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1977 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1978 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1979 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1980 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1981 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1982 Sanity check predicate length.
1983 (remap_predicate): Likewise; sanity check jump functions.
1984 (inline_read_section, inline_write_summary): Sanity check
1987 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1990 * doc/extend.texi (Type Traits): Document __is_standard_layout,
1991 __is_literal_type, and __is_trivial; update throughout about
1992 possibly cv-qualified void types.
1994 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
1996 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1997 testsuite and make it version agnostic.
1999 2011-04-22 Jan Hubicka <jh@suse.cz>
2001 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2003 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2006 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2007 to VOID_TYPE even around MODIFY_EXPR.
2009 2011-04-22 Mike Stump <mikestump@comcast.net>
2011 * gensupport.c (read_md_rtx): Fix typo in comment.
2012 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2015 2011-04-22 Jan Hubicka <jh@suse.cz>
2017 * gengtype.c (open_base_files): Add ipa-inline.h include.
2018 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2019 ipa-prop.c; update all uses.
2020 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2021 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2022 merge summary of inlined function into former caller.
2023 * ipa-inline.c (max_benefit): Remove.
2024 (edge_badness): Compensate for removal of benefits.
2025 (update_caller_keys): Use
2026 reset_node_growth_cache/reset_edge_growth_cache.
2027 (update_callee_keys): Likewise.
2028 (update_all_callee_keys): Likewise.
2029 (inline_small_functions): Do not collect max_benefit; do not reset
2030 estimated_growth; call free_growth_caches and initialize_growth_caches.
2031 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2032 struct size_time_entry): New structures.
2033 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2034 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2035 and estimated_growth.
2036 (edge_growth_cache_entry): New structure.
2037 (node_growth_cache, edge_growth_cache): New global vars.
2038 (estimate_growth): Turn into inline.
2039 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2040 initialize_growth_caches, free_growth_caches): Declare.
2041 (estimate_edge_growth): Rewrite.
2042 (estimate_edge_time): Implement as inline cache lookup.
2043 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2045 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2046 (NUM_CONDITIONS): New constant.
2047 (predicate_conditions): New enum.
2048 (IS_NOT_CONSTANT): New constant.
2049 (edge_removal_hook_holder): New var.
2050 (node_growth_cache, edge_growth_cache): New global vars.
2051 (true_predicate, single_cond_predicate, false_predicate,
2052 not_inlined_predicate, add_condition, add_clause, and_predicates,
2053 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2054 dump_clause, dump_predicate, account_size_time,
2055 evaulate_conditions_for_edge): New functions.
2056 (inline_summary_alloc): Move to heap.
2057 (inline_node_removal_hook): Clear condition and entry vectors.
2058 (inline_edge_removal_hook): New function.
2059 (initialize_growth_caches, free_growth_caches): New function.
2060 (dump_inline_summary): Update.
2061 (edge_execution_predicate): New function.
2062 (will_be_nonconstant_predicate): New function.
2063 (estimate_function_body_sizes): Compute BB and constantness predicates.
2064 (compute_inline_parameters): Do not clear estimated_growth.
2065 (estimate_edge_size_and_time): New function.
2066 (estimate_calls_size_and_time): New function.
2067 (estimate_callee_size_and_time): New function.
2068 (remap_predicate): New function.
2069 (inline_merge_summary): New function.
2070 (do_estimate_edge_time): New function based on...
2071 (estimate_edge_time): ... this one.
2072 (do_estimate_edge_growth): New function.
2073 (do_estimate_growth): New function based on....
2074 (estimate_growth): ... this one.
2075 (inline_analyze_function): Analyze after deciding on jump functions.
2076 (inline_read_section): New function.
2077 (inline_read_summary): Use it.
2078 (inline_write_summary): Write all the new data.
2079 * ipa-prop.c (ipa_get_param_decl_index): Export.
2080 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2081 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2083 (ipa_get_lattice): Move here from ipa-cp.c
2084 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2085 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2086 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2087 cgraph_edge_inlinable_p): Remove.
2088 * cgraphunit.c: Include ipainline.h
2089 (cgraph_process_new_functions): Update call of
2090 compute_inline_parameters.
2092 2011-04-22 Richard Guenther <rguenther@suse.de>
2094 * tree.c (build_int_cst): Properly create canonicalized integer
2096 (build_int_cst_type): Remove scary comments.
2098 2011-04-22 Xinliang David Li <davidxl@google.com>
2100 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2101 by default when -Wno-error is not specified.
2102 * opts-global.c (decode_options): Remove call to
2103 control_warning_options.
2105 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2107 PR tree-optimization/48717
2108 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2109 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2111 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2113 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2114 definition where used.
2116 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2119 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2120 TREE_STATIC variables declared inside of some OpenMP construct.
2122 2011-04-22 Martin Jambor <mjambor@suse.cz>
2125 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2127 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2130 * c-typeck.c (pop_init_level): Do not warn about initializing
2133 2011-04-22 Alan Modra <amodra@gmail.com>
2135 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2136 when returning call_cookie.
2137 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2138 pointers, to functions with no more vector args than the current
2139 function, and some non-local calls for ABI_V4.
2140 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2141 sibcall_nonlocal_aix64): Combine to ..
2142 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2143 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2144 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2145 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2146 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2148 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2149 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2150 sibcall_value_symbolic_64): Delete.
2152 2011-04-21 Xinliang David Li <davidxl@google.com>
2154 * cgraph.h: Remove pid.
2155 * cgraph.c: Remove pid.
2156 * value-prof.c (init_node_map): New function.
2157 (del_node_map): New function.
2158 (find_func_by_funcdef_no): New function.
2159 (gimple_ic_transform): Call new function.
2160 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2161 * function.c (get_last_funcdef_no): New function.
2162 * function.h (get_last_funcdef_no): New function.
2163 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2164 to libgcov function.
2165 (tree-profiling): Call node map init and delete function.
2167 2011-04-21 Ian Lance Taylor <iant@google.com>
2169 * godump.c (go_format_type): Use exported Go name for anonymous
2172 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2174 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2175 Call builtin_function_type_list instead of builtin_function_type.
2176 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2178 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2180 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2181 build_function_type_list instead of build_function_type.
2182 Delete variable `endlink'.
2184 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2186 * config/s390/s390.c (s390_init_builtins): Call
2187 build_function_type_list instead of build_function_type.
2189 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2191 * config/ia64/ia64.c (ia64_init_builtins): Call
2192 build_function_type_list instead of builtin_function_type.
2194 2011-04-21 Easwaran Raman <eraman@google.com>
2196 * cfgexpand.c (stack_var): Remove OFFSET...
2197 (add_stack_var): ...and its reference here...
2198 (expand_stack_vars): ...and here.
2199 (stack_var_cmp): Sort by descending order of size.
2200 (partition_stack_vars): Change heuristic.
2201 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2202 (dump_stack_var_partition): Add newline after each partition.
2204 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2205 Jeff Law <law@redhat.com>
2207 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2208 * gengtype.c (matching_file_name_substitute): Likewise.
2210 2011-04-21 Richard Guenther <rguenther@suse.de>
2213 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2215 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2217 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2219 2011-04-21 Richard Guenther <rguenther@suse.de>
2221 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2224 2011-04-21 Richard Guenther <rguenther@suse.de>
2226 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2227 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2228 Use DECL_P, not SSA_VAR_P.
2229 (ptr_derefs_may_alias_p): Likewise.
2230 (ptr_deref_may_alias_ref_p_1): Likewise.
2231 (decl_refs_may_alias_p): Likewise.
2232 (refs_may_alias_p_1): Likewise.
2233 (ref_maybe_used_by_call_p_1): Likewise.
2234 (call_may_clobber_ref_p_1): Likewise.
2235 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2236 are either MEM_REF or TARGET_MEM_REF.
2237 (indirect_refs_may_alias_p): Likewise.
2238 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2239 for MEM_EXPR of indirect calls.
2241 2011-04-21 Tristan Gingold <gingold@adacore.com>
2243 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2244 (dst_file_info_struct): Remove flen field.
2245 (lookup_filename): Remove code that set flen field.
2247 2011-04-21 Tristan Gingold <gingold@adacore.com>
2249 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2251 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2254 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2255 vec_extract and vec_concat for non-SSE4_1 targets.
2257 2011-04-21 Richard Guenther <rguenther@suse.de>
2259 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2262 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2264 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2266 (FILE): Don't undefine.
2268 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2270 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2272 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2274 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2275 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2276 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2278 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2279 definitions where used.
2280 * config/microblaze/microblaze.h (struct microblaze_args): Use
2281 rtx, not struct rtx_def *.
2282 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2284 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2285 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2286 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2287 not struct rtx_def *.
2288 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2290 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2292 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2294 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2296 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2297 operand_equal_p to compare DR_BASE_ADDRESSes.
2298 (vect_check_interleaving): Likewise.
2300 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2303 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2304 for all Neon struct constants.
2306 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2308 * target.def (legitimate_constant_p): New hook.
2309 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2310 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2311 * doc/tm.texi: Regenerate.
2312 * hooks.h (hook_bool_mode_rtx_true): Declare.
2313 * hooks.c (hook_bool_mode_rtx_true): Define.
2314 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2315 * calls.c (precompute_register_parameters): Replace uses of
2316 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2317 (emit_library_call_value_1): Likewise.
2318 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2319 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2320 * ira-costs.c (scan_one_insn): Likewise.
2321 * recog.c (general_operand, immediate_operand): Likewise.
2322 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2323 * reload1.c (init_eliminable_invariants): Likewise.
2325 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2327 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2328 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2330 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2331 * config/alpha/predicates.md (input_operand): Update call to
2332 alpha_legitimate_constant_p.
2334 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2335 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2336 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2337 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2338 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2339 (arm_legitimate_constant_p): New functions.
2340 (arm_cannot_force_const_mem): Make static.
2342 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2344 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2345 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2346 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2347 instead of bfin_legitimate_constant_p.
2348 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2349 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2351 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2353 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2355 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2356 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2357 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2358 (frv_legitimate_constant_p): Make static. Add a mode argument.
2360 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2361 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2362 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2364 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2365 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2366 * config/i386/i386.c (legitimate_constant_p): Rename to...
2367 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2369 (ix86_cannot_force_const_mem): Update accordingly.
2370 (ix86_legitimate_address_p): Likewise.
2371 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2372 * config/i386/i386.md: Update commentary.
2374 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2375 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2376 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2377 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2379 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2381 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2382 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2383 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2384 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2386 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2387 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2388 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2390 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2391 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2392 (m32r_legitimate_constant_p): New function.
2394 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2395 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2396 LEGITIMATE_CONSTANT_P.
2397 (LEGITIMATE_CONSTANT_P): Delete.
2398 * config/m68k/m68k.c (m68k_expand_prologue): Call
2399 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2400 (m68k_legitimate_constant_p): New function.
2401 * config/m68k/m68k.md: Update comments.
2403 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2404 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2405 (mcore_legitimate_constant_p): New function.
2407 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2408 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2409 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2410 Add a mode argument.
2411 (mep_legitimate_address): Update accordingly.
2412 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2414 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2416 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2417 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2418 static. Check OP's mode for VOIDmode.
2419 (microblaze_legitimate_constant_p): New function.
2420 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2422 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2423 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2424 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2425 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2426 * config/mips/predicates.md: Update comments.
2428 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2429 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2430 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2431 (mmix_legitimate_constant_p): Make static, return a bool, and take
2433 (mmix_print_operand_address): Update accordingly.
2435 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2437 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2438 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2439 static. Add a mode argument.
2440 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2442 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2444 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2445 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2446 (pa_legitimate_constant_p): New function.
2448 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2450 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2451 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2452 (pdp11_legitimate_constant_p): New function.
2454 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2455 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2456 (rs6000_legitimate_constant_p): New function.
2458 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2459 (rx_legitimate_constant_p): ...this.
2460 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2461 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2462 (rx_legitimate_constant_p): ...this.
2463 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2464 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2466 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2467 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2468 * config/s390/s390.c (legitimate_constant_p): Rename to...
2469 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2470 and add a mode argument.
2471 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2473 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2475 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2476 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2477 (sh_legitimate_constant_p): New function.
2479 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2480 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2481 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2482 (legitimate_constant_p): Rename to...
2483 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2485 (constant_address_p): Update accordingly.
2487 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2488 argument and return a bool.
2489 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2490 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2491 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2492 (spu_rtx_costs): Update accordingly.
2493 * config/spu/predicates.md (vec_imm_operand): Likewise.
2495 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2497 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2498 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2499 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2501 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2502 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2503 * config/vax/vax.c (legitimate_constant_p): Likewise.
2505 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2506 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2507 (xtensa_legitimate_constant_p): New function.
2509 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2511 * target.def (cannot_force_const_mem): Add a mode argument.
2512 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2513 * doc/tm.texi: Regenerate.
2514 * hooks.h (hook_bool_mode_rtx_false): Declare.
2515 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2516 (hook_bool_mode_const_rtx_true): Likewise.
2517 (hook_bool_mode_rtx_false): New function.
2518 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2519 to be non-VOID. Update call to cannot_force_const_mem.
2520 (find_reloads): Update accordingly.
2521 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2522 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2524 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2525 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2526 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2527 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2528 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2529 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2530 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2531 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2532 (m68k_cannot_force_const_mem): ...this new function.
2533 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2535 (mips_const_insns, mips_legitimize_const_move): Update calls.
2536 (mips_secondary_reload_class): Likewise.
2537 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2538 (pa_cannot_force_const_mem): ...this new function.
2539 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2540 (rs6000_cannot_force_const_mem): ...this new function.
2541 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2543 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2544 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2546 (xtensa_cannot_force_const_mem): ...this new function.
2548 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2550 * config/mips/mips.c (mips16_build_function_stub): Call
2551 build_function_type_list instead of build_function_type.
2552 (mips16_build_call_stub): Likewise.
2554 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2556 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2557 instead of build_function_type.
2559 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2561 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2562 instead of build_function_type.
2564 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2567 * config/i386/i386.md (insv): Change operand 0 constraint to
2568 "register_operand". Change operand 1 and 2 constraint to
2569 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2570 * config/i386/sse.md (sse4_1_pinsrb): Export.
2571 (sse2_pinsrw): Ditto.
2572 (sse4_1_pinsrd): Ditto.
2573 (sse4_1_pinsrq): Ditto.
2574 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2575 * config/i386/i386.c (ix86_expand_pinsr): New.
2577 2011-04-20 Easwaran Raman <eraman@google.com>
2579 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2580 containing union type only with -fstrict-aliasing.
2582 2011-04-20 Jim Meyering <meyering@redhat.com>
2584 Remove useless if-before-free tests.
2585 * calls.c (expand_call, save_area): Likewise.
2586 * cfgcleanup.c (try_forward_edges): Likewise.
2587 * collect2.c (collect_execute): Likewise.
2588 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2589 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2590 * coverage.c (coverage_checksum_string): Likewise.
2591 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2592 * cselib.c (cselib_init): Likewise.
2593 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2594 (df_set_clean_cfg): Likewise.
2595 * function.c (free_after_compilation): Likewise.
2596 * gcc.c (do_spec_1, main): Likewise.
2597 * gcov.c (create_file_names): Likewise.
2598 * gensupport.c (identify_predicable_attribute): Likewise.
2599 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2600 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2601 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2602 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2603 * ipa-pure-const.c (local_pure_const): Likewise.
2604 * ipa-reference.c (propagate): Likewise.
2605 * ira-costs.c (free_ira_costs): Likewise.
2606 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2607 * matrix-reorg.c (mat_free): Likewise.
2608 * prefix.c (get_key_value): Likewise.
2609 * profile.c (compute_value_histograms): Likewise.
2610 * reload1.c (free_reg_equiv): Likewise.
2611 * sched-deps.c (free_deps): Likewise.
2612 * sel-sched-ir.c (fence_clear): Likewise.
2613 * sese.c (set_rename, if_region_set_false_region): Likewise.
2614 * tree-data-ref.c (free_rdg): Likewise.
2615 * tree-eh.c (lower_try_finally): Likewise.
2616 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2617 * tree-ssa-live.c (delete_var_map): Likewise.
2618 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2619 * tree-ssa-pre.c (phi_trans_add): Likewise.
2621 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2623 PR tree-optimization/48611
2624 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2625 beyond ERT_MUST_NOT_THROW region.
2627 2011-04-20 Catherine Moore <clm@codesourcery.com>
2629 * config/mips/mips.opt (mfix-24k): New.
2630 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2631 * config/mips/mips.md (length): Increase by 4 for stores if
2633 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2634 all noreorder if fixing 24K errata.
2635 * doc/invoke.texi: Document mfix-24k.
2637 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2639 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2640 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2642 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2644 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2645 (const_ok_for_op): ... to here.
2647 2011-04-20 Kai Tietz <ktietz@redhat.com>
2649 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2650 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2652 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2654 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2656 2011-04-20 Richard Guenther <rguenther@suse.de>
2658 PR tree-optimization/47892
2659 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2662 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2664 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2666 2011-04-20 Tristan Gingold <gingold@adacore.com>
2668 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2670 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2674 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2675 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2676 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2677 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2678 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2680 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2683 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2684 (avr_asm_named_section, avr_asm_output_aligned_common,
2685 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2686 New functions to update...
2687 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2688 (avr_asm_init_sections): Overwrite section callbacks for
2689 data_section, bss_section.
2690 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2692 (avr_file_end): ...here.
2694 2011-04-20 Richard Guenther <rguenther@suse.de>
2697 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2698 objects and types here. Adjust for their offset before comparing.
2700 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2702 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2705 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2707 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2708 (GIMPLE_H): Include $(INTERNAL_FN_H).
2709 (OBJS-common): Add internal-fn.o.
2710 (internal-fn.o): New rule.
2711 * internal-fn.def: New file.
2712 * internal-fn.h: Likewise.
2713 * internal-fn.c: Likewise.
2714 * gimple.h: Include internal-fn.h.
2715 (GF_CALL_INTERNAL): New gf_mask.
2716 (gimple_statement_call): Put fntype into a union with a new
2718 (gimple_build_call_internal): Declare.
2719 (gimple_build_call_internal_vec): Likewise.
2720 (gimple_call_same_target_p): Likewise.
2721 (gimple_call_internal_p): New function.
2722 (gimple_call_internal_fn): Likewise.
2723 (gimple_call_fntype): Return null for internal calls.
2724 (gimple_call_set_fntype): Assert that the function is not internal.
2725 (gimple_call_set_fn): Likewise.
2726 (gimple_call_set_fndecl): Likewise.
2727 (gimple_call_set_internal_fn): New function.
2728 (gimple_call_addr_fndecl): Handle null functions.
2729 (gimple_call_return_type): Likewise null types.
2730 * gimple.c (gimple_build_call_internal_1): New function.
2731 (gimple_build_call_internal): Likewise.
2732 (gimple_build_call_internal_vec): Likewise.
2733 (gimple_call_same_target_p): Likewise.
2734 (gimple_call_flags): Handle calls to internal functions.
2735 (gimple_call_fnspec): New function.
2736 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2737 (gimple_has_side_effects): Handle null functions.
2738 (gimple_rhs_has_side_effects): Likewise.
2739 (gimple_call_copy_skip_args): Handle calls to internal functions.
2740 * cfgexpand.c (expand_call_stmt): Likewise.
2741 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2742 * gimple-fold.c (gimple_fold_call): Handle null functions.
2743 (gimple_fold_stmt_to_constant_1): Don't fold
2744 calls to internal functions.
2745 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2747 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2748 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2749 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2750 (do_warn_unused_result): Likewise.
2751 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2752 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2753 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2754 the target of a call.
2755 (initialize_hash_element): Update accordingly.
2756 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2757 (iterative_hash_hashable_expr): Handle calls to internal functions.
2758 (print_expr_hash_elt): Likewise.
2759 * tree-ssa-pre.c (can_value_number_call): Likewise.
2760 (eliminate): Handle null functions.
2761 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2762 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2763 (find_func_aliases): Likewise.
2764 * value-prof.c (gimple_ic_transform): Likewise.
2765 (gimple_indirect_call_to_profile): Likewise.
2766 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2767 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2769 2011-04-19 Jan Hubicka <jh@suse.cz>
2771 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2772 * ipa-inline.c (inline_small_functions): Compute summaries first,
2773 populate heap later.
2775 2011-04-19 Jan Hubicka <jh@suse.cz>
2777 * cgraph.h (save_inline_function_body): Remove.
2778 * ipa-inline-transform.c: New file, broke out of...
2779 * ipa-inline.c: ... this one; Update toplevel comment.
2780 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2782 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2783 (cgraph_mark_inline_edge): Rename to inline_call; move to
2784 ipa-inline-transform.c.
2785 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2786 move to ipa-inline-transform.c
2787 (recursive_inlining, inline_small_functions, flatten_function,
2788 ipa_inline, inline_always_inline_functions,
2789 early_inline_small_functions): Update.
2790 (inline_transform): Move to ipa-inline-transform.c.
2791 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2793 * Makefile.in (ipa-inline-transform.o): New file.
2794 * cgraphunit.c (save_inline_function_body): Move to
2795 ipa-inline-transform.c
2797 2011-04-19 DJ Delorie <dj@redhat.com>
2799 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2800 registers if we already know there aren't any.
2801 (m32c_emit_epilogue): Don't emit a barrier here.
2802 (m32c_emit_eh_epilogue): Likewise.
2803 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2804 operands at expand time.
2805 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2807 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2808 duplicates. Provide aliases instead.
2809 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2810 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2813 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2815 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2816 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2817 (general_or_i64_p, sparc_register_move_cost): New function.
2819 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2821 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2822 Add lynx, mipssde. Sort table.
2824 2011-04-19 Xinliang David Li <davidxl@google.com>
2826 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2829 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2832 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2833 is a SUBREG with non-MODE_INT mode inside of it.
2835 2011-04-19 Martin Jambor <mjambor@suse.cz>
2837 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2838 also according to actual contants.
2839 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2840 (gimple_fold_call): Use it.
2841 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2843 2011-04-19 Martin Jambor <mjambor@suse.cz>
2845 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2846 non-pointer assignments.
2848 2011-04-19 Martin Jambor <mjambor@suse.cz>
2850 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2851 account anc_offset and otr_type from the indirect edge info.
2852 * ipa-prop.c (get_ancestor_addr_info): New function.
2853 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2854 get_ancestor_addr_info, call it.
2855 (ipa_note_param_call): Do not initialize information about polymorphic
2856 calls, return the indirect call graph edge. Remove the last
2857 parameter, adjust all callers.
2858 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2859 parameters. Initialize polymorphic information in the indirect edge.
2861 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2864 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2865 the types if they have different enumeration identifiers.
2867 2011-04-19 Jan Hubicka <jh@suse.cz>
2869 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2870 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2871 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2872 (optimize_function_for_size_p) ... here.
2874 2011-04-19 Richard Guenther <rguenther@suse.de>
2877 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2880 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2882 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2883 if DECL_NO_INLINE_WARNING_P is set on the function.
2885 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2888 * reload1.c (inc_for_reload): Return void. All callers changed.
2889 (emit_input_reload_insns): Don't try to delete previous output
2890 reloads to a register, or record spill_reg_store for autoincs.
2892 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2894 * gengtype.h: Updated copyright year.
2895 (struct input_file_st): Add inpisplugin field.
2896 (type_fileloc): New function.
2898 (write_typed_struct_alloc_def): Add gcc_assert.
2899 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2900 (write_typed_alloc_defns): Don't output for plugin files.
2901 (input_file_by_name): Clear inpisplugin field.
2902 (main): Set inpisplugin field for plugin files.
2904 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2906 * gengtype-state.c (string_eq): New.
2907 (read_state): Use string_eq instead of strcmp when creating the
2910 2011-04-19 Wei Guozhi <carrot@google.com>
2913 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2914 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2916 * config/arm/constraints.md (Uu): New constraint.
2917 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2919 2011-04-19 Tristan Gingold <gingold@adacore.com>
2921 * config.gcc (-*-*-*vms): Added.
2922 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2924 * config/vms/vms-ld.c: New file.
2925 * config/vms/vms-ar.c: New file.
2926 * config/vms/t-vmsnative: New file.
2928 2011-04-18 Xinliang David Li <davidxl@google.com>
2930 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2932 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2935 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2936 if TREE_TYPE (v) is non-NULL.
2938 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2939 gimple_get_virt_mehtod_for_binfo.
2940 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2941 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2943 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2945 2011-04-18 Michael Matz <matz@suse.de>
2946 Steve Ellcey <sje@cup.hp.com>
2948 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2949 use its mode as source mode if it isn't VOIDmode.
2951 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2953 * doc/passes.texi: Fill crossref nodes.
2955 2011-04-18 Jim Meyering <meyering@redhat.com>
2957 Fix doubled-word typos in comments and strings
2958 * config/alpha/vms-unwind.h: s/for for/for/
2959 * config/arm/unwind-arm.h: Likewise.
2960 * config/microblaze/microblaze.c: Likewise.
2961 * config/sh/constraints.md: s/in in/in/
2962 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2964 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2966 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2967 (AVX_FLOAT_MODE_P): Ditto.
2968 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2969 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2970 (AVX_VEC_FLOAT_MODE_P): Ditto.
2971 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2972 (UNSPEC_MASKSTORE): Ditto.
2973 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2974 Merge from <sse>_movmsk<ssemodesuffix> and
2975 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
2976 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
2978 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2979 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2980 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2982 2011-04-18 Jan Hubicka <jh@suse.cz>
2984 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2986 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2987 (want_inline_function_called_once_p): Break out the logic from
2989 (edge_badness): Ensure that profile is not misupdated.
2990 (lookup_recursive_calls): Prioritize by call frequencies.
2991 (inline_small_functions): Move program size estimates here;
2992 actually process whole queue even when unit growth has been
2993 met. (to properly compute inline_failed reasons and for the
2994 case unit size decrease.) Revisit comments on recursive inlining.
2995 (ipa_inline): Remove unit summary code; first inline hot calls
2996 of functions called once, cold calls next.
2997 (order, nnodes): Remove unused variables.
2998 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2999 (GTFILES): Remove ipa-inline.c
3000 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3002 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3004 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3006 2011-04-18 Jie Zhang <jie@codesourcery.com>
3007 Richard Earnshaw <rearnsha@arm.com>
3009 * arm.c (neon_builtin_type_bits): Remove.
3010 (typedef enum neon_builtin_mode): New.
3011 (T_MAX): Don't define.
3012 (typedef enum neon_builtin_datum): Remove bits, codes[],
3013 num_vars and base_fcode. Add mode, code and fcode.
3014 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3015 VAR10): Change accordingly.
3016 (neon_builtin_data[]): Change accordingly
3017 (arm_init_neon_builtins): Change accordingly.
3018 (neon_builtin_compare): Remove.
3019 (locate_neon_builtin_icode): Remove.
3020 (arm_expand_neon_builtin): Change accordingly.
3022 * arm.h (enum arm_builtins): Move to ...
3023 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3025 * arm.c (arm_builtin_decl): Declare.
3026 (TARGET_BUILTIN_DECL): Define.
3027 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3028 (arm_builtin_decls[]): New.
3029 (arm_init_neon_builtins): Store builtin declarations in
3030 arm_builtin_decls[].
3031 (arm_init_tls_builtins): Likewise.
3032 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3033 (arm_builtin_decl): New.
3035 2011-04-18 Richard Guenther <rguenther@suse.de>
3037 * tree.c (upper_bound_in_type): Build properly canonicalized
3039 (lower_bound_in_type): Likewise.
3041 2011-04-18 Richard Guenther <rguenther@suse.de>
3043 * gimple.h (gimple_call_addr_fndecl): New function.
3044 (gimple_call_fndecl): Use it.
3045 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3047 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3048 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3050 2011-04-18 Richard Guenther <rguenther@suse.de>
3053 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3055 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3058 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3059 DECL_IN_CONSTANT_POOL without RTL.
3061 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3062 Ira Rosen <ira.rosen@linaro.org>
3065 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3066 to match neon_vzip/vuzp/vtrn_internal.
3067 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3068 outputs explicitly dependent on both inputs.
3069 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3071 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3073 PR tree-optimization/48616
3074 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3075 whether the shift is by scalar or vector based on whether all SLP
3076 scalar stmts have the same rhs.
3078 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3080 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3083 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3085 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3088 2011-04-17 Jan Hubicka <jh@suse.cz>
3090 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3091 * cgrpahunit.c (cgraph_finalize_function): Do not set
3092 finalized_by_frontend.
3093 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3094 finalized_by_frontend.
3096 2011-04-17 Jan Hubicka <jh@suse.cz>
3098 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3099 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3100 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3101 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3103 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3105 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3107 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3110 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3111 is non-null before accessing it.
3112 (input_cgraph): Remove trailing spaces.
3114 2011-04-17 Revital Eres <revital.eres@linaro.org>
3116 * params.def (sms-min-sc): New param flag.
3117 * modulo-sched.c (sms_schedule): Use it.
3118 * doc/invoke.texi (sms-min-sc): Document it.
3120 2011-04-17 Jan Hubicka <jh@suse.cz>
3122 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3123 present, also set gimple_call_set_cannot_inline.
3124 * ipa-inline.c: Update toplevel comment.
3126 (cgraph_clone_inlined_nodes): Fix linebreaks.
3127 (cgraph_check_inline_limits): Restructure to ...
3128 (caller_growth_limits): ... this one; be more tolerant
3129 on growth in nested inline chains; add explanatory comment;
3130 fix stack accounting thinko introduced by previous patch.
3131 (cgraph_default_inline_p): Remove.
3132 (report_inline_failed_reason): New function.
3133 (can_inline_edge_p): New function.
3134 (can_early_inline_edge_p): New function.
3135 (leaf_node_p): Move upwards in file.
3136 (want_early_inline_function_p): New function.
3137 (want_inline_small_function_p): New function.
3138 (want_inline_self_recursive_call_p): New function.
3139 (cgraph_edge_badness): Rename to ...
3140 (edge_badness) ... this one; fix linebreaks.
3141 (update_edge_key): Update call of edge_baddness; add
3142 detailed dump about queue updates.
3143 (update_caller_keys): Use can_inline_edge_p and
3144 want_inline_small_function_p.
3145 (cgraph_decide_recursive_inlining): Rename to...
3146 (recursive_inlining): Use can_inline_edge_p and
3147 want_inline_self_recursive_call_p; simplify and remove no longer
3149 (cgraph_set_inline_failed): Remove.
3150 (add_new_edges_to_heap): Use can_inline_edge_p and
3151 want_inline_small_function_p.
3152 (cgraph_decide_inlining_of_small_functions): Rename to ...
3153 (inline_small_functions): ... this one; cleanup; use
3154 can/want predicates; cleanup debug ouput; work edges till fibheap
3155 is exhausted and do not stop once unit growth is reached; remove
3156 later loop processing remaining edges.
3157 (cgraph_flatten): Rename to ...
3158 (flatten_function): ... this one; use can_inline_edge_p
3159 and can_early_inline_edge_p predicates.
3160 (cgraph_decide_inlining): Rename to ...
3161 (ipa_inline): ... this one; remove unreachable nodes before
3162 inlining functions called once; simplify the pass.
3163 (cgraph_perform_always_inlining): Rename to ...
3164 (inline_always_inline_functions): ... this one; use
3165 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3166 (cgraph_decide_inlining_incrementally): Rename to ...
3167 (early_inline_small_functions): ... this one; simplify
3168 using new predicates; cleanup; make dumps prettier.
3169 (cgraph_early_inlining): Rename to ...
3170 (early_inliner): newer inline regular functions into always-inlines;
3171 fix updating of call stmt summaries.
3172 (pass_early_inline): Update for new names.
3173 (inline_transform): Fix formating.
3174 (gate_cgraph_decide_inlining): Rename to ...
3175 (pass_ipa_inline): ... this one.
3176 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3177 * ipa-inline-analysis.c (dump_inline_summary): Update.
3178 (compute_inline_parameters): Do not compute disregard_inline_limits;
3179 look for mismatching arguments.
3180 (estimate_growth): Fix handlig of non-trivial self recursion.
3181 (inline_read_summary): Do not read info->disregard_inline_limits.
3182 (inline_write_summary): Do not write info->disregard_inline_limits.
3183 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3184 and move all checks into can_inline_edge_p predicate; re-enable code
3185 comparing optimization levels.
3186 (expand_call_inline): Do not test inline_forbidden_into_p.
3187 * Makefile.in (ipa-inline.o): Update arguments.
3189 2011-04-17 Revital Eres <revital.eres@linaro.org>
3191 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3193 2011-04-17 Revital Eres <revital.eres@linaro.org>
3195 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3197 2011-04-17 Michael Matz <matz@suse.de>
3199 PR tree-optimization/48622
3201 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3202 in same order as they're written.
3204 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3206 * config/pa/predicates.md: Reorganize and simplify predicates.
3207 Eliminate duplicate code checks.
3208 (arith_operand): Rename to arith14_operand
3209 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3210 * config/pa/pa.md: Use renamed operands.
3211 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3212 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3213 arith11_operand, adddi3_operand, indexed_memory_operand,
3214 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3215 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3216 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3217 move_dest_operand, move_src_operand, prefetch_cc_operand,
3218 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3219 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3220 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3221 div_operand, int5_operand, movb_comparison_operator,
3222 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3223 arith_double_operand, ireg_operand, lhs_lshift_operand,
3224 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3225 integer_store_memory_operand): Likewise.
3226 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3227 (integer_store_memory_operand, read_only_operand,
3228 function_label_operand, borx_reg_operand,
3229 non_hard_reg_operand): Likewise.
3230 (eq_neq_comparison_operator): Delete unused operator.
3231 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3232 function_label_operand.
3233 (emit_move_sequence): Likewise.
3235 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3237 * config/i386/sse.md (sseunpackmode): New mode attribute.
3238 (ssepackmode): Ditto.
3239 (vec_pack_trunc_<mode>): Macroize expander from
3240 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3241 (vec_unpacks_lo_<mode>): Macroize expander from
3242 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3243 (vec_unpacks_hi_<mode>): Macroize expander from
3244 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3245 (vec_unpacku_lo_<mode>): Macroize expander from
3246 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3247 (vec_unpacku_hi_<mode>): Macroize expander from
3248 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3249 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3250 ix86_expand_sse4_unpack.
3251 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3253 2011-04-16 Jan Hubicka <jh@suse.cz>
3255 * cgraphbuild.c: Include ipa-inline.h.
3256 (reset_inline_failed): Use initialize_inline_failed.
3257 * cgraph.c: Include ipa-inline.h.
3258 (cgraph_create_node_1): Do not initialize estimated_growth.
3259 (initialize_inline_failed): More to ipa-inline-analysis.c
3260 (dump_cgraph_node): Do not dump inline flags.
3261 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3262 and disregard_inline_limits flags.
3263 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3264 time, size, estimated_growth.
3265 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3267 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3268 DECL_DISREGARD_INLINE_LIMITS.
3269 (cgraph_analyze_function): Do not initialize
3270 node->local.disregard_inline_limits.
3271 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3272 inlinable, versionable and disregard_inline_limits.
3273 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3274 cgraph_check_inline_limits, cgraph_default_inline_p,
3275 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3276 add_new_edges_to_heap): Update.
3277 (cgraph_decide_inlining_of_small_function): Update; set
3278 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3279 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3280 cgraph_decide_inlining_incrementally): Update.
3281 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3282 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3283 time, size and estimated_growth parameters.
3284 (estimate_edge_growth): Update.
3285 (initialize_inline_failed): Declare.
3286 * ipa-split.c: Include ipa-inline.h
3287 (execute_split_functions): Update.
3288 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3289 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3290 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3291 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3292 estimated_growth to INT_MIN.
3293 (inline_node_duplication_hook): Likewise.
3294 (dump_inline_summary): Dump new fields.
3295 (compute_inline_parameters): Update.
3296 (estimate_edge_time, estimate_time_after_inlining,
3297 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3298 inline_write_summary):
3299 (initialize_inline_failed): Move here from cgraph.c.
3300 * tree-sra.c: Include ipa-inline.h.
3301 (ipa_sra_preliminary_function_checks): Update.
3302 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3305 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3307 * config/i386/sse.md (V16): New mode iterator.
3309 (AVXMODEQI, AVXMODEDI): Remove.
3310 (sse2, sse3): New mode attribute.
3311 (mov<mode>): Use V16 mode iterator.
3312 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3313 (push<mode>1): Use V16 mode iterator.
3314 (movmisalign<mode>): Ditto.
3315 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3316 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3317 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3318 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3319 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3320 avx_movdqu<avxmodesuffix>.
3321 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3322 *avx_movdqu<avxmodesuffix>.
3323 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3324 avx_lddqu<avxmodesuffix>.
3325 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3326 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3327 avx_movnt<AVXMODEDI:mode>.
3328 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3329 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3331 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3334 * haifa-sched.c (prune_ready_list, schedule_block): Use
3335 sched_pressure_p rather than flag_sched_pressure.
3337 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3339 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3340 cgraph_get_node instead of cgraph_get_create_node.
3342 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3344 * cfgexpand.c (expand_debug_expr): Use
3345 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3347 2011-04-15 Michael Matz <matz@suse.de>
3349 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3350 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3351 * function.c (gimplify_parameters): Ditto.
3352 * gimplify.c (gimplify_vla_decl): Ditto.
3354 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3355 (gimple_call_set_alloca_for_var): New inline function.
3356 (gimple_call_alloca_for_var_p): Ditto.
3357 * gimple.c (gimple_build_call_from_tree): Remember
3358 CALL_ALLOCA_FOR_VAR_P state.
3359 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3361 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3362 calls if they were for VLA objects.
3364 2011-04-15 Martin Jambor <mjambor@suse.cz>
3366 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3369 2011-04-15 Martin Jambor <mjambor@suse.cz>
3372 * tree-emutls.c (lower_emutls_function_body): Call
3373 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3376 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3378 * c-decl.c (detect_field_duplicates): Call
3379 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3381 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3383 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3384 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3385 * ipa-pure-const.c (check_stmt): Call it.
3386 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3388 2011-04-15 Richard Guenther <rguenther@suse.de>
3390 PR tree-optimization/48290
3391 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3392 Properly decide inhibiting propagation based on the valueized
3393 operand. Do loop-closed SSA form preserving here ...
3394 (init_copy_prop): ... not here.
3396 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3399 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3400 (*ieee_smax<mode>3): Likewise.
3402 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3404 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3405 Replace match_operand with match_dup for the third operand in
3408 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3410 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3411 to track processing of conditionals. Update all callers.
3412 (try_combine, simplify_if_then_else): Update.
3414 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3416 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3419 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3421 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3422 instead of match_operand for operand 3.
3424 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3426 * recog.h (insn_operand_data): Add an "allows_mem" field.
3427 * genoutput.c (output_operand_data): Initialize it.
3428 * optabs.c (maybe_legitimize_operand_same_code): New function.
3429 (maybe_legitimize_operand): Use it when matching the original
3432 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3434 * gimplify.c: Fix issues in comments throughout.
3435 (voidify_wrapper_expr): Fix long line.
3436 (build_stack_save_restore): Likewise.
3437 (gimplify_loop_expr): Likewise.
3438 (gimplify_compound_lval): Likewise.
3439 (gimplify_init_ctor_eval): Likewise.
3440 (gimplify_modify_expr_rhs): Likewise.
3441 (omp_notice_threadprivate_variable): Likewise.
3443 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3445 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3446 original one if this is not a builtin function.
3448 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3451 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3452 offset it as needed based on top 2 bits in operands[3], change
3453 MEM mode to SFmode and mask those 2 bits away from operands[3].
3455 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3457 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3458 change from objc_declare_protocols() to objc_declare_protocol().
3460 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3462 * config/i386/sse.md (sse4_1): New mode attribute.
3463 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3464 avx_blend<ssemodesuffix><avxmodesuffix> and
3465 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3466 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3467 avx_blendv<ssemodesuffix><avxmodesuffix> and
3468 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3469 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3470 avx_dp<ssemodesuffix><avxmodesuffix> and
3471 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3472 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3473 (sse4_1_packusdw): Merge with *avx_packusdw.
3474 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3475 (sse4_1_pblendw): Merge with *avx_pblendw.
3476 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3477 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3478 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3480 (sse4_1_round<ssescalarmodesuffix>): Merge with
3481 *avx_round<ssescalarmodesuffix>.
3482 (aesenc): Merge with *avx_aesenc.
3483 (aesenclast): Merge with *avx_aesenclast.
3484 (aesdec): Merge with *avx_aesdec.
3485 (aesdeclast): Merge with *avx_aesdeclast.
3486 (pclmulqdq): Merge with *pclmulqdq.
3487 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3489 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3491 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3494 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3495 (align_local_variable): This. Update DECL_ALIGN.
3496 (add_stack_var): Updated.
3497 (expand_one_stack_var): Likewise.
3499 2011-04-14 Richard Guenther <rguenther@suse.de>
3501 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3503 (dse_initialize_block_local_data, dse_leave_block,
3504 record_voperand_set, get_stmt_uid): Likewise.
3505 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3506 (dse_optimize_stmt): Remove voperand set handling code.
3507 Simplify and improve to handle any kind of killing stmt.
3508 (dse_record_phi): Remove.
3509 (dse_enter_block): Simplify.
3510 (tree_ssa_dse): Likewise.
3511 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3513 2011-04-14 Jan Hubicka <jh@suse.cz>
3515 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3516 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3517 (cgraph_local_info): Remove inline_summary.
3518 * ipa-cp.c: Include ipa-inline.h.
3519 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3520 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3522 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3523 (input_overwrite_node): Do not set inline summary.
3524 (input_node): Do not stream inline summary.
3525 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3526 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3527 growth; we do not have inline parameters computed for that anyway.
3528 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3529 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3530 (inline_summary_t): New type and VECtor.
3531 (debug_inline_summary, dump_inline_summaries): Declare.
3532 (inline_summary): Use VOCtor.
3533 (estimate_edge_growth): Kill hack computing call stmt size directly.
3534 * lto-section-in.c (lto_section_name): Add inline section.
3535 * ipa-inline-analysis.c: Include lto-streamer.h
3536 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3537 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3538 (inline_summary_vec): Define.
3539 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3540 dump_inline_summaries): New functions.
3541 (estimate_function_body_sizes): Properly compute size/time of outgoing
3543 (compute_inline_parameters): Alloc inline_summary; do not compute
3544 size/time of incomming calls.
3545 (estimate_edge_time): Avoid missing time summary hack.
3546 (inline_read_summary): Read inline summary info.
3547 (inline_write_summary): Write inline summary info.
3548 (inline_free_summary): Free all hooks and inline summary vector.
3549 * lto-streamer.h: Add LTO_section_inline_summary section.
3550 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3551 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3553 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3555 * tree-vectorizer.h (vect_strided_store_supported): Add a
3556 HOST_WIDE_INT argument.
3557 (vect_strided_load_supported): Likewise.
3558 (vect_permute_store_chain): Return void.
3559 (vect_transform_strided_load): Likewise.
3560 (vect_permute_load_chain): Delete.
3561 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3562 count argument. Check that the count is a power of two.
3563 (vect_strided_load_supported): Likewise.
3564 (vect_permute_store_chain): Return void. Update after above changes.
3565 Assert that the access is supported.
3566 (vect_permute_load_chain): Likewise.
3567 (vect_transform_strided_load): Return void.
3568 * tree-vect-stmts.c (vectorizable_store): Update calls after
3569 above interface changes.
3570 (vectorizable_load): Likewise.
3571 (vect_analyze_stmt): Don't check for strided powers of two here.
3573 2011-04-14 Richard Guenther <rguenther@suse.de>
3575 PR tree-optimization/48590
3576 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3577 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3578 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3579 BUILT_IN_STACK_SAVE.
3580 * tree-ssa-dce.c (propagate_necessity): Handle
3581 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3583 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3585 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3588 2011-04-14 Richard Guenther <rguenther@suse.de>
3590 * tree.h (get_object_alignment_1): Declare.
3591 * builtins.c (get_object_alignment_1): Split out worker from ...
3592 (get_object_alignment): ... here.
3593 * fold-const.c (get_pointer_modulus_and_residue): Use
3594 get_object_alignment_1.
3596 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3598 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3600 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3601 parameter. Generalise code to handle arrays as well as vectors.
3602 (vect_setup_realignment): Update accordingly.
3603 * tree-vect-stmts.c (vectorizable_store): Likewise.
3604 (vectorizable_load): Likewise.
3606 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3608 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3609 within the per-copy loop.
3611 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3613 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3616 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3618 * doc/options.texi (Negative): Explicitly mention that the
3619 Negative chain must be circular.
3621 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3623 * function.h (block_chainon): Declare.
3624 * function.c (block_chainon): Define.
3626 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3627 Eric Weddington <eric.weddington@atmel.com>
3628 Georg-Johann Lay <avr@gjlay.de>
3630 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3632 (avr_init_builtins, avr_expand_builtin,
3633 avr_expand_delay_cycles, avr_expand_unop_builtin,
3634 avr_expand_binop_builtin ): New functions.
3635 (avr_builtin_id): New enum
3636 (struct avr_builtin_description): New struct
3637 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3638 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3640 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3641 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3642 UNSPECV_DELAY_CYCLES): new enumeration values
3643 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3644 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3645 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3646 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3647 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3648 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3649 "fmulsu"): New insns
3651 * config/avr/avr-c.c: fix line endings
3652 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3653 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3654 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3655 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3656 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3658 * doc/extend.texi (AVR Built-in Functions): New node
3659 (Target Builtins): Add documentation of AVR
3662 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3665 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3666 alone. Error if non-const data has attribute progmem.
3668 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3670 * tree.h (struct tree_constructor): Include tree_typed instead of
3672 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3673 TS_TYPED instead of TS_COMMON.
3675 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3677 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3678 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3679 (sse2_psadbw): Merge with *avx_psadbw.
3680 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3681 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3682 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3683 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3684 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3685 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3686 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3687 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3688 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3689 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3690 (ssse3_palignrti): Merge with *avx_palignrti.
3692 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3694 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3695 * tree-ssanames.c (fini_ssanames): VEC_free it.
3696 (make_ssa_name_fn): Update for VECness of free_ssanames.
3697 (release_ssa_name, release_dead_ssa_names): Likewise.
3698 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3700 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3701 TS_TYPED instead of TS_COMMON.
3703 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3705 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3706 statistics_counter_event.
3707 * tree-ssa-copyrename.c (stats): Define.
3708 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3709 statistics_counter_event.
3710 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3711 (bswap_stats, widen_mul_stats): Define.
3712 (insert_reciprocals): Increment rdivs_inserted.
3713 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3714 rfuncs_inserted. Add calls to statistics_counter_event.
3715 (execute_cse_sincos_1): Increment inserted.
3716 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3717 statistics_counter_event.
3718 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3719 of bswap_stats. Add calls to statistics_counter_event.
3720 (convert_mult_to_widen): Increment widen_mults_inserted.
3721 (convert_plusminus_to_widen): Increment maccs_inserted.
3722 (convert_mult_to_fma): Increment fmas_inserted.
3723 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3724 calls to statistics_counter_event.
3726 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3728 PR rtl-optimization/48455
3729 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3730 `temp_costs->mem_cost'.
3732 2011-04-13 Jan Hubicka <jh@suse.cz>
3734 * ipa-inline.h: New file.
3735 * ipa-inline-analysis.c: New file. Broken out of ...
3736 * ipa-inline.c: ... this file; update toplevel comment;
3737 include ipa-inline.h
3738 (inline_summary): Move to ipa-inline.h
3739 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3740 ipa-inline-analysis.c.
3741 (cgraph_estimate_time_after_inlining): Rename to
3742 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3743 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3744 to estimate_edge_growth.
3745 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3746 rename to estimate_size_after_inlining.
3747 (cgraph_mark_inline_edge): Update for new naming convention.
3748 (cgraph_check_inline_limits): Likewise.
3749 (cgraph_edge_badness): Likewise.
3750 (cgraph_decide_recursive_inlining): Likewise.
3751 (cgraph_decide_inlining_of_small_functions): Likewise.
3752 (cgraph_decide_inlining_incrementally): Likewise.
3753 (cgraph_estimate_growth): Rename to estimate_growth; move to
3754 ipa-inline-analysis.c.
3755 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3756 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3757 (compute_inline_parameters): Likewise.
3758 (compute_inline_parameters_for_current): Likewise.
3759 (pass_inline_parameters): Likewise.
3760 (inline_indirect_intraprocedural_analysis): Likewise.
3761 (analyze_function): Rename to inline_analyze_function; likewise.
3762 (add_new_function): Move to ipa-inline-analysis.c.
3763 (inline_generate_summary): Likewise.
3764 (inline_read_summary): Likewise.
3765 (inline_write_summary): Likewise.
3766 * Makefile.in (ipa-inline-analysis.c): New file.
3768 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3770 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3771 * configure: Regenerate.
3773 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3775 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3776 instead of tree_common.
3777 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3779 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3780 TS_TYPED rather than TS_COMMON.
3781 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3783 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3786 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3787 r20 around calls of __tablejump_elpm__
3789 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3792 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3794 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3796 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3798 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3799 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3800 (cfi_vec): New typedef.
3801 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3802 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3803 (cie_cfi_vec): New static variable.
3804 (cie_cfi_head): Delete.
3805 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3806 declaration changed. Use vector rather than list operations.
3807 (new_cfi): Don't initialize the dw_cfi_next field.
3808 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3809 rather than list operations.
3810 (lookup_cfa): Use vector rather than list operations.
3811 (output_cfis): New argument upto. Accept a cfi_vec rather than
3812 a dw_cfi_ref list head as argument. All callers changed.
3813 Iterate over the vector using upto as a maximum index.
3814 (output_all_cfis): New static function.
3815 (output_fde): Use vector rather than list operations. Use the
3816 new upto argument for output_cfis rather than manipulating a
3818 (dwarf2out_begin_prologue): Change initializations to match
3820 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3821 from the vector length rather than searching for the end of a list.
3822 Use output_all_cfis.
3823 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3825 2011-04-13 Nick Clifton <nickc@redhat.com>
3827 * config/rx/rx.md (movmemsi): Do not use this pattern when
3828 volatile pointers are involved.
3830 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3832 * config/i386/sse.md (pinsrbits): Remove.
3833 (sse2_packsswb): Merge with *avx_packsswb.
3834 (sse2_packssdw): Merge with *avx_packssdw.
3835 (sse2_packuswb): Merge with *avx_packuswb.
3836 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3837 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3838 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3839 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3840 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3841 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3842 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3843 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3844 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3845 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3846 (sse2_loadld): Merge with *avx_loadld.
3847 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3848 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3849 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3850 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3851 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3853 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3855 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3857 * print-tree.c (print_node): Likewise.
3858 * tree-inline.c (copy_tree_r): Likewise.
3859 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3860 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3861 instead of TS_COMMON.
3862 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3863 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3864 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3865 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3866 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3868 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3870 (TREE_CHAIN): Check for a TS_COMMON structure.
3871 (TREE_TYPE): Check for a TS_TYPED structure.
3873 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3875 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3876 cgraph_get_create_node instead of cgraph_node.
3878 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3880 * c-parser.c (c_parser_initelt): Updated call to
3881 objc_build_message_expr.
3882 (c_parser_postfix_expression): Likewise.
3884 2011-04-12 Kai Tietz <ktietz@redhat.com>
3886 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3887 MASK_MS_BITFIELD_LAYOUT bit.
3889 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3891 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3892 assert it is always true.
3893 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3896 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3898 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3899 compiling Objective-C to be more efficient.
3901 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3903 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3906 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3908 * recog.h, genoutput.c, optabs.c: Revert last patch.
3910 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3913 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3915 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3917 * recog.h (insn_operand_data): Add an "allows_mem" field.
3918 * genoutput.c (output_operand_data): Initialize it.
3919 * optabs.c (maybe_legitimize_operand_same_code): New function.
3920 (maybe_legitimize_operand): Use it when matching the original
3923 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3925 * genpreds.c (process_define_predicate): Move most processing
3926 to gensupport.c. Continue to validate the expression.
3927 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3928 (process_define_predicate): Move processing to gensupport.c.
3929 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3930 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3931 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3933 (valid_predicate_name_p): New function, split out from old
3934 genpreds.c:process_define_predicate.
3935 (process_define_predicate): New function, combining code from
3936 old genpreds.c and genrecog.c functions.
3937 (process_rtx): Call it for DEFINE_PREDICATE and
3938 DEFINE_SPECIAL_PREDICATE.
3940 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3942 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3943 size of a '%A' memory reference.
3944 (T_DREG, T_QREG): New neon_builtin_type_bits.
3945 (arm_init_neon_builtins): Assert that the load and store operands
3946 are neon_struct_operands.
3947 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3948 (NEON_ARG_MEMORY): New builtin_arg.
3949 (neon_dereference_pointer): New function.
3950 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3951 Handle NEON_ARG_MEMORY.
3952 (arm_expand_neon_builtin): Update after above interface changes.
3953 Use NEON_ARG_MEMORY for loads and stores.
3954 * config/arm/predicates.md (neon_struct_operand): New predicate.
3955 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3956 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3957 (V_four_elem): Tweak formatting.
3958 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3959 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3960 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3961 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3962 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3963 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3964 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3965 Use %A in the output template.
3966 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3967 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3968 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3969 the width of the memory access. Remove post-increment.
3970 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3972 2011-04-12 Nick Clifton <nickc@redhat.com>
3974 * config/v850/v850.c (expand_prologue): Do not use the CALLT
3975 instruction for interrupt handlers if the target is the basic V850
3977 (expand_epilogue): Likewise.
3979 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3981 PR rtl-optimization/48549
3982 * combine.c (propagate_for_debug): Also stop after BB_END of
3983 this_basic_block. Process LAST and just stop processing after it.
3984 (combine_instructions): If last_combined_insn has been deleted,
3985 set last_combined_insn to its PREV_INSN.
3987 2011-04-12 Richard Guenther <rguenther@suse.de>
3989 PR tree-optimization/46076
3990 * gimple.h (struct gimple_statement_call): Add fntype field.
3991 (gimple_call_fntype): Adjust.
3992 (gimple_call_set_fntype): New function.
3993 * gimple.c (gimple_build_call_1): Set the call function type.
3994 * gimplify.c (gimplify_call_expr): Preserve the function
3995 type the frontend used for the call.
3996 (gimplify_modify_expr): Likewise.
3997 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3999 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4001 * tree-ssa.c (useless_type_conversion_p): Function pointer
4002 conversions are useless.
4004 2011-04-12 Martin Jambor <mjambor@suse.cz>
4006 * cgraph.h (cgraph_node): Remove function declaration.
4007 (cgraph_create_node): Declare.
4008 (cgraph_get_create_node): Likewise.
4009 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4010 Updated all callers.
4011 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4012 the decl does not already exist. Call cgraph_get_create_node instead
4014 (cgraph_get_create_node): New function.
4015 (cgraph_same_body_alias): Update comment.
4016 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4017 assert it does not return NULL.
4018 (cgraph_update_edges_for_call_stmt): Likewise.
4019 (cgraph_clone_edge): Likewise.
4020 (cgraph_create_virtual_clone): Likewise.
4021 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4022 instead of cgraph_node.
4023 (cgraph_add_new_function): Call cgraph_create_node or
4024 cgraph_get_create_node instead of cgraph_node.
4025 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4026 instead of cgraph_node.
4027 (record_eh_tables): Likewise.
4028 (mark_address): Likewise.
4029 (mark_load): Likewise.
4030 (build_cgraph_edges): Call cgraph_get_create_node instead
4032 (rebuild_cgraph_edges): Likewise.
4033 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4034 instead of cgraph_node.
4035 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4037 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4038 cgraph_create_node instead of cgraph_node.
4039 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4041 * lto-cgraph.c (input_node): Likewise.
4042 * lto-streamer-in.c (input_function): Likewise.
4043 * varasm.c (mark_decl_referenced): Likewise.
4044 (assemble_alias): Likewise.
4046 2011-04-12 Martin Jambor <mjambor@suse.cz>
4048 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4049 instead of cgraph_node and assert it does not return NULL.
4050 * lto-streamer-in.c (lto_read_body): Likewise.
4051 * omp-low.c (new_omp_context): Likewise.
4052 (create_task_copyfn): Likewise.
4053 * tree-emutls.c (lower_emutls_function_body): Likewise.
4054 * matrix-reorg.c (transform_allocation_sites): Likewise.
4056 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4059 * c-typeck.c (build_asm_expr): Error out on attempts to use
4060 void type outputs or inputs for constraints that allow reg or
4063 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4064 Richard Earnshaw <rearnsha@arm.com>
4067 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4068 to use sign-magnitude offsets. Reject unsupported unaligned
4069 cases. Add detailed description in comments.
4070 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4071 condition from TARGET_32BIT to TARGET_ARM.
4073 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4075 * tree.h (struct typed_tree): New.
4076 (struct tree_common): Include it instead of tree_base.
4077 (TREE_TYPE): Update for new location of type field.
4078 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4079 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4080 (union tree_node): Add typed field.
4081 * treestruct.def (TS_TYPED): New.
4082 * lto-streamer.c (check_handled_ts_structures): Handle it.
4083 * tree.c (MARK_TS_TYPED): New macro.
4084 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4086 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4088 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4089 (force_nonfallthru): Do not alter the loop nest if no basic block
4092 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4094 * config/i386/sse.md (VI): New mode iterator.
4096 (AVX256MODEI): Ditto.
4097 (AVXMODEF4P): Ditto.
4098 (avxvecpsmode): Ditto.
4099 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4100 (sse2_andnot<mode>3): New expander.
4101 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4102 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4103 (<any_logic:code><mode>3): Use VI mode iterator.
4104 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4105 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4106 (*andnottf3): Handle AVX three-operand constraints.
4107 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4109 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4110 Robert Millan <rmh@gnu.org>
4112 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4113 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4114 GNU_USER_DYNAMIC_LINKER64): Define.
4115 (REG_NAME): Don't undefine.
4116 (MD_UNWIND_SUPPORT): Undefine.
4117 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4118 (REG_NAME): Don't undefine.
4119 (MD_UNWIND_SUPPORT): Undefine.
4120 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4122 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4124 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4125 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4127 2011-04-11 Xinliang David Li <davidxl@google.com>
4129 * value-profile.c (check_ic_target): New function.
4130 (gimple_ic_transform): Sanity check indirect call target.
4131 * gimple-low.c (gimple_check_call_args): Interface change.
4132 (gimple_check_call_matching_types): New function.
4133 * tree-inline.c (tree_can_inline_p): Call new function.
4135 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4137 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4138 tree-pretty-print.h & realmpfr.h.
4140 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4143 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4144 (setup_allocno_and_important_classes): Ditto.
4146 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4148 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4149 GNU_USER_DYNAMIC_LINKER.
4150 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4151 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4152 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4153 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4154 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4155 GNU_USER_TARGET_OS_CPP_BUILTINS.
4156 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4157 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4158 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4159 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4160 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4161 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4162 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4163 GNU_USER_TARGET_OS_CPP_BUILTINS.
4164 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4165 GNU_USER_DYNAMIC_LINKER.
4166 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4167 GNU_USER_TARGET_OS_CPP_BUILTINS.
4168 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4169 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4170 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4171 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4172 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4173 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4174 GNU_USER_DYNAMIC_LINKER64): Remove.
4175 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4176 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4177 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4178 GNU_USER_DYNAMIC_LINKER.
4179 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4180 GNU_USER_TARGET_OS_CPP_BUILTINS.
4181 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4182 GNU_USER_TARGET_OS_CPP_BUILTINS.
4183 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4184 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4185 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4186 GNU_USER_TARGET_OS_CPP_BUILTINS.
4187 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4188 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4189 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4190 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4191 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4192 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4193 GNU_USER_DYNAMIC_LINKER.
4194 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4195 GNU_USER_TARGET_OS_CPP_BUILTINS.
4196 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4197 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4198 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4199 GNU_USER_DYNAMIC_LINKER.
4200 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4201 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4202 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4203 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4204 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4205 GNU_USER_DYNAMIC_LINKER.
4206 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4207 GNU_USER_DYNAMIC_LINKERN32.
4208 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4209 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4210 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4211 GNU_USER_DYNAMIC_LINKER32.
4212 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4213 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4214 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4215 GNU_USER_DYNAMIC_LINKER.
4216 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4217 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4218 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4219 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4220 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4221 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4222 GNU_USER_DYNAMIC_LINKER32.
4223 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4224 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4225 GNU_USER_DYNAMIC_LINKER.
4226 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4227 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4228 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4229 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4230 GNU_USER_DYNAMIC_LINKER64.
4231 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4232 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4233 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4234 GNU_USER_DYNAMIC_LINKER.
4235 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4236 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4237 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4238 GNU_USER_DYNAMIC_LINKER.
4239 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4240 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4241 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4242 GNU_USER_DYNAMIC_LINKER32.
4243 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4244 GNU_USER_DYNAMIC_LINKER64.
4245 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4246 GNU_USER_DYNAMIC_LINKER64.
4247 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4248 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4249 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4250 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4251 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4253 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4255 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4256 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4257 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4258 GNU_USER_DYNAMIC_LINKER.
4259 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4260 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4261 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4262 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4263 GNU_USER_DYNAMIC_LINKER64.
4264 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4265 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4266 GNU_USER_LINK_EMULATION.
4267 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4268 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4269 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4270 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4271 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4272 CPP_SPEC, CC1_SPEC): Remove.
4273 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4274 (GNU_USER_DYNAMIC_LINKER): Define.
4275 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4276 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4277 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4278 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4279 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4280 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4281 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4282 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4283 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4284 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4285 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4286 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4287 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4288 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4289 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4290 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4291 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4292 GNU_USER_DYNAMIC_LINKER.
4293 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4294 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4295 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4296 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4297 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4298 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4299 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4300 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4301 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4302 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4304 2011-04-11 Kai Tietz <ktietz@redhat.com>
4308 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4309 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4311 (ix86_is_msabi_thiscall): Removed.
4312 (ix86_is_type_thiscall): Likewise.
4313 (ix86_get_callcvt): New function.
4314 (ix86_comp_type_attributes): Simplify check.
4315 (ix86_function_regparm): Use ix86_get_callcvt for calling
4316 convention attribute checks.
4317 (ix86_return_pops_args): Likewise.
4318 (ix86_static_chain): Likewise.
4319 (x86_this_parameter): Likewise.
4320 (x86_output_mi_thunk): Likewise.
4321 (ix86_function_type_abi): Optimize check for types without attributes.
4322 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4323 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4324 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4326 (IX86_BASE_CALLCVT): Helper macro.
4327 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4328 Use ix86_get_callcvt for calling convention attribute checks and avoid
4329 symbol-decoration for stdcall in TARGET_RTD case.
4330 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4332 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4335 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4337 * config/i386/sse.md (VI_128): New mode iterator.
4338 (VI12_128): Rename from SSEMODE12.
4339 (VI14_128): Rename from SSEMODE14.
4340 (VI124_128): New mode iterator.
4341 (VI24_128): Rename from SSEMODE248.
4342 (VI248_128): Rename from SSEMODE248.
4343 (SSEMODE124C8): Remove.
4344 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4345 (*sse2_<plusminus_insn><mode>3): Merge with
4346 *avx_<plusminus_insn><mode>3.
4347 (*mulv8hi3): Merge with *avx_mulv8hi3.
4348 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4349 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4350 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4351 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4352 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4353 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4354 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4355 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4356 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4357 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4358 (*<smaxmin:code>v8hi3): Ditto.
4359 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4360 (*<smaxmin:code>v16qi3): Ditto.
4361 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4362 (*sse2_eq<mode>3): Ditto.
4363 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4364 (*sse2_gt<mode>3): Ditto.
4365 (vcondv2di): Split out of vcond<mode>.
4366 (vconduv2di): Split out of vcondu<mode>.
4368 2011-04-11 Richard Guenther <rguenther@suse.de>
4370 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4371 before calling tree_low_cst.
4373 2011-04-11 Richard Guenther <rguenther@suse.de>
4375 * stor-layout.c (layout_type): Compute all array index size operations
4376 in the original type.
4377 (initialize_sizetypes): Add comment.
4378 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4380 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4382 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4384 2011-04-11 Martin Jambor <mjambor@suse.cz>
4386 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4387 of cgraph_node, handle NULL return value.
4388 (cgraph_global_info): Likewise.
4389 (cgraph_rtl_info): Likewise.
4390 * tree-inline.c (estimate_num_insns): Likewise.
4391 * gimplify.c (unshare_body): Likewise.
4392 (unvisit_body): Likewise.
4393 (gimplify_body): Likewise.
4394 * predict.c (optimize_function_for_size_p): Likewise.
4395 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4396 (call_may_clobber_ref_p_1): Likewise.
4397 * varasm.c (function_section_1): Likewise.
4398 (assemble_start_function): Likewise.
4400 2011-04-11 Martin Jambor <mjambor@suse.cz>
4402 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4404 * final.c (rest_of_clean_state): Likewise.
4405 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4406 * passes.c (pass_init_dump_file): Likewise.
4407 (execute_all_ipa_transforms): Likewise.
4408 (function_called_by_processed_nodes_p): Likewise.
4409 * predict.c (maybe_hot_frequency_p): Likewise.
4410 (probably_never_executed_bb_p): Likewise.
4411 (compute_function_frequency): Likewise.
4412 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4413 (unnest_nesting_tree_1): Likewise.
4414 (lower_nested_functions): Likewise.
4415 * tree-optimize.c (execute_fixup_cfg): Likewise.
4416 (tree_rest_of_compilation): Likewise.
4417 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4418 * tree-sra.c (ipa_early_sra): Likewise.
4419 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4420 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4421 * ipa.c (record_cdtor_fn): Likewise.
4422 * ipa-inline.c (cgraph_early_inlining): Likewise.
4423 (compute_inline_parameters_for_current): Likewise.
4424 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4425 * ipa-pure-const.c (local_pure_const): Likewise.
4426 * ipa-split.c (split_function): Likewise.
4427 (execute_split_functions): Likewise.
4428 * cgraphbuild.c (build_cgraph_edges): Likewise.
4429 (rebuild_cgraph_edges): Likewise.
4430 (cgraph_rebuild_references): Likewise.
4431 (remove_cgraph_callee_edges): Likewise.
4432 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4433 (verify_cgraph_node): Likewise.
4434 (cgraph_analyze_functions): Likewise.
4435 (cgraph_preserve_function_body_p): Likewise.
4436 (save_inline_function_body): Likewise.
4437 (save_inline_function_body): Likewise.
4438 * tree-inline.c (copy_bb): Likewise.
4439 (optimize_inline_calls): Likewise.
4441 2011-04-11 Martin Jambor <mjambor@suse.cz>
4443 PR tree-optimization/48195
4444 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4445 ipa_check_create_edge_args.
4446 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4447 ipa_check_create_edge_args.
4448 * ipa-inline.c (inline_generate_summary): Do not call
4449 ipa_check_create_node_params and ipa_check_create_edge_args.
4450 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4451 ipa_check_create_edge_args.
4453 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4455 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4457 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4458 * function.c (record_hard_reg_sets): Likewise.
4459 * ira.c (compute_regs_asm_clobbered): Likewise.
4460 * sched-deps.c (sched_analyze_1): Likewise.
4461 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4463 2011-04-09 Xinliang David Li <davidxl@google.com>
4465 PR tree-optimization/PR48484
4466 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4467 has_valid_pred lazily
4469 2011-04-09 Duncan Sands <baldrick@free.fr>
4471 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4473 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4475 * combine.c (combine_validate_cost): Adjust comments. Set registered
4476 cost of I0 to zero at the end, if any.
4478 2011-04-08 Xinliang David Li <davidxl@google.com>
4480 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4481 to insane profile data.
4483 2011-04-08 Xinliang David Li <davidxl@google.com>
4485 * ipa-cp.c (ipcp_update_profiling): Correct
4486 negative scale factor due to insane profile data.
4488 2011-04-08 Xinliang David Li <davidxl@google.com>
4490 * final.c (dump_basic_block_info): New function.
4491 (final): Dump basic block.
4492 (final_scan_insn): Remove old dump.
4494 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4497 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4500 2011-04-08 Michael Matz <matz@suse.de>
4503 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4505 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4506 * rtl.h (rebuild_jump_labels_chain): Declare.
4507 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4508 insns inserted on edges.
4510 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4512 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4513 * config/arm/arm-arches.def: New.
4514 * config/arm/arm-opts.h: New.
4515 * config/arm/genopt.sh: New.
4516 * config/arm/arm-tables.opt: New (generated).
4517 * config/arm/arm.c (arm_handle_option, arm_target_help,
4518 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4519 (all_architectures): Get most table contents from arm-arches.def.
4520 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4521 arm_selected_tune here.
4522 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4523 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4524 (march=, mcpu=, mtune=): Use Enum and Var.
4525 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4526 (arm.o): Update dependencies.
4528 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4530 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4532 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4533 (write_typed_alloc_defns): Likewise.
4534 (main): Calls write_typed_alloc_defns with output_header.
4536 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4539 * ira-color.c (setup_profitable_hard_regs): Add comments.
4540 Don't take prohibited hard regs into account.
4541 (setup_conflict_profitable_regs): Rename to
4542 get_conflict_profitable_regs.
4543 (check_hard_reg_p): Check prohibited hard regs.
4545 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4547 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4548 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4549 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4551 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4554 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4555 move from floating point to shift amount register.
4556 (emit_move_sequence): Remove secondary reload support for floating
4557 point to shift amount amount register copies.
4558 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4559 amount register copies.
4560 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4561 register, return false if mode isn't a scalar integer mode.
4562 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4564 2011-04-08 Richard Guenther <rguenther@suse.de>
4566 * gimple.c (gimple_call_flags): Remove kludge.
4568 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4570 * sel-sched.c (sel_region_init): Move call to
4571 sel_setup_region_sched_flags after setup_current_loop_nest.
4573 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4575 PR rtl-optimization/48272
4576 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4577 init_insn_reg_pressure_info. Adjust a caller.
4578 * sched-int.h (init_insn_reg_pressure_info): Declare.
4579 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4580 when sched-pressure is enabled.
4582 2011-04-08 Richard Guenther <rguenther@suse.de>
4584 * gimple.c (gimple_set_modified): Do not queue calls to
4585 MODIFIED_NORETURN_CALLS here ...
4586 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4588 2011-04-08 Richard Guenther <rguenther@suse.de>
4591 * toplev.c (lang_dependent_init): Do not open asm_out_file
4592 in WPA mode, nor perform debug machinery initialization.
4593 (finalize): Do not unlink asm_out_file in WPA mode.
4595 2011-04-08 Richard Guenther <rguenther@suse.de>
4597 * gimple.h (gimple_call_fntype): New function.
4598 (gimple_call_return_type): Use it.
4599 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4600 * gimple-low.c (gimple_check_call_args): Likewise.
4601 * gimple.c (gimple_call_flags): Likewise.
4602 (gimple_call_arg_flags): Likewise.
4603 (gimple_call_return_flags): Likewise.
4604 * tree-cfg.c (verify_gimple_call): Likewise.
4605 (do_warn_unused_result): Likewise.
4606 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4607 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4609 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4611 PR rtl-optimization/48235
4612 * sel-sched.c (code_motion_process_successors): Recompute the last
4613 insn in basic block if control flow changed.
4614 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4615 Update condition for ilist_remove.
4617 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4619 PR rtl-optimization/48302
4620 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4621 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4622 it to record added preheader blocks.
4623 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4624 on to sel_add_loop_preheaders.
4625 (sel_region_init): Move call to setup_current_loop_nest after
4628 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4631 * cfgloop.h (loop_has_exit_edges): New helper.
4632 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4634 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4635 that have no exit edges.
4637 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4639 PR rtl-optimization/48442
4640 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4641 all callers. Adjust assert.
4643 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4645 PR tree-optimization/48377
4646 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4647 is_packed to true even for types with smaller TYPE_ALIGN than
4650 2011-04-08 Richard Guenther <rguenther@suse.de>
4653 * doc/tm.texi: Re-generate.
4655 2011-04-08 Wei Guozhi <carrot@google.com>
4658 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4659 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4660 * config/arm/arm.md (*push_multi): Change the length computation to
4663 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4665 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4666 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4667 * doc/tm.texi: Regenerate.
4668 * system.h (ASM_OUTPUT_BSS): Poison.
4669 * varasm.c (asm_output_bss): Remove function.
4670 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4672 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4673 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4674 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4675 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4677 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4679 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4681 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4683 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4685 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4688 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4690 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4691 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4692 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4694 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4695 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4696 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4697 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4698 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4699 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4700 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4701 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4702 options. Don't map other m68k options manually. Don't handle
4703 old-style options as canonical.
4704 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4705 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4707 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4709 * basic-block.h (force_nonfallthru): Move to...
4710 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4711 (force_nonfallthru): ...here.
4712 * cfghooks.c (force_nonfallthru): New function.
4713 * cfgrtl.c (force_nonfallthru): Rename into...
4714 (rtl_force_nonfallthru): ...this.
4715 (commit_one_edge_insertion): Do not set AUX field.
4716 (commit_edge_insertions): Do not discover new basic blocks.
4717 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4718 (cfg_layout_rtl_cfg_hooks): Likewise.
4719 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4720 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4721 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4723 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4725 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4728 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4730 * config/i386/sse.md: Update copyright year.
4731 (avxcvtvecmode): Remove.
4732 (sse_movhlps): Merge with *avx_movhlps.
4733 (sse_movlhps): Merge with *avx_movlhps.
4734 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4735 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4736 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4737 (sse_loadhps): Merge with *avx_loadhps.
4738 (sse_storelps): Merge with *avx_storelps.
4739 (sse_loadlps): Merge with *avx_loadlps.
4740 (sse_movss): Merge with *avx_movss.
4741 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4742 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4743 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4744 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4745 (vec_set<mode>_0): Ditto.
4746 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4747 (sse4_1_insertps): Merge with *avx_insertps.
4748 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4749 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4750 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4751 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4752 (sse2_storehpd): Merge with *avx_storehpd.
4753 (sse2_loadhpd): Merge with *avx_loadhpd.
4754 (sse2_loadlpd): Merge with *avx_loadlpd.
4755 (sse2_movsd): Merge with *avx_movsd.
4756 (*vec_concatv2df): Merge with *vec_concatv2df.
4758 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4761 * combine.c (combine_instructions): Add last_combined_insn,
4762 update it if insn is after it, pass it to all try_combine calls.
4763 (try_combine): Add last_combined_insn parameter, pass it instead of
4764 i3 to propagate_for_debug.
4766 2011-04-07 Nick Clifton <nickc@redhat.com>
4768 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4769 to handle MDR <-> data register transfers.
4770 (movhi_internal): Likewise.
4772 2011-04-07 Alan Modra <amodra@gmail.com>
4774 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4775 previous stack info.
4777 2011-04-07 Tom de Vries <tom@codesourcery.com>
4780 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4781 flow_find_cross_jump. Swap variables to implement backward replacement.
4782 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4784 2011-04-07 Tom de Vries <tom@codesourcery.com>
4787 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4788 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4790 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4791 src1 or src2. Redirect edges to the last basic block. Update
4792 frequency and count on multiple basic blocks in case of fallthru.
4794 2011-04-07 Tom de Vries <tom@codesourcery.com>
4797 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4799 (old_insns_match_p): Change return type. Replace return false/true
4800 with return dir_none/dir_both. Use can_replace_by.
4801 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4802 direction from dir_p. Register replacement direction in dir, last_dir
4803 and afterlast_dir. Handle new return type of old_insns_match_p using
4804 merge_dir. Return replacement direction in dir_p.
4805 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4806 return type of old_insns_match_p.
4807 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4808 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4809 flow_find_cross_jump.
4810 * basic-block.h (enum replace_direction): New type.
4811 (flow_find_cross_jump): Add parameter to declaration.
4813 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4815 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4816 (AVXMODEDCVTPS2DQ): Ditto.
4817 (VEC_FLOAT_MODE): Ditto.
4818 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4819 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4820 (<any_logic:code><mode>3): Use VF mode iterator.
4821 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4822 Use VF mode iterator.
4823 (copysign<mode>3): Use VF mode iterator.
4824 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4825 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4826 (*<any_logic:code><MODEF:mode>3): Merge with
4827 *avx_<any_logic:code><MODEF:mode>3.
4828 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4829 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4830 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4831 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4832 (sse2_cvtdq2ps): Use %v modifier.
4833 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4834 (avx_cvtps2dq<avxmodesuffix>): Remove.
4835 (sse2_cvtps2dq): Use %v modifier.
4836 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4837 (avx_cvttps2dq<avxmodesuffix>): Remove.
4838 (sse2_cvttps2dq): Use %v modifier.
4839 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4840 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4841 (sse2_cvtsd2siq): Fix insn template.
4842 (sse2_cvtsd2siq_2): Ditto.
4843 (sse2_cvttsd2siq): Ditto.
4844 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4845 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4847 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4849 * gcov-io.c: Use GCC Runtime Library Exception.
4851 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4854 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4855 as base_reg whatever register reg has been eliminated to, instead
4856 of hardcoding STACK_POINTER_REGNUM.
4858 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4860 * doc/tm.texi.in: Document C target hooks as separate from general
4862 * doc/tm.texi: Regenerate.
4863 * genhooks.c (struct hook_desc): Add docname field.
4864 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4866 (hook_array): Include c-target.def.
4867 (emit_documentation): Use docname field in output.
4868 (emit_init_macros): Take docname argument. Only emit definitions
4869 for hooks matching docname.
4870 (main): Expect additional arguments in all cases. Pass argument
4871 to emit_init_macros.
4872 * target.def: Move initial macro definitions and comments to
4873 target-hooks-macros.h.
4874 (gcc_targetcm): Move to c-family/c-target.def.
4875 * target.h (targetcm): Move declaration to c-family/c-target.h.
4876 * targhooks.c (default_handle_c_option): Move to
4878 * targhooks.h (default_handle_c_option): Move declaration to
4879 c-family/c-common.h.
4880 * target-hooks-macros.h: New file.
4881 * config.gcc (target_has_targetcm): Define and use to add to
4882 c_target_objs and cxx_target_objs.
4883 * config/default-c.c: New file.
4884 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4885 of target.h and target-def.h.
4886 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4887 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4888 darwin_check_cfstring_format_arg): Make static.
4889 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4890 TARGET_STRING_OBJECT_REF_TYPE_P,
4891 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4892 * config/darwin-protos.h (darwin_objc_construct_string,
4893 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4895 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4896 TARGET_STRING_OBJECT_REF_TYPE_P,
4897 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4898 * config/t-darwin (darwin-c.o): Update dependencies.
4899 * system.h (TARGET_HAS_TARGETCM): Poison.
4900 * Makefile.in (TARGET_H): Update.
4901 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4902 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4903 (default-c.o): New target.
4904 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4905 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4906 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4908 (build/genhooks.o): Update dependencies.
4910 2011-04-06 Richard Guenther <rguenther@suse.de>
4912 * ipa-inline.c (enum inlining_mode): Remove.
4913 (cgraph_flatten): Use some other token.
4914 (cgraph_edge_early_inlinable_p): New function, split out from ...
4915 (cgraph_perform_always_inlining): New function, split out from ...
4916 (cgraph_decide_inlining_incrementally): ... here.
4917 (cgraph_mark_inline_edge): Adjust.
4918 (cgraph_early_inlining): Re-structure.
4919 (pass_early_inline): Require SSA form.
4921 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4922 Julian Brown <julian@codesourcery.com>
4923 Mark Shinwell <shinwell@codesourcery.com>
4925 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4926 LO_REGS only for Thumb-1.
4927 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4928 be used in short instructions when optimising for size on Thumb-2.
4930 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4932 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4933 associated with user returns to be preserved.
4935 2011-04-06 Tristan Gingold <gingold@adacore.com>
4937 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4938 symbol_queue_size, DBXOUT_DECR_NESTING,
4939 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4940 if XCOFF_DEBUGGING_INFO.
4942 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4944 * config/i386/i386.md (attribute isa): New.
4945 (attribute enabled): New.
4946 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4947 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4948 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4949 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4950 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4951 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4952 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4953 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4955 * config/i386/sse.md (VF): New mode iterator.
4959 (SSEMODEF4): Remove.
4960 (attribute sse): Handle V8SF and V4DF modes.
4961 (<absneg:code><mode>2): Use VF mode iterator.
4962 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4964 (<plusminus_insn><mode>3): Use VF mode iterator.
4965 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4966 Use VF mode iterator.
4967 (<sse>_vm<plusminus_insn><mode>3): Merge with
4968 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4969 (mul<mode>3): Use VF mode iterator.
4970 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4971 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4973 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4974 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4975 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
4976 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
4978 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4979 Use VF1 mode iterator.
4980 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4981 (sqrt<VF2:mode>2): New expander.
4982 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4983 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4984 and sqrtv2df2. Use VF mode iterator.
4985 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
4987 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4988 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4989 Use VF1 mode iterator.
4990 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4991 (<smaxmin:code><mode>3): Use VF mode iterator.
4992 (*<smaxmin:code><mode>3_finite): Merge with
4993 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
4994 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4995 (<sse>_vm<smaxmin:code><mode>2): Merge with
4996 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
4997 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
4999 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5001 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5002 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5003 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5004 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5005 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5007 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5008 Use VF_128 mode iterator.
5009 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5011 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5012 VF_128 mode iterator.
5013 (vcond<mode>): Use VF mode iterator.
5014 * config/i386/predicates.md (sse_comparison_operator): Merge with
5015 avx_comparison_float_operator. Do not declare as special_predicate.
5016 * config/i386/i386.c (struct builtin_description): Update for renamed
5018 (ix86_expand_args_builtin): Ditto.
5019 (ix86_expand_sse_compare_mask): Ditto.
5021 2011-04-06 Richard Guenther <rguenther@suse.de>
5023 * tree-inline.c (estimate_num_insns): For calls simply account
5024 for all passed arguments and a used return value.
5026 2011-04-06 Richard Guenther <rguenther@suse.de>
5028 PR tree-optimization/47663
5029 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5030 call_stmt_time fields.
5031 (cgraph_edge_inlinable_p): Declare.
5032 (cgraph_edge_recursive_p): New inline function.
5033 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5034 (cgraph_clone_edge): Copy it.
5035 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5036 Account for call stmt time.
5037 (cgraph_estimate_time_after_inlining): Take edge argument.
5038 (cgraph_estimate_edge_growth): Account call stmt size.
5039 (cgraph_estimate_size_after_inlining): Take edge argument.
5040 (cgraph_mark_inline_edge): Adjust.
5041 (cgraph_check_inline_limits): Likewise.
5042 (cgraph_recursive_inlining_p): Remove.
5043 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5044 (cgraph_decide_recursive_inlining): Take edge argument and
5046 (cgraph_decide_inlining_of_small_functions): Do not avoid
5047 diags for recursive inlining here.
5048 (cgraph_flatten): Adjust.
5049 (cgraph_decide_inlining_incrementally): Likewise.
5050 (estimate_function_body_sizes): Remove call cost handling.
5051 (compute_inline_parameters): Initialize caller edge call costs.
5052 (cgraph_estimate_edge_growth): New function.
5053 (cgraph_estimate_growth): Use it.
5054 (cgraph_edge_badness): Likewise.
5055 (cgraph_check_inline_limits): Take an edge argument.
5056 (cgraph_decide_inlining_of_small_functions): Adjust.
5057 (cgraph_decide_inlining): Likewise.
5058 * tree-inline.c (estimate_num_insns): Only account for call
5059 return value if it is used.
5060 (expand_call_inline): Avoid diagnostics on recursive inline
5062 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5063 (input_edge): Input edge call costs.
5065 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5067 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5069 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5071 * doc/invoke.texi (Spec Files): Fix typo.
5073 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5075 * profile.c (branch_prob): Move declaration of local variable. Remove
5076 obsolete ??? comment. Expand the location explicitly instead of using
5077 the LOCATION_FILE and LOCATION_LINE macros.
5079 2011-04-06 Wei Guozhi <carrot@google.com>
5082 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5083 (arm_cond_branch): Likewise.
5084 (arm_cond_branch_reversed): Likewise.
5085 (arm_jump): Likewise.
5086 (push_multi): Likewise.
5087 * config/arm/constraints.md (Py): New constraint.
5089 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5092 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5094 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5095 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5096 #ifdef DBX_DEBUGGING_INFO.
5098 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5101 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5102 if old and new states differ.
5104 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5106 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5107 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5108 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5109 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5110 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5112 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5113 ColdFire options to -mcpu= options.
5115 2011-04-05 Jeff Law <law@redhat.com>
5117 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5118 check if BB is a successor of LOOP->header and return
5119 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5121 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5123 * cprop.c (struct reg_use): Remove.
5124 (reg_use_table): Make an array of RTX.
5125 (find_used_regs, constprop_register, local_cprop_pass,
5126 bypass_block): Simplify users of reg_use_table.
5127 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5128 on one of the uses found by find_used_regs.
5130 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5133 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5136 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5138 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5140 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5142 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5145 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5147 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5149 * combine.c: Include obstack.h.
5150 (struct insn_link): Define.
5151 (uid_log_links): Adjust type.
5152 (FOR_EACH_LOG_LINK): New macro.
5153 (insn_link_obstack): Declare.
5154 (alloc_insn_link): Define.
5155 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5156 type of link variables.
5157 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5158 (try_combine, record_promoted_values, distribute_notes): Likewise.
5159 (distribute_links): Likewise. Tweak prototype.
5160 (clear_log_links): Delete.
5161 (adjust_for_new_dest): Call alloc_insn_link.
5162 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5164 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5166 * gcse.c (modify_mem_list): Convert to an array of VECs.
5167 (canon_modify_mem_list, compute_transp): Tweak formatting.
5168 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5169 (load_killed_in_block_p): Likewise.
5170 (record_last_mem_set_info): Likewise.
5171 (clear_modify_mem_tables): Likewise.
5173 2011-04-05 Tom de Vries <tom@codesourcery.com>
5176 * function.c (emit_use_return_register_into_block): Only define if
5179 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5181 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5183 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5185 * config/rx/rx-opts.h: New.
5186 * config/rx/rx.c (rx_cpu_type): Remove.
5187 (rx_handle_option): Don't assert that global structures are in
5188 use. Access variables via opts pointer. Defer most handling of
5189 OPT_mint_register_. Use error_at.
5190 (rx_option_override): Handle deferred OPT_mint_register_ here.
5191 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5192 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5193 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5194 (rx_cpu_types): New Enum and EnumValue entries.
5195 (mint-register=): Use Defer and use Var accordingly.
5197 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5199 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5200 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5201 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5203 (debug_free_queue, debug_nesting, symbol_queue_index):
5205 * dbxout.c: ...to here. Make static.
5207 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5209 * gcse.c (modify_pair): Define. Define a VEC of it.
5210 (canon_modify_mem_list): Convert to an array of VECs.
5211 (free_insn_expr_list_list): Delete.
5212 (clear_modify_mem_tables): Call VEC_free instead.
5213 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5214 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5215 (canon_list_insert, compute_transp): Likewise.
5217 2011-04-05 Tom de Vries <tom@codesourcery.com>
5220 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5223 2011-04-05 Tom de Vries <tom@codesourcery.com>
5226 * function.c (emit_use_return_register_into_block): New function.
5227 (thread_prologue_and_epilogue_insns): Use
5228 emit_use_return_register_into_block.
5230 2011-04-05 Tom de Vries <tom@codesourcery.com>
5233 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5236 2011-04-05 Tom de Vries <tom@codesourcery.com>
5238 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5240 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5242 * config/arm/arm.md (define_constants for unspec): Replace with
5244 (define_constants for unspecv): Replace with define_c_enum.
5245 * config/arm/neon.md (define_constants for unspec): Replace with
5248 2011-04-04 Richard Henderson <rth@redhat.com>
5251 * dwarf2out.c (output_line_info): Always emit line info from
5252 at least one section.
5253 (dwarf2out_init): Create text_section_line_info here ...
5254 (set_cur_line_info_table): ... not here.
5256 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5259 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5262 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5264 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5266 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5267 (expr_equiv_p): Remove.
5268 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5269 (hash_scan_set): Update call to insert_set_in_table.
5270 (dump_hash_table): Dump <dest, src> pair.
5271 (lookup_set): Simplify. Lookup <dest, src> pair.
5272 (compute_transp): Remove, fold heavily simplified code into...
5273 (compute_local_properties): ...here. Expect COMP and TRANSP
5275 (find_avail_set): Take set directly from struct expr.
5276 (find_bypass-set): Likewise.
5277 (bypass_block): Likewise.
5278 (cprop_insn): Likewise. Remove redundant INSN_P test.
5280 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5281 checks on form of COND from find_implicit_sets to here.
5282 (find_implicit_sets): Cleanup control flow. Split critical edges
5283 if it exposes implicit sets. Allocate/resize implicit_sets as
5285 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5286 changed something. Run df_analyze after find_implicit_sets if any
5287 edges were split. Do not allocate implicit_sets here.
5289 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5290 (gcse_obstack): Renamed to cprop_obstack.
5291 (GNEW, GNEWVEC, GNEWVAR): Remove.
5293 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5294 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5295 (gcse_alloc): Likewise, and rename to cprop_alloc.
5296 (alloc_gcse_men, free_gcse_mem): Remove.
5297 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5298 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5299 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5301 * cprop.c (oprs_not_set_p): Remove.
5302 (mark_set, mark_clobber): Remove.
5303 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5304 (reg_not_set_p): New function.
5305 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5306 (cprop_insn): Likewise.
5307 (cprop_jump): Use FOR_EACH_EDGE.
5309 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5312 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5313 (rank_for_schedule): Use scheduled_insns vector instead of
5314 last_scheduled_insn.
5315 (ok_for_early_queue_removal): Likewise.
5316 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5318 (choose_ready): Likewise.
5319 (commit_schedule): Use VEC_iterate.
5320 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5321 a dbg_cnt, use it and ensure the first insn is in the ready list.
5322 (haifa_sched_init): Allocate scheduled_insns.
5323 (sched_extend_ready_list): Don't allocate it; reserve space.
5324 (haifa_sched_finish): Free it.
5326 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5328 * optc-gen.awk: Always remove type from Variable entry before
5329 recording in var_seen.
5331 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5333 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5334 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5335 call to tidy_fallthru_edges.
5337 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5339 * doc/options.texi (ToLower): Document.
5340 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5341 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5342 * opts.h (cl_option): Add cl_tolower field.
5343 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5344 arguments with lowercase strings.
5345 * config/rx/rx.opt (mcpu=): Add ToLower.
5346 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5349 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5351 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5353 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5355 * config/vax/vax.c: Include reload.h.
5357 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5359 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5360 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5361 (sparc_preferred_reload_class): New function.
5363 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5366 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5367 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5369 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5371 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5372 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5374 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5376 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5377 (ASM_OUTPUT_ALIGNED_BSS): Define.
5379 2011-04-03 Michael Matz <matz@suse.de>
5381 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5382 and next_slot members.
5383 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5384 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5385 (lto_streamer_cache_append): Declare.
5386 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5387 unsigned index, remove offset parameter, ensure that we append
5388 or update existing entries.
5389 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5390 parameter, update next_slot for append.
5391 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5393 (lto_streamer_cache_insert_at): Likewise.
5394 (lto_streamer_cache_append): New function.
5395 (lto_streamer_cache_lookup): Use unsigned index.
5396 (lto_streamer_cache_get): Likewise.
5397 (lto_record_common_node): Don't test tree_node_can_be_shared.
5398 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5399 (lto_streamer_cache_delete): Don't free offsets member.
5400 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5401 (lto_output_string_with_length): Use lto_output_data_stream.
5402 (lto_output_tree_header): Remove ix parameter, don't write it.
5403 (lto_output_builtin_tree): Likewise.
5404 (lto_write_tree): Adjust callers to above, don't track and write
5405 offset, write unsigned index.
5406 (output_unreferenced_globals): Don't emit all global vars.
5407 (write_global_references): Use unsigned indices.
5408 (lto_output_decl_state_refs): Likewise.
5409 (write_symbol): Likewise.
5410 * lto-streamer-in.c (lto_input_chain): Move earlier.
5411 (input_function): Use unsigned index.
5412 (input_alias_pairs): Don't read and then ignore all global vars.
5413 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5414 don't pass it back, use lto_streamer_cache_append.
5415 (lto_register_var_decl_in_symtab): Use unsigned index.
5416 (lto_register_function_decl_in_symtab): Likewise.
5417 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5419 (lto_get_builtin_tree): Don't read index, use
5420 lto_streamer_cache_append.
5421 (lto_read_tree): Adjust call to lto_materialize_tree.
5423 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5424 don't use function calls in arguments to MIN.
5426 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5429 * gimple.c (gimple_type_leader_entry): Mark deletable.
5431 2011-04-03 Alan Modra <amodra@gmail.com>
5433 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5435 2011-04-03 Michael Matz <matz@suse.de>
5437 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5439 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5441 2011-04-03 Michael Matz <matz@suse.de>
5443 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5444 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5445 without function context.
5446 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5447 current_function_decl and cfun.
5449 2011-04-03 Michael Matz <matz@suse.de>
5451 * tree.c (decl_init_priority_insert): Don't create entry for
5453 (decl_fini_priority_insert): Ditto.
5454 (fields_compatible_p, find_compatible_field): Remove.
5455 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5456 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5458 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5460 * combine.c (try_combine): Remove useless local variable.
5462 2011-04-03 Richard Guenther <rguenther@suse.de>
5463 Ira Rosen <ira.rosen@linaro.org>
5465 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5466 non-variable offsets and compare the remaining bases of the two
5467 accesses instead of looking for exact same data-ref.
5469 2011-04-02 Kai Tietz <ktietz@redhat.com>
5472 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5474 * i386.c (ix86_is_msabi_thiscall): New helper function.
5475 (ix86_is_type_thiscall): New helper function.
5476 (ix86_comp_type_attributes): Handle thiscall for method-functions
5478 (init_cumulative_args): Likewise.
5479 (find_drap_reg): Likewise.
5480 (ix86_static_chain): Likewise.
5481 (x86_this_parameter): Likewise.
5482 (x86_output_mi_thunk): Likewise.
5484 2011-04-01 Olivier Hainque <hainque@adacore.com>
5485 Nicolas Setton <setton@adacore.com>
5486 Eric Botcazou <ebotcazou@adacore.com>
5488 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5489 (add_gnat_descriptive_type_attribute): New function.
5490 (gen_array_type_die): Call it.
5491 (gen_enumeration_type_die): Likewise.
5492 (gen_struct_or_union_type_die): Likewise.
5493 (modified_type_die): Likewise.
5494 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5495 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5496 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5498 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5501 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5502 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5505 2011-03-17 Richard Guenther <rguenther@suse.de>
5508 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5509 origin for decls in other ltrans units.
5510 (input_varpool_node): Likewise.
5512 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5515 * expr.c (expand_assignment): Handle all possibilities
5516 if TO_RTX is CONCAT.
5517 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5518 (store_split_bit_field): If SUBREG_REG (op0) or
5519 op0 itself has smaller mode than word, return it
5520 for offset 0 and const0_rtx for out-of-bounds stores.
5521 If word is const0_rtx, skip it.
5523 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5525 * config/h8300/h8300.c (print_operand_address): Rename to...
5526 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5527 Call h8300_print_operand and h8300_print_operand_address instead of
5528 print_operand and print_operand_address. Declare.
5529 (print_operand): Renake to...
5530 (h8300_print_operand): ...this. Make static. Adjust comments.
5531 Call h8300_print_operand instead of print_operand. Declare.
5532 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5533 (h8300_register_move_cost): Likewise.
5534 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5535 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5536 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5537 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5538 * config/h8300/h8300-protos.h (print_operand): Delete.
5539 (print_operand_address): Delete.
5541 2011-04-01 Richard Henderson <rth@redhat.com>
5544 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5545 in strict mode before dwarf4. Re-order tests to early out
5546 before switching sections.
5548 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5550 * config/h8300/constraints.md: New file.
5551 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5552 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5553 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5554 * config/h8300/predicates.md (bit_operand): Likewise.
5555 (incdec_operand): Use satisfies_constraint_M and
5556 satisfies_constraint_O. Don't use C code block.
5557 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5558 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5559 (compute_mov_length): Use satisfies_constraint_G.
5560 (fix_bit_operand): Use satisfies_constraint_U.
5561 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5562 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5563 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5564 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5565 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5566 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5567 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5568 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5569 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5570 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5571 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5572 (EXTRA_MEMORY_CONSTRAINT): Delete.
5574 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5575 Michael Meissner <meissner@linux.vnet.ibm.com>
5578 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5579 operands, as per the specifications.
5581 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5582 (vec_extract_evenv4sf): Ditto.
5583 (vec_extract_evenv8hi): Ditto.
5584 (vec_extract_evenv16qi): Ditto.
5585 (vec_extract_oddv4si): Ditto.
5587 2011-03-31 Mark Wielaard <mjw@redhat.com>
5589 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5590 high_pc attribute if the CU has no associated code. Only output
5591 DW_AT_entry_pc for CU if not generating strict dwarf and
5594 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5596 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5597 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5599 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5600 * final.c (final_start_function): Call the new function rather
5601 than using a NULL argument for dwarf2out_frame_debug.
5603 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5604 that contains the prologue.
5606 * haifa-sched.c (queue_insn): New arg REASON. All callers
5607 changed. Print it in debugging output.
5609 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5611 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5612 Split most of the code into...
5613 (begin_move_insn): ... here. New function.
5614 (ebb_sched_info): Add a pointer to it.
5615 * haifa-sched.c (scheduled_insns): New static variable.
5616 (sched_extend_ready_list): Allocate it.
5617 (schedule_block): Use it to record the order of scheduled insns.
5618 Perform RTL changes to move insns only after all scheduling
5619 decisions have been made.
5620 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5621 begin_move_insn field.
5622 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5623 * sched-int.h (struct haifa_sched_info): Remove second argument
5624 from begin_schedule_ready hook. Add new member begin_move_insn.
5625 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5626 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5628 * haifa-sched.c (prune_ready_list): New function, broken out of
5630 (schedule_block): Use it.
5632 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5634 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5636 2011-04-01 Kai Tietz <ktietz@redhat.com>
5638 * config.gcc (*-*-mingw*): Allow as option the
5639 posix threading model.
5640 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5641 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5643 (CPP_SPEC): Add pthread/no-pthread handling.
5644 (LIB_SPEC): Likewise.
5645 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5646 (LIB_SPEC): Likewise.
5647 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5648 flag to pass -pthread option for shared libgcc build.
5649 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5650 for shared libgcc build.
5651 * config/i386/t-mingw-pthread: New file.
5652 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5653 New define to enable use of library pthread by default.
5654 * config/i386/mingw.opt (pthread): New driver option.
5655 (no-pthread): New driver option.
5656 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5657 * config/i386/mingw-w64.opt: Likewise.
5659 2011-04-01 Gary Funck <gary@intrepid.com>
5661 * c-decl.c (grokdeclarator): Fix formatting.
5663 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5665 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5666 instead of n_operands.
5667 (set_storage_via_setmem): Likewise.
5668 * optabs.c (maybe_gen_insn): Likewise.
5669 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5670 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5671 (mips_expand_builtin_direct): Likewise.
5672 * config/spu/spu.c (expand_builtin_args): Likewise.
5674 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5676 * recog.h (insn_data_d): Add n_generator_args.
5677 * genoutput.c (data): Likewise.
5678 (output_insn_data): Print it.
5679 (max_opno, num_dups): Delete.
5680 (scan_operands): Just fill in "d->operand[...]".
5681 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5683 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5685 * gensupport.h (pattern_stats): New structure.
5686 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5687 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5688 (max_operand_1, max_operand_vec): Delete.
5689 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5691 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5693 * emit-rtl.c (emit_pattern_after_setloc): New function.
5694 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5695 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5696 (emit_pattern_after): New function.
5697 (emit_insn_after, emit_jump_insn_after): Call it.
5698 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5699 (emit_pattern_before_setloc): New function.
5700 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5701 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5703 (emit_pattern_before): New function.
5704 (emit_insn_before, emit_jump_insn_before): Call it.
5705 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5707 2011-03-31 Richard Henderson <rth@redhat.com>
5709 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5710 (dw_separate_line_info_entry): Remove.
5711 (enum dw_line_info_opcode): New.
5712 (dw_line_info_entry): Use it.
5713 (dw_line_info_table, dw_line_info_table_p): New.
5714 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5715 (line_info_table, line_info_label_num): Remove.
5716 (line_info_table_in_use): Remove.
5717 (separate_line_info_table): Remove.
5718 (separate_line_info_table_allocated): Remove.
5719 (separate_line_info_table_in_use): Remove.
5720 (LINE_INFO_TABLE_INCREMENT): Remove.
5721 (line_info_label_num): New.
5722 (cur_line_info_table): New.
5723 (text_section_line_info, cold_text_section_line_info): New.
5724 (separate_line_info): New.
5725 (SEPARATE_LINE_CODE_LABEL): Remove.
5726 (print_dwarf_line_table): Remove.
5727 (debug_dwarf): Don't dump it.
5728 (output_one_line_info_table): New.
5729 (output_line_info): Use it.
5730 (new_line_info_table): New.
5731 (set_cur_line_info_table): New.
5732 (dwarf2out_switch_text_section): Use it.
5733 (dwarf2out_begin_function): Likewise.
5734 (push_dw_line_info_entry): New.
5735 (dwarf2out_source_line): Rewrite for new line info tables.
5736 (dwarf2out_init): Remove dead initailizations.
5738 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5740 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5742 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5743 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5744 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5745 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5746 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5747 * opt-functions.awk (flag_init, switch_bit_fields): New.
5748 (switch_flags): Don't handle flags moved to bit-fields. Don't
5749 generate CL_MISSING_OK or CL_SAVE.
5750 * optc-gen.awk: Update to generate bit-field output as well as
5752 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5753 bit-field instead of CL_REJECT_DRIVER flag.
5754 * opts-common.c (generate_canonical_option,
5755 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5756 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5757 instead of CL_REJECT_NEGATIVE flag.
5758 * toplev.c (print_switch_values): Use cl_report bit-field instead
5761 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5763 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5764 a zero minimum index only if it is redundant.
5766 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5768 PR rtl-optimization/48381
5769 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5770 instead of ira_class_hard_reg_index for calculating conflicting
5773 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5775 * cprop.c: Clean up hash table building.
5776 (reg_avail_info): Remove.
5777 (oprs_available_p): Remove.
5778 (record_last_reg_set_info): Remove.
5779 (record_last_set_info): Remove.
5780 (reg_available_p): New function.
5781 (gcse_constant_p): Do not treat unfolded conditions as constants.
5782 (make_set_regs_unavailable): New function.
5783 (hash_scan_set): Simplify with new reg_available_p.
5784 (compute_hash_table_work): Traverse insns stream only once.
5785 Do not compute reg_avail_info. Traverse insns in reverse order.
5786 Record implicit sets after recording explicit sets from the block.
5788 2011-03-31 Michael Matz <matz@suse.de>
5790 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5792 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5794 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5795 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5796 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5797 (h8300_mode_dependent_address_p): New function.
5798 (h8300_get_index): Make static.
5800 2011-03-31 Jeff Law <law@redhat.com>
5802 * reload1.c (elimination_effects): Fix typo in recent change.
5804 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5805 typo potentially leading to null pointer dereference.
5807 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5808 (setup_save_areas): Corresponding changes to avoid useless
5811 * jump.c (reversed_comparison_code_parts): Avoid successive return
5812 statements when REVERSE_CONDITION is defined.
5814 * expr.c (expand_assignment): Avoid useless assignments.
5815 (expand_expr_real_1): Likewise.
5816 (expand_expr_real_2): Avoid useless statements.
5818 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5820 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5822 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5825 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5827 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5830 * doc/tm.texi.in (TARGET_VERSION): Remove.
5831 * doc/tm.texi: Regenerate.
5832 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5833 * collect2.c (main): Don't use TARGET_VERSION.
5834 * mips-tdump.c (main): Don't use TARGET_VERSION.
5835 * mips-tfile.c (main): Don't use TARGET_VERSION.
5836 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5837 * config/rs6000/vxworksae.h: Remove.
5838 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5839 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5840 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5841 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5842 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5843 * config/arm/arm.h (TARGET_VERSION): Remove.
5844 * config/arm/coff.h (TARGET_VERSION): Remove.
5845 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5846 * config/arm/elf.h (TARGET_VERSION): Remove.
5847 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5848 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5849 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5850 * config/arm/pe.h (TARGET_VERSION): Remove.
5851 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5852 * config/arm/semi.h (TARGET_VERSION): Remove.
5853 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5854 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5855 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5856 * config/avr/avr.h (TARGET_VERSION): Remove.
5857 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5858 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5859 * config/frv/frv.h (TARGET_VERSION): Remove.
5860 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5861 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5862 * config/i386/darwin.h (TARGET_VERSION): Remove.
5863 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5864 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5865 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5866 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5867 * config/i386/gnu.h (TARGET_VERSION): Remove.
5868 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5869 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5870 * config/i386/linux.h (TARGET_VERSION): Remove.
5871 * config/i386/linux64.h (TARGET_VERSION): Remove.
5872 * config/i386/lynx.h (TARGET_VERSION): Remove.
5873 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5874 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5875 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5876 * config/i386/netware.h (TARGET_VERSION): Remove.
5877 * config/i386/nto.h (TARGET_VERSION): Remove.
5878 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5879 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5880 * config/ia64/elf.h (TARGET_VERSION): Remove.
5881 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5882 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5883 * config/ia64/linux.h (TARGET_VERSION): Remove.
5884 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5885 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5886 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5887 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5888 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5889 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5890 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5891 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5892 * config/m68k/linux.h (TARGET_VERSION): Remove.
5893 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5894 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5895 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5896 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5897 * config/mep/mep.h (TARGET_VERSION): Remove.
5898 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5899 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5900 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5901 * config/mips/linux.h (TARGET_VERSION): Remove.
5902 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5903 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5904 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5905 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5906 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5907 * config/pa/pa.h (TARGET_VERSION): Remove.
5908 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5909 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5910 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5911 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5912 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5913 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5914 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5915 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5916 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5917 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5918 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5919 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5920 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5921 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5922 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5923 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5924 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5925 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5926 * config/s390/linux.h (TARGET_VERSION): Remove.
5927 * config/s390/s390.h (TARGET_VERSION): Remove.
5928 * config/s390/tpf.h (TARGET_VERSION): Remove.
5929 * config/score/score.h (TARGET_VERSION): Remove.
5930 * config/sh/linux.h (TARGET_VERSION): Remove.
5931 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5932 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5933 * config/sh/sh.h (TARGET_VERSION): Remove.
5934 * config/sh/sh64.h (TARGET_VERSION): Remove.
5935 * config/sh/superh.h (TARGET_VERSION): Remove.
5936 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5937 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5938 * config/sparc/linux.h (TARGET_VERSION): Remove.
5939 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5940 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5941 TARGET_NAME32, TARGET_NAME): Remove.
5942 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5943 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5944 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5945 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5946 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5947 * config/spu/spu.h (TARGET_VERSION): Remove.
5948 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5949 * config/v850/v850.h (TARGET_VERSION): Remove.
5950 * config/vax/linux.h (TARGET_VERSION): Remove.
5951 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5952 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5953 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5955 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5958 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5959 frame-related from frame-unrelated adjustments to the stack pointer.
5961 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5963 * common.opt (fdebug-types-section): Move earlier.
5964 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5966 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5968 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5971 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5973 * tree.h (CASE_CHAIN): Define.
5974 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5975 (gimple_redirect_edge_and_branch): Likewise.
5977 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
5980 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5983 2011-03-30 Jeff Law <law@redhat.com>
5985 * PR bootstrap/48371
5986 * reload1.c (reload): Fix botch in last change.
5988 * reload.h (struct reload): Fix typo introduced in last change.
5990 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5992 * config/arm/arm.opt (mhard-float, msoft-float): Mark
5993 Undocumented. Remove help text.
5994 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5997 2011-03-30 Joseph Myers <joseph@codesourcery.com>
5999 * doc/options.texi (NegativeAlias): Document.
6000 (Alias): Mention NegativeAlias.
6001 * opt-functions.awk: Handle NegativeAlias.
6002 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6003 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6004 * opts.h (CL_NEGATIVE_ALIAS): Define.
6005 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6006 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6008 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6010 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6011 mno-spe and mno-isel instead of mspe=no and -misel=no.
6013 2011-03-29 Mark Wielaard <mjw@redhat.com>
6015 * common.opt (fdebug-types-section): New flag.
6016 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6017 * dwarf2out.c (use_debug_types): New define.
6018 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6019 (print_die): Guard output of type unit signatures using
6021 (build_abbrev_table): Replace assert of dwarf_version >= 4
6022 with assert on use_debug_types.
6023 (size_of_die): Likewise.
6024 (unmark_dies): Likewise.
6025 (value_format): Decide AT_ref_external form on use_debug_types.
6026 (output_die): Replace dwarf_version version check guard with
6027 use_debug_types where appropriate.
6028 (modified_type_die): Likewise.
6029 (gen_reference_type_die): Likewise.
6030 (dwarf2out_start_source_file): Likewise.
6031 (dwarf2out_end_source_file): Likewise.
6032 (prune_unused_types_walk_attribs): Likewise.
6033 (dwarf2out_finish): Likewise.
6035 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6037 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6039 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6041 PR rtl-optimization/48332
6042 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6043 mode of input operand N and modeN to its actual mode.
6045 2011-03-30 Jeff Law <law@redhat.com>
6047 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6048 define accessor macro.
6049 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6050 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6051 (reg_equiv_init): Likewise.
6052 (reg_equivs_size): New variable.
6053 (reg_equiv_init_size): Remove.
6054 (allocate_initial_values): Move prototype to here from....
6055 * integrate.h (allocate_initial_values): Remove prototype.
6056 * integrate.c: Include reload.h.
6057 (allocate_initial_values): Corresponding changes.
6058 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6059 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6060 (update_equiv_regs): Corresponding changes.
6061 (ira): Corresponding changes.
6062 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6063 (push_secondary_reload): Corresponding changes.
6064 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6065 (make_memloc, find_reloads_address): Corresponding changes.
6066 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6067 (find_reloads_address_1): Corresponding changes.
6068 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6069 (refers_to_regno_for_reload_p): Corresponding changes.
6070 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6071 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6072 * reload1.c: Include ggc.h.
6073 (grow_reg_equivs): New function.
6074 (replace_pseudos_in, reload): Corresponding changes.
6075 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6076 (eliminate_regs_1, elimination_effects): Corresponding changes.
6077 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6078 (delete_output_reload): Likewise.
6079 * caller-save.c (mark_referenced_regs): Corresponding changes.
6080 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6081 * frv/predicates.md (frv_load_operand): Corresponding changes.
6082 * microblaze/microblaze.c (double_memory_operand): Corresponding
6084 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6085 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6086 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6087 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6088 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6090 * pa/pa.c (emit_move_sequence): Corresponding changes.
6091 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6093 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6096 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6097 structure modes. Don't check neon_vector_mem_operand for
6098 vector or structure modes.
6100 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6101 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6104 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6105 operand 1 and reshuffle the operands to match.
6106 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6108 2011-03-30 Christian Schüler <cschueler@gmx.de>
6111 * config/c.opt (F): Added 'Driver' to -F option.
6114 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6116 * config/darwin.opt: Added '-arch' option.
6118 2011-03-30 Nick Clifton <nickc@redhat.com>
6120 * config/rx/rx.md: Add peepholes and patterns to combine
6121 extending loads and simple arithmetic instructions.
6122 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6123 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6124 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6125 modes to use pre-decrement and post-increment addressing.
6126 (rx_is_restricted_memory_address): Add range checking of REG+INT
6128 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6129 (rx_memory_move_cost): Adjust cost of stores.
6130 (rx_adjust_insn_length): New function.
6132 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6135 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6136 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6137 matching arg00/arg01 types.
6139 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6141 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6142 last_location to UNKNOWN_LOCATION.
6144 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6147 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6150 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6151 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6154 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6156 (sparc_cpu): Likewise.
6157 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6160 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6164 PR rtl-optimization/48345
6165 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6166 hard regs for given mode from profitable regs when doing secondary
6169 2011-03-29 Jeff Law <law@redhat.com>
6172 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6173 do_not_duplicate field.
6174 (lookup_redirection_data): Corresponding changes.
6175 (create_duplicates): Always create a template block.
6176 (redirect_edges): Remove code which reused the original block
6177 when it was going to become unreachable code.
6178 (thread_block): Don't set do_not_duplicate field.
6180 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6182 * lto-opts.c (register_user_option_p, lto_register_user_option):
6183 Make type argument unsigned.
6184 * lto-streamer.h (lto_register_user_option): Make type argument
6186 * opth-gen.awk: Make CL_* macros unsigned.
6187 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6188 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6189 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6190 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6191 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6192 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6193 (find_opt): Make lang_mask argument unsigned.
6195 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6197 PR rtl-optimization/48331
6198 PR rtl-optimization/48334
6199 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6200 for any used algorithm.
6202 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6204 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6207 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6209 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6210 (alpha_option_override): Don't set alpha_sr_alias_set.
6211 (emit_frame_store_1): Use gen_frame_mem rather than calling
6213 (alpha_expand_epilogue): Ditto.
6215 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6217 PR tree-optimization/48290
6218 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6219 vectorization, check that relevant phis in the basic block after
6220 the inner loop are really inner loop's exit phis.
6222 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6225 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6226 (cached_dw_loc_list_def): New structure.
6227 (cached_dw_loc_list): New typedef.
6228 (cached_dw_loc_list_table): New variable.
6229 (cached_dw_loc_list_table_hash): New function.
6230 (cached_dw_loc_list_table_eq): Likewise.
6231 (add_location_or_const_value_attribute): Take a bool cache_p.
6232 Cache the list when the parameter is true.
6233 (gen_formal_parameter_die): Update caller.
6234 (gen_variable_die): Likewise.
6235 (dwarf2out_finish): Likewise.
6236 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6237 while generating debug info for the decl.
6238 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6239 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6240 (resolve_addr): Cache the result of resolving a chain of
6243 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6245 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6246 conflict object hard regset nodes have intersecting hard reg sets.
6248 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6249 after regstat_init_n_sets_and_refs.
6251 * ira.c: Add more comments at the top.
6252 (setup_stack_reg_pressure_class, setup_pressure_classes):
6253 Add comments how we compute the register pressure classes.
6254 (setup_allocno_and_important_classes): Add more comments.
6255 (setup_class_translate_array, reorder_important_classes)
6256 (setup_reg_class_relations): Add comments.
6258 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6261 * ira-color.c: Add 2011 to the Copyright line.
6262 (assign_hard_reg): Add more comments.
6263 (improve_allocation): Ditto.
6265 * ira-costs.c: Add 2011 to the Copyright line.
6266 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6268 (setup_regno_cost_classes_by_mode): Ditto.
6270 Initial patches from ira-improv branch:
6272 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6274 * ira-build.c (ira_create_object): Remove initialization of
6275 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6276 (ira_create_allocno): Remove initialization of
6277 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6278 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6279 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6280 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6281 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6282 Initialize ALLOCNO_ADD_DATA.
6283 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6284 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6286 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6287 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6289 * ira.c (ira_reallocate): Remove.
6290 (setup_pressure_classes): Call
6291 ira_init_register_move_cost_if_necessary. Use
6292 ira_register_move_cost instead of ira_get_register_move_cost.
6293 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6294 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6296 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6297 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6298 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6299 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6300 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6301 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6303 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6304 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6305 (struct allocno_color_data): New.
6306 (allocno_color_data_t): New typedef.
6307 (allocno_color_data): New definition.
6308 (ALLOCNO_COLOR_DATA): New macro.
6309 (struct object_color_data): New.
6310 (object_color_data_t): New typedef.
6311 (object_color_data): New definition.
6312 (OBJECT_COLOR_DATA): New macro.
6313 (update_copy_costs, calculate_allocno_spill_cost): Call
6314 ira_init_register_move_cost_if_necessary. Use
6315 ira_register_move_cost instead of ira_get_register_move_cost.
6316 (move_spill_restore, update_curr_costs): Ditto.
6317 (allocno_spill_priority): Make it inline.
6318 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6319 (struct coalesce_data, coalesce_data_t): New.
6320 (allocno_coalesce_data): New definition.
6321 (ALLOCNO_COALESCE_DATA): New macro.
6322 (merge_allocnos, coalesced_allocno_conflict_p): Use
6323 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6324 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6325 (coalesce_allocnos): Ditto.
6326 (setup_coalesced_allocno_costs_and_nums): Ditto.
6327 (collect_spilled_coalesced_allocnos): Ditto.
6328 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6329 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6330 (coalesce_spill_slots): Ditto.
6331 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6332 free allocno_coalesce_data.
6334 * ira-conflicts.c: Fix formatting.
6335 (process_regs_for_copy): Call
6336 ira_init_register_move_cost_if_necessary. Use
6337 ira_register_move_cost instead of ira_get_register_move_cost.
6338 (build_object_conflicts): Optimize.
6340 * ira-costs.c (record_reg_classes): Optimize. Call
6341 ira_init_register_move_cost_if_necessary. Use
6342 ira_register_move_cost, ira_may_move_in_cost, and
6343 ira_may_move_out_cost instead of ira_get_register_move_cost and
6344 ira_get_may_move_cost.
6345 (record_address_regs): Ditto.
6346 (scan_one_insn): Optimize.
6347 (find_costs_and_classes): Optimize.
6348 (process_bb_node_for_hard_reg_moves): Call
6349 ira_init_register_move_cost_if_necessary. Use
6350 ira_register_move_cost instead of ira_get_register_move_cost.
6352 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6353 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6354 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6355 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6357 (ira_initiate_emit_data, ira_finish_emit_data)
6358 (create_new_allocno): New functions.
6359 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6360 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6361 Use ira_register_move_cost instead of ira_get_register_move_cost.
6363 * ira-int.h: Fix some comments.
6364 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6365 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6366 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6367 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6369 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6370 bitfield after mode. Make hard_regno a short int. Make
6371 hard_regno short. Remove first_coalesced_allocno and
6372 next_coalesced_allocno. Move mem_optimized_dest_p,
6373 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6374 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6375 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6376 temp, colorable_p. Add new member add_data.
6377 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6378 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6379 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6380 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6381 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6382 (ALLOCNO_ADD_DATA): New macro.
6383 (ira_emit_data_t): New typedef.
6384 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6385 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6386 from struct ira_allocno.
6387 (ALLOCNO_EMIT_DATA): New macro.
6388 (ira_allocno_emit_data, allocno_emit_reg): New.
6389 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6390 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6391 (OBJECT_ADD_DATA): New macro.
6392 (ira_reallocate): Remove.
6393 (ira_initiate_emit_data, ira_finish_emit_data): New.
6394 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6395 (ira_init_register_move_cost_if_necessary): New.
6396 (ira_object_conflict_iter_next): Merge into
6397 ira_object_conflict_iter_cond.
6398 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6400 * ira-live.c (process_single_reg_class_operands): Call
6401 ira_init_register_move_cost_if_necessary. Use
6402 ira_register_move_cost instead of ira_get_register_move_cost.
6404 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6406 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6408 * ira-costs.c: Fix formatting.
6409 (cost_classes, cost_classes_num): Remove.
6410 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6411 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6412 (cost_classes_del, cost_classes_htab): New.
6413 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6414 (initiate_regno_cost_classes, setup_cost_classes): New.
6415 (setup_regno_cost_classes_by_aclass): New.
6416 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6417 (record_reg_classes): Use regno_cost_classes instead of
6418 cost_classes. Move checking opposite operand up.
6419 (record_address_regs): Use regno_cost_classes
6420 instead of cost_classes.
6421 (scan_one_insn): Ditto. Use always general register.
6422 (print_allocno_costs): Use regno_cost_classes instead of
6424 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6425 (find_costs_and_classes): Set up cost classes for each registers.
6426 Use also their mode for this. Use regno_cost_classes instead of
6428 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6430 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6431 (ira_costs, ira_set_pseudo_classes): Call
6432 initiate_regno_cost_classes and finish_regno_cost_classes.
6434 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6436 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6438 * target.def (ira_cover_classes): Remove.
6440 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6442 * doc/tm.texi.in: Ditto.
6444 * ira-conflicts.c: Remove mentioning cover classes from the file.
6445 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6446 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6448 * targhooks.c (default_ira_cover_classes): Remove.
6450 * targhooks.h (default_ira_cover_classes): Ditto.
6452 * haifa-sched.c: Remove mentioning cover classes from the file.
6453 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6454 ira_pressure_classes and ira_pressure_classes_num instead of
6455 ira_reg_class_cover_size and ira_reg_class_cover. Use
6456 sched_regno_pressure_class instead of sched_regno_cover_class.
6457 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6458 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6460 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6461 classes from the file.
6462 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6463 (struct object_hard_regs, struct object_hard_regs_node): New.
6464 (struct ira_object): New members profitable_hard_regs,
6465 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6466 (struct ira_allocno): Rename cover_class to aclass. Rename
6467 cover_class_cost and updated_cover_class_cost to class_cost and
6468 updated_class_cost. Remove splay_removed_p and
6469 left_conflict_size. Add new members colorable_p.
6470 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6471 (ALLOCNO_COLORABLE_P): New macro.
6472 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6473 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6474 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6475 (OBJECT_...): Rename parameter C to O.
6476 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6477 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6478 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6479 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6480 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6481 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6482 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6483 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6484 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6485 x_ira_reg_class_subunion.
6486 (ira_max_memory_move_cost, ira_max_register_move_cost)
6487 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6488 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6489 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6490 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6491 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6492 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6493 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6494 (ira_tune_allocno_costs_and_cover_classes): Rename to
6495 ira_tune_allocno_costs.
6496 (ira_debug_hard_regs_forest): New.
6497 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6498 (ira_object_conflict_iter_next): Fix comments.
6499 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6500 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6501 cover_class to aclass.
6502 (ira_allocate_and_accumulate_costs): Ditto.
6503 (ira_allocate_and_set_or_copy_costs): Ditto.
6505 * opts.c (decode_options): Remove ira_cover_class check.
6507 * ira-color.c: Remove mentioning cover classes from the file. Use
6508 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6509 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6510 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6511 (splay-tree.h): Remove include.
6512 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6513 before copy_freq_compare_func.
6514 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6515 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6517 (hard_regs_roots, hard_regs_node_vec): Ditto.
6518 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6519 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6520 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6521 (create_new_object_hard_regs_node): Ditto.
6522 (add_new_object_hard_regs_node_to_forest): Ditto.
6523 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6524 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6526 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6527 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6528 (remove_unused_object_hard_regs_nodes): Ditto.
6529 (enumerate_object_hard_regs_nodes): Ditto.
6530 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6531 (object_hard_regs_subnode_t): Ditto.
6532 (struct object_hard_regs_subnode): Ditto.
6533 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6534 (setup_object_hard_regs_subnode_index): Ditto.
6535 (get_object_hard_regs_subnodes_num): Ditto.
6536 (form_object_hard_regs_nodes_forest): Ditto.
6537 (finish_object_hard_regs_nodes_tree): Ditto.
6538 (finish_object_hard_regs_nodes_forest): Ditto.
6539 (allocnos_have_intersected_live_ranges_p): Rename to
6540 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6541 (pseudos_have_intersected_live_ranges_p): Rename to
6542 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6543 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6544 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6545 (update_copy_costs): Remove assert. Skip cost update if the hard
6546 reg does not belong the class.
6547 (assign_hard_reg): Process only profitable hard regs.
6548 (uncolorable_allocnos_num): Make it scalar.
6549 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6550 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6551 and ira_reg_class_max_nregs.
6552 (bucket_allocno_compare_func): Check frequency first.
6553 (sort_bucket): Add compare function as a parameter.
6554 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6555 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6556 (push_allocno_to_stack): Rewrite for checking new allocno
6558 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6559 (push_only_colorable): Pass new parameter to sort_bucket.
6560 (push_allocno_to_spill): Remove.
6561 (allocno_spill_priority_compare): Make it inline and rewrite.
6562 (splay_tree_allocate, splay_tree_free): Remove.
6563 (allocno_spill_sort_compare): New function.
6564 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6565 build and use splay tree. Choose first allocno in uncolorable
6566 allocno bucket to spill. Remove setting spill cost.
6567 (all_conflicting_hard_regs): Remove.
6568 (setup_allocno_available_regs_num): Check only profitable hard
6569 regs. Print info about hard regs nodes.
6570 (setup_allocno_left_conflicts_size): Remove.
6571 (put_allocno_into_bucket): Don't call
6572 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6573 (improve_allocation): New.
6574 (color_allocnos): Call setup_profitable_hard_regs,
6575 form_object_hard_regs_nodes_forest, improve_allocation,
6576 finish_object_hard_regs_nodes_forest. Setup spill cost.
6577 (print_loop_title): Use pressure classes.
6578 (color_allocnso): Ditto.
6579 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6580 and allocnos_for_spilling.
6581 (ira_sort_regnos_for_alter_reg): Don't setup members
6582 {first,next}_coalesced_allocno.
6583 (color): Remove allocating and freeing removed_splay_allocno_vec.
6584 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6585 prohibited_class_mode_regs.
6587 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6589 (update_allocno_pressure_excess_length): Use pressure classes.
6590 (inc_register_pressure, dec_register_pressure): Check for pressure
6592 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6593 pressure class. Use ira_reg_class_nregs instead of
6594 ira_reg_class_max_nregs.
6595 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6596 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6597 (single_reg_class): Use ira_reg_class_nregs instead of
6598 ira_reg_class_max_nregs.
6599 (process_bb_node_lives): Use pressure classes.
6601 * ira-emit.c: Remove mentioning cover classes from the file. Use
6602 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6603 (change_loop): Use pressure classes.
6604 (modify_move_list): Call ira_set_allocno_class instead of
6605 ira_set_allocno_cover_class.
6607 * ira-build.c: Remove mentioning cover classes from the file. Use
6608 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6609 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6610 ALLOCNO_UPDATED_CLASS_COST instead of
6611 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6612 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6613 (ira_create_allocno): Remove initialization of
6614 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6615 ALLOCNO_COLORABLE_P.
6616 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6617 Update conflict regs for the objects.
6618 (create_cap_allocno): Remove assert. Don't propagate
6619 ALLOCNO_AVAILABLE_REGS_NUM.
6620 (ira_free_allocno_costs): New function.
6621 (finish_allocno): Change a part of code into call of
6622 ira_free_allocno_costs.
6623 (low_pressure_loop_node_p): Use pressure classes.
6624 (object_range_compare_func): Don't compare classes.
6625 (setup_min_max_conflict_allocno_ids): Ditto.
6627 * loop-invariant.c: Remove mentioning cover classes from the file.
6628 Use ira_pressure_classes and ira_pressure_classes_num instead of
6629 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6630 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6631 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6632 Use reg_allocno_class instead of reg_cover_class.
6633 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6634 STACK_REG_COVER_CLASS.
6635 (get_regno_cover_class): Rename to get_regno_pressure_class.
6636 (move_loop_invariants): Initialize and finalize regstat.
6638 * ira.c: Remove mentioning cover classes from the file. Add
6639 comments about coloring without cover classes. Use ALLOCNO_CLASS
6640 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6641 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6642 setup_class_subset_and_memory_move_costs.
6643 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6644 (setup_cover_and_important_classes): Rename to
6645 setup_allocno_and_important_classes.
6646 (setup_class_translate_array): New.
6647 (setup_class_translate): Call it for allocno and pressure classes.
6648 (cover_class_order): Rename to allocno_class_order.
6649 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6650 of ira_class_translate.
6651 (reorder_important_classes): Set up ira_important_class_nums.
6652 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6653 (print_class_cover): Rename to print_classes. Add parameter.
6654 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6655 Print pressure classes too.
6656 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6657 setup_reg_subclasses.
6658 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6659 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6660 (setup_prohibited_class_mode_regs): Use
6661 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6662 (clarify_prohibited_class_mode_regs): New function.
6663 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6664 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6665 (ira_init_once): Initialize them.
6666 (free_register_move_costs): Process them.
6667 (ira_init): Move calls of find_reg_classes and
6668 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6669 Call clarify_prohibited_class_mode_regs.
6670 (ira_no_alloc_reg): Remove.
6671 (too_high_register_pressure_p): Use pressure classes.
6673 * sched-deps.c: Remove mentioning cover classes from the file.
6674 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6675 ira_pressure_classes and ira_pressure_classes_num instead of
6676 ira_reg_class_cover_size and ira_reg_class_cover.
6677 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6678 sched_regno_pressure_class instead of sched_regno_cover_class.
6679 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6680 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6682 * ira.h: Add 2010 to Copyright.
6683 (ira_no_alloc_reg): Remove external.
6684 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6685 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6686 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6687 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6688 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6689 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6690 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6691 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6692 x_ira_no_alloc_regs.
6693 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6694 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6695 ira_allocno_classes_num and ira_allocno_classes.
6696 (ira_class_translate): Rename to ira_allocno_class_translate.
6697 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6698 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6699 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6700 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6701 (ira_no_alloc_regs): New.
6703 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6704 classes from the file. Use ALLOCNO_CLASS instead of
6705 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6706 ALLOCNO_COVER_CLASS_COST.
6707 (regno_cover_class): Rename to regno_aclass.
6708 (record_reg_classes): Use ira_reg_class_subunion instead of
6709 ira_reg_class_union.
6710 (record_address_regs): Check overflow.
6711 (scan_one_insn): Ditto.
6712 (print_allocno_costs): Print total mem cost fore regional allocation.
6713 (print_pseudo_costs): Use REG_N_REFS.
6714 (find_costs_and_classes): Use classes intersected with them on the
6715 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6716 ira_reg_class_union. Use ira_allocno_class_translate and
6717 regno_aclass instead of ira_class_translate and regno_cover_class.
6718 Modify code for finding regno_aclass. Setup preferred classes for
6720 (setup_allocno_cover_class_and_costs): Rename to
6721 setup_allocno_class_and_costs. Use regno_aclass instead of
6722 regno_cover_class. Use ira_set_allocno_class instead of
6723 ira_set_allocno_cover_class.
6724 (init_costs, finish_costs): Use regno_aclass instead of
6726 (ira_costs): Use setup_allocno_class_and_costs instead of
6727 setup_allocno_cover_class_and_costs.
6728 (ira_tune_allocno_costs_and_cover_classes): Rename to
6729 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6730 by processing objects. Use ira_reg_class_max_nregs instead of
6731 ira_reg_class_nregs.
6733 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6735 * sched-int.h: Remove mentioning cover classes from the file.
6736 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6738 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6739 classes from the file.
6740 (struct reg_pref): Rename coverclass into allocnoclass.
6741 (reg_cover_class): Rename to reg_allocno_class.
6743 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6745 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6747 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6749 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6751 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6753 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6755 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6757 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6759 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6761 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6763 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6764 (i386_ira_cover_classes): Ditto.
6766 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6768 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6770 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6772 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6774 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6776 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6778 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6779 (mips_ira_cover_classes): Ditto.
6781 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6783 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6785 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6787 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6789 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6791 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6792 (IRA_COVER_CLASSES_VSX): Ditto.
6794 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6795 (rs6000_ira_cover_classes): Ditto.
6797 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6799 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6801 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6803 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6805 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6807 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6809 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6811 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6813 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6815 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6817 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6820 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6821 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6822 dw_fde_unlikely_section_end_label, cold_in_std_section,
6823 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6824 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6826 (output_fde): Use dw_fde_second_{begin,end} if second is
6827 true, otherwise dw_fde_{begin,end}.
6828 (output_call_frame_info): Test dw_fde_second_begin != NULL
6829 instead of dw_fde_switched_sections.
6830 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6831 fields, initialize new fields. Initialize in_std_section
6832 unconditionally from the first partition.
6833 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6834 dw_fde_second_begin is non-NULL.
6835 (dwarf2out_switch_text_section): Stop initializing removed
6836 dw_fde_struct fields, initialize new fields, initialize
6837 also dw_fde_end here. Set dw_fde_switch_cfi even when
6838 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6839 (struct var_loc_list_def): Add last_before_switch field.
6840 (arange_table, arange_table_allocated, arange_table_in_use,
6841 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6842 (size_of_aranges): Count !in_std_section and !second_in_std_section
6843 hunks in fdes, instead of looking at arange_table_in_use.
6844 (output_aranges): Add aranges_length argument, don't call
6845 size_of_aranges here. Instead of using aranges_table*
6846 emit ranges for fdes when !in_std_section resp.
6847 !second_in_std_section.
6848 (dw_loc_list): Break ranges crossing section switch.
6849 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6850 use dw_fde_second_end instead of dw_fde_end as end of last range.
6851 (gen_subprogram_die): Don't call add_arange. Use
6852 dw_fde_{begin,end} for first partition and if switched
6853 section dw_fde_second_{begin,end} for the second.
6854 (var_location_switch_text_section_1,
6855 var_location_switch_text_section): New functions.
6856 (dwarf2out_begin_function): Initialize cold_text_section even
6857 when function_section () isn't text_section.
6858 (prune_unused_types): Don't walk arange_table.
6859 (dwarf2out_finish): Don't needlessly test
6860 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6861 If info_section_emitted, call size_of_aranges and if it indicates
6862 non-empty .debug_aranges, call output_aranges with the computed
6863 size. Stop using removed dw_fde_struct fields, use
6864 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6868 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6869 create ENTRY_VALUE if incoming or address of incoming's MEM
6871 * dwarf2out.c (mem_loc_descriptor): Don't emit
6872 DW_OP_GNU_entry_value of DW_OP_fbreg.
6873 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6874 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6875 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6876 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6878 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6879 is a REG_P or MEM_P with REG_P address, compute hash directly
6880 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6881 (preserve_only_constants): Don't clear VALUES forwaring
6882 ENTRY_VALUE to some other VALUE.
6884 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6886 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6889 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6891 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6892 block before expanding the statement.
6893 (expand_gimple_stmt_1): Likewise. Set them here...
6894 (expand_gimple_stmt): ...and not here. Tidy.
6895 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6898 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6900 * Makefile.in: New rule for cprop.o.
6901 * gcse.c: Move constant/copy propagation to cprop.c.
6902 (compute_local_properties): Only handle expression tables.
6903 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6904 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6905 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6906 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6907 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6908 compute_cprop_data, find_used_regs, try_replace_reg,
6909 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6910 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6911 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6912 find_bypass_set, reg_killed_on_edge, bypass_block,
6913 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6914 execute_rtl_cprop, pass_rtl_cprop): Move to...
6915 * cprop.c: ...here. New file, constant/copy propagation for RTL
6916 moved from gcse.c to here with minor cleanups in duplicated code.
6918 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6920 * config/i386/i386.c (flag_opts): Fix a typo in
6921 -mavx256-split-unaligned-store.
6923 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6925 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6926 LIBCALL_VALUE): Remove macros.
6927 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6928 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6929 (h8300_function_value, h8300_libcall_value,
6930 h8300_function_value_regno_p): New functions.
6932 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6934 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6936 2011-03-28 Jeff Law <law@redhat.com>
6938 * tree-ssa-threadupdate.c (redirect_edges): Call
6939 create_edge_and_update_destination_phis as needed.
6940 (create_edge_and_update_destination_phis): Accept new BB argument.
6941 All callers updated.
6942 (thread_block): Do not update the profile when threading around
6943 intermediate blocks.
6944 (thread_single_edge): Likewise.
6945 (determine_bb_domination_status): If BB is not a successor of the
6946 loop header, return NONDOMINATING.
6947 (register_jump_thread): Note when we register a jump thread around
6948 an intermediate block.
6949 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6950 (thread_across_edge): Use it.
6952 2011-03-28 Tristan Gingold <gingold@adacore.com>
6954 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6955 when for_return is 2.
6957 2011-03-28 Jeff Law <law@redhat.com>
6959 * var-tracking.c (canonicalize_values_mark): Delete unused
6961 (canonicalize_values_star, set_variable_part): Likewise.
6962 (clobber_variable_part, delete_variable_part): Likewise.
6964 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6966 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6968 2011-03-28 Martin Jambor <mjambor@suse.cz>
6970 * tree-inline.c (expand_call_inline): Do not check that destination
6972 (optimize_inline_calls): Assert that destination node is analyzed.
6973 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6974 not call tree_lowering_passes.
6975 * cgraph.h (cgraph_analyze_function): Declare.
6976 * cgraphunit.c (cgraph_analyze_function): Make public.
6978 2011-03-28 Joseph Myers <joseph@codesourcery.com>
6980 * config/sparc/sparc-opts.h: New.
6981 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6982 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6983 (sparc_option_override): Store processor_type enumeration rather
6984 than string in cpu_default. Remove name and enumeration from
6985 cpu_table. Directly default -mcpu then default -mtune from -mcpu
6986 without using sparc_select. Use target_flags_explicit instead of
6988 * config/sparc/sparc.h (enum processor_type): Move to
6990 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6991 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6992 HeaderInclude entry.
6993 (mcpu=, mtune=): Use Var and Enum.
6994 (sparc_processor_type): New Enum and EnumValue entries.
6996 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6997 Iain Sandoe <iains@gcc.gnu.org>
7000 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7002 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7004 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7005 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7006 Insert new statements at it in lieu of STMT.
7007 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7008 * tree-vect-stmts.c (vectorizable_store): Likewise.
7009 (vectorizable_load): Likewise.
7011 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7013 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7018 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7020 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7021 unaligned 256bit load/store.
7022 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7023 (*avx_movdqu<avxmodesuffix>): Likewise.
7025 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7028 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7029 * config/pa/pa.md (iordi3): Use new predicate in expander.
7032 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7034 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7035 FUNCTION_VALUE_REGNO_P): Remove macros.
7036 * config/mips/mips-protos.h (mips_function_value): Remove.
7037 * config/mips/mips.c (mips_function_value): Rename to...
7038 (mips_function_value_1): ... this. Make static. Handle receiving
7039 the function type in 'fn_decl_or_type' argument.
7040 (mips_function_value, mips_libcall_value,
7041 mips_function_value_regno_p): New function.
7042 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7043 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7045 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7047 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7048 and -mavx256-split-unaligned-store.
7049 (ix86_option_override_internal): Split 32-byte AVX unaligned
7050 load/store by default.
7051 (ix86_avx256_split_vector_move_misalign): New.
7052 (ix86_expand_vector_move_misalign): Use it.
7054 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7055 -mavx256-split-unaligned-store.
7057 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7058 256bit load/store. Generate unaligned store on misaligned memory
7060 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7062 (*avx_movdqu<avxmodesuffix>): Likewise.
7064 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7065 -mavx256-split-unaligned-store.
7067 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7070 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7073 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7075 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7076 opno arguments with an expand_operand. Use create_input_operand.
7077 (mips_prepare_builtin_target): Delete.
7078 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7080 (mips_expand_builtin_direct): Use create_output_operand and
7081 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7082 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7083 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7085 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7087 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7089 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7091 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7093 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7094 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7095 basic blocks and call commit_edge_insertions directly.
7096 (fixup_abnormal_edges): Move from here to...
7097 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7098 on the edges and return whether some have actually been inserted.
7099 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7102 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7104 PR rtl-optimization/48144
7105 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7106 (merge_expr_data): ... here.
7107 (av_set_intersect): Rename to av_set_code_motion_filter.
7108 Update all callers. Call merge_history_vect when an expression
7109 is found in both sets.
7110 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7112 2011-03-26 Alan Modra <amodra@gmail.com>
7114 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7115 cmodel medium addresses.
7116 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7117 64-bit gpr loads and stores.
7118 (rs6000_secondary_reload_ppc64): New function.
7119 * config/rs6000/rs6000-protos.h: Declare it.
7120 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7122 2011-03-26 Alan Modra <amodra@gmail.com>
7125 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7126 GNU Go in traceback table.
7128 2011-03-25 Richard Henderson <rth@redhat.com>
7130 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7131 if there are exactly 6 operands.
7132 (set_storage_via_setmem): Similarly.
7134 2011-03-25 Kai Tietz <ktietz@redhat.com>
7136 * collect2.c (write_c_file_stat): Handle backslash
7137 as right-hand directory separator.
7138 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7139 checking just for slash.
7140 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7141 instead of checking for trailing slash.
7142 * gcc.c (record_temp_file): Use filename_cmp instead
7144 (do_spec_1): Likewise.
7145 (replace_outfile_spec_function): Likewise.
7146 (is_directory): Use filename_ncmp instead of strncmp.
7147 (print_multilib_info): Likewise.
7148 * gcov.c (find_source): Use filename_cmp instead
7150 (make_gcov_file_name): Fix order of slash/backslash
7152 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7153 (add_standard_paths): Likewise.
7154 * mips-tfile.c (saber_stop): Handle backslash.
7155 * prefix.c (update_path): Use filename_ncmp instead of
7157 * profile.c (output_location): Use filename_cmp instead
7159 * read-md.c (handle_toplevel_file): Handle backslash.
7160 * tlink.c (frob_extension): Likewise.
7161 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7163 * tree-dump.c (dequeue_and_dump): Handle backslash.
7164 * tree.c (get_file_function_name): Likewise.
7165 * gengtype.c (read_input_list): Likewise.
7166 (get_file_realbasename): Likewise.
7167 (get_output_file_with_visibility): Use filename_cmp
7170 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7172 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7175 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7177 * fold-const.c (expr_location_or): New function.
7178 (fold_truth_not_expr): Call it.
7180 2011-03-25 Jeff Law <law@redhat.com>
7182 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7184 * c-family/c-common.c (def_fn_type): Likewise.
7185 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7186 * emit-rtl.c (gen_rtvec): Likewise.
7187 * lto/lto-lang.c (def_fn_type): Likewise.
7189 2011-03-25 Richard Guenther <rguenther@suse.de>
7191 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7192 also generate copies.
7193 (fini_copy_prop): Handle constant values properly.
7195 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7197 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7198 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7199 (hash_loc_operands, compare_loc_operands): Handle
7200 DW_OP_GNU_entry_value.
7202 2011-03-25 Kai Tietz <ktietz@redhat.com>
7204 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7205 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7206 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7207 comment and use macro TARGET_64BIT_MS_ABI instead.
7208 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7209 and change default behavior for 32-bit MS_ABI.
7210 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7211 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7213 (ix86_cfun_abi): Likewise.
7214 (ix86_maybe_switch_abi): Adjust comment.
7215 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7216 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7217 instead of checking for SYSV_ABI.
7218 (ix86_nsaved_sseregs): Likewise.
7219 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7221 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7222 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7223 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7224 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7225 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7227 2011-03-25 Richard Guenther <rguenther@suse.de>
7229 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7230 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7231 (verify_gimple): Remove.
7232 * tree-cfg.c (verify_gimple_call): Merge verification
7234 (verify_gimple_phi): Merge verification from verify_stmts.
7235 (verify_gimple_label): New function.
7236 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7237 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7238 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7239 (verify_stmts): Rename to verify_gimple_in_cfg.
7240 (verify_gimple_in_cfg): New function.
7241 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7242 * tree-ssa.c (verify_ssa): Likewise.
7243 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7245 2011-03-25 Richard Guenther <rguenther@suse.de>
7247 * passes.c (init_optimization_passes): Add FRE pass after
7250 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7251 Andrew Stubbs <ams@codesourcery.com>
7253 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7255 (arm_movdi_vfp_cortexa8): New pattern.
7256 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7257 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7258 instructions when tuning for Cortex-A8. Set attribute "arch".
7259 * config/arm/arm.md: Move include arm-tune.md up a bit.
7260 (define_attr "arch"): Add "onlya8" and "nota8" values.
7261 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7263 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7267 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7269 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7270 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7271 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7272 * passes.c (init_optimization_passes): Move
7273 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7275 2011-03-25 Kai Tietz <ktietz@redhat.com>
7277 * c-typeck.c (comptypes_internal): Replace target
7278 hook call of comp_type_attributes by version in tree.c file.
7279 * gimple.c (gimple_types_compatible_p_1): Likewise.
7280 * tree-ssa.c (useless_type_conversion_p): Likewise.
7281 * tree.c (build_type_attribute_qual_variant): Likewise.
7282 (attribute_value_equal): New static helper function.
7283 (comp_type_attributes): New function.
7284 (merge_attributes): Use attribute_value_equal for comparison.
7285 (attribute_list_contained): Likewise.
7286 * tree.h (comp_type_attributes): New prototype.
7288 2011-03-25 Richard Guenther <rguenther@suse.de>
7290 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7291 of complex types at -O0.
7292 (verify_gimple_assign_binary): Likewise.
7293 (verify_gimple_assign_ternary): Likewise.
7295 2011-03-24 Mark Wielaard <mjw@redhat.com>
7297 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7298 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7300 2011-03-24 Mark Wielaard <mjw@redhat.com>
7303 * dwarf2out.c (output_abbrev_section): Only write table when
7304 abbrev_die_table_in_use > 1.
7306 2011-02-24 Richard Henderson <rth@redhat.com>
7308 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7309 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7310 (alpha_expand_unaligned_load_words): Use extql.
7311 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7312 (emit_insxl): Handle all modes for consistency.
7314 2011-02-24 Richard Henderson <rth@redhat.com>
7316 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7317 (alpha_expand_unaligned_load): Likewise.
7318 (alpha_expand_unaligned_store): Likewise.
7319 (alpha_expand_unaligned_load_words): Likewise.
7320 (alpha_expand_unaligned_store_words): Likewise.
7321 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7322 (alpha_split_lock_test_and_set_12): Likewise.
7323 (print_operand, alpha_fold_builtin_extxx): Likewise.
7324 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7325 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7326 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7327 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7328 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7329 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7330 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7331 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7332 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7333 (extwl, extll, extql): Similarly.
7334 (inswh, inslh, insqh): Similarly.
7335 (mskbl, mskwl, mskll, mskql): Similarly.
7336 (mskwh, msklh, mskqh): Similarly.
7338 2011-02-24 Richard Henderson <rth@redhat.com>
7340 * config/alpha/alpha.md (attribute isa): Add er, ner.
7341 (attribute enabled): Handle them.
7342 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7344 2011-02-24 Richard Henderson <rth@redhat.com>
7346 * config/alpha/alpha.md (attribute isa): Add vms.
7347 (attribute enabled): Handle it.
7348 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7349 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7350 (*movtf): Rename from *movtf_internal for consistency.
7351 (*movsi): Merge with *movsi_nt_vms.
7352 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7353 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7354 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7355 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7357 2011-02-24 Richard Henderson <rth@redhat.com>
7359 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7360 (extendqisi2, extendhisi2): Likewise.
7361 (extendqidi2): Simplify BWX/non-BWX expansions.
7362 (extendhidi2): Similarly.
7364 2011-02-24 Richard Henderson <rth@redhat.com>
7366 * config/alpha/alpha.md (attribute isa): New.
7367 (attribute enabled): New.
7368 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7369 (zero_extendqisi2, zero_extendqidi2): Similarly.
7370 (zero_extendhisi2, zero_extendhidi2): Similarly.
7371 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7373 2011-02-24 Richard Henderson <rth@redhat.com>
7375 * config/alpha/predicates.md (input_operand): Revert last change;
7376 update comment to mention 32-bit VMS rather than Windows.
7378 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7380 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7381 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7382 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7383 * passes.c (init_optimization_passes): Move
7384 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7386 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7388 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7390 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7392 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7395 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7398 * simplify-rtx.c (simplify_const_unary_operation): Call
7399 real_convert when changing mode class with FLOAT_EXTEND.
7401 2011-03-24 Nick Clifton <nickc@redhat.com>
7403 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7404 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7405 * config/rx/rx.c (rx_option_override): Set align_jumps,
7406 align_loops and align_labels if not set by the user.
7407 (rx_align_for_label): New function.
7408 (rx_max_skip_for_label): New function.
7409 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7410 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7411 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7412 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7413 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7415 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7417 PR rtl-optimization/48263
7418 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7419 and original commutative_p handling. Use maybe_gen_insn.
7421 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7423 * reload.c (find_reloads_subreg_address): Add address_reloaded
7424 parameter and return true there if the full address has been
7426 (find_reloads_toplev): Pass address_reloaded flag.
7427 (find_reloads_address_1): Don't use address_reloaded parameter.
7429 2011-03-24 Jeff Law <law@redhat.com>
7431 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7432 unused variable "ann".
7433 (remove_unused_locals): Likewise.
7435 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7438 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7441 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7443 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7444 for invalid symbolic addresses.
7445 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7448 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7450 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7451 the argument in calls to fold_truth_not_expr.
7453 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7455 * tree.c (record_node_allocation_statistics): New function.
7456 (make_node_stat, copy_node_stat, build_string): Call it.
7457 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7458 (build1_stat, build_omp_clause): Likewise.
7460 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7462 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7465 2011-03-24 Richard Guenther <rguenther@suse.de>
7467 PR tree-optimization/48271
7468 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7469 blocks that still exist.
7471 2011-03-24 Richard Guenther <rguenther@suse.de>
7473 PR tree-optimization/48270
7474 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7475 not free datarefs before ddrs.
7477 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7479 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7480 from the address built for a reference with variable offset.
7482 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7485 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7486 alternatives that can be handled with movq or movabsq insn.
7487 (*movdf_internal): Disable for !TARGET_64BIT.
7488 (*movdf_internal_nointeger): Ditto.
7489 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7491 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7493 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7494 (FUNCTION_ARG_ADVANCE): Likewise.
7495 * tm.texi.in: Change references to them to hook references.
7496 * tm.texi: Regenerate.
7497 * targhooks.c (default_function_arg): Eliminate check for target macro.
7498 (default_function_incoming_arg): Likewise.
7499 (default_function_arg_advance): Likewise.
7500 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7501 (function_arg_advance): Likewise.
7502 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7504 2011-03-24 Richard Guenther <rguenther@suse.de>
7507 * tree-object-size.c (addr_object_size): Do not double-account
7508 for MEM_REF offsets.
7510 2011-03-24 Diego Novillo <dnovillo@google.com>
7512 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7513 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7514 (lto_input_data_block): Move from lto-opts.c. Make extern.
7516 (lto_input_string): Rename from input_string. Make extern.
7518 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7519 output_string_with_length.
7520 Output 0 to indicate a non-NULL string. Update all callers to
7522 (lto_output_string): Rename from output_string. Make extern.
7524 (lto_output_decl_state_streams): Make extern.
7525 (lto_output_decl_state_refs): Make extern.
7526 * lto-streamer.h (lto_input_string): Declare.
7527 (lto_input_data_block): Declare.
7528 (lto_output_string): Declare.
7529 (lto_output_string_with_length): Declare.
7530 (lto_output_decl_state_streams): Declare.
7531 (lto_output_decl_state_refs): Declare.
7533 2011-03-24 Richard Guenther <rguenther@suse.de>
7535 PR tree-optimization/46562
7536 * tree.c (build_invariant_address): New function.
7537 * tree.h (build_invariant_address): Declare.
7538 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7539 a renamed function moved ...
7540 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7541 Take valueization callback parameter.
7542 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7543 * gimple-fold.h: New file.
7544 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7545 (ccp_fold, fold_const_aggregate_ref,
7546 fold_ctor_reference, fold_nonarray_ctor_reference,
7547 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7548 get_base_constructor): Move ...
7549 * gimple-fold.c: ... here.
7550 (gimple_fold_stmt_to_constant_1): New function
7551 split out from ccp_fold. Take a valueization callback parameter.
7552 Valueize all operands.
7553 (gimple_fold_stmt_to_constant): New wrapper function.
7554 (fold_const_aggregate_ref_1): New function split out from
7555 fold_const_aggregate_ref. Take a valueization callback parameter.
7556 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7557 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7558 invariant POINTER_PLUS_EXPRs to invariant form.
7559 (vn_valueize): New function.
7560 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7561 * tree-vrp.c (vrp_valueize): New function.
7562 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7563 to fold statements to constants.
7564 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7565 function declarations.
7566 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7567 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7569 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7571 * config/h8300/predicates.md (jump_address_operand): Fix register
7574 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7576 * doc/invoke.texi (max-stores-to-sink): Document.
7577 * params.h (MAX_STORES_TO_SINK): Define.
7578 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7579 if either vectorization or if-conversion is disabled.
7580 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7581 tree-vect-data-refs.c vect_equal_offsets.
7582 (dr_equal_offsets_p): New function.
7583 (find_data_references_in_bb): Remove static.
7584 * tree-data-ref.h (find_data_references_in_bb): Declare.
7585 (dr_equal_offsets_p): Likewise.
7586 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7587 (vect_drs_dependent_in_basic_block): Update calls to
7589 (vect_check_interleaving): Likewise.
7590 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7591 (cond_if_else_store_replacement): Rename to...
7592 (cond_if_else_store_replacement_1): ... this. Change arguments and
7594 (cond_if_else_store_replacement): New function.
7595 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7596 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7598 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7601 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7602 to subtract lower bound instead of GEN_INT().
7604 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7609 * doc/extend.texi (Alignment): Move section to match order in TOC.
7610 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7611 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7613 2011-03-23 Jeff Law <law@redhat.com>
7615 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7616 before removing the edge.
7618 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7619 it may have been freed by redirect_branch_edge or
7620 redirect_edge_succ_nodup.
7622 2011-03-23 Richard Guenther <rguenther@suse.de>
7624 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7625 (check_va_list_escapes): Likewise.
7626 (check_all_va_list_escapes): Likewise.
7628 2011-03-23 Richard Guenther <rguenther@suse.de>
7630 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7631 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7632 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7633 (alias.o): Likewise.
7634 (ipa-type-escape.o): Remove.
7635 (ipa-struct-reorg.o): Likewise.
7636 (GTFILES): Remove ipa-struct-reorg.c.
7637 * alias.c: Do not include ipa-type-escape.h.
7638 * tree-ssa-alias.c: Likewise.
7639 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7640 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7641 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7642 and ipa-type-escape passes.
7643 * tree-pass.h (pass_ipa_type_escape): Remove.
7644 (pass_ipa_struct_reorg): Likewise.
7645 * ipa-struct-reorg.h: Remove.
7646 * ipa-struct-reorg.c: Likewise.
7647 * ipa-type-escape.h: Likewise.
7648 * ipa-type-escape.c: Likewise.
7649 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7650 (--param struct-reorg-cold-struct-ratio): Likewise.
7651 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7652 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7653 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7655 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7657 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7658 cpu attribute value.
7659 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7660 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7661 * config/s390/s390.c (processor_flags_table): New constant array.
7662 (s390_handle_arch_option): Remove.
7663 (s390_handle_option): Remove s390_handle_arch_option invocations
7664 and OPT_mwarn_framesize_ handling.
7665 (s390_option_override): Remove s390_handle_arch_option invocation.
7666 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7668 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7669 * config/s390/s390.opt (s390_tune, s390_arch)
7670 (march=): Replace s390_arch_option enum and values with
7671 processor_type. Set variable name to s390_arch. Set
7672 initialization value.
7673 (mtune=): Replace s390_arch_option with processor_type. Set
7674 variable name to s390_tune. Set initialization value.
7676 2011-03-23 Julian Brown <julian@codesourcery.com>
7678 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7679 accesses which are not naturally aligned.
7681 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7684 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7686 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7688 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7689 parameter from "int" to "enum insn_code".
7690 (expand_operand_type): New enum.
7691 (expand_operand): New structure.
7692 (create_expand_operand): New function.
7693 (create_fixed_operand, create_output_operand): Likewise
7694 (create_input_operand, create_convert_operand_to): Likewise.
7695 (create_convert_operand_from, create_address_operand): Likewise.
7696 (create_integer_operand): Likewise.
7697 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7698 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7699 (expand_insn, expand_jump_insn): Likewise.
7700 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7701 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7702 (expand_movstr, expand_builtin___clear_cache): Likewise.
7703 (expand_builtin_lock_release): Likewise.
7704 * explow.c (allocate_dynamic_stack_space): Likewise.
7705 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7706 and use the default handling in that case.
7707 * expmed.c (check_predicate_volatile_ok): Delete.
7708 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7709 (emit_cstore): Likewise.
7710 * expr.c (emit_block_move_via_movmem): Likewise.
7711 (set_storage_via_setmem, expand_assignment): Likewise.
7712 (emit_storent_insn, try_casesi): Likewise.
7713 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7714 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7715 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7716 (expand_twoval_unop, expand_twoval_binop): Likewise.
7717 (expand_unop_direct, emit_indirect_jump): Likewise.
7718 (emit_conditional_move, vector_compare_rtx): Likewise.
7719 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7720 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7721 (expand_sync_lock_test_and_set): Likewise.
7722 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7723 (emit_unop_insn): Likewise.
7724 (expand_copysign_absneg): Change icode to an insn_code.
7725 (create_convert_operand_from_type): New function.
7726 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7727 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7728 (expand_insn, expand_jump_insn): Likewise.
7729 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7730 than const_int_operand for operand 2.
7732 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7734 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7737 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7739 * emit-rtl.c (emit_pattern_before_noloc): New function.
7740 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7741 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7742 (emit_pattern_after_noloc): New function.
7743 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7744 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7746 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7748 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7749 (__ffsDI2): Likewise.
7751 2011-03-22 Richard Henderson <rth@redhat.com>
7753 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7754 of !TARGET_ABI_OPEN_VMS.
7755 (alpha_trampoline_init, alpha_start_function): Likewise.
7756 (alpha_expand_epilogue, alpha_file_start): Likewise.
7757 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7758 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7759 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7760 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7761 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7763 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7765 * config/s390/s390-opts.h: New.
7766 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7767 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7768 s390_stack_guard): Remove.
7769 (s390_handle_arch_option): Return void. Take enum
7770 s390_arch_option value instead of string and searching array.
7771 (s390_handle_option): Don't assert that global structures are in
7772 use. Access variables via opts pointer. Use error_at. Don't use
7773 sscanf for -mstack-guard= or -mstack-size=. Update call to
7774 s390_handle_arch_option.
7775 (s390_option_override): Update call to s390_handle_arch_option.
7776 (s390_emit_prologue): Use %d format for s390_stack_size in
7777 diagnostic. Use %wd for HOST_WIDE_INT.
7778 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7779 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7780 * config/s390/s390.opt (config/s390/s390-opts.h): New
7781 HeaderInclude entry.
7782 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7783 s390_arch_flags, s390_warn_framesize): New Variable entries.
7784 (s390_arch_option): New Enum and EnumValue entries.
7785 (march=): Use Enum instead of Var.
7786 (mstack-guard=, mstack-size=): Use UInteger and Var.
7789 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7791 * config/score/score.c (score_handle_option): Don't assert that
7792 global structures are in use. Access target_flags via opts
7793 pointer. Use value of -march= option to determine target_flags
7795 * config/score/score.opt (march=): Use Enum.
7796 (score_arch): New Enum and EnumValue entries.
7798 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7800 * config/mep/mep.c (option_mtiny_specified): Remove.
7801 (mep_option_override): Move register handling for -mivc2 from
7802 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7803 instead of option_mtiny_specified.
7804 (mep_handle_option): Access target_flags via opts pointer. Don't
7805 assert that global structures are in use. Defer part of -mivc2
7806 handling and move it to mep_option_override.
7807 * config/mep/mep.opt (IVC2): New Mask entry.
7808 (mivc2): Use Var and Defer instead of Mask.
7810 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7812 * config/v850/v850-opts.h: New.
7813 * config/v850/v850.c (small_memory): Replace with
7814 small_memory_physical_max array. Make that array static const.
7815 (v850_handle_memory_option): Take integer value of argument. Take
7816 gcc_options pointer, option text and location. Return void.
7817 Update for changes to small memory structures.
7818 (v850_handle_option): Access target_flags via opts pointer. Don't
7819 assert that global structures are in use. Update calls to
7820 v850_handle_memory_option.
7821 (v850_encode_data_area): Update references to small memory settings.
7822 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7823 (enum small_memory_type): Move to v850-opts.h.
7824 * config/v850/v850.opt (config/v850/v850-opts.h): New
7825 HeaderInclude entry.
7826 (small_memory_max): New Variable entry.
7827 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7828 (mtda, mzda): Likewise.
7830 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7832 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7833 pointer. Don't assert that global structures are in use.
7835 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7837 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7838 via opts pointer. Don't assert that global structures are in use.
7840 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7842 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7843 (munix=93): Use Var.
7844 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7845 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7846 * config/pa/pa-opts.h: New.
7847 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7848 (pa_handle_option): Don't assert that global structures are in
7849 use. Access target_flags via opts pointer. Don't handle
7850 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7852 (pa_option_override): Handle deferred OPT_mfixed_range_.
7854 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7856 * config/mn10300/mn10300-opts.h: New.
7857 * config/mn10300/mn10300.c (mn10300_processor,
7858 mn10300_tune_string): Remove.
7859 (mn10300_handle_option): Don't assert that global structures are
7860 in use. Access mn10300_processor via opts pointer. Don't handle
7862 * config/mn10300/mn10300.h (enum processor_type): Move to
7864 (mn10300_processor): Remove.
7865 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7866 HeaderInclude entry.
7867 (mn10300_processor): New Variable entry.
7870 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7872 * config/microblaze/microblaze.c: Don't include opts.h.
7873 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7874 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7875 (mno-clearbss): Use Var and Warn.
7877 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7879 * config/m32r/m32r-opts.h: New.
7880 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7881 (m32r_handle_option): Don't assert that global structures are in
7882 use. Access target_flags and m32r_cache_flush_func via opts
7883 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7884 OPT_mno_flush_trap here.
7885 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7886 include of m32r-opts.h.
7887 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7888 HeaderInclude entry.
7889 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7890 (mmodel=): Use Enum and Var.
7891 (m32r_model): New Enum and EnumValue entries.
7892 (mno-flush-trap): Use Var.
7893 (msdata=): Use Enum and Var.
7894 (m32r_sdata): New Enum and EnumValue entries.
7896 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7898 * config/m32c/m32c.c: Don't include opts.h.
7899 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7900 m32c_handle_option): Remove.
7901 (m32c_option_override): Check global_options_set.x_target_memregs
7902 instead of target_memregs_set.
7903 * config/m32c/m32c.h (target_memregs): Remove.
7904 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7907 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7909 * config/iq2000/iq2000-opts.h: New.
7910 * config/iq2000/iq2000.c: Don't include opts.h.
7911 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7912 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7913 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7914 HeaderInclude entry.
7915 (iq2000_tune): New Variable entry.
7916 (march=): Add comment. Use Enum.
7917 (iq2000_arch): New Enum and EnumValue entries.
7918 (mcpu=): Use Enum and Var.
7919 (iq2000_tune): New Enum and EnumValue entries.
7921 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7923 * config/ia64/ia64-opts.h: New.
7924 * config/ia64/ia64.c (ia64_tune): Remove.
7925 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7927 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7928 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7929 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7930 HeaderInclude entry.
7931 (ia64_tune): New Variable entry.
7932 (mfixed-range=): Use Defer and Var.
7933 (mtune=): Use Enum and Var.
7934 (ia64_tune): New Enum and EnumValue entries.
7936 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7938 * config/frv/frv-opts.h: New.
7939 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7941 (frv_cpu_type): Remove.
7942 * config/frv/frv.c: Don't include opts.h.
7943 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7944 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7945 (frv_cpu_type): New Variable entry.
7946 (frv_cpu): New Enum and EnumValue entries.
7948 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7950 * config/cris/cris.c (cris_handle_option): Access target_flags via
7951 opts pointer. Don't assert that global structures are in use.
7952 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7953 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7955 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7957 * config/bfin/bfin-opts.h: New.
7958 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7959 bfin_si_revision, bfin_workarounds): Remove.
7960 (bfin_cpus): Make static const.
7961 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7962 not bfin_lib_id_given.
7963 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7964 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7965 pointer. Use error_at. Don't assert that global structures are in use.
7966 * config/bfin/bfin.h: Include bfin-opts.h.
7967 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7968 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7969 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7970 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7973 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7975 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7976 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7977 or -msoft-float here.
7978 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7979 -msoft-float and -mhard-float.
7980 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7981 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7983 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7985 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7986 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7988 (LIBGCC_SPEC): Don't handle -msoft-float.
7989 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7991 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7993 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7994 -mfloat-abi=*, not -msoft-float and -mhard-float.
7995 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7997 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7998 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7999 mhard-float and msoft-float.
8000 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8001 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8002 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8003 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8005 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8006 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8008 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8010 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8013 2011-03-22 Richard Henderson <rth@redhat.com>
8015 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8016 TARGET_ABI_WINDOWS_NT.
8017 (alpha_output_function_end_prologue): Likewise.
8018 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8019 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8020 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8021 (trap, *movsi_nt_vms): Likewise.
8022 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8023 (*tablejump_osf_nt_internal): Remove.
8024 * config/alpha/predicates.md (input_operand): Only test Pmode.
8026 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8028 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8029 via opts pointer. Use error_at. Don't assert that global
8030 structures are in use.
8032 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8034 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8035 (ix86_handle_option): Access ix86_isa_flags and
8036 ix86_isa_flags_explicit via opts pointer. Don't assert that
8037 global structures are in use.
8038 (ix86_function_specific_save, ix86_function_specific_restore):
8039 Update ix86_isa_flags_explicit field name.
8040 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8041 (ix86_isa_flags_explicit): Rename TargetSave entry to
8042 x_ix86_isa_flags_explicit.
8044 2011-03-22 Richard Henderson <rth@redhat.com>
8046 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8047 (alpha_option_override, direct_return): Likewise.
8048 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8049 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8050 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8051 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8052 (alpha_expand_epilogue, alpha_end_function): Likewise.
8053 (alpha_init_libfuncs): Likewise.
8054 (struct machine_function): Remove unicosmk members.
8055 (print_operand) ['t']: Remove.
8056 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8057 unicosmk_output_module_name, unicosmk_output_common,
8058 current_section_align, unicosmk_output_text_section_asm_op,
8059 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8060 unicosmk_section_type_flags, unicosmk_unique_section,
8061 unicosmk_asm_named_section, unicosmk_insert_attributes,
8062 unicosmk_output_align, unicosmk_defer_case_vector,
8063 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8064 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8065 unicosmk_output_ssib, unicosmk_add_call_info_word,
8066 unicosmk_extern_head, unicosmk_output_default_externs,
8067 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8068 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8069 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8070 * config/alpha/alpha-protos.h: Update.
8071 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8072 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8073 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8074 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8075 (*mulsi_se, mulvsi3): Likewise.
8076 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8077 (*divmodsi_internal, call, call_value, realign): Likewise.
8078 (moddi3, umoddi3): Likewise; remove duplicate expander.
8079 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8080 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8081 (*movdi_nofix): Remove r/U alternative.
8082 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8083 * config/alpha/constraints.md ("U"): Remove.
8084 * config/alpha/predicates.md (call_operand"): Don't test
8085 TARGET_ABI_UNICOSMK.
8087 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8089 * target.def (handle_option): Take gcc_options and
8090 cl_decoded_option pointers and location_t.
8091 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8092 * doc/tm.texi: Regenerate.
8093 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8094 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8095 * lto-opts.c (lto_reissue_options): Generate option structure for
8096 targetm.handle_option call.
8097 * opts.c (target_handle_option): Update call to
8098 targetm.handle_option. Remove assertions about values now passed
8100 * targhooks.c (default_target_handle_option): New.
8101 * targhooks.h (default_target_handle_option): Declare.
8102 * config/alpha/alpha.c: Include opts.h.
8103 (alpha_handle_option): Update to new hook interface.
8104 * config/arm/arm.c: Include opts.h.
8105 (arm_handle_option): Update to new hook interface.
8106 * config/arm/t-arm (arm.o): Update dependencies.
8107 * config/bfin/bfin.c: Include opts.h.
8108 (bfin_handle_option): Update to new hook interface.
8109 * config/cris/cris.c: Include opts.h.
8110 (cris_handle_option): Update to new hook interface.
8111 * config/frv/frv.c: Include opts.h.
8112 (frv_handle_option): Update to new hook interface.
8113 * config/i386/i386.c: Include opts.h.
8114 (ix86_handle_option): Update to new hook interface.
8115 (ix86_valid_target_attribute_inner_p): Generate option structure
8116 for call to ix86_handle_option.
8117 * config/i386/t-i386 (i386.o): Update dependencies.
8118 * config/ia64/ia64.c: Include opts.h.
8119 (ia64_handle_option): Update to new hook interface.
8120 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8121 * config/iq2000/iq2000.c: Include opts.h.
8122 (iq2000_handle_option): Update to new hook interface.
8123 * config/m32c/m32c.c: Include opts.h.
8124 (m32c_handle_option): Update to new hook interface.
8125 * config/m32r/m32r.c: Include opts.h.
8126 (m32r_handle_option): Update to new hook interface.
8127 * config/m68k/m68k.c: Include opts.h.
8128 (m68k_handle_option): Update to new hook interface.
8129 * config/mep/mep.c: Include opts.h.
8130 (mep_handle_option): Update to new hook interface.
8131 * config/microblaze/microblaze.c: Include opts.h.
8132 (microblaze_handle_option): Update to new hook interface.
8133 * config/mips/mips.c: Include opts.h.
8134 (mips_handle_option): Update to new hook interface.
8135 * config/mn10300/mn10300.c: Include opts.h.
8136 (mn10300_handle_option): Update to new hook interface.
8137 * config/pa/pa.c: Include opts.h.
8138 (pa_handle_option): Update to new hook interface.
8139 * config/pdp11/pdp11.c: Include opts.h.
8140 (pdp11_handle_option): Update to new hook interface.
8141 * config/rs6000/rs6000.c: Include opts.h.
8142 (rs6000_handle_option): Update to new hook interface.
8143 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8144 * config/rx/rx.c: Include opts.h.
8145 (rx_handle_option): Update to new hook interface.
8146 * config/s390/s390.c: Include opts.h.
8147 (s390_handle_option): Update to new hook interface.
8148 * config/score/score.c: Include opts.h.
8149 (score_handle_option): Update to new hook interface.
8150 * config/sh/sh.c: Include opts.h.
8151 (sh_handle_option): Update to new hook interface.
8152 * config/sparc/sparc.c: Include opts.h.
8153 (sparc_handle_option): Update to new hook interface.
8154 * config/v850/v850.c: Include opts.h.
8155 (v850_handle_option): Update to new hook interface.
8157 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8159 * gcc.c (driver_unknown_option_callback): Only permit and save
8160 unknown -Wno- options.
8161 (driver_wrong_lang_callback): Save options directly instead of via
8162 driver_unknown_option_callback.
8164 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8166 * combine.c (simplify_set): Try harder to find the best CC mode when
8167 simplifying a nested COMPARE on the RHS.
8169 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8171 * config/alpha/gnu.h: Remove.
8172 * config/arc: Remove directory.
8173 * config/arm/netbsd.h: Remove.
8174 * config/arm/t-pe: Remove.
8175 * config/crx: Remove directory.
8176 * config/i386/netbsd.h: Remove.
8177 * config/m68hc11: Remove directory.
8178 * config/m68k/uclinux-oldabi.h: Remove.
8179 * config/mcore/mcore-pe.h: Remove.
8180 * config/mcore/t-mcore-pe: Remove.
8181 * config/netbsd-aout.h: Remove.
8182 * config/rs6000/gnu.h: Remove.
8183 * config/sh/sh-symbian.h: Remove.
8184 * config/sh/symbian-base.c: Remove.
8185 * config/sh/symbian-c.c: Remove.
8186 * config/sh/symbian-cxx.c: Remove.
8187 * config/sh/symbian-post.h: Remove.
8188 * config/sh/symbian-pre.h: Remove.
8189 * config/sh/t-symbian: Remove.
8190 * config/svr3.h: Remove.
8191 * config/vax/netbsd.h: Remove.
8192 * config.build: Don't handle i[34567]86-*-pe.
8193 * config.gcc: Remove handling of deprecations for most deprecated
8195 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8196 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8197 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8198 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8199 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8200 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8202 * config.host: Don't handle i[34567]86-*-pe.
8203 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8204 (ASM_SPEC32): Don't handle -mcall-gnu.
8205 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8207 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8208 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8209 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8210 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8211 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8212 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8213 conditional on SYMBIAN.
8214 * configure.ac: Don't handle powerpc*-*-gnu*.
8215 * configure: Regenerate.
8216 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8217 * doc/install-old.texi (m6811, m6812): Don't mention.
8218 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8219 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8220 (m68k-uclinuxoldabi): Don't mention.
8221 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8223 (-mcall-gnu): Remove.
8224 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8225 families): Remove constraint documentation.
8227 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8229 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8230 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8231 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8233 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8236 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8237 vector when peeking at the next token for vector, don't expand the
8240 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8242 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8243 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8244 * config/avr/avr.c (init_cumulative_args)
8245 (avr_function_arg_advance): Use it.
8246 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8248 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8249 (avr_function_ok_for_sibcall): ...this new function.
8250 (avr_lookup_function_attribute1): New static Function.
8251 (avr_naked_function_p, interrupt_function_p)
8252 (signal_function_p, avr_OS_task_function_p)
8253 (avr_OS_main_function_p): Use it.
8254 * config/avr/avr.md ("sibcall", "sibcall_value")
8255 ("sibcall_epilogue"): New expander.
8256 ("*call_insn", "*call_value_insn"): New insn.
8257 ("call_insn", "call_value_insn"): Remove
8258 ("call", "call_value", "epilogue"): Change expander to handle
8261 2011-03-21 Nick Clifton <nickc@redhat.com>
8263 * doc/invoke.texi (Overall Options): Move closing brace to end of
8265 (Optimization Options): Add missing @gol.
8266 (Directory Options): Likewise.
8267 (i386 and x86-64 Options): Likewise.
8268 (RS6000 and PowerPC Options): Likewise.
8269 (i386 and x86-64 Windows Options): Likewise.
8270 (V850 Options): Add text missing from descriptions.
8272 2011-03-22 Richard Henderson <rth@redhat.com>
8274 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8275 (avr_incoming_return_addr_rtx): New.
8276 (emit_push_byte): New.
8277 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8278 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8279 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8280 (emit_pop_byte): New.
8281 (expand_epilogue): Use it. Pop frame pointer by bytes.
8282 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8283 (INCOMING_RETURN_ADDR_RTX): New.
8284 (INCOMING_FRAME_SP_OFFSET): New.
8285 (ARG_POINTER_CFA_OFFSET): New.
8286 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8287 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8290 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8292 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8294 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8295 (FUNCTION_ARG_ADVANCE): Likewise.
8296 * tm.texi.in: Change references to them to hook references.
8297 * tm.texi: Regenerate.
8298 * targhooks.c (default_function_arg): Eliminate check for target
8300 (default_function_incoming_arg): Likewise.
8301 (default_function_arg_advance): Likewise.
8302 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8303 (function_arg_advance): Likewise.
8304 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8306 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8308 * tree.c (build_call_1): New function.
8309 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8311 2011-03-22 Richard Guenther <rguenther@suse.de>
8313 PR tree-optimization/48228
8314 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8315 for single-arg PHIs.
8317 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8319 PR rtl-optimization/48143
8320 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8321 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8322 sse2_cvtps2pd): Likewise.
8324 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8326 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8328 2011-03-22 Richard Guenther <rguenther@suse.de>
8330 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8331 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8332 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8333 and REALIGN_LOAD_EXPR.
8334 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8335 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8336 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8337 DOT_PROD_EXPR case ...
8338 (expand_expr_real_2): ... here.
8339 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8340 and REALIGN_LOAD_EXPR.
8341 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8342 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8343 (vect_create_epilog_for_reduction): Likewise.
8344 (vectorizable_reduction): Likewise.
8345 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8346 * tree-vect-stmts.c (vectorizable_load): Likewise.
8348 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8350 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8352 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8354 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8355 handling for PLTOFF/GOTOFF.
8357 2011-03-22 Nick Clifton <nickc@redhat.com>
8359 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8360 trailing backslash from the end of the macro definition.
8362 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8364 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8367 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8369 * expr.h (prepare_operand): Move to...
8370 * optabs.h (prepare_operand): ...here and change the insn code
8371 parameter from "int" to "enum insn_code".
8372 (insn_operand_matches): Declare.
8373 * expr.c (init_expr_target): Use insn_operand_matches.
8374 (compress_float_constant): Likewise.
8375 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8376 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8377 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8378 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8380 (gen_cond_trap): Likewise.
8381 (prepare_operand): Likewise. Change icode to an insn_code.
8382 (insn_operand_matches): New function.
8383 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8384 * reload1.c (gen_reload): Likewise.
8385 * targhooks.c (default_secondary_reload): Likewise.
8387 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8389 * config/alpha/alpha.md (unspec): New define_c_enum.
8392 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8395 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8396 between a call and its CALL_ARG_LOCATION note.
8398 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8400 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8402 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8406 * c-common.c (shorten_compare): If primopN is first sign-extended
8407 to opN and then zero-extended to result type, set primopN to opN.
8409 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8411 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8412 for barrier handlers.
8414 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8416 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8417 UNSPEC constants to be in the unspec enumeration, and redefine
8418 all UNSPECV constants to be in the unspecv enumeration, so that
8419 dumps print which unspec/unspec_volatile this is.
8420 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8421 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8422 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8423 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8424 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8426 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8427 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8428 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8429 * config/rs6000/sync.md (isync, lwsync): Ditto.
8431 2011-03-21 Richard Guenther <rguenther@suse.de>
8433 * params.def (lto-min-partition): Fix typo.
8435 2011-03-21 Richard Guenther <rguenther@suse.de>
8438 * c-decl.c (grokdeclarator): Drop to the main variant only
8439 for array types. Drop flag_gen_aux_info check.
8441 2011-03-21 Richard Guenther <rguenther@suse.de>
8443 PR translation/47911
8444 * params.def (lto-partitions): Fix typo.
8445 (lto-min-partition): Fix wording.
8447 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8449 * config/rs6000/t-freebsd: Remove duplication from file.
8451 2011-03-21 Richard Guenther <rguenther@suse.de>
8454 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8456 2011-03-21 Richard Guenther <rguenther@suse.de>
8459 * params.def (lto-partitions): Require at least 1 partition.
8461 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8463 * gthr-solaris.h: Remove.
8464 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8465 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8466 (LIB_SPEC): Likewise.
8467 * config/sol2.opt (threads): Remove.
8468 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8469 (sparc*-*-solaris2*): Likewise.
8470 * configure.ac (enable_threads): Enable solaris support.
8471 * configure: Regenerate.
8472 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8473 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8476 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8478 * config.gcc: Obsolete *-*-solaris2.8*.
8479 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8481 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8484 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8485 reference. Solaris 8 perl works.
8487 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8490 * doc/install.texi (Prerequisites): Move jar etc. up.
8491 Explain support library version requirements.
8493 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8496 * doc/install.texi (Prerequisites): Move Perl to build
8497 requirements. Always necessary on Solaris 2 with Sun ld.
8499 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8501 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8503 (Specific, i?86-*-solaris2.[89]): Likewise.
8504 (Specific, i?86-*-solaris2.10): Likewise.
8505 (Specific, mips-sgi-irix6): Likewise.
8506 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8507 Update for binutils 2.21.
8509 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8511 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8512 Allow -fuse-linker-plugin for non-default plugin linker.
8513 * configure: Regenerate.
8515 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8518 * gengtype.c (files_rules): Added rule for cp/parser.h.
8520 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8523 * config/s390/s390.c (s390_delegitimize_address): Don't call
8524 lowpart_subreg if orig_x has BLKmode.
8526 2011-03-21 Kai Tietz <ktietz@redhat.com>
8529 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8530 * tree.h (attribute_spec): Add new member affects_type_identity.
8531 * attribs.c (empty_attribute_table): Adjust attribute_spec
8533 * config/alpha/alpha.c: Likewise.
8534 * config/arc/arc.c: Likewise.
8535 * config/arm/arm.c: Likewise.
8536 * config/avr/avr.c: Likewise.
8537 * config/bfin/bfin.c: Likewise.
8538 * config/crx/crx.c: Likewise.
8539 * config/darwin.h: Likewise.
8540 * config/h8300/h8300.c: Likewise.
8541 * config/i386/cygming.h: Likewise.
8542 * config/i386/i386.c: Likewise.
8543 * config/ia64/ia64.c: Likewise.
8544 * config/m32c/m32c.c: Likewise.
8545 * config/m32r/m32r.c: Likewise.
8546 * config/m68hc11/m68hc11.c: Likewise.
8547 * config/m68k/m68k.c: Likewise.
8548 * config/mcore/mcore.c: Likewise.
8549 * config/mep/mep.c: Likewise.
8550 * config/microblaze/microblaze.c: Likewise.
8551 * config/mips/mips.c: Likewise.
8552 * config/rs6000/rs6000.c: Likewise.
8553 * config/rx/rx.c: Likewise.
8554 * config/sh/sh.c: Likewise.
8555 * config/sol2.h: Likewise.
8556 * config/sparc/sparc.c: Likewise.
8557 * config/spu/spu.c: Likewise.
8558 * config/stormy16/stormy16.c: Likewise.
8559 * config/v850/v850.c: Likewise.
8561 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8563 * simplify-rtx.c (simplify_binary_operation_1): Handle
8564 (xor (and A B) C) case when B and C are both constants.
8566 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8568 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8570 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8573 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8575 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8577 PR rtl-optimization/48156
8578 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8579 assume df and df_lr are not NULL.
8581 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8584 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8585 between a call and its CALL_ARG_LOCATION note.
8587 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8590 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8591 between a call and its corresponding CALL_ARG_LOCATION note.
8593 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8595 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8596 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8597 * haifa-sched.c (setup_ref_regs): Ditto.
8598 * caller-save.c (add_used_regs_1): Ditto.
8599 * dse.c (look_for_hardregs): Ditto.
8600 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8601 * sched-rgn.c (check_live_1): Ditto.
8603 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8605 * c-decl.c (diagnose_mismatched_decls): Give an error for
8606 redefining a typedef with variably modified type.
8608 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8610 * c-decl.c (grokfield): Don't allow typedefs for structures or
8611 unions with no tag by default.
8612 * doc/extend.texi (Unnamed Fields): Update.
8614 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8616 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8617 Rewrite using indirect functions.
8618 (lwp_slwpcb): Ditto.
8619 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8620 (avx_vinsertf128<mode>): Ditto.
8622 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8624 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8627 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8629 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8630 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8632 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8634 PR rtl-optimization/48170
8635 * gcse.c (hoist_code): Remove bogus asserts.
8637 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8639 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8640 computation for prologue/epilogue.
8642 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8644 * Makefile.in (check-consistency): Remove.
8646 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8649 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8650 arange_table_in_use is 0, but either text_section_used or
8651 cold_text_section_used is true. Don't call it if
8652 !info_section_emitted.
8654 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8656 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8657 FUNCTION_VALUE_REGNO_P): Remove.
8658 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8660 * config/avr/avr.c (avr_ret_register): Make static inline.
8661 (avr_function_value_regno_p): New function.
8662 (avr_libcall_value): Make static. Add 'func' argument.
8663 (avr_function_value): Make static. Rename 'func' argument to
8664 'fn_decl_or_type', forward it to avr_libcall_value. Call
8665 avr_ret_register function instead of RET_REGISTER macro.
8666 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8668 2011-03-18 Jason Merrill <jason@redhat.com>
8671 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8673 2011-03-18 Richard Guenther <rguenther@suse.de>
8675 * doc/install.texi (--enable-gold): Remove.
8676 (--with-plugin-ld): Document.
8677 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8679 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8682 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8683 again after expansion changes.
8685 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8687 * combine.c (try_combine): Do simplification only call of
8688 subst() on i2 even when i1 is present. Update comments.
8690 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8692 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8693 and UNSPEC_PCREL_SYMOFF.
8695 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8697 * config/s390/s390.md: Use define_c_enum for the unspec constant
8700 2011-03-18 Richard Henderson <rth@redhat.com>
8701 Jakub Jelinek <jakub@redhat.com>
8704 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8705 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8707 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8710 * combine.c (cant_combine_insn_p): Don't check zero/sign
8711 extended hard registers.
8713 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8716 * combine.c (cant_combine_insn_p): Check zero/sign extended
8719 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8721 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8722 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8723 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8724 Change return type to bool.
8725 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8727 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8730 * var-tracking.c (prepare_call_arguments): If CALL target
8731 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8732 pc instead of looking it up using cselib_lookup and use
8733 Pmode for it if x has VOIDmode.
8734 * dwarf2out.c (gen_subprogram_die): If also both first and
8735 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8738 * function.c (assign_parms): For data.passed_pointer parms
8739 use MEM of data.entry_parm instead of data.entry_parm itself
8740 as DECL_INCOMING_RTL.
8741 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8742 also when passed and declared mode is the same, DECL_RTL
8743 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8746 2011-03-16 Jeff Law <law@redhat.com>
8748 PR rtl-optimization/37273
8749 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8750 handle them like argument loads from stack slots. Do not double
8751 count memory for memory constants and argument loads from stack slots.
8753 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8756 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8758 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8761 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8763 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8766 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8768 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8769 Clear call_arg_locations and call_arg_loc_last always.
8772 * var-tracking.c (prepare_call_arguments): If argument needs to be
8773 passed by reference, adjust argtype and mode.
8775 2011-03-17 Richard Guenther <rguenther@suse.de>
8778 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8779 a value make sure to fold the statement.
8781 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8784 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8785 return condition with !cfun->calls_alloca.
8787 2011-03-17 Richard Guenther <rguenther@suse.de>
8790 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8791 origin for decls in other ltrans units.
8792 (input_varpool_node): Likewise.
8794 2011-03-17 Richard Guenther <rguenther@suse.de>
8797 * tree-object-size.c (compute_object_offset): Properly return
8798 the offset operand of MEM_REFs as sizetype.
8800 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8802 PR rtl-optimization/48141
8803 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8804 * dse.c: Include params.h.
8805 (active_local_stores_len): New variable.
8806 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8808 (record_store, check_mem_read_rtx): Decrease it when removing
8810 (scan_insn): Likewise. Increase it when adding to chain, if it
8811 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8812 set active_local_stores to NULL before the addition.
8813 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8815 PR rtl-optimization/48141
8816 * dse.c (record_store): If no positions are needed in an insn
8817 that cannot be deleted, at least unchain it from active_local_stores.
8819 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8822 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8823 (lookup_type_die_strip_naming_typedef): ... here.
8824 (get_context_die): Use it.
8825 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8826 the anonymous struct named by the naming typedef.
8828 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8831 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8832 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8834 2011-03-16 Jeff Law <law@redhat.com>
8836 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8837 check for operands of conditional. Allow type to be a pointer.
8839 2011-03-16 Richard Guenther <rguenther@suse.de>
8841 PR tree-optimization/48149
8842 * fold-const.c (fold_binary_loc): Fold
8843 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8845 2011-03-16 Richard Guenther <rguenther@suse.de>
8847 PR tree-optimization/26134
8848 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8849 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8850 (non_rewritable_mem_ref_base): Handle complex type component
8851 accesses, constrain offsets for vector and complex extracts
8854 2011-03-16 Richard Guenther <rguenther@suse.de>
8856 PR tree-optimization/48146
8857 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8858 operands avoiding the need for renaming.
8860 2011-03-16 Richard Guenther <rguenther@suse.de>
8862 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8863 constant folding. Move MEM_REF canonicalization first.
8864 Rely on fold_const_aggregate_ref for initializer folding.
8865 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8867 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8870 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8871 arg0/arg1 or their arguments are always fold converted to matching
8874 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8877 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8880 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8881 Handle in-tree gold.
8882 (ld_vers): Extract binutils version for gold.
8883 (gcc_cv_ld_hidden): Handle gold here.
8884 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8885 * configure: Regenerate.
8886 * config.in: Regenerate.
8887 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8888 -fuse-linker-plugin otherwise.
8889 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8890 (LINK_COMMAND_SPEC): Use it.
8891 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8893 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8895 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8896 * calls.c: Remove debug.h include.
8897 (emit_call_1): Don't call virtual_call_token debug hook.
8898 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8899 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8900 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8901 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8902 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8903 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8904 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8905 dwarf2out_virtual_call): Remove.
8906 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8907 copy_call_info and virtual_call hooks.
8908 (dwarf2out_init): Don't initialize vcall_insn_table,
8909 debug_dcall_section and debug_vcall_section.
8910 (prune_unused_types): Don't mark nodes from dcall_table.
8911 (dwarf2out_finish): Don't output dcall or vcall tables.
8912 * final.c (final_scan_insn): Don't call direct_call or
8913 virtual_call debug hooks.
8914 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8915 virtual_call_token, copy_call_info and virtual_call hooks.
8916 (debug_nothing_uid): Remove prototype.
8917 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8918 copy_call_info and virtual_call hooks.
8919 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8920 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8921 * debug.c (do_nothing_debug_hooks): Likewise.
8922 (debug_nothing_uid): Remove.
8923 * doc/invoke.texi (-fenable-icf-debug): Remove.
8924 * common.opt (-fenable-icf-debug): Likewise.
8926 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8927 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8928 call's MEM. Handle functions returning aggregate through a hidden
8929 first pointer. For virtual calls add clobbered pc to call arguments
8931 * dwarf2out.c (gen_subprogram_die): Emit
8932 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8936 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8937 * rtl.h (ENTRY_VALUE_EXP): Define.
8938 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8939 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8940 * print-rtl.c (print_rtx): Likewise.
8941 * gengtype.c (adjust_field_rtx_def): Likewise.
8942 * var-tracking.c (vt_add_function_parameter): Adjust
8943 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8944 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8945 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8946 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8947 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8949 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8950 Call var_location debug hook even on CALL_INSNs.
8951 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8952 * rtl.def (ENTRY_VALUE): New.
8953 * dwarf2out.c: Include cfglayout.h.
8954 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8955 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8956 (struct call_arg_loc_node): New type.
8957 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8958 tail_call_site_count): New variables.
8959 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8960 DW_TAG_GNU_call_site_parameter.
8961 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8962 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8963 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8964 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8965 and DW_AT_GNU_all_source_call_sites.
8966 (mem_loc_descriptor): Handle ENTRY_VALUE.
8967 (add_src_coords_attributes): Don't add enything if
8968 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8969 (dwarf2out_abstract_function): Save and clear call_arg_location,
8970 call_site_count and tail_call_site_count around dwarf2out_decl call.
8971 (gen_call_site_die): New function.
8972 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8973 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8974 (dwarf2out_function_decl): Clear call_arg_locations,
8975 call_arg_loc_last, set call_site_count and tail_call_site_count
8976 to -1 and free block_map.
8977 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8978 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
8979 followed by any real instructions.
8980 (dwarf2out_begin_function): Set call_site_count and
8981 tail_call_site_count to 0.
8982 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8983 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8984 attempt to force a DIE for it and worst case remove the attribute.
8985 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8986 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8988 * var-tracking.c: Include tm_p.h.
8989 (vt_stack_adjustments): For calls call note_register_arguments.
8990 (argument_reg_set): New variable.
8991 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8992 ensure the VALUE is resolved.
8993 (call_arguments): New variable.
8994 (prepare_call_arguments): New function.
8995 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8996 (struct expand_loc_callback_data): Add ignore_cur_loc field.
8997 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8998 always use the best expression.
8999 (vt_expand_loc): Add ignore_cur_loc argument.
9000 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9001 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9002 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9004 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9005 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9006 argument. Don't call cselib_preserve_only_values and
9008 (note_register_arguments): New function.
9009 (vt_initialize): Compute argument_reg_set. Call
9010 vt_add_function_parameters before processing basic blocks instead of
9011 afterwards. For calls call prepare_call_arguments before calling
9012 cselib_process_insn.
9013 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9014 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9015 (var-tracking.o): Depend on $(TM_P_H).
9016 * cfglayout.h (insn_scope): New prototype.
9017 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9018 * cfglayout.c (insn_scope): No longer static.
9019 * insn-notes.def (CALL_ARG_LOCATION): New.
9020 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9021 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9022 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9023 nothing for DECL_EXTERNAL BLOCK_VARS.
9025 2011-03-16 Alan Modra <amodra@gmail.com>
9028 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9029 create invalid offset address for vsx splat insn.
9030 * config/rs6000/predicates.md (splat_input_operand): New.
9031 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9033 2011-03-15 Xinliang David Li <davidxl@google.com>
9036 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9037 (normalize_preds): New function.
9038 (is_use_properly_guarded): Normalize def predicates.
9040 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9043 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9044 in the output template.
9046 2011-03-15 Richard Guenther <rguenther@suse.de>
9049 * tree-pretty-print.c (dump_function_declaration): Properly
9050 dump unprototyped and varargs function types.
9052 2011-03-15 Richard Guenther <rguenther@suse.de>
9054 PR tree-optimization/13954
9055 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9058 2011-03-15 Richard Guenther <rguenther@suse.de>
9060 PR tree-optimization/48037
9061 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9062 selects into BIT_FIELD_REFs.
9063 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9066 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9068 PR tree-optimization/48129
9069 * builtins.c (fold_builtin_snprintf): Convert to type of
9070 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9071 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9073 2011-03-15 Richard Guenther <rguenther@suse.de>
9075 PR tree-optimization/41490
9076 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9077 value but with VUSE.
9078 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9080 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9081 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9082 * tree-tailcall.c (find_tail_calls): Ignore returns.
9084 2011-03-15 Richard Guenther <rguenther@suse.de>
9087 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9088 or variable-indexed array accesses when in gimple form.
9090 2011-03-15 Richard Guenther <rguenther@suse.de>
9092 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9094 2011-03-15 Alan Modra <amodra@gmail.com>
9097 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9098 presume symbol_refs without a symbol_ref_decl are suitably
9099 aligned, nor other trees we may see here. Handle anchor symbols.
9100 (legitimate_constant_pool_address_p): Comment. Add mode param.
9101 Check cmodel=medium addresses. Adjust all calls.
9102 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9103 creating cmodel=medium optimized access to locals.
9104 * config/rs6000/constraints.md (R): Pass QImode to
9105 legitimate_constant_pool_address_p.
9106 * config/rs6000/predicates.md (input_operand): Pass mode to
9107 legitimate_constant_pool_address_p.
9108 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9111 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9114 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9115 64-bit constants being loaded into registers other than GPRs such
9116 as loading 0 into a VSX register.
9118 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9120 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9122 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9125 * builtins.c (fold_builtin_snprintf): New function.
9126 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9127 (fold_builtin_4): Likewise.
9130 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9131 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9132 and C - X == X also strip nops from +/-/p+ operand.
9133 When optimizing -X == C, fold C to arg0's type.
9136 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9137 emit it as add_AT_int instead of add_AT_unsigned.
9139 2011-03-14 Tom Tromey <tromey@redhat.com>
9141 * unwind-dw2.c: Include sys/sdt.h if it exists.
9142 (_Unwind_DebugHook): Use STAP_PROBE2.
9143 * config.in, configure: Rebuild.
9144 * configure.ac: Check for sys/sdt.h.
9146 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9148 * config/i386/i386.md (ROUND_FLOOR): New constant.
9149 (ROUND_CEIL): Ditto.
9150 (ROUND_TRUNC): Ditto.
9151 (ROUND_MXCSR): Ditto.
9152 (ROUND_NO_EXC): Ditto.
9153 (rint<mode>2): Use new defines instead of numerical constants.
9154 (floor<mode>2): Ditto.
9155 (ceil<mode>2): Ditto.
9156 (btrunc<mode>2): Ditto.
9157 * config/i386/i386-builtin-types.def: Define ROUND function type
9159 * config/i386/i386.c (enum ix86_builtins): Add
9160 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9161 (struct builtin_description): Add
9162 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9163 (ix86_expand_sse_round): New static function.
9164 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9166 (ix86_builtin_vectorized_function): Handle
9167 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9169 2011-03-14 Tom Tromey <tromey@redhat.com>
9171 * c-parser.c (c_parser_asm_string_literal): Clear
9172 warn_overlength_strings.
9174 2011-03-14 Tom Tromey <tromey@redhat.com>
9176 * c-parser.c (disable_extension_diagnostics): Save
9177 warn_overlength_strings.
9178 (restore_extension_diagnostics): Restore warn_overlength_strings.
9180 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9182 * BASE-VER: Change to 4.7.0.
9184 2011-03-14 Richard Guenther <rguenther@suse.de>
9187 * tree.c (build_vector_from_val): Adjust assert to requirements
9190 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9193 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9195 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9197 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9198 terms of target_flags_explicit. Adjust copyright year.
9200 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9201 * config/rs6000/t-freebsd: New file. Add override for
9204 2011-03-13 Chris Demetriou <cgd@google.com>
9206 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9207 (-fno-diagnostics-show-option): this, to reflect current default.
9208 (-Werror=): Update text about -fno-diagnostics-show-option.
9210 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9213 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9214 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9215 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9216 mode is not V2DImode or V2DFmode.
9217 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9218 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9219 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9221 (movdi_internal64): Likewise.
9223 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9225 PR tree-optimization/47127
9226 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9228 (set_cloog_options): Same.
9229 (scop_to_clast): Same.
9230 (print_clast_stmt): Do not call cloog_state_malloc and
9232 (print_generated_program): Same.
9234 * graphite-clast-to-gimple.h (cloog_state): Declared.
9235 (scop_to_clast): Adjust declaration.
9236 * graphite.c (cloog_state): Defined here.
9237 (graphite_initialize): Call cloog_state_malloc.
9238 (graphite_finalize): Call cloog_state_free.
9240 2011-03-11 Jason Merrill <jason@redhat.com>
9242 * attribs.c (lookup_attribute_spec): Take const_tree.
9245 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9247 * config/sparc/sparc.c (sparc_option_override): Use
9248 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9250 2011-03-11 Richard Guenther <rguenther@suse.de>
9252 PR tree-optimization/48067
9253 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9254 multiplication result will be only used once on the target
9257 2011-03-11 Richard Guenther <rguenther@suse.de>
9259 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9261 2011-03-11 Richard Guenther <rguenther@suse.de>
9264 * tree.c (find_decls_types_r): Do not walk types only reachable
9265 from IDENTIFIER_NODEs.
9267 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9270 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9271 all vnode->force_output nodes as needed.
9273 2011-03-11 Jason Merrill <jason@redhat.com>
9276 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9277 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9279 2011-03-11 Martin Jambor <mjambor@suse.cz>
9281 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9284 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9286 PR tree-optimization/48063
9287 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9288 inline functions called once if !tree_can_inline_p (node->callers).
9290 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9292 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9294 * config/score/score3.c: Delete.
9295 * config/score/score3.h: Delete.
9296 * config/score/mul-div.S: Delete.
9297 * config/score/sfp-machine.h: Add new file.
9298 * config/score/constraints.md: Add new file.
9299 * config/score/t-score-softfp: Add new file.
9300 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9301 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9302 (score7_extra_constraint): Delete.
9303 (score7_option_override): Remove unused code.
9304 * config/score/score.c: Remove score3 and score5 define and code.
9305 * config/score/score.h: Remove score3 and score5 define and code.
9306 * config/score/score.md: Remove score3 template and unusual insn.
9307 * config/score/score.opt: Remove score3 and score5 options.
9309 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9311 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9312 when _HPUX_SOURCE is defined.
9313 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9315 2011-03-10 Jason Merrill <jason@redhat.com>
9318 * stor-layout.c (layout_type): Don't set structural equality
9319 on arrays of incomplete type.
9320 * tree.c (type_hash_eq): Handle comparing them properly.
9322 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9325 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9326 result mode matches original rtl mode.
9328 2011-03-10 Nick Clifton <nickc@redhat.com>
9330 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9331 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9333 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9335 PR rtl-optimization/47866
9336 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9337 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9338 if target wasn't scalar.
9339 * function.c (assign_stack_temp_for_type): Assert that neither
9340 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9341 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9343 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9345 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9347 * config/s390/s390-protos.h (s390_label_align): New prototype.
9348 * config/s390/s390.c (s390_label_align): New function.
9349 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9351 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9354 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9355 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9356 (output_vec_const_move): Ditto.
9358 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9360 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9361 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9362 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9363 Change 'rclass' argument and result type to reg_class_t.
9364 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9366 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9368 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9369 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9370 (TARGET_MEMORY_MOVE_COST): Define.
9371 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9373 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9376 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9379 PR tree-optimization/48022
9380 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9383 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9386 * var-tracking.c (find_use_val): Return NULL for
9387 cui->sets && cui->store_p BLKmode MEMs.
9389 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9391 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9393 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9394 xstormy16_print_operand_address): Remove.
9395 * config/stormy16/stormy16.c (xstormy16_print_operand,
9396 xstormy16_print_operand_address): Make static.
9397 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9399 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9402 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9403 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9406 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9409 * cfgloopmanip.c (fix_bb_placements): Return immediately
9410 if FROM is BASE_LOOP's header.
9412 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9414 * gimplify.c (gimplify_function_tree): Fix building calls
9415 to __builtin_return_address.
9417 2011-03-07 Alan Modra <amodra@gmail.com>
9419 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9420 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9421 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9422 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9424 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9425 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9426 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9427 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9428 * config/rs6000/rs6000.c
9429 (rs6000_elf_end_indicate_exec_stack): Rename to..
9430 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9431 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9432 (rs6000_file_start): ..here.
9433 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9434 file scope variables.
9435 (call_ABI_of_interest): New function.
9436 (init_cumulative_args): Set above vars when function return value
9437 is a float, vector, or small struct.
9438 (rs6000_function_arg_advance_1): Likewise for function args.
9439 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9440 references float args.
9442 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9444 * doc/cfg.texi: Remove "See" before @ref.
9445 * doc/invoke.texi: Likewise.
9447 2011-03-05 Jason Merrill <jason@redhat.com>
9449 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9451 2011-03-05 Anthony Green <green@moxielogic.com>
9453 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9455 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9457 PR rtl-optimization/47899
9458 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9459 to flow_loop_nested_p when moving the loop upward.
9461 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9464 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9466 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9468 PR tree-optimization/47967
9469 * ipa-cp.c (build_const_val): Return NULL instead of creating
9470 VIEW_CONVERT_EXPR for mismatching sizes.
9471 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9472 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9473 give up on versioning.
9475 2011-03-05 Alan Modra <amodra@gmail.com>
9478 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9479 full cmodel medium/large lo_sum + high addresses.
9481 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9483 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9484 pool references in UNSPEC_LTREL_OFFSET.
9486 2011-03-04 Jan Hubicka <jh@suse.cz>
9489 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9490 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9491 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9493 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9494 cgraph_add_thunk): Add node pointers.
9495 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9496 associated to right node.
9497 (input_node): Update use of cgraph_same_body_alias
9498 and cgraph_add_thunk.
9500 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9502 * config/i386/i386.opt (mprefer-avx128): New flag.
9503 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9504 modes when the flag -mprefer-avx128 is on.
9506 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9508 * dwarf2out.c (compare_loc_operands): Fix address handling.
9510 2011-03-04 Alan Modra <amodra@gmail.com>
9512 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9514 2011-03-04 Richard Guenther <rguenther@suse.de>
9517 * expmed.c (extract_bit_field_1): Prefer vector modes that
9518 vec_extract patterns can handle.
9520 2011-03-04 Richard Guenther <rguenther@suse.de>
9523 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9525 2011-03-04 Richard Henderson <rth@redhat.com>
9527 * explow.c (emit_stack_save): Remove 'after' parameter.
9528 (emit_stack_restore): Likewise.
9529 * expr.h: Update to match.
9530 * builtins.c, calls.c, stmt.c: Likewise.
9531 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9532 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9533 * function.c (expand_function_end): Insert the emit_stack_save
9534 sequence before parm_birth_insn instead of after.
9536 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9538 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9539 (ssse3_pmaddubsw128): Ditto.
9540 (ssse3_pmaddubsw): Ditto.
9542 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9544 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9546 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9549 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9550 on TYPE_SIZE_UNIT if it is a DECL.
9553 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9554 first operand is not is_gimple_mem_ref_addr, try to fold it.
9555 If the operand still isn't is_gimple_mem_ref_addr, clear
9558 2011-03-03 Richard Guenther <rguenther@suse.de>
9561 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9563 (refs_may_alias_p_1): For release branches return true if
9564 we are confused by our input.
9566 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9568 * config/s390/s390.c (s390_function_value): Rename to ...
9569 (s390_function_and_libcall_value): ... this.
9570 (s390_function_value): New function.
9571 (s390_libcall_value): New function.
9572 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9573 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9574 target macro definitions.
9575 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9577 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9579 * config/i386/freebsd64.h (CC1_SPEC): Define.
9580 * config/i386/linux64.h (CC1_SPEC): Define.
9581 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9583 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9585 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9587 * config/stormy16/stormy16.c: Include reload.h.
9588 (xstormy16_memory_move_cost): New function.
9589 (TARGET_MEMORY_MOVE_COST): Define.
9591 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9593 PR rtl-optimization/47925
9594 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9595 with side effects. Remove the more-specific check for volatile asms.
9597 2011-03-02 Alan Modra <amodra@gmail.com>
9600 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9601 toc relative addresses for valid offsets.
9603 2011-03-01 Richard Guenther <rguenther@suse.de>
9605 PR tree-optimization/47890
9606 * tree-vect-loop.c (get_initial_def_for_induction): Set
9607 related stmt properly.
9609 2011-03-01 Richard Guenther <rguenther@suse.de>
9612 * lto-streamer.c (lto_record_common_node): Also register
9615 2011-03-01 Richard Guenther <rguenther@suse.de>
9618 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9619 Do not stream DECL_ABSTRACT_ORIGIN.
9620 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9621 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9622 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9623 Do not stream DECL_ABSTRACT_ORIGIN.
9624 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9625 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9627 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9629 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9630 FUNCTION_VALUE_REGNO_P): Remove.
9631 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9632 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9633 Add 'outgoing' argument.
9634 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9636 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9637 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9639 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9642 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9643 (lookup_filename): Likewise.
9644 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9646 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9647 Jakub Jelinek <jakub@redhat.com>
9650 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9651 (assign_stack_local_1): Change last argument type to int.
9652 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9653 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9654 don't record padding space into frame_space_list nor use those areas.
9655 (assign_stack_local): Adjust caller.
9656 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9657 of assign_stack_local, pass 0 as last argument.
9658 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9661 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9664 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9665 Use target address_mode and pointer_mode hooks instead of hardcoded
9666 Pmode and ptr_mode. Handle some simple cases of extending if
9667 POINTERS_EXTEND_UNSIGNED < 0.
9668 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9669 Call convert_debug_memory_address.
9670 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9671 convert_debug_memory_address.
9674 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9675 * configure: Regenerated.
9676 * config.in: Regenerated.
9677 * varasm.c (default_function_section): Return NULL
9678 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9680 2011-02-28 Martin Jambor <mjambor@suse.cz>
9682 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9683 the description to match the printed values.
9685 2011-02-28 Richard Guenther <rguenther@suse.de>
9687 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9688 of the copied scope tree.
9690 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9692 * doc/extend.texi (Function Attributes): Avoid deeply (and
9693 wrongly) nested tables.
9695 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9698 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9699 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9700 r isn't op0 nor op1.
9702 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9704 * config/avr/avr.md: Remove magic comment for emacs.
9706 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9709 * config/avr/avr.c (avr_option_override): Use error on bad options.
9710 (avr_help): New function.
9711 (TARGET_HELP): Define.
9713 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9716 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9717 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9719 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9721 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9722 (ARM Options): Ditto.
9723 (i386 and x86-64 Options): Ditto.
9724 (RX Options): Ditto.
9725 (SPARC Options): Ditto.
9727 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9729 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9730 FreeBSD 6 and later. Generally use cpu generic.
9732 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9734 * doc/cpp.texi: Update copyright years.
9736 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9739 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9741 2011-02-25 Jon Beniston <jon@beniston.com>
9744 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9745 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9746 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9747 (lm32_block_move_inline): Add type cast to remove warning.
9748 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9749 (gen_int_relational): Move declarations to start of function.
9751 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9753 PR tree-optimization/45470
9754 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9755 can throw internally only.
9756 * tree-vect-stmts.c (vectorizable_call): Likewise.
9758 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9760 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9761 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9762 * config/stormy16/stormy16-protos.h
9763 (xstormy16_preferred_reload_class): Remove.
9764 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9765 static. Change 'rclass' argument and return type to reg_class_t.
9766 (TARGET_PREFERRED_RELOAD_CLASS,
9767 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9769 2011-02-24 Richard Guenther <rguenther@suse.de>
9771 * lto-streamer-in.c (input_bb): Do not find referenced vars
9772 in debug statements.
9774 2011-02-23 Jason Merrill <jason@redhat.com>
9776 * common.opt (fabi-version): Document v5 and v6.
9778 2011-02-23 Richard Guenther <rguenther@suse.de>
9780 PR tree-optimization/47849
9781 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9783 2011-02-23 Jie Zhang <jie@codesourcery.com>
9785 * opts-common.c (decode_cmdline_option): Print empty string
9786 argument as "" in decoded->orig_option_with_args_text.
9787 * gcc.c (execute): Print empty string argument as ""
9788 in the verbose output.
9789 (do_spec_1): Keep empty string argument.
9791 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9793 * config.gcc: Declare score-* and crx-* obsolete.
9795 2011-02-23 Jie Zhang <jie@codesourcery.com>
9797 PR rtl-optimization/47763
9798 * web.c (web_main): Ignore naked clobber when replacing register.
9800 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9802 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9805 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9808 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9810 2011-02-22 Mike Stump <mikestump@comcast.net>
9812 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9814 * configure: Regenerate.
9816 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9818 PR rtl-optimization/46002
9819 * ira-color.c (update_copy_costs): Change class intersection
9820 test to reg_class_contents[] test of 'hard_regno'.
9822 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9824 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9826 * config/hpux11.opt (mt): Likewise.
9827 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9828 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9829 * config/vax/elf.opt (mno-asm-pic): Likewise.
9830 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9832 2011-02-21 Mike Stump <mikestump@comcast.net>
9835 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9836 tree so we can get save the type.
9837 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9838 for CFString instead of trying to use past the end of the builtins.
9839 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9840 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9841 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9842 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9843 Rename to darwin_builtin_cfstring.
9844 (darwin_init_cfstring_builtins): Return the built type.
9846 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9849 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9850 (_mm256_insert_epi64): Use _mm_insert_epi64.
9852 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9854 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9855 * config/stormy16/stormy16-protos.h
9856 (xstormy16_mode_dependent_address_p): Remove.
9857 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9858 Make static. Change return type to bool. Change argument type to
9859 const_rtx. Remove dead code.
9860 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9862 2011-02-21 Richard Guenther <rguenther@suse.de>
9865 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9866 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9867 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9869 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9870 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9872 2011-02-20 Richard Guenther <rguenther@suse.de>
9875 * tree.c (free_lang_data_in_decl): Clean builtins from
9876 the TU decl BLOCK_VARS.
9878 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9882 * haifa-sched.c (fix_tick_ready): Skip tick computation
9885 2011-02-19 Richard Guenther <rguenther@suse.de>
9888 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9889 Remove lazy BLOCK_VARS streaming.
9890 (lto_input_ts_block_tree_pointers): Likewise.
9891 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9893 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9895 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9897 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9899 * config/i386/biarch32.h, config/i386/mach.h,
9900 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9902 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9905 * config/i386/i386.md (peephole2 for shift and plus): Use
9906 operands[1] original mode in the first insn.
9908 2011-02-18 Mike Stump <mikestump@comcast.net>
9910 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9912 2011-02-18 Jan Hubicka <jh@suse.cz>
9915 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9916 to zero when the function is not inlinable at all.
9918 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9920 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9921 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9922 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9923 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9924 * config/pa/t-pa64: Likewise.
9925 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9927 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9930 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9932 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9935 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9937 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9939 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9940 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9941 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9942 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9943 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9944 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9945 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9946 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9947 m32r_legitimate_address_p): New functions.
9948 * config/m32r/constraints.md (constraint "S"): Don't use
9949 STORE_PREINC_PREDEC_P.
9950 (constraint "U"): Don't use LOAD_POSTINC_P.
9952 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9954 PR rtl-optimization/46178
9955 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9956 compute ira_hard_regno_cover_class[].
9958 2011-02-18 Richard Guenther <rguenther@suse.de>
9961 * lto-streamer.h (lto_global_var_decls): Declare.
9962 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9963 statics for global var processing.
9965 2011-02-18 Richard Guenther <rguenther@suse.de>
9967 PR tree-optimization/47737
9968 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9969 edge dominance check.
9971 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9974 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9975 avoid invalid rtx sharing.
9977 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
9979 * doc/cpp.texi (Obsolete Features): Add background on the
9980 origin of assertions.
9982 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
9984 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9986 * config/darwin.c (output_objc_section_asm_op): Added support for
9988 (is_objc_metadata): New.
9989 (darwin_objc2_section): New.
9990 (darwin_objc1_section): New.
9991 (machopic_select_section): Added support for ABI v1 and v2.
9992 (darwin_emit_objc_zeroed): New.
9993 (darwin_output_aligned_bss): Detect objc metadata and treat it
9995 (darwin_asm_output_aligned_decl_common): Same.
9996 (darwin_asm_output_aligned_decl_local): Same.
9997 * config/darwin-sections.def: Updated for ABI v1 and v2.
9998 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9999 compiling Objective-C code for the NeXT runtime, default to using
10000 ABI version 0 for 32-bit, and version 2 for 64-bit.
10002 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10004 * common.opt (optimize_fast): New Variable.
10005 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10006 instead of local variable ofast.
10008 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10010 * doc/invoke.texi (fobjc-abi-version): Documented.
10011 (fobjc-nilcheck): Documented.
10012 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10015 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10018 * common.opt (export-dynamic): New Driver option.
10019 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10021 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10023 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10025 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10026 Jan Hubicka <jh@suse.cz>
10030 * cfgexpand.c (account_used_vars_for_block): Remove.
10031 (estimated_stack_frame_size): Use referenced vars.
10032 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10033 that were referenced in the original function. Test src_fn
10034 rather than cfun. Drop redundant get_var_ann.
10035 (setup_one_parameter): Drop redundant get_var_ann.
10036 (declare_return_variable): Likewise.
10037 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10038 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10039 * ipa-inline.c (compute_inline_parameters): Do not compute
10040 disregard_inline_limits here.
10041 (compute_inlinable_for_current, pass_inlinable): New.
10042 (pass_inline_parameters): Require PROP_referenced_vars.
10043 * cgraphunit.c (cgraph_process_new_functions): Don't run
10044 compute_inline_parameters explicitly unless function is in SSA form.
10045 (cgraph_analyze_function): Set .disregard_inline_limits.
10046 * tree-sra.c (convert_callers): Compute inliner parameters
10047 only for functions already in SSA form.
10049 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10051 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10052 -mlittle-endian-data.
10054 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10056 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10057 -mno-fpu, not -fpu and -no-fpu.
10058 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10059 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10061 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10064 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10065 input reload with PLUS RTX.
10067 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10069 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10070 of InverseVar(MDMX).
10072 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10074 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10077 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10079 * config/mn10300/mn10300.opt (mno-crt0): New.
10081 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10083 * config/m68k/uclinux.opt (static-libc): New Driver option.
10085 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10087 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10089 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10091 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10092 %{muser-extend-enabled}.
10094 2011-02-16 Richard Guenther <rguenther@suse.de>
10096 PR tree-optimization/47738
10097 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10098 the TODO from tree_predictive_commoning.
10100 2011-02-15 Jeff Law <law@redhat.com>
10103 2011-01-25 Jeff Law <law@redhat.com>
10105 PR rtl-optimization/37273
10106 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10107 handle them like argument loads from stack slots. Do not double
10108 count memory for memory constants and argument loads from stack slots.
10110 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10112 PR middle-end/47725
10113 * combine.c (cant_combine_insn_p): Revert the last change.
10115 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10118 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10119 mode for vector constants. Remove code that checks for TImode.
10121 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10125 * cgraph.h (compute_inline_parameters): Return void.
10126 * ipa-inline.c (compute_inline_parameters): Adjust.
10128 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10132 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10134 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10135 * ipa-inline.c (compute_inline_parameters): Adjust.
10137 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10141 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10142 Adjust all users. Pass FN to...
10143 * tree-flow-inline.h (first_referenced_var): ... this. Add
10145 * ipa-struct-reorg.c: Adjust.
10146 * tree-dfa.c: Adjust.
10147 * tree-into-ssa.c: Adjust.
10148 * tree-sra.c: Adjust.
10149 * tree-ssa-alias.c: Adjust.
10150 * tree-ssa-live.c: Adjust.
10151 * tree-ssa.c: Adjust.
10152 * tree-ssanames.c: Adjust.
10153 * tree-tailcall.c: Adjust.
10155 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10159 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10160 Adjust all callers.
10161 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10162 * tree-flow-inline.h: Adjust.
10163 * gimple-pretty-print.c: Adjust.
10164 * tree-into-ssa.c: Adjust.
10165 * tree-ssa.c: Adjust.
10166 * cfgexpand.c: Adjust.
10168 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10170 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10171 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10172 (EXTRA_CONSTRAINT): Delete.
10173 * config/iq2000/constraints.md: New file.
10174 * config/iq2000/iq2000.md: Include it.
10175 (define_insn ""): Delete.
10176 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10177 unsupported constraint letters from patterns.
10178 (call_value, call_value_internal1): Likewise.
10179 (call_value_multiple_internal1): Likewise.
10181 2011-02-15 Nick Clifton <nickc@redhat.com>
10183 * config/mn10300/mn10300.c: Include tm-constrs.h.
10184 (struct liw_data): New data structure describing an LIW candidate
10186 (extract_bundle): Use struct liw_data. Allow small integer
10187 operands for some instructions.
10188 (check_liw_constraints): Use struct liw_data. Remove swapped
10189 parameter. Add comments describing the checks. Fix bug when
10190 assigning the source of liw1 to the source of liw2.
10191 (liw_candidate): Delete. Code moved into extract_bundle.
10192 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10194 * config/mn10300/predicates.md (liw_operand): New predicate.
10195 Allows registers and small integer constants.
10196 * config/mn10300/constraints.md (O): New constraint. Accetps
10197 integers in the range -8 to +7 inclusive.
10198 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10199 for moving a small integer into a register. Give this alternative
10201 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10202 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10203 using the J,K,L and M constraints,
10204 (liw): Remove SI mode on second operands to allow for HI and QI
10206 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10209 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10211 PR middle-end/47725
10212 * combine.c (cant_combine_insn_p): Check zero/sign extended
10215 2011-02-15 Richard Guenther <rguenther@suse.de>
10217 PR tree-optimization/47743
10218 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10219 for a non-type-compatible VN lookup bail out.
10221 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10223 * config/fr30/constraints.md: New file.
10224 * config/fr30/fr30.md: Include it.
10225 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10226 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10227 (EXTRA_CONSTRAINT): Delete.
10229 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10231 * config/frv/constraints.md: New file.
10232 * config/frv/predicates.md: Include it.
10233 * config/frv/frv.c (reg_class_from_letter): Delete.
10234 (frv_option_override): Don't initialize it.
10235 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10236 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10237 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10238 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10239 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10240 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10241 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10242 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10243 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10244 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10245 (REG_CLASS_FROM_CONSTRAINT): Delete.
10247 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10249 PR middle-end/47581
10250 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10251 if frame size is 0 in a leaf function.
10253 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10256 * config/alpha/host-osf.c: New file.
10257 * config/alpha/x-osf: New file.
10258 * config.host (alpha*-dec-osf*): Use it.
10260 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10262 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10263 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10264 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10265 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10267 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10269 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10271 * config/stormy16/constraints.md: New file.
10272 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10273 Use satisfies_constraint_Q and satisfies_constraint_R.
10274 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10276 (xstormy16_legitiamte_address_p): Declare.
10277 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10278 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10279 (EXTRA_CONSTRAINT): Delete.
10280 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10282 (xstormy16_extra_constraint_p): Delete.
10284 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10286 PR tree-optimization/46494
10287 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10288 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10289 (pass_rtl_loop_done): Add TODO_verify_flow.
10290 * fwprop.c (pass_rtl_fwprop): Likewise.
10291 * modulo-sched.c (pass_sms): Likewise.
10292 * tree-ssa-dom.c (pass_dominator): Likewise.
10293 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10294 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10295 (pass_tree_loop_done): Likewise.
10296 * tree-ssa-pre.c (execute_pre): Likewise.
10297 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10298 * tree-ssa-sink.c (pass_sink_code): Likewise.
10299 * tree-vrp.c (pass_vrp): Likewise.
10301 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10303 * config/v850/constraints.md: New file.
10304 * config/v850/v850.md: Include it.
10305 * config/v850/predicates.md (reg_or_0_operand): Use
10306 satisfies_constraint_G.
10307 (special_symbolref_operand): Use satisfies_constraint_K.
10308 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10309 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10310 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10311 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10312 (EXTRA_CONSTRAINT): Delete.
10313 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10314 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10315 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10317 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10320 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10323 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10325 * config/mcore/constraints.md: New file.
10326 * config/mcore/mcore.md: Include it.
10327 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10328 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10329 (REG_CLASS_FROM_LETTER): Delete.
10330 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10331 insn_const_int_ok_for_constraint.
10332 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10333 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10334 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10335 (EXTRA_CONSTRAINT): Delete.
10337 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10340 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10341 (IS_SIGHANDLER): Define.
10342 (sparc64_is_sighandler): New function, split off from
10343 sparc64_fallback_frame_state.
10344 (sparc_is_sighandler): New function, split off from
10345 sparc_fallback_frame_state.
10346 (sparc64_fallback_frame_state): Merge with ...
10347 (sparc_fallback_frame_state): ... this into ...
10348 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10349 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10350 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10351 stack instead of hardcoded offsets.
10353 2011-02-14 Andriy Gapon <avg@freebsd.org>
10356 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10358 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10360 * configure: Regenerate.
10362 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10365 * gcc.c (asm_options): Correct spec matching --target-help.
10367 2011-02-12 Martin Jambor <mjambor@suse.cz>
10369 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10370 to gimple call error.
10372 2011-02-12 Mike Stump <mikestump@comcast.net>
10374 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10375 comments in backslash regions.
10377 2011-02-12 Mike Stump <mikestump@comcast.net>
10378 Jakub Jelinek <jakub@redhat.com>
10379 Iain Sandoe <iains@gcc.gnu.org>
10382 * dwarf2out.c (output_cfa_loc): When required, apply the
10383 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10384 (output_loc_sequence): Likewise.
10385 (output_loc_operands_raw): Likewise.
10386 (output_loc_sequence_raw): Likewise.
10387 (output_cfa_loc): Likewise.
10388 (output_loc_list): Suppress register number adjustment when
10389 calling output_loc_sequence()
10390 (output_die): Likewise.
10392 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10394 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10396 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10397 xtensa_memory_move_cost): New functions.
10398 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10400 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10403 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10404 in the current directory.
10405 * configure: Rebuilt.
10407 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10409 * config/darwin.c (darwin_override_options): Add a hunk missed
10410 from the commit of r168571. Trim comment line lengths and
10411 correct indents of the preceding block.
10413 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10415 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10418 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10420 * common.opt (nostartfiles): New Driver option.
10422 2011-02-11 Xinliang David Li <davidxl@google.com>
10424 PR tree-optimization/47707
10425 * tree-chrec.c (convert_affine_scev): Keep type precision.
10427 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10429 PR tree-optimization/47420
10430 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10432 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10434 PR rtl-optimization/47614
10435 * rtl.h (check_for_inc_dec): Declare.
10436 * dse.c (check_for_inc_dec): Externalize...
10437 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10438 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10440 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10443 * gcc.c (main): Do not compile inputs if there were errors in
10445 * opts-common.c (read_cmdline_option): Check for wrong language
10446 after other error checks.
10448 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10450 * cgraph.c: Fix comment typos.
10451 * cgraph.h: Likewise.
10452 * cgraphunit.c: Likewise.
10453 * ipa-cp.c: Likewise.
10454 * ipa-inline.c: Likewise.
10455 * ipa-prop.c: Likewise.
10456 * ipa-pure-const.c: Likewise.
10457 * ipa-ref.c: Likewise.
10458 * ipa-reference.c: Likewise.
10460 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10463 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10465 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10468 * doc/sourcebuild.texi (Require Support): Document
10469 dg-require-ascii-locale.
10471 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10473 * doc/lto.texi (Write summary): Fix missing parentheses.
10475 2011-02-10 DJ Delorie <dj@redhat.com>
10477 * config/m32c/m32c.c (m32c_option_override): Disable
10478 -fcombine-stack-adjustments until flag value tracking and compare
10479 optimization can be rewritten.
10481 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10483 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10485 (PROCESSOR_DEFAULT64): Likewise.
10487 2011-02-10 Richard Henderson <rth@redhat.com>
10489 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10490 change from 2011-02-03.
10491 * config/rx/rx.c (flags_from_code): Likewise.
10492 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10493 is valid, n/pz otherwise.
10494 (rx_select_cc_mode): Return CCmode if Y is not zero.
10496 2011-02-10 Richard Guenther <rguenther@suse.de>
10498 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10500 2011-02-10 Richard Guenther <rguenther@suse.de>
10502 PR tree-optimization/47677
10503 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10505 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10508 * combine.c (make_compound_operation): Only change shifts into
10509 multiplication for SCALAR_INT_MODE_P.
10511 2011-02-10 Jie Zhang <jie@codesourcery.com>
10515 2011-02-05 Jie Zhang <jie@codesourcery.com>
10517 * web.c (entry_register): Don't clobber the number of the
10518 first uninitialized reference in used[].
10520 2011-02-09 Richard Guenther <rguenther@suse.de>
10522 PR tree-optimization/47664
10523 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10526 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10530 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10532 (PROCESSOR_DEFAULT64): Same.
10533 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10535 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10537 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10539 2011-02-09 Martin Jambor <mjambor@suse.cz>
10541 PR middle-end/45505
10542 * tree-sra.c (struct access): New flags grp_scalar_read and
10543 grp_scalar_write. Changed description of assignment read and write
10545 (dump_access): Dump new flags, reorder all of them.
10546 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10547 to detect multiple scalar reads.
10548 (analyze_access_subtree): Use the new scalar read write flags instead
10549 of the old flags. Adjusted comments.
10551 2011-02-08 DJ Delorie <dj@redhat.com>
10554 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10557 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10559 * config/m68k/uclinux.opt: New.
10560 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10562 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10564 * config/cris/elf.opt (sim): New Driver option.
10566 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10568 * config/xtensa/elf.opt: New.
10569 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10571 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10573 * config/vax/elf.opt: New.
10574 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10576 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10578 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10580 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10582 * config/gnu-user.opt: New.
10583 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10584 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10585 *-*-uclinux*): Use gnu-user.opt.
10587 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10589 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10590 * config/i386/gnu.h (CPP_SPEC): Likewise.
10592 2011-02-08 Ian Lance Taylor <iant@google.com>
10594 * common.opt (fcx-limited-range): Add SetByCombined flag.
10595 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10596 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10597 (fassociative-math, freciprocal-math): Likewise.
10598 (funsafe-math-optimizations): Likewise.
10599 * opth-gen.awk: Handle SetByCombined.
10600 * optc-gen.awk: Likewise.
10601 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10602 (set_unsafe_math_optimizations_flags): Likewise.
10603 * doc/options.texi (Option properties): Document SetByCombined.
10605 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10607 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10608 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10609 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10610 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10611 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10613 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10615 PR tree-optimization/46834
10616 PR tree-optimization/46994
10617 PR tree-optimization/46995
10618 * graphite-sese-to-poly.c (used_outside_reduction): New.
10619 (detect_commutative_reduction): Call used_outside_reduction.
10620 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10621 translate_scalar_reduction_to_array only when at least one
10622 loop-phi/close-phi tuple has been detected.
10624 2011-02-08 Richard Guenther <rguenther@suse.de>
10626 PR middle-end/47639
10627 * tree-vect-generic.c (expand_vector_operations_1): Update
10629 (expand_vector_operations): ... not here. Cleanup EH info
10630 and the CFG if required.
10632 2011-02-08 Richard Guenther <rguenther@suse.de>
10634 PR tree-optimization/47641
10635 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10636 require type compatibility.
10638 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10640 * gimple-low.c (lower_function_body): Don't remove the location of
10641 the return statement here.
10642 (lower_gimple_return): Do it here instead but only if the return
10643 statement is actually used twice.
10645 2011-02-08 Richard Guenther <rguenther@suse.de>
10647 PR tree-optimization/47632
10648 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10649 unused up_to_stmt parameter, return whether cfg-cleanup is
10650 necessary, remove EH info properly.
10651 (forward_propagate_into_gimple_cond): Adjust caller.
10652 (forward_propagate_into_cond): Likewise.
10653 (forward_propagate_comparison): Likewise.
10654 (tree_ssa_forward_propagate_single_use_vars): Make
10655 forward_propagate_comparison case similar to the two others.
10657 2011-02-08 Nick Clifton <nickc@redhat.com>
10659 * config/mn10300/mn10300.opt (mliw): New command line option.
10660 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10661 (liw_bundling): New automaton.
10662 (liw): New attribute.
10663 (liw_op): New attribute.
10664 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10665 (movsi_internal): Add LIW attributes.
10666 (andsi3): Likewise.
10667 (iorsi3): Likewise.
10668 (xorsi3): Likewise.
10669 (addsi3): Separate register and immediate alternatives.
10670 Add LIW attributes.
10671 (subsi3): Likewise.
10673 (aslsi3): Likewise.
10674 (lshrsi3): Likewise.
10675 (ashrsi3): Likewise.
10676 (liw): New pattern.
10677 * config/mn10300/mn10300.c (liw_op_names): New
10678 (mn10300_print_operand): Handle 'W' operand descriptor.
10679 (extract_bundle): New function.
10680 (check_liw_constraints): New function.
10681 (liw_candidate): New function.
10682 (mn10300_bundle_liw): New function.
10683 (mn10300_reorg): New function.
10684 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10685 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10686 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10687 __LIW__ or __NO_LIW__.
10688 * doc/invoke.texi: Describe the -mliw command line option.
10690 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10692 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10693 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10694 pthread_mutex_unlock): Remove.
10695 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10696 * config/pa/t-pa64: Likewise.
10697 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10698 shared libc if not linking against libpthread.
10699 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10701 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10704 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10705 on 10.6 and later to ensure that we always use the unwinder from
10706 the system. Only add -no_compact_unwind when tarteting darwin
10709 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10712 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10713 (vec_interleave_lowv2sf): Ditto.
10714 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10715 (vec_extract_oddv2sf): Ditto.
10717 2011-02-07 Mike Stump <mikestump@comcast.net>
10720 Add __ieee_divdc3 entry point.
10721 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10723 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10724 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10725 * config/darwin.c (darwin_rename_builtins): Add.
10726 * config/darwin-protos.h (darwin_rename_builtins): Add.
10728 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10731 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10734 2011-02-07 Mike Stump <mikestump@comcast.net>
10736 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10738 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10741 * config/avr/libgcc.S (exit): Move .endfunc
10743 2011-02-07 Richard Guenther <rguenther@suse.de>
10745 PR tree-optimization/47615
10746 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10747 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10748 (run_scc_vn): Initialize it.
10749 (visit_reference_op_load): Use it.
10750 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10752 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10754 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10755 DImode trapping arithmetic libfuncs.
10757 2011-02-07 Richard Guenther <rguenther@suse.de>
10759 PR tree-optimization/47621
10760 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10762 (execute_update_addresses_taken): ... here. Make it more
10763 conservative in what we accept.
10765 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10767 * config/sparc/freebsd.h (ASM_SPEC): Define.
10768 * config/sparc/vxworks.h (ASM_SPEC): Define.
10770 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10772 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10774 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10776 * doc/invoke.texi: Remove reference to compiler internals from
10777 user documentation.
10779 * reg-notes.def: Remove REG_VALUE_PROFILE.
10780 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10782 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10784 PR middle-end/47610
10785 * varasm.c (default_section_type_flags): If decl is NULL,
10786 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10788 2011-02-05 Jie Zhang <jie@codesourcery.com>
10791 * web.c (entry_register): Don't clobber the number of the
10792 first uninitialized reference in used[].
10794 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10796 PR tree-optimization/46194
10797 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10798 (build_classic_dist_vector_1): Do not represent classic distance
10799 vectors when the access functions are variating in different loops.
10801 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10803 * config/mips/iris6.opt: New.
10804 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10806 2011-02-04 Richard Henderson <rth@redhat.com>
10807 Steve Ellcey <sje@cup.hp.com>
10810 * config/ia64/predicates.md (mux1_brcst_element): New.
10811 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10812 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10813 (ia64_unpack_sign): New.
10814 (ia64_expand_unpack): Rewrite using new routines.
10815 (ia64_expand_widen_sum): Ditto.
10816 (ia64_expand_dot_prod_v8qi): Ditto.
10817 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10818 routines, add endian check.
10819 (pmpy2_even): Rename from pmpy2_r, add endian check.
10820 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10821 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10822 (vec_widen_smult_hi_v4hi): Ditto.
10823 (vec_widen_umult_lo_v4hi): Ditto.
10824 (vec_widen_umult_hi_v4hi): Ditto.
10825 (mulv2si3): Change endian checks.
10826 (sdot_prodv4hi): Rewrite with new calls.
10827 (udot_prodv4hi): New.
10828 (vec_pack_ssat_v4hi): Add endian check.
10829 (vec_pack_usat_v4hi): Ditto.
10830 (vec_pack_ssat_v2si): Ditto.
10831 (max1_even): Rename from max1_r, add endian check.
10832 (max1_odd): Rename from max1_l, add endian check.
10833 (*mux1_rev): Format change.
10834 (*mux1_mix): Ditto.
10835 (*mux1_shuf): Ditto.
10836 (*mux1_alt): Ditto.
10837 (*mux1_brcst_v8qi): Use new predicate.
10838 (vec_extract_evenv8qi): Remove endian check.
10839 (vec_extract_oddv8qi): Ditto.
10840 (vec_interleave_lowv4hi): Format change.
10841 (vec_interleave_highv4hi): Ditto.
10842 (mix2_even): Rename from mix2_r, add endian check.
10843 (mix2_odd): Rename from mux2_l, add endian check.
10844 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10845 (vec_extract_evenodd_helper): Format change.
10846 (vec_extract_evenv4hi): Remove endian check.
10847 (vec_extract_oddv4hi): Remove endian check.
10848 (vec_interleave_lowv2si): Format change.
10849 (vec_interleave_highv2si): Format change.
10850 (vec_initv2si): Remove endian check.
10851 (vecinit_v2si): Add endian check.
10852 (reduc_splus_v2sf): Add endian check.
10853 (reduc_smax_v2sf): Ditto.
10854 (reduc_smin_v2sf): Ditto.
10855 (vec_initv2sf): Remove endian check.
10856 (fpack): Add endian check.
10857 (fswap): Add endian check.
10858 (vec_interleave_highv2sf): Add endian check.
10859 (vec_interleave_lowv2sf): Add endian check.
10860 (fmix_lr): Add endian check.
10861 (vec_setv2sf): Format change.
10862 (*vec_extractv2sf_0_be): Use shift to extract operand.
10863 (*vec_extractv2sf_1_be): New.
10864 (vec_pack_trunc_v4hi): Add endian check.
10865 (vec_pack_trunc_v2si): Format change.
10867 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10869 PR inline-asm/23200
10870 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10871 do bb, locus and block comparison and disallow loads if it is not set.
10872 (stmt_is_replaceable_p): New function.
10873 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10875 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10876 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10878 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10880 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10882 * config/rs6000/xilinx.opt: New.
10883 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10885 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10887 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10889 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10891 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10892 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10893 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10894 secondary_reload_info, xtensa_secondary_reload): Remove.
10895 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10896 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10897 (xtensa_preferred_reload_class): Make static. Change return and
10898 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10899 Use CONST_DOUBLE_P predicate.
10900 (xtensa_preferred_output_reload_class): New function.
10901 (xtensa_secondary_reload): Make static.
10903 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10905 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10906 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10907 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10909 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10911 PR middle-end/31490
10912 * output.h (SECTION_RELRO): Define.
10913 (SECTION_MACH_DEP): Adjust.
10914 (get_variable_section): New prototype.
10915 * varpool.c (varpool_finalize_named_section_flags): New function.
10916 (varpool_assemble_pending_decls): Call it.
10917 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10918 * cgraphunit.c (cgraph_output_in_order): Call
10919 varpool_finalize_named_section_flags.
10920 * varasm.c (get_section): Allow section flags conflicts between
10921 relro and read-only sections if the section hasn't been declared yet.
10922 Set SECTION_OVERRIDE after diagnosing section type conflict.
10923 (get_variable_section): No longer static.
10924 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10925 readonly sections that need relocations.
10926 (decl_readonly_section_1): New function.
10927 (decl_readonly_section): Use it.
10930 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10931 Steve Ellcey <sje@cup.hp.com>
10933 PR middle-end/31490
10934 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10935 if section attribute used.
10937 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10939 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10940 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10941 (darwin_init_sections): Remove assertion.
10943 2011-02-03 Nick Clifton <nickc@redhat.com>
10945 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10947 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10948 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10949 instead of "n" and "pz".
10950 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10953 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10956 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10957 fma, expand FMA_EXPR as fma{,f,l} call.
10960 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10961 copy them into a unsigned char variable and pass address of it to
10962 lto_output_data_stream.
10965 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10966 around backend_init_target and lang_dependent_init_target calls.
10967 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10968 (verify_cgraph_node): Don't call set_cfun here. Use
10969 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10970 Set error_found for incorrectly represented calls to thunks.
10972 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
10975 PR rtl-optimization/43494
10976 * rtl.h (for_each_inc_dec_fn): New type.
10977 (for_each_inc_dec): Declare.
10978 * rtlanal.c (struct for_each_inc_dec_ops): New type.
10979 (for_each_inc_dec_find_inc_dec): New fn.
10980 (for_each_inc_dec_find_mem): New fn.
10981 (for_each_inc_dec): New fn.
10982 * dse.c (struct insn_size): Remove.
10983 (replace_inc_dec, replace_inc_dec_mem): Remove.
10984 (emit_inc_dec_insn_before): New fn.
10985 (check_for_inc_dec): Use it, along with for_each_inc_dec.
10986 (canon_address): Pass mem modes to cselib_lookup.
10987 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
10988 (cselib_lookup_from_insn): Likewise.
10989 (cselib_subst_to_values): Likewise.
10990 * cselib.c (find_slot_memmode): New var.
10991 (cselib_find_slot): New fn. Use it instead of
10992 htab_find_slot_with_hash everywhere.
10993 (entry_and_rtx_equal_p): Use find_slot_memmode.
10994 (autoinc_split): New fn.
10995 (rtx_equal_for_cselib_p): Rename and implement in terms of...
10996 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
10997 Deal with autoinc. Special-case recursion into MEMs.
10998 (cselib_hash_rtx): Likewise.
10999 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11000 address and MEM modes.
11001 (cselib_subst_to_values): Add memmode, pass it on.
11003 (cselib_lookup): Add memmode argument, pass it on.
11004 (cselib_lookup_from_insn): Add memmode.
11005 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11006 (struct cselib_record_autoinc_data): New.
11007 (cselib_record_autoinc_cb): New fn.
11008 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11009 mode to cselib_lookup. Reset autoinced REGs here instead of...
11010 (cselib_process_insn): ... here.
11011 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11013 (add_uses): Likewise, also to cselib_subst_to_values.
11014 (add_stores): Likewise.
11015 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11016 cselib_subst_to_values.
11017 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11018 * gcse.c (do_local_cprop): Adjusted.
11019 * postreload.c (reload_cse_simplify_set): Adjusted.
11020 (reload_cse_simplify_operands): Adjusted.
11021 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11023 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11025 PR tree-optimization/45122
11026 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11027 unsafe assumptions when there's more than one loop exit.
11029 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11032 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11033 Document using vector double with the load/store builtins, and
11034 that the load/store builtins always use Altivec instructions.
11036 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11037 to use altivec memory instructions, even on VSX.
11038 (vector_altivec_store_<mode>): Ditto.
11040 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11043 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11044 V2DF, V2DI support to load/store overloaded builtins.
11046 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11047 altivec load/store builtins for V2DF/V2DI types.
11049 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11050 set avoid indexed addresses on power6 if -maltivec.
11051 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11052 vector_altivec_load/vector_altivec_store builtins.
11053 (altivec_expand_st_builtin): Ditto.
11054 (altivec_expand_builtin): Add VSX memory builtins.
11055 (rs6000_init_builtins): Add V2DI types to internal types.
11056 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11057 load/store builtins.
11058 (rs6000_address_for_altivec): Insure memory address is appropriate
11061 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11062 vec_vsx_ld and vec_vsx_st.
11063 (vsx_store_<mode>): Ditto.
11065 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11066 variables to hold long long types for VSX vector memory builtins.
11067 (RS6000_BTI_unsigned_long_long): Ditto.
11068 (long_long_integer_type_internal_node): Ditti.
11069 (long_long_unsigned_type_internal_node): Ditti.
11071 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11072 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11073 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11075 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11077 (vec_vsx_st): Ditto.
11079 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11081 * config/pa/pa-hpux10.opt: New.
11082 * config/hpux11.opt (pthread): New Driver option.
11083 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11084 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11086 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11088 * config/ia64/vms.opt: New.
11089 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11091 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11094 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11095 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11096 generator functions.
11097 (vsx_floatuns<VSi><mode>2): Ditto.
11098 (vsx_fix_trunc<mode><VSi>2): Ditto.
11099 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11101 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11103 * config/i386/djgpp.opt (posix): New Driver option.
11105 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11107 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11108 Move to the unsupported targets list.
11110 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11112 PR rtl-optimization/47525
11113 * df-scan.c: Update copyright years.
11114 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11115 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11117 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11119 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11120 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11121 (ASM_OUTPUT_ASCII): Remove.
11122 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11124 2011-02-02 Jeff Law <law@redhat.com>
11126 PR middle-end/47543
11127 * reload.c (find_reloads_address): Handle reg+d address where both
11128 components are invalid by reloading the entire address.
11130 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11131 Richard Guenther <rguenther@suse.de>
11133 PR tree-optimization/40979
11135 * passes.c (init_optimization_passes): After LIM call copy_prop
11136 and DCE to clean up.
11137 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11139 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11141 PR tree-optimization/47576
11142 PR tree-optimization/47555
11143 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11144 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11145 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11146 * tree-scalar-evolution.c (follow_ssa_edge): Use
11147 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11149 2011-02-02 Richard Guenther <rguenther@suse.de>
11151 PR tree-optimization/47566
11152 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11154 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11158 * tree-inline.c (declare_return_variable): Remove unused caller
11163 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11164 * cfgexpand.c (account_used_vars_for_block): Use them.
11165 * tree-nrv.c (tree_nrv): Likewise.
11166 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11167 (dump_scope_block): Likewise.
11168 (remove_unused_locals): Likewise.
11172 * tree-inline.c (declare_return_variable): Add result decl to
11173 local decls only once.
11174 * gimple-low.c (record_vars_into): Mark newly-created variables
11177 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11183 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11185 (no_real_insns_p, schedule_block, set_priorities): Drop special
11186 treatment of boundary debug insns.
11187 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11188 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11189 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11190 (BOUNDARY_DEBUG_INSN_P): Likewise.
11191 (SCHEDULE_DEBUG_INSN_P): Likewise.
11192 * sched-rgn.c (init_ready_list): Drop special treatment of
11193 boundary debug insns.
11194 * final.c (rest_of_clean_state): Clear notes' BB.
11196 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11198 * config/openbsd.opt (assert=): New Driver option.
11200 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11202 * config/i386/nto.opt: New.
11203 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11205 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11207 * config/i386/netware.opt: New.
11208 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11210 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11212 * config/interix.opt (posix): New Driver option.
11214 2011-02-01 DJ Delorie <dj@redhat.com>
11216 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11218 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11221 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11223 PR tree-optimization/47561
11224 * toplev.c (process_options): Print the Graphite flags. Add
11225 flag_loop_flatten to the list of options requiring Graphite.
11227 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11229 * config/i386/cygming.opt (posix): New Driver option.
11231 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11233 * config/arm/vxworks.opt: New.
11234 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11236 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11238 * config/alpha/elf.opt: New.
11239 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11240 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11242 2011-02-01 Richard Guenther <rguenther@suse.de>
11244 PR tree-optimization/47559
11245 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11246 store-motion on references that can throw.
11248 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11250 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11251 * tree-pass.h (TDF_CSELIB): New macro.
11252 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11253 cselib_lookup): Check for it rather than for TDF_DETAILS.
11255 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11258 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11259 is HOST_BIT_BUCKET.
11261 * opts.c (finish_options): Don't add x_aux_base_name if it is
11264 2011-02-01 Richard Guenther <rguenther@suse.de>
11266 PR tree-optimization/47555
11268 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11270 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11272 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11275 * config/lm32/t-lm32: Add multilib for all CPU options.
11277 2011-02-01 Richard Guenther <rguenther@suse.de>
11279 PR tree-optimization/47541
11280 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11281 sure to have a field at offset zero.
11283 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11285 * config/arc/arc.opt (EB, EL): New Driver options.
11287 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11289 * config/alpha/osf5.opt: New.
11290 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11292 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11294 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11296 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11298 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11299 -floop-interchange.
11300 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11301 is an alias of -floop-interchange and that it requires the
11302 Graphite infrastructure.
11303 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11304 flag_loop_interchange based on the value of flag_tree_loop_linear.
11306 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11307 Richard Guenther <rguenther@suse.de>
11309 PR tree-optimization/47538
11310 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11311 type instead of r1type, except for comparisons. For right
11312 shifts and comparisons punt if there are mismatches in
11313 sizetype vs. non-sizetype types.
11315 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11317 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11320 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11322 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11324 * configure: Regenerate.
11326 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11328 * configure.ac (gcc_cv_ld_static_option): Define.
11329 (gcc_cv_ld_dynamic_option): Define.
11330 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11332 (HAVE_LD_STATIC_DYNAMIC): Update message.
11333 (LD_STATIC_OPTION): Define.
11334 (LD_DYNAMIC_OPTION): Define.
11335 * configure: Regenerate.
11336 * config.in: Regenerate.
11337 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11338 HAVE_LD_STATIC_DYNAMIC]: Use them.
11340 2011-01-31 Nick Clifton <nickc@redhat.com>
11342 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11343 registers inside interrupt handlers if the handler is not a leaf
11346 2011-01-31 Nick Clifton <nickc@redhat.com>
11348 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11349 reg_renumber returning an INVALID_REGNUM.
11351 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11354 * doc/install.texi: Document host options discarded when cross
11355 configuring target libraries.
11357 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11360 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11363 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11365 (no_real_insns_p, schedule_block, set_priorities): Drop special
11366 treatment of boundary debug insns.
11367 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11368 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11369 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11370 (BOUNDARY_DEBUG_INSN_P): Likewise.
11371 (SCHEDULE_DEBUG_INSN_P): Likewise.
11372 * sched-rgn.c (init_ready_list): Drop special treatment of
11373 boundary debug insns.
11374 * final.c (rest_of_clean-state): Clear notes' BB.
11376 2011-01-31 Alan Modra <amodra@gmail.com>
11378 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11379 toc relative expressions as we do in print_operand_address.
11381 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11383 * doc/extend.texi: Follow spelling conventions.
11384 * doc/invoke.texi: Fix a typo.
11386 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11388 * config/hpux11.opt: New.
11389 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11390 ia64*-*-hpux*): Use hpux11.opt.
11392 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11394 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11397 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11399 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11402 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11404 * doc/install.texi (Binaries): Remove outdated reference for
11405 Motorola 68HC11/68HC12 downloads.
11407 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11409 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11412 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11415 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11418 2011-01-28 Ahmad Sharif <asharif@google.com>
11420 * value-prof.c (check_counter): Corrected error message.
11422 2011-01-29 Jie Zhang <jie@codesourcery.com>
11424 * config/arm/arm.c (arm_legitimize_reload_address): New.
11425 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11426 arm_legitimize_reload_address.
11427 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11429 2011-01-28 Ian Lance Taylor <iant@google.com>
11431 * godump.c (go_define): Ignore macros whose definitions include
11432 two adjacent operands.
11434 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11437 * varasm.c (force_const_mem): Store copy of x in desc->constant
11438 instead of x itself.
11439 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11440 itself into REG_EQUAL note.
11442 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11444 * config/freebsd.opt (posix, rdynamic): New Driver options.
11446 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11448 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11449 -Bstatic/-Bdynamic.
11450 * configure: Regenerate.
11452 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11454 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11455 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11457 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11459 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11460 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11461 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11462 (s390_preferred_reload_class): Make static. Change return and
11463 'rclass' argument type to reg_class_t.
11465 2011-01-27 Jan Hubicka <jh@suse.cz>
11467 PR middle-end/46949
11468 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11469 (process_function_and_variable_attributes): Check defined weakrefs.
11471 2011-01-27 Martin Jambor <mjambor@suse.cz>
11473 PR tree-optimization/47228
11474 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11475 build_ref_for_offset.
11477 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11479 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11481 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11483 PR rtl-optimization/46856
11484 * postreload.c (reload_combine_recognize_const_pattern): Do not
11485 separate cc0 setter and user on cc0 targets.
11487 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11490 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11491 passed a VOID_TYPE expression, immediately emit an error and
11492 return error_mark_node.
11494 2011-01-26 Jeff Law <law@redhat.com>
11496 PR rtl-optimization/47464
11497 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11498 rather than may_trap_p as needed.
11500 2011-01-26 DJ Delorie <dj@redhat.com>
11502 PR rtl-optimization/46878
11503 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11504 setter/user dependency as well.
11506 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11508 PR rtl-optimization/44469
11509 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11510 after removing trivially dead basic blocks.
11512 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11514 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11515 * config/frv/frv.h (LINK_SPEC): Likewise.
11516 * config/i386/netware.h (LINK_SPEC): Likewise.
11517 * config/m68k/linux.h (ASM_SPEC): Likewise.
11518 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11519 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11520 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11521 * config/sparc/linux.h (ASM_SPEC): Likewise.
11522 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11523 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11525 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11527 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11528 * config/frv/frv.h (ASM_SPEC): Likewise.
11529 * config/m68k/linux.h (ASM_SPEC): Likewise.
11530 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11531 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11532 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11533 * config/sparc/linux.h (ASM_SPEC): Likewise.
11534 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11535 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11537 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11539 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11540 * config/frv/frv.h (LINK_SPEC): Likewise.
11541 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11543 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11545 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11546 * config/frv/frv.h (ASM_SPEC): Likewise.
11547 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11548 * config/m68k/linux.h (ASM_SPEC): Likewise.
11549 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11550 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11551 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11552 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11553 * config/sparc/linux.h (ASM_SPEC): Likewise.
11554 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11555 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11556 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11558 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11561 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11563 (vec_extract_evenodd_help): Ditto.
11564 (vec_extract_evenv4hi): Ditto.
11565 (vec_extract_oddv4hi): Ditto.
11566 (vec_interleave_lowv2si): Ditto.
11567 (vec_interleave_highv2si): Ditto.
11568 (vec_extract_evenv2si): Ditto.
11569 (vec_extract_oddv2si: Ditto.
11570 (vec_pack_trunc_v2si): Ditto.
11572 2011-01-22 Jan Hubicka <jh@suse.cz>
11575 * cgraph.h (cgraph_local_info): New field can_change_signature.
11576 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11577 signature can change.
11578 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11580 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11581 (cgraph_function_versioning): We can not change signature of functions
11582 that don't allow that.
11583 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11584 (lto_input_node): Likewise.
11585 * ipa-inline.c (compute_inline_parameters): Compute
11586 local.can_change_signature.
11587 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11588 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11589 functions that can not change signature.
11590 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11591 init_cumulative_args): Do not use local calling conventions
11592 for functions that can not change signature.
11594 2011-01-22 Jan Hubicka <jh@suse.cz>
11596 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11598 2011-01-26 Richard Guenther <rguenther@suse.de>
11600 PR tree-optimization/47190
11601 * cgraphunit.c (process_common_attributes): New function.
11602 (process_function_and_variable_attributes): Use it.
11604 2011-01-26 Richard Guenther <rguenther@suse.de>
11607 * cgraphbuild.c (record_eh_tables): Record reference to personality
11610 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11613 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11614 non-debug insns from moving up.
11616 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11619 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11620 t-dlldir{,-x} fragment for build and add it to tmake_file.
11621 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11622 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11623 * config/i386/t-dlldir: New file.
11624 (SHLIB_DLLDIR): Define.
11625 * config/i386/t-dlldir-x: New file.
11626 (SHLIB_DLLDIR): Define.
11627 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11628 (SHLIB_INSTALL): Use it.
11630 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11633 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11634 lower bound of the allowed Thumb-2 coprocessor load/store
11635 index range to -256. Add explaining comment.
11637 2011-01-25 Ian Lance Taylor <iant@google.com>
11639 * godump.c (go_define): Improve lexing of macro expansion to only
11640 accept expressions which match Go spec.
11642 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11645 * tree.c (handle_dll_attribute): Handle it.
11646 * doc/extend.texi (@item dllexport): Mention it.
11647 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11649 2011-01-25 Ian Lance Taylor <iant@google.com>
11651 PR tree-optimization/26854
11652 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11653 (decl_jump_unsafe): Move higher in file, with no other change.
11654 (bind): Set has_jump_unsafe_decl if appropriate.
11655 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11656 (check_earlier_gotos): Likewise.
11657 (c_check_switch_jump_warnings): Likewise.
11659 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11661 * doc/invoke.texi (Warning Options): Add missing hyphen.
11662 (-fprofile-dir): Minor grammatical fixes.
11663 (-fbranch-probabilities): Likewise.
11665 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11669 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11671 (no_real_insns_p, schedule_block, set_priorities): Drop special
11672 treatment of boundary debug insns.
11673 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11674 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11675 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11676 (BOUNDARY_DEBUG_INSN_P): Likewise.
11677 (SCHEDULE_DEBUG_INSN_P): Likewise.
11678 * sched-rgn.c (init_ready_list): Drop special treatment of
11679 boundary debug insns.
11680 * final.c (rest_of_clean-state): Clear notes' BB.
11682 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11684 * Makefile.in (LAMBDA_H): Removed.
11685 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11686 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11687 lambda-trans.o, and tree-loop-linear.o.
11688 (lto-symtab.o): Remove dependence on LAMBDA_H.
11689 (tree-loop-linear.o): Remove rule.
11690 (lambda-mat.o): Same.
11691 (lambda-trans.o): Same.
11692 (lambda-code.o): Same.
11693 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11694 (tree-vect-slp.o): Same.
11695 * hwint.h (gcd): Moved here.
11696 (least_common_multiple): Same.
11697 * lambda-code.c: Removed.
11698 * lambda-mat.c: Removed.
11699 * lambda-trans.c: Removed.
11700 * lambda.h: Removed.
11701 * tree-loop-linear.c: Removed.
11702 * lto-symtab.c: Do not include lambda.h.
11703 * omega.c (gcd): Removed.
11704 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11705 * tree-data-ref.c (print_lambda_vector): Moved here.
11706 (lambda_vector_copy): Same.
11707 (lambda_matrix_copy): Same.
11708 (lambda_matrix_id): Same.
11709 (lambda_vector_first_nz): Same.
11710 (lambda_matrix_row_add): Same.
11711 (lambda_matrix_row_exchange): Same.
11712 (lambda_vector_mult_const): Same.
11713 (lambda_vector_negate): Same.
11714 (lambda_matrix_row_negate): Same.
11715 (lambda_vector_equal): Same.
11716 (lambda_matrix_right_hermite): Same.
11717 * tree-data-ref.h: Do not include lambda.h.
11718 (lambda_vector): Moved here.
11719 (lambda_matrix): Same.
11720 (dependence_level): Same.
11721 (lambda_transform_legal_p): Removed declaration.
11722 (lambda_collect_parameters): Same.
11723 (lambda_compute_access_matrices): Same.
11724 (lambda_vector_gcd): Same.
11725 (lambda_vector_new): Same.
11726 (lambda_vector_clear): Same.
11727 (lambda_vector_lexico_pos): Same.
11728 (lambda_vector_zerop): Same.
11729 (lambda_matrix_new): Same.
11730 * tree-flow.h (least_common_multiple): Removed declaration.
11731 * tree-parloops.c (lambda_trans_matrix): Moved here.
11732 (LTM_MATRIX): Same.
11733 (LTM_ROWSIZE): Same.
11734 (LTM_COLSIZE): Same.
11735 (LTM_DENOMINATOR): Same.
11736 (lambda_trans_matrix_new): Same.
11737 (lambda_matrix_vector_mult): Same.
11738 (lambda_transform_legal_p): Same.
11739 * tree-pass.h (pass_linear_transform): Removed declaration.
11740 * tree-ssa-loop.c (tree_linear_transform): Removed.
11741 (gate_tree_linear_transform): Removed.
11742 (pass_linear_transform): Removed.
11743 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11744 flag_loop_interchange.
11746 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11748 PR tree-optimization/47265
11749 PR tree-optimization/47443
11750 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11751 if name still has some uses.
11753 2011-01-25 Martin Jambor <mjambor@suse.cz>
11755 PR tree-optimization/47382
11756 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11757 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11759 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11761 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11762 sjlj_except_unwind_info.
11764 2011-01-25 Richard Guenther <rguenther@suse.de>
11766 PR tree-optimization/47426
11767 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11768 visible functions results escape.
11770 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11773 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11774 (arm_get_frame_offsets): Use it.
11776 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11777 Jakub Jelinek <jakub@redhat.com>
11779 PR tree-optimization/47271
11780 * tree-if-conv.c (bb_postdominates_preds): New.
11781 (if_convertible_bb_p): Call bb_postdominates_preds.
11782 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11783 (predicate_scalar_phi): Call bb_postdominates_preds.
11785 2011-01-25 Nick Clifton <nickc@redhat.com>
11787 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11788 * config/rx/rx.c (rx_function_value): Likewise.
11789 (rx_promote_function_mode): Likewise.
11790 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11791 in order to make it legitimate.
11792 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11793 make sure that the first operand is the same as the result register.
11794 (addsi3_unspec): Delete.
11795 (subdi3): Do not accept immediate operands.
11796 (subdi3_internal): Likewise.
11798 2011-01-25 Jeff Law <law@redhat.com>
11800 PR rtl-optimization/37273
11801 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11802 handle them like argument loads from stack slots. Do not double
11803 count memory for memory constants and argument loads from stack slots.
11805 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11807 PR tree-optimization/47427
11808 PR tree-optimization/47428
11809 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11810 coalesce if the new root var would be TREE_READONLY.
11812 2011-01-25 Richard Guenther <rguenther@suse.de>
11814 PR middle-end/47414
11815 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11816 correct type for TBAA.
11818 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11820 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11821 (close_phi_written_to_memory): Call for_each_index with
11822 dr_indices_valid_in_loop.
11824 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11826 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11827 when it is initialized.
11829 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11831 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11832 call to graphite_find_data_references_in_stmt.
11833 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11834 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11835 call to graphite_find_data_references_in_stmt.
11836 (analyze_drs_in_stmts): Same.
11837 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11838 in which the scalar analysis of indices is performed.
11839 (create_data_ref): Same. Update call to dr_analyze_indices.
11840 (find_data_references_in_stmt): Update call to create_data_ref.
11841 (graphite_find_data_references_in_stmt): Same.
11842 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11844 (create_data_ref): Same.
11845 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11846 call to create_data_ref.
11848 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11850 * graphite-sese-to-poly.c (build_poly_scop): Move
11851 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11853 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11855 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11856 VAR_DECL, PARM_DECL, and RESULT_DECL.
11858 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11860 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11861 in a reduction PBB.
11862 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11863 that have already been marked as PBB_IS_REDUCTION.
11865 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11867 * graphite-scop-detection.c (same_close_phi_node): New.
11868 (remove_duplicate_close_phi): New.
11869 (make_close_phi_nodes_unique): New.
11870 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11872 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11874 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11875 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11876 of both data references to be the same.
11878 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11880 * graphite-dependences.c (build_lexicographical_constraint): Remove
11881 the gdim parameter.
11882 (build_lexicographical_constraint): Adjust call to
11883 ppl_powerset_is_empty.
11884 (dependence_polyhedron): Same.
11885 (graphite_legal_transform_dr): Same.
11886 (graphite_carried_dependence_level_k): Same.
11887 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11889 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11891 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11893 * graphite-sese-to-poly.c
11894 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11895 (close_phi_written_to_memory): New.
11896 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11899 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11901 * doc/install.texi: Update the expected version number of PPL to 0.11.
11902 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11903 #if PPL_VERSION_MINOR < 11.
11905 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11907 * graphite-dependences.c: Include graphite-cloog-util.h.
11908 (new_poly_ddr): Inlined into dependence_polyhedron.
11909 (free_poly_ddr): Moved close by new_poly_ddr.
11910 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11911 Early return NULL when ppl_powerset_is_empty returns true.
11912 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11913 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11914 (graphite_legal_transform_dr): Call new_poly_ddr.
11915 (graphite_carried_dependence_level_k): Same.
11916 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11917 (dot_transformed_deps_stmt_1): Removed.
11918 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11919 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11920 (dot_deps_1): Call dot_deps_2.
11921 * Makefile.in (graphite-dependences.o): Add missing dependence on
11922 graphite-cloog-util.h.
11924 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11926 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11927 (build_lexicographical_constraint): Same.
11928 (dependence_polyhedron_1): Same.
11929 (graphite_legal_transform_dr): Same.
11930 (graphite_carried_dependence_level_k): Same.
11931 * graphite-ppl.c (ppl_powerset_is_empty): New.
11932 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11933 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11935 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11937 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11938 the "a followed by b" relation and document it.
11940 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11942 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11943 iteration when the bag of constraints is empty.
11945 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11947 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11949 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11951 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11952 nest and two loop depths as parameters.
11953 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11954 lst_perfect_nestify.
11956 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11958 * graphite-dependences.c (print_pddr): Call
11959 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11961 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11963 * graphite-ppl.c (debug_gmp_value): New.
11964 * graphite-ppl.h (debug_gmp_value): Declared.
11966 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11968 * doc/install.texi: Document availability of cloog-0.16.
11970 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11972 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11973 invalid postdominance info.
11975 2011-01-24 Jan Hubicka <jh@suse.cz>
11978 * doc/extend.texi (weak pragma): Drop claim that it must
11979 appear before definition.
11980 * varasm.c (merge_weak, declare_weak): Only sanity check
11981 that DECL is not output at a time it is declared weak.
11983 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
11985 * machmode.def: Fixed comments.
11987 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
11989 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11991 2011-01-24 Paul Koning <ni1d@arrl.net>
11993 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11996 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
11999 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12000 (block_info): Add scanned and prev.
12001 (move_or_delete_vzeroupper_2): Return if the basic block
12002 has been scanned and the upper 128bit state is unchanged
12003 from the last scan.
12004 (move_or_delete_vzeroupper_1): Return true if the exit
12006 (move_or_delete_vzeroupper): Visit basic blocks using the
12007 work-list based algorithm based on vt_find_locations in
12010 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12012 2011-01-24 Nick Clifton <nickc@redhat.com>
12014 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12015 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12016 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12017 then define __v850e1__.
12018 * doc/invoke.texi: Document -mv850es.
12020 2011-01-24 Richard Henderson <rth@redhat.com>
12022 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12023 compound unordered comparisons.
12024 * config/rx/rx.c (rx_split_fp_compare): Remove.
12025 * config/rx/rx-protos.h: Update.
12026 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12027 (cbranchsf4): Don't call rx_split_fp_compare.
12028 (*cbranchsf4): Use rx_split_cbranch.
12029 (*cmpsf): Don't accept "i" constraint.
12030 (*conditional_branch): Only valid after reload.
12031 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12033 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12036 * config/rs6000/altivec.md (vector constant splitters): Add
12037 support for creating vector single precision constants if -mvsx is
12038 used and we would create the constant using Altivec primitives.
12040 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12041 Richard Sandiford <rdsandiford@googlemail.com>
12043 PR rtl-optimization/47166
12044 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12045 mechanism for PRE_MODIFY and POST_MODIFY.
12046 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12049 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12051 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12053 2011-01-22 Jan Hubicka <jh@suse.cz>
12056 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12058 2011-01-22 Jan Hubicka <jh@suse.cz>
12060 PR tree-optimization/43884
12062 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12063 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12065 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12067 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12068 * config/s390/s390.c (s390_register_move_cost,
12069 s390_memory_move_cost): New.
12070 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12072 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12074 PR middle-end/47401
12075 * except.c (sjlj_assign_call_site_values): Move setting the
12076 crtl->uses_eh_lsda flag to ...
12077 (sjlj_mark_call_sites): ... here.
12078 (sjlj_emit_function_enter): Support NULL dispatch label.
12079 (sjlj_build_landing_pads): In a function with no landing pads
12080 that still has must-not-throw regions, generate code to register
12081 a personality function with empty LSDA.
12083 2011-01-21 Richard Henderson <rth@redhat.com>
12085 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12087 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12089 * compare-elim.c: New file.
12090 * Makefile.in (OBJS-common): Add it.
12091 (compare-elim.o): New.
12092 * common.opt (fcompare-elim): New.
12093 * opts.c (default_options_table): Add OPT_fcompare_elim.
12094 * tree-pass.h (pass_compare_elim_after_reload): New.
12095 * passes.c (init_optimization_passes): Add it.
12096 * recog.h: Protect against re-inclusion.
12097 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12098 * doc/invoke.texi (-fcompare-elim): Document it.
12099 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12100 * doc/tm.texi: Rebuild.
12102 2011-01-22 Nick Clifton <nickc@redhat.com>
12104 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12105 rx_split_fp_compare.
12107 2011-01-22 Nick Clifton <nickc@redhat.com>
12109 * config/rx/rx.md (UNSPEC_CONST): New.
12110 (deallocate_and_return): Wrap the amount popped off the stack in
12111 an UNSPEC_CONST in order to stop it being rejected by
12112 -mmax-constant-size.
12113 (pop_and_return): Add a "(return)" rtx.
12114 (call): Drop the immediate operand.
12115 (call_internal): Likewise.
12116 (call_value): Likewise.
12117 (call_value_internal): Likewise.
12118 (sibcall_internal): Likewise.
12119 (sibcall_value_internal): Likewise.
12120 (sibcall): Likewise. Generate an explicit call using
12122 (sibcall_value): Likewise.
12123 (mov<>): FAIL if a constant operand is not legitimate.
12124 (addsi3_unpsec): New pattern.
12126 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12127 (ok_for_max_constant): New function.
12128 (gen_safe_add): New function.
12129 (rx_expand_prologue): Use gen_safe_add.
12130 (rx_expand_epilogue): Likewise.
12131 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12134 2011-01-21 Jeff Law <law@redhat.com>
12136 PR tree-optimization/47053
12137 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12138 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12139 statements are deleted.
12140 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12141 is nonempty, then purge dead edges and cleanup the CFG.
12143 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12146 Temporarily revert:
12147 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12149 * tree-dfa.c (create_var_ann): Mark variable as used.
12151 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12153 PR middle-end/45566
12154 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12155 notes from other section in hot/cold partitioning even if
12156 last_action is -3. Increment call_site_base.
12158 PR rtl-optimization/47366
12159 * fwprop.c (forward_propagate_into): Return bool. If
12160 any changes are made, -fnon-call-exceptions is used and
12161 REG_EH_REGION note is present, call purge_dead_edges
12162 and return true if it purged anything.
12163 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12164 any EH edges were purged.
12166 2011-01-21 Jeff Law <law@redhat.com>
12168 PR rtl-optimization/41619
12169 * caller-save.c (setup_save_areas): Break out code to determine
12170 which hard regs are live across calls by examining the reload chains
12171 so that it is always used.
12172 Eliminate code which checked REG_N_CALLS_CROSSED.
12174 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12176 PR tree-optimization/47355
12177 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12178 NOP has non-debug uses beyond PHIs in new_bb.
12180 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12183 * cfgexpand.c (account_used_vars_for_block): Only account vars
12184 that are annotated as used.
12185 (estimated_stack_frame_size): Don't set TREE_USED.
12186 * tree-dfa.c (create_var_ann): Mark variable as used.
12188 2011-01-21 Richard Guenther <rguenther@suse.de>
12190 PR middle-end/47395
12191 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12193 2011-01-21 Richard Guenther <rguenther@suse.de>
12195 PR tree-optimization/47365
12196 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12197 (vn_reference_lookup_pieces): Adjust.
12198 (vn_reference_lookup): Likewise.
12199 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12200 (vn_reference_lookup_3): Only look through kills if in
12201 VN_WALKREWRITE mode.
12202 (vn_reference_lookup_pieces): Adjust.
12203 (vn_reference_lookup): Likewise.
12204 (visit_reference_op_load): Likewise.
12205 (visit_reference_op_store): Likewise.
12206 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12207 (compute_avail): Likewise.
12208 (eliminate): Likewise.
12210 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12212 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12213 DECL_IGNORED_P non-reg vars if they are used.
12215 PR tree-optimization/47391
12216 * varpool.c (const_value_known_p): Return false if
12219 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12222 * config/i386/i386.c (ix86_local_alignment): Handle
12223 case for va_list_type_node is nil.
12224 (ix86_canonical_va_list_type): Likewise.
12226 2011-01-21 Alan Modra <amodra@gmail.com>
12228 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12229 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12231 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12233 * config/arm/arm.md (define_attr type): Rename f_load
12234 and f_store to f_fpa_load and f_fpa_store. Update.
12235 (write_conflict): Deal with rename fallout.
12236 (*push_fp_multi): Likewise.
12237 * config/arm/fpa.md (f_load): Use f_fpa_load.
12238 (f_store): Use f_fpa_store.
12239 (*movsf_fpa): Likewise.
12240 (*movdf_fpa): Likewise.
12241 (*movxf_fpa): Likewise.
12242 (*thumb2_movsf_fpa): Likewise.
12243 (*thumb2_movdf_fpa): Likewise.
12244 (*thumb2_movxf_fpa): Likewise.
12245 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12246 f_loadd and f_stored.
12247 (*thumb2_movdi_vfp): Likewise.
12248 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12249 (*thumb2_movsi_vfp): Likewise.
12250 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12251 Use f_loads instead of f_load.
12252 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12254 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12256 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12257 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12258 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12259 (xtensa_mode_dependent_address_p): New function.
12260 (constantpool_address_p): Make static. Change return type to bool.
12261 Change argument type to const_rtx. Use CONST_INT_P predicate.
12263 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12266 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12268 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12271 * cfgexpand.c (expand_debug_expr): Instead of generating
12272 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12275 2011-01-20 Richard Guenther <rguenther@suse.de>
12277 PR middle-end/47370
12278 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12279 the pointer operand of MEM_REFs.
12281 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12283 PR tree-optimization/46130
12284 * ipa-split.c (consider_split): If return_bb contains non-virtual
12285 PHIs other than for retval or if split_function would not adjust it,
12288 2011-01-20 Richard Guenther <rguenther@suse.de>
12290 PR tree-optimization/47167
12291 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12292 Revert previous change, only avoid enumeral type changes.
12294 2011-01-19 Mike Stump <mikestump@comcast.net>
12296 * doc/tm.texi.in (BRANCH_COST): Englishify.
12297 * doc/tm.texi (BRANCH_COST): Likewise.
12299 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12302 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12303 (gen_scheduled_generic_parms_dies): New functions.
12304 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12305 generation for the end of CU compilation.
12306 (dwarf2out_finish): Generate template parameters DIEs here.
12308 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12311 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12312 debug bind stmt on merge edges.
12314 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12318 * function.c (instantiate_expr): Instantiate incoming rtl of
12319 implicit arguments, and recurse on VALUE_EXPRs.
12320 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12321 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12323 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12325 * c-parser.c (c_parser_for_statement): Initialize
12326 collection_expression.
12328 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12330 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12332 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12334 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12335 (LINK_SHLIB_SPEC): Don't use %(link_path).
12336 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12338 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12340 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12341 (NO_SHARED_LIB_SUPPORT): Remove.
12342 (LINK_SHLIB_SPEC): Remove one conditional definition.
12344 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12346 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12348 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12349 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12350 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12351 %{call_shared} and conditionals on these options not being passed.
12352 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12355 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12357 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12360 * ipa-split.c: Spelling fixes.
12362 2011-01-19 Richard Henderson <rth@redhat.com>
12364 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12365 (*mulsi3): Likewise.
12367 * longlong.h [__mn10300__] (count_leading_zeros): New.
12368 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12369 [__mn10300__] (add_ssaaaa, subddmmss): New.
12370 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12371 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12373 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12375 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12377 2011-01-19 Richard Henderson <rth@redhat.com>
12379 * config/mn10300/mn10300.md (addsi3_flags): New.
12380 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12381 (subsi3_flags, subc_internal, subdi3): New.
12382 (subdi3_internal, *subdi3_degenerate): New.
12383 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12385 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12386 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12387 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12388 * config/mn10300/mn10300-protos.h: Update.
12389 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12390 (return_ret): Likewise. Rename from return_internal_regs.
12391 (return_internal): Remove.
12393 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12394 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12395 (mn10300_legitimate_constant_p): Likewise.
12396 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12397 (mn10300_frame_size): New.
12398 (mn10300_expand_prologue): Use it.
12399 (mn10300_expand_epilogue): Likewise.
12400 (mn10300_initial_offset): Likewise.
12401 * config/mn10300/mn10300-protos.h: Update.
12402 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12403 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12404 (prologue, epilogue, return_internal): Tidy output code.
12405 (mn10300_store_multiple_operation, return): Likewise.
12406 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12407 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12408 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12409 (load_pic, am33_load_pic): New.
12410 (mn10300_load_pic0, mn10300_load_pic1): New.
12412 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12413 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12414 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12415 (cc_flags_for_mode, cc_flags_for_code): New.
12416 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12417 overflow flag is not valid. Validate that the flags we need
12418 for the comparison are valid.
12419 (mn10300_output_cmp): Remove.
12420 (mn10300_output_add): New.
12421 (mn10300_select_cc_mode): Use cc_flags_for_code.
12422 (mn10300_split_cbranch): New.
12423 (mn10300_match_ccmode): New.
12424 (mn10300_split_and_operand_count): New.
12425 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12427 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12428 (addsi3): ... here. Use mn10300_output_add.
12429 (*addsi3_flags): New.
12430 (*am33_subsi3, *mn10300_subsi3): Merge...
12431 (subsi3): ... here. Use attribute isa.
12432 (*subsi3_flags): New.
12433 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12435 (*am33_andsi3, *mn10300_andsi3): Merge...
12436 (andsi3): ... here.
12437 (*andsi3_flags): New.
12438 (andsi3 splitters): New.
12439 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12440 (iorsi3): ... here.
12441 (*iorsi3_flags): New.
12442 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12443 (xorsi3): ... here.
12444 (*xorsi3_flags): New.
12445 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12446 (one_cmplsi2): ... here.
12447 (*one_cmplsi2_flags): New.
12448 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12449 instead of "dax" in constraints. Use mn10300_split_cbranch.
12450 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12451 use matching constraints to eliminate a self-comparison.
12452 (*integer_conditional_branch): Rename from integer_conditional_branch.
12453 Use int_mode_flags to match CC_REG.
12454 (*cbranchsi4_btst, *btstsi): New.
12455 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12456 mn10300_split_cbranch.
12457 (*am33_cmpsf): Rename from am33_cmpsf.
12458 (*float_conditional_branch): Rename from float_conditional_branch.
12459 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12460 (zero_extendqisi2): ... here.
12461 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12462 (zero_extendhisi2): ... here.
12463 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12464 (extendqisi2): ... here.
12465 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12466 (extendhisi2): ... here.
12467 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12468 (ashlsi3): ... here.
12469 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12470 (lshrsi3): ... here.
12471 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12472 (ashrsi3): ... here.
12473 (consecutive add peephole): Remove.
12474 * config/mn10300/predicates.md (label_ref_operand): New.
12475 (int_mode_flags): New.
12476 (CCZN_comparison_operator): New.
12478 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12479 (throughput_42_latency_43): New reservation.
12480 (mulsidi3, umulsidi3): New expanders.
12481 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12482 the MDR register to allocation; separately allocate the low and
12483 high parts of the DImode result.
12484 (umulsidi3_internal): Similarly.
12485 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12486 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12487 (udivsi3, umodsi3): Remove.
12488 (udivmodsi4, divmodsi4): New expanders.
12489 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12490 (*divmodsi4): Simiarly.
12491 (ext_internal): New.
12493 * config/mn10300/constraints.md ("z"): New constraint.
12494 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12495 (FIXED_REGISTERS): Don't fix MDR.
12496 (CALL_USED_REGSITERS): Reformat nicely.
12497 (REG_ALLOC_ORDER): Add MDR.
12498 (enum regclass): Add MDR_REGS.
12499 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12500 (IRA_COVER_CLASSES): Add MDR_REGS.
12501 (REGNO_REG_CLASS): Handle MDR_REG.
12502 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12503 (mn10300_register_move_cost): Likewise.
12504 * config/mn10300/mn10300.md (MDR_REG): New.
12505 (*movsi_internal): Handle moves to/from MDR_REGS.
12507 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12509 (mn10300_secondary_reload): Tidy combination reload classes.
12510 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12511 addresses for AM33. Allow symbolic offsets for reg+imm.
12512 (mn10300_regno_in_class_p): New.
12513 (mn10300_legitimize_reload_address): New.
12514 * config/mn10300/mn10300.h (enum reg_class): Remove
12515 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12516 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12517 SP_OR_GENERAL_REGS.
12518 (REG_CLASS_NAMES): Update to match.
12519 (REG_CLASS_CONTENTS): Likewise.
12520 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12521 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12522 (REGNO_IN_RANGE_P): Remove.
12523 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12524 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12525 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12526 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12527 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12528 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12529 (REGNO_GENERAL_P): New.
12530 (HAVE_POST_MODIFY_DISP): New.
12531 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12532 (LEGITIMIZE_RELOAD_ADDRESS): New.
12533 * config/mn10300/mn10300-protos.h: Update.
12535 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12536 DATA_REGS for AM33 stack-pointer destination.
12537 (mn10300_preferred_output_reload_class): Likewise.
12538 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12539 into a form appropriate for ...
12540 (TARGET_SECONDARY_RELOAD): New.
12541 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12542 * config/mn10300/mn10300-protos.h: Update.
12543 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12544 reload_insi; use the "A" constraint for the scratch; handle AM33
12545 moves of sp to non-address registers.
12547 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12548 (*movqi_internal): ... here.
12549 (*am33_movhi, *mn10300_movhi): Merge into...
12550 (*movhi_internal): ... here.
12551 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12552 as the source/destination of moves from/to SP.
12553 (movsf): Only allow for AM33-2.
12554 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12555 any integer constant constraint. Only allow for AM33-2. Tidy
12556 all of the alternative outputs.
12557 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12558 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12560 (udivsi3, umodsi3): New patterns for MN103 only.
12562 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12564 * doc/tm.texi.in: Spell out that a lack of register class unions
12566 * doc/tm.texi: Regenerate.
12568 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12570 PR rtl-optimization/47337
12571 * dce.c (check_argument_store): New function.
12572 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12574 PR tree-optimization/47290
12575 * tree-eh.c (infinite_empty_loop_p): New function.
12576 (cleanup_empty_eh): Use it.
12578 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12581 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12582 (a64_expand_widen_sum): Ditto.
12583 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12584 (vec_extract_evenodd_help): Ditto.
12585 (vec_extract_evenv4hi): Ditto.
12586 (vec_extract_oddv4hi): Ditto.
12587 (vec_extract_evenv2si): Ditto.
12588 (vec_extract_oddv2si): Ditto.
12589 (vec_extract_evenv2sf): Ditto.
12590 (vec_extract_oddv2sf): Ditto.
12591 (vec_pack_trunc_v4hi: Ditto.
12592 (vec_pack_trunc_v2si): Ditto.
12593 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12594 (vec_interleave_highv8qi): Ditto.
12596 (vec_extract_oddv8qi): Ditto.
12597 (vec_interleave_lowv4hi): Ditto.
12598 (vec_interleave_highv4hi): Ditto.
12599 (vec_interleave_lowv2si): Ditto.
12600 (vec_interleave_highv2si): Ditto.
12602 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12604 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12605 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12606 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12607 (pa_c_mode_for_suffix): New.
12608 (TARGET_EXPAND_BUILTIN): Define.
12609 (TARGET_C_MODE_FOR_SUFFIX): Define.
12610 (pa_builtins): Define.
12611 (pa_init_builtins): Register __float128 type and init new support
12613 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12614 * config/pa/quadlib.c (_U_Qfcopysign): New.
12616 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12618 PR middle-end/46894
12619 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12620 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12623 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12625 PR tree-optimization/47179
12626 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12627 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12629 2011-01-18 Richard Guenther <rguenther@suse.de>
12631 PR rtl-optimization/47216
12632 * emit-rtl.c: Include tree-flow.h.
12633 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12634 of replicating it with different semantics.
12635 * Makefile.in (emit-rtl.o): Adjust.
12637 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12639 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12640 (cortex_a9_dp): Handle neon types correctly.
12642 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12644 PR rtl-optimization/47299
12645 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12646 subtarget. Use normal multiplication if both operands are constants.
12647 * expmed.c (expand_widening_mult): Don't try to optimize constant
12648 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12651 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12653 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12654 spacing after 'e.g.', typos, comma, hyphenation.
12656 2011-01-17 Richard Henderson <rth@redhat.com>
12658 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12659 (rx_restricted_mem_operand): New.
12660 (rx_shift_operand): Use register_operand.
12661 (rx_source_operand, rx_compare_operand): Likewise.
12662 * config/rx/rx.md (addsi3_flags): New expander.
12663 (adddi3): Rewrite as expander.
12664 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12665 (subsi3_flags): New expander.
12666 (subdi3): Rewrite as expander.
12667 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12669 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12670 (rx_init_builtins): Remove sat builtin.
12671 (rx_expand_builtin): Likewise.
12672 * config/rx/rx.md (ssaddsi3): New.
12673 (*sat): Rename from sat. Represent the CC_REG input.
12675 * config/rx/predicates.md (rshift_operator): New.
12676 * config/rx/rx.c (rx_expand_insv): Remove.
12677 * config/rx/rx-protos.h: Update.
12678 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12679 operand to the canonical position.
12680 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12681 (*bitclr, *bitclr_in_memory): Similarly.
12682 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12683 (insv): Retain the zero_extract in the expansion.
12685 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12686 (bswaphi2, bitinvert, revw): Likewise.
12688 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12689 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12690 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12691 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12692 (bitset, bitset_in_memory): Likewise.
12693 (bitinvert, bitinvert_in_memory): Likewise.
12694 (bitclr, bitclr_in_memory): Likewise.
12695 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12696 (rx_strend, rx_cmpstrn): Likewise.
12697 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12698 (bitop peep2 patterns): Remove.
12700 * config/rx/rx.c (rx_match_ccmode): New.
12701 * config/rx/rx-protos.h: Update.
12702 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12703 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12704 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12705 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12706 (fix_truncsfsi2, floatsisf2): Likewise.
12707 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12708 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12709 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12710 (*subsi3_flags, *xorsi3_flags): New.
12712 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12714 * config/rx/rx.c (rx_print_operand): Remove workaround for
12715 unsplit comparison operations.
12717 * config/rx/rx.md (movsicc): Split after reload.
12718 (*movsicc): Merge *movsieq and *movsine via match_operator.
12719 (*stcc): New pattern.
12721 * config/rx/rx.c (rx_float_compare_mode): Remove.
12722 * config/rx/rx.h (rx_float_compare_mode): Remove.
12723 * config/rx/rx.md (cstoresi4): Split after reload.
12724 (*sccc): New pattern.
12726 * config/rx/predicates.md (label_ref_operand): New.
12727 (rx_z_comparison_operator): New.
12728 (rx_zs_comparison_operator): New.
12729 (rx_fp_comparison_operator): New.
12730 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12731 Validate that the flags are set properly for the comparison.
12732 (rx_gen_cond_branch_template): Remove.
12733 (rx_cc_modes_compatible): Remove.
12734 (mode_from_flags): New.
12735 (flags_from_code): Rename from flags_needed_for_conditional.
12736 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12737 (rx_select_cc_mode): Likewise.
12738 (rx_split_fp_compare): New.
12739 (rx_split_cbranch): New.
12740 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12741 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12742 (*cbranchsf4): Similarly.
12743 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12744 match_operator and rx_split_cbranch.
12745 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12746 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12747 (*cmpsi): Rename from cmpsi.
12748 (*tstsi): Rename from tstsi.
12749 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12750 (*conditional_branch): Rename from conditional_branch.
12751 (*reveresed_conditional_branch): Remove.
12752 (b<code>): Remove expander.
12753 * config/rx/rx-protos.h: Update.
12755 * config/rx/rx.c (rx_compare_redundant): Remove.
12756 * config/rx/rx.md (cmpsi): Don't use it.
12757 * config/rx/rx-protos.h: Update.
12759 * config/rx/rx-modes.def (CC_F): New mode.
12760 * config/rx/rx.c (rx_select_cc_mode): New.
12761 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12762 * config/rx/rx-protos.h: Update.
12764 2011-01-17 Richard Henderson <rth@redhat.com>
12766 * except.c (dump_eh_tree): Fix stray ; after for statement.
12768 2011-01-17 Richard Guenther <rguenther@suse.de>
12770 PR tree-optimization/47313
12771 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12772 handling before copying the body. Properly deal with
12773 by-reference result in SSA form.
12775 2011-01-17 Ian Lance Taylor <iant@google.com>
12778 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12779 (struct_value_alias_set): Don't define.
12780 (sparc_option_override): Don't set sparc_sr_alias_set and
12781 struct_value_alias_set.
12782 (save_or_restore_regs): Use gen_frame_mem rather than calling
12784 (sparc_struct_value_rtx): Likewise.
12786 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12789 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12790 (_mm_maskstore_pd): Likewise.
12791 (_mm_maskload_ps): Likewise.
12792 (_mm_maskstore_ps): Likewise.
12793 (_mm256_maskload_pd): Change mask to __m256i.
12794 (_mm256_maskstore_pd): Likewise.
12795 (_mm256_maskload_ps): Likewise.
12796 (_mm256_maskstore_ps): Likewise.
12798 * config/i386/i386-builtin-types.def: Updated.
12799 (ix86_expand_special_args_builtin): Likewise.
12801 * config/i386/i386.c (bdesc_special_args): Update
12802 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12803 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12804 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12805 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12807 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12808 Use <avxpermvecmode> on mask register.
12809 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12811 2011-01-17 Olivier Hainque <hainque@adacore.com>
12812 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12813 Eric Botcazou <ebotcazou@adacore.com>
12816 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12817 if <= USHRT_MAX in 32-bit mode.
12819 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12821 * doc/install.texi (Configuration, Specific): Wrap long
12822 lines in examples. Allow line wrapping in long options
12823 and URLs where beneficial for PDF output.
12825 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12827 * config/mips/mips.c (mips_classify_symbol): Don't return
12828 SYMBOL_PC_RELATIVE for nonlocal labels.
12830 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12832 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12834 2011-01-15 Jan Hubicka <jh@suse.cz>
12836 PR tree-optimization/47276
12837 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12838 declarations as needed.
12840 2011-01-15 Martin Jambor <mjambor@suse.cz>
12842 * common.opt (fdevirtualize): New flag.
12843 * doc/invoke.texi (Option Summary): Document it.
12844 * opts.c (default_options_table): Add devirtualize flag.
12845 * ipa-prop.c (detect_type_change): Return immediately if
12846 devirtualize flag is not set.
12847 (detect_type_change_ssa): Likewise.
12848 (compute_known_type_jump_func): Likewise.
12849 (ipa_analyze_virtual_call_uses): Likewise.
12851 2011-01-14 Martin Jambor <mjambor@suse.cz>
12853 PR tree-optimization/45934
12854 PR tree-optimization/46302
12855 * ipa-prop.c (type_change_info): New type.
12856 (stmt_may_be_vtbl_ptr_store): New function.
12857 (check_stmt_for_type_change): Likewise.
12858 (detect_type_change): Likewise.
12859 (detect_type_change_ssa): Likewise.
12860 (compute_complex_assign_jump_func): Check for dynamic type change.
12861 (compute_complex_ancestor_jump_func): Likewise.
12862 (compute_known_type_jump_func): Likewise.
12863 (compute_scalar_jump_functions): Likewise.
12864 (ipa_analyze_virtual_call_uses): Likewise.
12865 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12867 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12869 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12870 * config/i386/i386.opt (msse5): New Alias.
12872 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12874 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12875 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12876 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12877 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12879 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12881 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12883 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12884 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12885 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12886 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12888 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12890 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12892 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12894 2011-01-14 Mike Stump <mikestump@comcast.net>
12896 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12897 * config/fr30/fr30.md: Likweise
12898 (movsi_push): Likewise.
12899 (movsi_pop): Likewise.
12900 (enter_func): Likewise.
12901 * config/moxie/moxie.md (movsi_push): Likewise.
12902 (movsi_pop): Likewise.
12904 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12906 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12907 %{no_archive} %{exact_version}.
12908 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12909 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12910 %{no_archive} %{exact_version}.
12911 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12912 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12913 * config/mips/vxworks.h: Likewise.
12915 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12917 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12919 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12921 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12922 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12924 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12926 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12929 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12931 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12933 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12934 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12936 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12937 Don't handle -shlib.
12939 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12941 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12942 (CC1_SPEC): Don't handle -profile.
12944 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12946 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12947 * config/mips/mips.h (CC1_SPEC): Likewise.
12949 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12951 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12952 * config/mips/mips.h (CC1_SPEC): Likewise.
12954 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12956 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12957 * config/m32r/linux.h (LINK_SPEC): Likewise.
12958 * config/mips/linux.h (LINK_SPEC): Likewise.
12959 * config/mips/linux64.h (LINK_SPEC): Likewise.
12960 * config/sparc/linux.h (LINK_SPEC): Likewise.
12961 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12962 LINK_SPEC): Likewise.
12963 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12965 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12967 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12969 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12971 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12973 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12974 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12976 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12978 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12980 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12982 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12983 supports -Bstatic/-Bdynamic.
12984 * configure: Regenerate.
12986 2011-01-14 Jan Hubicka <jh@suse.cz>
12987 Jack Howarth <howarth@bromo.med.uc.edu>
12990 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12991 when checking debug_info_level. Test write_symbols instead of
12992 debug_hooks->var_location when setting flag_var_tracking_uninit.
12994 2011-01-14 Richard Guenther <rguenther@suse.de>
12996 PR tree-optimization/47179
12997 * target.def (ref_may_alias_errno): New target hook.
12998 * targhooks.h (default_ref_may_alias_errno): Declare.
12999 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13000 (default_ref_may_alias_errno): New function.
13001 * target.h (struct ao_ref_s): Declare.
13002 * tree-ssa-alias.c: Include target.h.
13003 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13004 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13005 (targhooks.o): Likewise.
13006 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13007 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13009 2011-01-14 Richard Guenther <rguenther@suse.de>
13011 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13013 2011-01-14 Richard Guenther <rguenther@suse.de>
13015 PR tree-optimization/47280
13016 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13017 return CFG changes.
13018 (tree_ssa_forward_propagate_single_use_vars): Deal with
13019 CFG changes from associate_plusminus.
13021 2011-01-14 Richard Guenther <rguenther@suse.de>
13023 PR middle-end/47281
13025 2011-01-11 Richard Guenther <rguenther@suse.de>
13027 PR tree-optimization/46076
13028 * tree-ssa.c (useless_type_conversion_p): Conversions from
13029 unprototyped to empty argument list function types are useless.
13031 2011-01-14 Richard Guenther <rguenther@suse.de>
13033 PR tree-optimization/47286
13034 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13036 2011-01-14 Martin Jambor <mjambor@suse.cz>
13038 PR middle-end/46823
13039 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13041 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13043 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13044 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13045 * config/xtensa/xtensa.c (xtensa_libcall_value,
13046 xtensa_function_value_regno_p): New functions.
13047 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13049 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13052 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13054 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13055 New function prototype.
13056 * config/i386/winnt.c (i386_pe_assemble_visibility):
13057 Warn only if attribute was specified by user.
13059 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13062 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13064 (floatunsdidf2_fcfidu): Ditto.
13066 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13068 * config/s390/s390.c (print_operand_address): Replace 'error' with
13069 'output_operand_lossage'.
13070 (print_operand): Likewise.
13072 2011-01-13 Jeff Law <law@redhat.com>
13074 PR rtl-optimization/39077
13075 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13076 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13077 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13078 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13079 * gcse.c (prune_insertions_deletions): New function.
13080 (compute_pre_data): Use it.
13082 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13085 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13087 (prune_unused_types_mark): Use it.
13089 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13091 PR rtl-optimization/45352
13092 * sel-sched.c: Update copyright years.
13093 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13094 in the advancing loop when we have issued issue_rate insns.
13096 2011-01-12 Richard Henderson <rth@redhat.com>
13098 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13099 (TARGET_MD_ASM_CLOBBERS): New.
13101 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13102 (TARGET_DELEGITIMIZE_ADDRESS): New.
13104 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13105 (clzsi2, *bsch): New patterns.
13107 * config/mn10300/mn10300.md (INT): New mode iterator.
13108 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13110 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13111 flag_split_wide_types.
13113 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13114 (mn10300_trampoline_init): Rewrite without a template, an immediate
13115 load and a direct branch.
13116 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13118 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13120 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13121 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13122 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13123 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13125 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13128 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13131 2011-01-12 Jan Hubicka <jh@suse.cz>
13134 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13135 (PLUGIN_COND_CLOSE): New macro.
13136 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13138 2011-01-12 Richard Guenther <rguenther@suse.de>
13141 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13142 register variables in a MEM_REF.
13144 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13146 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13147 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13148 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13149 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13150 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13151 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13152 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13153 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13154 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13155 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13156 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13157 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13158 * config/gnu-user.h: New. Copied from linux.h.
13159 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13160 GNU_USER_TARGET_STARTFILE_SPEC.
13161 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13162 GNU_USER_TARGET_ENDFILE_SPEC.
13163 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13164 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13165 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13166 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13167 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13168 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13169 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13170 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13171 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13172 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13173 * config/arm/linux-eabi.h (CC1_SPEC): Use
13174 GNU_USER_TARGET_CC1_SPEC.
13175 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13176 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13177 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13178 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13179 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13180 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13181 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13182 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13184 2011-01-12 Richard Guenther <rguenther@suse.de>
13187 * doc/invoke.texi (ffast-math): Document it is turned on
13190 2011-01-12 Jan Hubicka <jh@suse.cz>
13192 PR tree-optimization/47233
13193 * opts.c (common_handle_option): Disable ipa-reference with profile
13196 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13198 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13201 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13203 * c-parser.c (c_lex_one_token): Updated and reindented some
13204 comments. No changes in code.
13206 2011-01-11 Ian Lance Taylor <iant@google.com>
13208 * godump.c (go_output_var): Don't output the variable if there is
13209 already a type with the same name.
13211 2011-01-11 Ian Lance Taylor <iant@google.com>
13213 * godump.c (go_format_type): Don't generate float80.
13215 2011-01-11 Richard Henderson <rth@redhat.com>
13217 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13218 declaration. Rewrite for both speed and size.
13219 (mn10300_address_cost_1): Remove.
13220 (mn10300_register_move_cost): New.
13221 (mn10300_memory_move_cost): New.
13222 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13223 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13224 extensions, shifts, BSWAP, CLZ.
13225 (mn10300_wide_const_load_uses_clr): Remove.
13226 (TARGET_REGISTER_MOVE_COST): New.
13227 (TARGET_MEMORY_MOVE_COST): New.
13228 * config/mn10300/mn10300-protos.h: Update.
13229 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13231 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13232 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13233 * config/mn10300/mn10300-protos.h: Update.
13234 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13235 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13236 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13237 (*test_int_bitfield, *test_byte_bitfield): Remove.
13238 (*bit_test, *subreg_bit_test): Remove.
13239 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13241 * config/mn10300/constraints.md ("c"): Rename from "A".
13242 ("A", "D"): New constraint letters.
13243 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13244 (fmssf4, fnmasf4, fnmssf4): Likewise.
13246 * config/mn10300/mn10300.md (isa): New attribute.
13247 (enabled): New attribute.
13249 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13250 (abssf2, negsf2): Define only for hardware fp.
13251 (sqrtsf2): Reformat.
13252 (addsf3, subsf3, mulsf3): Merge expander and insn.
13254 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13255 (DEBUGGER_AUTO_OFFSET): Remove.
13256 (DEBUGGER_ARG_OFFSET): Remove.
13258 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13259 Emit register stores with the same offsets as the hardware.
13260 (mn10300_store_multiple_operation): Don't check that the register
13261 save offsets are monotonic.
13262 * config/mn10300/mn10300-protos.h: Update.
13264 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13266 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13267 in terms of the value on the stack, not the MDR register.
13269 2011-01-11 Jan Hubicka <jh@suse.cz>
13273 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13274 (symbol_alias_set_destroy, symbol_alias_set_contains,
13275 propagate_aliases_backward): Declare.
13276 * lto-streamer-out.c (struct sets): New sturcture.
13277 (trivally_defined_alias): New function.
13278 (output_alias_pair_p): Rewrite.
13279 (output_unreferenced_globals): Fix output of alias pairs.
13280 (produce_symtab): Likewise.
13281 * ipa.c (function_and_variable_visibility): Set weak alias destination
13283 * varasm.c (symbol_alias_set_t): Remove.
13284 (symbol_alias_set_destroy): Export.
13285 (propagate_aliases_forward, propagate_aliases_backward): New functions
13287 (compute_visible_aliases): ... this one; remove.
13288 (trivially_visible_alias): New
13289 (trivially_defined_alias): New.
13290 (remove_unreachable_alias_pairs): Rewrite.
13291 (finish_aliases_1): Reorganize code checking if alias is defined.
13292 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13295 2011-01-11 Richard Guenther <rguenther@suse.de>
13297 PR tree-optimization/46076
13298 * tree-ssa.c (useless_type_conversion_p): Conversions from
13299 unprototyped to empty argument list function types are useless.
13301 2011-01-11 Richard Guenther <rguenther@suse.de>
13303 PR middle-end/45235
13304 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13305 volatile MEMs as MEM_READONLY_P.
13307 2011-01-11 Richard Guenther <rguenther@suse.de>
13309 PR tree-optimization/47239
13310 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13312 2011-01-11 Jeff Law <law@redhat.com>
13314 PR tree-optimization/47086
13315 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13316 IVs from statements that might throw.
13318 2011-01-10 Jan Hubicka <jh@suse.cz>
13321 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13323 2011-01-10 Jan Hubicka <jh@suse.cz>
13326 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13327 when correcting profile.
13329 2011-01-10 Jan Hubicka <jh@suse.cz>
13332 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13333 DECL_FINI_PRIORITY.
13334 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13335 Restore DECL_FINI_PRIORITY.
13337 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13339 * doc/gimple.texi: Fix quoting of multi-word return values in
13340 @deftypefn statements. Ensure presence of return value. Wrap
13341 overlong @deftypefn lines.
13342 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13343 descriptions of removed functions.
13344 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13345 of multi-word return value in @deftypefn statement.
13347 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13349 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13350 (Conditional Expressions, Logical Operators)
13351 (Statement and operand traversals): Do not indent smallexample
13352 code. Fix duplicate function argument in example.
13354 2011-01-10 Jeff Law <law@redhat.com>
13356 PR tree-optimization/47141
13357 * ipa-split.c (split_function): Handle case where we are
13358 returning a value and the return block has a virtual operand phi.
13360 2011-01-10 Jan Hubicka <jh@suse.cz>
13362 PR tree-optimization/47234
13363 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13364 (pass_feedback_split_functions): Declare.
13365 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13367 * ipa-split.c (gate_split_functions): Update comments; disable
13368 split-functions for profile_arc_flag and branch_probabilities.
13369 (gate_feedback_split_functions): New function.
13370 (execute_feedback_split_functions): New function.
13371 (pass_feedback_split_functions): New global var.
13373 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13376 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13377 calling gimple_call_set_cannot_inline.
13379 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13381 * config/darwin-sections.def: Remove unused section.
13383 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13386 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13388 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13391 * c-parser.c (c_parser_declaration_or_fndef): Improved
13394 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13396 * config/i386/winnt.c (i386_pe_start_function): Make sure
13397 to switch back to function's section.
13399 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13403 * plugin.c: Move include of dlfcn.h from here...
13404 * system.h: ... to here.
13406 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13408 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13410 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13411 two extra empty pages in PDF output.
13413 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13416 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13417 for error recovery purposes behave as if it was not specified so
13418 that the default type is usd.
13420 2011-01-07 Jan Hubicka <jh@suse.cz>
13422 PR tree-optmization/46469
13423 * ipa.c (function_and_variable_visibility): Clear needed flags on
13424 nodes with external decls; handle weakrefs merging correctly.
13426 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13428 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13431 2011-01-07 Jan Hubicka <jh@suse.cz>
13433 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13434 and no longer claim that gold is required for linker plugin.
13435 * configure: Regenerate.
13436 * gcc.c (PLUGIN_COND): New macro.
13437 (LINK_COMMAND_SPEC): Use it.
13438 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13439 * config.in (HAVE_LTO_PLUGIN): New.
13440 * configure.ac (--with-lto-plugin): New parameter; autodetect
13443 2011-01-07 Jan Hubicka <jh@suse.cz>
13445 PR tree-optimization/46367
13446 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13447 when we can update original.
13448 (cgraph_mark_inline_edge): Sanity check.
13449 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13451 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13453 * config/spu/spu.h (ASM_COMMENT_START): Define.
13455 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13458 * gcc.c (%>S): New.
13459 (SWITCH_KEEP_FOR_GCC): Likewise.
13460 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13461 (do_spec_1): Handle "%>".
13463 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13465 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13468 * config/i386/i386.c (ix86_delegitimize_address): If
13469 simplify_gen_subreg fails, return orig_x.
13472 * value-prof.c (gimple_stringop_fixed_value): Handle
13473 lhs of the call properly.
13475 2011-01-07 Jan Hubicka <jh@suse.cz>
13478 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13480 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13482 * target.def (function_switched_text_sections): New hook.
13483 * doc/tm.texi: Regenerated.
13484 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13485 * final.c (default_function_switched_text_sections): New.
13486 (final_scan_insn): Call function_switched_text_sections when a
13487 mid-function section change occurs.
13488 * output.h (default_function_switched_text_sections): Declare.
13489 * config/darwin-protos.h (darwin_function_switched_text_sections):
13491 * config/darwin.c (darwin_function_switched_text_sections): New.
13492 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13494 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13496 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13497 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13498 the secondary code fragment when outputting for DWARF == 2.
13500 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13502 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13503 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13505 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13506 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13508 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13511 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13512 when it is not empty.
13514 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13517 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13518 (case ${target}): Add btver1.
13519 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13520 -march=native recognize btver1 processors.
13521 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13522 btver1 def_and_undef
13523 * config/i386/i386.c (struct processor_costs btver1_cost): New
13525 (m_BTVER1): New definition.
13526 (m_AMD_MULTIPLE): Includes m_BTVER1.
13527 (initial_ix86_tune_features): Add btver1 tune.
13528 (processor_target_table): Add btver1 entry.
13529 (static const char *const cpu_names): Add btver1 entry.
13530 (software_prefetching_beneficial_p): Add btver1.
13531 (ix86_option_override_internal): Add btver1 instruction sets.
13532 (ix86_issue_rate): Add btver1.
13533 (ix86_adjust_cost): Add btver1.
13534 * config/i386/i386.h (TARGET_BTVER1): New definition.
13535 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13536 (enum processor_type): Add PROCESSOR_BTVER1.
13537 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13539 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13542 * config/i386/i386.c (legitimize_tls_address)
13543 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13544 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13545 (tls_initial_exec_64_sun): New pattern.
13547 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13549 * doc/invoke.texi (Overall Options): Improve wording and markup
13550 of the description of -wrapper.
13552 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13554 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13555 rdynamic, threads): New Driver options.
13557 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13560 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13561 if coming from .tdata.
13562 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13564 2011-01-06 Jan Hubicka <jh@suse.cz>
13567 * collect2.c (main): Do not enable LTOmode when plugin is active.
13569 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13572 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13573 --version output if supported.
13574 * configure: Regenerate.
13576 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13578 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13581 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13584 * c-convert.c (convert): When converting a complex expression
13585 other than COMPLEX_EXPR to a different complex type, ensure
13586 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13587 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13588 when converting COMPLEX_TYPE.
13590 2011-01-06 Ira Rosen <irar@il.ibm.com>
13592 PR tree-optimization/47139
13593 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13594 only the last reduction value is used outside the loop. Update
13597 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13599 * config/rtems.opt: New.
13600 * config.gcc (*-*-rtems*): Use rtems.opt.
13602 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13604 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13605 processors do not support 3DNow instructions.
13607 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13609 * config/spu/spu.c (spu_option_override): Set parameter
13610 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13612 2011-01-05 Jan Hubicka <jh@suse.cz>
13614 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13615 at the command line.
13617 2011-01-05 Martin Jambor <mjambor@suse.cz>
13620 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13621 deltas on streamed outgoing edges.
13622 (output_node_opt_summary): Output info for outgoing edges only when
13623 the node is in new parameter set.
13624 (output_cgraph_opt_summary): New parameter set, passed to the two
13625 aforementioned functions. Update its forward declaration and its
13628 2011-01-05 Tom Tromey <tromey@redhat.com>
13630 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13631 operator to c_finish_omp_atomic.
13632 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13633 (build_unary_op): Update.
13634 (build_modify_expr): Update.
13635 (build_asm_expr): Update.
13637 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13639 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13640 newly inserted insns.
13641 (pad_bb): Likewise.
13642 (spu_emit_branch_hint): Likewise.
13643 (insert_hbrp_for_ilb_runout): Likewise.
13644 (spu_machine_dependent_reorg): Call df_finish_pass after
13645 schedule_insns returns.
13647 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13649 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13651 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13653 PR tree-optimization/47005
13654 * tree-sra.c (struct access): Add 'non_addressable' bit.
13655 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13656 (decide_one_param_reduction): Return 0 if the parameter is passed by
13657 reference and one of the accesses in the group is non_addressable.
13659 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13661 PR tree-optimization/47056
13662 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13663 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13664 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13666 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13668 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13669 initializer. Skip view conversions from aggregate types.
13671 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13674 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13676 2011-01-04 Philipp Thomas <pth@suse.de>
13678 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13681 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13683 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13684 on empty epilogue sequences.
13686 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13688 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13689 non-static): New Driver options.
13691 2011-01-04 Jie Zhang <jie@codesourcery.com>
13694 * gcc.c (default_compilers[]): Set combinable field to 0
13695 for all assembly languages.
13697 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13699 * config/mips/loongson3a.md: New file.
13700 * config/mips/mips.md: Include loongson3a.md.
13701 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13704 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13706 PR middle-end/47017
13707 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13708 instead of convert_memory_address_addr_space on the base expression.
13710 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13712 * config/spu/spu.c (spu_option_override): Update error text
13713 for bad -march= / -mtune= values.
13715 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13717 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13718 if branch-hint optimization will be performed.
13720 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13722 PR tree-optimization/47148
13723 * ipa-split.c (split_function): Convert arguments to
13724 DECL_ARG_TYPE if possible.
13726 PR tree-optimization/47155
13727 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13728 when computing uns.
13730 PR rtl-optimization/47157
13731 * combine.c (try_combine): If undobuf.other_insn becomes
13732 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13733 and set *new_direct_jump_p too.
13735 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13737 PR tree-optimization/47021
13738 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13740 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13742 * gcc.c (process_command): Update copyright notice dates.
13743 * gcov.c (print_version): Likewise.
13744 * gcov-dump.c (print_version): Likewise.
13745 * mips-tfile.c (main): Likewise.
13746 * mips-tdump.c (main): Likewise.
13748 2011-01-03 Martin Jambor <mjambor@suse.cz>
13750 PR tree-optimization/46801
13751 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13752 aggregate fields start at byte boundary instead of the bit-field flag.
13754 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13757 * gcc.c (main): Revert revision 168407.
13759 2011-01-03 Martin Jambor <mjambor@suse.cz>
13761 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13763 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13765 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13766 vector optab to expand vector/scalar shift, update gimple to vector.
13768 2011-01-03 Martin Jambor <mjambor@suse.cz>
13770 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13773 2011-01-03 Martin Jambor <mjambor@suse.cz>
13775 PR tree-optimization/46984
13776 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13778 (cgraph_create_indirect_edge): Fixed line length.
13779 (cgraph_indirect_call_info): Declare.
13780 (cgraph_make_edge_direct) Update declaration.
13781 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13782 (cgraph_create_indirect_edge): Use it.
13783 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13785 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13786 the new thunk_delta representation.
13787 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13789 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13790 (ipa_read_indirect_edge_info): Likewise.
13791 * lto-cgraph.c (output_edge_opt_summary): New function.
13792 (output_node_opt_summary): Call it on all outgoing edges.
13793 (input_edge_opt_summary): New function.
13794 (input_node_opt_summary): Call it on all outgoing edges.
13796 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13799 * gcc.c (main): Don't check have_o when settting combine_inputs.
13801 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13803 * regrename.c: Add general comment describing the pass.
13804 (struct du_head): Remove 'length' field.
13805 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13806 (regrename_optimize): Do not sort chains. Rework comments, add others.
13807 Force renaming to the preferred class (if any) in the first pass and do
13808 not consider registers that belong to it in the second pass.
13809 (create_new_chain): Do not set 'length' field.
13810 (scan_rtx_reg): Likewise.
13812 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13814 PR tree-optimization/47140
13815 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13816 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13817 to bit_value_binop.
13819 PR rtl-optimization/47028
13820 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13821 parm_birth_insn instead of at the beginning of first bb.
13823 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13825 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13826 Remove the word "see" before "@pxref".
13827 * doc/rtl.texi: Remove the word "see" before "@pxref".
13829 2011-01-01 Jan Hubicka <jh@suse.cz>
13831 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13834 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13837 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13840 Copyright (C) 2011 Free Software Foundation, Inc.
13842 Copying and distribution of this file, with or without modification,
13843 are permitted in any medium without royalty provided the copyright
13844 notice and this notice are preserved.