1 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
4 (const_pow2_1_to_8_operand): Ditto.
5 (const_pow2_1_to_128_operand): Ditto.
6 (const_pow2_1_to_32768_operand): Ditto.
7 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
8 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
9 in insn constraint to check integer value of operand 3.
10 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
12 (PINSR_MODE): New mode iterator.
13 (sse2p4_1): New mode attribute.
14 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
15 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16 iterator. Use const_int_operand instead of
17 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
18 exact_log2 in insn constraint to check integer value of operand 3.
20 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
22 * config/i386/sse.md (blendbits): Remove mode attribute.
23 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
24 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
25 Check integer value of operand 3 in insn constraint.
27 2011-05-09 Richard Guenther <rguenther@suse.de>
29 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
31 (lto_symtab_merge): Likewise. Do not register types here.
32 (lto_symtab_merge_decls_2): Likewise.
33 (lto_symtab_merge_decls_1): Likewise.
34 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
35 * gimple.c (enum gtc_mode): Declare.
36 (gimple_types_compatible_p): Make static.
38 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
41 temporary register to match Pmode.
43 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
45 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
46 and *vec_concatv4si_1_avx.
48 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
50 PR rtl-optimization/48927
51 * ira-conflicts.c (commutative_constraint_p): Use
52 recog_data.alternative_enabled_p to disable alternatives where
53 "enabled" attribute is false.
55 * ira-lives.c (single_reg_class): Ditto.
56 (ira_implicitly_set_insn_hard_regs): Ditto.
58 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
60 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
61 (dataflow_set_preserve_mem_locs): Likewise.
63 2011-05-09 Philipp Thomas <pth@suse.de>
65 * config/mep/mep.c (mep_validate_vliw): Syntax description
66 should not be translated.
68 2011-05-09 Joseph Myers <joseph@codesourcery.com>
70 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
71 * config/mips/mips-tables.opt: New file (generated).
72 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
73 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
74 MIPS_ARCH_OPTION_NATIVE): Define.
75 * config/mips/mips.c (mips_cpu_info_table): Move contents to
77 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
78 mips_parse_cpu): Remove.
79 (mips_cpu_info_from_opt, mips_default_arch): New.
80 (mips_handle_option): Don't assert that global structures are in
81 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
82 (mips_option_override): Use new variables and functions to set
83 state of these options. Use strcmp to check for individual CPU names.
84 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
86 * config/mips/mips.opt (march=): Use ToLower and Enum.
87 (mips): Use ToLower, Enum and Var.
88 (mtune=): Use ToLower and Enum.
89 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
91 2011-05-08 Jan Hubicka <jh@suse.cz>
93 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
94 Arrange type pairs to be UID ordered.
95 (gimple_lookup_type_leader): Make inline.
97 2011-05-09 Nick Clifton <nickc@redhat.com>
100 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
104 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
107 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
109 * combine.c (simplify_comparison): Abstract out parts into...
110 (simplify_compare_const): ... new function.
111 (try_combine): Generalize parallel arithmetic/compare combining
112 to call simplify_compare_const() and CANONICALIZE_COMPARE().
114 2011-05-08 Jan Hubicka <jh@suse.cz>
116 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
117 (cgraph_create_virtual_clone): Call hooks once virtual clone
119 * cgraph.h (cgraph_clone_node): Update prototype.
120 * ipa-cp.c (ipcp_estimate_growth): Use
121 estimate_ipcp_clone_size_and_time.
122 * ipa-inline-transform.c (clone_inlined_nodes): Update.
123 * lto-cgraph.c (input_node): Update.
124 * ipa-inline.c (recursive_inlining): Update.
125 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
126 (evaluate_conditions_for_known_args): Break out from ...
127 (evaluate_conditions_for_edge): ... here.
128 (evaluate_conditions_for_ipcp_clone): New function.
129 (inline_node_duplication_hook): Update clone summary based
131 (estimate_callee_size_and_time): Rename to ...
132 (estimate_node_size_and_time): take NODE instead of EDGE;
133 take POSSIBLE_TRUTHS as argument.
134 (estimate_callee_size_and_time): Update.
135 (estimate_ipcp_clone_size_and_time): New function.
136 (do_estimate_edge_time): Update.
138 2011-05-08 Richard Guenther <rguenther@suse.de>
142 * expmed.c (expand_shift_1): Compute adjusted constant shift
145 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
147 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
149 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
151 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
153 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
155 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
157 2011-05-07 Jan Hubicka <jh@suse.cz>
159 * ipa-inline-transform.c (inline_call): Account when program size
161 * ipa-inline.c (relative_time_benefit): New function.
162 (edge_badness): Reorganize to be power 2 based; fix thinko when
163 computing badness for negative growth; update comments to match
164 reality; better dumps.
166 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
168 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
169 type to bool and adjust comment.
170 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
171 (fold_mathfn_compare): Remove calls to global_bindings_p.
172 (fold_inf_compare): Likewise.
173 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
174 * c-tree.h (global_bindings_p): Adjust prototype.
175 * c-decl.c (global_bindings_p): Return bool and simplify.
177 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
179 PR tree-optimization/48837
180 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
181 when accumulator transformation is performed.
183 2011-05-06 Jan Hubicka <jh@suse.cz>
185 * i386.h (ix86_tune_indices): Add
186 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
187 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
188 * i386.c (initial_ix86_tune_features): Add
189 X86_SOFTARE_PREFETCHING_BENEFICIAL.
190 (software_prefetching_beneficial_p): Remove predicate.
191 (ix86_option_override_internal): Use new macro.
193 2011-05-06 Jan Hubicka <jh@suse.cz>
195 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
197 2011-05-06 Jan Hubicka <jh@suse.cz>
199 * cgraph.c (cgraph_add_thunk): Create real function node instead
200 of alias node; finalize it and mark needed/reachale; arrange visibility
201 to be right and add it into the corresponding same comdat group list.
202 (dump_cgraph_node): Dump thunks.
203 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
204 cgraph_function_with_gimple_body_p,
205 cgraph_first_function_with_gimple_body,
206 cgraph_next_function_with_gimple_body): New functions.
207 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
209 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
210 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
211 * cgraphunit.c (cgraph_finalize_function): Only look into possible
212 devirtualization when optimizing.
213 (verify_cgraph_node): Verify thunks.
214 (cgraph_analyze_function): Analyze thunks.
215 (cgraph_mark_functions_to_output): Output thunks only in combination
216 with function they are assigned to.
217 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
218 alias into normal node.
219 (assemble_thunks): New functoin.
220 (cgraph_expand_function): Use it.
221 * lto-cgraph.c (lto_output_node): Stream thunks.
222 (input_overwrite_node): Stream in thunks.
223 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
224 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
225 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
226 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
227 (inline_analyze_function): Do not care about thunk jump functions.
228 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
229 * ipa-prop.c (ipa_prop_write_jump_functions): Use
230 cgraph_function_with_gimple_body_p.
231 * passes.c (do_per_function_toporder): Use
232 cgraph_function_with_gimple_body_p.
233 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
234 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
235 (function_called_by_processed_nodes_p): Likewise.
237 2011-05-06 Joseph Myers <joseph@codesourcery.com>
239 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
240 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
242 (mabi=): Replace with separate entries for mabi=altivec,
243 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
244 mabi=ieeelongdouble and mabi=ibmlongdouble.
245 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
246 check for -mabi=spe without SPE ABI support here.
247 (rs6000_handle_option): Replace OPT_mabi_ handling with
248 OPT_mabi_altivec and OPT_mabi_spe handling.
250 2011-05-06 Cary Coutant <ccoutant@google.com>
252 * dwarf2out.c (contains_subprogram_definition): New function.
253 (should_move_die_to_comdat): Call it.
255 2011-05-06 Jeff Law <law@redhat.com>
257 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
258 remove_ctrl_stmt_and_useless_edges.
259 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
260 (fixup_template_block, thread_single_edge): Likewise.
261 (mark_threaded_blocks): Use THREAD_TARGET.
263 2011-05-06 Alan Modra <amodra@gmail.com>
266 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
267 const0_rtx as the arg to the dummy __tls_get_addr libcall.
269 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
271 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
272 constraint modifier to "r".
274 2011-05-06 Joseph Myers <joseph@codesourcery.com>
276 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
277 fall through for OPT_mcmodel_.
279 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
281 * config/s390/s390.c (s390_asm_trampoline_template): Comment
283 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
285 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
288 * config/arm/arm.opt (marm): Document it.
289 (mthumb): Reject negative variant.
291 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
294 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
295 Fix typo in "ccvt" variable name.
297 2011-05-06 Tristan Gingold <gingold@adacore.com>
300 * config/vms/vms-ar.c (main): Remove cwd variable.
302 2011-05-06 Jakub Jelinek <jakub@redhat.com>
305 * var-tracking.c (prepare_call_arguments): Move else before #endif.
307 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
309 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
310 * gimplify.c (gimplify_switch_expr): Likewise.
311 * omp-low.c (expand_omp_sections): Likewise.
312 * tree-eh.c (lower_try_finally_switch): Likewise.
313 (lower_eh_dispatch): Likewise.
314 * tree.h (build_case_label): Declare.
315 * tree.c (build_case_label): Define.
317 2011-05-05 Jason Merrill <jason@redhat.com>
320 * tree-inline.c (copy_tree_r): Use copy_statement_list.
321 (copy_statement_list): Don't recurse.
322 * stor-layout.c (copy_self_referential_tree_r): Don't allow
325 2011-05-05 Joseph Myers <joseph@codesourcery.com>
327 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
328 through from -mfpu= handling.
329 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
331 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
333 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
336 2011-05-05 Steve Ellcey <sje@cup.hp.com>
338 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
340 (hppa[12]*-*-hpux11*): Ditto.
341 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
342 * config/ia64/hpux-unix2003.h: New.
343 * config/pa/pa-hpux1131.opt: New.
344 * config/pa/pa-hpux1131.h: New.
345 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
346 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
347 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
349 2011-05-05 Jakub Jelinek <jakub@redhat.com>
352 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
353 instead of mode as 3rd argument to recursive call.
354 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
355 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
357 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
358 don't give up if mode is Pmode and mem_mode is not VOIDmode.
359 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
360 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
362 2011-05-05 Julian Brown <julian@codesourcery.com>
364 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
365 parenthesis in D-register case.
367 2011-05-05 Joseph Myers <joseph@codesourcery.com>
369 * opt-functions.awk (var_type_struct): Handle Enum options.
370 * optc-gen.awk: Don't check range of variables of character type.
371 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
372 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
373 rs6000_sdata_name, rs6000_explicit_options): Remove.
374 (rs6000_option_override_internal): Check for -malign-power here.
375 Use global_options_set instead of rs6000_explicit_options.
376 (rs6000_parse_fpu_option): Remove.
377 (rs6000_handle_option): Access variables via opts and opts_set
378 pointers. Use error_at and warning_at. Add fall-through
379 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
380 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
381 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
382 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
383 here. Don't use rs6000_parse_fpu_option.
384 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
385 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
386 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
388 (mspe): Use Var and Save.
389 (mtraceback=): Use Enum and Var.
390 (rs6000_traceback_type): New Enum and EnumValue entries.
391 (mfloat-gprs=): Use Enum, Var and Save.
392 (rs6000_float_gprs): New Enum and EnumValue entries.
393 (mlong-double-): use Var and Save.
394 (msched-costly-dep=, minsert-sched-nops=): Use Var.
395 (malign-): Use Enum and Var.
396 (rs6000_alignment_flags): New Enum and EnumValue entries.
398 (fpu_type_t): New Enum and EnumValue entries.
399 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
400 global_options_set instead of rs6000_explicit_options.
401 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
402 global_options_set instead of rs6000_explicit_options.
403 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
404 global_options_set instead of rs6000_explicit_options.
405 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
406 global_options_set instead of rs6000_explicit_options.
407 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
408 global_options_set instead of rs6000_explicit_options.
409 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
410 global_options_set instead of rs6000_explicit_options.
411 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
413 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
414 global_options_set instead of rs6000_explicit_options.
415 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
416 (rs6000_cmodel): New Enum and EnumValue entries.
417 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
418 global_options_set instead of rs6000_explicit_options.
419 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
420 (mtls-size=): Use Enum and Var.
421 (rs6000_tls_size): New Enum and EnumValue entries.
423 2011-05-05 Michael Matz <matz@suse.de>
425 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
426 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
427 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
428 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
429 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
430 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
431 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
432 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
433 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
434 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
435 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
436 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
437 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
438 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
439 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
440 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
442 2011-05-05 Richard Guenther <rguenther@suse.de>
444 * expmed.c (expand_variable_shift): Rename to ...
445 (expand_shift_1): ... this. Take an expanded shift amount.
446 For rotates recurse directly not building trees for the shift amount.
447 (expand_variable_shift): Wrap around expand_shift_1.
448 (expand_shift): Adjust.
450 2011-05-05 Jakub Jelinek <jakub@redhat.com>
452 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
454 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
456 * tree.h (get_pending_sizes): Remove prototype.
457 (put_pending_size): Likewise.
458 (put_pending_sizes): Likewise.
459 * stor-layout.c (pending_sizes): Delete.
460 (get_pending_sizes): Likewise.
461 (put_pending_size): Likewise.
462 (put_pending_sizes): Likewise.
463 (variable_size): Do not call put_pending_size and tidy up.
464 * function.h (struct function): Remove dont_save_pending_sizes_p.
465 * lto-streamer-in.c (input_function): Do not stream it.
466 * lto-streamer-out.c (output_function): Likewise.
467 * tree-inline.c (initialize_cfun): Do not copy it.
468 * c-decl.c (store_parm_decls): Do not set it.
469 * omp-low.c (create_task_copyfn): Likewise.
470 * tree-optimize.c (tree_rest_of_compilation): Likewise.
472 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
474 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
476 (*movdf_internal): Ditto.
477 (*movdf_internal_nointeger): Ditto.
478 (*movsf_internal): Ditto.
480 2011-05-05 Joseph Myers <joseph@codesourcery.com>
482 * c-decl.c (finish_decl): Don't call get_pending_sizes.
483 (grokparm): Add parameter expr. Pass it to grokdeclarator.
484 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
485 (c_variable_size): Remove.
486 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
487 call put_pending_sizes.
488 (get_parm_info): Add parameter expr. Use it to set
489 arg_info->pending_sizes.
490 (store_parm_decls): Use arg_info->pending_sizes instead or calling
492 * c-parser.c (c_parser_parms_declarator): Update call to
493 c_parser_parms_list_declarator.
494 (c_parser_parms_list_declarator): Take parameter expr. Update
495 call to push_parm_decl. Update recursive call. Don't call
496 get_pending_sizes. Update calls to get_parm_info.
497 (c_parser_objc_method_definition): Update calls to
498 c_parser_objc_method_decl and objc_start_method_definition.
499 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
500 (c_parser_objc_method_decl): Add parameter expr. Update call to
502 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
503 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
504 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
506 2011-05-05 Michael Hope <michael.hope@linaro.org>
509 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
512 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
514 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
515 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
516 (spu_output_mi_thunk): New function.
518 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
520 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
521 targetm.asm_out.print_operand.
522 * config/sol2.c: Include target.h.
524 2011-05-04 Jan Hubicka <jh@suse.cz>
526 * ipa-inline.c (reset_edge_caches): New function.
527 (update_caller_keys): Add check_inlinablity_for; do not
528 reset edge caches; remove now unnecesary loop.
529 (update_callee_keys): Add comments; reset node_growth_cache of callee.
530 (update_all_callee_keys): Likewise.
531 (inline_small_functions): Sanity check cache; update code
534 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
536 PR rtl-optimization/47612
537 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
538 as the last insn of the sequence to be moved.
540 2011-05-04 Tobias Burnus <burnus@net-b.de>
543 * doc/invoke.texi (Ofast): Document that it
544 enables Fortran's -fno-protect-parens.
546 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
548 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
550 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
552 * stor-layout.c (variable_size): Do not issue errors.
554 2011-05-04 Richard Guenther <rguenther@suse.de>
556 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
557 for array-ref indices.
558 (tree_coverage_counter_addr): Likewise.
559 (build_fn_info_type): Use size_int for index types.
560 (build_gcov_info): Likewise.
562 2011-05-04 Richard Guenther <rguenther@suse.de>
564 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
566 * c-typeck.c (really_start_incremental_init): Use bitsize_int
567 for constructor indices.
568 (push_init_level): Likewise.
570 2011-05-04 Richard Guenther <rguenther@suse.de>
572 * explow.c (promote_mode): Move variable declarations before code.
574 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
576 * tree.h (build_function_type_array): Declare.
577 (build_varargs_function_type_array): Declare.
578 (build_function_type_vec, build_varargs_function_type_vec): Define.
579 * tree.c (build_function_type_array_1): New function.
580 (build_function_type_array): New function.
581 (build_varargs_function_type_array): New function.
583 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
585 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
586 before setting STMT_VINFO_TYPE.
588 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
590 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
591 instead of spu_pass_by_reference.
593 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
595 * calls.c (emit_library_call_value_1): Invoke
596 promote_function_mode hook on libcall arguments.
597 * explow.c (promote_function_mode, promote_mode): Handle TYPE
599 * targhooks.c (default_promote_function_mode): Lisewise.
600 * config/s390/s390.c (s390_promote_function_mode): Likewise.
601 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
603 * doc/tm.texi: Document that TYPE argument might be NULL.
605 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
607 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
609 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
612 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
614 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
616 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
617 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
619 * mips-tfile.c: ... here.
620 Don't include coretypes.h, tm.h, filenames.h.
621 (saber_stop): Remove definition and all calls.
623 (__LINE__): Remove default.
624 (Size_t, Ptrdiff_t): Remove definitions.
625 Replace by size_t, ptrdiff_t.
626 [!MIPS_DEBUGGING_INFO]: Remove.
627 (SHASH_SIZE, THASH_SIZE): Remove defaults.
628 (progname): Add const.
630 Replace all uses by static.
631 (ALIGN_SYMTABLE_OFFSET): Remove default.
632 * mips-tdump.c: Don't include coretypes.h, tm.h.
633 Remove !MIPS_IS_STAB guard.
634 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
635 $(TM_H), filenames.h dependencies.
636 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
638 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
641 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
642 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
644 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
647 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
648 account and save/restore RETS.
649 (PROFILE_BEFORE_PROLOGUE): Define.
650 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
651 the push insn to use predecrement.
653 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
656 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
658 2011-05-04 Nick Clifton <nickc@redhat.com>
660 * config/mn10300/mn10300.c: Include cfgloop.h.
662 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
663 Lcc or a FLcc insn into the instruction stream.
664 (mn10300_block_contains_call): New function. Returns true if the
665 given basic block contains a CALL insn.
666 (mn10300_loop_contains_call_insn): New function. Returns true if
667 the given loop contains a CALL insn.
668 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
669 to use the SETLB and Lcc or FLcc insns.
670 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
671 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
672 * config/mn10300/mn10300.opt (msetlb): New option. Used to
673 disable the SETLB optimization.
674 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
675 __SETLB__ or __NO_SETLB__.
676 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
677 (movsf_internal): Handle MDR register.
678 (cmpsi): Make visible.
679 (setlb): New pattern.
683 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
686 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
688 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
689 (vec_concatv2di_rex64_sse): Ditto.
690 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
691 (*vec_extractv2di_1_rex64): Ditto.
694 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
696 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
698 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
700 2011-05-04 Richard Guenther <rguenther@suse.de>
702 * tree.h (int_const_binop): Remove notrunc argument.
703 * fold-const.c (int_const_binop): Remove notrunc argument. Always
704 create integer constants that are properly truncated.
705 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
706 (const_binop): Remove zero notrunc argument to int_const_binop.
707 (size_binop_loc): Likewise.
708 (fold_div_compare): Likewise.
709 (maybe_canonicalize_comparison_1): Likewise.
710 (fold_comparison): Likewise.
711 (fold_binary_loc): Likewise.
712 (multiple_of_p): Likewise.
713 * expr.c (store_constructor): Likewise.
714 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
715 (maybe_fold_stmt_addition): Likewise.
716 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
717 * stor-layout.c (layout_type): Likewise.
718 * tree-data-ref.c (tree_fold_divides_p): Likewise.
719 * tree-sra.c (build_ref_for_offset): Likewise.
720 (build_user_friendly_ref_for_offset): Likewise.
721 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
722 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
723 * tree-ssa-loop-niter.c (inverse): Likewise.
724 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
725 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
726 * tree-switch-conversion.c (check_range): Likewise.
727 (build_constructors): Likewise.
728 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
729 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
730 (extract_range_from_assert): Likewise.
731 (vrp_int_const_binop): Likewise.
732 (extract_range_from_binary_expr): Likewise.
733 (extract_range_from_unary_expr): Likewise.
734 (check_array_ref): Likewise.
735 (find_case_label_range): Likewise.
736 (simplify_div_or_mod_using_ranges): Likewise.
737 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
738 comparing case labels for merging.
740 2011-05-03 Mark Wielaard <mjw@redhat.com>
742 * dwarf2out.c (debug_str_hash_forced): Removed.
743 (gen_label_for_indirect_string): Removed.
744 (get_debug_string_label): Removed.
745 (AT_string_form): Generate label directly.
746 (output_indirect_string): Test indirect_string_node for
747 DW_FORM_strp instead of checking label and refcount.
748 (prune_indirect_string): Removed.
749 (prune_unused_types): Don't check debug_str_hash_forced or
750 call prune_indirect_string.
752 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
755 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
757 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
761 * combine.c (try_combine): Skip debug insns at m_split tests.
763 2011-04-26 Mark Wielaard <mjw@redhat.com>
766 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
767 when info_section_emitted.
769 2011-05-03 Joseph Myers <joseph@codesourcery.com>
771 * config/mips/mips-opts.h: New.
772 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
774 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
775 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
776 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
778 * config/mips/mips.h (enum mips_code_readable_setting): Move to
780 (mips_abi, mips_code_readable): Don't declare.
781 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
782 (mabi=): Use Enum and Var.
783 (mips_abi): New Enum and EnumValue entries.
784 (mcode-readable=): Use Enum and Var.
785 (mips_code_readable_setting): New Enum and EnumValue entries.
786 (mr10k-cache-barrier=): Use Enum and Var.
787 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
789 2011-05-03 Jan Hubicka <jh@suse.cz>
791 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
792 replace hash by pointer map.
793 (cgraph_node_set_element_def, cgraph_node_set_element,
794 const_cgraph_node_set_element, varpool_node_set_element_def,
795 varpool_node_set_element, const_varpool_node_set_element): Remove.
796 (free_cgraph_node_set, free_varpool_node_set): New function.
797 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
798 * tree-emutls.c: Free varpool node set.
799 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
800 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
801 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
802 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
803 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
804 Move here from ipa.c; implement using pointer_map
805 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
806 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
807 debug_cgraph_node_set, varpool_node_set_new,
808 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
809 dump_varpool_node_set, debug_varpool_node_set):
811 * passes.c (ipa_write_summaries): Update.
813 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
816 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
817 bf542/bf544/bf547/bf548/bf549.
819 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
821 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
823 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
826 * config/bfin/bfin.md (MOVCC): New mode_macro.
827 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
828 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
829 comments from generated assembly.
831 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
834 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
835 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
836 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
837 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
838 * config/bfin/lib1funcs.asm (___muldi3): New function.
840 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
842 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
843 build_function_type_list instead of build_function_type.
844 Rearrange initialization of `args' to do so.
846 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
848 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
849 instead of build_function_type.
851 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
853 * config/rs6000/rs6000.c (spe_init_builtins): Call
854 build_function_type_list instead of build_function_type.
855 (paired_init_builtins, altivec_init_builtins): Likewise.
856 (builtin_function_type): Likewise.
858 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
860 * config/sh/sh.c (sh_media_init_builtins): Call
861 build_function_type_list instead of build_function_type.
863 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
865 * config/sparc/sparc.c (sparc_file_end): Call
866 build_function_type_list instead of build_function_type.
868 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
870 * config/alpha/alpha.c (alpha_init_builtins): Call
871 build_function_type_list instead of build_function_type.
873 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
875 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
876 build_function_type_list instead of build_function_type.
878 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
880 * config/iq2000/i2000.c (iq2000_init_builtins): Call
881 build_function_type_list instead of build_function_type.
882 Delete `endlink' variable.
884 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
886 * config/avr/avr.c (avr_init_builtins): Call
887 build_function_type_list instead of build_function_type.
889 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
891 * config/picochip/picochip.c (picochip_init_builtins): Call
892 build_function_type_list instead of build_function_type.
893 Delete `endlink' variable.
895 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
897 * config/bfin/bfin.c (bfin_init_builtins): Call
898 build_function_type_list instead of build_function_type.
900 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
903 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
904 that's not CONST_INT. Seemingly redundant check is due to PR39768.
906 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
909 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
910 libbffastfp overrides libgcc when -mfast-fp.
912 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
914 Originally from Bernd Schmidt
915 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
916 * config/bfin/bfin.c (override_options): Test it and error if
919 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
921 Originally From Bernd Schmidt
922 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
925 2011-05-03 Jeff Law <law@redhat.com>
927 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
928 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
929 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
930 than accessing AUX field directly. Free the AUX field before
932 (thread_block, thread_through_loop_header): Likewise.
933 (thread_single_edge, mark_threaded_blocks): Likewise.
934 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
935 (register_jump_thread): Do not attempt to thread to a NULL edge.
937 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
939 * function.c (init_function_start): Call decide_function_section.
940 * varasm.c (decide_function_section): New function.
941 (assemble_start_function): When not using
942 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
943 or first_function_block_is_cold.
944 * rtl.h (decide_function_section): Declare.
946 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
947 Jakub Jelinek <jakub@redhat.com>
950 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
951 only succeed if req_mode is the same as set_mode.
953 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
955 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
956 * genemit.c (gen_exp): Handle RETURN.
957 * emit-rtl.c (verify_rtx_sharing): Likewise.
958 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
959 * rtl.c (copy_rtx): RETURN is shared.
960 * rtl.h (enum global_rtl_index): Add GR_RETURN.
962 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
963 * config/s390/s390.c (s390_emit_epilogue): Likewise.
964 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
965 * config/cris/cris.c (cris_expand_return): Likewise.
966 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
967 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
968 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
969 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
970 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
972 * config/v850/v850.c (expand_epilogue): Likewise.
973 * config/bfin/bfin.c (bfin_expand_call): Likewise.
974 * config/arm/arm.md (epilogue): Likewise.
975 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
976 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
979 2011-05-03 Richard Guenther <rguenther@suse.de>
982 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
983 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
984 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
986 2011-05-03 Richard Guenther <rguenther@suse.de>
988 * c-decl.c (grokdeclarator): Instead of looking at
989 TREE_OVERFLOW check if the constant fits in the index type.
991 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
993 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
994 (vec_store_lanes<mode><mode>): Likewise.
996 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
998 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
999 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1000 convert_optab_index values.
1001 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1002 * genopinit.c (optabs): Initialize the new optabs.
1003 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1004 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1005 (expand_STORE_LANES): New functions.
1006 * tree.h (build_array_type_nelts): Declare.
1007 * tree.c (build_array_type_nelts): New function.
1008 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1009 (vect_model_load_cost): Likewise.
1010 (vect_store_lanes_supported, vect_load_lanes_supported)
1011 (vect_record_strided_load_vectors): Declare.
1012 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1013 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1014 (vect_transform_strided_load): Split out statement recording into...
1015 (vect_record_strided_load_vectors): ...this new function.
1016 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1017 (write_vector_array, create_array_ref): New functions.
1018 (vect_model_store_cost): Add store_lanes_p argument.
1019 (vect_model_load_cost): Add load_lanes_p argument.
1020 (vectorizable_store): Try to use store-lanes functions for
1022 (vectorizable_load): Likewise load-lanes and loads.
1023 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1024 to vect_model_store_cost.
1025 (vect_build_slp_tree): Likewise vect_model_load_cost.
1027 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1029 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1030 * hooks.c (hook_bool_mode_uhwi_false): New function.
1031 * target.def (array_mode_supported_p): New hook.
1032 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1033 * doc/tm.texi: Regenerate.
1034 * stor-layout.c (mode_for_array): New function.
1035 (layout_type): Use it.
1036 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1037 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1039 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1042 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1043 for -fstack-check if the size to allocate is negative.
1045 2011-05-02 Lawrence Crowl <crowl@google.com>
1047 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1048 (timevar_cond_start): New for starting a timer only when it is not
1050 (timevar_cond_stop): New for stopping a timer when it was not already
1053 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1054 (timevar_cond_start): New as above.
1055 (timevar_cond_stop): New as above.
1057 * timevar.def: Add start/stop timers for compiler phases,
1058 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1059 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1060 and TV_PHASE_FINALIZE.
1061 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1062 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1063 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1064 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1065 Make unused TV_OVERLOAD into a start/stop timer.
1067 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1068 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1069 to indicate that they are start/stop timers.
1071 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1072 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1073 Move initialization to do_compile.
1074 (do_compile): Add initialization from above.
1075 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1077 * c-decl.c (c_write_global_declarations): Add start/stop of
1078 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1080 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1081 or TV_PARSE_INLINE, as appropriate.
1082 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1083 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1085 2011-05-02 Jason Merrill <jason@redhat.com>
1088 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1090 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1093 * c-decl.c (finish_decl): Only create a composite if the types are
1096 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1098 * config/fr30/fr30-protos.h (Mmode): Don't define.
1099 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1100 definition where used.
1101 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1102 define. Expand definitions where used.
1103 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1104 Expand definitions where used.
1105 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1106 rx_function_arg, rx_function_arg_advance,
1107 rx_function_arg_boundary): Expand definitions of those macros.
1108 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1109 definition where used.
1111 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1113 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1115 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1116 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1117 with *movv2sf_internal_rex64_avx.
1118 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1119 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1120 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1121 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1122 "vex" in "prefix" attribute calculation.
1123 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1125 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1128 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1129 inputs match the output.
1131 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1134 * config/m68k/m68k.c (m68k_expand_prologue): Set
1135 current_function_static_stack_size.
1137 2011-05-02 Jan Hubicka <jh@suse.cz>
1139 * lto-streamer.c (lto_streamer_cache_insert_1,
1140 lto_streamer_cache_lookup, lto_streamer_cache_create,
1141 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1142 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1144 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1146 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1147 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1148 config/m68k/t-opts: New files.
1149 * config/m68k/m68k-tables.opt: New file (generated).
1150 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1151 extra_options and m68k/t-opts to tmake_file.
1152 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1153 (all_isas): Initialize using m68k-isas.def.
1154 (all_microarchs): Initialize using m68k-microarchs.def.
1155 (m68k_find_selection): Remove.
1156 (m68k_handle_option): Don't assert that global structures are in
1157 use. Use error_at. Access variables via opts pointer. Don't
1158 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1159 directly for -m68020-40 and -m68020-60.
1160 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1161 m68k_tune_entry here.
1162 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1164 (m68k_library_id_string): Remove declaration.
1165 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1166 (m68k_library_id_string): New Variable.
1167 (march=, mcpu=, mtune=): Use Enum and Var.
1169 2011-05-02 Richard Guenther <rguenther@suse.de>
1171 * varasm.c (output_constructor_regular_field): Compute zero-based
1172 index with double-ints. Make sure to ICE instead of producing
1174 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1175 in asserts. Properly use a signed type.
1177 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1179 * config/i386/sse.md (V): New mode iterator.
1180 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1182 (V_256): Rename from AVX256MODE.
1183 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1184 condition to all users.
1186 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1187 condition to all users.
1188 (VF_128): Make V4SF mode unconditional.
1189 (VF_256): Rename from AVX256MODEF2P.
1190 (VI4F_128): Rename from SSEMODE4S.
1191 (VI8F_128): Rename from SSEMODE2D.
1192 (VI4F_256): Rename from AVX256MODE8P.
1193 (VI8F_256): Rename from AVX256MODE4P.
1194 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1195 (ssescalarmodesuffix): Remove SF and DF modes.
1196 (SSEMODE124): Remove.
1197 (SSEMODE1248): Ditto.
1198 (SSEMODEF2P): Ditto.
1199 (AVXMODEF2P): Ditto.
1200 (AVXMODEFDP): Ditto.
1201 (AVXMODEFSP): Ditto.
1202 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1204 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1206 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1207 xop_pcmov_<mode>256. Use V mode iterator.
1209 Adjust RTX patterns globally for renamed mode attributes.
1211 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1213 * haifa-sched.c (sched_emit_insn): Emit insn before first
1214 non-scheduled insn. Inform back-end about new insn. Add
1215 new insn to scheduled_insns list.
1217 2011-05-02 Richard Guenther <rguenther@suse.de>
1219 PR tree-optimization/48822
1220 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1221 (process_scc): Indicate which iteration we start.
1223 2011-05-02 Jan Hubicka <jh@suse.cz>
1225 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1226 (lto_section_overrun): New.
1227 * lto-section-out.c (append_block): Rename to ...
1228 (lto_append_block): ... this one; export.
1229 (lto_output_1_stream): Move lto lto-streamer.h
1230 (lto_output_data_stream): Update.
1231 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1232 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1235 2011-05-02 Richard Guenther <rguenther@suse.de>
1237 * tree.c (tree_code_counts): New global array.
1238 (record_node_allocation_statistics): Count individual tree codes.
1239 (dump_tree_statistics): Dump individual code stats.
1241 2011-05-01 Jan Hubicka <jh@suse.cz>
1243 * ipa-inline.c (caller_growth_limits): Fix thinko when
1244 looking for largest stack frame.
1245 * ipa-inline.h (dump_inline_summary): Declare.
1246 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1248 (dump_inline_summary): Export.
1249 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1251 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1253 * reginfo.c (memory_move_cost): Change rclass argument type form
1254 'enum reg_class' to reg_class_t.
1255 * reload.h (memory_move_cost): Update prototype.
1256 * postreload.c reload_cse_simplify_set): Change type dclass var to
1258 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1260 (ira_allocate_and_set_costs): Change aclass argument type form
1261 'enum reg_class' to reg_class_t.
1262 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1263 Change aclass argument type to reg_class_t.
1264 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1266 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1267 memory_move_cost call.
1269 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1270 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1271 Change type tmp var to reg_class_t.
1273 2011-04-30 Jan Hubicka <jh@suse.cz>
1275 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1276 inlining into function with flatten attribute.
1277 (want_inline_small_function_p): Be more realistic about inlining
1278 cold calls where callee size grows.
1280 2011-04-30 Jan Hubicka <jh@suse.cz>
1282 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1285 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1287 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1288 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1289 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1290 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1291 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1292 (print_operand): Rename to...
1293 (sparc_print_operand): ...this. Make static. Adjust
1294 sparc_print_operand function call.
1295 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1298 2011-04-30 Jan Hubicka <jh@suse.cz>
1301 * ipa-inline.c (early_inliner): Disable when doing late
1302 addition of function.
1304 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1306 * dwarf2out.c (get_address_mode): New inline.
1307 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1308 if not dwarf_strict emit
1309 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1310 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1311 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1312 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1313 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1314 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1315 mem_loc_descriptor callers.
1316 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1317 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1318 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1319 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1320 (base_types): New variable.
1321 (get_base_type_offset, calc_base_type_die_sizes,
1322 base_type_for_mode, mark_base_types, base_type_cmp,
1323 move_marked_base_types): New functions.
1324 (calc_die_sizes): Assert that die_offset is 0 or equal to
1326 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1327 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1328 callers. If not dwarf_strict, call mem_loc_descriptor even for
1329 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1330 (gen_subprogram_die): Don't give up on call site parameters
1331 with non-integral or large integral modes. Adjust
1332 mem_loc_descriptor callers.
1333 (prune_unused_types): Call prune_unused_types_mark on base_types
1335 (resolve_addr): Call mark_base_types.
1336 (dwarf2out_finish): Call move_marked_base_types.
1338 PR tree-optimization/48809
1339 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1341 (gen_inbound_check): Don't compute index_expr - range_min in utype
1342 again, instead reuse SSA_NAME initialized in build_arrays.
1343 Remove two useless gsi_for_stmt calls.
1345 2011-04-29 Jeff Law <law@redhat.com>
1347 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1349 2011-04-29 Martin Jambor <mjambor@suse.cz>
1351 * cgraph.h (cgraph_postorder): Remove declaration.
1352 * ipa-utils.h (ipa_free_postorder_info): Declare.
1353 (ipa_reverse_postorder): Likewise.
1354 * cgraphunit.c: Include ipa-utils.h.
1355 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1356 * ipa-inline.c: Include ipa-utils.h.
1357 (ipa_inline): Update call to ipa_reverse_postorder.
1358 * ipa-pure-const.c (propagate_pure_const): Update call to
1359 ipa_reduced_postorder and ipa_print_order. Call
1360 ipa_free_postorder_info to clean up.
1361 (propagate_nothrow): Likewise.
1362 * ipa-reference.c (propagate): Removed a useless call to
1363 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1364 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1365 * ipa.c: Include ipa-utils.h.
1366 (ipa_profile): Update call to ipa_reverse_postorder.
1367 (cgraph_postorder): Moved to...
1368 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1369 (ipa_utils_print_order): Renamed to ipa_print_order.
1370 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1372 (ipa_free_postorder_info): New function.
1373 * passes.c: Include ipa-utils.h.
1374 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1375 (ipa_write_summaries): Likewise.
1376 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1377 (cgraphunit.o): Likewise.
1379 (ipa-inline.o): Likewise.
1381 2011-04-29 Jan Hubicka <jh@suse.cz>
1383 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1384 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1385 * ipa-inline.h (clause_t): Turn into unsigned int.
1386 * ipa-inline-analysis.c (add_clause): Do more simplification.
1387 (and_predicates): Shortcut more cases.
1388 (predicates_equal_p): Move forward; check that clauses are properly
1390 (or_predicates): Shortcut more cases.
1391 (edge_execution_predicate): Rewrite as...
1392 (set_cond_stmt_execution_predicate): ... this function; handle
1393 __builtin_constant_p.
1394 (set_switch_stmt_execution_predicate): New .
1395 (compute_bb_predicates): New.
1396 (will_be_nonconstant_predicate): Update TODO.
1397 (estimate_function_body_sizes): Use compute_bb_predicates
1398 and free them later, always try to estimate if stmt is constant.
1399 (estimate_time_after_inlining, estimate_size_after_inlining):
1400 Gracefully handle optimized out edges.
1401 (read_predicate): Fix off by one error.
1403 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1405 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1407 2011-04-27 Xinliang David Li <davidxl@google.com>
1409 * tree-profile.c (init_ic_make_global_vars): Set
1410 tls attribute on ic vars.
1411 * coverage.c (coverage_end_function): Initialize
1412 function_list with zero.
1414 2011-04-29 Richard Guenther <rguenther@suse.de>
1416 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1417 for the type of the result.
1418 (fold_builtin_isascii): Likewise.
1419 (fold_builtin_toascii): Use integer_type_node where appropriate.
1420 (fold_builtin_logb): Likewise.
1421 (fold_builtin_frexp): Likewise.
1422 (fold_builtin_strstr): Likewise.
1423 (fold_builtin_strpbrk): Likewise.
1424 (fold_builtin_fputs): Likewise.
1425 (fold_builtin_sprintf): Likewise.
1426 (fold_builtin_snprintf): Likewise.
1427 (fold_builtin_printf): Likewise.
1428 (do_mpfr_remquo): Use a proper type for the assigned constant.
1429 (do_mpfr_lgamma_r): Likewise.
1430 * dwarf2out.c (resolve_one_addr): Use size_int.
1431 * except.c (init_eh): Likewise.
1432 (assign_filter_values): Use integer_type_node for filter values.
1433 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1435 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1436 for EH region numbers.
1437 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1438 for the shift amount.
1440 2011-04-29 Richard Guenther <rguenther@suse.de>
1442 * expr.h (expand_shift): Rename to ...
1443 (expand_variable_shift): ... this.
1444 (expand_shift): Take a constant shift amount.
1445 * expmed.c (expand_shift): Rename to ...
1446 (expand_variable_shift): ... this.
1447 (expand_shift): New wrapper around expand_variable_shift.
1448 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1449 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1450 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1451 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1452 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1453 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1454 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1455 emit_store_flag_1, emit_store_flag): Likewise.
1456 * builtins.c (expand_builtin_signbit): Likewise.
1457 * calls.c (load_register_parameters): Likewise.
1458 * function.c (assign_parm_setup_block): Likewise.
1459 * lower-subreg.c (resolve_shift_zext): Likewise.
1460 * optabs.c (widen_bswap, expand_abs_nojump,
1461 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1462 * spu/spu.c (spu_expand_extv): Likewise.
1463 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1465 2011-04-29 Richard Guenther <rguenther@suse.de>
1467 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1468 for the remapped region number.
1469 * predict.c (build_predict_expr): Use integer_type_node for the
1471 * fold-const.c (fold_binary_loc): Use integer_type_node for
1472 the shift amount. Use a proper type for the PLUS_EXPR operand.
1474 2011-04-29 Michael Matz <matz@suse.de>
1476 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1477 other trees that just builtins.
1478 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1480 2011-04-29 Richard Guenther <rguenther@suse.de>
1482 * tree-nested.c (get_trampoline_type): Use size_int.
1483 (get_nl_goto_field): Likewise.
1484 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1486 (lower_eh_constructs_2): Likewise.
1487 (lower_resx): Likewise.
1488 (lower_eh_dispatch): Likewise.
1489 * tree-mudflap.c (mf_build_string): Use size_int.
1490 (mudflap_register_call): Use integer_type_node for the flag.
1491 (mudflap_enqueue_constant): Use size_int.
1492 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1493 instead of rebuilding it.
1495 2011-04-29 Richard Guenther <rguenther@suse.de>
1497 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1498 Handle OBJ_TYPE_REF.
1499 (find_func_aliases_for_call): Use it more consistently.
1501 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1503 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1504 (rank_for_schedule): Use it.
1505 (schedule_block): Set it.
1507 2011-04-28 David Li <davidxl@google.com>
1509 * tree.c (crc32_string): Use crc32_byte.
1510 (crc32_byte): New function.
1511 * tree.h (crc32_byte): New function.
1512 * gcov.c (read_graph_file): Handle new cfg_cksum.
1513 (read_count_file): Ditto.
1514 * profile.c (instrument_values): Ditto.
1515 (get_exec_counts): Ditto.
1516 (read_profile_edge_counts): Ditto.
1517 (compute_branch_probabilities): Ditto.
1518 (compute_value_histograms): Ditto.
1519 (branch_prob): Ditto.
1520 (end_branch_prob): Ditto.
1521 * coverage.c (read_counts_file): Ditto.
1522 (get_coverage_counts): Ditto.
1523 (tree_coverage_counter_addr): Ditto.
1524 (coverage_checksum_string): Ditto.
1525 (coverage_begin_output): Ditto.
1526 (coverage_end_function): Ditto.
1527 (build_fn_info_type): Ditto.
1528 (build_fn_info_value): Ditto.
1529 * libgcov.c (gcov_exit): Ditto.
1530 * gcov-dump.c (tag_function): Ditto.
1531 (compute_checksum): Remove.
1533 2011-04-29 Alan Modra <amodra@gmail.com>
1535 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1536 unspec plus offset. Tidy macho code.
1538 2011-04-29 Martin Jambor <mjambor@suse.cz>
1540 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1541 node instead of a decl. Update all callers.
1542 * cgraph.h: Update declaration.
1544 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1546 PR tree-optimization/48765
1547 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1548 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1549 to indicate if loop aware SLP is being used. Scan the statements
1550 and update the vectorization factor according to the type of
1551 vectorization before statement analysis.
1552 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1553 pass it to vect_analyze_loop_operations.
1554 (vectorizable_reduction): Set number of copies to 1 in case of pure
1556 * tree-vect-stmts.c (vectorizable_conversion,
1557 vectorizable_assignment, vectorizable_shift,
1558 vectorizable_operation, vectorizable_type_demotion,
1559 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1561 (vectorizable_condition): Move the check that it is not SLP
1562 vectorization before the number of copies check.
1563 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1564 to vectorize the loop using SLP.
1566 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1569 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1572 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1574 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1575 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1576 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1577 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1578 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1580 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1581 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1582 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1583 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1584 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1585 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1587 * config/i386/linux.h (REG_NAME): Don't define.
1588 * config/i386/linux64.h (REG_NAME): Don't define.
1589 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1590 Undefine before defining.
1592 2011-04-28 Jan Hubicka <jh@suse.cz>
1594 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1595 nonconstant_names array.
1596 (estimate_function_body_sizes): Build nonconstant_names array; handle
1597 BUILT_IN_CONSTANT_P.
1599 2011-04-28 Richard Guenther <rguenther@suse.de>
1603 2011-04-28 Richard Guenther <rguenther@suse.de>
1605 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1606 as late as possible.
1608 2011-04-28 Richard Guenther <rguenther@suse.de>
1610 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1611 (debug_constraint): Do it here.
1612 (dump_constraints): And here.
1613 (rewrite_constraints): And here.
1614 (dump_constraint_edge): Remove.
1615 (dump_constraint_graph): Rewrite to produce DOT output.
1616 (solve_constraints): Build succ graph as late as possible.
1617 Dump constraint graphs before and after solving.
1619 2011-04-28 Richard Guenther <rguenther@suse.de>
1621 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1622 New function split out from ...
1623 (find_func_aliases): ... here. Call it.
1624 (find_func_aliases_for_call): Likewise.
1626 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1628 * internal-fn.h (internal_fn_name_array): Declare.
1629 (internal_fn_flags_array): Likewise.
1631 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1633 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1634 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1636 (ssemodefsuffix): Remove.
1637 (ssevecmodesuffix): New mode attribute.
1638 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1639 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1640 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1641 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1642 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1643 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1644 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1645 ssemodesuffix mode attribute.
1646 (float splitters): Use ssevecmodesuffix mode attribute.
1647 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1648 (sseinsmode): Rename from avxvecmode.
1649 (avxsizesuffix): Rename from avxmodesuffix.
1650 (sseintvecmode): Rename from avxpermvecmode.
1651 (ssedoublevecmode): Rename from ssedoublesizemode.
1652 (ssehalfvecmode): Rename from avxhalfvecmode.
1653 (ssescalarmode): Rename from avxscalarmode.
1654 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1655 templates for ssemodesuffix mode attribute.
1656 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1659 Adjust RTX patterns globally for renamed mode attributes.
1661 2011-04-27 Jan Hubcika <jh@suse.cz>
1663 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1664 * ipa-inline-analysis.c: Include alloc-pool.h.
1665 (edge_predicate_pool): New.
1666 (trye_predicate_p): New function
1667 (false_predicate_p): New function.
1668 (add_clause): Sanity check that false clauses are "optimized";
1669 never add clauses to predicate that is already known to be false.
1670 (and_predicate): Use flase_predicate_p.
1671 (evaulate_predicate): Rename to ...
1672 (evaluate_predicate): ... this one; update all callers; assert
1673 that false is not listed among possible truths.
1674 (dump_predicate): Use true_predicate_p.
1675 (account_size_time): Use false_predicate_p.
1676 (evaulate_conditions_for_edge): Rename to ...
1677 (evaluate_conditions_for_edge) ... this one.
1678 (edge_set_predicate): New function.
1679 (inline_edge_duplication_hook): Duplicate edge predicates.
1680 (inline_edge_removal_hook): Free edge predicates.
1681 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1682 (dump_inline_summary): Update.
1683 (estimate_function_body_sizes): Set edge predicates.
1684 (estimate_calls_size_and_time): Handle predicates.
1685 (estimate_callee_size_and_time): Update.
1686 (remap_predicate): Add toplev_predicate; update comment.
1687 (remap_edge_predicates): New function.
1688 (inline_merge_summary): Compute toplev predicate; update.
1689 (read_predicate): New function.
1690 (read_inline_edge_summary): Use it.
1691 (inline_read_section): Likewise.
1692 (write_predicate): New function.
1693 (write_inline_edge_summary): Use it.
1694 (inline_write_summary): Likewise.
1695 (inline_free_summary): Free alloc pool and edge summary vec.
1697 2011-04-27 Richard Guenther <rguenther@suse.de>
1699 * tree-ssa-structalias.c (changed_count): Remove.
1700 (changed): Use a bitmap.
1701 (unify_nodes): Adjust.
1702 (do_sd_constraint): Likewise.
1703 (do_ds_constraint): Likewise.
1704 (do_complex_constraint): Likewise.
1705 (solve_graph): Likewise.
1707 2011-04-27 Jan Hubicka <jh@suse.cz>
1709 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1711 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1713 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1714 (avx_vperm2f128_*_operand): Ditto.
1715 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1716 Use avx_vpermilp_parallel in insn condition.
1717 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1718 Use avx_vperm2f128_parallel in insn condition.
1720 2011-04-27 Richard Guenther <rguenther@suse.de>
1722 * Makefile.in (tree-ssa-structalias.o): Remove
1723 gt-tree-ssa-structalias.h dependency.
1724 (GTFILES): Remove tree-ssa-structalias.c.
1725 * tree.c (allocate_decl_uid): New function.
1726 (make_node_stat): Use it.
1727 (copy_node_stat): Likewise.
1728 * tree.h (allocate_decl_uid): Declare.
1729 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1730 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1731 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1732 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1733 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1734 (struct heapvar_map): Likewise.
1735 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1736 heapvar_insert): Likewise.
1737 (make_heapvar_for): Rename to ...
1738 (make_heapvar): ... this. Simplify.
1739 (fake_var_decl_obstack): New global var.
1740 (build_fake_var_decl): New function.
1741 (make_constraint_from_heapvar): Adjust.
1742 (handle_lhs_call): Likewise.
1743 (create_function_info_for): Likewise.
1744 (intra_create_variable_infos): Likewise.
1745 (init_alias_vars): Allocate fake_var_decl_obstack.
1746 (init_alias_heapvars, delete_alias_heapvars): Remove.
1747 (compute_points_to_sets): Do not call init_alias_heapvars.
1748 (ipa_pta_execute): Likewise.
1749 (delete_points_to_sets): Free fake_var_decl_obstack.
1751 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1753 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1754 (si_from_UTItype, si_to_UTItype): New functions.
1755 (__udivmodti4): Use them to implement type-punning.
1756 * config/spu/multi3.c (union qword_TItype): New data type.
1757 (si_from_TItype, si_to_TItype): New functions.
1758 (__multi3): Use them to implement type-punning.
1760 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1762 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1764 2011-04-27 Jan Hubicka <jh@suse.cz>
1766 * ipa-prop.c (function_insertion_hook_holder): New holder.
1767 (ipa_add_new_function): New function.
1768 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1769 Register/deregister holder.
1771 2011-04-27 Richard Guenther <rguenther@suse.de>
1773 PR tree-optimization/48772
1774 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1776 2011-04-27 Richard Guenther <rguenther@suse.de>
1778 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1779 TARGET_MEM_REF handling.
1781 2011-04-27 Nick Clifton <nickc@redhat.com>
1783 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1784 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1785 (REG_CLASS_NAMES): Likewise.
1786 (REG_CLASS_CONTENTS): Likewise.
1787 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1788 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1789 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1790 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1791 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1792 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1793 duplicate register classes.
1794 (frv_class_likely_spilled_p): Likewise.
1795 (frv_register_move_cost): Likewise.
1797 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1798 end of the regno_reg_class array.
1800 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1803 * c-typeck.c (build_binary_op): Don't wrap arguments if
1804 int_operands is true.
1806 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1809 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1810 targetm.calls.must_pass_in_stack for void type.
1812 2011-04-26 Jan Hubicka <jh@suse.cz>
1814 * cgraphbuild.c (build_cgraph_edges): Update call
1815 of cgraph_create_edge and cgraph_create_indirect_edge.
1816 * cgraph.c (cgraph_create_edge_including_clones,
1817 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1818 cgraph_update_edges_for_call_stmt_node): Do not take nest
1819 argument; do not initialize call_stmt_size/time.
1820 (dump_cgraph_node): Do not dump nest.
1821 (cgraph_clone_edge): Do not take loop_nest argument;
1822 do not propagate it; do not clone call_stmt_size/time.
1823 (cgraph_clone_node): Likewise.
1824 (cgraph_create_virtual_clone): Update.
1825 * cgraph.h (struct cgraph_edge): Remove
1826 call_stmt_size/call_stmt_time/loop_nest.
1827 (cgraph_create_edge, cgraph_create_indirect_edge,
1828 cgraph_create_edge_including_clones, cgraph_clone_node): Update
1830 * tree-emutls.c (gen_emutls_addr): Update.
1831 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1832 loop_nest; handle indirect calls, too.
1833 (clone_inlined_nodes): Do not care about updating inline summaries.
1834 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1835 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1836 stream call_stmt_size/call_stmt_time/loop_nest.
1837 * ipa-inline.c (edge_badness): Update.
1838 (ipa_inline): dump summaries after inlining.
1839 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1841 (inline_edge_summary): New function.
1842 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1843 (inline_edge_removal_hook): Handle edge summaries.
1844 (inline_edge_duplication_hook): New hook.
1845 (inline_summary_alloc): Alloc hooks.
1846 (initialize_growth_caches): Do not register removal hooks.
1847 (free_growth_caches); Do not free removal hook.
1848 (dump_inline_edge_summary): New function.
1849 (dump_inline_summary): Use it.
1850 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1851 (inline_update_callee_summaries): New function.
1852 (inline_merge_summary): Use it.
1853 (do_estimate_edge_time, do_estimate_edge_growth): Update.
1854 (read_inline_edge_summary): New function.
1855 (inline_read_section): Use it.
1856 (write_inline_edge_summary): New function.
1857 (inline_write_summary): Use it.
1858 (inline_free_summary): Free edge new holders.
1859 * tree-inline.c (copy_bb): Update.
1861 2011-04-26 Jason Merrill <jason@redhat.com>
1863 * tree-eh.c (lower_try_finally_switch): Create the label along with
1864 the CASE_LABEL_EXPR.
1866 2011-04-26 David S. Miller <davem@davemloft.net>
1867 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1869 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1870 * configure: Regenerate.
1872 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1875 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1877 (VEC_reduc): New code iterator and splitters for vector reduction.
1878 (VEC_reduc_name): Ditto.
1879 (VEC_reduc_rtx): Ditto.
1880 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1881 (reduc_<VEC_reduc_name>_v4sf): Ditto.
1883 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1884 support for extracting SF on VSX.
1886 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1887 generating xscvspdp.
1888 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1889 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1890 double add, minimum, maximum vector reduction.
1891 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1892 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1893 optimize double vector reduction.
1894 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1896 2011-04-26 Joseph Myers <joseph@codesourcery.com>
1898 * config/fr30/fr30.h (inhibit_libc): Don't define.
1899 * config/m32r/m32r-protos.h: Correct comment.
1900 * config/v850/v850.h (GHS_default_section_names,
1901 GHS_current_section_names): Use tree, not union tree_node *.
1903 2011-04-26 Xinliang David Li <davidxl@google.com>
1905 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1906 * c-family/c-opts.c (c_common_handle_option): Set
1907 warn_maybe_uninitialized.
1908 * opts.c (common_handle_option): Ditto.
1909 * common.opt: New option.
1910 * tree-ssa.c (warn_uninit): Add one more parameter.
1911 (warn_uninitialized_var): Pass warning code.
1912 * tree-flow.h: Interface change.
1915 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1917 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1918 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1919 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1921 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1923 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1924 * config/mips/mips.opt (mmips-tfile): Remove.
1926 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1927 mips-tdump reference to ...
1928 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
1929 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1930 reference by Tru64 UNIX.
1932 2011-04-26 Jakub Jelinek <jakub@redhat.com>
1935 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1936 is error_mark_node, set value to NULL.
1938 PR tree-optimization/48734
1939 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1940 if return value from maybe_fold_*_comparsions isn't something
1941 the code is prepared to handle.
1943 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
1945 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1947 (ext_QIreg_nomode_operands): Remove.
1948 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1952 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
1954 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1956 2011-04-26 Richard Guenther <rguenther@suse.de>
1958 * c-typeck.c (build_unary_op): Do not expand array-refs via
1959 pointer arithmetic. Only adjust qualifiers for function types.
1961 2011-04-26 Richard Guenther <rguenther@suse.de>
1964 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1965 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1966 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
1967 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1969 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1971 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1972 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1973 * doc/extend.texi: Document __underlying_type.
1975 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
1977 * config/rs6000/titan.md (automata_option "progress"): Remove.
1979 2011-04-25 Jeff Law <law@redhat.com>
1981 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1983 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1985 * system.h (ENUM_BITFIELD): Remove.
1987 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
1988 Eric Botcazou <ebotcazou@adacore.com>
1990 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1991 for STORE_FLAG_VALUE==-1 case.
1993 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
1996 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1997 LEGITIMATE_PIC_OPERAND_P.
1999 2011-04-24 Jan Hubicka <jh@suse.cz>
2001 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2003 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2004 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2005 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2006 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2007 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2008 Sanity check predicate length.
2009 (remap_predicate): Likewise; sanity check jump functions.
2010 (inline_read_section, inline_write_summary): Sanity check
2013 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2016 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2017 __is_literal_type, and __is_trivial; update throughout about
2018 possibly cv-qualified void types.
2020 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2022 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2023 testsuite and make it version agnostic.
2025 2011-04-22 Jan Hubicka <jh@suse.cz>
2027 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2029 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2032 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2033 to VOID_TYPE even around MODIFY_EXPR.
2035 2011-04-22 Mike Stump <mikestump@comcast.net>
2037 * gensupport.c (read_md_rtx): Fix typo in comment.
2038 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2041 2011-04-22 Jan Hubicka <jh@suse.cz>
2043 * gengtype.c (open_base_files): Add ipa-inline.h include.
2044 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2045 ipa-prop.c; update all uses.
2046 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2047 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2048 merge summary of inlined function into former caller.
2049 * ipa-inline.c (max_benefit): Remove.
2050 (edge_badness): Compensate for removal of benefits.
2051 (update_caller_keys): Use
2052 reset_node_growth_cache/reset_edge_growth_cache.
2053 (update_callee_keys): Likewise.
2054 (update_all_callee_keys): Likewise.
2055 (inline_small_functions): Do not collect max_benefit; do not reset
2056 estimated_growth; call free_growth_caches and initialize_growth_caches.
2057 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2058 struct size_time_entry): New structures.
2059 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2060 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2061 and estimated_growth.
2062 (edge_growth_cache_entry): New structure.
2063 (node_growth_cache, edge_growth_cache): New global vars.
2064 (estimate_growth): Turn into inline.
2065 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2066 initialize_growth_caches, free_growth_caches): Declare.
2067 (estimate_edge_growth): Rewrite.
2068 (estimate_edge_time): Implement as inline cache lookup.
2069 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2071 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2072 (NUM_CONDITIONS): New constant.
2073 (predicate_conditions): New enum.
2074 (IS_NOT_CONSTANT): New constant.
2075 (edge_removal_hook_holder): New var.
2076 (node_growth_cache, edge_growth_cache): New global vars.
2077 (true_predicate, single_cond_predicate, false_predicate,
2078 not_inlined_predicate, add_condition, add_clause, and_predicates,
2079 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2080 dump_clause, dump_predicate, account_size_time,
2081 evaulate_conditions_for_edge): New functions.
2082 (inline_summary_alloc): Move to heap.
2083 (inline_node_removal_hook): Clear condition and entry vectors.
2084 (inline_edge_removal_hook): New function.
2085 (initialize_growth_caches, free_growth_caches): New function.
2086 (dump_inline_summary): Update.
2087 (edge_execution_predicate): New function.
2088 (will_be_nonconstant_predicate): New function.
2089 (estimate_function_body_sizes): Compute BB and constantness predicates.
2090 (compute_inline_parameters): Do not clear estimated_growth.
2091 (estimate_edge_size_and_time): New function.
2092 (estimate_calls_size_and_time): New function.
2093 (estimate_callee_size_and_time): New function.
2094 (remap_predicate): New function.
2095 (inline_merge_summary): New function.
2096 (do_estimate_edge_time): New function based on...
2097 (estimate_edge_time): ... this one.
2098 (do_estimate_edge_growth): New function.
2099 (do_estimate_growth): New function based on....
2100 (estimate_growth): ... this one.
2101 (inline_analyze_function): Analyze after deciding on jump functions.
2102 (inline_read_section): New function.
2103 (inline_read_summary): Use it.
2104 (inline_write_summary): Write all the new data.
2105 * ipa-prop.c (ipa_get_param_decl_index): Export.
2106 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2107 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2109 (ipa_get_lattice): Move here from ipa-cp.c
2110 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2111 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2112 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2113 cgraph_edge_inlinable_p): Remove.
2114 * cgraphunit.c: Include ipainline.h
2115 (cgraph_process_new_functions): Update call of
2116 compute_inline_parameters.
2118 2011-04-22 Richard Guenther <rguenther@suse.de>
2120 * tree.c (build_int_cst): Properly create canonicalized integer
2122 (build_int_cst_type): Remove scary comments.
2124 2011-04-22 Xinliang David Li <davidxl@google.com>
2126 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2127 by default when -Wno-error is not specified.
2128 * opts-global.c (decode_options): Remove call to
2129 control_warning_options.
2131 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2133 PR tree-optimization/48717
2134 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2135 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2137 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2139 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2140 definition where used.
2142 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2145 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2146 TREE_STATIC variables declared inside of some OpenMP construct.
2148 2011-04-22 Martin Jambor <mjambor@suse.cz>
2151 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2153 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2156 * c-typeck.c (pop_init_level): Do not warn about initializing
2159 2011-04-22 Alan Modra <amodra@gmail.com>
2161 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2162 when returning call_cookie.
2163 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2164 pointers, to functions with no more vector args than the current
2165 function, and some non-local calls for ABI_V4.
2166 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2167 sibcall_nonlocal_aix64): Combine to ..
2168 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2169 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2170 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2171 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2172 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2174 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2175 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2176 sibcall_value_symbolic_64): Delete.
2178 2011-04-21 Xinliang David Li <davidxl@google.com>
2180 * cgraph.h: Remove pid.
2181 * cgraph.c: Remove pid.
2182 * value-prof.c (init_node_map): New function.
2183 (del_node_map): New function.
2184 (find_func_by_funcdef_no): New function.
2185 (gimple_ic_transform): Call new function.
2186 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2187 * function.c (get_last_funcdef_no): New function.
2188 * function.h (get_last_funcdef_no): New function.
2189 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2190 to libgcov function.
2191 (tree-profiling): Call node map init and delete function.
2193 2011-04-21 Ian Lance Taylor <iant@google.com>
2195 * godump.c (go_format_type): Use exported Go name for anonymous
2198 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2200 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2201 Call builtin_function_type_list instead of builtin_function_type.
2202 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2204 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2206 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2207 build_function_type_list instead of build_function_type.
2208 Delete variable `endlink'.
2210 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2212 * config/s390/s390.c (s390_init_builtins): Call
2213 build_function_type_list instead of build_function_type.
2215 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2217 * config/ia64/ia64.c (ia64_init_builtins): Call
2218 build_function_type_list instead of builtin_function_type.
2220 2011-04-21 Easwaran Raman <eraman@google.com>
2222 * cfgexpand.c (stack_var): Remove OFFSET...
2223 (add_stack_var): ...and its reference here...
2224 (expand_stack_vars): ...and here.
2225 (stack_var_cmp): Sort by descending order of size.
2226 (partition_stack_vars): Change heuristic.
2227 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2228 (dump_stack_var_partition): Add newline after each partition.
2230 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2231 Jeff Law <law@redhat.com>
2233 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2234 * gengtype.c (matching_file_name_substitute): Likewise.
2236 2011-04-21 Richard Guenther <rguenther@suse.de>
2239 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2241 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2243 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2245 2011-04-21 Richard Guenther <rguenther@suse.de>
2247 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2250 2011-04-21 Richard Guenther <rguenther@suse.de>
2252 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2253 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2254 Use DECL_P, not SSA_VAR_P.
2255 (ptr_derefs_may_alias_p): Likewise.
2256 (ptr_deref_may_alias_ref_p_1): Likewise.
2257 (decl_refs_may_alias_p): Likewise.
2258 (refs_may_alias_p_1): Likewise.
2259 (ref_maybe_used_by_call_p_1): Likewise.
2260 (call_may_clobber_ref_p_1): Likewise.
2261 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2262 are either MEM_REF or TARGET_MEM_REF.
2263 (indirect_refs_may_alias_p): Likewise.
2264 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2265 for MEM_EXPR of indirect calls.
2267 2011-04-21 Tristan Gingold <gingold@adacore.com>
2269 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2270 (dst_file_info_struct): Remove flen field.
2271 (lookup_filename): Remove code that set flen field.
2273 2011-04-21 Tristan Gingold <gingold@adacore.com>
2275 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2277 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2280 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2281 vec_extract and vec_concat for non-SSE4_1 targets.
2283 2011-04-21 Richard Guenther <rguenther@suse.de>
2285 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2288 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2290 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2292 (FILE): Don't undefine.
2294 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2296 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2298 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2300 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2301 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2302 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2304 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2305 definitions where used.
2306 * config/microblaze/microblaze.h (struct microblaze_args): Use
2307 rtx, not struct rtx_def *.
2308 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2310 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2311 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2312 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2313 not struct rtx_def *.
2314 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2316 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2318 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2320 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2322 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2323 operand_equal_p to compare DR_BASE_ADDRESSes.
2324 (vect_check_interleaving): Likewise.
2326 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2329 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2330 for all Neon struct constants.
2332 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2334 * target.def (legitimate_constant_p): New hook.
2335 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2336 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2337 * doc/tm.texi: Regenerate.
2338 * hooks.h (hook_bool_mode_rtx_true): Declare.
2339 * hooks.c (hook_bool_mode_rtx_true): Define.
2340 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2341 * calls.c (precompute_register_parameters): Replace uses of
2342 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2343 (emit_library_call_value_1): Likewise.
2344 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2345 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2346 * ira-costs.c (scan_one_insn): Likewise.
2347 * recog.c (general_operand, immediate_operand): Likewise.
2348 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2349 * reload1.c (init_eliminable_invariants): Likewise.
2351 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2353 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2354 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2356 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2357 * config/alpha/predicates.md (input_operand): Update call to
2358 alpha_legitimate_constant_p.
2360 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2361 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2362 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2363 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2364 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2365 (arm_legitimate_constant_p): New functions.
2366 (arm_cannot_force_const_mem): Make static.
2368 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2370 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2371 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2372 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2373 instead of bfin_legitimate_constant_p.
2374 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2375 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2377 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2379 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2381 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2382 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2383 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2384 (frv_legitimate_constant_p): Make static. Add a mode argument.
2386 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2387 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2388 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2390 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2391 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2392 * config/i386/i386.c (legitimate_constant_p): Rename to...
2393 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2395 (ix86_cannot_force_const_mem): Update accordingly.
2396 (ix86_legitimate_address_p): Likewise.
2397 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2398 * config/i386/i386.md: Update commentary.
2400 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2401 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2402 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2403 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2405 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2407 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2408 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2409 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2410 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2412 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2413 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2414 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2416 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2417 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2418 (m32r_legitimate_constant_p): New function.
2420 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2421 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2422 LEGITIMATE_CONSTANT_P.
2423 (LEGITIMATE_CONSTANT_P): Delete.
2424 * config/m68k/m68k.c (m68k_expand_prologue): Call
2425 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2426 (m68k_legitimate_constant_p): New function.
2427 * config/m68k/m68k.md: Update comments.
2429 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2430 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2431 (mcore_legitimate_constant_p): New function.
2433 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2434 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2435 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2436 Add a mode argument.
2437 (mep_legitimate_address): Update accordingly.
2438 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2440 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2442 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2443 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2444 static. Check OP's mode for VOIDmode.
2445 (microblaze_legitimate_constant_p): New function.
2446 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2448 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2449 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2450 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2451 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2452 * config/mips/predicates.md: Update comments.
2454 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2455 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2456 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2457 (mmix_legitimate_constant_p): Make static, return a bool, and take
2459 (mmix_print_operand_address): Update accordingly.
2461 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2463 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2464 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2465 static. Add a mode argument.
2466 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2468 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2470 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2471 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2472 (pa_legitimate_constant_p): New function.
2474 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2476 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2477 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2478 (pdp11_legitimate_constant_p): New function.
2480 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2481 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2482 (rs6000_legitimate_constant_p): New function.
2484 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2485 (rx_legitimate_constant_p): ...this.
2486 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2487 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2488 (rx_legitimate_constant_p): ...this.
2489 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2490 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2492 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2493 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2494 * config/s390/s390.c (legitimate_constant_p): Rename to...
2495 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2496 and add a mode argument.
2497 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2499 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2501 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2502 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2503 (sh_legitimate_constant_p): New function.
2505 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2506 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2507 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2508 (legitimate_constant_p): Rename to...
2509 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2511 (constant_address_p): Update accordingly.
2513 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2514 argument and return a bool.
2515 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2516 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2517 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2518 (spu_rtx_costs): Update accordingly.
2519 * config/spu/predicates.md (vec_imm_operand): Likewise.
2521 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2523 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2524 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2525 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2527 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2528 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2529 * config/vax/vax.c (legitimate_constant_p): Likewise.
2531 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2532 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2533 (xtensa_legitimate_constant_p): New function.
2535 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2537 * target.def (cannot_force_const_mem): Add a mode argument.
2538 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2539 * doc/tm.texi: Regenerate.
2540 * hooks.h (hook_bool_mode_rtx_false): Declare.
2541 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2542 (hook_bool_mode_const_rtx_true): Likewise.
2543 (hook_bool_mode_rtx_false): New function.
2544 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2545 to be non-VOID. Update call to cannot_force_const_mem.
2546 (find_reloads): Update accordingly.
2547 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2548 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2550 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2551 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2552 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2553 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2554 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2555 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2556 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2557 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2558 (m68k_cannot_force_const_mem): ...this new function.
2559 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2561 (mips_const_insns, mips_legitimize_const_move): Update calls.
2562 (mips_secondary_reload_class): Likewise.
2563 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2564 (pa_cannot_force_const_mem): ...this new function.
2565 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2566 (rs6000_cannot_force_const_mem): ...this new function.
2567 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2569 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2570 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2572 (xtensa_cannot_force_const_mem): ...this new function.
2574 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2576 * config/mips/mips.c (mips16_build_function_stub): Call
2577 build_function_type_list instead of build_function_type.
2578 (mips16_build_call_stub): Likewise.
2580 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2582 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2583 instead of build_function_type.
2585 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2587 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2588 instead of build_function_type.
2590 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2593 * config/i386/i386.md (insv): Change operand 0 constraint to
2594 "register_operand". Change operand 1 and 2 constraint to
2595 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2596 * config/i386/sse.md (sse4_1_pinsrb): Export.
2597 (sse2_pinsrw): Ditto.
2598 (sse4_1_pinsrd): Ditto.
2599 (sse4_1_pinsrq): Ditto.
2600 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2601 * config/i386/i386.c (ix86_expand_pinsr): New.
2603 2011-04-20 Easwaran Raman <eraman@google.com>
2605 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2606 containing union type only with -fstrict-aliasing.
2608 2011-04-20 Jim Meyering <meyering@redhat.com>
2610 Remove useless if-before-free tests.
2611 * calls.c (expand_call, save_area): Likewise.
2612 * cfgcleanup.c (try_forward_edges): Likewise.
2613 * collect2.c (collect_execute): Likewise.
2614 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2615 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2616 * coverage.c (coverage_checksum_string): Likewise.
2617 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2618 * cselib.c (cselib_init): Likewise.
2619 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2620 (df_set_clean_cfg): Likewise.
2621 * function.c (free_after_compilation): Likewise.
2622 * gcc.c (do_spec_1, main): Likewise.
2623 * gcov.c (create_file_names): Likewise.
2624 * gensupport.c (identify_predicable_attribute): Likewise.
2625 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2626 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2627 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2628 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2629 * ipa-pure-const.c (local_pure_const): Likewise.
2630 * ipa-reference.c (propagate): Likewise.
2631 * ira-costs.c (free_ira_costs): Likewise.
2632 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2633 * matrix-reorg.c (mat_free): Likewise.
2634 * prefix.c (get_key_value): Likewise.
2635 * profile.c (compute_value_histograms): Likewise.
2636 * reload1.c (free_reg_equiv): Likewise.
2637 * sched-deps.c (free_deps): Likewise.
2638 * sel-sched-ir.c (fence_clear): Likewise.
2639 * sese.c (set_rename, if_region_set_false_region): Likewise.
2640 * tree-data-ref.c (free_rdg): Likewise.
2641 * tree-eh.c (lower_try_finally): Likewise.
2642 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2643 * tree-ssa-live.c (delete_var_map): Likewise.
2644 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2645 * tree-ssa-pre.c (phi_trans_add): Likewise.
2647 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2649 PR tree-optimization/48611
2650 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2651 beyond ERT_MUST_NOT_THROW region.
2653 2011-04-20 Catherine Moore <clm@codesourcery.com>
2655 * config/mips/mips.opt (mfix-24k): New.
2656 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2657 * config/mips/mips.md (length): Increase by 4 for stores if
2659 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2660 all noreorder if fixing 24K errata.
2661 * doc/invoke.texi: Document mfix-24k.
2663 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2665 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2666 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2668 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2670 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2671 (const_ok_for_op): ... to here.
2673 2011-04-20 Kai Tietz <ktietz@redhat.com>
2675 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2676 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2678 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2680 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2682 2011-04-20 Richard Guenther <rguenther@suse.de>
2684 PR tree-optimization/47892
2685 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2688 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2690 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2692 2011-04-20 Tristan Gingold <gingold@adacore.com>
2694 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2696 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2700 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2701 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2702 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2703 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2704 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2706 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2709 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2710 (avr_asm_named_section, avr_asm_output_aligned_common,
2711 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2712 New functions to update...
2713 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2714 (avr_asm_init_sections): Overwrite section callbacks for
2715 data_section, bss_section.
2716 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2718 (avr_file_end): ...here.
2720 2011-04-20 Richard Guenther <rguenther@suse.de>
2723 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2724 objects and types here. Adjust for their offset before comparing.
2726 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2728 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2731 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2733 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2734 (GIMPLE_H): Include $(INTERNAL_FN_H).
2735 (OBJS-common): Add internal-fn.o.
2736 (internal-fn.o): New rule.
2737 * internal-fn.def: New file.
2738 * internal-fn.h: Likewise.
2739 * internal-fn.c: Likewise.
2740 * gimple.h: Include internal-fn.h.
2741 (GF_CALL_INTERNAL): New gf_mask.
2742 (gimple_statement_call): Put fntype into a union with a new
2744 (gimple_build_call_internal): Declare.
2745 (gimple_build_call_internal_vec): Likewise.
2746 (gimple_call_same_target_p): Likewise.
2747 (gimple_call_internal_p): New function.
2748 (gimple_call_internal_fn): Likewise.
2749 (gimple_call_fntype): Return null for internal calls.
2750 (gimple_call_set_fntype): Assert that the function is not internal.
2751 (gimple_call_set_fn): Likewise.
2752 (gimple_call_set_fndecl): Likewise.
2753 (gimple_call_set_internal_fn): New function.
2754 (gimple_call_addr_fndecl): Handle null functions.
2755 (gimple_call_return_type): Likewise null types.
2756 * gimple.c (gimple_build_call_internal_1): New function.
2757 (gimple_build_call_internal): Likewise.
2758 (gimple_build_call_internal_vec): Likewise.
2759 (gimple_call_same_target_p): Likewise.
2760 (gimple_call_flags): Handle calls to internal functions.
2761 (gimple_call_fnspec): New function.
2762 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2763 (gimple_has_side_effects): Handle null functions.
2764 (gimple_rhs_has_side_effects): Likewise.
2765 (gimple_call_copy_skip_args): Handle calls to internal functions.
2766 * cfgexpand.c (expand_call_stmt): Likewise.
2767 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2768 * gimple-fold.c (gimple_fold_call): Handle null functions.
2769 (gimple_fold_stmt_to_constant_1): Don't fold
2770 calls to internal functions.
2771 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2773 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2774 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2775 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2776 (do_warn_unused_result): Likewise.
2777 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2778 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2779 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2780 the target of a call.
2781 (initialize_hash_element): Update accordingly.
2782 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2783 (iterative_hash_hashable_expr): Handle calls to internal functions.
2784 (print_expr_hash_elt): Likewise.
2785 * tree-ssa-pre.c (can_value_number_call): Likewise.
2786 (eliminate): Handle null functions.
2787 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2788 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2789 (find_func_aliases): Likewise.
2790 * value-prof.c (gimple_ic_transform): Likewise.
2791 (gimple_indirect_call_to_profile): Likewise.
2792 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2793 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2795 2011-04-19 Jan Hubicka <jh@suse.cz>
2797 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2798 * ipa-inline.c (inline_small_functions): Compute summaries first,
2799 populate heap later.
2801 2011-04-19 Jan Hubicka <jh@suse.cz>
2803 * cgraph.h (save_inline_function_body): Remove.
2804 * ipa-inline-transform.c: New file, broke out of...
2805 * ipa-inline.c: ... this one; Update toplevel comment.
2806 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2808 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2809 (cgraph_mark_inline_edge): Rename to inline_call; move to
2810 ipa-inline-transform.c.
2811 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2812 move to ipa-inline-transform.c
2813 (recursive_inlining, inline_small_functions, flatten_function,
2814 ipa_inline, inline_always_inline_functions,
2815 early_inline_small_functions): Update.
2816 (inline_transform): Move to ipa-inline-transform.c.
2817 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2819 * Makefile.in (ipa-inline-transform.o): New file.
2820 * cgraphunit.c (save_inline_function_body): Move to
2821 ipa-inline-transform.c
2823 2011-04-19 DJ Delorie <dj@redhat.com>
2825 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2826 registers if we already know there aren't any.
2827 (m32c_emit_epilogue): Don't emit a barrier here.
2828 (m32c_emit_eh_epilogue): Likewise.
2829 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2830 operands at expand time.
2831 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2833 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2834 duplicates. Provide aliases instead.
2835 * config/m32c/prologue.md (eh_return): Emit a barrier here.
2836 (eh_epilogue): Add a "(return)" here as a hint to other parts of
2839 2011-04-19 Anatoly Sokolov <aesok@post.ru>
2841 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2842 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2843 (general_or_i64_p, sparc_register_move_cost): New function.
2845 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2847 * doc/install.texi (Configuration, --enable-threads): Remove mach.
2848 Add lynx, mipssde. Sort table.
2850 2011-04-19 Xinliang David Li <davidxl@google.com>
2852 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2855 2011-04-19 Jakub Jelinek <jakub@redhat.com>
2858 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2859 is a SUBREG with non-MODE_INT mode inside of it.
2861 2011-04-19 Martin Jambor <mjambor@suse.cz>
2863 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2864 also according to actual contants.
2865 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2866 (gimple_fold_call): Use it.
2867 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2869 2011-04-19 Martin Jambor <mjambor@suse.cz>
2871 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2872 non-pointer assignments.
2874 2011-04-19 Martin Jambor <mjambor@suse.cz>
2876 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2877 account anc_offset and otr_type from the indirect edge info.
2878 * ipa-prop.c (get_ancestor_addr_info): New function.
2879 (compute_complex_ancestor_jump_func): Assignment analysis moved to
2880 get_ancestor_addr_info, call it.
2881 (ipa_note_param_call): Do not initialize information about polymorphic
2882 calls, return the indirect call graph edge. Remove the last
2883 parameter, adjust all callers.
2884 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2885 parameters. Initialize polymorphic information in the indirect edge.
2887 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2890 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2891 the types if they have different enumeration identifiers.
2893 2011-04-19 Jan Hubicka <jh@suse.cz>
2895 * cgraph.h (cgraph_optimize_for_size_p): Declare.
2896 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2897 * predict.c (cgraph_optimize_for_size_p): Break out from ...
2898 (optimize_function_for_size_p) ... here.
2900 2011-04-19 Richard Guenther <rguenther@suse.de>
2903 * tree.c (free_lang_data): Do not reset the decl-assembler-name
2906 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2908 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2909 if DECL_NO_INLINE_WARNING_P is set on the function.
2911 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
2914 * reload1.c (inc_for_reload): Return void. All callers changed.
2915 (emit_input_reload_insns): Don't try to delete previous output
2916 reloads to a register, or record spill_reg_store for autoincs.
2918 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
2920 * gengtype.h: Updated copyright year.
2921 (struct input_file_st): Add inpisplugin field.
2922 (type_fileloc): New function.
2924 (write_typed_struct_alloc_def): Add gcc_assert.
2925 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2926 (write_typed_alloc_defns): Don't output for plugin files.
2927 (input_file_by_name): Clear inpisplugin field.
2928 (main): Set inpisplugin field for plugin files.
2930 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
2932 * gengtype-state.c (string_eq): New.
2933 (read_state): Use string_eq instead of strcmp when creating the
2936 2011-04-19 Wei Guozhi <carrot@google.com>
2939 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2940 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2942 * config/arm/constraints.md (Uu): New constraint.
2943 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2945 2011-04-19 Tristan Gingold <gingold@adacore.com>
2947 * config.gcc (-*-*-*vms): Added.
2948 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2950 * config/vms/vms-ld.c: New file.
2951 * config/vms/vms-ar.c: New file.
2952 * config/vms/t-vmsnative: New file.
2954 2011-04-18 Xinliang David Li <davidxl@google.com>
2956 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2958 2011-04-18 Jakub Jelinek <jakub@redhat.com>
2961 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2962 if TREE_TYPE (v) is non-NULL.
2964 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2965 gimple_get_virt_mehtod_for_binfo.
2966 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2967 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2969 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2971 2011-04-18 Michael Matz <matz@suse.de>
2972 Steve Ellcey <sje@cup.hp.com>
2974 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2975 use its mode as source mode if it isn't VOIDmode.
2977 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
2979 * doc/passes.texi: Fill crossref nodes.
2981 2011-04-18 Jim Meyering <meyering@redhat.com>
2983 Fix doubled-word typos in comments and strings
2984 * config/alpha/vms-unwind.h: s/for for/for/
2985 * config/arm/unwind-arm.h: Likewise.
2986 * config/microblaze/microblaze.c: Likewise.
2987 * config/sh/constraints.md: s/in in/in/
2988 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2990 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
2992 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2993 (AVX_FLOAT_MODE_P): Ditto.
2994 (AVX128_VEC_FLOAT_MODE_P): Ditto.
2995 (AVX256_VEC_FLOAT_MODE_P): Ditto.
2996 (AVX_VEC_FLOAT_MODE_P): Ditto.
2997 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2998 (UNSPEC_MASKSTORE): Ditto.
2999 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3000 Merge from <sse>_movmsk<ssemodesuffix> and
3001 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3002 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3004 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3005 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3006 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3008 2011-04-18 Jan Hubicka <jh@suse.cz>
3010 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3012 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3013 (want_inline_function_called_once_p): Break out the logic from
3015 (edge_badness): Ensure that profile is not misupdated.
3016 (lookup_recursive_calls): Prioritize by call frequencies.
3017 (inline_small_functions): Move program size estimates here;
3018 actually process whole queue even when unit growth has been
3019 met. (to properly compute inline_failed reasons and for the
3020 case unit size decrease.) Revisit comments on recursive inlining.
3021 (ipa_inline): Remove unit summary code; first inline hot calls
3022 of functions called once, cold calls next.
3023 (order, nnodes): Remove unused variables.
3024 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3025 (GTFILES): Remove ipa-inline.c
3026 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3028 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3030 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3032 2011-04-18 Jie Zhang <jie@codesourcery.com>
3033 Richard Earnshaw <rearnsha@arm.com>
3035 * arm.c (neon_builtin_type_bits): Remove.
3036 (typedef enum neon_builtin_mode): New.
3037 (T_MAX): Don't define.
3038 (typedef enum neon_builtin_datum): Remove bits, codes[],
3039 num_vars and base_fcode. Add mode, code and fcode.
3040 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3041 VAR10): Change accordingly.
3042 (neon_builtin_data[]): Change accordingly
3043 (arm_init_neon_builtins): Change accordingly.
3044 (neon_builtin_compare): Remove.
3045 (locate_neon_builtin_icode): Remove.
3046 (arm_expand_neon_builtin): Change accordingly.
3048 * arm.h (enum arm_builtins): Move to ...
3049 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3051 * arm.c (arm_builtin_decl): Declare.
3052 (TARGET_BUILTIN_DECL): Define.
3053 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3054 (arm_builtin_decls[]): New.
3055 (arm_init_neon_builtins): Store builtin declarations in
3056 arm_builtin_decls[].
3057 (arm_init_tls_builtins): Likewise.
3058 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3059 (arm_builtin_decl): New.
3061 2011-04-18 Richard Guenther <rguenther@suse.de>
3063 * tree.c (upper_bound_in_type): Build properly canonicalized
3065 (lower_bound_in_type): Likewise.
3067 2011-04-18 Richard Guenther <rguenther@suse.de>
3069 * gimple.h (gimple_call_addr_fndecl): New function.
3070 (gimple_call_fndecl): Use it.
3071 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3073 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3074 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3076 2011-04-18 Richard Guenther <rguenther@suse.de>
3079 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3081 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3084 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3085 DECL_IN_CONSTANT_POOL without RTL.
3087 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3088 Ira Rosen <ira.rosen@linaro.org>
3091 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3092 to match neon_vzip/vuzp/vtrn_internal.
3093 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3094 outputs explicitly dependent on both inputs.
3095 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3097 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3099 PR tree-optimization/48616
3100 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3101 whether the shift is by scalar or vector based on whether all SLP
3102 scalar stmts have the same rhs.
3104 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3106 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3109 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3111 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3114 2011-04-17 Jan Hubicka <jh@suse.cz>
3116 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3117 * cgrpahunit.c (cgraph_finalize_function): Do not set
3118 finalized_by_frontend.
3119 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3120 finalized_by_frontend.
3122 2011-04-17 Jan Hubicka <jh@suse.cz>
3124 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3125 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3126 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3127 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3129 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3131 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3133 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3136 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3137 is non-null before accessing it.
3138 (input_cgraph): Remove trailing spaces.
3140 2011-04-17 Revital Eres <revital.eres@linaro.org>
3142 * params.def (sms-min-sc): New param flag.
3143 * modulo-sched.c (sms_schedule): Use it.
3144 * doc/invoke.texi (sms-min-sc): Document it.
3146 2011-04-17 Jan Hubicka <jh@suse.cz>
3148 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3149 present, also set gimple_call_set_cannot_inline.
3150 * ipa-inline.c: Update toplevel comment.
3152 (cgraph_clone_inlined_nodes): Fix linebreaks.
3153 (cgraph_check_inline_limits): Restructure to ...
3154 (caller_growth_limits): ... this one; be more tolerant
3155 on growth in nested inline chains; add explanatory comment;
3156 fix stack accounting thinko introduced by previous patch.
3157 (cgraph_default_inline_p): Remove.
3158 (report_inline_failed_reason): New function.
3159 (can_inline_edge_p): New function.
3160 (can_early_inline_edge_p): New function.
3161 (leaf_node_p): Move upwards in file.
3162 (want_early_inline_function_p): New function.
3163 (want_inline_small_function_p): New function.
3164 (want_inline_self_recursive_call_p): New function.
3165 (cgraph_edge_badness): Rename to ...
3166 (edge_badness) ... this one; fix linebreaks.
3167 (update_edge_key): Update call of edge_baddness; add
3168 detailed dump about queue updates.
3169 (update_caller_keys): Use can_inline_edge_p and
3170 want_inline_small_function_p.
3171 (cgraph_decide_recursive_inlining): Rename to...
3172 (recursive_inlining): Use can_inline_edge_p and
3173 want_inline_self_recursive_call_p; simplify and remove no longer
3175 (cgraph_set_inline_failed): Remove.
3176 (add_new_edges_to_heap): Use can_inline_edge_p and
3177 want_inline_small_function_p.
3178 (cgraph_decide_inlining_of_small_functions): Rename to ...
3179 (inline_small_functions): ... this one; cleanup; use
3180 can/want predicates; cleanup debug ouput; work edges till fibheap
3181 is exhausted and do not stop once unit growth is reached; remove
3182 later loop processing remaining edges.
3183 (cgraph_flatten): Rename to ...
3184 (flatten_function): ... this one; use can_inline_edge_p
3185 and can_early_inline_edge_p predicates.
3186 (cgraph_decide_inlining): Rename to ...
3187 (ipa_inline): ... this one; remove unreachable nodes before
3188 inlining functions called once; simplify the pass.
3189 (cgraph_perform_always_inlining): Rename to ...
3190 (inline_always_inline_functions): ... this one; use
3191 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3192 (cgraph_decide_inlining_incrementally): Rename to ...
3193 (early_inline_small_functions): ... this one; simplify
3194 using new predicates; cleanup; make dumps prettier.
3195 (cgraph_early_inlining): Rename to ...
3196 (early_inliner): newer inline regular functions into always-inlines;
3197 fix updating of call stmt summaries.
3198 (pass_early_inline): Update for new names.
3199 (inline_transform): Fix formating.
3200 (gate_cgraph_decide_inlining): Rename to ...
3201 (pass_ipa_inline): ... this one.
3202 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3203 * ipa-inline-analysis.c (dump_inline_summary): Update.
3204 (compute_inline_parameters): Do not compute disregard_inline_limits;
3205 look for mismatching arguments.
3206 (estimate_growth): Fix handlig of non-trivial self recursion.
3207 (inline_read_summary): Do not read info->disregard_inline_limits.
3208 (inline_write_summary): Do not write info->disregard_inline_limits.
3209 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3210 and move all checks into can_inline_edge_p predicate; re-enable code
3211 comparing optimization levels.
3212 (expand_call_inline): Do not test inline_forbidden_into_p.
3213 * Makefile.in (ipa-inline.o): Update arguments.
3215 2011-04-17 Revital Eres <revital.eres@linaro.org>
3217 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3219 2011-04-17 Revital Eres <revital.eres@linaro.org>
3221 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3223 2011-04-17 Michael Matz <matz@suse.de>
3225 PR tree-optimization/48622
3227 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3228 in same order as they're written.
3230 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3232 * config/pa/predicates.md: Reorganize and simplify predicates.
3233 Eliminate duplicate code checks.
3234 (arith_operand): Rename to arith14_operand
3235 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3236 * config/pa/pa.md: Use renamed operands.
3237 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3238 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3239 arith11_operand, adddi3_operand, indexed_memory_operand,
3240 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3241 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3242 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3243 move_dest_operand, move_src_operand, prefetch_cc_operand,
3244 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3245 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3246 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3247 div_operand, int5_operand, movb_comparison_operator,
3248 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3249 arith_double_operand, ireg_operand, lhs_lshift_operand,
3250 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3251 integer_store_memory_operand): Likewise.
3252 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3253 (integer_store_memory_operand, read_only_operand,
3254 function_label_operand, borx_reg_operand,
3255 non_hard_reg_operand): Likewise.
3256 (eq_neq_comparison_operator): Delete unused operator.
3257 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3258 function_label_operand.
3259 (emit_move_sequence): Likewise.
3261 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3263 * config/i386/sse.md (sseunpackmode): New mode attribute.
3264 (ssepackmode): Ditto.
3265 (vec_pack_trunc_<mode>): Macroize expander from
3266 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3267 (vec_unpacks_lo_<mode>): Macroize expander from
3268 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3269 (vec_unpacks_hi_<mode>): Macroize expander from
3270 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3271 (vec_unpacku_lo_<mode>): Macroize expander from
3272 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3273 (vec_unpacku_hi_<mode>): Macroize expander from
3274 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3275 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3276 ix86_expand_sse4_unpack.
3277 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3279 2011-04-16 Jan Hubicka <jh@suse.cz>
3281 * cgraphbuild.c: Include ipa-inline.h.
3282 (reset_inline_failed): Use initialize_inline_failed.
3283 * cgraph.c: Include ipa-inline.h.
3284 (cgraph_create_node_1): Do not initialize estimated_growth.
3285 (initialize_inline_failed): More to ipa-inline-analysis.c
3286 (dump_cgraph_node): Do not dump inline flags.
3287 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3288 and disregard_inline_limits flags.
3289 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3290 time, size, estimated_growth.
3291 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3293 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3294 DECL_DISREGARD_INLINE_LIMITS.
3295 (cgraph_analyze_function): Do not initialize
3296 node->local.disregard_inline_limits.
3297 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3298 inlinable, versionable and disregard_inline_limits.
3299 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3300 cgraph_check_inline_limits, cgraph_default_inline_p,
3301 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3302 add_new_edges_to_heap): Update.
3303 (cgraph_decide_inlining_of_small_function): Update; set
3304 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3305 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3306 cgraph_decide_inlining_incrementally): Update.
3307 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3308 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3309 time, size and estimated_growth parameters.
3310 (estimate_edge_growth): Update.
3311 (initialize_inline_failed): Declare.
3312 * ipa-split.c: Include ipa-inline.h
3313 (execute_split_functions): Update.
3314 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3315 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3316 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3317 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3318 estimated_growth to INT_MIN.
3319 (inline_node_duplication_hook): Likewise.
3320 (dump_inline_summary): Dump new fields.
3321 (compute_inline_parameters): Update.
3322 (estimate_edge_time, estimate_time_after_inlining,
3323 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3324 inline_write_summary):
3325 (initialize_inline_failed): Move here from cgraph.c.
3326 * tree-sra.c: Include ipa-inline.h.
3327 (ipa_sra_preliminary_function_checks): Update.
3328 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3331 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3333 * config/i386/sse.md (V16): New mode iterator.
3335 (AVXMODEQI, AVXMODEDI): Remove.
3336 (sse2, sse3): New mode attribute.
3337 (mov<mode>): Use V16 mode iterator.
3338 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3339 (push<mode>1): Use V16 mode iterator.
3340 (movmisalign<mode>): Ditto.
3341 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3342 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3343 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3344 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3345 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3346 avx_movdqu<avxmodesuffix>.
3347 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3348 *avx_movdqu<avxmodesuffix>.
3349 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3350 avx_lddqu<avxmodesuffix>.
3351 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3352 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3353 avx_movnt<AVXMODEDI:mode>.
3354 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3355 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3357 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3360 * haifa-sched.c (prune_ready_list, schedule_block): Use
3361 sched_pressure_p rather than flag_sched_pressure.
3363 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3365 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3366 cgraph_get_node instead of cgraph_get_create_node.
3368 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3370 * cfgexpand.c (expand_debug_expr): Use
3371 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3373 2011-04-15 Michael Matz <matz@suse.de>
3375 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3376 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3377 * function.c (gimplify_parameters): Ditto.
3378 * gimplify.c (gimplify_vla_decl): Ditto.
3380 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3381 (gimple_call_set_alloca_for_var): New inline function.
3382 (gimple_call_alloca_for_var_p): Ditto.
3383 * gimple.c (gimple_build_call_from_tree): Remember
3384 CALL_ALLOCA_FOR_VAR_P state.
3385 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3387 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3388 calls if they were for VLA objects.
3390 2011-04-15 Martin Jambor <mjambor@suse.cz>
3392 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3395 2011-04-15 Martin Jambor <mjambor@suse.cz>
3398 * tree-emutls.c (lower_emutls_function_body): Call
3399 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3402 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3404 * c-decl.c (detect_field_duplicates): Call
3405 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3407 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3409 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3410 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3411 * ipa-pure-const.c (check_stmt): Call it.
3412 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3414 2011-04-15 Richard Guenther <rguenther@suse.de>
3416 PR tree-optimization/48290
3417 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3418 Properly decide inhibiting propagation based on the valueized
3419 operand. Do loop-closed SSA form preserving here ...
3420 (init_copy_prop): ... not here.
3422 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3425 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3426 (*ieee_smax<mode>3): Likewise.
3428 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3430 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3431 Replace match_operand with match_dup for the third operand in
3434 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3436 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3437 to track processing of conditionals. Update all callers.
3438 (try_combine, simplify_if_then_else): Update.
3440 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3442 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3445 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3447 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3448 instead of match_operand for operand 3.
3450 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3452 * recog.h (insn_operand_data): Add an "allows_mem" field.
3453 * genoutput.c (output_operand_data): Initialize it.
3454 * optabs.c (maybe_legitimize_operand_same_code): New function.
3455 (maybe_legitimize_operand): Use it when matching the original
3458 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3460 * gimplify.c: Fix issues in comments throughout.
3461 (voidify_wrapper_expr): Fix long line.
3462 (build_stack_save_restore): Likewise.
3463 (gimplify_loop_expr): Likewise.
3464 (gimplify_compound_lval): Likewise.
3465 (gimplify_init_ctor_eval): Likewise.
3466 (gimplify_modify_expr_rhs): Likewise.
3467 (omp_notice_threadprivate_variable): Likewise.
3469 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3471 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3472 original one if this is not a builtin function.
3474 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3477 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3478 offset it as needed based on top 2 bits in operands[3], change
3479 MEM mode to SFmode and mask those 2 bits away from operands[3].
3481 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3483 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3484 change from objc_declare_protocols() to objc_declare_protocol().
3486 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3488 * config/i386/sse.md (sse4_1): New mode attribute.
3489 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3490 avx_blend<ssemodesuffix><avxmodesuffix> and
3491 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3492 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3493 avx_blendv<ssemodesuffix><avxmodesuffix> and
3494 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3495 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3496 avx_dp<ssemodesuffix><avxmodesuffix> and
3497 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3498 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3499 (sse4_1_packusdw): Merge with *avx_packusdw.
3500 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3501 (sse4_1_pblendw): Merge with *avx_pblendw.
3502 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3503 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3504 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3506 (sse4_1_round<ssescalarmodesuffix>): Merge with
3507 *avx_round<ssescalarmodesuffix>.
3508 (aesenc): Merge with *avx_aesenc.
3509 (aesenclast): Merge with *avx_aesenclast.
3510 (aesdec): Merge with *avx_aesdec.
3511 (aesdeclast): Merge with *avx_aesdeclast.
3512 (pclmulqdq): Merge with *pclmulqdq.
3513 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3515 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3517 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3520 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3521 (align_local_variable): This. Update DECL_ALIGN.
3522 (add_stack_var): Updated.
3523 (expand_one_stack_var): Likewise.
3525 2011-04-14 Richard Guenther <rguenther@suse.de>
3527 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3529 (dse_initialize_block_local_data, dse_leave_block,
3530 record_voperand_set, get_stmt_uid): Likewise.
3531 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3532 (dse_optimize_stmt): Remove voperand set handling code.
3533 Simplify and improve to handle any kind of killing stmt.
3534 (dse_record_phi): Remove.
3535 (dse_enter_block): Simplify.
3536 (tree_ssa_dse): Likewise.
3537 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3539 2011-04-14 Jan Hubicka <jh@suse.cz>
3541 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3542 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3543 (cgraph_local_info): Remove inline_summary.
3544 * ipa-cp.c: Include ipa-inline.h.
3545 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3546 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3548 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3549 (input_overwrite_node): Do not set inline summary.
3550 (input_node): Do not stream inline summary.
3551 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3552 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3553 growth; we do not have inline parameters computed for that anyway.
3554 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3555 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3556 (inline_summary_t): New type and VECtor.
3557 (debug_inline_summary, dump_inline_summaries): Declare.
3558 (inline_summary): Use VOCtor.
3559 (estimate_edge_growth): Kill hack computing call stmt size directly.
3560 * lto-section-in.c (lto_section_name): Add inline section.
3561 * ipa-inline-analysis.c: Include lto-streamer.h
3562 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3563 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3564 (inline_summary_vec): Define.
3565 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3566 dump_inline_summaries): New functions.
3567 (estimate_function_body_sizes): Properly compute size/time of outgoing
3569 (compute_inline_parameters): Alloc inline_summary; do not compute
3570 size/time of incomming calls.
3571 (estimate_edge_time): Avoid missing time summary hack.
3572 (inline_read_summary): Read inline summary info.
3573 (inline_write_summary): Write inline summary info.
3574 (inline_free_summary): Free all hooks and inline summary vector.
3575 * lto-streamer.h: Add LTO_section_inline_summary section.
3576 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3577 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3579 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3581 * tree-vectorizer.h (vect_strided_store_supported): Add a
3582 HOST_WIDE_INT argument.
3583 (vect_strided_load_supported): Likewise.
3584 (vect_permute_store_chain): Return void.
3585 (vect_transform_strided_load): Likewise.
3586 (vect_permute_load_chain): Delete.
3587 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3588 count argument. Check that the count is a power of two.
3589 (vect_strided_load_supported): Likewise.
3590 (vect_permute_store_chain): Return void. Update after above changes.
3591 Assert that the access is supported.
3592 (vect_permute_load_chain): Likewise.
3593 (vect_transform_strided_load): Return void.
3594 * tree-vect-stmts.c (vectorizable_store): Update calls after
3595 above interface changes.
3596 (vectorizable_load): Likewise.
3597 (vect_analyze_stmt): Don't check for strided powers of two here.
3599 2011-04-14 Richard Guenther <rguenther@suse.de>
3601 PR tree-optimization/48590
3602 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3603 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3604 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3605 BUILT_IN_STACK_SAVE.
3606 * tree-ssa-dce.c (propagate_necessity): Handle
3607 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3609 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3611 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3614 2011-04-14 Richard Guenther <rguenther@suse.de>
3616 * tree.h (get_object_alignment_1): Declare.
3617 * builtins.c (get_object_alignment_1): Split out worker from ...
3618 (get_object_alignment): ... here.
3619 * fold-const.c (get_pointer_modulus_and_residue): Use
3620 get_object_alignment_1.
3622 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3624 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3626 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3627 parameter. Generalise code to handle arrays as well as vectors.
3628 (vect_setup_realignment): Update accordingly.
3629 * tree-vect-stmts.c (vectorizable_store): Likewise.
3630 (vectorizable_load): Likewise.
3632 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3634 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3635 within the per-copy loop.
3637 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3639 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3642 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3644 * doc/options.texi (Negative): Explicitly mention that the
3645 Negative chain must be circular.
3647 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3649 * function.h (block_chainon): Declare.
3650 * function.c (block_chainon): Define.
3652 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3653 Eric Weddington <eric.weddington@atmel.com>
3654 Georg-Johann Lay <avr@gjlay.de>
3656 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3658 (avr_init_builtins, avr_expand_builtin,
3659 avr_expand_delay_cycles, avr_expand_unop_builtin,
3660 avr_expand_binop_builtin ): New functions.
3661 (avr_builtin_id): New enum
3662 (struct avr_builtin_description): New struct
3663 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3664 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3666 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3667 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3668 UNSPECV_DELAY_CYCLES): new enumeration values
3669 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3670 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3671 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3672 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3673 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3674 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3675 "fmulsu"): New insns
3677 * config/avr/avr-c.c: fix line endings
3678 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3679 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3680 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3681 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3682 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3684 * doc/extend.texi (AVR Built-in Functions): New node
3685 (Target Builtins): Add documentation of AVR
3688 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3691 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3692 alone. Error if non-const data has attribute progmem.
3694 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3696 * tree.h (struct tree_constructor): Include tree_typed instead of
3698 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3699 TS_TYPED instead of TS_COMMON.
3701 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3703 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3704 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3705 (sse2_psadbw): Merge with *avx_psadbw.
3706 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3707 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3708 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3709 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3710 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3711 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3712 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3713 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3714 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3715 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3716 (ssse3_palignrti): Merge with *avx_palignrti.
3718 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3720 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3721 * tree-ssanames.c (fini_ssanames): VEC_free it.
3722 (make_ssa_name_fn): Update for VECness of free_ssanames.
3723 (release_ssa_name, release_dead_ssa_names): Likewise.
3724 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3726 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3727 TS_TYPED instead of TS_COMMON.
3729 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3731 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3732 statistics_counter_event.
3733 * tree-ssa-copyrename.c (stats): Define.
3734 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3735 statistics_counter_event.
3736 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3737 (bswap_stats, widen_mul_stats): Define.
3738 (insert_reciprocals): Increment rdivs_inserted.
3739 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3740 rfuncs_inserted. Add calls to statistics_counter_event.
3741 (execute_cse_sincos_1): Increment inserted.
3742 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3743 statistics_counter_event.
3744 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3745 of bswap_stats. Add calls to statistics_counter_event.
3746 (convert_mult_to_widen): Increment widen_mults_inserted.
3747 (convert_plusminus_to_widen): Increment maccs_inserted.
3748 (convert_mult_to_fma): Increment fmas_inserted.
3749 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3750 calls to statistics_counter_event.
3752 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3754 PR rtl-optimization/48455
3755 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3756 `temp_costs->mem_cost'.
3758 2011-04-13 Jan Hubicka <jh@suse.cz>
3760 * ipa-inline.h: New file.
3761 * ipa-inline-analysis.c: New file. Broken out of ...
3762 * ipa-inline.c: ... this file; update toplevel comment;
3763 include ipa-inline.h
3764 (inline_summary): Move to ipa-inline.h
3765 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3766 ipa-inline-analysis.c.
3767 (cgraph_estimate_time_after_inlining): Rename to
3768 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3769 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3770 to estimate_edge_growth.
3771 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3772 rename to estimate_size_after_inlining.
3773 (cgraph_mark_inline_edge): Update for new naming convention.
3774 (cgraph_check_inline_limits): Likewise.
3775 (cgraph_edge_badness): Likewise.
3776 (cgraph_decide_recursive_inlining): Likewise.
3777 (cgraph_decide_inlining_of_small_functions): Likewise.
3778 (cgraph_decide_inlining_incrementally): Likewise.
3779 (cgraph_estimate_growth): Rename to estimate_growth; move to
3780 ipa-inline-analysis.c.
3781 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3782 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3783 (compute_inline_parameters): Likewise.
3784 (compute_inline_parameters_for_current): Likewise.
3785 (pass_inline_parameters): Likewise.
3786 (inline_indirect_intraprocedural_analysis): Likewise.
3787 (analyze_function): Rename to inline_analyze_function; likewise.
3788 (add_new_function): Move to ipa-inline-analysis.c.
3789 (inline_generate_summary): Likewise.
3790 (inline_read_summary): Likewise.
3791 (inline_write_summary): Likewise.
3792 * Makefile.in (ipa-inline-analysis.c): New file.
3794 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3796 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3797 * configure: Regenerate.
3799 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3801 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3802 instead of tree_common.
3803 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3805 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3806 TS_TYPED rather than TS_COMMON.
3807 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3809 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3812 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3813 r20 around calls of __tablejump_elpm__
3815 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3818 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3820 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3822 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3824 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3825 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3826 (cfi_vec): New typedef.
3827 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3828 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3829 (cie_cfi_vec): New static variable.
3830 (cie_cfi_head): Delete.
3831 (add_cfi): Accept a cfi_vec * as first argument. All callers and
3832 declaration changed. Use vector rather than list operations.
3833 (new_cfi): Don't initialize the dw_cfi_next field.
3834 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3835 rather than list operations.
3836 (lookup_cfa): Use vector rather than list operations.
3837 (output_cfis): New argument upto. Accept a cfi_vec rather than
3838 a dw_cfi_ref list head as argument. All callers changed.
3839 Iterate over the vector using upto as a maximum index.
3840 (output_all_cfis): New static function.
3841 (output_fde): Use vector rather than list operations. Use the
3842 new upto argument for output_cfis rather than manipulating a
3844 (dwarf2out_begin_prologue): Change initializations to match
3846 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3847 from the vector length rather than searching for the end of a list.
3848 Use output_all_cfis.
3849 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3851 2011-04-13 Nick Clifton <nickc@redhat.com>
3853 * config/rx/rx.md (movmemsi): Do not use this pattern when
3854 volatile pointers are involved.
3856 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3858 * config/i386/sse.md (pinsrbits): Remove.
3859 (sse2_packsswb): Merge with *avx_packsswb.
3860 (sse2_packssdw): Merge with *avx_packssdw.
3861 (sse2_packuswb): Merge with *avx_packuswb.
3862 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3863 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3864 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3865 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3866 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3867 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3868 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3869 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3870 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3871 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3872 (sse2_loadld): Merge with *avx_loadld.
3873 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3874 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3875 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3876 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3877 (vec_concatv2di): Merge with *vec_concatv2di_avx.
3879 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3881 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3883 * print-tree.c (print_node): Likewise.
3884 * tree-inline.c (copy_tree_r): Likewise.
3885 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3886 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3887 instead of TS_COMMON.
3888 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3889 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3890 (copy_node_stat): Zero TREE_CHAIN only if necessary.
3891 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3892 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3894 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3896 (TREE_CHAIN): Check for a TS_COMMON structure.
3897 (TREE_TYPE): Check for a TS_TYPED structure.
3899 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
3901 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3902 cgraph_get_create_node instead of cgraph_node.
3904 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3906 * c-parser.c (c_parser_initelt): Updated call to
3907 objc_build_message_expr.
3908 (c_parser_postfix_expression): Likewise.
3910 2011-04-12 Kai Tietz <ktietz@redhat.com>
3912 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3913 MASK_MS_BITFIELD_LAYOUT bit.
3915 2011-04-12 Jakub Jelinek <jakub@redhat.com>
3917 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3918 assert it is always true.
3919 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3922 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3924 * c-parser.c (c_lex_one_token): Rewritten conditional used when
3925 compiling Objective-C to be more efficient.
3927 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
3929 * opts-common.c (decode_cmdline_options_to_array): Remove variable
3932 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3934 * recog.h, genoutput.c, optabs.c: Revert last patch.
3936 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3939 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3941 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3943 * recog.h (insn_operand_data): Add an "allows_mem" field.
3944 * genoutput.c (output_operand_data): Initialize it.
3945 * optabs.c (maybe_legitimize_operand_same_code): New function.
3946 (maybe_legitimize_operand): Use it when matching the original
3949 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3951 * genpreds.c (process_define_predicate): Move most processing
3952 to gensupport.c. Continue to validate the expression.
3953 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3954 (process_define_predicate): Move processing to gensupport.c.
3955 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3956 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3957 (compute_predicate_codes): Moved from genrecog.c. Add lineno
3959 (valid_predicate_name_p): New function, split out from old
3960 genpreds.c:process_define_predicate.
3961 (process_define_predicate): New function, combining code from
3962 old genpreds.c and genrecog.c functions.
3963 (process_rtx): Call it for DEFINE_PREDICATE and
3964 DEFINE_SPECIAL_PREDICATE.
3966 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
3968 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3969 size of a '%A' memory reference.
3970 (T_DREG, T_QREG): New neon_builtin_type_bits.
3971 (arm_init_neon_builtins): Assert that the load and store operands
3972 are neon_struct_operands.
3973 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3974 (NEON_ARG_MEMORY): New builtin_arg.
3975 (neon_dereference_pointer): New function.
3976 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3977 Handle NEON_ARG_MEMORY.
3978 (arm_expand_neon_builtin): Update after above interface changes.
3979 Use NEON_ARG_MEMORY for loads and stores.
3980 * config/arm/predicates.md (neon_struct_operand): New predicate.
3981 * config/arm/iterators.md (V_two_elem): Tweak formatting.
3982 (V_three_elem): Use BLKmode for accesses that have no associated mode.
3983 (V_four_elem): Tweak formatting.
3984 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3985 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3986 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3987 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3988 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3989 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3990 (neon_vst4<mode>): Replace pointer operand with a memory operand.
3991 Use %A in the output template.
3992 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3993 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3994 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3995 the width of the memory access. Remove post-increment.
3996 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3998 2011-04-12 Nick Clifton <nickc@redhat.com>
4000 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4001 instruction for interrupt handlers if the target is the basic V850
4003 (expand_epilogue): Likewise.
4005 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4007 PR rtl-optimization/48549
4008 * combine.c (propagate_for_debug): Also stop after BB_END of
4009 this_basic_block. Process LAST and just stop processing after it.
4010 (combine_instructions): If last_combined_insn has been deleted,
4011 set last_combined_insn to its PREV_INSN.
4013 2011-04-12 Richard Guenther <rguenther@suse.de>
4015 PR tree-optimization/46076
4016 * gimple.h (struct gimple_statement_call): Add fntype field.
4017 (gimple_call_fntype): Adjust.
4018 (gimple_call_set_fntype): New function.
4019 * gimple.c (gimple_build_call_1): Set the call function type.
4020 * gimplify.c (gimplify_call_expr): Preserve the function
4021 type the frontend used for the call.
4022 (gimplify_modify_expr): Likewise.
4023 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4025 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4027 * tree-ssa.c (useless_type_conversion_p): Function pointer
4028 conversions are useless.
4030 2011-04-12 Martin Jambor <mjambor@suse.cz>
4032 * cgraph.h (cgraph_node): Remove function declaration.
4033 (cgraph_create_node): Declare.
4034 (cgraph_get_create_node): Likewise.
4035 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4036 Updated all callers.
4037 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4038 the decl does not already exist. Call cgraph_get_create_node instead
4040 (cgraph_get_create_node): New function.
4041 (cgraph_same_body_alias): Update comment.
4042 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4043 assert it does not return NULL.
4044 (cgraph_update_edges_for_call_stmt): Likewise.
4045 (cgraph_clone_edge): Likewise.
4046 (cgraph_create_virtual_clone): Likewise.
4047 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4048 instead of cgraph_node.
4049 (cgraph_add_new_function): Call cgraph_create_node or
4050 cgraph_get_create_node instead of cgraph_node.
4051 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4052 instead of cgraph_node.
4053 (record_eh_tables): Likewise.
4054 (mark_address): Likewise.
4055 (mark_load): Likewise.
4056 (build_cgraph_edges): Call cgraph_get_create_node instead
4058 (rebuild_cgraph_edges): Likewise.
4059 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4060 instead of cgraph_node.
4061 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4063 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4064 cgraph_create_node instead of cgraph_node.
4065 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4067 * lto-cgraph.c (input_node): Likewise.
4068 * lto-streamer-in.c (input_function): Likewise.
4069 * varasm.c (mark_decl_referenced): Likewise.
4070 (assemble_alias): Likewise.
4072 2011-04-12 Martin Jambor <mjambor@suse.cz>
4074 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4075 instead of cgraph_node and assert it does not return NULL.
4076 * lto-streamer-in.c (lto_read_body): Likewise.
4077 * omp-low.c (new_omp_context): Likewise.
4078 (create_task_copyfn): Likewise.
4079 * tree-emutls.c (lower_emutls_function_body): Likewise.
4080 * matrix-reorg.c (transform_allocation_sites): Likewise.
4082 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4085 * c-typeck.c (build_asm_expr): Error out on attempts to use
4086 void type outputs or inputs for constraints that allow reg or
4089 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4090 Richard Earnshaw <rearnsha@arm.com>
4093 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4094 to use sign-magnitude offsets. Reject unsupported unaligned
4095 cases. Add detailed description in comments.
4096 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4097 condition from TARGET_32BIT to TARGET_ARM.
4099 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4101 * tree.h (struct typed_tree): New.
4102 (struct tree_common): Include it instead of tree_base.
4103 (TREE_TYPE): Update for new location of type field.
4104 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4105 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4106 (union tree_node): Add typed field.
4107 * treestruct.def (TS_TYPED): New.
4108 * lto-streamer.c (check_handled_ts_structures): Handle it.
4109 * tree.c (MARK_TS_TYPED): New macro.
4110 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4112 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4114 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4115 (force_nonfallthru): Do not alter the loop nest if no basic block
4118 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4120 * config/i386/sse.md (VI): New mode iterator.
4122 (AVX256MODEI): Ditto.
4123 (AVXMODEF4P): Ditto.
4124 (avxvecpsmode): Ditto.
4125 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4126 (sse2_andnot<mode>3): New expander.
4127 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4128 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4129 (<any_logic:code><mode>3): Use VI mode iterator.
4130 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4131 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4132 (*andnottf3): Handle AVX three-operand constraints.
4133 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4135 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4136 Robert Millan <rmh@gnu.org>
4138 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4139 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4140 GNU_USER_DYNAMIC_LINKER64): Define.
4141 (REG_NAME): Don't undefine.
4142 (MD_UNWIND_SUPPORT): Undefine.
4143 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4144 (REG_NAME): Don't undefine.
4145 (MD_UNWIND_SUPPORT): Undefine.
4146 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4148 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4150 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4151 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4153 2011-04-11 Xinliang David Li <davidxl@google.com>
4155 * value-profile.c (check_ic_target): New function.
4156 (gimple_ic_transform): Sanity check indirect call target.
4157 * gimple-low.c (gimple_check_call_args): Interface change.
4158 (gimple_check_call_matching_types): New function.
4159 * tree-inline.c (tree_can_inline_p): Call new function.
4161 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4163 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4164 tree-pretty-print.h & realmpfr.h.
4166 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4169 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4170 (setup_allocno_and_important_classes): Ditto.
4172 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4174 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4175 GNU_USER_DYNAMIC_LINKER.
4176 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4177 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4178 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4179 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4180 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4181 GNU_USER_TARGET_OS_CPP_BUILTINS.
4182 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4183 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4184 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4185 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4186 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4187 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4188 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4189 GNU_USER_TARGET_OS_CPP_BUILTINS.
4190 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4191 GNU_USER_DYNAMIC_LINKER.
4192 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4193 GNU_USER_TARGET_OS_CPP_BUILTINS.
4194 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4195 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4196 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4197 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4198 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4199 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4200 GNU_USER_DYNAMIC_LINKER64): Remove.
4201 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4202 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4203 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4204 GNU_USER_DYNAMIC_LINKER.
4205 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4206 GNU_USER_TARGET_OS_CPP_BUILTINS.
4207 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4208 GNU_USER_TARGET_OS_CPP_BUILTINS.
4209 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4210 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4211 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4212 GNU_USER_TARGET_OS_CPP_BUILTINS.
4213 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4214 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4215 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4216 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4217 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4218 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4219 GNU_USER_DYNAMIC_LINKER.
4220 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4221 GNU_USER_TARGET_OS_CPP_BUILTINS.
4222 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4223 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4224 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4225 GNU_USER_DYNAMIC_LINKER.
4226 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4227 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4228 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4229 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4230 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4231 GNU_USER_DYNAMIC_LINKER.
4232 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4233 GNU_USER_DYNAMIC_LINKERN32.
4234 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4235 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4236 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4237 GNU_USER_DYNAMIC_LINKER32.
4238 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4239 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4240 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4241 GNU_USER_DYNAMIC_LINKER.
4242 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4243 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4244 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4245 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4246 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4247 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4248 GNU_USER_DYNAMIC_LINKER32.
4249 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4250 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4251 GNU_USER_DYNAMIC_LINKER.
4252 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4253 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4254 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4255 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4256 GNU_USER_DYNAMIC_LINKER64.
4257 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4258 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4259 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4260 GNU_USER_DYNAMIC_LINKER.
4261 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4262 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4263 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4264 GNU_USER_DYNAMIC_LINKER.
4265 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4266 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4267 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4268 GNU_USER_DYNAMIC_LINKER32.
4269 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4270 GNU_USER_DYNAMIC_LINKER64.
4271 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4272 GNU_USER_DYNAMIC_LINKER64.
4273 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4274 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4275 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4276 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4277 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4279 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4281 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4282 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4283 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4284 GNU_USER_DYNAMIC_LINKER.
4285 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4286 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4287 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4288 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4289 GNU_USER_DYNAMIC_LINKER64.
4290 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4291 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4292 GNU_USER_LINK_EMULATION.
4293 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4294 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4295 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4296 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4297 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4298 CPP_SPEC, CC1_SPEC): Remove.
4299 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4300 (GNU_USER_DYNAMIC_LINKER): Define.
4301 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4302 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4303 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4304 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4305 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4306 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4307 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4308 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4309 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4310 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4311 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4312 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4313 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4314 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4315 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4316 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4317 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4318 GNU_USER_DYNAMIC_LINKER.
4319 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4320 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4321 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4322 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4323 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4324 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4325 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4326 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4327 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4328 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4330 2011-04-11 Kai Tietz <ktietz@redhat.com>
4334 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4335 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4337 (ix86_is_msabi_thiscall): Removed.
4338 (ix86_is_type_thiscall): Likewise.
4339 (ix86_get_callcvt): New function.
4340 (ix86_comp_type_attributes): Simplify check.
4341 (ix86_function_regparm): Use ix86_get_callcvt for calling
4342 convention attribute checks.
4343 (ix86_return_pops_args): Likewise.
4344 (ix86_static_chain): Likewise.
4345 (x86_this_parameter): Likewise.
4346 (x86_output_mi_thunk): Likewise.
4347 (ix86_function_type_abi): Optimize check for types without attributes.
4348 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4349 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4350 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4352 (IX86_BASE_CALLCVT): Helper macro.
4353 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4354 Use ix86_get_callcvt for calling convention attribute checks and avoid
4355 symbol-decoration for stdcall in TARGET_RTD case.
4356 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4358 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4361 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4363 * config/i386/sse.md (VI_128): New mode iterator.
4364 (VI12_128): Rename from SSEMODE12.
4365 (VI14_128): Rename from SSEMODE14.
4366 (VI124_128): New mode iterator.
4367 (VI24_128): Rename from SSEMODE248.
4368 (VI248_128): Rename from SSEMODE248.
4369 (SSEMODE124C8): Remove.
4370 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4371 (*sse2_<plusminus_insn><mode>3): Merge with
4372 *avx_<plusminus_insn><mode>3.
4373 (*mulv8hi3): Merge with *avx_mulv8hi3.
4374 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4375 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4376 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4377 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4378 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4379 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4380 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4381 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4382 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4383 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4384 (*<smaxmin:code>v8hi3): Ditto.
4385 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4386 (*<smaxmin:code>v16qi3): Ditto.
4387 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4388 (*sse2_eq<mode>3): Ditto.
4389 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4390 (*sse2_gt<mode>3): Ditto.
4391 (vcondv2di): Split out of vcond<mode>.
4392 (vconduv2di): Split out of vcondu<mode>.
4394 2011-04-11 Richard Guenther <rguenther@suse.de>
4396 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4397 before calling tree_low_cst.
4399 2011-04-11 Richard Guenther <rguenther@suse.de>
4401 * stor-layout.c (layout_type): Compute all array index size operations
4402 in the original type.
4403 (initialize_sizetypes): Add comment.
4404 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4406 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4408 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4410 2011-04-11 Martin Jambor <mjambor@suse.cz>
4412 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4413 of cgraph_node, handle NULL return value.
4414 (cgraph_global_info): Likewise.
4415 (cgraph_rtl_info): Likewise.
4416 * tree-inline.c (estimate_num_insns): Likewise.
4417 * gimplify.c (unshare_body): Likewise.
4418 (unvisit_body): Likewise.
4419 (gimplify_body): Likewise.
4420 * predict.c (optimize_function_for_size_p): Likewise.
4421 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4422 (call_may_clobber_ref_p_1): Likewise.
4423 * varasm.c (function_section_1): Likewise.
4424 (assemble_start_function): Likewise.
4426 2011-04-11 Martin Jambor <mjambor@suse.cz>
4428 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4430 * final.c (rest_of_clean_state): Likewise.
4431 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4432 * passes.c (pass_init_dump_file): Likewise.
4433 (execute_all_ipa_transforms): Likewise.
4434 (function_called_by_processed_nodes_p): Likewise.
4435 * predict.c (maybe_hot_frequency_p): Likewise.
4436 (probably_never_executed_bb_p): Likewise.
4437 (compute_function_frequency): Likewise.
4438 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4439 (unnest_nesting_tree_1): Likewise.
4440 (lower_nested_functions): Likewise.
4441 * tree-optimize.c (execute_fixup_cfg): Likewise.
4442 (tree_rest_of_compilation): Likewise.
4443 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4444 * tree-sra.c (ipa_early_sra): Likewise.
4445 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4446 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4447 * ipa.c (record_cdtor_fn): Likewise.
4448 * ipa-inline.c (cgraph_early_inlining): Likewise.
4449 (compute_inline_parameters_for_current): Likewise.
4450 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4451 * ipa-pure-const.c (local_pure_const): Likewise.
4452 * ipa-split.c (split_function): Likewise.
4453 (execute_split_functions): Likewise.
4454 * cgraphbuild.c (build_cgraph_edges): Likewise.
4455 (rebuild_cgraph_edges): Likewise.
4456 (cgraph_rebuild_references): Likewise.
4457 (remove_cgraph_callee_edges): Likewise.
4458 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4459 (verify_cgraph_node): Likewise.
4460 (cgraph_analyze_functions): Likewise.
4461 (cgraph_preserve_function_body_p): Likewise.
4462 (save_inline_function_body): Likewise.
4463 (save_inline_function_body): Likewise.
4464 * tree-inline.c (copy_bb): Likewise.
4465 (optimize_inline_calls): Likewise.
4467 2011-04-11 Martin Jambor <mjambor@suse.cz>
4469 PR tree-optimization/48195
4470 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4471 ipa_check_create_edge_args.
4472 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4473 ipa_check_create_edge_args.
4474 * ipa-inline.c (inline_generate_summary): Do not call
4475 ipa_check_create_node_params and ipa_check_create_edge_args.
4476 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4477 ipa_check_create_edge_args.
4479 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4481 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4483 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4484 * function.c (record_hard_reg_sets): Likewise.
4485 * ira.c (compute_regs_asm_clobbered): Likewise.
4486 * sched-deps.c (sched_analyze_1): Likewise.
4487 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4489 2011-04-09 Xinliang David Li <davidxl@google.com>
4491 PR tree-optimization/PR48484
4492 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4493 has_valid_pred lazily
4495 2011-04-09 Duncan Sands <baldrick@free.fr>
4497 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4499 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4501 * combine.c (combine_validate_cost): Adjust comments. Set registered
4502 cost of I0 to zero at the end, if any.
4504 2011-04-08 Xinliang David Li <davidxl@google.com>
4506 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4507 to insane profile data.
4509 2011-04-08 Xinliang David Li <davidxl@google.com>
4511 * ipa-cp.c (ipcp_update_profiling): Correct
4512 negative scale factor due to insane profile data.
4514 2011-04-08 Xinliang David Li <davidxl@google.com>
4516 * final.c (dump_basic_block_info): New function.
4517 (final): Dump basic block.
4518 (final_scan_insn): Remove old dump.
4520 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4523 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4526 2011-04-08 Michael Matz <matz@suse.de>
4529 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4531 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4532 * rtl.h (rebuild_jump_labels_chain): Declare.
4533 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4534 insns inserted on edges.
4536 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4538 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4539 * config/arm/arm-arches.def: New.
4540 * config/arm/arm-opts.h: New.
4541 * config/arm/genopt.sh: New.
4542 * config/arm/arm-tables.opt: New (generated).
4543 * config/arm/arm.c (arm_handle_option, arm_target_help,
4544 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4545 (all_architectures): Get most table contents from arm-arches.def.
4546 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4547 arm_selected_tune here.
4548 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4549 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4550 (march=, mcpu=, mtune=): Use Enum and Var.
4551 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4552 (arm.o): Update dependencies.
4554 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4556 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4558 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4559 (write_typed_alloc_defns): Likewise.
4560 (main): Calls write_typed_alloc_defns with output_header.
4562 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4565 * ira-color.c (setup_profitable_hard_regs): Add comments.
4566 Don't take prohibited hard regs into account.
4567 (setup_conflict_profitable_regs): Rename to
4568 get_conflict_profitable_regs.
4569 (check_hard_reg_p): Check prohibited hard regs.
4571 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4573 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4574 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4575 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4577 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4580 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4581 move from floating point to shift amount register.
4582 (emit_move_sequence): Remove secondary reload support for floating
4583 point to shift amount amount register copies.
4584 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4585 amount register copies.
4586 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4587 register, return false if mode isn't a scalar integer mode.
4588 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4590 2011-04-08 Richard Guenther <rguenther@suse.de>
4592 * gimple.c (gimple_call_flags): Remove kludge.
4594 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4596 * sel-sched.c (sel_region_init): Move call to
4597 sel_setup_region_sched_flags after setup_current_loop_nest.
4599 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4601 PR rtl-optimization/48272
4602 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4603 init_insn_reg_pressure_info. Adjust a caller.
4604 * sched-int.h (init_insn_reg_pressure_info): Declare.
4605 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4606 when sched-pressure is enabled.
4608 2011-04-08 Richard Guenther <rguenther@suse.de>
4610 * gimple.c (gimple_set_modified): Do not queue calls to
4611 MODIFIED_NORETURN_CALLS here ...
4612 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4614 2011-04-08 Richard Guenther <rguenther@suse.de>
4617 * toplev.c (lang_dependent_init): Do not open asm_out_file
4618 in WPA mode, nor perform debug machinery initialization.
4619 (finalize): Do not unlink asm_out_file in WPA mode.
4621 2011-04-08 Richard Guenther <rguenther@suse.de>
4623 * gimple.h (gimple_call_fntype): New function.
4624 (gimple_call_return_type): Use it.
4625 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4626 * gimple-low.c (gimple_check_call_args): Likewise.
4627 * gimple.c (gimple_call_flags): Likewise.
4628 (gimple_call_arg_flags): Likewise.
4629 (gimple_call_return_flags): Likewise.
4630 * tree-cfg.c (verify_gimple_call): Likewise.
4631 (do_warn_unused_result): Likewise.
4632 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4633 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4635 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4637 PR rtl-optimization/48235
4638 * sel-sched.c (code_motion_process_successors): Recompute the last
4639 insn in basic block if control flow changed.
4640 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4641 Update condition for ilist_remove.
4643 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4645 PR rtl-optimization/48302
4646 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4647 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4648 it to record added preheader blocks.
4649 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4650 on to sel_add_loop_preheaders.
4651 (sel_region_init): Move call to setup_current_loop_nest after
4654 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4657 * cfgloop.h (loop_has_exit_edges): New helper.
4658 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4660 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4661 that have no exit edges.
4663 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4665 PR rtl-optimization/48442
4666 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4667 all callers. Adjust assert.
4669 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4671 PR tree-optimization/48377
4672 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4673 is_packed to true even for types with smaller TYPE_ALIGN than
4676 2011-04-08 Richard Guenther <rguenther@suse.de>
4679 * doc/tm.texi: Re-generate.
4681 2011-04-08 Wei Guozhi <carrot@google.com>
4684 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4685 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4686 * config/arm/arm.md (*push_multi): Change the length computation to
4689 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4691 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4692 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4693 * doc/tm.texi: Regenerate.
4694 * system.h (ASM_OUTPUT_BSS): Poison.
4695 * varasm.c (asm_output_bss): Remove function.
4696 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4698 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4699 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4700 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4701 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4703 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4705 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4707 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4709 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4711 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4714 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4716 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4717 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4718 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4720 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4721 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4722 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4723 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4724 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4725 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4726 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4727 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4728 options. Don't map other m68k options manually. Don't handle
4729 old-style options as canonical.
4730 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4731 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4733 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4735 * basic-block.h (force_nonfallthru): Move to...
4736 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4737 (force_nonfallthru): ...here.
4738 * cfghooks.c (force_nonfallthru): New function.
4739 * cfgrtl.c (force_nonfallthru): Rename into...
4740 (rtl_force_nonfallthru): ...this.
4741 (commit_one_edge_insertion): Do not set AUX field.
4742 (commit_edge_insertions): Do not discover new basic blocks.
4743 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4744 (cfg_layout_rtl_cfg_hooks): Likewise.
4745 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4746 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4747 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4749 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4751 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4754 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4756 * config/i386/sse.md: Update copyright year.
4757 (avxcvtvecmode): Remove.
4758 (sse_movhlps): Merge with *avx_movhlps.
4759 (sse_movlhps): Merge with *avx_movlhps.
4760 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4761 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4762 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4763 (sse_loadhps): Merge with *avx_loadhps.
4764 (sse_storelps): Merge with *avx_storelps.
4765 (sse_loadlps): Merge with *avx_loadlps.
4766 (sse_movss): Merge with *avx_movss.
4767 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4768 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4769 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4770 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4771 (vec_set<mode>_0): Ditto.
4772 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4773 (sse4_1_insertps): Merge with *avx_insertps.
4774 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4775 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4776 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4777 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4778 (sse2_storehpd): Merge with *avx_storehpd.
4779 (sse2_loadhpd): Merge with *avx_loadhpd.
4780 (sse2_loadlpd): Merge with *avx_loadlpd.
4781 (sse2_movsd): Merge with *avx_movsd.
4782 (*vec_concatv2df): Merge with *vec_concatv2df.
4784 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4787 * combine.c (combine_instructions): Add last_combined_insn,
4788 update it if insn is after it, pass it to all try_combine calls.
4789 (try_combine): Add last_combined_insn parameter, pass it instead of
4790 i3 to propagate_for_debug.
4792 2011-04-07 Nick Clifton <nickc@redhat.com>
4794 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4795 to handle MDR <-> data register transfers.
4796 (movhi_internal): Likewise.
4798 2011-04-07 Alan Modra <amodra@gmail.com>
4800 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4801 previous stack info.
4803 2011-04-07 Tom de Vries <tom@codesourcery.com>
4806 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4807 flow_find_cross_jump. Swap variables to implement backward replacement.
4808 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4810 2011-04-07 Tom de Vries <tom@codesourcery.com>
4813 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4814 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4816 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4817 src1 or src2. Redirect edges to the last basic block. Update
4818 frequency and count on multiple basic blocks in case of fallthru.
4820 2011-04-07 Tom de Vries <tom@codesourcery.com>
4823 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4825 (old_insns_match_p): Change return type. Replace return false/true
4826 with return dir_none/dir_both. Use can_replace_by.
4827 (flow_find_cross_jump): Add dir_p parameter. Init replacement
4828 direction from dir_p. Register replacement direction in dir, last_dir
4829 and afterlast_dir. Handle new return type of old_insns_match_p using
4830 merge_dir. Return replacement direction in dir_p.
4831 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4832 return type of old_insns_match_p.
4833 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4834 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4835 flow_find_cross_jump.
4836 * basic-block.h (enum replace_direction): New type.
4837 (flow_find_cross_jump): Add parameter to declaration.
4839 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4841 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4842 (AVXMODEDCVTPS2DQ): Ditto.
4843 (VEC_FLOAT_MODE): Ditto.
4844 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
4845 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4846 (<any_logic:code><mode>3): Use VF mode iterator.
4847 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4848 Use VF mode iterator.
4849 (copysign<mode>3): Use VF mode iterator.
4850 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
4851 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4852 (*<any_logic:code><MODEF:mode>3): Merge with
4853 *avx_<any_logic:code><MODEF:mode>3.
4854 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4855 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4856 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4857 (avx_cvtdq2ps<avxmodesuffix>): Remove.
4858 (sse2_cvtdq2ps): Use %v modifier.
4859 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4860 (avx_cvtps2dq<avxmodesuffix>): Remove.
4861 (sse2_cvtps2dq): Use %v modifier.
4862 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4863 (avx_cvttps2dq<avxmodesuffix>): Remove.
4864 (sse2_cvttps2dq): Use %v modifier.
4865 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4866 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4867 (sse2_cvtsd2siq): Fix insn template.
4868 (sse2_cvtsd2siq_2): Ditto.
4869 (sse2_cvttsd2siq): Ditto.
4870 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4871 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4873 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4875 * gcov-io.c: Use GCC Runtime Library Exception.
4877 2011-04-06 Jakub Jelinek <jakub@redhat.com>
4880 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4881 as base_reg whatever register reg has been eliminated to, instead
4882 of hardcoding STACK_POINTER_REGNUM.
4884 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4886 * doc/tm.texi.in: Document C target hooks as separate from general
4888 * doc/tm.texi: Regenerate.
4889 * genhooks.c (struct hook_desc): Add docname field.
4890 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
4892 (hook_array): Include c-target.def.
4893 (emit_documentation): Use docname field in output.
4894 (emit_init_macros): Take docname argument. Only emit definitions
4895 for hooks matching docname.
4896 (main): Expect additional arguments in all cases. Pass argument
4897 to emit_init_macros.
4898 * target.def: Move initial macro definitions and comments to
4899 target-hooks-macros.h.
4900 (gcc_targetcm): Move to c-family/c-target.def.
4901 * target.h (targetcm): Move declaration to c-family/c-target.h.
4902 * targhooks.c (default_handle_c_option): Move to
4904 * targhooks.h (default_handle_c_option): Move declaration to
4905 c-family/c-common.h.
4906 * target-hooks-macros.h: New file.
4907 * config.gcc (target_has_targetcm): Define and use to add to
4908 c_target_objs and cxx_target_objs.
4909 * config/default-c.c: New file.
4910 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4911 of target.h and target-def.h.
4912 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4913 (darwin_objc_construct_string, darwin_cfstring_ref_p,
4914 darwin_check_cfstring_format_arg): Make static.
4915 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4916 TARGET_STRING_OBJECT_REF_TYPE_P,
4917 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4918 * config/darwin-protos.h (darwin_objc_construct_string,
4919 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4921 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4922 TARGET_STRING_OBJECT_REF_TYPE_P,
4923 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4924 * config/t-darwin (darwin-c.o): Update dependencies.
4925 * system.h (TARGET_HAS_TARGETCM): Poison.
4926 * Makefile.in (TARGET_H): Update.
4927 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4928 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4929 (default-c.o): New target.
4930 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4931 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4932 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
4934 (build/genhooks.o): Update dependencies.
4936 2011-04-06 Richard Guenther <rguenther@suse.de>
4938 * ipa-inline.c (enum inlining_mode): Remove.
4939 (cgraph_flatten): Use some other token.
4940 (cgraph_edge_early_inlinable_p): New function, split out from ...
4941 (cgraph_perform_always_inlining): New function, split out from ...
4942 (cgraph_decide_inlining_incrementally): ... here.
4943 (cgraph_mark_inline_edge): Adjust.
4944 (cgraph_early_inlining): Re-structure.
4945 (pass_early_inline): Require SSA form.
4947 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
4948 Julian Brown <julian@codesourcery.com>
4949 Mark Shinwell <shinwell@codesourcery.com>
4951 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4952 LO_REGS only for Thumb-1.
4953 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4954 be used in short instructions when optimising for size on Thumb-2.
4956 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
4958 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4959 associated with user returns to be preserved.
4961 2011-04-06 Tristan Gingold <gingold@adacore.com>
4963 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4964 symbol_queue_size, DBXOUT_DECR_NESTING,
4965 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4966 if XCOFF_DEBUGGING_INFO.
4968 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
4970 * config/i386/i386.md (attribute isa): New.
4971 (attribute enabled): New.
4972 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4973 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4974 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4975 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4976 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4977 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4978 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4979 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4981 * config/i386/sse.md (VF): New mode iterator.
4985 (SSEMODEF4): Remove.
4986 (attribute sse): Handle V8SF and V4DF modes.
4987 (<absneg:code><mode>2): Use VF mode iterator.
4988 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
4990 (<plusminus_insn><mode>3): Use VF mode iterator.
4991 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4992 Use VF mode iterator.
4993 (<sse>_vm<plusminus_insn><mode>3): Merge with
4994 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
4995 (mul<mode>3): Use VF mode iterator.
4996 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
4997 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
4999 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5000 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5001 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5002 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5004 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5005 Use VF1 mode iterator.
5006 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5007 (sqrt<VF2:mode>2): New expander.
5008 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5009 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5010 and sqrtv2df2. Use VF mode iterator.
5011 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5013 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5014 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5015 Use VF1 mode iterator.
5016 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5017 (<smaxmin:code><mode>3): Use VF mode iterator.
5018 (*<smaxmin:code><mode>3_finite): Merge with
5019 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5020 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5021 (<sse>_vm<smaxmin:code><mode>2): Merge with
5022 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5023 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5025 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5027 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5028 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5029 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5030 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5031 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5033 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5034 Use VF_128 mode iterator.
5035 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5037 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5038 VF_128 mode iterator.
5039 (vcond<mode>): Use VF mode iterator.
5040 * config/i386/predicates.md (sse_comparison_operator): Merge with
5041 avx_comparison_float_operator. Do not declare as special_predicate.
5042 * config/i386/i386.c (struct builtin_description): Update for renamed
5044 (ix86_expand_args_builtin): Ditto.
5045 (ix86_expand_sse_compare_mask): Ditto.
5047 2011-04-06 Richard Guenther <rguenther@suse.de>
5049 * tree-inline.c (estimate_num_insns): For calls simply account
5050 for all passed arguments and a used return value.
5052 2011-04-06 Richard Guenther <rguenther@suse.de>
5054 PR tree-optimization/47663
5055 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5056 call_stmt_time fields.
5057 (cgraph_edge_inlinable_p): Declare.
5058 (cgraph_edge_recursive_p): New inline function.
5059 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5060 (cgraph_clone_edge): Copy it.
5061 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5062 Account for call stmt time.
5063 (cgraph_estimate_time_after_inlining): Take edge argument.
5064 (cgraph_estimate_edge_growth): Account call stmt size.
5065 (cgraph_estimate_size_after_inlining): Take edge argument.
5066 (cgraph_mark_inline_edge): Adjust.
5067 (cgraph_check_inline_limits): Likewise.
5068 (cgraph_recursive_inlining_p): Remove.
5069 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5070 (cgraph_decide_recursive_inlining): Take edge argument and
5072 (cgraph_decide_inlining_of_small_functions): Do not avoid
5073 diags for recursive inlining here.
5074 (cgraph_flatten): Adjust.
5075 (cgraph_decide_inlining_incrementally): Likewise.
5076 (estimate_function_body_sizes): Remove call cost handling.
5077 (compute_inline_parameters): Initialize caller edge call costs.
5078 (cgraph_estimate_edge_growth): New function.
5079 (cgraph_estimate_growth): Use it.
5080 (cgraph_edge_badness): Likewise.
5081 (cgraph_check_inline_limits): Take an edge argument.
5082 (cgraph_decide_inlining_of_small_functions): Adjust.
5083 (cgraph_decide_inlining): Likewise.
5084 * tree-inline.c (estimate_num_insns): Only account for call
5085 return value if it is used.
5086 (expand_call_inline): Avoid diagnostics on recursive inline
5088 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5089 (input_edge): Input edge call costs.
5091 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5093 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5095 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5097 * doc/invoke.texi (Spec Files): Fix typo.
5099 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5101 * profile.c (branch_prob): Move declaration of local variable. Remove
5102 obsolete ??? comment. Expand the location explicitly instead of using
5103 the LOCATION_FILE and LOCATION_LINE macros.
5105 2011-04-06 Wei Guozhi <carrot@google.com>
5108 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5109 (arm_cond_branch): Likewise.
5110 (arm_cond_branch_reversed): Likewise.
5111 (arm_jump): Likewise.
5112 (push_multi): Likewise.
5113 * config/arm/constraints.md (Py): New constraint.
5115 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5118 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5120 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5121 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5122 #ifdef DBX_DEBUGGING_INFO.
5124 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5127 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5128 if old and new states differ.
5130 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5132 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5133 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5134 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5135 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5136 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5138 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5139 ColdFire options to -mcpu= options.
5141 2011-04-05 Jeff Law <law@redhat.com>
5143 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5144 check if BB is a successor of LOOP->header and return
5145 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5147 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5149 * cprop.c (struct reg_use): Remove.
5150 (reg_use_table): Make an array of RTX.
5151 (find_used_regs, constprop_register, local_cprop_pass,
5152 bypass_block): Simplify users of reg_use_table.
5153 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5154 on one of the uses found by find_used_regs.
5156 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5159 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5162 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5164 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5166 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5168 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5171 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5173 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5175 * combine.c: Include obstack.h.
5176 (struct insn_link): Define.
5177 (uid_log_links): Adjust type.
5178 (FOR_EACH_LOG_LINK): New macro.
5179 (insn_link_obstack): Declare.
5180 (alloc_insn_link): Define.
5181 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5182 type of link variables.
5183 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5184 (try_combine, record_promoted_values, distribute_notes): Likewise.
5185 (distribute_links): Likewise. Tweak prototype.
5186 (clear_log_links): Delete.
5187 (adjust_for_new_dest): Call alloc_insn_link.
5188 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5190 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5192 * gcse.c (modify_mem_list): Convert to an array of VECs.
5193 (canon_modify_mem_list, compute_transp): Tweak formatting.
5194 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5195 (load_killed_in_block_p): Likewise.
5196 (record_last_mem_set_info): Likewise.
5197 (clear_modify_mem_tables): Likewise.
5199 2011-04-05 Tom de Vries <tom@codesourcery.com>
5202 * function.c (emit_use_return_register_into_block): Only define if
5205 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5207 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5209 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5211 * config/rx/rx-opts.h: New.
5212 * config/rx/rx.c (rx_cpu_type): Remove.
5213 (rx_handle_option): Don't assert that global structures are in
5214 use. Access variables via opts pointer. Defer most handling of
5215 OPT_mint_register_. Use error_at.
5216 (rx_option_override): Handle deferred OPT_mint_register_ here.
5217 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5218 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5219 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5220 (rx_cpu_types): New Enum and EnumValue entries.
5221 (mint-register=): Use Defer and use Var accordingly.
5223 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5225 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5226 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5227 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5229 (debug_free_queue, debug_nesting, symbol_queue_index):
5231 * dbxout.c: ...to here. Make static.
5233 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5235 * gcse.c (modify_pair): Define. Define a VEC of it.
5236 (canon_modify_mem_list): Convert to an array of VECs.
5237 (free_insn_expr_list_list): Delete.
5238 (clear_modify_mem_tables): Call VEC_free instead.
5239 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5240 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5241 (canon_list_insert, compute_transp): Likewise.
5243 2011-04-05 Tom de Vries <tom@codesourcery.com>
5246 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5249 2011-04-05 Tom de Vries <tom@codesourcery.com>
5252 * function.c (emit_use_return_register_into_block): New function.
5253 (thread_prologue_and_epilogue_insns): Use
5254 emit_use_return_register_into_block.
5256 2011-04-05 Tom de Vries <tom@codesourcery.com>
5259 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5262 2011-04-05 Tom de Vries <tom@codesourcery.com>
5264 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5266 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5268 * config/arm/arm.md (define_constants for unspec): Replace with
5270 (define_constants for unspecv): Replace with define_c_enum.
5271 * config/arm/neon.md (define_constants for unspec): Replace with
5274 2011-04-04 Richard Henderson <rth@redhat.com>
5277 * dwarf2out.c (output_line_info): Always emit line info from
5278 at least one section.
5279 (dwarf2out_init): Create text_section_line_info here ...
5280 (set_cur_line_info_table): ... not here.
5282 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5285 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5288 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5290 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5292 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5293 (expr_equiv_p): Remove.
5294 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5295 (hash_scan_set): Update call to insert_set_in_table.
5296 (dump_hash_table): Dump <dest, src> pair.
5297 (lookup_set): Simplify. Lookup <dest, src> pair.
5298 (compute_transp): Remove, fold heavily simplified code into...
5299 (compute_local_properties): ...here. Expect COMP and TRANSP
5301 (find_avail_set): Take set directly from struct expr.
5302 (find_bypass-set): Likewise.
5303 (bypass_block): Likewise.
5304 (cprop_insn): Likewise. Remove redundant INSN_P test.
5306 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5307 checks on form of COND from find_implicit_sets to here.
5308 (find_implicit_sets): Cleanup control flow. Split critical edges
5309 if it exposes implicit sets. Allocate/resize implicit_sets as
5311 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5312 changed something. Run df_analyze after find_implicit_sets if any
5313 edges were split. Do not allocate implicit_sets here.
5315 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5316 (gcse_obstack): Renamed to cprop_obstack.
5317 (GNEW, GNEWVEC, GNEWVAR): Remove.
5319 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5320 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5321 (gcse_alloc): Likewise, and rename to cprop_alloc.
5322 (alloc_gcse_men, free_gcse_mem): Remove.
5323 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5324 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5325 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5327 * cprop.c (oprs_not_set_p): Remove.
5328 (mark_set, mark_clobber): Remove.
5329 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5330 (reg_not_set_p): New function.
5331 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5332 (cprop_insn): Likewise.
5333 (cprop_jump): Use FOR_EACH_EDGE.
5335 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5338 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5339 (rank_for_schedule): Use scheduled_insns vector instead of
5340 last_scheduled_insn.
5341 (ok_for_early_queue_removal): Likewise.
5342 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5344 (choose_ready): Likewise.
5345 (commit_schedule): Use VEC_iterate.
5346 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5347 a dbg_cnt, use it and ensure the first insn is in the ready list.
5348 (haifa_sched_init): Allocate scheduled_insns.
5349 (sched_extend_ready_list): Don't allocate it; reserve space.
5350 (haifa_sched_finish): Free it.
5352 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5354 * optc-gen.awk: Always remove type from Variable entry before
5355 recording in var_seen.
5357 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5359 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5360 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5361 call to tidy_fallthru_edges.
5363 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5365 * doc/options.texi (ToLower): Document.
5366 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5367 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5368 * opts.h (cl_option): Add cl_tolower field.
5369 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5370 arguments with lowercase strings.
5371 * config/rx/rx.opt (mcpu=): Add ToLower.
5372 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5375 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5377 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5379 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5381 * config/vax/vax.c: Include reload.h.
5383 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5385 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5386 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5387 (sparc_preferred_reload_class): New function.
5389 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5392 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5393 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5395 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5397 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5398 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5400 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5402 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5403 (ASM_OUTPUT_ALIGNED_BSS): Define.
5405 2011-04-03 Michael Matz <matz@suse.de>
5407 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5408 and next_slot members.
5409 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5410 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5411 (lto_streamer_cache_append): Declare.
5412 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5413 unsigned index, remove offset parameter, ensure that we append
5414 or update existing entries.
5415 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5416 parameter, update next_slot for append.
5417 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5419 (lto_streamer_cache_insert_at): Likewise.
5420 (lto_streamer_cache_append): New function.
5421 (lto_streamer_cache_lookup): Use unsigned index.
5422 (lto_streamer_cache_get): Likewise.
5423 (lto_record_common_node): Don't test tree_node_can_be_shared.
5424 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5425 (lto_streamer_cache_delete): Don't free offsets member.
5426 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5427 (lto_output_string_with_length): Use lto_output_data_stream.
5428 (lto_output_tree_header): Remove ix parameter, don't write it.
5429 (lto_output_builtin_tree): Likewise.
5430 (lto_write_tree): Adjust callers to above, don't track and write
5431 offset, write unsigned index.
5432 (output_unreferenced_globals): Don't emit all global vars.
5433 (write_global_references): Use unsigned indices.
5434 (lto_output_decl_state_refs): Likewise.
5435 (write_symbol): Likewise.
5436 * lto-streamer-in.c (lto_input_chain): Move earlier.
5437 (input_function): Use unsigned index.
5438 (input_alias_pairs): Don't read and then ignore all global vars.
5439 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5440 don't pass it back, use lto_streamer_cache_append.
5441 (lto_register_var_decl_in_symtab): Use unsigned index.
5442 (lto_register_function_decl_in_symtab): Likewise.
5443 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5445 (lto_get_builtin_tree): Don't read index, use
5446 lto_streamer_cache_append.
5447 (lto_read_tree): Adjust call to lto_materialize_tree.
5449 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5450 don't use function calls in arguments to MIN.
5452 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5455 * gimple.c (gimple_type_leader_entry): Mark deletable.
5457 2011-04-03 Alan Modra <amodra@gmail.com>
5459 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5461 2011-04-03 Michael Matz <matz@suse.de>
5463 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5465 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5467 2011-04-03 Michael Matz <matz@suse.de>
5469 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5470 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5471 without function context.
5472 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5473 current_function_decl and cfun.
5475 2011-04-03 Michael Matz <matz@suse.de>
5477 * tree.c (decl_init_priority_insert): Don't create entry for
5479 (decl_fini_priority_insert): Ditto.
5480 (fields_compatible_p, find_compatible_field): Remove.
5481 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5482 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5484 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5486 * combine.c (try_combine): Remove useless local variable.
5488 2011-04-03 Richard Guenther <rguenther@suse.de>
5489 Ira Rosen <ira.rosen@linaro.org>
5491 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5492 non-variable offsets and compare the remaining bases of the two
5493 accesses instead of looking for exact same data-ref.
5495 2011-04-02 Kai Tietz <ktietz@redhat.com>
5498 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5500 * i386.c (ix86_is_msabi_thiscall): New helper function.
5501 (ix86_is_type_thiscall): New helper function.
5502 (ix86_comp_type_attributes): Handle thiscall for method-functions
5504 (init_cumulative_args): Likewise.
5505 (find_drap_reg): Likewise.
5506 (ix86_static_chain): Likewise.
5507 (x86_this_parameter): Likewise.
5508 (x86_output_mi_thunk): Likewise.
5510 2011-04-01 Olivier Hainque <hainque@adacore.com>
5511 Nicolas Setton <setton@adacore.com>
5512 Eric Botcazou <ebotcazou@adacore.com>
5514 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5515 (add_gnat_descriptive_type_attribute): New function.
5516 (gen_array_type_die): Call it.
5517 (gen_enumeration_type_die): Likewise.
5518 (gen_struct_or_union_type_die): Likewise.
5519 (modified_type_die): Likewise.
5520 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5521 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5522 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5524 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5527 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5528 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5531 2011-03-17 Richard Guenther <rguenther@suse.de>
5534 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5535 origin for decls in other ltrans units.
5536 (input_varpool_node): Likewise.
5538 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5541 * expr.c (expand_assignment): Handle all possibilities
5542 if TO_RTX is CONCAT.
5543 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5544 (store_split_bit_field): If SUBREG_REG (op0) or
5545 op0 itself has smaller mode than word, return it
5546 for offset 0 and const0_rtx for out-of-bounds stores.
5547 If word is const0_rtx, skip it.
5549 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5551 * config/h8300/h8300.c (print_operand_address): Rename to...
5552 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5553 Call h8300_print_operand and h8300_print_operand_address instead of
5554 print_operand and print_operand_address. Declare.
5555 (print_operand): Renake to...
5556 (h8300_print_operand): ...this. Make static. Adjust comments.
5557 Call h8300_print_operand instead of print_operand. Declare.
5558 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5559 (h8300_register_move_cost): Likewise.
5560 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5561 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5562 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5563 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5564 * config/h8300/h8300-protos.h (print_operand): Delete.
5565 (print_operand_address): Delete.
5567 2011-04-01 Richard Henderson <rth@redhat.com>
5570 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5571 in strict mode before dwarf4. Re-order tests to early out
5572 before switching sections.
5574 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5576 * config/h8300/constraints.md: New file.
5577 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5578 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5579 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5580 * config/h8300/predicates.md (bit_operand): Likewise.
5581 (incdec_operand): Use satisfies_constraint_M and
5582 satisfies_constraint_O. Don't use C code block.
5583 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5584 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5585 (compute_mov_length): Use satisfies_constraint_G.
5586 (fix_bit_operand): Use satisfies_constraint_U.
5587 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5588 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5589 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5590 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5591 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5592 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5593 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5594 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5595 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5596 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5597 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5598 (EXTRA_MEMORY_CONSTRAINT): Delete.
5600 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5601 Michael Meissner <meissner@linux.vnet.ibm.com>
5604 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5605 operands, as per the specifications.
5607 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5608 (vec_extract_evenv4sf): Ditto.
5609 (vec_extract_evenv8hi): Ditto.
5610 (vec_extract_evenv16qi): Ditto.
5611 (vec_extract_oddv4si): Ditto.
5613 2011-03-31 Mark Wielaard <mjw@redhat.com>
5615 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5616 high_pc attribute if the CU has no associated code. Only output
5617 DW_AT_entry_pc for CU if not generating strict dwarf and
5620 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5622 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5623 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5625 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5626 * final.c (final_start_function): Call the new function rather
5627 than using a NULL argument for dwarf2out_frame_debug.
5629 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5630 that contains the prologue.
5632 * haifa-sched.c (queue_insn): New arg REASON. All callers
5633 changed. Print it in debugging output.
5635 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5637 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5638 Split most of the code into...
5639 (begin_move_insn): ... here. New function.
5640 (ebb_sched_info): Add a pointer to it.
5641 * haifa-sched.c (scheduled_insns): New static variable.
5642 (sched_extend_ready_list): Allocate it.
5643 (schedule_block): Use it to record the order of scheduled insns.
5644 Perform RTL changes to move insns only after all scheduling
5645 decisions have been made.
5646 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5647 begin_move_insn field.
5648 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5649 * sched-int.h (struct haifa_sched_info): Remove second argument
5650 from begin_schedule_ready hook. Add new member begin_move_insn.
5651 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5652 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5654 * haifa-sched.c (prune_ready_list): New function, broken out of
5656 (schedule_block): Use it.
5658 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5660 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5662 2011-04-01 Kai Tietz <ktietz@redhat.com>
5664 * config.gcc (*-*-mingw*): Allow as option the
5665 posix threading model.
5666 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5667 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5669 (CPP_SPEC): Add pthread/no-pthread handling.
5670 (LIB_SPEC): Likewise.
5671 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5672 (LIB_SPEC): Likewise.
5673 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5674 flag to pass -pthread option for shared libgcc build.
5675 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5676 for shared libgcc build.
5677 * config/i386/t-mingw-pthread: New file.
5678 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5679 New define to enable use of library pthread by default.
5680 * config/i386/mingw.opt (pthread): New driver option.
5681 (no-pthread): New driver option.
5682 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5683 * config/i386/mingw-w64.opt: Likewise.
5685 2011-04-01 Gary Funck <gary@intrepid.com>
5687 * c-decl.c (grokdeclarator): Fix formatting.
5689 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5691 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5692 instead of n_operands.
5693 (set_storage_via_setmem): Likewise.
5694 * optabs.c (maybe_gen_insn): Likewise.
5695 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5696 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5697 (mips_expand_builtin_direct): Likewise.
5698 * config/spu/spu.c (expand_builtin_args): Likewise.
5700 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5702 * recog.h (insn_data_d): Add n_generator_args.
5703 * genoutput.c (data): Likewise.
5704 (output_insn_data): Print it.
5705 (max_opno, num_dups): Delete.
5706 (scan_operands): Just fill in "d->operand[...]".
5707 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5709 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5711 * gensupport.h (pattern_stats): New structure.
5712 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5713 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5714 (max_operand_1, max_operand_vec): Delete.
5715 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5717 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5719 * emit-rtl.c (emit_pattern_after_setloc): New function.
5720 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5721 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5722 (emit_pattern_after): New function.
5723 (emit_insn_after, emit_jump_insn_after): Call it.
5724 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5725 (emit_pattern_before_setloc): New function.
5726 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5727 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5729 (emit_pattern_before): New function.
5730 (emit_insn_before, emit_jump_insn_before): Call it.
5731 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5733 2011-03-31 Richard Henderson <rth@redhat.com>
5735 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5736 (dw_separate_line_info_entry): Remove.
5737 (enum dw_line_info_opcode): New.
5738 (dw_line_info_entry): Use it.
5739 (dw_line_info_table, dw_line_info_table_p): New.
5740 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5741 (line_info_table, line_info_label_num): Remove.
5742 (line_info_table_in_use): Remove.
5743 (separate_line_info_table): Remove.
5744 (separate_line_info_table_allocated): Remove.
5745 (separate_line_info_table_in_use): Remove.
5746 (LINE_INFO_TABLE_INCREMENT): Remove.
5747 (line_info_label_num): New.
5748 (cur_line_info_table): New.
5749 (text_section_line_info, cold_text_section_line_info): New.
5750 (separate_line_info): New.
5751 (SEPARATE_LINE_CODE_LABEL): Remove.
5752 (print_dwarf_line_table): Remove.
5753 (debug_dwarf): Don't dump it.
5754 (output_one_line_info_table): New.
5755 (output_line_info): Use it.
5756 (new_line_info_table): New.
5757 (set_cur_line_info_table): New.
5758 (dwarf2out_switch_text_section): Use it.
5759 (dwarf2out_begin_function): Likewise.
5760 (push_dw_line_info_entry): New.
5761 (dwarf2out_source_line): Rewrite for new line info tables.
5762 (dwarf2out_init): Remove dead initailizations.
5764 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5766 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5768 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5769 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5770 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5771 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5772 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5773 * opt-functions.awk (flag_init, switch_bit_fields): New.
5774 (switch_flags): Don't handle flags moved to bit-fields. Don't
5775 generate CL_MISSING_OK or CL_SAVE.
5776 * optc-gen.awk: Update to generate bit-field output as well as
5778 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5779 bit-field instead of CL_REJECT_DRIVER flag.
5780 * opts-common.c (generate_canonical_option,
5781 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5782 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5783 instead of CL_REJECT_NEGATIVE flag.
5784 * toplev.c (print_switch_values): Use cl_report bit-field instead
5787 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5789 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5790 a zero minimum index only if it is redundant.
5792 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5794 PR rtl-optimization/48381
5795 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5796 instead of ira_class_hard_reg_index for calculating conflicting
5799 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5801 * cprop.c: Clean up hash table building.
5802 (reg_avail_info): Remove.
5803 (oprs_available_p): Remove.
5804 (record_last_reg_set_info): Remove.
5805 (record_last_set_info): Remove.
5806 (reg_available_p): New function.
5807 (gcse_constant_p): Do not treat unfolded conditions as constants.
5808 (make_set_regs_unavailable): New function.
5809 (hash_scan_set): Simplify with new reg_available_p.
5810 (compute_hash_table_work): Traverse insns stream only once.
5811 Do not compute reg_avail_info. Traverse insns in reverse order.
5812 Record implicit sets after recording explicit sets from the block.
5814 2011-03-31 Michael Matz <matz@suse.de>
5816 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5818 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5820 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5821 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5822 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5823 (h8300_mode_dependent_address_p): New function.
5824 (h8300_get_index): Make static.
5826 2011-03-31 Jeff Law <law@redhat.com>
5828 * reload1.c (elimination_effects): Fix typo in recent change.
5830 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5831 typo potentially leading to null pointer dereference.
5833 * caller-save.c (new_saved_hard_reg): Eliminate return value.
5834 (setup_save_areas): Corresponding changes to avoid useless
5837 * jump.c (reversed_comparison_code_parts): Avoid successive return
5838 statements when REVERSE_CONDITION is defined.
5840 * expr.c (expand_assignment): Avoid useless assignments.
5841 (expand_expr_real_1): Likewise.
5842 (expand_expr_real_2): Avoid useless statements.
5844 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5846 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5848 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5851 * stmt.c (expand_expr_stmt): Avoid useless assignment.
5853 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5856 * doc/tm.texi.in (TARGET_VERSION): Remove.
5857 * doc/tm.texi: Regenerate.
5858 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5859 * collect2.c (main): Don't use TARGET_VERSION.
5860 * mips-tdump.c (main): Don't use TARGET_VERSION.
5861 * mips-tfile.c (main): Don't use TARGET_VERSION.
5862 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5863 * config/rs6000/vxworksae.h: Remove.
5864 * config/alpha/alpha.h (TARGET_VERSION): Remove.
5865 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5866 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5867 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5868 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5869 * config/arm/arm.h (TARGET_VERSION): Remove.
5870 * config/arm/coff.h (TARGET_VERSION): Remove.
5871 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5872 * config/arm/elf.h (TARGET_VERSION): Remove.
5873 * config/arm/freebsd.h (TARGET_VERSION): Remove.
5874 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5875 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5876 * config/arm/pe.h (TARGET_VERSION): Remove.
5877 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5878 * config/arm/semi.h (TARGET_VERSION): Remove.
5879 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5880 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5881 * config/arm/vxworks.h (TARGET_VERSION): Remove.
5882 * config/avr/avr.h (TARGET_VERSION): Remove.
5883 * config/bfin/bfin.h (TARGET_VERSION): Remove.
5884 * config/fr30/fr30.h (TARGET_VERSION): Remove.
5885 * config/frv/frv.h (TARGET_VERSION): Remove.
5886 * config/h8300/h8300.h (TARGET_VERSION): Remove.
5887 * config/i386/cygwin.h (TARGET_VERSION): Remove.
5888 * config/i386/darwin.h (TARGET_VERSION): Remove.
5889 * config/i386/darwin64.h (TARGET_VERSION): Remove.
5890 * config/i386/djgpp.h (TARGET_VERSION): Remove.
5891 * config/i386/freebsd.h (TARGET_VERSION): Remove.
5892 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5893 * config/i386/gnu.h (TARGET_VERSION): Remove.
5894 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5895 * config/i386/i386elf.h (TARGET_VERSION): Remove.
5896 * config/i386/linux.h (TARGET_VERSION): Remove.
5897 * config/i386/linux64.h (TARGET_VERSION): Remove.
5898 * config/i386/lynx.h (TARGET_VERSION): Remove.
5899 * config/i386/mingw32.h (TARGET_VERSION): Remove.
5900 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5901 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5902 * config/i386/netware.h (TARGET_VERSION): Remove.
5903 * config/i386/nto.h (TARGET_VERSION): Remove.
5904 * config/i386/openbsd.h (TARGET_VERSION): Remove.
5905 * config/i386/vxworks.h (TARGET_VERSION): Remove.
5906 * config/ia64/elf.h (TARGET_VERSION): Remove.
5907 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5908 * config/ia64/hpux.h (TARGET_VERSION): Remove.
5909 * config/ia64/linux.h (TARGET_VERSION): Remove.
5910 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5911 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5912 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5913 * config/lm32/lm32.h (TARGET_VERSION): Remove.
5914 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5915 * config/m32c/m32c.h (TARGET_VERSION): Remove.
5916 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5917 * config/m32r/m32r.h (TARGET_VERSION): Remove.
5918 * config/m68k/linux.h (TARGET_VERSION): Remove.
5919 * config/m68k/m68k.h (TARGET_VERSION): Remove.
5920 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5921 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5922 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5923 * config/mep/mep.h (TARGET_VERSION): Remove.
5924 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5925 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5926 * config/mips/iris6.h (MACHINE_TYPE): Remove.
5927 * config/mips/linux.h (TARGET_VERSION): Remove.
5928 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5929 * config/mips/vxworks.h (TARGET_VERSION): Remove.
5930 * config/mmix/mmix.h (TARGET_VERSION): Remove.
5931 * config/mn10300/linux.h (TARGET_VERSION): Remove.
5932 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5933 * config/pa/pa.h (TARGET_VERSION): Remove.
5934 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5935 * config/picochip/picochip.h (TARGET_VERSION): Remove.
5936 * config/rs6000/aix.h (TARGET_VERSION): Remove.
5937 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5938 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5939 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5940 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5941 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5942 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5943 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5944 * config/rs6000/linux.h (TARGET_VERSION): Remove.
5945 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5946 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5947 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5948 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5949 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5950 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5951 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5952 * config/s390/linux.h (TARGET_VERSION): Remove.
5953 * config/s390/s390.h (TARGET_VERSION): Remove.
5954 * config/s390/tpf.h (TARGET_VERSION): Remove.
5955 * config/score/score.h (TARGET_VERSION): Remove.
5956 * config/sh/linux.h (TARGET_VERSION): Remove.
5957 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5958 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5959 * config/sh/sh.h (TARGET_VERSION): Remove.
5960 * config/sh/sh64.h (TARGET_VERSION): Remove.
5961 * config/sh/superh.h (TARGET_VERSION): Remove.
5962 * config/sh/vxworks.h (TARGET_VERSION): Remove.
5963 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5964 * config/sparc/linux.h (TARGET_VERSION): Remove.
5965 * config/sparc/linux64.h (TARGET_VERSION): Remove.
5966 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5967 TARGET_NAME32, TARGET_NAME): Remove.
5968 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5969 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5970 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5971 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5972 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5973 * config/spu/spu.h (TARGET_VERSION): Remove.
5974 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5975 * config/v850/v850.h (TARGET_VERSION): Remove.
5976 * config/vax/linux.h (TARGET_VERSION): Remove.
5977 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5978 * config/xtensa/elf.h (TARGET_VERSION): Remove.
5979 * config/xtensa/linux.h (TARGET_VERSION): Remove.
5981 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5984 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5985 frame-related from frame-unrelated adjustments to the stack pointer.
5987 2011-03-31 Jakub Jelinek <jakub@redhat.com>
5989 * common.opt (fdebug-types-section): Move earlier.
5990 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5992 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
5994 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5997 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
5999 * tree.h (CASE_CHAIN): Define.
6000 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6001 (gimple_redirect_edge_and_branch): Likewise.
6003 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6006 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6009 2011-03-30 Jeff Law <law@redhat.com>
6011 * PR bootstrap/48371
6012 * reload1.c (reload): Fix botch in last change.
6014 * reload.h (struct reload): Fix typo introduced in last change.
6016 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6018 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6019 Undocumented. Remove help text.
6020 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6023 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6025 * doc/options.texi (NegativeAlias): Document.
6026 (Alias): Mention NegativeAlias.
6027 * opt-functions.awk: Handle NegativeAlias.
6028 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6029 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6030 * opts.h (CL_NEGATIVE_ALIAS): Define.
6031 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6032 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6034 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6036 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6037 mno-spe and mno-isel instead of mspe=no and -misel=no.
6039 2011-03-29 Mark Wielaard <mjw@redhat.com>
6041 * common.opt (fdebug-types-section): New flag.
6042 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6043 * dwarf2out.c (use_debug_types): New define.
6044 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6045 (print_die): Guard output of type unit signatures using
6047 (build_abbrev_table): Replace assert of dwarf_version >= 4
6048 with assert on use_debug_types.
6049 (size_of_die): Likewise.
6050 (unmark_dies): Likewise.
6051 (value_format): Decide AT_ref_external form on use_debug_types.
6052 (output_die): Replace dwarf_version version check guard with
6053 use_debug_types where appropriate.
6054 (modified_type_die): Likewise.
6055 (gen_reference_type_die): Likewise.
6056 (dwarf2out_start_source_file): Likewise.
6057 (dwarf2out_end_source_file): Likewise.
6058 (prune_unused_types_walk_attribs): Likewise.
6059 (dwarf2out_finish): Likewise.
6061 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6063 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6065 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6067 PR rtl-optimization/48332
6068 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6069 mode of input operand N and modeN to its actual mode.
6071 2011-03-30 Jeff Law <law@redhat.com>
6073 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6074 define accessor macro.
6075 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6076 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6077 (reg_equiv_init): Likewise.
6078 (reg_equivs_size): New variable.
6079 (reg_equiv_init_size): Remove.
6080 (allocate_initial_values): Move prototype to here from....
6081 * integrate.h (allocate_initial_values): Remove prototype.
6082 * integrate.c: Include reload.h.
6083 (allocate_initial_values): Corresponding changes.
6084 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6085 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6086 (update_equiv_regs): Corresponding changes.
6087 (ira): Corresponding changes.
6088 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6089 (push_secondary_reload): Corresponding changes.
6090 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6091 (make_memloc, find_reloads_address): Corresponding changes.
6092 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6093 (find_reloads_address_1): Corresponding changes.
6094 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6095 (refers_to_regno_for_reload_p): Corresponding changes.
6096 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6097 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6098 * reload1.c: Include ggc.h.
6099 (grow_reg_equivs): New function.
6100 (replace_pseudos_in, reload): Corresponding changes.
6101 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6102 (eliminate_regs_1, elimination_effects): Corresponding changes.
6103 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6104 (delete_output_reload): Likewise.
6105 * caller-save.c (mark_referenced_regs): Corresponding changes.
6106 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6107 * frv/predicates.md (frv_load_operand): Corresponding changes.
6108 * microblaze/microblaze.c (double_memory_operand): Corresponding
6110 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6111 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6112 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6113 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6114 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6116 * pa/pa.c (emit_move_sequence): Corresponding changes.
6117 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6119 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6122 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6123 structure modes. Don't check neon_vector_mem_operand for
6124 vector or structure modes.
6126 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6127 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6130 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6131 operand 1 and reshuffle the operands to match.
6132 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6134 2011-03-30 Christian Schüler <cschueler@gmx.de>
6137 * config/c.opt (F): Added 'Driver' to -F option.
6140 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6142 * config/darwin.opt: Added '-arch' option.
6144 2011-03-30 Nick Clifton <nickc@redhat.com>
6146 * config/rx/rx.md: Add peepholes and patterns to combine
6147 extending loads and simple arithmetic instructions.
6148 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6149 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6150 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6151 modes to use pre-decrement and post-increment addressing.
6152 (rx_is_restricted_memory_address): Add range checking of REG+INT
6154 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6155 (rx_memory_move_cost): Adjust cost of stores.
6156 (rx_adjust_insn_length): New function.
6158 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6161 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6162 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6163 matching arg00/arg01 types.
6165 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6167 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6168 last_location to UNKNOWN_LOCATION.
6170 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6173 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6176 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6177 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6180 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6182 (sparc_cpu): Likewise.
6183 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6186 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6190 PR rtl-optimization/48345
6191 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6192 hard regs for given mode from profitable regs when doing secondary
6195 2011-03-29 Jeff Law <law@redhat.com>
6198 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6199 do_not_duplicate field.
6200 (lookup_redirection_data): Corresponding changes.
6201 (create_duplicates): Always create a template block.
6202 (redirect_edges): Remove code which reused the original block
6203 when it was going to become unreachable code.
6204 (thread_block): Don't set do_not_duplicate field.
6206 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6208 * lto-opts.c (register_user_option_p, lto_register_user_option):
6209 Make type argument unsigned.
6210 * lto-streamer.h (lto_register_user_option): Make type argument
6212 * opth-gen.awk: Make CL_* macros unsigned.
6213 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6214 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6215 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6216 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6217 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6218 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6219 (find_opt): Make lang_mask argument unsigned.
6221 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6223 PR rtl-optimization/48331
6224 PR rtl-optimization/48334
6225 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6226 for any used algorithm.
6228 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6230 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6233 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6235 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6236 (alpha_option_override): Don't set alpha_sr_alias_set.
6237 (emit_frame_store_1): Use gen_frame_mem rather than calling
6239 (alpha_expand_epilogue): Ditto.
6241 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6243 PR tree-optimization/48290
6244 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6245 vectorization, check that relevant phis in the basic block after
6246 the inner loop are really inner loop's exit phis.
6248 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6251 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6252 (cached_dw_loc_list_def): New structure.
6253 (cached_dw_loc_list): New typedef.
6254 (cached_dw_loc_list_table): New variable.
6255 (cached_dw_loc_list_table_hash): New function.
6256 (cached_dw_loc_list_table_eq): Likewise.
6257 (add_location_or_const_value_attribute): Take a bool cache_p.
6258 Cache the list when the parameter is true.
6259 (gen_formal_parameter_die): Update caller.
6260 (gen_variable_die): Likewise.
6261 (dwarf2out_finish): Likewise.
6262 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6263 while generating debug info for the decl.
6264 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6265 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6266 (resolve_addr): Cache the result of resolving a chain of
6269 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6271 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6272 conflict object hard regset nodes have intersecting hard reg sets.
6274 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6275 after regstat_init_n_sets_and_refs.
6277 * ira.c: Add more comments at the top.
6278 (setup_stack_reg_pressure_class, setup_pressure_classes):
6279 Add comments how we compute the register pressure classes.
6280 (setup_allocno_and_important_classes): Add more comments.
6281 (setup_class_translate_array, reorder_important_classes)
6282 (setup_reg_class_relations): Add comments.
6284 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6287 * ira-color.c: Add 2011 to the Copyright line.
6288 (assign_hard_reg): Add more comments.
6289 (improve_allocation): Ditto.
6291 * ira-costs.c: Add 2011 to the Copyright line.
6292 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6294 (setup_regno_cost_classes_by_mode): Ditto.
6296 Initial patches from ira-improv branch:
6298 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6300 * ira-build.c (ira_create_object): Remove initialization of
6301 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6302 (ira_create_allocno): Remove initialization of
6303 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6304 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6305 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6306 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6307 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6308 Initialize ALLOCNO_ADD_DATA.
6309 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6310 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6312 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6313 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6315 * ira.c (ira_reallocate): Remove.
6316 (setup_pressure_classes): Call
6317 ira_init_register_move_cost_if_necessary. Use
6318 ira_register_move_cost instead of ira_get_register_move_cost.
6319 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6320 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6322 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6323 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6324 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6325 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6326 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6327 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6329 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6330 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6331 (struct allocno_color_data): New.
6332 (allocno_color_data_t): New typedef.
6333 (allocno_color_data): New definition.
6334 (ALLOCNO_COLOR_DATA): New macro.
6335 (struct object_color_data): New.
6336 (object_color_data_t): New typedef.
6337 (object_color_data): New definition.
6338 (OBJECT_COLOR_DATA): New macro.
6339 (update_copy_costs, calculate_allocno_spill_cost): Call
6340 ira_init_register_move_cost_if_necessary. Use
6341 ira_register_move_cost instead of ira_get_register_move_cost.
6342 (move_spill_restore, update_curr_costs): Ditto.
6343 (allocno_spill_priority): Make it inline.
6344 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6345 (struct coalesce_data, coalesce_data_t): New.
6346 (allocno_coalesce_data): New definition.
6347 (ALLOCNO_COALESCE_DATA): New macro.
6348 (merge_allocnos, coalesced_allocno_conflict_p): Use
6349 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6350 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6351 (coalesce_allocnos): Ditto.
6352 (setup_coalesced_allocno_costs_and_nums): Ditto.
6353 (collect_spilled_coalesced_allocnos): Ditto.
6354 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6355 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6356 (coalesce_spill_slots): Ditto.
6357 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6358 free allocno_coalesce_data.
6360 * ira-conflicts.c: Fix formatting.
6361 (process_regs_for_copy): Call
6362 ira_init_register_move_cost_if_necessary. Use
6363 ira_register_move_cost instead of ira_get_register_move_cost.
6364 (build_object_conflicts): Optimize.
6366 * ira-costs.c (record_reg_classes): Optimize. Call
6367 ira_init_register_move_cost_if_necessary. Use
6368 ira_register_move_cost, ira_may_move_in_cost, and
6369 ira_may_move_out_cost instead of ira_get_register_move_cost and
6370 ira_get_may_move_cost.
6371 (record_address_regs): Ditto.
6372 (scan_one_insn): Optimize.
6373 (find_costs_and_classes): Optimize.
6374 (process_bb_node_for_hard_reg_moves): Call
6375 ira_init_register_move_cost_if_necessary. Use
6376 ira_register_move_cost instead of ira_get_register_move_cost.
6378 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6379 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6380 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6381 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6383 (ira_initiate_emit_data, ira_finish_emit_data)
6384 (create_new_allocno): New functions.
6385 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6386 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6387 Use ira_register_move_cost instead of ira_get_register_move_cost.
6389 * ira-int.h: Fix some comments.
6390 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6391 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6392 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6393 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6395 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6396 bitfield after mode. Make hard_regno a short int. Make
6397 hard_regno short. Remove first_coalesced_allocno and
6398 next_coalesced_allocno. Move mem_optimized_dest_p,
6399 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6400 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6401 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6402 temp, colorable_p. Add new member add_data.
6403 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6404 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6405 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6406 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6407 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6408 (ALLOCNO_ADD_DATA): New macro.
6409 (ira_emit_data_t): New typedef.
6410 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6411 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6412 from struct ira_allocno.
6413 (ALLOCNO_EMIT_DATA): New macro.
6414 (ira_allocno_emit_data, allocno_emit_reg): New.
6415 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6416 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6417 (OBJECT_ADD_DATA): New macro.
6418 (ira_reallocate): Remove.
6419 (ira_initiate_emit_data, ira_finish_emit_data): New.
6420 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6421 (ira_init_register_move_cost_if_necessary): New.
6422 (ira_object_conflict_iter_next): Merge into
6423 ira_object_conflict_iter_cond.
6424 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6426 * ira-live.c (process_single_reg_class_operands): Call
6427 ira_init_register_move_cost_if_necessary. Use
6428 ira_register_move_cost instead of ira_get_register_move_cost.
6430 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6432 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6434 * ira-costs.c: Fix formatting.
6435 (cost_classes, cost_classes_num): Remove.
6436 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6437 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6438 (cost_classes_del, cost_classes_htab): New.
6439 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6440 (initiate_regno_cost_classes, setup_cost_classes): New.
6441 (setup_regno_cost_classes_by_aclass): New.
6442 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6443 (record_reg_classes): Use regno_cost_classes instead of
6444 cost_classes. Move checking opposite operand up.
6445 (record_address_regs): Use regno_cost_classes
6446 instead of cost_classes.
6447 (scan_one_insn): Ditto. Use always general register.
6448 (print_allocno_costs): Use regno_cost_classes instead of
6450 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6451 (find_costs_and_classes): Set up cost classes for each registers.
6452 Use also their mode for this. Use regno_cost_classes instead of
6454 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6456 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6457 (ira_costs, ira_set_pseudo_classes): Call
6458 initiate_regno_cost_classes and finish_regno_cost_classes.
6460 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6462 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6464 * target.def (ira_cover_classes): Remove.
6466 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6468 * doc/tm.texi.in: Ditto.
6470 * ira-conflicts.c: Remove mentioning cover classes from the file.
6471 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6472 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6474 * targhooks.c (default_ira_cover_classes): Remove.
6476 * targhooks.h (default_ira_cover_classes): Ditto.
6478 * haifa-sched.c: Remove mentioning cover classes from the file.
6479 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6480 ira_pressure_classes and ira_pressure_classes_num instead of
6481 ira_reg_class_cover_size and ira_reg_class_cover. Use
6482 sched_regno_pressure_class instead of sched_regno_cover_class.
6483 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6484 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6486 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6487 classes from the file.
6488 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6489 (struct object_hard_regs, struct object_hard_regs_node): New.
6490 (struct ira_object): New members profitable_hard_regs,
6491 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6492 (struct ira_allocno): Rename cover_class to aclass. Rename
6493 cover_class_cost and updated_cover_class_cost to class_cost and
6494 updated_class_cost. Remove splay_removed_p and
6495 left_conflict_size. Add new members colorable_p.
6496 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6497 (ALLOCNO_COLORABLE_P): New macro.
6498 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6499 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6500 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6501 (OBJECT_...): Rename parameter C to O.
6502 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6503 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6504 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6505 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6506 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6507 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6508 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6509 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6510 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6511 x_ira_reg_class_subunion.
6512 (ira_max_memory_move_cost, ira_max_register_move_cost)
6513 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6514 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6515 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6516 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6517 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6518 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6519 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6520 (ira_tune_allocno_costs_and_cover_classes): Rename to
6521 ira_tune_allocno_costs.
6522 (ira_debug_hard_regs_forest): New.
6523 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6524 (ira_object_conflict_iter_next): Fix comments.
6525 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6526 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6527 cover_class to aclass.
6528 (ira_allocate_and_accumulate_costs): Ditto.
6529 (ira_allocate_and_set_or_copy_costs): Ditto.
6531 * opts.c (decode_options): Remove ira_cover_class check.
6533 * ira-color.c: Remove mentioning cover classes from the file. Use
6534 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6535 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6536 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6537 (splay-tree.h): Remove include.
6538 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6539 before copy_freq_compare_func.
6540 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6541 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6543 (hard_regs_roots, hard_regs_node_vec): Ditto.
6544 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6545 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6546 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6547 (create_new_object_hard_regs_node): Ditto.
6548 (add_new_object_hard_regs_node_to_forest): Ditto.
6549 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6550 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6552 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6553 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6554 (remove_unused_object_hard_regs_nodes): Ditto.
6555 (enumerate_object_hard_regs_nodes): Ditto.
6556 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6557 (object_hard_regs_subnode_t): Ditto.
6558 (struct object_hard_regs_subnode): Ditto.
6559 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6560 (setup_object_hard_regs_subnode_index): Ditto.
6561 (get_object_hard_regs_subnodes_num): Ditto.
6562 (form_object_hard_regs_nodes_forest): Ditto.
6563 (finish_object_hard_regs_nodes_tree): Ditto.
6564 (finish_object_hard_regs_nodes_forest): Ditto.
6565 (allocnos_have_intersected_live_ranges_p): Rename to
6566 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6567 (pseudos_have_intersected_live_ranges_p): Rename to
6568 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6569 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6570 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6571 (update_copy_costs): Remove assert. Skip cost update if the hard
6572 reg does not belong the class.
6573 (assign_hard_reg): Process only profitable hard regs.
6574 (uncolorable_allocnos_num): Make it scalar.
6575 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6576 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6577 and ira_reg_class_max_nregs.
6578 (bucket_allocno_compare_func): Check frequency first.
6579 (sort_bucket): Add compare function as a parameter.
6580 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6581 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6582 (push_allocno_to_stack): Rewrite for checking new allocno
6584 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6585 (push_only_colorable): Pass new parameter to sort_bucket.
6586 (push_allocno_to_spill): Remove.
6587 (allocno_spill_priority_compare): Make it inline and rewrite.
6588 (splay_tree_allocate, splay_tree_free): Remove.
6589 (allocno_spill_sort_compare): New function.
6590 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6591 build and use splay tree. Choose first allocno in uncolorable
6592 allocno bucket to spill. Remove setting spill cost.
6593 (all_conflicting_hard_regs): Remove.
6594 (setup_allocno_available_regs_num): Check only profitable hard
6595 regs. Print info about hard regs nodes.
6596 (setup_allocno_left_conflicts_size): Remove.
6597 (put_allocno_into_bucket): Don't call
6598 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6599 (improve_allocation): New.
6600 (color_allocnos): Call setup_profitable_hard_regs,
6601 form_object_hard_regs_nodes_forest, improve_allocation,
6602 finish_object_hard_regs_nodes_forest. Setup spill cost.
6603 (print_loop_title): Use pressure classes.
6604 (color_allocnso): Ditto.
6605 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6606 and allocnos_for_spilling.
6607 (ira_sort_regnos_for_alter_reg): Don't setup members
6608 {first,next}_coalesced_allocno.
6609 (color): Remove allocating and freeing removed_splay_allocno_vec.
6610 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6611 prohibited_class_mode_regs.
6613 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6615 (update_allocno_pressure_excess_length): Use pressure classes.
6616 (inc_register_pressure, dec_register_pressure): Check for pressure
6618 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6619 pressure class. Use ira_reg_class_nregs instead of
6620 ira_reg_class_max_nregs.
6621 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6622 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6623 (single_reg_class): Use ira_reg_class_nregs instead of
6624 ira_reg_class_max_nregs.
6625 (process_bb_node_lives): Use pressure classes.
6627 * ira-emit.c: Remove mentioning cover classes from the file. Use
6628 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6629 (change_loop): Use pressure classes.
6630 (modify_move_list): Call ira_set_allocno_class instead of
6631 ira_set_allocno_cover_class.
6633 * ira-build.c: Remove mentioning cover classes from the file. Use
6634 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6635 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6636 ALLOCNO_UPDATED_CLASS_COST instead of
6637 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6638 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6639 (ira_create_allocno): Remove initialization of
6640 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6641 ALLOCNO_COLORABLE_P.
6642 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6643 Update conflict regs for the objects.
6644 (create_cap_allocno): Remove assert. Don't propagate
6645 ALLOCNO_AVAILABLE_REGS_NUM.
6646 (ira_free_allocno_costs): New function.
6647 (finish_allocno): Change a part of code into call of
6648 ira_free_allocno_costs.
6649 (low_pressure_loop_node_p): Use pressure classes.
6650 (object_range_compare_func): Don't compare classes.
6651 (setup_min_max_conflict_allocno_ids): Ditto.
6653 * loop-invariant.c: Remove mentioning cover classes from the file.
6654 Use ira_pressure_classes and ira_pressure_classes_num instead of
6655 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6656 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6657 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6658 Use reg_allocno_class instead of reg_cover_class.
6659 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6660 STACK_REG_COVER_CLASS.
6661 (get_regno_cover_class): Rename to get_regno_pressure_class.
6662 (move_loop_invariants): Initialize and finalize regstat.
6664 * ira.c: Remove mentioning cover classes from the file. Add
6665 comments about coloring without cover classes. Use ALLOCNO_CLASS
6666 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6667 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6668 setup_class_subset_and_memory_move_costs.
6669 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6670 (setup_cover_and_important_classes): Rename to
6671 setup_allocno_and_important_classes.
6672 (setup_class_translate_array): New.
6673 (setup_class_translate): Call it for allocno and pressure classes.
6674 (cover_class_order): Rename to allocno_class_order.
6675 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6676 of ira_class_translate.
6677 (reorder_important_classes): Set up ira_important_class_nums.
6678 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6679 (print_class_cover): Rename to print_classes. Add parameter.
6680 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6681 Print pressure classes too.
6682 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6683 setup_reg_subclasses.
6684 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6685 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6686 (setup_prohibited_class_mode_regs): Use
6687 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6688 (clarify_prohibited_class_mode_regs): New function.
6689 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6690 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6691 (ira_init_once): Initialize them.
6692 (free_register_move_costs): Process them.
6693 (ira_init): Move calls of find_reg_classes and
6694 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6695 Call clarify_prohibited_class_mode_regs.
6696 (ira_no_alloc_reg): Remove.
6697 (too_high_register_pressure_p): Use pressure classes.
6699 * sched-deps.c: Remove mentioning cover classes from the file.
6700 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6701 ira_pressure_classes and ira_pressure_classes_num instead of
6702 ira_reg_class_cover_size and ira_reg_class_cover.
6703 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6704 sched_regno_pressure_class instead of sched_regno_cover_class.
6705 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6706 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6708 * ira.h: Add 2010 to Copyright.
6709 (ira_no_alloc_reg): Remove external.
6710 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6711 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6712 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6713 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6714 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6715 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6716 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6717 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6718 x_ira_no_alloc_regs.
6719 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6720 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6721 ira_allocno_classes_num and ira_allocno_classes.
6722 (ira_class_translate): Rename to ira_allocno_class_translate.
6723 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6724 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6725 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6726 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6727 (ira_no_alloc_regs): New.
6729 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6730 classes from the file. Use ALLOCNO_CLASS instead of
6731 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6732 ALLOCNO_COVER_CLASS_COST.
6733 (regno_cover_class): Rename to regno_aclass.
6734 (record_reg_classes): Use ira_reg_class_subunion instead of
6735 ira_reg_class_union.
6736 (record_address_regs): Check overflow.
6737 (scan_one_insn): Ditto.
6738 (print_allocno_costs): Print total mem cost fore regional allocation.
6739 (print_pseudo_costs): Use REG_N_REFS.
6740 (find_costs_and_classes): Use classes intersected with them on the
6741 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6742 ira_reg_class_union. Use ira_allocno_class_translate and
6743 regno_aclass instead of ira_class_translate and regno_cover_class.
6744 Modify code for finding regno_aclass. Setup preferred classes for
6746 (setup_allocno_cover_class_and_costs): Rename to
6747 setup_allocno_class_and_costs. Use regno_aclass instead of
6748 regno_cover_class. Use ira_set_allocno_class instead of
6749 ira_set_allocno_cover_class.
6750 (init_costs, finish_costs): Use regno_aclass instead of
6752 (ira_costs): Use setup_allocno_class_and_costs instead of
6753 setup_allocno_cover_class_and_costs.
6754 (ira_tune_allocno_costs_and_cover_classes): Rename to
6755 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6756 by processing objects. Use ira_reg_class_max_nregs instead of
6757 ira_reg_class_nregs.
6759 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6761 * sched-int.h: Remove mentioning cover classes from the file.
6762 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6764 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6765 classes from the file.
6766 (struct reg_pref): Rename coverclass into allocnoclass.
6767 (reg_cover_class): Rename to reg_allocno_class.
6769 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6771 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6773 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6775 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6777 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6779 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6781 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6783 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6785 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6787 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6789 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6790 (i386_ira_cover_classes): Ditto.
6792 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6794 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6796 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6798 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6800 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6802 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6804 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6805 (mips_ira_cover_classes): Ditto.
6807 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6809 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6811 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6813 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6815 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6817 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6818 (IRA_COVER_CLASSES_VSX): Ditto.
6820 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6821 (rs6000_ira_cover_classes): Ditto.
6823 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6825 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6827 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6829 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6831 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6833 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6835 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6837 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6839 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6841 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6843 2011-03-29 Jakub Jelinek <jakub@redhat.com>
6846 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6847 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6848 dw_fde_unlikely_section_end_label, cold_in_std_section,
6849 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6850 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6852 (output_fde): Use dw_fde_second_{begin,end} if second is
6853 true, otherwise dw_fde_{begin,end}.
6854 (output_call_frame_info): Test dw_fde_second_begin != NULL
6855 instead of dw_fde_switched_sections.
6856 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6857 fields, initialize new fields. Initialize in_std_section
6858 unconditionally from the first partition.
6859 (dwarf2out_end_epilogue): Don't override dw_fde_end when
6860 dw_fde_second_begin is non-NULL.
6861 (dwarf2out_switch_text_section): Stop initializing removed
6862 dw_fde_struct fields, initialize new fields, initialize
6863 also dw_fde_end here. Set dw_fde_switch_cfi even when
6864 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
6865 (struct var_loc_list_def): Add last_before_switch field.
6866 (arange_table, arange_table_allocated, arange_table_in_use,
6867 ARANGE_TABLE_INCREMENT, add_arange): Removed.
6868 (size_of_aranges): Count !in_std_section and !second_in_std_section
6869 hunks in fdes, instead of looking at arange_table_in_use.
6870 (output_aranges): Add aranges_length argument, don't call
6871 size_of_aranges here. Instead of using aranges_table*
6872 emit ranges for fdes when !in_std_section resp.
6873 !second_in_std_section.
6874 (dw_loc_list): Break ranges crossing section switch.
6875 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
6876 use dw_fde_second_end instead of dw_fde_end as end of last range.
6877 (gen_subprogram_die): Don't call add_arange. Use
6878 dw_fde_{begin,end} for first partition and if switched
6879 section dw_fde_second_{begin,end} for the second.
6880 (var_location_switch_text_section_1,
6881 var_location_switch_text_section): New functions.
6882 (dwarf2out_begin_function): Initialize cold_text_section even
6883 when function_section () isn't text_section.
6884 (prune_unused_types): Don't walk arange_table.
6885 (dwarf2out_finish): Don't needlessly test
6886 flag_reorder_blocks_and_partition when testing cold_text_section_used.
6887 If info_section_emitted, call size_of_aranges and if it indicates
6888 non-empty .debug_aranges, call output_aranges with the computed
6889 size. Stop using removed dw_fde_struct fields, use
6890 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6894 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6895 create ENTRY_VALUE if incoming or address of incoming's MEM
6897 * dwarf2out.c (mem_loc_descriptor): Don't emit
6898 DW_OP_GNU_entry_value of DW_OP_fbreg.
6899 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6900 on ENTRY_VALUE is able to find the canonical parameter VALUE.
6901 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6902 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6904 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6905 is a REG_P or MEM_P with REG_P address, compute hash directly
6906 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6907 (preserve_only_constants): Don't clear VALUES forwaring
6908 ENTRY_VALUE to some other VALUE.
6910 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
6912 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6915 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
6917 * cfgexpand.c (expand_gimple_cond): Always set the source location and
6918 block before expanding the statement.
6919 (expand_gimple_stmt_1): Likewise. Set them here...
6920 (expand_gimple_stmt): ...and not here. Tidy.
6921 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6924 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6926 * Makefile.in: New rule for cprop.o.
6927 * gcse.c: Move constant/copy propagation to cprop.c.
6928 (compute_local_properties): Only handle expression tables.
6929 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6930 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6931 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6932 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6933 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6934 compute_cprop_data, find_used_regs, try_replace_reg,
6935 find_avail_set, cprop_jump, constprop_register, cprop_insn,
6936 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6937 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6938 find_bypass_set, reg_killed_on_edge, bypass_block,
6939 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6940 execute_rtl_cprop, pass_rtl_cprop): Move to...
6941 * cprop.c: ...here. New file, constant/copy propagation for RTL
6942 moved from gcse.c to here with minor cleanups in duplicated code.
6944 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
6946 * config/i386/i386.c (flag_opts): Fix a typo in
6947 -mavx256-split-unaligned-store.
6949 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6951 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6952 LIBCALL_VALUE): Remove macros.
6953 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6954 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6955 (h8300_function_value, h8300_libcall_value,
6956 h8300_function_value_regno_p): New functions.
6958 2011-03-28 Anatoly Sokolov <aesok@post.ru>
6960 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6962 2011-03-28 Jeff Law <law@redhat.com>
6964 * tree-ssa-threadupdate.c (redirect_edges): Call
6965 create_edge_and_update_destination_phis as needed.
6966 (create_edge_and_update_destination_phis): Accept new BB argument.
6967 All callers updated.
6968 (thread_block): Do not update the profile when threading around
6969 intermediate blocks.
6970 (thread_single_edge): Likewise.
6971 (determine_bb_domination_status): If BB is not a successor of the
6972 loop header, return NONDOMINATING.
6973 (register_jump_thread): Note when we register a jump thread around
6974 an intermediate block.
6975 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6976 (thread_across_edge): Use it.
6978 2011-03-28 Tristan Gingold <gingold@adacore.com>
6980 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6981 when for_return is 2.
6983 2011-03-28 Jeff Law <law@redhat.com>
6985 * var-tracking.c (canonicalize_values_mark): Delete unused
6987 (canonicalize_values_star, set_variable_part): Likewise.
6988 (clobber_variable_part, delete_variable_part): Likewise.
6990 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
6992 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6994 2011-03-28 Martin Jambor <mjambor@suse.cz>
6996 * tree-inline.c (expand_call_inline): Do not check that destination
6998 (optimize_inline_calls): Assert that destination node is analyzed.
6999 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7000 not call tree_lowering_passes.
7001 * cgraph.h (cgraph_analyze_function): Declare.
7002 * cgraphunit.c (cgraph_analyze_function): Make public.
7004 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7006 * config/sparc/sparc-opts.h: New.
7007 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7008 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7009 (sparc_option_override): Store processor_type enumeration rather
7010 than string in cpu_default. Remove name and enumeration from
7011 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7012 without using sparc_select. Use target_flags_explicit instead of
7014 * config/sparc/sparc.h (enum processor_type): Move to
7016 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7017 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7018 HeaderInclude entry.
7019 (mcpu=, mtune=): Use Var and Enum.
7020 (sparc_processor_type): New Enum and EnumValue entries.
7022 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7023 Iain Sandoe <iains@gcc.gnu.org>
7026 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7028 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7030 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7031 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7032 Insert new statements at it in lieu of STMT.
7033 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7034 * tree-vect-stmts.c (vectorizable_store): Likewise.
7035 (vectorizable_load): Likewise.
7037 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7039 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7044 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7046 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7047 unaligned 256bit load/store.
7048 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7049 (*avx_movdqu<avxmodesuffix>): Likewise.
7051 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7054 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7055 * config/pa/pa.md (iordi3): Use new predicate in expander.
7058 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7060 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7061 FUNCTION_VALUE_REGNO_P): Remove macros.
7062 * config/mips/mips-protos.h (mips_function_value): Remove.
7063 * config/mips/mips.c (mips_function_value): Rename to...
7064 (mips_function_value_1): ... this. Make static. Handle receiving
7065 the function type in 'fn_decl_or_type' argument.
7066 (mips_function_value, mips_libcall_value,
7067 mips_function_value_regno_p): New function.
7068 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7069 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7071 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7073 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7074 and -mavx256-split-unaligned-store.
7075 (ix86_option_override_internal): Split 32-byte AVX unaligned
7076 load/store by default.
7077 (ix86_avx256_split_vector_move_misalign): New.
7078 (ix86_expand_vector_move_misalign): Use it.
7080 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7081 -mavx256-split-unaligned-store.
7083 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7084 256bit load/store. Generate unaligned store on misaligned memory
7086 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7088 (*avx_movdqu<avxmodesuffix>): Likewise.
7090 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7091 -mavx256-split-unaligned-store.
7093 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7096 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7099 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7101 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7102 opno arguments with an expand_operand. Use create_input_operand.
7103 (mips_prepare_builtin_target): Delete.
7104 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7106 (mips_expand_builtin_direct): Use create_output_operand and
7107 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7108 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7109 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7111 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7113 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7115 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7117 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7119 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7120 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7121 basic blocks and call commit_edge_insertions directly.
7122 (fixup_abnormal_edges): Move from here to...
7123 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7124 on the edges and return whether some have actually been inserted.
7125 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7128 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7130 PR rtl-optimization/48144
7131 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7132 (merge_expr_data): ... here.
7133 (av_set_intersect): Rename to av_set_code_motion_filter.
7134 Update all callers. Call merge_history_vect when an expression
7135 is found in both sets.
7136 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7138 2011-03-26 Alan Modra <amodra@gmail.com>
7140 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7141 cmodel medium addresses.
7142 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7143 64-bit gpr loads and stores.
7144 (rs6000_secondary_reload_ppc64): New function.
7145 * config/rs6000/rs6000-protos.h: Declare it.
7146 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7148 2011-03-26 Alan Modra <amodra@gmail.com>
7151 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7152 GNU Go in traceback table.
7154 2011-03-25 Richard Henderson <rth@redhat.com>
7156 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7157 if there are exactly 6 operands.
7158 (set_storage_via_setmem): Similarly.
7160 2011-03-25 Kai Tietz <ktietz@redhat.com>
7162 * collect2.c (write_c_file_stat): Handle backslash
7163 as right-hand directory separator.
7164 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7165 checking just for slash.
7166 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7167 instead of checking for trailing slash.
7168 * gcc.c (record_temp_file): Use filename_cmp instead
7170 (do_spec_1): Likewise.
7171 (replace_outfile_spec_function): Likewise.
7172 (is_directory): Use filename_ncmp instead of strncmp.
7173 (print_multilib_info): Likewise.
7174 * gcov.c (find_source): Use filename_cmp instead
7176 (make_gcov_file_name): Fix order of slash/backslash
7178 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7179 (add_standard_paths): Likewise.
7180 * mips-tfile.c (saber_stop): Handle backslash.
7181 * prefix.c (update_path): Use filename_ncmp instead of
7183 * profile.c (output_location): Use filename_cmp instead
7185 * read-md.c (handle_toplevel_file): Handle backslash.
7186 * tlink.c (frob_extension): Likewise.
7187 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7189 * tree-dump.c (dequeue_and_dump): Handle backslash.
7190 * tree.c (get_file_function_name): Likewise.
7191 * gengtype.c (read_input_list): Likewise.
7192 (get_file_realbasename): Likewise.
7193 (get_output_file_with_visibility): Use filename_cmp
7196 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7198 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7201 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7203 * fold-const.c (expr_location_or): New function.
7204 (fold_truth_not_expr): Call it.
7206 2011-03-25 Jeff Law <law@redhat.com>
7208 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7210 * c-family/c-common.c (def_fn_type): Likewise.
7211 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7212 * emit-rtl.c (gen_rtvec): Likewise.
7213 * lto/lto-lang.c (def_fn_type): Likewise.
7215 2011-03-25 Richard Guenther <rguenther@suse.de>
7217 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7218 also generate copies.
7219 (fini_copy_prop): Handle constant values properly.
7221 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7223 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7224 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7225 (hash_loc_operands, compare_loc_operands): Handle
7226 DW_OP_GNU_entry_value.
7228 2011-03-25 Kai Tietz <ktietz@redhat.com>
7230 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7231 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7232 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7233 comment and use macro TARGET_64BIT_MS_ABI instead.
7234 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7235 and change default behavior for 32-bit MS_ABI.
7236 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7237 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7239 (ix86_cfun_abi): Likewise.
7240 (ix86_maybe_switch_abi): Adjust comment.
7241 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7242 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7243 instead of checking for SYSV_ABI.
7244 (ix86_nsaved_sseregs): Likewise.
7245 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7247 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7248 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7249 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7250 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7251 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7253 2011-03-25 Richard Guenther <rguenther@suse.de>
7255 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7256 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7257 (verify_gimple): Remove.
7258 * tree-cfg.c (verify_gimple_call): Merge verification
7260 (verify_gimple_phi): Merge verification from verify_stmts.
7261 (verify_gimple_label): New function.
7262 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7263 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7264 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7265 (verify_stmts): Rename to verify_gimple_in_cfg.
7266 (verify_gimple_in_cfg): New function.
7267 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7268 * tree-ssa.c (verify_ssa): Likewise.
7269 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7271 2011-03-25 Richard Guenther <rguenther@suse.de>
7273 * passes.c (init_optimization_passes): Add FRE pass after
7276 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7277 Andrew Stubbs <ams@codesourcery.com>
7279 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7281 (arm_movdi_vfp_cortexa8): New pattern.
7282 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7283 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7284 instructions when tuning for Cortex-A8. Set attribute "arch".
7285 * config/arm/arm.md: Move include arm-tune.md up a bit.
7286 (define_attr "arch"): Add "onlya8" and "nota8" values.
7287 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7289 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7293 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7295 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7296 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7297 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7298 * passes.c (init_optimization_passes): Move
7299 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7301 2011-03-25 Kai Tietz <ktietz@redhat.com>
7303 * c-typeck.c (comptypes_internal): Replace target
7304 hook call of comp_type_attributes by version in tree.c file.
7305 * gimple.c (gimple_types_compatible_p_1): Likewise.
7306 * tree-ssa.c (useless_type_conversion_p): Likewise.
7307 * tree.c (build_type_attribute_qual_variant): Likewise.
7308 (attribute_value_equal): New static helper function.
7309 (comp_type_attributes): New function.
7310 (merge_attributes): Use attribute_value_equal for comparison.
7311 (attribute_list_contained): Likewise.
7312 * tree.h (comp_type_attributes): New prototype.
7314 2011-03-25 Richard Guenther <rguenther@suse.de>
7316 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7317 of complex types at -O0.
7318 (verify_gimple_assign_binary): Likewise.
7319 (verify_gimple_assign_ternary): Likewise.
7321 2011-03-24 Mark Wielaard <mjw@redhat.com>
7323 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7324 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7326 2011-03-24 Mark Wielaard <mjw@redhat.com>
7329 * dwarf2out.c (output_abbrev_section): Only write table when
7330 abbrev_die_table_in_use > 1.
7332 2011-02-24 Richard Henderson <rth@redhat.com>
7334 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7335 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7336 (alpha_expand_unaligned_load_words): Use extql.
7337 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7338 (emit_insxl): Handle all modes for consistency.
7340 2011-02-24 Richard Henderson <rth@redhat.com>
7342 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7343 (alpha_expand_unaligned_load): Likewise.
7344 (alpha_expand_unaligned_store): Likewise.
7345 (alpha_expand_unaligned_load_words): Likewise.
7346 (alpha_expand_unaligned_store_words): Likewise.
7347 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7348 (alpha_split_lock_test_and_set_12): Likewise.
7349 (print_operand, alpha_fold_builtin_extxx): Likewise.
7350 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7351 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7352 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7353 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7354 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7355 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7356 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7357 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7358 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7359 (extwl, extll, extql): Similarly.
7360 (inswh, inslh, insqh): Similarly.
7361 (mskbl, mskwl, mskll, mskql): Similarly.
7362 (mskwh, msklh, mskqh): Similarly.
7364 2011-02-24 Richard Henderson <rth@redhat.com>
7366 * config/alpha/alpha.md (attribute isa): Add er, ner.
7367 (attribute enabled): Handle them.
7368 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7370 2011-02-24 Richard Henderson <rth@redhat.com>
7372 * config/alpha/alpha.md (attribute isa): Add vms.
7373 (attribute enabled): Handle it.
7374 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7375 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7376 (*movtf): Rename from *movtf_internal for consistency.
7377 (*movsi): Merge with *movsi_nt_vms.
7378 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7379 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7380 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7381 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7383 2011-02-24 Richard Henderson <rth@redhat.com>
7385 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7386 (extendqisi2, extendhisi2): Likewise.
7387 (extendqidi2): Simplify BWX/non-BWX expansions.
7388 (extendhidi2): Similarly.
7390 2011-02-24 Richard Henderson <rth@redhat.com>
7392 * config/alpha/alpha.md (attribute isa): New.
7393 (attribute enabled): New.
7394 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7395 (zero_extendqisi2, zero_extendqidi2): Similarly.
7396 (zero_extendhisi2, zero_extendhidi2): Similarly.
7397 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7399 2011-02-24 Richard Henderson <rth@redhat.com>
7401 * config/alpha/predicates.md (input_operand): Revert last change;
7402 update comment to mention 32-bit VMS rather than Windows.
7404 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7406 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7407 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7408 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7409 * passes.c (init_optimization_passes): Move
7410 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7412 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7414 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7416 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7418 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7421 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7424 * simplify-rtx.c (simplify_const_unary_operation): Call
7425 real_convert when changing mode class with FLOAT_EXTEND.
7427 2011-03-24 Nick Clifton <nickc@redhat.com>
7429 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7430 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7431 * config/rx/rx.c (rx_option_override): Set align_jumps,
7432 align_loops and align_labels if not set by the user.
7433 (rx_align_for_label): New function.
7434 (rx_max_skip_for_label): New function.
7435 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7436 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7437 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7438 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7439 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7441 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7443 PR rtl-optimization/48263
7444 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7445 and original commutative_p handling. Use maybe_gen_insn.
7447 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7449 * reload.c (find_reloads_subreg_address): Add address_reloaded
7450 parameter and return true there if the full address has been
7452 (find_reloads_toplev): Pass address_reloaded flag.
7453 (find_reloads_address_1): Don't use address_reloaded parameter.
7455 2011-03-24 Jeff Law <law@redhat.com>
7457 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7458 unused variable "ann".
7459 (remove_unused_locals): Likewise.
7461 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7464 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7467 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7469 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7470 for invalid symbolic addresses.
7471 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7474 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7476 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7477 the argument in calls to fold_truth_not_expr.
7479 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7481 * tree.c (record_node_allocation_statistics): New function.
7482 (make_node_stat, copy_node_stat, build_string): Call it.
7483 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7484 (build1_stat, build_omp_clause): Likewise.
7486 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7488 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7491 2011-03-24 Richard Guenther <rguenther@suse.de>
7493 PR tree-optimization/48271
7494 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7495 blocks that still exist.
7497 2011-03-24 Richard Guenther <rguenther@suse.de>
7499 PR tree-optimization/48270
7500 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7501 not free datarefs before ddrs.
7503 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7505 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7506 from the address built for a reference with variable offset.
7508 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7511 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7512 alternatives that can be handled with movq or movabsq insn.
7513 (*movdf_internal): Disable for !TARGET_64BIT.
7514 (*movdf_internal_nointeger): Ditto.
7515 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7517 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7519 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7520 (FUNCTION_ARG_ADVANCE): Likewise.
7521 * tm.texi.in: Change references to them to hook references.
7522 * tm.texi: Regenerate.
7523 * targhooks.c (default_function_arg): Eliminate check for target macro.
7524 (default_function_incoming_arg): Likewise.
7525 (default_function_arg_advance): Likewise.
7526 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7527 (function_arg_advance): Likewise.
7528 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7530 2011-03-24 Richard Guenther <rguenther@suse.de>
7533 * tree-object-size.c (addr_object_size): Do not double-account
7534 for MEM_REF offsets.
7536 2011-03-24 Diego Novillo <dnovillo@google.com>
7538 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7539 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7540 (lto_input_data_block): Move from lto-opts.c. Make extern.
7542 (lto_input_string): Rename from input_string. Make extern.
7544 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7545 output_string_with_length.
7546 Output 0 to indicate a non-NULL string. Update all callers to
7548 (lto_output_string): Rename from output_string. Make extern.
7550 (lto_output_decl_state_streams): Make extern.
7551 (lto_output_decl_state_refs): Make extern.
7552 * lto-streamer.h (lto_input_string): Declare.
7553 (lto_input_data_block): Declare.
7554 (lto_output_string): Declare.
7555 (lto_output_string_with_length): Declare.
7556 (lto_output_decl_state_streams): Declare.
7557 (lto_output_decl_state_refs): Declare.
7559 2011-03-24 Richard Guenther <rguenther@suse.de>
7561 PR tree-optimization/46562
7562 * tree.c (build_invariant_address): New function.
7563 * tree.h (build_invariant_address): Declare.
7564 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7565 a renamed function moved ...
7566 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7567 Take valueization callback parameter.
7568 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7569 * gimple-fold.h: New file.
7570 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7571 (ccp_fold, fold_const_aggregate_ref,
7572 fold_ctor_reference, fold_nonarray_ctor_reference,
7573 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7574 get_base_constructor): Move ...
7575 * gimple-fold.c: ... here.
7576 (gimple_fold_stmt_to_constant_1): New function
7577 split out from ccp_fold. Take a valueization callback parameter.
7578 Valueize all operands.
7579 (gimple_fold_stmt_to_constant): New wrapper function.
7580 (fold_const_aggregate_ref_1): New function split out from
7581 fold_const_aggregate_ref. Take a valueization callback parameter.
7582 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7583 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7584 invariant POINTER_PLUS_EXPRs to invariant form.
7585 (vn_valueize): New function.
7586 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7587 * tree-vrp.c (vrp_valueize): New function.
7588 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7589 to fold statements to constants.
7590 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7591 function declarations.
7592 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7593 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7595 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7597 * config/h8300/predicates.md (jump_address_operand): Fix register
7600 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7602 * doc/invoke.texi (max-stores-to-sink): Document.
7603 * params.h (MAX_STORES_TO_SINK): Define.
7604 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7605 if either vectorization or if-conversion is disabled.
7606 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7607 tree-vect-data-refs.c vect_equal_offsets.
7608 (dr_equal_offsets_p): New function.
7609 (find_data_references_in_bb): Remove static.
7610 * tree-data-ref.h (find_data_references_in_bb): Declare.
7611 (dr_equal_offsets_p): Likewise.
7612 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7613 (vect_drs_dependent_in_basic_block): Update calls to
7615 (vect_check_interleaving): Likewise.
7616 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7617 (cond_if_else_store_replacement): Rename to...
7618 (cond_if_else_store_replacement_1): ... this. Change arguments and
7620 (cond_if_else_store_replacement): New function.
7621 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7622 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7624 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7627 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7628 to subtract lower bound instead of GEN_INT().
7630 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7635 * doc/extend.texi (Alignment): Move section to match order in TOC.
7636 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7637 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7639 2011-03-23 Jeff Law <law@redhat.com>
7641 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7642 before removing the edge.
7644 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7645 it may have been freed by redirect_branch_edge or
7646 redirect_edge_succ_nodup.
7648 2011-03-23 Richard Guenther <rguenther@suse.de>
7650 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7651 (check_va_list_escapes): Likewise.
7652 (check_all_va_list_escapes): Likewise.
7654 2011-03-23 Richard Guenther <rguenther@suse.de>
7656 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7657 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7658 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7659 (alias.o): Likewise.
7660 (ipa-type-escape.o): Remove.
7661 (ipa-struct-reorg.o): Likewise.
7662 (GTFILES): Remove ipa-struct-reorg.c.
7663 * alias.c: Do not include ipa-type-escape.h.
7664 * tree-ssa-alias.c: Likewise.
7665 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7666 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7667 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7668 and ipa-type-escape passes.
7669 * tree-pass.h (pass_ipa_type_escape): Remove.
7670 (pass_ipa_struct_reorg): Likewise.
7671 * ipa-struct-reorg.h: Remove.
7672 * ipa-struct-reorg.c: Likewise.
7673 * ipa-type-escape.h: Likewise.
7674 * ipa-type-escape.c: Likewise.
7675 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7676 (--param struct-reorg-cold-struct-ratio): Likewise.
7677 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7678 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7679 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7681 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7683 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7684 cpu attribute value.
7685 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7686 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7687 * config/s390/s390.c (processor_flags_table): New constant array.
7688 (s390_handle_arch_option): Remove.
7689 (s390_handle_option): Remove s390_handle_arch_option invocations
7690 and OPT_mwarn_framesize_ handling.
7691 (s390_option_override): Remove s390_handle_arch_option invocation.
7692 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7694 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7695 * config/s390/s390.opt (s390_tune, s390_arch)
7696 (march=): Replace s390_arch_option enum and values with
7697 processor_type. Set variable name to s390_arch. Set
7698 initialization value.
7699 (mtune=): Replace s390_arch_option with processor_type. Set
7700 variable name to s390_tune. Set initialization value.
7702 2011-03-23 Julian Brown <julian@codesourcery.com>
7704 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7705 accesses which are not naturally aligned.
7707 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7710 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7712 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7714 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7715 parameter from "int" to "enum insn_code".
7716 (expand_operand_type): New enum.
7717 (expand_operand): New structure.
7718 (create_expand_operand): New function.
7719 (create_fixed_operand, create_output_operand): Likewise
7720 (create_input_operand, create_convert_operand_to): Likewise.
7721 (create_convert_operand_from, create_address_operand): Likewise.
7722 (create_integer_operand): Likewise.
7723 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7724 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7725 (expand_insn, expand_jump_insn): Likewise.
7726 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7727 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7728 (expand_movstr, expand_builtin___clear_cache): Likewise.
7729 (expand_builtin_lock_release): Likewise.
7730 * explow.c (allocate_dynamic_stack_space): Likewise.
7731 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7732 and use the default handling in that case.
7733 * expmed.c (check_predicate_volatile_ok): Delete.
7734 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7735 (emit_cstore): Likewise.
7736 * expr.c (emit_block_move_via_movmem): Likewise.
7737 (set_storage_via_setmem, expand_assignment): Likewise.
7738 (emit_storent_insn, try_casesi): Likewise.
7739 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7740 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7741 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7742 (expand_twoval_unop, expand_twoval_binop): Likewise.
7743 (expand_unop_direct, emit_indirect_jump): Likewise.
7744 (emit_conditional_move, vector_compare_rtx): Likewise.
7745 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7746 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7747 (expand_sync_lock_test_and_set): Likewise.
7748 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7749 (emit_unop_insn): Likewise.
7750 (expand_copysign_absneg): Change icode to an insn_code.
7751 (create_convert_operand_from_type): New function.
7752 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7753 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7754 (expand_insn, expand_jump_insn): Likewise.
7755 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7756 than const_int_operand for operand 2.
7758 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7760 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7763 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7765 * emit-rtl.c (emit_pattern_before_noloc): New function.
7766 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7767 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7768 (emit_pattern_after_noloc): New function.
7769 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7770 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7772 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7774 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7775 (__ffsDI2): Likewise.
7777 2011-03-22 Richard Henderson <rth@redhat.com>
7779 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7780 of !TARGET_ABI_OPEN_VMS.
7781 (alpha_trampoline_init, alpha_start_function): Likewise.
7782 (alpha_expand_epilogue, alpha_file_start): Likewise.
7783 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7784 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7785 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7786 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7787 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7789 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7791 * config/s390/s390-opts.h: New.
7792 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7793 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7794 s390_stack_guard): Remove.
7795 (s390_handle_arch_option): Return void. Take enum
7796 s390_arch_option value instead of string and searching array.
7797 (s390_handle_option): Don't assert that global structures are in
7798 use. Access variables via opts pointer. Use error_at. Don't use
7799 sscanf for -mstack-guard= or -mstack-size=. Update call to
7800 s390_handle_arch_option.
7801 (s390_option_override): Update call to s390_handle_arch_option.
7802 (s390_emit_prologue): Use %d format for s390_stack_size in
7803 diagnostic. Use %wd for HOST_WIDE_INT.
7804 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7805 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7806 * config/s390/s390.opt (config/s390/s390-opts.h): New
7807 HeaderInclude entry.
7808 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7809 s390_arch_flags, s390_warn_framesize): New Variable entries.
7810 (s390_arch_option): New Enum and EnumValue entries.
7811 (march=): Use Enum instead of Var.
7812 (mstack-guard=, mstack-size=): Use UInteger and Var.
7815 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7817 * config/score/score.c (score_handle_option): Don't assert that
7818 global structures are in use. Access target_flags via opts
7819 pointer. Use value of -march= option to determine target_flags
7821 * config/score/score.opt (march=): Use Enum.
7822 (score_arch): New Enum and EnumValue entries.
7824 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7826 * config/mep/mep.c (option_mtiny_specified): Remove.
7827 (mep_option_override): Move register handling for -mivc2 from
7828 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
7829 instead of option_mtiny_specified.
7830 (mep_handle_option): Access target_flags via opts pointer. Don't
7831 assert that global structures are in use. Defer part of -mivc2
7832 handling and move it to mep_option_override.
7833 * config/mep/mep.opt (IVC2): New Mask entry.
7834 (mivc2): Use Var and Defer instead of Mask.
7836 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7838 * config/v850/v850-opts.h: New.
7839 * config/v850/v850.c (small_memory): Replace with
7840 small_memory_physical_max array. Make that array static const.
7841 (v850_handle_memory_option): Take integer value of argument. Take
7842 gcc_options pointer, option text and location. Return void.
7843 Update for changes to small memory structures.
7844 (v850_handle_option): Access target_flags via opts pointer. Don't
7845 assert that global structures are in use. Update calls to
7846 v850_handle_memory_option.
7847 (v850_encode_data_area): Update references to small memory settings.
7848 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7849 (enum small_memory_type): Move to v850-opts.h.
7850 * config/v850/v850.opt (config/v850/v850-opts.h): New
7851 HeaderInclude entry.
7852 (small_memory_max): New Variable entry.
7853 (msda): Replace by pair of options msda= and msda-. Use UInteger.
7854 (mtda, mzda): Likewise.
7856 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7858 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7859 pointer. Don't assert that global structures are in use.
7861 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7863 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7864 via opts pointer. Don't assert that global structures are in use.
7866 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7868 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7869 (munix=93): Use Var.
7870 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7871 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7872 * config/pa/pa-opts.h: New.
7873 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7874 (pa_handle_option): Don't assert that global structures are in
7875 use. Access target_flags via opts pointer. Don't handle
7876 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7878 (pa_option_override): Handle deferred OPT_mfixed_range_.
7880 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7882 * config/mn10300/mn10300-opts.h: New.
7883 * config/mn10300/mn10300.c (mn10300_processor,
7884 mn10300_tune_string): Remove.
7885 (mn10300_handle_option): Don't assert that global structures are
7886 in use. Access mn10300_processor via opts pointer. Don't handle
7888 * config/mn10300/mn10300.h (enum processor_type): Move to
7890 (mn10300_processor): Remove.
7891 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7892 HeaderInclude entry.
7893 (mn10300_processor): New Variable entry.
7896 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7898 * config/microblaze/microblaze.c: Don't include opts.h.
7899 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7900 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7901 (mno-clearbss): Use Var and Warn.
7903 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7905 * config/m32r/m32r-opts.h: New.
7906 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7907 (m32r_handle_option): Don't assert that global structures are in
7908 use. Access target_flags and m32r_cache_flush_func via opts
7909 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
7910 OPT_mno_flush_trap here.
7911 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7912 include of m32r-opts.h.
7913 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7914 HeaderInclude entry.
7915 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7916 (mmodel=): Use Enum and Var.
7917 (m32r_model): New Enum and EnumValue entries.
7918 (mno-flush-trap): Use Var.
7919 (msdata=): Use Enum and Var.
7920 (m32r_sdata): New Enum and EnumValue entries.
7922 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7924 * config/m32c/m32c.c: Don't include opts.h.
7925 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7926 m32c_handle_option): Remove.
7927 (m32c_option_override): Check global_options_set.x_target_memregs
7928 instead of target_memregs_set.
7929 * config/m32c/m32c.h (target_memregs): Remove.
7930 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7933 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7935 * config/iq2000/iq2000-opts.h: New.
7936 * config/iq2000/iq2000.c: Don't include opts.h.
7937 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7938 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7939 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7940 HeaderInclude entry.
7941 (iq2000_tune): New Variable entry.
7942 (march=): Add comment. Use Enum.
7943 (iq2000_arch): New Enum and EnumValue entries.
7944 (mcpu=): Use Enum and Var.
7945 (iq2000_tune): New Enum and EnumValue entries.
7947 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7949 * config/ia64/ia64-opts.h: New.
7950 * config/ia64/ia64.c (ia64_tune): Remove.
7951 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7953 (ia64_option_override): Handle deferred OPT_mfixed_range_.
7954 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7955 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7956 HeaderInclude entry.
7957 (ia64_tune): New Variable entry.
7958 (mfixed-range=): Use Defer and Var.
7959 (mtune=): Use Enum and Var.
7960 (ia64_tune): New Enum and EnumValue entries.
7962 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7964 * config/frv/frv-opts.h: New.
7965 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7967 (frv_cpu_type): Remove.
7968 * config/frv/frv.c: Don't include opts.h.
7969 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7970 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7971 (frv_cpu_type): New Variable entry.
7972 (frv_cpu): New Enum and EnumValue entries.
7974 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7976 * config/cris/cris.c (cris_handle_option): Access target_flags via
7977 opts pointer. Don't assert that global structures are in use.
7978 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7979 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7981 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7983 * config/bfin/bfin-opts.h: New.
7984 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7985 bfin_si_revision, bfin_workarounds): Remove.
7986 (bfin_cpus): Make static const.
7987 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7988 not bfin_lib_id_given.
7989 (bfin_handle_option): Don't set bfin_lib_id_given. Access
7990 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7991 pointer. Use error_at. Don't assert that global structures are in use.
7992 * config/bfin/bfin.h: Include bfin-opts.h.
7993 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7994 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7995 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7996 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7999 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8001 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8002 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8003 or -msoft-float here.
8004 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8005 -msoft-float and -mhard-float.
8006 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8007 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8009 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8011 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8012 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8014 (LIBGCC_SPEC): Don't handle -msoft-float.
8015 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8017 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8019 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8020 -mfloat-abi=*, not -msoft-float and -mhard-float.
8021 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8023 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8024 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8025 mhard-float and msoft-float.
8026 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8027 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8028 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8029 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8031 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8032 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8034 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8036 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8039 2011-03-22 Richard Henderson <rth@redhat.com>
8041 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8042 TARGET_ABI_WINDOWS_NT.
8043 (alpha_output_function_end_prologue): Likewise.
8044 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8045 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8046 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8047 (trap, *movsi_nt_vms): Likewise.
8048 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8049 (*tablejump_osf_nt_internal): Remove.
8050 * config/alpha/predicates.md (input_operand): Only test Pmode.
8052 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8054 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8055 via opts pointer. Use error_at. Don't assert that global
8056 structures are in use.
8058 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8060 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8061 (ix86_handle_option): Access ix86_isa_flags and
8062 ix86_isa_flags_explicit via opts pointer. Don't assert that
8063 global structures are in use.
8064 (ix86_function_specific_save, ix86_function_specific_restore):
8065 Update ix86_isa_flags_explicit field name.
8066 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8067 (ix86_isa_flags_explicit): Rename TargetSave entry to
8068 x_ix86_isa_flags_explicit.
8070 2011-03-22 Richard Henderson <rth@redhat.com>
8072 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8073 (alpha_option_override, direct_return): Likewise.
8074 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8075 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8076 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8077 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8078 (alpha_expand_epilogue, alpha_end_function): Likewise.
8079 (alpha_init_libfuncs): Likewise.
8080 (struct machine_function): Remove unicosmk members.
8081 (print_operand) ['t']: Remove.
8082 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8083 unicosmk_output_module_name, unicosmk_output_common,
8084 current_section_align, unicosmk_output_text_section_asm_op,
8085 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8086 unicosmk_section_type_flags, unicosmk_unique_section,
8087 unicosmk_asm_named_section, unicosmk_insert_attributes,
8088 unicosmk_output_align, unicosmk_defer_case_vector,
8089 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8090 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8091 unicosmk_output_ssib, unicosmk_add_call_info_word,
8092 unicosmk_extern_head, unicosmk_output_default_externs,
8093 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8094 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8095 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8096 * config/alpha/alpha-protos.h: Update.
8097 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8098 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8099 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8100 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8101 (*mulsi_se, mulvsi3): Likewise.
8102 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8103 (*divmodsi_internal, call, call_value, realign): Likewise.
8104 (moddi3, umoddi3): Likewise; remove duplicate expander.
8105 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8106 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8107 (*movdi_nofix): Remove r/U alternative.
8108 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8109 * config/alpha/constraints.md ("U"): Remove.
8110 * config/alpha/predicates.md (call_operand"): Don't test
8111 TARGET_ABI_UNICOSMK.
8113 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8115 * target.def (handle_option): Take gcc_options and
8116 cl_decoded_option pointers and location_t.
8117 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8118 * doc/tm.texi: Regenerate.
8119 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8120 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8121 * lto-opts.c (lto_reissue_options): Generate option structure for
8122 targetm.handle_option call.
8123 * opts.c (target_handle_option): Update call to
8124 targetm.handle_option. Remove assertions about values now passed
8126 * targhooks.c (default_target_handle_option): New.
8127 * targhooks.h (default_target_handle_option): Declare.
8128 * config/alpha/alpha.c: Include opts.h.
8129 (alpha_handle_option): Update to new hook interface.
8130 * config/arm/arm.c: Include opts.h.
8131 (arm_handle_option): Update to new hook interface.
8132 * config/arm/t-arm (arm.o): Update dependencies.
8133 * config/bfin/bfin.c: Include opts.h.
8134 (bfin_handle_option): Update to new hook interface.
8135 * config/cris/cris.c: Include opts.h.
8136 (cris_handle_option): Update to new hook interface.
8137 * config/frv/frv.c: Include opts.h.
8138 (frv_handle_option): Update to new hook interface.
8139 * config/i386/i386.c: Include opts.h.
8140 (ix86_handle_option): Update to new hook interface.
8141 (ix86_valid_target_attribute_inner_p): Generate option structure
8142 for call to ix86_handle_option.
8143 * config/i386/t-i386 (i386.o): Update dependencies.
8144 * config/ia64/ia64.c: Include opts.h.
8145 (ia64_handle_option): Update to new hook interface.
8146 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8147 * config/iq2000/iq2000.c: Include opts.h.
8148 (iq2000_handle_option): Update to new hook interface.
8149 * config/m32c/m32c.c: Include opts.h.
8150 (m32c_handle_option): Update to new hook interface.
8151 * config/m32r/m32r.c: Include opts.h.
8152 (m32r_handle_option): Update to new hook interface.
8153 * config/m68k/m68k.c: Include opts.h.
8154 (m68k_handle_option): Update to new hook interface.
8155 * config/mep/mep.c: Include opts.h.
8156 (mep_handle_option): Update to new hook interface.
8157 * config/microblaze/microblaze.c: Include opts.h.
8158 (microblaze_handle_option): Update to new hook interface.
8159 * config/mips/mips.c: Include opts.h.
8160 (mips_handle_option): Update to new hook interface.
8161 * config/mn10300/mn10300.c: Include opts.h.
8162 (mn10300_handle_option): Update to new hook interface.
8163 * config/pa/pa.c: Include opts.h.
8164 (pa_handle_option): Update to new hook interface.
8165 * config/pdp11/pdp11.c: Include opts.h.
8166 (pdp11_handle_option): Update to new hook interface.
8167 * config/rs6000/rs6000.c: Include opts.h.
8168 (rs6000_handle_option): Update to new hook interface.
8169 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8170 * config/rx/rx.c: Include opts.h.
8171 (rx_handle_option): Update to new hook interface.
8172 * config/s390/s390.c: Include opts.h.
8173 (s390_handle_option): Update to new hook interface.
8174 * config/score/score.c: Include opts.h.
8175 (score_handle_option): Update to new hook interface.
8176 * config/sh/sh.c: Include opts.h.
8177 (sh_handle_option): Update to new hook interface.
8178 * config/sparc/sparc.c: Include opts.h.
8179 (sparc_handle_option): Update to new hook interface.
8180 * config/v850/v850.c: Include opts.h.
8181 (v850_handle_option): Update to new hook interface.
8183 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8185 * gcc.c (driver_unknown_option_callback): Only permit and save
8186 unknown -Wno- options.
8187 (driver_wrong_lang_callback): Save options directly instead of via
8188 driver_unknown_option_callback.
8190 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8192 * combine.c (simplify_set): Try harder to find the best CC mode when
8193 simplifying a nested COMPARE on the RHS.
8195 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8197 * config/alpha/gnu.h: Remove.
8198 * config/arc: Remove directory.
8199 * config/arm/netbsd.h: Remove.
8200 * config/arm/t-pe: Remove.
8201 * config/crx: Remove directory.
8202 * config/i386/netbsd.h: Remove.
8203 * config/m68hc11: Remove directory.
8204 * config/m68k/uclinux-oldabi.h: Remove.
8205 * config/mcore/mcore-pe.h: Remove.
8206 * config/mcore/t-mcore-pe: Remove.
8207 * config/netbsd-aout.h: Remove.
8208 * config/rs6000/gnu.h: Remove.
8209 * config/sh/sh-symbian.h: Remove.
8210 * config/sh/symbian-base.c: Remove.
8211 * config/sh/symbian-c.c: Remove.
8212 * config/sh/symbian-cxx.c: Remove.
8213 * config/sh/symbian-post.h: Remove.
8214 * config/sh/symbian-pre.h: Remove.
8215 * config/sh/t-symbian: Remove.
8216 * config/svr3.h: Remove.
8217 * config/vax/netbsd.h: Remove.
8218 * config.build: Don't handle i[34567]86-*-pe.
8219 * config.gcc: Remove handling of deprecations for most deprecated
8221 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8222 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8223 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8224 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8225 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8226 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8228 * config.host: Don't handle i[34567]86-*-pe.
8229 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8230 (ASM_SPEC32): Don't handle -mcall-gnu.
8231 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8233 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8234 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8235 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8236 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8237 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8238 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8239 conditional on SYMBIAN.
8240 * configure.ac: Don't handle powerpc*-*-gnu*.
8241 * configure: Regenerate.
8242 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8243 * doc/install-old.texi (m6811, m6812): Don't mention.
8244 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8245 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8246 (m68k-uclinuxoldabi): Don't mention.
8247 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8249 (-mcall-gnu): Remove.
8250 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8251 families): Remove constraint documentation.
8253 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8255 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8256 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8257 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8259 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8262 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8263 vector when peeking at the next token for vector, don't expand the
8266 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8268 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8269 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8270 * config/avr/avr.c (init_cumulative_args)
8271 (avr_function_arg_advance): Use it.
8272 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8274 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8275 (avr_function_ok_for_sibcall): ...this new function.
8276 (avr_lookup_function_attribute1): New static Function.
8277 (avr_naked_function_p, interrupt_function_p)
8278 (signal_function_p, avr_OS_task_function_p)
8279 (avr_OS_main_function_p): Use it.
8280 * config/avr/avr.md ("sibcall", "sibcall_value")
8281 ("sibcall_epilogue"): New expander.
8282 ("*call_insn", "*call_value_insn"): New insn.
8283 ("call_insn", "call_value_insn"): Remove
8284 ("call", "call_value", "epilogue"): Change expander to handle
8287 2011-03-21 Nick Clifton <nickc@redhat.com>
8289 * doc/invoke.texi (Overall Options): Move closing brace to end of
8291 (Optimization Options): Add missing @gol.
8292 (Directory Options): Likewise.
8293 (i386 and x86-64 Options): Likewise.
8294 (RS6000 and PowerPC Options): Likewise.
8295 (i386 and x86-64 Windows Options): Likewise.
8296 (V850 Options): Add text missing from descriptions.
8298 2011-03-22 Richard Henderson <rth@redhat.com>
8300 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8301 (avr_incoming_return_addr_rtx): New.
8302 (emit_push_byte): New.
8303 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8304 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8305 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8306 (emit_pop_byte): New.
8307 (expand_epilogue): Use it. Pop frame pointer by bytes.
8308 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8309 (INCOMING_RETURN_ADDR_RTX): New.
8310 (INCOMING_FRAME_SP_OFFSET): New.
8311 (ARG_POINTER_CFA_OFFSET): New.
8312 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8313 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8316 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8318 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8320 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8321 (FUNCTION_ARG_ADVANCE): Likewise.
8322 * tm.texi.in: Change references to them to hook references.
8323 * tm.texi: Regenerate.
8324 * targhooks.c (default_function_arg): Eliminate check for target
8326 (default_function_incoming_arg): Likewise.
8327 (default_function_arg_advance): Likewise.
8328 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8329 (function_arg_advance): Likewise.
8330 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8332 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8334 * tree.c (build_call_1): New function.
8335 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8337 2011-03-22 Richard Guenther <rguenther@suse.de>
8339 PR tree-optimization/48228
8340 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8341 for single-arg PHIs.
8343 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8345 PR rtl-optimization/48143
8346 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8347 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8348 sse2_cvtps2pd): Likewise.
8350 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8352 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8354 2011-03-22 Richard Guenther <rguenther@suse.de>
8356 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8357 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8358 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8359 and REALIGN_LOAD_EXPR.
8360 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8361 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8362 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8363 DOT_PROD_EXPR case ...
8364 (expand_expr_real_2): ... here.
8365 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8366 and REALIGN_LOAD_EXPR.
8367 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8368 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8369 (vect_create_epilog_for_reduction): Likewise.
8370 (vectorizable_reduction): Likewise.
8371 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8372 * tree-vect-stmts.c (vectorizable_load): Likewise.
8374 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8376 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8378 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8380 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8381 handling for PLTOFF/GOTOFF.
8383 2011-03-22 Nick Clifton <nickc@redhat.com>
8385 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8386 trailing backslash from the end of the macro definition.
8388 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8390 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8393 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8395 * expr.h (prepare_operand): Move to...
8396 * optabs.h (prepare_operand): ...here and change the insn code
8397 parameter from "int" to "enum insn_code".
8398 (insn_operand_matches): Declare.
8399 * expr.c (init_expr_target): Use insn_operand_matches.
8400 (compress_float_constant): Likewise.
8401 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8402 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8403 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8404 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8406 (gen_cond_trap): Likewise.
8407 (prepare_operand): Likewise. Change icode to an insn_code.
8408 (insn_operand_matches): New function.
8409 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8410 * reload1.c (gen_reload): Likewise.
8411 * targhooks.c (default_secondary_reload): Likewise.
8413 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8415 * config/alpha/alpha.md (unspec): New define_c_enum.
8418 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8421 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8422 between a call and its CALL_ARG_LOCATION note.
8424 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8426 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8428 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8432 * c-common.c (shorten_compare): If primopN is first sign-extended
8433 to opN and then zero-extended to result type, set primopN to opN.
8435 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8437 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8438 for barrier handlers.
8440 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8442 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8443 UNSPEC constants to be in the unspec enumeration, and redefine
8444 all UNSPECV constants to be in the unspecv enumeration, so that
8445 dumps print which unspec/unspec_volatile this is.
8446 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8447 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8448 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8449 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8450 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8452 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8453 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8454 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8455 * config/rs6000/sync.md (isync, lwsync): Ditto.
8457 2011-03-21 Richard Guenther <rguenther@suse.de>
8459 * params.def (lto-min-partition): Fix typo.
8461 2011-03-21 Richard Guenther <rguenther@suse.de>
8464 * c-decl.c (grokdeclarator): Drop to the main variant only
8465 for array types. Drop flag_gen_aux_info check.
8467 2011-03-21 Richard Guenther <rguenther@suse.de>
8469 PR translation/47911
8470 * params.def (lto-partitions): Fix typo.
8471 (lto-min-partition): Fix wording.
8473 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8475 * config/rs6000/t-freebsd: Remove duplication from file.
8477 2011-03-21 Richard Guenther <rguenther@suse.de>
8480 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8482 2011-03-21 Richard Guenther <rguenther@suse.de>
8485 * params.def (lto-partitions): Require at least 1 partition.
8487 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8489 * gthr-solaris.h: Remove.
8490 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8491 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8492 (LIB_SPEC): Likewise.
8493 * config/sol2.opt (threads): Remove.
8494 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8495 (sparc*-*-solaris2*): Likewise.
8496 * configure.ac (enable_threads): Enable solaris support.
8497 * configure: Regenerate.
8498 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8499 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8502 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8504 * config.gcc: Obsolete *-*-solaris2.8*.
8505 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8507 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8510 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8511 reference. Solaris 8 perl works.
8513 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8516 * doc/install.texi (Prerequisites): Move jar etc. up.
8517 Explain support library version requirements.
8519 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8522 * doc/install.texi (Prerequisites): Move Perl to build
8523 requirements. Always necessary on Solaris 2 with Sun ld.
8525 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8527 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8529 (Specific, i?86-*-solaris2.[89]): Likewise.
8530 (Specific, i?86-*-solaris2.10): Likewise.
8531 (Specific, mips-sgi-irix6): Likewise.
8532 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8533 Update for binutils 2.21.
8535 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8537 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8538 Allow -fuse-linker-plugin for non-default plugin linker.
8539 * configure: Regenerate.
8541 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8544 * gengtype.c (files_rules): Added rule for cp/parser.h.
8546 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8549 * config/s390/s390.c (s390_delegitimize_address): Don't call
8550 lowpart_subreg if orig_x has BLKmode.
8552 2011-03-21 Kai Tietz <ktietz@redhat.com>
8555 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8556 * tree.h (attribute_spec): Add new member affects_type_identity.
8557 * attribs.c (empty_attribute_table): Adjust attribute_spec
8559 * config/alpha/alpha.c: Likewise.
8560 * config/arc/arc.c: Likewise.
8561 * config/arm/arm.c: Likewise.
8562 * config/avr/avr.c: Likewise.
8563 * config/bfin/bfin.c: Likewise.
8564 * config/crx/crx.c: Likewise.
8565 * config/darwin.h: Likewise.
8566 * config/h8300/h8300.c: Likewise.
8567 * config/i386/cygming.h: Likewise.
8568 * config/i386/i386.c: Likewise.
8569 * config/ia64/ia64.c: Likewise.
8570 * config/m32c/m32c.c: Likewise.
8571 * config/m32r/m32r.c: Likewise.
8572 * config/m68hc11/m68hc11.c: Likewise.
8573 * config/m68k/m68k.c: Likewise.
8574 * config/mcore/mcore.c: Likewise.
8575 * config/mep/mep.c: Likewise.
8576 * config/microblaze/microblaze.c: Likewise.
8577 * config/mips/mips.c: Likewise.
8578 * config/rs6000/rs6000.c: Likewise.
8579 * config/rx/rx.c: Likewise.
8580 * config/sh/sh.c: Likewise.
8581 * config/sol2.h: Likewise.
8582 * config/sparc/sparc.c: Likewise.
8583 * config/spu/spu.c: Likewise.
8584 * config/stormy16/stormy16.c: Likewise.
8585 * config/v850/v850.c: Likewise.
8587 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8589 * simplify-rtx.c (simplify_binary_operation_1): Handle
8590 (xor (and A B) C) case when B and C are both constants.
8592 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8594 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8596 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8599 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8601 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8603 PR rtl-optimization/48156
8604 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8605 assume df and df_lr are not NULL.
8607 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8610 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8611 between a call and its CALL_ARG_LOCATION note.
8613 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8616 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8617 between a call and its corresponding CALL_ARG_LOCATION note.
8619 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8621 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8622 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8623 * haifa-sched.c (setup_ref_regs): Ditto.
8624 * caller-save.c (add_used_regs_1): Ditto.
8625 * dse.c (look_for_hardregs): Ditto.
8626 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8627 * sched-rgn.c (check_live_1): Ditto.
8629 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8631 * c-decl.c (diagnose_mismatched_decls): Give an error for
8632 redefining a typedef with variably modified type.
8634 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8636 * c-decl.c (grokfield): Don't allow typedefs for structures or
8637 unions with no tag by default.
8638 * doc/extend.texi (Unnamed Fields): Update.
8640 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8642 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8643 Rewrite using indirect functions.
8644 (lwp_slwpcb): Ditto.
8645 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8646 (avx_vinsertf128<mode>): Ditto.
8648 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8650 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8653 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8655 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8656 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8658 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8660 PR rtl-optimization/48170
8661 * gcse.c (hoist_code): Remove bogus asserts.
8663 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8665 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8666 computation for prologue/epilogue.
8668 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8670 * Makefile.in (check-consistency): Remove.
8672 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8675 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8676 arange_table_in_use is 0, but either text_section_used or
8677 cold_text_section_used is true. Don't call it if
8678 !info_section_emitted.
8680 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8682 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8683 FUNCTION_VALUE_REGNO_P): Remove.
8684 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8686 * config/avr/avr.c (avr_ret_register): Make static inline.
8687 (avr_function_value_regno_p): New function.
8688 (avr_libcall_value): Make static. Add 'func' argument.
8689 (avr_function_value): Make static. Rename 'func' argument to
8690 'fn_decl_or_type', forward it to avr_libcall_value. Call
8691 avr_ret_register function instead of RET_REGISTER macro.
8692 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8694 2011-03-18 Jason Merrill <jason@redhat.com>
8697 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8699 2011-03-18 Richard Guenther <rguenther@suse.de>
8701 * doc/install.texi (--enable-gold): Remove.
8702 (--with-plugin-ld): Document.
8703 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8705 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8708 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8709 again after expansion changes.
8711 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8713 * combine.c (try_combine): Do simplification only call of
8714 subst() on i2 even when i1 is present. Update comments.
8716 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8718 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8719 and UNSPEC_PCREL_SYMOFF.
8721 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8723 * config/s390/s390.md: Use define_c_enum for the unspec constant
8726 2011-03-18 Richard Henderson <rth@redhat.com>
8727 Jakub Jelinek <jakub@redhat.com>
8730 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8731 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8733 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8736 * combine.c (cant_combine_insn_p): Don't check zero/sign
8737 extended hard registers.
8739 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8742 * combine.c (cant_combine_insn_p): Check zero/sign extended
8745 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8747 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8748 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8749 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8750 Change return type to bool.
8751 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8753 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8756 * var-tracking.c (prepare_call_arguments): If CALL target
8757 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8758 pc instead of looking it up using cselib_lookup and use
8759 Pmode for it if x has VOIDmode.
8760 * dwarf2out.c (gen_subprogram_die): If also both first and
8761 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8764 * function.c (assign_parms): For data.passed_pointer parms
8765 use MEM of data.entry_parm instead of data.entry_parm itself
8766 as DECL_INCOMING_RTL.
8767 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8768 also when passed and declared mode is the same, DECL_RTL
8769 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8772 2011-03-16 Jeff Law <law@redhat.com>
8774 PR rtl-optimization/37273
8775 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8776 handle them like argument loads from stack slots. Do not double
8777 count memory for memory constants and argument loads from stack slots.
8779 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8782 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8784 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8787 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8789 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8792 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8794 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8795 Clear call_arg_locations and call_arg_loc_last always.
8798 * var-tracking.c (prepare_call_arguments): If argument needs to be
8799 passed by reference, adjust argtype and mode.
8801 2011-03-17 Richard Guenther <rguenther@suse.de>
8804 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8805 a value make sure to fold the statement.
8807 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8810 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8811 return condition with !cfun->calls_alloca.
8813 2011-03-17 Richard Guenther <rguenther@suse.de>
8816 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8817 origin for decls in other ltrans units.
8818 (input_varpool_node): Likewise.
8820 2011-03-17 Richard Guenther <rguenther@suse.de>
8823 * tree-object-size.c (compute_object_offset): Properly return
8824 the offset operand of MEM_REFs as sizetype.
8826 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8828 PR rtl-optimization/48141
8829 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8830 * dse.c: Include params.h.
8831 (active_local_stores_len): New variable.
8832 (add_wild_read, dse_step1): Clear it when setting active_local_stores
8834 (record_store, check_mem_read_rtx): Decrease it when removing
8836 (scan_insn): Likewise. Increase it when adding to chain, if it
8837 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8838 set active_local_stores to NULL before the addition.
8839 * Makefile.in (dse.o): Depend on $(PARAMS_H).
8841 PR rtl-optimization/48141
8842 * dse.c (record_store): If no positions are needed in an insn
8843 that cannot be deleted, at least unchain it from active_local_stores.
8845 2011-03-16 Dodji Seketeli <dodji@redhat.com>
8848 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8849 (lookup_type_die_strip_naming_typedef): ... here.
8850 (get_context_die): Use it.
8851 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8852 the anonymous struct named by the naming typedef.
8854 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
8857 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8858 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8860 2011-03-16 Jeff Law <law@redhat.com>
8862 * tree-vrp.c (identify_jump_threads): Slightly simplify type
8863 check for operands of conditional. Allow type to be a pointer.
8865 2011-03-16 Richard Guenther <rguenther@suse.de>
8867 PR tree-optimization/48149
8868 * fold-const.c (fold_binary_loc): Fold
8869 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8871 2011-03-16 Richard Guenther <rguenther@suse.de>
8873 PR tree-optimization/26134
8874 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8875 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8876 (non_rewritable_mem_ref_base): Handle complex type component
8877 accesses, constrain offsets for vector and complex extracts
8880 2011-03-16 Richard Guenther <rguenther@suse.de>
8882 PR tree-optimization/48146
8883 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8884 operands avoiding the need for renaming.
8886 2011-03-16 Richard Guenther <rguenther@suse.de>
8888 * gimple-fold.c (maybe_fold_reference): Open-code relevant
8889 constant folding. Move MEM_REF canonicalization first.
8890 Rely on fold_const_aggregate_ref for initializer folding.
8891 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8893 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8896 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8897 arg0/arg1 or their arguments are always fold converted to matching
8900 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8903 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8906 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8907 Handle in-tree gold.
8908 (ld_vers): Extract binutils version for gold.
8909 (gcc_cv_ld_hidden): Handle gold here.
8910 (gcc_cv_lto_plugin): Determine level of linker plugin support.
8911 * configure: Regenerate.
8912 * config.in: Regenerate.
8913 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8914 -fuse-linker-plugin otherwise.
8915 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
8916 (LINK_COMMAND_SPEC): Use it.
8917 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8919 2011-03-16 Jakub Jelinek <jakub@redhat.com>
8921 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8922 * calls.c: Remove debug.h include.
8923 (emit_call_1): Don't call virtual_call_token debug hook.
8924 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8925 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8926 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8927 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8928 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8929 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8930 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8931 dwarf2out_virtual_call): Remove.
8932 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8933 copy_call_info and virtual_call hooks.
8934 (dwarf2out_init): Don't initialize vcall_insn_table,
8935 debug_dcall_section and debug_vcall_section.
8936 (prune_unused_types): Don't mark nodes from dcall_table.
8937 (dwarf2out_finish): Don't output dcall or vcall tables.
8938 * final.c (final_scan_insn): Don't call direct_call or
8939 virtual_call debug hooks.
8940 * debug.h (struct gcc_debug_hooks): Remove direct_call,
8941 virtual_call_token, copy_call_info and virtual_call hooks.
8942 (debug_nothing_uid): Remove prototype.
8943 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8944 copy_call_info and virtual_call hooks.
8945 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8946 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8947 * debug.c (do_nothing_debug_hooks): Likewise.
8948 (debug_nothing_uid): Remove.
8949 * doc/invoke.texi (-fenable-icf-debug): Remove.
8950 * common.opt (-fenable-icf-debug): Likewise.
8952 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8953 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8954 call's MEM. Handle functions returning aggregate through a hidden
8955 first pointer. For virtual calls add clobbered pc to call arguments
8957 * dwarf2out.c (gen_subprogram_die): Emit
8958 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8962 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8963 * rtl.h (ENTRY_VALUE_EXP): Define.
8964 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8965 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8966 * print-rtl.c (print_rtx): Likewise.
8967 * gengtype.c (adjust_field_rtx_def): Likewise.
8968 * var-tracking.c (vt_add_function_parameter): Adjust
8969 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8970 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8971 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8972 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8973 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8975 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8976 Call var_location debug hook even on CALL_INSNs.
8977 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8978 * rtl.def (ENTRY_VALUE): New.
8979 * dwarf2out.c: Include cfglayout.h.
8980 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8981 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8982 (struct call_arg_loc_node): New type.
8983 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8984 tail_call_site_count): New variables.
8985 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8986 DW_TAG_GNU_call_site_parameter.
8987 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8988 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8989 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8990 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8991 and DW_AT_GNU_all_source_call_sites.
8992 (mem_loc_descriptor): Handle ENTRY_VALUE.
8993 (add_src_coords_attributes): Don't add enything if
8994 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8995 (dwarf2out_abstract_function): Save and clear call_arg_location,
8996 call_site_count and tail_call_site_count around dwarf2out_decl call.
8997 (gen_call_site_die): New function.
8998 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8999 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9000 (dwarf2out_function_decl): Clear call_arg_locations,
9001 call_arg_loc_last, set call_site_count and tail_call_site_count
9002 to -1 and free block_map.
9003 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9004 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9005 followed by any real instructions.
9006 (dwarf2out_begin_function): Set call_site_count and
9007 tail_call_site_count to 0.
9008 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9009 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9010 attempt to force a DIE for it and worst case remove the attribute.
9011 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9012 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9014 * var-tracking.c: Include tm_p.h.
9015 (vt_stack_adjustments): For calls call note_register_arguments.
9016 (argument_reg_set): New variable.
9017 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9018 ensure the VALUE is resolved.
9019 (call_arguments): New variable.
9020 (prepare_call_arguments): New function.
9021 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9022 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9023 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9024 always use the best expression.
9025 (vt_expand_loc): Add ignore_cur_loc argument.
9026 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9027 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9028 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9030 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9031 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9032 argument. Don't call cselib_preserve_only_values and
9034 (note_register_arguments): New function.
9035 (vt_initialize): Compute argument_reg_set. Call
9036 vt_add_function_parameters before processing basic blocks instead of
9037 afterwards. For calls call prepare_call_arguments before calling
9038 cselib_process_insn.
9039 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9040 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9041 (var-tracking.o): Depend on $(TM_P_H).
9042 * cfglayout.h (insn_scope): New prototype.
9043 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9044 * cfglayout.c (insn_scope): No longer static.
9045 * insn-notes.def (CALL_ARG_LOCATION): New.
9046 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9047 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9048 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9049 nothing for DECL_EXTERNAL BLOCK_VARS.
9051 2011-03-16 Alan Modra <amodra@gmail.com>
9054 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9055 create invalid offset address for vsx splat insn.
9056 * config/rs6000/predicates.md (splat_input_operand): New.
9057 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9059 2011-03-15 Xinliang David Li <davidxl@google.com>
9062 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9063 (normalize_preds): New function.
9064 (is_use_properly_guarded): Normalize def predicates.
9066 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9069 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9070 in the output template.
9072 2011-03-15 Richard Guenther <rguenther@suse.de>
9075 * tree-pretty-print.c (dump_function_declaration): Properly
9076 dump unprototyped and varargs function types.
9078 2011-03-15 Richard Guenther <rguenther@suse.de>
9080 PR tree-optimization/13954
9081 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9084 2011-03-15 Richard Guenther <rguenther@suse.de>
9086 PR tree-optimization/48037
9087 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9088 selects into BIT_FIELD_REFs.
9089 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9092 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9094 PR tree-optimization/48129
9095 * builtins.c (fold_builtin_snprintf): Convert to type of
9096 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9097 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9099 2011-03-15 Richard Guenther <rguenther@suse.de>
9101 PR tree-optimization/41490
9102 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9103 value but with VUSE.
9104 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9106 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9107 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9108 * tree-tailcall.c (find_tail_calls): Ignore returns.
9110 2011-03-15 Richard Guenther <rguenther@suse.de>
9113 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9114 or variable-indexed array accesses when in gimple form.
9116 2011-03-15 Richard Guenther <rguenther@suse.de>
9118 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9120 2011-03-15 Alan Modra <amodra@gmail.com>
9123 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9124 presume symbol_refs without a symbol_ref_decl are suitably
9125 aligned, nor other trees we may see here. Handle anchor symbols.
9126 (legitimate_constant_pool_address_p): Comment. Add mode param.
9127 Check cmodel=medium addresses. Adjust all calls.
9128 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9129 creating cmodel=medium optimized access to locals.
9130 * config/rs6000/constraints.md (R): Pass QImode to
9131 legitimate_constant_pool_address_p.
9132 * config/rs6000/predicates.md (input_operand): Pass mode to
9133 legitimate_constant_pool_address_p.
9134 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9137 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9140 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9141 64-bit constants being loaded into registers other than GPRs such
9142 as loading 0 into a VSX register.
9144 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9146 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9148 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9151 * builtins.c (fold_builtin_snprintf): New function.
9152 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9153 (fold_builtin_4): Likewise.
9156 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9157 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9158 and C - X == X also strip nops from +/-/p+ operand.
9159 When optimizing -X == C, fold C to arg0's type.
9162 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9163 emit it as add_AT_int instead of add_AT_unsigned.
9165 2011-03-14 Tom Tromey <tromey@redhat.com>
9167 * unwind-dw2.c: Include sys/sdt.h if it exists.
9168 (_Unwind_DebugHook): Use STAP_PROBE2.
9169 * config.in, configure: Rebuild.
9170 * configure.ac: Check for sys/sdt.h.
9172 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9174 * config/i386/i386.md (ROUND_FLOOR): New constant.
9175 (ROUND_CEIL): Ditto.
9176 (ROUND_TRUNC): Ditto.
9177 (ROUND_MXCSR): Ditto.
9178 (ROUND_NO_EXC): Ditto.
9179 (rint<mode>2): Use new defines instead of numerical constants.
9180 (floor<mode>2): Ditto.
9181 (ceil<mode>2): Ditto.
9182 (btrunc<mode>2): Ditto.
9183 * config/i386/i386-builtin-types.def: Define ROUND function type
9185 * config/i386/i386.c (enum ix86_builtins): Add
9186 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9187 (struct builtin_description): Add
9188 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9189 (ix86_expand_sse_round): New static function.
9190 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9192 (ix86_builtin_vectorized_function): Handle
9193 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9195 2011-03-14 Tom Tromey <tromey@redhat.com>
9197 * c-parser.c (c_parser_asm_string_literal): Clear
9198 warn_overlength_strings.
9200 2011-03-14 Tom Tromey <tromey@redhat.com>
9202 * c-parser.c (disable_extension_diagnostics): Save
9203 warn_overlength_strings.
9204 (restore_extension_diagnostics): Restore warn_overlength_strings.
9206 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9208 * BASE-VER: Change to 4.7.0.
9210 2011-03-14 Richard Guenther <rguenther@suse.de>
9213 * tree.c (build_vector_from_val): Adjust assert to requirements
9216 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9219 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9221 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9223 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9224 terms of target_flags_explicit. Adjust copyright year.
9226 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9227 * config/rs6000/t-freebsd: New file. Add override for
9230 2011-03-13 Chris Demetriou <cgd@google.com>
9232 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9233 (-fno-diagnostics-show-option): this, to reflect current default.
9234 (-Werror=): Update text about -fno-diagnostics-show-option.
9236 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9239 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9240 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9241 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9242 mode is not V2DImode or V2DFmode.
9243 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9244 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9245 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9247 (movdi_internal64): Likewise.
9249 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9251 PR tree-optimization/47127
9252 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9254 (set_cloog_options): Same.
9255 (scop_to_clast): Same.
9256 (print_clast_stmt): Do not call cloog_state_malloc and
9258 (print_generated_program): Same.
9260 * graphite-clast-to-gimple.h (cloog_state): Declared.
9261 (scop_to_clast): Adjust declaration.
9262 * graphite.c (cloog_state): Defined here.
9263 (graphite_initialize): Call cloog_state_malloc.
9264 (graphite_finalize): Call cloog_state_free.
9266 2011-03-11 Jason Merrill <jason@redhat.com>
9268 * attribs.c (lookup_attribute_spec): Take const_tree.
9271 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9273 * config/sparc/sparc.c (sparc_option_override): Use
9274 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9276 2011-03-11 Richard Guenther <rguenther@suse.de>
9278 PR tree-optimization/48067
9279 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9280 multiplication result will be only used once on the target
9283 2011-03-11 Richard Guenther <rguenther@suse.de>
9285 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9287 2011-03-11 Richard Guenther <rguenther@suse.de>
9290 * tree.c (find_decls_types_r): Do not walk types only reachable
9291 from IDENTIFIER_NODEs.
9293 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9296 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9297 all vnode->force_output nodes as needed.
9299 2011-03-11 Jason Merrill <jason@redhat.com>
9302 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9303 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9305 2011-03-11 Martin Jambor <mjambor@suse.cz>
9307 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9310 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9312 PR tree-optimization/48063
9313 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9314 inline functions called once if !tree_can_inline_p (node->callers).
9316 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9318 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9320 * config/score/score3.c: Delete.
9321 * config/score/score3.h: Delete.
9322 * config/score/mul-div.S: Delete.
9323 * config/score/sfp-machine.h: Add new file.
9324 * config/score/constraints.md: Add new file.
9325 * config/score/t-score-softfp: Add new file.
9326 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9327 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9328 (score7_extra_constraint): Delete.
9329 (score7_option_override): Remove unused code.
9330 * config/score/score.c: Remove score3 and score5 define and code.
9331 * config/score/score.h: Remove score3 and score5 define and code.
9332 * config/score/score.md: Remove score3 template and unusual insn.
9333 * config/score/score.opt: Remove score3 and score5 options.
9335 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9337 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9338 when _HPUX_SOURCE is defined.
9339 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9341 2011-03-10 Jason Merrill <jason@redhat.com>
9344 * stor-layout.c (layout_type): Don't set structural equality
9345 on arrays of incomplete type.
9346 * tree.c (type_hash_eq): Handle comparing them properly.
9348 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9351 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9352 result mode matches original rtl mode.
9354 2011-03-10 Nick Clifton <nickc@redhat.com>
9356 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9357 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9359 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9361 PR rtl-optimization/47866
9362 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9363 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9364 if target wasn't scalar.
9365 * function.c (assign_stack_temp_for_type): Assert that neither
9366 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9367 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9369 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9371 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9373 * config/s390/s390-protos.h (s390_label_align): New prototype.
9374 * config/s390/s390.c (s390_label_align): New function.
9375 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9377 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9380 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9381 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9382 (output_vec_const_move): Ditto.
9384 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9386 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9387 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9388 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9389 Change 'rclass' argument and result type to reg_class_t.
9390 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9392 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9394 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9395 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9396 (TARGET_MEMORY_MOVE_COST): Define.
9397 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9399 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9402 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9405 PR tree-optimization/48022
9406 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9409 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9412 * var-tracking.c (find_use_val): Return NULL for
9413 cui->sets && cui->store_p BLKmode MEMs.
9415 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9417 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9419 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9420 xstormy16_print_operand_address): Remove.
9421 * config/stormy16/stormy16.c (xstormy16_print_operand,
9422 xstormy16_print_operand_address): Make static.
9423 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9425 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9428 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9429 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9432 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9435 * cfgloopmanip.c (fix_bb_placements): Return immediately
9436 if FROM is BASE_LOOP's header.
9438 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9440 * gimplify.c (gimplify_function_tree): Fix building calls
9441 to __builtin_return_address.
9443 2011-03-07 Alan Modra <amodra@gmail.com>
9445 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9446 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9447 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9448 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9450 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9451 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9452 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9453 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9454 * config/rs6000/rs6000.c
9455 (rs6000_elf_end_indicate_exec_stack): Rename to..
9456 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9457 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9458 (rs6000_file_start): ..here.
9459 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9460 file scope variables.
9461 (call_ABI_of_interest): New function.
9462 (init_cumulative_args): Set above vars when function return value
9463 is a float, vector, or small struct.
9464 (rs6000_function_arg_advance_1): Likewise for function args.
9465 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9466 references float args.
9468 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9470 * doc/cfg.texi: Remove "See" before @ref.
9471 * doc/invoke.texi: Likewise.
9473 2011-03-05 Jason Merrill <jason@redhat.com>
9475 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9477 2011-03-05 Anthony Green <green@moxielogic.com>
9479 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9481 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9483 PR rtl-optimization/47899
9484 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9485 to flow_loop_nested_p when moving the loop upward.
9487 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9490 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9492 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9494 PR tree-optimization/47967
9495 * ipa-cp.c (build_const_val): Return NULL instead of creating
9496 VIEW_CONVERT_EXPR for mismatching sizes.
9497 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9498 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9499 give up on versioning.
9501 2011-03-05 Alan Modra <amodra@gmail.com>
9504 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9505 full cmodel medium/large lo_sum + high addresses.
9507 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9509 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9510 pool references in UNSPEC_LTREL_OFFSET.
9512 2011-03-04 Jan Hubicka <jh@suse.cz>
9515 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9516 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9517 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9519 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9520 cgraph_add_thunk): Add node pointers.
9521 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9522 associated to right node.
9523 (input_node): Update use of cgraph_same_body_alias
9524 and cgraph_add_thunk.
9526 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9528 * config/i386/i386.opt (mprefer-avx128): New flag.
9529 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9530 modes when the flag -mprefer-avx128 is on.
9532 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9534 * dwarf2out.c (compare_loc_operands): Fix address handling.
9536 2011-03-04 Alan Modra <amodra@gmail.com>
9538 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9540 2011-03-04 Richard Guenther <rguenther@suse.de>
9543 * expmed.c (extract_bit_field_1): Prefer vector modes that
9544 vec_extract patterns can handle.
9546 2011-03-04 Richard Guenther <rguenther@suse.de>
9549 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9551 2011-03-04 Richard Henderson <rth@redhat.com>
9553 * explow.c (emit_stack_save): Remove 'after' parameter.
9554 (emit_stack_restore): Likewise.
9555 * expr.h: Update to match.
9556 * builtins.c, calls.c, stmt.c: Likewise.
9557 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9558 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9559 * function.c (expand_function_end): Insert the emit_stack_save
9560 sequence before parm_birth_insn instead of after.
9562 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9564 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9565 (ssse3_pmaddubsw128): Ditto.
9566 (ssse3_pmaddubsw): Ditto.
9568 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9570 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9572 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9575 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9576 on TYPE_SIZE_UNIT if it is a DECL.
9579 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9580 first operand is not is_gimple_mem_ref_addr, try to fold it.
9581 If the operand still isn't is_gimple_mem_ref_addr, clear
9584 2011-03-03 Richard Guenther <rguenther@suse.de>
9587 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9589 (refs_may_alias_p_1): For release branches return true if
9590 we are confused by our input.
9592 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9594 * config/s390/s390.c (s390_function_value): Rename to ...
9595 (s390_function_and_libcall_value): ... this.
9596 (s390_function_value): New function.
9597 (s390_libcall_value): New function.
9598 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9599 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9600 target macro definitions.
9601 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9603 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9605 * config/i386/freebsd64.h (CC1_SPEC): Define.
9606 * config/i386/linux64.h (CC1_SPEC): Define.
9607 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9609 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9611 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9613 * config/stormy16/stormy16.c: Include reload.h.
9614 (xstormy16_memory_move_cost): New function.
9615 (TARGET_MEMORY_MOVE_COST): Define.
9617 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9619 PR rtl-optimization/47925
9620 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9621 with side effects. Remove the more-specific check for volatile asms.
9623 2011-03-02 Alan Modra <amodra@gmail.com>
9626 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9627 toc relative addresses for valid offsets.
9629 2011-03-01 Richard Guenther <rguenther@suse.de>
9631 PR tree-optimization/47890
9632 * tree-vect-loop.c (get_initial_def_for_induction): Set
9633 related stmt properly.
9635 2011-03-01 Richard Guenther <rguenther@suse.de>
9638 * lto-streamer.c (lto_record_common_node): Also register
9641 2011-03-01 Richard Guenther <rguenther@suse.de>
9644 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9645 Do not stream DECL_ABSTRACT_ORIGIN.
9646 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9647 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9648 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9649 Do not stream DECL_ABSTRACT_ORIGIN.
9650 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9651 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9653 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9655 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9656 FUNCTION_VALUE_REGNO_P): Remove.
9657 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9658 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9659 Add 'outgoing' argument.
9660 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9662 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9663 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9665 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9668 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9669 (lookup_filename): Likewise.
9670 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9672 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9673 Jakub Jelinek <jakub@redhat.com>
9676 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9677 (assign_stack_local_1): Change last argument type to int.
9678 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9679 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9680 don't record padding space into frame_space_list nor use those areas.
9681 (assign_stack_local): Adjust caller.
9682 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9683 of assign_stack_local, pass 0 as last argument.
9684 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9687 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9690 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9691 Use target address_mode and pointer_mode hooks instead of hardcoded
9692 Pmode and ptr_mode. Handle some simple cases of extending if
9693 POINTERS_EXTEND_UNSIGNED < 0.
9694 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9695 Call convert_debug_memory_address.
9696 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9697 convert_debug_memory_address.
9700 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9701 * configure: Regenerated.
9702 * config.in: Regenerated.
9703 * varasm.c (default_function_section): Return NULL
9704 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9706 2011-02-28 Martin Jambor <mjambor@suse.cz>
9708 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9709 the description to match the printed values.
9711 2011-02-28 Richard Guenther <rguenther@suse.de>
9713 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9714 of the copied scope tree.
9716 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9718 * doc/extend.texi (Function Attributes): Avoid deeply (and
9719 wrongly) nested tables.
9721 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9724 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9725 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9726 r isn't op0 nor op1.
9728 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9730 * config/avr/avr.md: Remove magic comment for emacs.
9732 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9735 * config/avr/avr.c (avr_option_override): Use error on bad options.
9736 (avr_help): New function.
9737 (TARGET_HELP): Define.
9739 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9742 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9743 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9745 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9747 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9748 (ARM Options): Ditto.
9749 (i386 and x86-64 Options): Ditto.
9750 (RX Options): Ditto.
9751 (SPARC Options): Ditto.
9753 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9755 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9756 FreeBSD 6 and later. Generally use cpu generic.
9758 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9760 * doc/cpp.texi: Update copyright years.
9762 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9765 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9767 2011-02-25 Jon Beniston <jon@beniston.com>
9770 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9771 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9772 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9773 (lm32_block_move_inline): Add type cast to remove warning.
9774 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9775 (gen_int_relational): Move declarations to start of function.
9777 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9779 PR tree-optimization/45470
9780 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9781 can throw internally only.
9782 * tree-vect-stmts.c (vectorizable_call): Likewise.
9784 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9786 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9787 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9788 * config/stormy16/stormy16-protos.h
9789 (xstormy16_preferred_reload_class): Remove.
9790 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9791 static. Change 'rclass' argument and return type to reg_class_t.
9792 (TARGET_PREFERRED_RELOAD_CLASS,
9793 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9795 2011-02-24 Richard Guenther <rguenther@suse.de>
9797 * lto-streamer-in.c (input_bb): Do not find referenced vars
9798 in debug statements.
9800 2011-02-23 Jason Merrill <jason@redhat.com>
9802 * common.opt (fabi-version): Document v5 and v6.
9804 2011-02-23 Richard Guenther <rguenther@suse.de>
9806 PR tree-optimization/47849
9807 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9809 2011-02-23 Jie Zhang <jie@codesourcery.com>
9811 * opts-common.c (decode_cmdline_option): Print empty string
9812 argument as "" in decoded->orig_option_with_args_text.
9813 * gcc.c (execute): Print empty string argument as ""
9814 in the verbose output.
9815 (do_spec_1): Keep empty string argument.
9817 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9819 * config.gcc: Declare score-* and crx-* obsolete.
9821 2011-02-23 Jie Zhang <jie@codesourcery.com>
9823 PR rtl-optimization/47763
9824 * web.c (web_main): Ignore naked clobber when replacing register.
9826 2011-02-22 Anatoly Sokolov <aesok@post.ru>
9828 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9831 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
9834 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9836 2011-02-22 Mike Stump <mikestump@comcast.net>
9838 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9840 * configure: Regenerate.
9842 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
9844 PR rtl-optimization/46002
9845 * ira-color.c (update_copy_costs): Change class intersection
9846 test to reg_class_contents[] test of 'hard_regno'.
9848 2011-02-21 Joseph Myers <joseph@codesourcery.com>
9850 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9852 * config/hpux11.opt (mt): Likewise.
9853 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9854 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9855 * config/vax/elf.opt (mno-asm-pic): Likewise.
9856 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9858 2011-02-21 Mike Stump <mikestump@comcast.net>
9861 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9862 tree so we can get save the type.
9863 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9864 for CFString instead of trying to use past the end of the builtins.
9865 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9866 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9867 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9868 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9869 Rename to darwin_builtin_cfstring.
9870 (darwin_init_cfstring_builtins): Return the built type.
9872 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
9875 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9876 (_mm256_insert_epi64): Use _mm_insert_epi64.
9878 2011-02-21 Anatoly Sokolov <aesok@post.ru>
9880 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9881 * config/stormy16/stormy16-protos.h
9882 (xstormy16_mode_dependent_address_p): Remove.
9883 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9884 Make static. Change return type to bool. Change argument type to
9885 const_rtx. Remove dead code.
9886 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9888 2011-02-21 Richard Guenther <rguenther@suse.de>
9891 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9892 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9893 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9895 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9896 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9898 2011-02-20 Richard Guenther <rguenther@suse.de>
9901 * tree.c (free_lang_data_in_decl): Clean builtins from
9902 the TU decl BLOCK_VARS.
9904 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
9908 * haifa-sched.c (fix_tick_ready): Skip tick computation
9911 2011-02-19 Richard Guenther <rguenther@suse.de>
9914 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9915 Remove lazy BLOCK_VARS streaming.
9916 (lto_input_ts_block_tree_pointers): Likewise.
9917 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9919 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9921 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9923 2011-02-19 Joseph Myers <joseph@codesourcery.com>
9925 * config/i386/biarch32.h, config/i386/mach.h,
9926 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9928 2011-02-19 Jakub Jelinek <jakub@redhat.com>
9931 * config/i386/i386.md (peephole2 for shift and plus): Use
9932 operands[1] original mode in the first insn.
9934 2011-02-18 Mike Stump <mikestump@comcast.net>
9936 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9938 2011-02-18 Jan Hubicka <jh@suse.cz>
9941 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9942 to zero when the function is not inlinable at all.
9944 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9946 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9947 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9948 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9949 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9950 * config/pa/t-pa64: Likewise.
9951 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9953 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9956 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9958 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9961 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9963 2011-02-18 Anatoly Sokolov <aesok@post.ru>
9965 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9966 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9967 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9968 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9969 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9970 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9971 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9972 m32r_load_postinc_p, m32r_store_preinc_predec_p,
9973 m32r_legitimate_address_p): New functions.
9974 * config/m32r/constraints.md (constraint "S"): Don't use
9975 STORE_PREINC_PREDEC_P.
9976 (constraint "U"): Don't use LOAD_POSTINC_P.
9978 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
9980 PR rtl-optimization/46178
9981 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9982 compute ira_hard_regno_cover_class[].
9984 2011-02-18 Richard Guenther <rguenther@suse.de>
9987 * lto-streamer.h (lto_global_var_decls): Declare.
9988 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9989 statics for global var processing.
9991 2011-02-18 Richard Guenther <rguenther@suse.de>
9993 PR tree-optimization/47737
9994 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9995 edge dominance check.
9997 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10000 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10001 avoid invalid rtx sharing.
10003 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10005 * doc/cpp.texi (Obsolete Features): Add background on the
10006 origin of assertions.
10008 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10010 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10012 * config/darwin.c (output_objc_section_asm_op): Added support for
10014 (is_objc_metadata): New.
10015 (darwin_objc2_section): New.
10016 (darwin_objc1_section): New.
10017 (machopic_select_section): Added support for ABI v1 and v2.
10018 (darwin_emit_objc_zeroed): New.
10019 (darwin_output_aligned_bss): Detect objc metadata and treat it
10021 (darwin_asm_output_aligned_decl_common): Same.
10022 (darwin_asm_output_aligned_decl_local): Same.
10023 * config/darwin-sections.def: Updated for ABI v1 and v2.
10024 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10025 compiling Objective-C code for the NeXT runtime, default to using
10026 ABI version 0 for 32-bit, and version 2 for 64-bit.
10028 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10030 * common.opt (optimize_fast): New Variable.
10031 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10032 instead of local variable ofast.
10034 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10036 * doc/invoke.texi (fobjc-abi-version): Documented.
10037 (fobjc-nilcheck): Documented.
10038 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10041 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10044 * common.opt (export-dynamic): New Driver option.
10045 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10047 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10049 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10051 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10052 Jan Hubicka <jh@suse.cz>
10056 * cfgexpand.c (account_used_vars_for_block): Remove.
10057 (estimated_stack_frame_size): Use referenced vars.
10058 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10059 that were referenced in the original function. Test src_fn
10060 rather than cfun. Drop redundant get_var_ann.
10061 (setup_one_parameter): Drop redundant get_var_ann.
10062 (declare_return_variable): Likewise.
10063 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10064 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10065 * ipa-inline.c (compute_inline_parameters): Do not compute
10066 disregard_inline_limits here.
10067 (compute_inlinable_for_current, pass_inlinable): New.
10068 (pass_inline_parameters): Require PROP_referenced_vars.
10069 * cgraphunit.c (cgraph_process_new_functions): Don't run
10070 compute_inline_parameters explicitly unless function is in SSA form.
10071 (cgraph_analyze_function): Set .disregard_inline_limits.
10072 * tree-sra.c (convert_callers): Compute inliner parameters
10073 only for functions already in SSA form.
10075 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10077 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10078 -mlittle-endian-data.
10080 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10082 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10083 -mno-fpu, not -fpu and -no-fpu.
10084 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10085 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10087 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10090 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10091 input reload with PLUS RTX.
10093 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10095 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10096 of InverseVar(MDMX).
10098 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10100 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10103 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10105 * config/mn10300/mn10300.opt (mno-crt0): New.
10107 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10109 * config/m68k/uclinux.opt (static-libc): New Driver option.
10111 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10113 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10115 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10117 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10118 %{muser-extend-enabled}.
10120 2011-02-16 Richard Guenther <rguenther@suse.de>
10122 PR tree-optimization/47738
10123 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10124 the TODO from tree_predictive_commoning.
10126 2011-02-15 Jeff Law <law@redhat.com>
10129 2011-01-25 Jeff Law <law@redhat.com>
10131 PR rtl-optimization/37273
10132 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10133 handle them like argument loads from stack slots. Do not double
10134 count memory for memory constants and argument loads from stack slots.
10136 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10138 PR middle-end/47725
10139 * combine.c (cant_combine_insn_p): Revert the last change.
10141 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10144 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10145 mode for vector constants. Remove code that checks for TImode.
10147 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10151 * cgraph.h (compute_inline_parameters): Return void.
10152 * ipa-inline.c (compute_inline_parameters): Adjust.
10154 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10158 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10160 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10161 * ipa-inline.c (compute_inline_parameters): Adjust.
10163 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10167 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10168 Adjust all users. Pass FN to...
10169 * tree-flow-inline.h (first_referenced_var): ... this. Add
10171 * ipa-struct-reorg.c: Adjust.
10172 * tree-dfa.c: Adjust.
10173 * tree-into-ssa.c: Adjust.
10174 * tree-sra.c: Adjust.
10175 * tree-ssa-alias.c: Adjust.
10176 * tree-ssa-live.c: Adjust.
10177 * tree-ssa.c: Adjust.
10178 * tree-ssanames.c: Adjust.
10179 * tree-tailcall.c: Adjust.
10181 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10185 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10186 Adjust all callers.
10187 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10188 * tree-flow-inline.h: Adjust.
10189 * gimple-pretty-print.c: Adjust.
10190 * tree-into-ssa.c: Adjust.
10191 * tree-ssa.c: Adjust.
10192 * cfgexpand.c: Adjust.
10194 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10196 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10197 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10198 (EXTRA_CONSTRAINT): Delete.
10199 * config/iq2000/constraints.md: New file.
10200 * config/iq2000/iq2000.md: Include it.
10201 (define_insn ""): Delete.
10202 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10203 unsupported constraint letters from patterns.
10204 (call_value, call_value_internal1): Likewise.
10205 (call_value_multiple_internal1): Likewise.
10207 2011-02-15 Nick Clifton <nickc@redhat.com>
10209 * config/mn10300/mn10300.c: Include tm-constrs.h.
10210 (struct liw_data): New data structure describing an LIW candidate
10212 (extract_bundle): Use struct liw_data. Allow small integer
10213 operands for some instructions.
10214 (check_liw_constraints): Use struct liw_data. Remove swapped
10215 parameter. Add comments describing the checks. Fix bug when
10216 assigning the source of liw1 to the source of liw2.
10217 (liw_candidate): Delete. Code moved into extract_bundle.
10218 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10220 * config/mn10300/predicates.md (liw_operand): New predicate.
10221 Allows registers and small integer constants.
10222 * config/mn10300/constraints.md (O): New constraint. Accetps
10223 integers in the range -8 to +7 inclusive.
10224 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10225 for moving a small integer into a register. Give this alternative
10227 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10228 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10229 using the J,K,L and M constraints,
10230 (liw): Remove SI mode on second operands to allow for HI and QI
10232 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10235 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10237 PR middle-end/47725
10238 * combine.c (cant_combine_insn_p): Check zero/sign extended
10241 2011-02-15 Richard Guenther <rguenther@suse.de>
10243 PR tree-optimization/47743
10244 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10245 for a non-type-compatible VN lookup bail out.
10247 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10249 * config/fr30/constraints.md: New file.
10250 * config/fr30/fr30.md: Include it.
10251 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10252 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10253 (EXTRA_CONSTRAINT): Delete.
10255 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10257 * config/frv/constraints.md: New file.
10258 * config/frv/predicates.md: Include it.
10259 * config/frv/frv.c (reg_class_from_letter): Delete.
10260 (frv_option_override): Don't initialize it.
10261 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10262 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10263 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10264 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10265 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10266 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10267 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10268 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10269 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10270 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10271 (REG_CLASS_FROM_CONSTRAINT): Delete.
10273 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10275 PR middle-end/47581
10276 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10277 if frame size is 0 in a leaf function.
10279 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10282 * config/alpha/host-osf.c: New file.
10283 * config/alpha/x-osf: New file.
10284 * config.host (alpha*-dec-osf*): Use it.
10286 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10288 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10289 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10290 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10291 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10293 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10295 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10297 * config/stormy16/constraints.md: New file.
10298 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10299 Use satisfies_constraint_Q and satisfies_constraint_R.
10300 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10302 (xstormy16_legitiamte_address_p): Declare.
10303 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10304 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10305 (EXTRA_CONSTRAINT): Delete.
10306 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10308 (xstormy16_extra_constraint_p): Delete.
10310 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10312 PR tree-optimization/46494
10313 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10314 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10315 (pass_rtl_loop_done): Add TODO_verify_flow.
10316 * fwprop.c (pass_rtl_fwprop): Likewise.
10317 * modulo-sched.c (pass_sms): Likewise.
10318 * tree-ssa-dom.c (pass_dominator): Likewise.
10319 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10320 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10321 (pass_tree_loop_done): Likewise.
10322 * tree-ssa-pre.c (execute_pre): Likewise.
10323 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10324 * tree-ssa-sink.c (pass_sink_code): Likewise.
10325 * tree-vrp.c (pass_vrp): Likewise.
10327 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10329 * config/v850/constraints.md: New file.
10330 * config/v850/v850.md: Include it.
10331 * config/v850/predicates.md (reg_or_0_operand): Use
10332 satisfies_constraint_G.
10333 (special_symbolref_operand): Use satisfies_constraint_K.
10334 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10335 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10336 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10337 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10338 (EXTRA_CONSTRAINT): Delete.
10339 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10340 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10341 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10343 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10346 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10349 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10351 * config/mcore/constraints.md: New file.
10352 * config/mcore/mcore.md: Include it.
10353 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10354 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10355 (REG_CLASS_FROM_LETTER): Delete.
10356 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10357 insn_const_int_ok_for_constraint.
10358 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10359 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10360 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10361 (EXTRA_CONSTRAINT): Delete.
10363 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10366 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10367 (IS_SIGHANDLER): Define.
10368 (sparc64_is_sighandler): New function, split off from
10369 sparc64_fallback_frame_state.
10370 (sparc_is_sighandler): New function, split off from
10371 sparc_fallback_frame_state.
10372 (sparc64_fallback_frame_state): Merge with ...
10373 (sparc_fallback_frame_state): ... this into ...
10374 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10375 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10376 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10377 stack instead of hardcoded offsets.
10379 2011-02-14 Andriy Gapon <avg@freebsd.org>
10382 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10384 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10386 * configure: Regenerate.
10388 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10391 * gcc.c (asm_options): Correct spec matching --target-help.
10393 2011-02-12 Martin Jambor <mjambor@suse.cz>
10395 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10396 to gimple call error.
10398 2011-02-12 Mike Stump <mikestump@comcast.net>
10400 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10401 comments in backslash regions.
10403 2011-02-12 Mike Stump <mikestump@comcast.net>
10404 Jakub Jelinek <jakub@redhat.com>
10405 Iain Sandoe <iains@gcc.gnu.org>
10408 * dwarf2out.c (output_cfa_loc): When required, apply the
10409 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10410 (output_loc_sequence): Likewise.
10411 (output_loc_operands_raw): Likewise.
10412 (output_loc_sequence_raw): Likewise.
10413 (output_cfa_loc): Likewise.
10414 (output_loc_list): Suppress register number adjustment when
10415 calling output_loc_sequence()
10416 (output_die): Likewise.
10418 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10420 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10422 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10423 xtensa_memory_move_cost): New functions.
10424 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10426 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10429 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10430 in the current directory.
10431 * configure: Rebuilt.
10433 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10435 * config/darwin.c (darwin_override_options): Add a hunk missed
10436 from the commit of r168571. Trim comment line lengths and
10437 correct indents of the preceding block.
10439 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10441 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10444 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10446 * common.opt (nostartfiles): New Driver option.
10448 2011-02-11 Xinliang David Li <davidxl@google.com>
10450 PR tree-optimization/47707
10451 * tree-chrec.c (convert_affine_scev): Keep type precision.
10453 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10455 PR tree-optimization/47420
10456 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10458 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10460 PR rtl-optimization/47614
10461 * rtl.h (check_for_inc_dec): Declare.
10462 * dse.c (check_for_inc_dec): Externalize...
10463 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10464 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10466 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10469 * gcc.c (main): Do not compile inputs if there were errors in
10471 * opts-common.c (read_cmdline_option): Check for wrong language
10472 after other error checks.
10474 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10476 * cgraph.c: Fix comment typos.
10477 * cgraph.h: Likewise.
10478 * cgraphunit.c: Likewise.
10479 * ipa-cp.c: Likewise.
10480 * ipa-inline.c: Likewise.
10481 * ipa-prop.c: Likewise.
10482 * ipa-pure-const.c: Likewise.
10483 * ipa-ref.c: Likewise.
10484 * ipa-reference.c: Likewise.
10486 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10489 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10491 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10494 * doc/sourcebuild.texi (Require Support): Document
10495 dg-require-ascii-locale.
10497 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10499 * doc/lto.texi (Write summary): Fix missing parentheses.
10501 2011-02-10 DJ Delorie <dj@redhat.com>
10503 * config/m32c/m32c.c (m32c_option_override): Disable
10504 -fcombine-stack-adjustments until flag value tracking and compare
10505 optimization can be rewritten.
10507 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10509 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10511 (PROCESSOR_DEFAULT64): Likewise.
10513 2011-02-10 Richard Henderson <rth@redhat.com>
10515 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10516 change from 2011-02-03.
10517 * config/rx/rx.c (flags_from_code): Likewise.
10518 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10519 is valid, n/pz otherwise.
10520 (rx_select_cc_mode): Return CCmode if Y is not zero.
10522 2011-02-10 Richard Guenther <rguenther@suse.de>
10524 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10526 2011-02-10 Richard Guenther <rguenther@suse.de>
10528 PR tree-optimization/47677
10529 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10531 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10534 * combine.c (make_compound_operation): Only change shifts into
10535 multiplication for SCALAR_INT_MODE_P.
10537 2011-02-10 Jie Zhang <jie@codesourcery.com>
10541 2011-02-05 Jie Zhang <jie@codesourcery.com>
10543 * web.c (entry_register): Don't clobber the number of the
10544 first uninitialized reference in used[].
10546 2011-02-09 Richard Guenther <rguenther@suse.de>
10548 PR tree-optimization/47664
10549 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10552 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10556 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10558 (PROCESSOR_DEFAULT64): Same.
10559 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10561 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10563 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10565 2011-02-09 Martin Jambor <mjambor@suse.cz>
10567 PR middle-end/45505
10568 * tree-sra.c (struct access): New flags grp_scalar_read and
10569 grp_scalar_write. Changed description of assignment read and write
10571 (dump_access): Dump new flags, reorder all of them.
10572 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10573 to detect multiple scalar reads.
10574 (analyze_access_subtree): Use the new scalar read write flags instead
10575 of the old flags. Adjusted comments.
10577 2011-02-08 DJ Delorie <dj@redhat.com>
10580 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10583 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10585 * config/m68k/uclinux.opt: New.
10586 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10588 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10590 * config/cris/elf.opt (sim): New Driver option.
10592 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10594 * config/xtensa/elf.opt: New.
10595 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10597 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10599 * config/vax/elf.opt: New.
10600 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10602 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10604 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10606 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10608 * config/gnu-user.opt: New.
10609 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10610 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10611 *-*-uclinux*): Use gnu-user.opt.
10613 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10615 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10616 * config/i386/gnu.h (CPP_SPEC): Likewise.
10618 2011-02-08 Ian Lance Taylor <iant@google.com>
10620 * common.opt (fcx-limited-range): Add SetByCombined flag.
10621 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10622 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10623 (fassociative-math, freciprocal-math): Likewise.
10624 (funsafe-math-optimizations): Likewise.
10625 * opth-gen.awk: Handle SetByCombined.
10626 * optc-gen.awk: Likewise.
10627 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10628 (set_unsafe_math_optimizations_flags): Likewise.
10629 * doc/options.texi (Option properties): Document SetByCombined.
10631 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10633 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10634 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10635 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10636 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10637 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10639 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10641 PR tree-optimization/46834
10642 PR tree-optimization/46994
10643 PR tree-optimization/46995
10644 * graphite-sese-to-poly.c (used_outside_reduction): New.
10645 (detect_commutative_reduction): Call used_outside_reduction.
10646 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10647 translate_scalar_reduction_to_array only when at least one
10648 loop-phi/close-phi tuple has been detected.
10650 2011-02-08 Richard Guenther <rguenther@suse.de>
10652 PR middle-end/47639
10653 * tree-vect-generic.c (expand_vector_operations_1): Update
10655 (expand_vector_operations): ... not here. Cleanup EH info
10656 and the CFG if required.
10658 2011-02-08 Richard Guenther <rguenther@suse.de>
10660 PR tree-optimization/47641
10661 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10662 require type compatibility.
10664 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10666 * gimple-low.c (lower_function_body): Don't remove the location of
10667 the return statement here.
10668 (lower_gimple_return): Do it here instead but only if the return
10669 statement is actually used twice.
10671 2011-02-08 Richard Guenther <rguenther@suse.de>
10673 PR tree-optimization/47632
10674 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10675 unused up_to_stmt parameter, return whether cfg-cleanup is
10676 necessary, remove EH info properly.
10677 (forward_propagate_into_gimple_cond): Adjust caller.
10678 (forward_propagate_into_cond): Likewise.
10679 (forward_propagate_comparison): Likewise.
10680 (tree_ssa_forward_propagate_single_use_vars): Make
10681 forward_propagate_comparison case similar to the two others.
10683 2011-02-08 Nick Clifton <nickc@redhat.com>
10685 * config/mn10300/mn10300.opt (mliw): New command line option.
10686 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10687 (liw_bundling): New automaton.
10688 (liw): New attribute.
10689 (liw_op): New attribute.
10690 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10691 (movsi_internal): Add LIW attributes.
10692 (andsi3): Likewise.
10693 (iorsi3): Likewise.
10694 (xorsi3): Likewise.
10695 (addsi3): Separate register and immediate alternatives.
10696 Add LIW attributes.
10697 (subsi3): Likewise.
10699 (aslsi3): Likewise.
10700 (lshrsi3): Likewise.
10701 (ashrsi3): Likewise.
10702 (liw): New pattern.
10703 * config/mn10300/mn10300.c (liw_op_names): New
10704 (mn10300_print_operand): Handle 'W' operand descriptor.
10705 (extract_bundle): New function.
10706 (check_liw_constraints): New function.
10707 (liw_candidate): New function.
10708 (mn10300_bundle_liw): New function.
10709 (mn10300_reorg): New function.
10710 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10711 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10712 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10713 __LIW__ or __NO_LIW__.
10714 * doc/invoke.texi: Describe the -mliw command line option.
10716 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10718 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10719 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10720 pthread_mutex_unlock): Remove.
10721 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10722 * config/pa/t-pa64: Likewise.
10723 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10724 shared libc if not linking against libpthread.
10725 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10727 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10730 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10731 on 10.6 and later to ensure that we always use the unwinder from
10732 the system. Only add -no_compact_unwind when tarteting darwin
10735 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10738 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10739 (vec_interleave_lowv2sf): Ditto.
10740 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10741 (vec_extract_oddv2sf): Ditto.
10743 2011-02-07 Mike Stump <mikestump@comcast.net>
10746 Add __ieee_divdc3 entry point.
10747 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10749 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10750 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10751 * config/darwin.c (darwin_rename_builtins): Add.
10752 * config/darwin-protos.h (darwin_rename_builtins): Add.
10754 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10757 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10760 2011-02-07 Mike Stump <mikestump@comcast.net>
10762 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10764 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10767 * config/avr/libgcc.S (exit): Move .endfunc
10769 2011-02-07 Richard Guenther <rguenther@suse.de>
10771 PR tree-optimization/47615
10772 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10773 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10774 (run_scc_vn): Initialize it.
10775 (visit_reference_op_load): Use it.
10776 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10778 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10780 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10781 DImode trapping arithmetic libfuncs.
10783 2011-02-07 Richard Guenther <rguenther@suse.de>
10785 PR tree-optimization/47621
10786 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10788 (execute_update_addresses_taken): ... here. Make it more
10789 conservative in what we accept.
10791 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10793 * config/sparc/freebsd.h (ASM_SPEC): Define.
10794 * config/sparc/vxworks.h (ASM_SPEC): Define.
10796 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10798 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10800 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10802 * doc/invoke.texi: Remove reference to compiler internals from
10803 user documentation.
10805 * reg-notes.def: Remove REG_VALUE_PROFILE.
10806 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10808 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10810 PR middle-end/47610
10811 * varasm.c (default_section_type_flags): If decl is NULL,
10812 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10814 2011-02-05 Jie Zhang <jie@codesourcery.com>
10817 * web.c (entry_register): Don't clobber the number of the
10818 first uninitialized reference in used[].
10820 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10822 PR tree-optimization/46194
10823 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10824 (build_classic_dist_vector_1): Do not represent classic distance
10825 vectors when the access functions are variating in different loops.
10827 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10829 * config/mips/iris6.opt: New.
10830 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10832 2011-02-04 Richard Henderson <rth@redhat.com>
10833 Steve Ellcey <sje@cup.hp.com>
10836 * config/ia64/predicates.md (mux1_brcst_element): New.
10837 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10838 * config/ia64/ia64.c (ia64_unpack_assemble): New.
10839 (ia64_unpack_sign): New.
10840 (ia64_expand_unpack): Rewrite using new routines.
10841 (ia64_expand_widen_sum): Ditto.
10842 (ia64_expand_dot_prod_v8qi): Ditto.
10843 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10844 routines, add endian check.
10845 (pmpy2_even): Rename from pmpy2_r, add endian check.
10846 (pmpy2_odd): Rename from pmpy2_l, add endian check.
10847 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10848 (vec_widen_smult_hi_v4hi): Ditto.
10849 (vec_widen_umult_lo_v4hi): Ditto.
10850 (vec_widen_umult_hi_v4hi): Ditto.
10851 (mulv2si3): Change endian checks.
10852 (sdot_prodv4hi): Rewrite with new calls.
10853 (udot_prodv4hi): New.
10854 (vec_pack_ssat_v4hi): Add endian check.
10855 (vec_pack_usat_v4hi): Ditto.
10856 (vec_pack_ssat_v2si): Ditto.
10857 (max1_even): Rename from max1_r, add endian check.
10858 (max1_odd): Rename from max1_l, add endian check.
10859 (*mux1_rev): Format change.
10860 (*mux1_mix): Ditto.
10861 (*mux1_shuf): Ditto.
10862 (*mux1_alt): Ditto.
10863 (*mux1_brcst_v8qi): Use new predicate.
10864 (vec_extract_evenv8qi): Remove endian check.
10865 (vec_extract_oddv8qi): Ditto.
10866 (vec_interleave_lowv4hi): Format change.
10867 (vec_interleave_highv4hi): Ditto.
10868 (mix2_even): Rename from mix2_r, add endian check.
10869 (mix2_odd): Rename from mux2_l, add endian check.
10870 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10871 (vec_extract_evenodd_helper): Format change.
10872 (vec_extract_evenv4hi): Remove endian check.
10873 (vec_extract_oddv4hi): Remove endian check.
10874 (vec_interleave_lowv2si): Format change.
10875 (vec_interleave_highv2si): Format change.
10876 (vec_initv2si): Remove endian check.
10877 (vecinit_v2si): Add endian check.
10878 (reduc_splus_v2sf): Add endian check.
10879 (reduc_smax_v2sf): Ditto.
10880 (reduc_smin_v2sf): Ditto.
10881 (vec_initv2sf): Remove endian check.
10882 (fpack): Add endian check.
10883 (fswap): Add endian check.
10884 (vec_interleave_highv2sf): Add endian check.
10885 (vec_interleave_lowv2sf): Add endian check.
10886 (fmix_lr): Add endian check.
10887 (vec_setv2sf): Format change.
10888 (*vec_extractv2sf_0_be): Use shift to extract operand.
10889 (*vec_extractv2sf_1_be): New.
10890 (vec_pack_trunc_v4hi): Add endian check.
10891 (vec_pack_trunc_v2si): Format change.
10893 2011-02-04 Jakub Jelinek <jakub@redhat.com>
10895 PR inline-asm/23200
10896 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
10897 do bb, locus and block comparison and disallow loads if it is not set.
10898 (stmt_is_replaceable_p): New function.
10899 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10901 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10902 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10904 * tree-flow.h (stmt_is_replaceable_p): New prototype.
10906 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10908 * config/rs6000/xilinx.opt: New.
10909 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10911 2011-02-04 Joseph Myers <joseph@codesourcery.com>
10913 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10915 2011-02-03 Anatoly Sokolov <aesok@post.ru>
10917 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10918 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10919 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10920 secondary_reload_info, xtensa_secondary_reload): Remove.
10921 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10922 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10923 (xtensa_preferred_reload_class): Make static. Change return and
10924 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10925 Use CONST_DOUBLE_P predicate.
10926 (xtensa_preferred_output_reload_class): New function.
10927 (xtensa_secondary_reload): Make static.
10929 2011-02-03 Joseph Myers <joseph@codesourcery.com>
10931 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10932 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10933 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10935 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10937 PR middle-end/31490
10938 * output.h (SECTION_RELRO): Define.
10939 (SECTION_MACH_DEP): Adjust.
10940 (get_variable_section): New prototype.
10941 * varpool.c (varpool_finalize_named_section_flags): New function.
10942 (varpool_assemble_pending_decls): Call it.
10943 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10944 * cgraphunit.c (cgraph_output_in_order): Call
10945 varpool_finalize_named_section_flags.
10946 * varasm.c (get_section): Allow section flags conflicts between
10947 relro and read-only sections if the section hasn't been declared yet.
10948 Set SECTION_OVERRIDE after diagnosing section type conflict.
10949 (get_variable_section): No longer static.
10950 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10951 readonly sections that need relocations.
10952 (decl_readonly_section_1): New function.
10953 (decl_readonly_section): Use it.
10956 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
10957 Steve Ellcey <sje@cup.hp.com>
10959 PR middle-end/31490
10960 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10961 if section attribute used.
10963 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10965 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10966 * config/darwin.c (SECTION_NO_ANCHOR): Define.
10967 (darwin_init_sections): Remove assertion.
10969 2011-02-03 Nick Clifton <nickc@redhat.com>
10971 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10973 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10974 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10975 instead of "n" and "pz".
10976 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10979 2011-02-03 Jakub Jelinek <jakub@redhat.com>
10982 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10983 fma, expand FMA_EXPR as fma{,f,l} call.
10986 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10987 copy them into a unsigned char variable and pass address of it to
10988 lto_output_data_stream.
10991 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10992 around backend_init_target and lang_dependent_init_target calls.
10993 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10994 (verify_cgraph_node): Don't call set_cfun here. Use
10995 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10996 Set error_found for incorrectly represented calls to thunks.
10998 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11001 PR rtl-optimization/43494
11002 * rtl.h (for_each_inc_dec_fn): New type.
11003 (for_each_inc_dec): Declare.
11004 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11005 (for_each_inc_dec_find_inc_dec): New fn.
11006 (for_each_inc_dec_find_mem): New fn.
11007 (for_each_inc_dec): New fn.
11008 * dse.c (struct insn_size): Remove.
11009 (replace_inc_dec, replace_inc_dec_mem): Remove.
11010 (emit_inc_dec_insn_before): New fn.
11011 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11012 (canon_address): Pass mem modes to cselib_lookup.
11013 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11014 (cselib_lookup_from_insn): Likewise.
11015 (cselib_subst_to_values): Likewise.
11016 * cselib.c (find_slot_memmode): New var.
11017 (cselib_find_slot): New fn. Use it instead of
11018 htab_find_slot_with_hash everywhere.
11019 (entry_and_rtx_equal_p): Use find_slot_memmode.
11020 (autoinc_split): New fn.
11021 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11022 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11023 Deal with autoinc. Special-case recursion into MEMs.
11024 (cselib_hash_rtx): Likewise.
11025 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11026 address and MEM modes.
11027 (cselib_subst_to_values): Add memmode, pass it on.
11029 (cselib_lookup): Add memmode argument, pass it on.
11030 (cselib_lookup_from_insn): Add memmode.
11031 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11032 (struct cselib_record_autoinc_data): New.
11033 (cselib_record_autoinc_cb): New fn.
11034 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11035 mode to cselib_lookup. Reset autoinced REGs here instead of...
11036 (cselib_process_insn): ... here.
11037 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11039 (add_uses): Likewise, also to cselib_subst_to_values.
11040 (add_stores): Likewise.
11041 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11042 cselib_subst_to_values.
11043 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11044 * gcse.c (do_local_cprop): Adjusted.
11045 * postreload.c (reload_cse_simplify_set): Adjusted.
11046 (reload_cse_simplify_operands): Adjusted.
11047 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11049 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11051 PR tree-optimization/45122
11052 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11053 unsafe assumptions when there's more than one loop exit.
11055 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11058 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11059 Document using vector double with the load/store builtins, and
11060 that the load/store builtins always use Altivec instructions.
11062 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11063 to use altivec memory instructions, even on VSX.
11064 (vector_altivec_store_<mode>): Ditto.
11066 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11069 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11070 V2DF, V2DI support to load/store overloaded builtins.
11072 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11073 altivec load/store builtins for V2DF/V2DI types.
11075 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11076 set avoid indexed addresses on power6 if -maltivec.
11077 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11078 vector_altivec_load/vector_altivec_store builtins.
11079 (altivec_expand_st_builtin): Ditto.
11080 (altivec_expand_builtin): Add VSX memory builtins.
11081 (rs6000_init_builtins): Add V2DI types to internal types.
11082 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11083 load/store builtins.
11084 (rs6000_address_for_altivec): Insure memory address is appropriate
11087 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11088 vec_vsx_ld and vec_vsx_st.
11089 (vsx_store_<mode>): Ditto.
11091 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11092 variables to hold long long types for VSX vector memory builtins.
11093 (RS6000_BTI_unsigned_long_long): Ditto.
11094 (long_long_integer_type_internal_node): Ditti.
11095 (long_long_unsigned_type_internal_node): Ditti.
11097 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11098 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11099 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11101 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11103 (vec_vsx_st): Ditto.
11105 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11107 * config/pa/pa-hpux10.opt: New.
11108 * config/hpux11.opt (pthread): New Driver option.
11109 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11110 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11112 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11114 * config/ia64/vms.opt: New.
11115 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11117 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11120 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11121 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11122 generator functions.
11123 (vsx_floatuns<VSi><mode>2): Ditto.
11124 (vsx_fix_trunc<mode><VSi>2): Ditto.
11125 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11127 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11129 * config/i386/djgpp.opt (posix): New Driver option.
11131 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11133 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11134 Move to the unsupported targets list.
11136 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11138 PR rtl-optimization/47525
11139 * df-scan.c: Update copyright years.
11140 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11141 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11143 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11145 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11146 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11147 (ASM_OUTPUT_ASCII): Remove.
11148 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11150 2011-02-02 Jeff Law <law@redhat.com>
11152 PR middle-end/47543
11153 * reload.c (find_reloads_address): Handle reg+d address where both
11154 components are invalid by reloading the entire address.
11156 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11157 Richard Guenther <rguenther@suse.de>
11159 PR tree-optimization/40979
11161 * passes.c (init_optimization_passes): After LIM call copy_prop
11162 and DCE to clean up.
11163 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11165 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11167 PR tree-optimization/47576
11168 PR tree-optimization/47555
11169 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11170 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11171 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11172 * tree-scalar-evolution.c (follow_ssa_edge): Use
11173 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11175 2011-02-02 Richard Guenther <rguenther@suse.de>
11177 PR tree-optimization/47566
11178 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11180 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11184 * tree-inline.c (declare_return_variable): Remove unused caller
11189 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11190 * cfgexpand.c (account_used_vars_for_block): Use them.
11191 * tree-nrv.c (tree_nrv): Likewise.
11192 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11193 (dump_scope_block): Likewise.
11194 (remove_unused_locals): Likewise.
11198 * tree-inline.c (declare_return_variable): Add result decl to
11199 local decls only once.
11200 * gimple-low.c (record_vars_into): Mark newly-created variables
11203 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11209 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11211 (no_real_insns_p, schedule_block, set_priorities): Drop special
11212 treatment of boundary debug insns.
11213 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11214 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11215 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11216 (BOUNDARY_DEBUG_INSN_P): Likewise.
11217 (SCHEDULE_DEBUG_INSN_P): Likewise.
11218 * sched-rgn.c (init_ready_list): Drop special treatment of
11219 boundary debug insns.
11220 * final.c (rest_of_clean_state): Clear notes' BB.
11222 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11224 * config/openbsd.opt (assert=): New Driver option.
11226 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11228 * config/i386/nto.opt: New.
11229 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11231 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11233 * config/i386/netware.opt: New.
11234 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11236 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11238 * config/interix.opt (posix): New Driver option.
11240 2011-02-01 DJ Delorie <dj@redhat.com>
11242 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11244 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11247 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11249 PR tree-optimization/47561
11250 * toplev.c (process_options): Print the Graphite flags. Add
11251 flag_loop_flatten to the list of options requiring Graphite.
11253 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11255 * config/i386/cygming.opt (posix): New Driver option.
11257 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11259 * config/arm/vxworks.opt: New.
11260 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11262 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11264 * config/alpha/elf.opt: New.
11265 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11266 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11268 2011-02-01 Richard Guenther <rguenther@suse.de>
11270 PR tree-optimization/47559
11271 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11272 store-motion on references that can throw.
11274 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11276 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11277 * tree-pass.h (TDF_CSELIB): New macro.
11278 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11279 cselib_lookup): Check for it rather than for TDF_DETAILS.
11281 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11284 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11285 is HOST_BIT_BUCKET.
11287 * opts.c (finish_options): Don't add x_aux_base_name if it is
11290 2011-02-01 Richard Guenther <rguenther@suse.de>
11292 PR tree-optimization/47555
11294 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11296 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11298 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11301 * config/lm32/t-lm32: Add multilib for all CPU options.
11303 2011-02-01 Richard Guenther <rguenther@suse.de>
11305 PR tree-optimization/47541
11306 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11307 sure to have a field at offset zero.
11309 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11311 * config/arc/arc.opt (EB, EL): New Driver options.
11313 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11315 * config/alpha/osf5.opt: New.
11316 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11318 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11320 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11322 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11324 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11325 -floop-interchange.
11326 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11327 is an alias of -floop-interchange and that it requires the
11328 Graphite infrastructure.
11329 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11330 flag_loop_interchange based on the value of flag_tree_loop_linear.
11332 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11333 Richard Guenther <rguenther@suse.de>
11335 PR tree-optimization/47538
11336 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11337 type instead of r1type, except for comparisons. For right
11338 shifts and comparisons punt if there are mismatches in
11339 sizetype vs. non-sizetype types.
11341 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11343 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11346 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11348 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11350 * configure: Regenerate.
11352 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11354 * configure.ac (gcc_cv_ld_static_option): Define.
11355 (gcc_cv_ld_dynamic_option): Define.
11356 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11358 (HAVE_LD_STATIC_DYNAMIC): Update message.
11359 (LD_STATIC_OPTION): Define.
11360 (LD_DYNAMIC_OPTION): Define.
11361 * configure: Regenerate.
11362 * config.in: Regenerate.
11363 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11364 HAVE_LD_STATIC_DYNAMIC]: Use them.
11366 2011-01-31 Nick Clifton <nickc@redhat.com>
11368 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11369 registers inside interrupt handlers if the handler is not a leaf
11372 2011-01-31 Nick Clifton <nickc@redhat.com>
11374 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11375 reg_renumber returning an INVALID_REGNUM.
11377 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11380 * doc/install.texi: Document host options discarded when cross
11381 configuring target libraries.
11383 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11386 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11389 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11391 (no_real_insns_p, schedule_block, set_priorities): Drop special
11392 treatment of boundary debug insns.
11393 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11394 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11395 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11396 (BOUNDARY_DEBUG_INSN_P): Likewise.
11397 (SCHEDULE_DEBUG_INSN_P): Likewise.
11398 * sched-rgn.c (init_ready_list): Drop special treatment of
11399 boundary debug insns.
11400 * final.c (rest_of_clean-state): Clear notes' BB.
11402 2011-01-31 Alan Modra <amodra@gmail.com>
11404 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11405 toc relative expressions as we do in print_operand_address.
11407 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11409 * doc/extend.texi: Follow spelling conventions.
11410 * doc/invoke.texi: Fix a typo.
11412 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11414 * config/hpux11.opt: New.
11415 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11416 ia64*-*-hpux*): Use hpux11.opt.
11418 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11420 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11423 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11425 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11428 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11430 * doc/install.texi (Binaries): Remove outdated reference for
11431 Motorola 68HC11/68HC12 downloads.
11433 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11435 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11438 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11441 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11444 2011-01-28 Ahmad Sharif <asharif@google.com>
11446 * value-prof.c (check_counter): Corrected error message.
11448 2011-01-29 Jie Zhang <jie@codesourcery.com>
11450 * config/arm/arm.c (arm_legitimize_reload_address): New.
11451 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11452 arm_legitimize_reload_address.
11453 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11455 2011-01-28 Ian Lance Taylor <iant@google.com>
11457 * godump.c (go_define): Ignore macros whose definitions include
11458 two adjacent operands.
11460 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11463 * varasm.c (force_const_mem): Store copy of x in desc->constant
11464 instead of x itself.
11465 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11466 itself into REG_EQUAL note.
11468 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11470 * config/freebsd.opt (posix, rdynamic): New Driver options.
11472 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11474 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11475 -Bstatic/-Bdynamic.
11476 * configure: Regenerate.
11478 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11480 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11481 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11483 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11485 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11486 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11487 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11488 (s390_preferred_reload_class): Make static. Change return and
11489 'rclass' argument type to reg_class_t.
11491 2011-01-27 Jan Hubicka <jh@suse.cz>
11493 PR middle-end/46949
11494 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11495 (process_function_and_variable_attributes): Check defined weakrefs.
11497 2011-01-27 Martin Jambor <mjambor@suse.cz>
11499 PR tree-optimization/47228
11500 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11501 build_ref_for_offset.
11503 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11505 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11507 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11509 PR rtl-optimization/46856
11510 * postreload.c (reload_combine_recognize_const_pattern): Do not
11511 separate cc0 setter and user on cc0 targets.
11513 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11516 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11517 passed a VOID_TYPE expression, immediately emit an error and
11518 return error_mark_node.
11520 2011-01-26 Jeff Law <law@redhat.com>
11522 PR rtl-optimization/47464
11523 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11524 rather than may_trap_p as needed.
11526 2011-01-26 DJ Delorie <dj@redhat.com>
11528 PR rtl-optimization/46878
11529 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11530 setter/user dependency as well.
11532 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11534 PR rtl-optimization/44469
11535 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11536 after removing trivially dead basic blocks.
11538 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11540 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11541 * config/frv/frv.h (LINK_SPEC): Likewise.
11542 * config/i386/netware.h (LINK_SPEC): Likewise.
11543 * config/m68k/linux.h (ASM_SPEC): Likewise.
11544 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11545 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11546 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11547 * config/sparc/linux.h (ASM_SPEC): Likewise.
11548 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11549 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11551 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11553 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11554 * config/frv/frv.h (ASM_SPEC): Likewise.
11555 * config/m68k/linux.h (ASM_SPEC): Likewise.
11556 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11557 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11558 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11559 * config/sparc/linux.h (ASM_SPEC): Likewise.
11560 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11561 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11563 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11565 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11566 * config/frv/frv.h (LINK_SPEC): Likewise.
11567 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11569 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11571 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11572 * config/frv/frv.h (ASM_SPEC): Likewise.
11573 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11574 * config/m68k/linux.h (ASM_SPEC): Likewise.
11575 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11576 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11577 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11578 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11579 * config/sparc/linux.h (ASM_SPEC): Likewise.
11580 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11581 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11582 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11584 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11587 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11589 (vec_extract_evenodd_help): Ditto.
11590 (vec_extract_evenv4hi): Ditto.
11591 (vec_extract_oddv4hi): Ditto.
11592 (vec_interleave_lowv2si): Ditto.
11593 (vec_interleave_highv2si): Ditto.
11594 (vec_extract_evenv2si): Ditto.
11595 (vec_extract_oddv2si: Ditto.
11596 (vec_pack_trunc_v2si): Ditto.
11598 2011-01-22 Jan Hubicka <jh@suse.cz>
11601 * cgraph.h (cgraph_local_info): New field can_change_signature.
11602 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11603 signature can change.
11604 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11606 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11607 (cgraph_function_versioning): We can not change signature of functions
11608 that don't allow that.
11609 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11610 (lto_input_node): Likewise.
11611 * ipa-inline.c (compute_inline_parameters): Compute
11612 local.can_change_signature.
11613 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11614 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11615 functions that can not change signature.
11616 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11617 init_cumulative_args): Do not use local calling conventions
11618 for functions that can not change signature.
11620 2011-01-22 Jan Hubicka <jh@suse.cz>
11622 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11624 2011-01-26 Richard Guenther <rguenther@suse.de>
11626 PR tree-optimization/47190
11627 * cgraphunit.c (process_common_attributes): New function.
11628 (process_function_and_variable_attributes): Use it.
11630 2011-01-26 Richard Guenther <rguenther@suse.de>
11633 * cgraphbuild.c (record_eh_tables): Record reference to personality
11636 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11639 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11640 non-debug insns from moving up.
11642 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11645 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11646 t-dlldir{,-x} fragment for build and add it to tmake_file.
11647 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11648 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11649 * config/i386/t-dlldir: New file.
11650 (SHLIB_DLLDIR): Define.
11651 * config/i386/t-dlldir-x: New file.
11652 (SHLIB_DLLDIR): Define.
11653 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11654 (SHLIB_INSTALL): Use it.
11656 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11659 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11660 lower bound of the allowed Thumb-2 coprocessor load/store
11661 index range to -256. Add explaining comment.
11663 2011-01-25 Ian Lance Taylor <iant@google.com>
11665 * godump.c (go_define): Improve lexing of macro expansion to only
11666 accept expressions which match Go spec.
11668 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11671 * tree.c (handle_dll_attribute): Handle it.
11672 * doc/extend.texi (@item dllexport): Mention it.
11673 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11675 2011-01-25 Ian Lance Taylor <iant@google.com>
11677 PR tree-optimization/26854
11678 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11679 (decl_jump_unsafe): Move higher in file, with no other change.
11680 (bind): Set has_jump_unsafe_decl if appropriate.
11681 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11682 (check_earlier_gotos): Likewise.
11683 (c_check_switch_jump_warnings): Likewise.
11685 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11687 * doc/invoke.texi (Warning Options): Add missing hyphen.
11688 (-fprofile-dir): Minor grammatical fixes.
11689 (-fbranch-probabilities): Likewise.
11691 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11695 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11697 (no_real_insns_p, schedule_block, set_priorities): Drop special
11698 treatment of boundary debug insns.
11699 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11700 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11701 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11702 (BOUNDARY_DEBUG_INSN_P): Likewise.
11703 (SCHEDULE_DEBUG_INSN_P): Likewise.
11704 * sched-rgn.c (init_ready_list): Drop special treatment of
11705 boundary debug insns.
11706 * final.c (rest_of_clean-state): Clear notes' BB.
11708 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11710 * Makefile.in (LAMBDA_H): Removed.
11711 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11712 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11713 lambda-trans.o, and tree-loop-linear.o.
11714 (lto-symtab.o): Remove dependence on LAMBDA_H.
11715 (tree-loop-linear.o): Remove rule.
11716 (lambda-mat.o): Same.
11717 (lambda-trans.o): Same.
11718 (lambda-code.o): Same.
11719 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11720 (tree-vect-slp.o): Same.
11721 * hwint.h (gcd): Moved here.
11722 (least_common_multiple): Same.
11723 * lambda-code.c: Removed.
11724 * lambda-mat.c: Removed.
11725 * lambda-trans.c: Removed.
11726 * lambda.h: Removed.
11727 * tree-loop-linear.c: Removed.
11728 * lto-symtab.c: Do not include lambda.h.
11729 * omega.c (gcd): Removed.
11730 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11731 * tree-data-ref.c (print_lambda_vector): Moved here.
11732 (lambda_vector_copy): Same.
11733 (lambda_matrix_copy): Same.
11734 (lambda_matrix_id): Same.
11735 (lambda_vector_first_nz): Same.
11736 (lambda_matrix_row_add): Same.
11737 (lambda_matrix_row_exchange): Same.
11738 (lambda_vector_mult_const): Same.
11739 (lambda_vector_negate): Same.
11740 (lambda_matrix_row_negate): Same.
11741 (lambda_vector_equal): Same.
11742 (lambda_matrix_right_hermite): Same.
11743 * tree-data-ref.h: Do not include lambda.h.
11744 (lambda_vector): Moved here.
11745 (lambda_matrix): Same.
11746 (dependence_level): Same.
11747 (lambda_transform_legal_p): Removed declaration.
11748 (lambda_collect_parameters): Same.
11749 (lambda_compute_access_matrices): Same.
11750 (lambda_vector_gcd): Same.
11751 (lambda_vector_new): Same.
11752 (lambda_vector_clear): Same.
11753 (lambda_vector_lexico_pos): Same.
11754 (lambda_vector_zerop): Same.
11755 (lambda_matrix_new): Same.
11756 * tree-flow.h (least_common_multiple): Removed declaration.
11757 * tree-parloops.c (lambda_trans_matrix): Moved here.
11758 (LTM_MATRIX): Same.
11759 (LTM_ROWSIZE): Same.
11760 (LTM_COLSIZE): Same.
11761 (LTM_DENOMINATOR): Same.
11762 (lambda_trans_matrix_new): Same.
11763 (lambda_matrix_vector_mult): Same.
11764 (lambda_transform_legal_p): Same.
11765 * tree-pass.h (pass_linear_transform): Removed declaration.
11766 * tree-ssa-loop.c (tree_linear_transform): Removed.
11767 (gate_tree_linear_transform): Removed.
11768 (pass_linear_transform): Removed.
11769 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11770 flag_loop_interchange.
11772 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11774 PR tree-optimization/47265
11775 PR tree-optimization/47443
11776 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11777 if name still has some uses.
11779 2011-01-25 Martin Jambor <mjambor@suse.cz>
11781 PR tree-optimization/47382
11782 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11783 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11785 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11787 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11788 sjlj_except_unwind_info.
11790 2011-01-25 Richard Guenther <rguenther@suse.de>
11792 PR tree-optimization/47426
11793 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11794 visible functions results escape.
11796 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11799 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11800 (arm_get_frame_offsets): Use it.
11802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11803 Jakub Jelinek <jakub@redhat.com>
11805 PR tree-optimization/47271
11806 * tree-if-conv.c (bb_postdominates_preds): New.
11807 (if_convertible_bb_p): Call bb_postdominates_preds.
11808 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11809 (predicate_scalar_phi): Call bb_postdominates_preds.
11811 2011-01-25 Nick Clifton <nickc@redhat.com>
11813 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11814 * config/rx/rx.c (rx_function_value): Likewise.
11815 (rx_promote_function_mode): Likewise.
11816 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11817 in order to make it legitimate.
11818 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11819 make sure that the first operand is the same as the result register.
11820 (addsi3_unspec): Delete.
11821 (subdi3): Do not accept immediate operands.
11822 (subdi3_internal): Likewise.
11824 2011-01-25 Jeff Law <law@redhat.com>
11826 PR rtl-optimization/37273
11827 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11828 handle them like argument loads from stack slots. Do not double
11829 count memory for memory constants and argument loads from stack slots.
11831 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11833 PR tree-optimization/47427
11834 PR tree-optimization/47428
11835 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11836 coalesce if the new root var would be TREE_READONLY.
11838 2011-01-25 Richard Guenther <rguenther@suse.de>
11840 PR middle-end/47414
11841 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11842 correct type for TBAA.
11844 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11846 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11847 (close_phi_written_to_memory): Call for_each_index with
11848 dr_indices_valid_in_loop.
11850 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11852 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11853 when it is initialized.
11855 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11857 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11858 call to graphite_find_data_references_in_stmt.
11859 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11860 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
11861 call to graphite_find_data_references_in_stmt.
11862 (analyze_drs_in_stmts): Same.
11863 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11864 in which the scalar analysis of indices is performed.
11865 (create_data_ref): Same. Update call to dr_analyze_indices.
11866 (find_data_references_in_stmt): Update call to create_data_ref.
11867 (graphite_find_data_references_in_stmt): Same.
11868 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11870 (create_data_ref): Same.
11871 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11872 call to create_data_ref.
11874 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11876 * graphite-sese-to-poly.c (build_poly_scop): Move
11877 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11879 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11881 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11882 VAR_DECL, PARM_DECL, and RESULT_DECL.
11884 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11886 * graphite-dependences.c (reduction_dr_1): Allow several reductions
11887 in a reduction PBB.
11888 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11889 that have already been marked as PBB_IS_REDUCTION.
11891 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11893 * graphite-scop-detection.c (same_close_phi_node): New.
11894 (remove_duplicate_close_phi): New.
11895 (make_close_phi_nodes_unique): New.
11896 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11898 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11900 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11901 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11902 of both data references to be the same.
11904 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11906 * graphite-dependences.c (build_lexicographical_constraint): Remove
11907 the gdim parameter.
11908 (build_lexicographical_constraint): Adjust call to
11909 ppl_powerset_is_empty.
11910 (dependence_polyhedron): Same.
11911 (graphite_legal_transform_dr): Same.
11912 (graphite_carried_dependence_level_k): Same.
11913 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11915 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11917 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11919 * graphite-sese-to-poly.c
11920 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11921 (close_phi_written_to_memory): New.
11922 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11925 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11927 * doc/install.texi: Update the expected version number of PPL to 0.11.
11928 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11929 #if PPL_VERSION_MINOR < 11.
11931 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11933 * graphite-dependences.c: Include graphite-cloog-util.h.
11934 (new_poly_ddr): Inlined into dependence_polyhedron.
11935 (free_poly_ddr): Moved close by new_poly_ddr.
11936 (dependence_polyhedron_1): Renamed dependence_polyhedron.
11937 Early return NULL when ppl_powerset_is_empty returns true.
11938 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
11939 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
11940 (graphite_legal_transform_dr): Call new_poly_ddr.
11941 (graphite_carried_dependence_level_k): Same.
11942 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
11943 (dot_transformed_deps_stmt_1): Removed.
11944 (dot_deps_stmt_1): Call dot_deps_stmt_2.
11945 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
11946 (dot_deps_1): Call dot_deps_2.
11947 * Makefile.in (graphite-dependences.o): Add missing dependence on
11948 graphite-cloog-util.h.
11950 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11952 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11953 (build_lexicographical_constraint): Same.
11954 (dependence_polyhedron_1): Same.
11955 (graphite_legal_transform_dr): Same.
11956 (graphite_carried_dependence_level_k): Same.
11957 * graphite-ppl.c (ppl_powerset_is_empty): New.
11958 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11959 * tree-data-ref.c (dump_data_reference): Print the basic block index.
11961 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11963 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11964 the "a followed by b" relation and document it.
11966 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11968 * graphite-dependences.c (build_lexicographical_constraint): Stop the
11969 iteration when the bag of constraints is empty.
11971 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11973 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11975 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11977 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11978 nest and two loop depths as parameters.
11979 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11980 lst_perfect_nestify.
11982 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11984 * graphite-dependences.c (print_pddr): Call
11985 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11987 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11989 * graphite-ppl.c (debug_gmp_value): New.
11990 * graphite-ppl.h (debug_gmp_value): Declared.
11992 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
11994 * doc/install.texi: Document availability of cloog-0.16.
11996 2011-01-25 Vladimir Kargov <kargov@gmail.com>
11998 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11999 invalid postdominance info.
12001 2011-01-24 Jan Hubicka <jh@suse.cz>
12004 * doc/extend.texi (weak pragma): Drop claim that it must
12005 appear before definition.
12006 * varasm.c (merge_weak, declare_weak): Only sanity check
12007 that DECL is not output at a time it is declared weak.
12009 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12011 * machmode.def: Fixed comments.
12013 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12015 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12017 2011-01-24 Paul Koning <ni1d@arrl.net>
12019 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12022 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12025 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12026 (block_info): Add scanned and prev.
12027 (move_or_delete_vzeroupper_2): Return if the basic block
12028 has been scanned and the upper 128bit state is unchanged
12029 from the last scan.
12030 (move_or_delete_vzeroupper_1): Return true if the exit
12032 (move_or_delete_vzeroupper): Visit basic blocks using the
12033 work-list based algorithm based on vt_find_locations in
12036 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12038 2011-01-24 Nick Clifton <nickc@redhat.com>
12040 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12041 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12042 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12043 then define __v850e1__.
12044 * doc/invoke.texi: Document -mv850es.
12046 2011-01-24 Richard Henderson <rth@redhat.com>
12048 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12049 compound unordered comparisons.
12050 * config/rx/rx.c (rx_split_fp_compare): Remove.
12051 * config/rx/rx-protos.h: Update.
12052 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12053 (cbranchsf4): Don't call rx_split_fp_compare.
12054 (*cbranchsf4): Use rx_split_cbranch.
12055 (*cmpsf): Don't accept "i" constraint.
12056 (*conditional_branch): Only valid after reload.
12057 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12059 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12062 * config/rs6000/altivec.md (vector constant splitters): Add
12063 support for creating vector single precision constants if -mvsx is
12064 used and we would create the constant using Altivec primitives.
12066 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12067 Richard Sandiford <rdsandiford@googlemail.com>
12069 PR rtl-optimization/47166
12070 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12071 mechanism for PRE_MODIFY and POST_MODIFY.
12072 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12075 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12077 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12079 2011-01-22 Jan Hubicka <jh@suse.cz>
12082 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12084 2011-01-22 Jan Hubicka <jh@suse.cz>
12086 PR tree-optimization/43884
12088 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12089 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12091 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12093 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12094 * config/s390/s390.c (s390_register_move_cost,
12095 s390_memory_move_cost): New.
12096 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12098 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12100 PR middle-end/47401
12101 * except.c (sjlj_assign_call_site_values): Move setting the
12102 crtl->uses_eh_lsda flag to ...
12103 (sjlj_mark_call_sites): ... here.
12104 (sjlj_emit_function_enter): Support NULL dispatch label.
12105 (sjlj_build_landing_pads): In a function with no landing pads
12106 that still has must-not-throw regions, generate code to register
12107 a personality function with empty LSDA.
12109 2011-01-21 Richard Henderson <rth@redhat.com>
12111 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12113 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12115 * compare-elim.c: New file.
12116 * Makefile.in (OBJS-common): Add it.
12117 (compare-elim.o): New.
12118 * common.opt (fcompare-elim): New.
12119 * opts.c (default_options_table): Add OPT_fcompare_elim.
12120 * tree-pass.h (pass_compare_elim_after_reload): New.
12121 * passes.c (init_optimization_passes): Add it.
12122 * recog.h: Protect against re-inclusion.
12123 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12124 * doc/invoke.texi (-fcompare-elim): Document it.
12125 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12126 * doc/tm.texi: Rebuild.
12128 2011-01-22 Nick Clifton <nickc@redhat.com>
12130 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12131 rx_split_fp_compare.
12133 2011-01-22 Nick Clifton <nickc@redhat.com>
12135 * config/rx/rx.md (UNSPEC_CONST): New.
12136 (deallocate_and_return): Wrap the amount popped off the stack in
12137 an UNSPEC_CONST in order to stop it being rejected by
12138 -mmax-constant-size.
12139 (pop_and_return): Add a "(return)" rtx.
12140 (call): Drop the immediate operand.
12141 (call_internal): Likewise.
12142 (call_value): Likewise.
12143 (call_value_internal): Likewise.
12144 (sibcall_internal): Likewise.
12145 (sibcall_value_internal): Likewise.
12146 (sibcall): Likewise. Generate an explicit call using
12148 (sibcall_value): Likewise.
12149 (mov<>): FAIL if a constant operand is not legitimate.
12150 (addsi3_unpsec): New pattern.
12152 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12153 (ok_for_max_constant): New function.
12154 (gen_safe_add): New function.
12155 (rx_expand_prologue): Use gen_safe_add.
12156 (rx_expand_epilogue): Likewise.
12157 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12160 2011-01-21 Jeff Law <law@redhat.com>
12162 PR tree-optimization/47053
12163 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12164 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12165 statements are deleted.
12166 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12167 is nonempty, then purge dead edges and cleanup the CFG.
12169 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12172 Temporarily revert:
12173 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12175 * tree-dfa.c (create_var_ann): Mark variable as used.
12177 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12179 PR middle-end/45566
12180 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12181 notes from other section in hot/cold partitioning even if
12182 last_action is -3. Increment call_site_base.
12184 PR rtl-optimization/47366
12185 * fwprop.c (forward_propagate_into): Return bool. If
12186 any changes are made, -fnon-call-exceptions is used and
12187 REG_EH_REGION note is present, call purge_dead_edges
12188 and return true if it purged anything.
12189 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12190 any EH edges were purged.
12192 2011-01-21 Jeff Law <law@redhat.com>
12194 PR rtl-optimization/41619
12195 * caller-save.c (setup_save_areas): Break out code to determine
12196 which hard regs are live across calls by examining the reload chains
12197 so that it is always used.
12198 Eliminate code which checked REG_N_CALLS_CROSSED.
12200 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12202 PR tree-optimization/47355
12203 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12204 NOP has non-debug uses beyond PHIs in new_bb.
12206 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12209 * cfgexpand.c (account_used_vars_for_block): Only account vars
12210 that are annotated as used.
12211 (estimated_stack_frame_size): Don't set TREE_USED.
12212 * tree-dfa.c (create_var_ann): Mark variable as used.
12214 2011-01-21 Richard Guenther <rguenther@suse.de>
12216 PR middle-end/47395
12217 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12219 2011-01-21 Richard Guenther <rguenther@suse.de>
12221 PR tree-optimization/47365
12222 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12223 (vn_reference_lookup_pieces): Adjust.
12224 (vn_reference_lookup): Likewise.
12225 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12226 (vn_reference_lookup_3): Only look through kills if in
12227 VN_WALKREWRITE mode.
12228 (vn_reference_lookup_pieces): Adjust.
12229 (vn_reference_lookup): Likewise.
12230 (visit_reference_op_load): Likewise.
12231 (visit_reference_op_store): Likewise.
12232 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12233 (compute_avail): Likewise.
12234 (eliminate): Likewise.
12236 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12238 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12239 DECL_IGNORED_P non-reg vars if they are used.
12241 PR tree-optimization/47391
12242 * varpool.c (const_value_known_p): Return false if
12245 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12248 * config/i386/i386.c (ix86_local_alignment): Handle
12249 case for va_list_type_node is nil.
12250 (ix86_canonical_va_list_type): Likewise.
12252 2011-01-21 Alan Modra <amodra@gmail.com>
12254 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12255 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12257 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12259 * config/arm/arm.md (define_attr type): Rename f_load
12260 and f_store to f_fpa_load and f_fpa_store. Update.
12261 (write_conflict): Deal with rename fallout.
12262 (*push_fp_multi): Likewise.
12263 * config/arm/fpa.md (f_load): Use f_fpa_load.
12264 (f_store): Use f_fpa_store.
12265 (*movsf_fpa): Likewise.
12266 (*movdf_fpa): Likewise.
12267 (*movxf_fpa): Likewise.
12268 (*thumb2_movsf_fpa): Likewise.
12269 (*thumb2_movdf_fpa): Likewise.
12270 (*thumb2_movxf_fpa): Likewise.
12271 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12272 f_loadd and f_stored.
12273 (*thumb2_movdi_vfp): Likewise.
12274 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12275 (*thumb2_movsi_vfp): Likewise.
12276 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12277 Use f_loads instead of f_load.
12278 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12280 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12282 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12283 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12284 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12285 (xtensa_mode_dependent_address_p): New function.
12286 (constantpool_address_p): Make static. Change return type to bool.
12287 Change argument type to const_rtx. Use CONST_INT_P predicate.
12289 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12292 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12294 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12297 * cfgexpand.c (expand_debug_expr): Instead of generating
12298 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12301 2011-01-20 Richard Guenther <rguenther@suse.de>
12303 PR middle-end/47370
12304 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12305 the pointer operand of MEM_REFs.
12307 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12309 PR tree-optimization/46130
12310 * ipa-split.c (consider_split): If return_bb contains non-virtual
12311 PHIs other than for retval or if split_function would not adjust it,
12314 2011-01-20 Richard Guenther <rguenther@suse.de>
12316 PR tree-optimization/47167
12317 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12318 Revert previous change, only avoid enumeral type changes.
12320 2011-01-19 Mike Stump <mikestump@comcast.net>
12322 * doc/tm.texi.in (BRANCH_COST): Englishify.
12323 * doc/tm.texi (BRANCH_COST): Likewise.
12325 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12328 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12329 (gen_scheduled_generic_parms_dies): New functions.
12330 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12331 generation for the end of CU compilation.
12332 (dwarf2out_finish): Generate template parameters DIEs here.
12334 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12337 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12338 debug bind stmt on merge edges.
12340 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12344 * function.c (instantiate_expr): Instantiate incoming rtl of
12345 implicit arguments, and recurse on VALUE_EXPRs.
12346 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12347 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12349 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12351 * c-parser.c (c_parser_for_statement): Initialize
12352 collection_expression.
12354 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12356 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12358 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12360 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12361 (LINK_SHLIB_SPEC): Don't use %(link_path).
12362 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12364 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12366 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12367 (NO_SHARED_LIB_SUPPORT): Remove.
12368 (LINK_SHLIB_SPEC): Remove one conditional definition.
12370 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12372 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12374 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12375 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12376 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12377 %{call_shared} and conditionals on these options not being passed.
12378 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12381 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12383 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12386 * ipa-split.c: Spelling fixes.
12388 2011-01-19 Richard Henderson <rth@redhat.com>
12390 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12391 (*mulsi3): Likewise.
12393 * longlong.h [__mn10300__] (count_leading_zeros): New.
12394 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12395 [__mn10300__] (add_ssaaaa, subddmmss): New.
12396 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12397 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12399 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12401 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12403 2011-01-19 Richard Henderson <rth@redhat.com>
12405 * config/mn10300/mn10300.md (addsi3_flags): New.
12406 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12407 (subsi3_flags, subc_internal, subdi3): New.
12408 (subdi3_internal, *subdi3_degenerate): New.
12409 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12411 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12412 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12413 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12414 * config/mn10300/mn10300-protos.h: Update.
12415 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12416 (return_ret): Likewise. Rename from return_internal_regs.
12417 (return_internal): Remove.
12419 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12420 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12421 (mn10300_legitimate_constant_p): Likewise.
12422 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12423 (mn10300_frame_size): New.
12424 (mn10300_expand_prologue): Use it.
12425 (mn10300_expand_epilogue): Likewise.
12426 (mn10300_initial_offset): Likewise.
12427 * config/mn10300/mn10300-protos.h: Update.
12428 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12429 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12430 (prologue, epilogue, return_internal): Tidy output code.
12431 (mn10300_store_multiple_operation, return): Likewise.
12432 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12433 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12434 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12435 (load_pic, am33_load_pic): New.
12436 (mn10300_load_pic0, mn10300_load_pic1): New.
12438 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12439 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12440 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12441 (cc_flags_for_mode, cc_flags_for_code): New.
12442 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12443 overflow flag is not valid. Validate that the flags we need
12444 for the comparison are valid.
12445 (mn10300_output_cmp): Remove.
12446 (mn10300_output_add): New.
12447 (mn10300_select_cc_mode): Use cc_flags_for_code.
12448 (mn10300_split_cbranch): New.
12449 (mn10300_match_ccmode): New.
12450 (mn10300_split_and_operand_count): New.
12451 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12453 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12454 (addsi3): ... here. Use mn10300_output_add.
12455 (*addsi3_flags): New.
12456 (*am33_subsi3, *mn10300_subsi3): Merge...
12457 (subsi3): ... here. Use attribute isa.
12458 (*subsi3_flags): New.
12459 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12461 (*am33_andsi3, *mn10300_andsi3): Merge...
12462 (andsi3): ... here.
12463 (*andsi3_flags): New.
12464 (andsi3 splitters): New.
12465 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12466 (iorsi3): ... here.
12467 (*iorsi3_flags): New.
12468 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12469 (xorsi3): ... here.
12470 (*xorsi3_flags): New.
12471 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12472 (one_cmplsi2): ... here.
12473 (*one_cmplsi2_flags): New.
12474 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12475 instead of "dax" in constraints. Use mn10300_split_cbranch.
12476 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12477 use matching constraints to eliminate a self-comparison.
12478 (*integer_conditional_branch): Rename from integer_conditional_branch.
12479 Use int_mode_flags to match CC_REG.
12480 (*cbranchsi4_btst, *btstsi): New.
12481 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12482 mn10300_split_cbranch.
12483 (*am33_cmpsf): Rename from am33_cmpsf.
12484 (*float_conditional_branch): Rename from float_conditional_branch.
12485 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12486 (zero_extendqisi2): ... here.
12487 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12488 (zero_extendhisi2): ... here.
12489 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12490 (extendqisi2): ... here.
12491 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12492 (extendhisi2): ... here.
12493 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12494 (ashlsi3): ... here.
12495 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12496 (lshrsi3): ... here.
12497 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12498 (ashrsi3): ... here.
12499 (consecutive add peephole): Remove.
12500 * config/mn10300/predicates.md (label_ref_operand): New.
12501 (int_mode_flags): New.
12502 (CCZN_comparison_operator): New.
12504 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12505 (throughput_42_latency_43): New reservation.
12506 (mulsidi3, umulsidi3): New expanders.
12507 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12508 the MDR register to allocation; separately allocate the low and
12509 high parts of the DImode result.
12510 (umulsidi3_internal): Similarly.
12511 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12512 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12513 (udivsi3, umodsi3): Remove.
12514 (udivmodsi4, divmodsi4): New expanders.
12515 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12516 (*divmodsi4): Simiarly.
12517 (ext_internal): New.
12519 * config/mn10300/constraints.md ("z"): New constraint.
12520 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12521 (FIXED_REGISTERS): Don't fix MDR.
12522 (CALL_USED_REGSITERS): Reformat nicely.
12523 (REG_ALLOC_ORDER): Add MDR.
12524 (enum regclass): Add MDR_REGS.
12525 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12526 (IRA_COVER_CLASSES): Add MDR_REGS.
12527 (REGNO_REG_CLASS): Handle MDR_REG.
12528 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12529 (mn10300_register_move_cost): Likewise.
12530 * config/mn10300/mn10300.md (MDR_REG): New.
12531 (*movsi_internal): Handle moves to/from MDR_REGS.
12533 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12535 (mn10300_secondary_reload): Tidy combination reload classes.
12536 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12537 addresses for AM33. Allow symbolic offsets for reg+imm.
12538 (mn10300_regno_in_class_p): New.
12539 (mn10300_legitimize_reload_address): New.
12540 * config/mn10300/mn10300.h (enum reg_class): Remove
12541 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12542 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12543 SP_OR_GENERAL_REGS.
12544 (REG_CLASS_NAMES): Update to match.
12545 (REG_CLASS_CONTENTS): Likewise.
12546 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12547 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12548 (REGNO_IN_RANGE_P): Remove.
12549 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12550 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12551 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12552 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12553 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12554 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12555 (REGNO_GENERAL_P): New.
12556 (HAVE_POST_MODIFY_DISP): New.
12557 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12558 (LEGITIMIZE_RELOAD_ADDRESS): New.
12559 * config/mn10300/mn10300-protos.h: Update.
12561 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12562 DATA_REGS for AM33 stack-pointer destination.
12563 (mn10300_preferred_output_reload_class): Likewise.
12564 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12565 into a form appropriate for ...
12566 (TARGET_SECONDARY_RELOAD): New.
12567 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12568 * config/mn10300/mn10300-protos.h: Update.
12569 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12570 reload_insi; use the "A" constraint for the scratch; handle AM33
12571 moves of sp to non-address registers.
12573 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12574 (*movqi_internal): ... here.
12575 (*am33_movhi, *mn10300_movhi): Merge into...
12576 (*movhi_internal): ... here.
12577 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12578 as the source/destination of moves from/to SP.
12579 (movsf): Only allow for AM33-2.
12580 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12581 any integer constant constraint. Only allow for AM33-2. Tidy
12582 all of the alternative outputs.
12583 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12584 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12586 (udivsi3, umodsi3): New patterns for MN103 only.
12588 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12590 * doc/tm.texi.in: Spell out that a lack of register class unions
12592 * doc/tm.texi: Regenerate.
12594 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12596 PR rtl-optimization/47337
12597 * dce.c (check_argument_store): New function.
12598 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12600 PR tree-optimization/47290
12601 * tree-eh.c (infinite_empty_loop_p): New function.
12602 (cleanup_empty_eh): Use it.
12604 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12607 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12608 (a64_expand_widen_sum): Ditto.
12609 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12610 (vec_extract_evenodd_help): Ditto.
12611 (vec_extract_evenv4hi): Ditto.
12612 (vec_extract_oddv4hi): Ditto.
12613 (vec_extract_evenv2si): Ditto.
12614 (vec_extract_oddv2si): Ditto.
12615 (vec_extract_evenv2sf): Ditto.
12616 (vec_extract_oddv2sf): Ditto.
12617 (vec_pack_trunc_v4hi: Ditto.
12618 (vec_pack_trunc_v2si): Ditto.
12619 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12620 (vec_interleave_highv8qi): Ditto.
12622 (vec_extract_oddv8qi): Ditto.
12623 (vec_interleave_lowv4hi): Ditto.
12624 (vec_interleave_highv4hi): Ditto.
12625 (vec_interleave_lowv2si): Ditto.
12626 (vec_interleave_highv2si): Ditto.
12628 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12630 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12631 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12632 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12633 (pa_c_mode_for_suffix): New.
12634 (TARGET_EXPAND_BUILTIN): Define.
12635 (TARGET_C_MODE_FOR_SUFFIX): Define.
12636 (pa_builtins): Define.
12637 (pa_init_builtins): Register __float128 type and init new support
12639 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12640 * config/pa/quadlib.c (_U_Qfcopysign): New.
12642 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12644 PR middle-end/46894
12645 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12646 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12649 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12651 PR tree-optimization/47179
12652 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12653 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12655 2011-01-18 Richard Guenther <rguenther@suse.de>
12657 PR rtl-optimization/47216
12658 * emit-rtl.c: Include tree-flow.h.
12659 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12660 of replicating it with different semantics.
12661 * Makefile.in (emit-rtl.o): Adjust.
12663 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12665 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12666 (cortex_a9_dp): Handle neon types correctly.
12668 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12670 PR rtl-optimization/47299
12671 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12672 subtarget. Use normal multiplication if both operands are constants.
12673 * expmed.c (expand_widening_mult): Don't try to optimize constant
12674 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12677 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12679 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12680 spacing after 'e.g.', typos, comma, hyphenation.
12682 2011-01-17 Richard Henderson <rth@redhat.com>
12684 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12685 (rx_restricted_mem_operand): New.
12686 (rx_shift_operand): Use register_operand.
12687 (rx_source_operand, rx_compare_operand): Likewise.
12688 * config/rx/rx.md (addsi3_flags): New expander.
12689 (adddi3): Rewrite as expander.
12690 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12691 (subsi3_flags): New expander.
12692 (subdi3): Rewrite as expander.
12693 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12695 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12696 (rx_init_builtins): Remove sat builtin.
12697 (rx_expand_builtin): Likewise.
12698 * config/rx/rx.md (ssaddsi3): New.
12699 (*sat): Rename from sat. Represent the CC_REG input.
12701 * config/rx/predicates.md (rshift_operator): New.
12702 * config/rx/rx.c (rx_expand_insv): Remove.
12703 * config/rx/rx-protos.h: Update.
12704 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12705 operand to the canonical position.
12706 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12707 (*bitclr, *bitclr_in_memory): Similarly.
12708 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12709 (insv): Retain the zero_extract in the expansion.
12711 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12712 (bswaphi2, bitinvert, revw): Likewise.
12714 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12715 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12716 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12717 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12718 (bitset, bitset_in_memory): Likewise.
12719 (bitinvert, bitinvert_in_memory): Likewise.
12720 (bitclr, bitclr_in_memory): Likewise.
12721 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12722 (rx_strend, rx_cmpstrn): Likewise.
12723 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12724 (bitop peep2 patterns): Remove.
12726 * config/rx/rx.c (rx_match_ccmode): New.
12727 * config/rx/rx-protos.h: Update.
12728 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12729 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12730 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12731 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12732 (fix_truncsfsi2, floatsisf2): Likewise.
12733 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12734 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12735 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12736 (*subsi3_flags, *xorsi3_flags): New.
12738 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12740 * config/rx/rx.c (rx_print_operand): Remove workaround for
12741 unsplit comparison operations.
12743 * config/rx/rx.md (movsicc): Split after reload.
12744 (*movsicc): Merge *movsieq and *movsine via match_operator.
12745 (*stcc): New pattern.
12747 * config/rx/rx.c (rx_float_compare_mode): Remove.
12748 * config/rx/rx.h (rx_float_compare_mode): Remove.
12749 * config/rx/rx.md (cstoresi4): Split after reload.
12750 (*sccc): New pattern.
12752 * config/rx/predicates.md (label_ref_operand): New.
12753 (rx_z_comparison_operator): New.
12754 (rx_zs_comparison_operator): New.
12755 (rx_fp_comparison_operator): New.
12756 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12757 Validate that the flags are set properly for the comparison.
12758 (rx_gen_cond_branch_template): Remove.
12759 (rx_cc_modes_compatible): Remove.
12760 (mode_from_flags): New.
12761 (flags_from_code): Rename from flags_needed_for_conditional.
12762 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12763 (rx_select_cc_mode): Likewise.
12764 (rx_split_fp_compare): New.
12765 (rx_split_cbranch): New.
12766 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12767 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12768 (*cbranchsf4): Similarly.
12769 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12770 match_operator and rx_split_cbranch.
12771 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12772 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12773 (*cmpsi): Rename from cmpsi.
12774 (*tstsi): Rename from tstsi.
12775 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12776 (*conditional_branch): Rename from conditional_branch.
12777 (*reveresed_conditional_branch): Remove.
12778 (b<code>): Remove expander.
12779 * config/rx/rx-protos.h: Update.
12781 * config/rx/rx.c (rx_compare_redundant): Remove.
12782 * config/rx/rx.md (cmpsi): Don't use it.
12783 * config/rx/rx-protos.h: Update.
12785 * config/rx/rx-modes.def (CC_F): New mode.
12786 * config/rx/rx.c (rx_select_cc_mode): New.
12787 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12788 * config/rx/rx-protos.h: Update.
12790 2011-01-17 Richard Henderson <rth@redhat.com>
12792 * except.c (dump_eh_tree): Fix stray ; after for statement.
12794 2011-01-17 Richard Guenther <rguenther@suse.de>
12796 PR tree-optimization/47313
12797 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12798 handling before copying the body. Properly deal with
12799 by-reference result in SSA form.
12801 2011-01-17 Ian Lance Taylor <iant@google.com>
12804 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12805 (struct_value_alias_set): Don't define.
12806 (sparc_option_override): Don't set sparc_sr_alias_set and
12807 struct_value_alias_set.
12808 (save_or_restore_regs): Use gen_frame_mem rather than calling
12810 (sparc_struct_value_rtx): Likewise.
12812 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12815 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12816 (_mm_maskstore_pd): Likewise.
12817 (_mm_maskload_ps): Likewise.
12818 (_mm_maskstore_ps): Likewise.
12819 (_mm256_maskload_pd): Change mask to __m256i.
12820 (_mm256_maskstore_pd): Likewise.
12821 (_mm256_maskload_ps): Likewise.
12822 (_mm256_maskstore_ps): Likewise.
12824 * config/i386/i386-builtin-types.def: Updated.
12825 (ix86_expand_special_args_builtin): Likewise.
12827 * config/i386/i386.c (bdesc_special_args): Update
12828 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12829 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12830 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12831 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12833 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12834 Use <avxpermvecmode> on mask register.
12835 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12837 2011-01-17 Olivier Hainque <hainque@adacore.com>
12838 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12839 Eric Botcazou <ebotcazou@adacore.com>
12842 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12843 if <= USHRT_MAX in 32-bit mode.
12845 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12847 * doc/install.texi (Configuration, Specific): Wrap long
12848 lines in examples. Allow line wrapping in long options
12849 and URLs where beneficial for PDF output.
12851 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
12853 * config/mips/mips.c (mips_classify_symbol): Don't return
12854 SYMBOL_PC_RELATIVE for nonlocal labels.
12856 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
12858 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12860 2011-01-15 Jan Hubicka <jh@suse.cz>
12862 PR tree-optimization/47276
12863 * ipa.c (function_and_variable_visibility): Do not try to mark alias
12864 declarations as needed.
12866 2011-01-15 Martin Jambor <mjambor@suse.cz>
12868 * common.opt (fdevirtualize): New flag.
12869 * doc/invoke.texi (Option Summary): Document it.
12870 * opts.c (default_options_table): Add devirtualize flag.
12871 * ipa-prop.c (detect_type_change): Return immediately if
12872 devirtualize flag is not set.
12873 (detect_type_change_ssa): Likewise.
12874 (compute_known_type_jump_func): Likewise.
12875 (ipa_analyze_virtual_call_uses): Likewise.
12877 2011-01-14 Martin Jambor <mjambor@suse.cz>
12879 PR tree-optimization/45934
12880 PR tree-optimization/46302
12881 * ipa-prop.c (type_change_info): New type.
12882 (stmt_may_be_vtbl_ptr_store): New function.
12883 (check_stmt_for_type_change): Likewise.
12884 (detect_type_change): Likewise.
12885 (detect_type_change_ssa): Likewise.
12886 (compute_complex_assign_jump_func): Check for dynamic type change.
12887 (compute_complex_ancestor_jump_func): Likewise.
12888 (compute_known_type_jump_func): Likewise.
12889 (compute_scalar_jump_functions): Likewise.
12890 (ipa_analyze_virtual_call_uses): Likewise.
12891 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12893 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12895 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12896 * config/i386/i386.opt (msse5): New Alias.
12898 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12900 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12901 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12902 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12903 * config/sparc/sparc.h (CC1_SPEC): Likewise.
12905 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12907 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12909 * config/sparc/linux64.h (CC1_SPEC): Likewise.
12910 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12911 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12912 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12914 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12916 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12918 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12920 2011-01-14 Mike Stump <mikestump@comcast.net>
12922 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12923 * config/fr30/fr30.md: Likweise
12924 (movsi_push): Likewise.
12925 (movsi_pop): Likewise.
12926 (enter_func): Likewise.
12927 * config/moxie/moxie.md (movsi_push): Likewise.
12928 (movsi_pop): Likewise.
12930 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12932 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12933 %{no_archive} %{exact_version}.
12934 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12935 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12936 %{no_archive} %{exact_version}.
12937 * config/mips/openbsd.h (LINK_SPEC): Likewise.
12938 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12939 * config/mips/vxworks.h: Likewise.
12941 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12943 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12945 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12947 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12948 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12950 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12952 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12955 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12957 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12959 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12960 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12962 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12963 Don't handle -shlib.
12965 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12967 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12968 (CC1_SPEC): Don't handle -profile.
12970 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12972 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12973 * config/mips/mips.h (CC1_SPEC): Likewise.
12975 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12977 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12978 * config/mips/mips.h (CC1_SPEC): Likewise.
12980 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12982 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12983 * config/m32r/linux.h (LINK_SPEC): Likewise.
12984 * config/mips/linux.h (LINK_SPEC): Likewise.
12985 * config/mips/linux64.h (LINK_SPEC): Likewise.
12986 * config/sparc/linux.h (LINK_SPEC): Likewise.
12987 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12988 LINK_SPEC): Likewise.
12989 * config/xtensa/linux.h (LINK_SPEC): Likewise.
12991 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12993 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12995 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12997 2011-01-14 Joseph Myers <joseph@codesourcery.com>
12999 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13000 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13002 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13004 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13006 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13008 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13009 supports -Bstatic/-Bdynamic.
13010 * configure: Regenerate.
13012 2011-01-14 Jan Hubicka <jh@suse.cz>
13013 Jack Howarth <howarth@bromo.med.uc.edu>
13016 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13017 when checking debug_info_level. Test write_symbols instead of
13018 debug_hooks->var_location when setting flag_var_tracking_uninit.
13020 2011-01-14 Richard Guenther <rguenther@suse.de>
13022 PR tree-optimization/47179
13023 * target.def (ref_may_alias_errno): New target hook.
13024 * targhooks.h (default_ref_may_alias_errno): Declare.
13025 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13026 (default_ref_may_alias_errno): New function.
13027 * target.h (struct ao_ref_s): Declare.
13028 * tree-ssa-alias.c: Include target.h.
13029 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13030 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13031 (targhooks.o): Likewise.
13032 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13033 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13035 2011-01-14 Richard Guenther <rguenther@suse.de>
13037 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13039 2011-01-14 Richard Guenther <rguenther@suse.de>
13041 PR tree-optimization/47280
13042 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13043 return CFG changes.
13044 (tree_ssa_forward_propagate_single_use_vars): Deal with
13045 CFG changes from associate_plusminus.
13047 2011-01-14 Richard Guenther <rguenther@suse.de>
13049 PR middle-end/47281
13051 2011-01-11 Richard Guenther <rguenther@suse.de>
13053 PR tree-optimization/46076
13054 * tree-ssa.c (useless_type_conversion_p): Conversions from
13055 unprototyped to empty argument list function types are useless.
13057 2011-01-14 Richard Guenther <rguenther@suse.de>
13059 PR tree-optimization/47286
13060 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13062 2011-01-14 Martin Jambor <mjambor@suse.cz>
13064 PR middle-end/46823
13065 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13067 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13069 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13070 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13071 * config/xtensa/xtensa.c (xtensa_libcall_value,
13072 xtensa_function_value_regno_p): New functions.
13073 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13075 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13078 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13080 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13081 New function prototype.
13082 * config/i386/winnt.c (i386_pe_assemble_visibility):
13083 Warn only if attribute was specified by user.
13085 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13088 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13090 (floatunsdidf2_fcfidu): Ditto.
13092 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13094 * config/s390/s390.c (print_operand_address): Replace 'error' with
13095 'output_operand_lossage'.
13096 (print_operand): Likewise.
13098 2011-01-13 Jeff Law <law@redhat.com>
13100 PR rtl-optimization/39077
13101 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13102 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13103 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13104 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13105 * gcse.c (prune_insertions_deletions): New function.
13106 (compute_pre_data): Use it.
13108 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13111 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13113 (prune_unused_types_mark): Use it.
13115 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13117 PR rtl-optimization/45352
13118 * sel-sched.c: Update copyright years.
13119 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13120 in the advancing loop when we have issued issue_rate insns.
13122 2011-01-12 Richard Henderson <rth@redhat.com>
13124 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13125 (TARGET_MD_ASM_CLOBBERS): New.
13127 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13128 (TARGET_DELEGITIMIZE_ADDRESS): New.
13130 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13131 (clzsi2, *bsch): New patterns.
13133 * config/mn10300/mn10300.md (INT): New mode iterator.
13134 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13136 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13137 flag_split_wide_types.
13139 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13140 (mn10300_trampoline_init): Rewrite without a template, an immediate
13141 load and a direct branch.
13142 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13144 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13146 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13147 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13148 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13149 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13151 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13154 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13157 2011-01-12 Jan Hubicka <jh@suse.cz>
13160 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13161 (PLUGIN_COND_CLOSE): New macro.
13162 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13164 2011-01-12 Richard Guenther <rguenther@suse.de>
13167 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13168 register variables in a MEM_REF.
13170 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13172 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13173 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13174 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13175 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13176 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13177 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13178 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13179 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13180 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13181 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13182 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13183 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13184 * config/gnu-user.h: New. Copied from linux.h.
13185 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13186 GNU_USER_TARGET_STARTFILE_SPEC.
13187 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13188 GNU_USER_TARGET_ENDFILE_SPEC.
13189 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13190 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13191 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13192 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13193 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13194 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13195 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13196 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13197 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13198 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13199 * config/arm/linux-eabi.h (CC1_SPEC): Use
13200 GNU_USER_TARGET_CC1_SPEC.
13201 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13202 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13203 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13204 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13205 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13206 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13207 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13208 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13210 2011-01-12 Richard Guenther <rguenther@suse.de>
13213 * doc/invoke.texi (ffast-math): Document it is turned on
13216 2011-01-12 Jan Hubicka <jh@suse.cz>
13218 PR tree-optimization/47233
13219 * opts.c (common_handle_option): Disable ipa-reference with profile
13222 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13224 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13227 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13229 * c-parser.c (c_lex_one_token): Updated and reindented some
13230 comments. No changes in code.
13232 2011-01-11 Ian Lance Taylor <iant@google.com>
13234 * godump.c (go_output_var): Don't output the variable if there is
13235 already a type with the same name.
13237 2011-01-11 Ian Lance Taylor <iant@google.com>
13239 * godump.c (go_format_type): Don't generate float80.
13241 2011-01-11 Richard Henderson <rth@redhat.com>
13243 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13244 declaration. Rewrite for both speed and size.
13245 (mn10300_address_cost_1): Remove.
13246 (mn10300_register_move_cost): New.
13247 (mn10300_memory_move_cost): New.
13248 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13249 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13250 extensions, shifts, BSWAP, CLZ.
13251 (mn10300_wide_const_load_uses_clr): Remove.
13252 (TARGET_REGISTER_MOVE_COST): New.
13253 (TARGET_MEMORY_MOVE_COST): New.
13254 * config/mn10300/mn10300-protos.h: Update.
13255 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13257 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13258 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13259 * config/mn10300/mn10300-protos.h: Update.
13260 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13261 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13262 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13263 (*test_int_bitfield, *test_byte_bitfield): Remove.
13264 (*bit_test, *subreg_bit_test): Remove.
13265 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13267 * config/mn10300/constraints.md ("c"): Rename from "A".
13268 ("A", "D"): New constraint letters.
13269 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13270 (fmssf4, fnmasf4, fnmssf4): Likewise.
13272 * config/mn10300/mn10300.md (isa): New attribute.
13273 (enabled): New attribute.
13275 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13276 (abssf2, negsf2): Define only for hardware fp.
13277 (sqrtsf2): Reformat.
13278 (addsf3, subsf3, mulsf3): Merge expander and insn.
13280 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13281 (DEBUGGER_AUTO_OFFSET): Remove.
13282 (DEBUGGER_ARG_OFFSET): Remove.
13284 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13285 Emit register stores with the same offsets as the hardware.
13286 (mn10300_store_multiple_operation): Don't check that the register
13287 save offsets are monotonic.
13288 * config/mn10300/mn10300-protos.h: Update.
13290 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13292 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13293 in terms of the value on the stack, not the MDR register.
13295 2011-01-11 Jan Hubicka <jh@suse.cz>
13299 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13300 (symbol_alias_set_destroy, symbol_alias_set_contains,
13301 propagate_aliases_backward): Declare.
13302 * lto-streamer-out.c (struct sets): New sturcture.
13303 (trivally_defined_alias): New function.
13304 (output_alias_pair_p): Rewrite.
13305 (output_unreferenced_globals): Fix output of alias pairs.
13306 (produce_symtab): Likewise.
13307 * ipa.c (function_and_variable_visibility): Set weak alias destination
13309 * varasm.c (symbol_alias_set_t): Remove.
13310 (symbol_alias_set_destroy): Export.
13311 (propagate_aliases_forward, propagate_aliases_backward): New functions
13313 (compute_visible_aliases): ... this one; remove.
13314 (trivially_visible_alias): New
13315 (trivially_defined_alias): New.
13316 (remove_unreachable_alias_pairs): Rewrite.
13317 (finish_aliases_1): Reorganize code checking if alias is defined.
13318 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13321 2011-01-11 Richard Guenther <rguenther@suse.de>
13323 PR tree-optimization/46076
13324 * tree-ssa.c (useless_type_conversion_p): Conversions from
13325 unprototyped to empty argument list function types are useless.
13327 2011-01-11 Richard Guenther <rguenther@suse.de>
13329 PR middle-end/45235
13330 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13331 volatile MEMs as MEM_READONLY_P.
13333 2011-01-11 Richard Guenther <rguenther@suse.de>
13335 PR tree-optimization/47239
13336 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13338 2011-01-11 Jeff Law <law@redhat.com>
13340 PR tree-optimization/47086
13341 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13342 IVs from statements that might throw.
13344 2011-01-10 Jan Hubicka <jh@suse.cz>
13347 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13349 2011-01-10 Jan Hubicka <jh@suse.cz>
13352 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13353 when correcting profile.
13355 2011-01-10 Jan Hubicka <jh@suse.cz>
13358 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13359 DECL_FINI_PRIORITY.
13360 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13361 Restore DECL_FINI_PRIORITY.
13363 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13365 * doc/gimple.texi: Fix quoting of multi-word return values in
13366 @deftypefn statements. Ensure presence of return value. Wrap
13367 overlong @deftypefn lines.
13368 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13369 descriptions of removed functions.
13370 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13371 of multi-word return value in @deftypefn statement.
13373 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13375 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13376 (Conditional Expressions, Logical Operators)
13377 (Statement and operand traversals): Do not indent smallexample
13378 code. Fix duplicate function argument in example.
13380 2011-01-10 Jeff Law <law@redhat.com>
13382 PR tree-optimization/47141
13383 * ipa-split.c (split_function): Handle case where we are
13384 returning a value and the return block has a virtual operand phi.
13386 2011-01-10 Jan Hubicka <jh@suse.cz>
13388 PR tree-optimization/47234
13389 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13390 (pass_feedback_split_functions): Declare.
13391 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13393 * ipa-split.c (gate_split_functions): Update comments; disable
13394 split-functions for profile_arc_flag and branch_probabilities.
13395 (gate_feedback_split_functions): New function.
13396 (execute_feedback_split_functions): New function.
13397 (pass_feedback_split_functions): New global var.
13399 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13402 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13403 calling gimple_call_set_cannot_inline.
13405 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13407 * config/darwin-sections.def: Remove unused section.
13409 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13412 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13414 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13417 * c-parser.c (c_parser_declaration_or_fndef): Improved
13420 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13422 * config/i386/winnt.c (i386_pe_start_function): Make sure
13423 to switch back to function's section.
13425 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13429 * plugin.c: Move include of dlfcn.h from here...
13430 * system.h: ... to here.
13432 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13434 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13436 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13437 two extra empty pages in PDF output.
13439 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13442 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13443 for error recovery purposes behave as if it was not specified so
13444 that the default type is usd.
13446 2011-01-07 Jan Hubicka <jh@suse.cz>
13448 PR tree-optmization/46469
13449 * ipa.c (function_and_variable_visibility): Clear needed flags on
13450 nodes with external decls; handle weakrefs merging correctly.
13452 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13454 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13457 2011-01-07 Jan Hubicka <jh@suse.cz>
13459 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13460 and no longer claim that gold is required for linker plugin.
13461 * configure: Regenerate.
13462 * gcc.c (PLUGIN_COND): New macro.
13463 (LINK_COMMAND_SPEC): Use it.
13464 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13465 * config.in (HAVE_LTO_PLUGIN): New.
13466 * configure.ac (--with-lto-plugin): New parameter; autodetect
13469 2011-01-07 Jan Hubicka <jh@suse.cz>
13471 PR tree-optimization/46367
13472 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13473 when we can update original.
13474 (cgraph_mark_inline_edge): Sanity check.
13475 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13477 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13479 * config/spu/spu.h (ASM_COMMENT_START): Define.
13481 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13484 * gcc.c (%>S): New.
13485 (SWITCH_KEEP_FOR_GCC): Likewise.
13486 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13487 (do_spec_1): Handle "%>".
13489 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13491 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13494 * config/i386/i386.c (ix86_delegitimize_address): If
13495 simplify_gen_subreg fails, return orig_x.
13498 * value-prof.c (gimple_stringop_fixed_value): Handle
13499 lhs of the call properly.
13501 2011-01-07 Jan Hubicka <jh@suse.cz>
13504 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13506 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13508 * target.def (function_switched_text_sections): New hook.
13509 * doc/tm.texi: Regenerated.
13510 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13511 * final.c (default_function_switched_text_sections): New.
13512 (final_scan_insn): Call function_switched_text_sections when a
13513 mid-function section change occurs.
13514 * output.h (default_function_switched_text_sections): Declare.
13515 * config/darwin-protos.h (darwin_function_switched_text_sections):
13517 * config/darwin.c (darwin_function_switched_text_sections): New.
13518 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13520 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13522 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13523 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13524 the secondary code fragment when outputting for DWARF == 2.
13526 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13528 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13529 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13531 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13532 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13534 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13537 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13538 when it is not empty.
13540 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13543 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13544 (case ${target}): Add btver1.
13545 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13546 -march=native recognize btver1 processors.
13547 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13548 btver1 def_and_undef
13549 * config/i386/i386.c (struct processor_costs btver1_cost): New
13551 (m_BTVER1): New definition.
13552 (m_AMD_MULTIPLE): Includes m_BTVER1.
13553 (initial_ix86_tune_features): Add btver1 tune.
13554 (processor_target_table): Add btver1 entry.
13555 (static const char *const cpu_names): Add btver1 entry.
13556 (software_prefetching_beneficial_p): Add btver1.
13557 (ix86_option_override_internal): Add btver1 instruction sets.
13558 (ix86_issue_rate): Add btver1.
13559 (ix86_adjust_cost): Add btver1.
13560 * config/i386/i386.h (TARGET_BTVER1): New definition.
13561 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13562 (enum processor_type): Add PROCESSOR_BTVER1.
13563 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13565 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13568 * config/i386/i386.c (legitimize_tls_address)
13569 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13570 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13571 (tls_initial_exec_64_sun): New pattern.
13573 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13575 * doc/invoke.texi (Overall Options): Improve wording and markup
13576 of the description of -wrapper.
13578 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13580 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13581 rdynamic, threads): New Driver options.
13583 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13586 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13587 if coming from .tdata.
13588 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13590 2011-01-06 Jan Hubicka <jh@suse.cz>
13593 * collect2.c (main): Do not enable LTOmode when plugin is active.
13595 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13598 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13599 --version output if supported.
13600 * configure: Regenerate.
13602 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13604 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13607 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13610 * c-convert.c (convert): When converting a complex expression
13611 other than COMPLEX_EXPR to a different complex type, ensure
13612 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13613 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13614 when converting COMPLEX_TYPE.
13616 2011-01-06 Ira Rosen <irar@il.ibm.com>
13618 PR tree-optimization/47139
13619 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13620 only the last reduction value is used outside the loop. Update
13623 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13625 * config/rtems.opt: New.
13626 * config.gcc (*-*-rtems*): Use rtems.opt.
13628 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13630 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13631 processors do not support 3DNow instructions.
13633 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13635 * config/spu/spu.c (spu_option_override): Set parameter
13636 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13638 2011-01-05 Jan Hubicka <jh@suse.cz>
13640 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13641 at the command line.
13643 2011-01-05 Martin Jambor <mjambor@suse.cz>
13646 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13647 deltas on streamed outgoing edges.
13648 (output_node_opt_summary): Output info for outgoing edges only when
13649 the node is in new parameter set.
13650 (output_cgraph_opt_summary): New parameter set, passed to the two
13651 aforementioned functions. Update its forward declaration and its
13654 2011-01-05 Tom Tromey <tromey@redhat.com>
13656 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13657 operator to c_finish_omp_atomic.
13658 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13659 (build_unary_op): Update.
13660 (build_modify_expr): Update.
13661 (build_asm_expr): Update.
13663 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13665 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13666 newly inserted insns.
13667 (pad_bb): Likewise.
13668 (spu_emit_branch_hint): Likewise.
13669 (insert_hbrp_for_ilb_runout): Likewise.
13670 (spu_machine_dependent_reorg): Call df_finish_pass after
13671 schedule_insns returns.
13673 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13675 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13677 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13679 PR tree-optimization/47005
13680 * tree-sra.c (struct access): Add 'non_addressable' bit.
13681 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13682 (decide_one_param_reduction): Return 0 if the parameter is passed by
13683 reference and one of the accesses in the group is non_addressable.
13685 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13687 PR tree-optimization/47056
13688 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13689 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13690 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13692 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13694 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13695 initializer. Skip view conversions from aggregate types.
13697 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13700 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13702 2011-01-04 Philipp Thomas <pth@suse.de>
13704 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13707 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13709 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13710 on empty epilogue sequences.
13712 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13714 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13715 non-static): New Driver options.
13717 2011-01-04 Jie Zhang <jie@codesourcery.com>
13720 * gcc.c (default_compilers[]): Set combinable field to 0
13721 for all assembly languages.
13723 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13725 * config/mips/loongson3a.md: New file.
13726 * config/mips/mips.md: Include loongson3a.md.
13727 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13730 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13732 PR middle-end/47017
13733 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13734 instead of convert_memory_address_addr_space on the base expression.
13736 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13738 * config/spu/spu.c (spu_option_override): Update error text
13739 for bad -march= / -mtune= values.
13741 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13743 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13744 if branch-hint optimization will be performed.
13746 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13748 PR tree-optimization/47148
13749 * ipa-split.c (split_function): Convert arguments to
13750 DECL_ARG_TYPE if possible.
13752 PR tree-optimization/47155
13753 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13754 when computing uns.
13756 PR rtl-optimization/47157
13757 * combine.c (try_combine): If undobuf.other_insn becomes
13758 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13759 and set *new_direct_jump_p too.
13761 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13763 PR tree-optimization/47021
13764 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13766 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13768 * gcc.c (process_command): Update copyright notice dates.
13769 * gcov.c (print_version): Likewise.
13770 * gcov-dump.c (print_version): Likewise.
13771 * mips-tfile.c (main): Likewise.
13772 * mips-tdump.c (main): Likewise.
13774 2011-01-03 Martin Jambor <mjambor@suse.cz>
13776 PR tree-optimization/46801
13777 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13778 aggregate fields start at byte boundary instead of the bit-field flag.
13780 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13783 * gcc.c (main): Revert revision 168407.
13785 2011-01-03 Martin Jambor <mjambor@suse.cz>
13787 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13789 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13791 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13792 vector optab to expand vector/scalar shift, update gimple to vector.
13794 2011-01-03 Martin Jambor <mjambor@suse.cz>
13796 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13799 2011-01-03 Martin Jambor <mjambor@suse.cz>
13801 PR tree-optimization/46984
13802 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13804 (cgraph_create_indirect_edge): Fixed line length.
13805 (cgraph_indirect_call_info): Declare.
13806 (cgraph_make_edge_direct) Update declaration.
13807 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13808 (cgraph_create_indirect_edge): Use it.
13809 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13811 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13812 the new thunk_delta representation.
13813 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13815 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13816 (ipa_read_indirect_edge_info): Likewise.
13817 * lto-cgraph.c (output_edge_opt_summary): New function.
13818 (output_node_opt_summary): Call it on all outgoing edges.
13819 (input_edge_opt_summary): New function.
13820 (input_node_opt_summary): Call it on all outgoing edges.
13822 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13825 * gcc.c (main): Don't check have_o when settting combine_inputs.
13827 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
13829 * regrename.c: Add general comment describing the pass.
13830 (struct du_head): Remove 'length' field.
13831 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13832 (regrename_optimize): Do not sort chains. Rework comments, add others.
13833 Force renaming to the preferred class (if any) in the first pass and do
13834 not consider registers that belong to it in the second pass.
13835 (create_new_chain): Do not set 'length' field.
13836 (scan_rtx_reg): Likewise.
13838 2011-01-02 Jakub Jelinek <jakub@redhat.com>
13840 PR tree-optimization/47140
13841 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13842 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13843 to bit_value_binop.
13845 PR rtl-optimization/47028
13846 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13847 parm_birth_insn instead of at the beginning of first bb.
13849 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
13851 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13852 Remove the word "see" before "@pxref".
13853 * doc/rtl.texi: Remove the word "see" before "@pxref".
13855 2011-01-01 Jan Hubicka <jh@suse.cz>
13857 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13860 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
13863 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13866 Copyright (C) 2011 Free Software Foundation, Inc.
13868 Copying and distribution of this file, with or without modification,
13869 are permitted in any medium without royalty provided the copyright
13870 notice and this notice are preserved.