1 2011-06-21 Jakub Jelinek <jakub@redhat.com>
4 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
5 unsignedp argument instead of 1 for clrsb_optab.
6 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
7 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
8 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
9 * optabs.c (widen_leading): Call widen_operand and expand_unop
10 with 0 as unsignedp argument instead of 1 for clrsb_optab.
11 (expand_unop): Subtract difference of mode sizes also for
14 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
16 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
18 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
20 * gensupport.c (add_define_attr): New static function.
21 (is_predicable): Allow multi-alternative lists for the "predicable"
23 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
24 (process_one_cond_exec): Call alter_attrs_for_insn.
25 * doc/md.texi (Defining Attributes): Mention some standard names.
26 (Conditional Execution): Update documentation for "predicable".
28 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
29 __builtin_clrsbll): Document.
30 * doc/rtl.texi (clrsb): New entry.
31 * optabs.c (widen_leading): Renamed from widen_clz. New argument
32 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
33 (expand_unop): Handle clrsb_optab.
34 (init_optabs): Initialize it.
35 * optabs.h (enum optab_index): New entry OTI_clrsb.
36 (clrsb_optab): Define.
37 * genopinit.c (optabs): Add an entry for it.
38 * builtins.c (expand_builtin): Handle clrsb builtin functions.
39 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
40 BUILT_IN_CLRSBLL): New.
41 * rtl.def (CLRSB): New code.
42 * dwarf2out.c (mem_loc_descriptor): Handle it.
43 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
44 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
46 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
47 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
48 (__ctzDI2): Move declaration.
49 * config/bfin/bfin.md (clrsbsi2): New expander.
50 (signbitssi2): Use the CLRSB rtx.
51 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
52 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
54 2011-06-21 Richard Guenther <rguenther@suse.de>
56 * ipa-inline-transform.c (inline_transform): Fix previous
59 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
61 PR tree-optimization/49478
62 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
63 with constant operand.
65 2011-06-21 Richard Guenther <rguenther@suse.de>
67 * ipa-inline-transform.c (inline_transform): Fix typo.
69 2011-06-21 Richard Guenther <rguenther@suse.de>
71 PR tree-optimization/49483
72 * tree-vect-stmts.c (vectorizable_assignment): Also handle
73 VIEW_CONVERT_EXPR conversions.
75 2011-06-21 Joseph Myers <joseph@codesourcery.com>
77 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
78 * config/avr/avr-tables.opt: New file (generated).
79 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
80 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
82 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
83 (avr_option_override): Don't process -mmcu= argument here. Set
84 avr_current_device using avr_mcu_index.
85 (avr_file_start): Use avr_current_device->name instead of
87 * config/avr/avr.opt (mmcu=): Use Enum.
88 * config/avr/t-avr (avr-devices.o): Update dependencies.
89 ($(srcdir)/config/avr/avr-tables.opt): New.
90 * target.def (help): Remove.
91 * doc/tm.texi.in (TARGET_HELP): Remove.
92 * doc/tm.texi: Regenerate.
93 * opts.c: Don't include target.h.
94 (common_handle_option): Don't call targetm.help.
95 * system.h (TARGET_HELP): Poison.
96 * Makefile.in (opts.o): Update dependencies.
98 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
100 * config/usegld.h: New file.
101 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
102 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
103 (LIB_SPEC): Likewise.
105 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
106 (RDYNAMIC_SPEC): Handle GNU ld.
107 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC): Define.
108 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
109 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
110 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
111 (STACK_CHECK_STATIC_BUILTIN): Define.
112 * config/sol2.opt (compat-bsd): Remove.
113 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
114 * config/sol2-bi.h: New file.
115 * config/sol2-gld.h: Remove.
116 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
117 (NO_DBX_BNSYM_ENSYM): Remove.
118 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
119 (STACK_CHECK_STATIC_BUILTIN): Remove.
120 Test USE_GLD instead of TARGET_GNU_LD.
121 * config/i386/sol2-10.h: Rename to ...
122 * config/i386/sol2-bi.h .. this.
123 (SUBTARGET_EXTRA_SPECS): Redefine.
124 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
125 (MULTILIB_DEFAULTS): Remove.
126 (DEFAULT_ARCH32_P): Define.
127 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
128 (ARCH64_SUBDIR): Define.
129 Test USE_GLD instead of TARGET_GNU_LD.
130 (I386_EMULATION): Rename to ...
131 (ARCH32_EMULATION): ... this.
132 (X86_64_EMULATION): Rename to ...
133 (ARCH64_EMULATION): ... this.
134 (TARGET_LD_EMULATION): Remove.
135 (LINK_ARCH_SPEC): Remove.
136 * config/i386/sol2-gas.h: Remove.
137 * config/i386/t-sol2-10: Rename to ...
138 * config/i386/t-sol2-64: ... this.
139 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
140 (AS_SPARC64_FLAG): Define.
141 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
142 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
143 depending on TARGET_CPU_DEFAULT.
144 (CPP_CPU_SPEC): Redefine.
145 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
146 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
147 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
148 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
149 ASM_ARCH_DEFAULT_SPEC): Redefine.
150 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
151 LINK_ARCH_DEFAULT_SPEC.
152 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
153 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
154 (ARCH64_SUBDIR): Define.
155 (LINK_ARCH64_SPEC): Redefine.
156 (CC1_SPEC): Redefine.
157 (OPTION_DEFAULT_SPECS): Redefine.
158 (MULTILIB_DEFAULTS): Define.
159 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
160 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
161 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
162 (NO_DBX_BNSYM_ENSYM): Remove.
163 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
164 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
165 (TARGET_ASM_NAMED_SECTION): Likewise.
166 (STACK_CHECK_STATIC_BUILTIN): Remove.
167 * config/sparc/sol2-bi.h: Remove.
168 * config/sparc/sol2-gas-bi.h: Remove.
169 * config/sparc/sol2-gas.h: Remove.
170 * config/sparc/sol2-gld-bi.h: Remove.
171 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
173 (*-*-solaris2*): ... here.
175 2011-06-21 Christian Bruel <christian.bruel@st.com>
178 * ipa-inline.c (can_inline_edge_p): Check !DECL_DISREGARD_INLINE_LIMITS.
180 2011-06-21 Christian Bruel <christian.bruel@st.com>
183 * cgraphunit.c (process_function_and_variable_attributes): warn when
184 always_inline functions that are not inline.
185 * ipa-inline-transform.c (inline_transform): Always call optimize_inline.
186 * tree-inline.c (tree_inlinable_function_p): Use error instead of sorry.
187 (expand_call_inline): Likewise.
189 2011-06-21 Jakub Jelinek <jakub@redhat.com>
191 * Makefile.in (dg_target_exps): Set.
192 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
193 instead of 7, try to divide it more evenly.
195 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
198 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
199 (avx256_split_unaligned_store): New definition.
200 (ix86_option_override_internal): Enable avx256 unaligned load/store
201 splitting only when avx256_split_unaligned_load/store is set.
203 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
205 * regrename.c (scan_rtx_reg): Handle the case where we write to an
206 open chain in a smaller mode without failing the entire block.
208 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
211 * combine.c (cant_combine_insn_p): Don't check zero/sign
212 extended hard registers.
214 2011-06-21 Alan Modra <amodra@gmail.com>
216 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
217 CONST high part large-toc address.
218 (rs6000_tls_referenced_p): Make static.
219 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
221 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
224 * combine.c (cant_combine_insn_p): Check zero/sign extended
227 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
230 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
231 one of the operands is a register.
233 2011-06-20 Kai Tietz <ktietz@redhat.com>
235 * fold-const.c (fold_binary_loc): Add missing
236 folding for truth-not operations in combination
239 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
241 * regrename.c (do_replace): Don't update notes.
243 2011-06-20 Alan Modra <amodra@gmail.com>
245 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
246 of toc-relative address in CONST.
247 (rs6000_delegitimize_address): Recognize changed address.
248 (rs6000_legitimize_reload_address): Likewise.
249 (rs6000_emit_move): Don't force these constants to memory.
250 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
251 toc-relative address in CONST.
252 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
253 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
255 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
257 * longlong.h (count_leading_zeros): Use long long builtin for
259 (count_trailing_zeros): Likewise.
261 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
264 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
265 .init_array can be used with .ctors on targets.
266 * configure: Regenerated.
268 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
270 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
271 if the element type is volatile.
273 2011-06-18 Jan Hubicka <jh@suse.cz>
275 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
277 (lto_symtab_resolve_can_prevail_p): Likewise.
278 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
279 * cgraphbuild.c (record_reference): Remove extra body alias code.
280 (mark_load): Likewise.
281 (mark_store): Likewise.
282 * cgraph.h (varpool_node): Remove extra_name filed;
283 add alias_of and extraname_alias.
284 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
285 (varpool_alias_aliased_node): New inline function.
286 (varpool_variable_node): New function.
287 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
288 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
289 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
290 (input_varpool_node): Likewise.
291 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
292 (varpool_externally_visible_p): Remove extra body alias code.
293 (function_and_variable_visibility): Likewise.
294 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
295 (ipa_pta_execute): Use it.
296 * varpool.c (varpool_remove_node): Remove extra name alias code.
297 (varpool_mark_needed_node): Likewise.
298 (varpool_analyze_pending_decls): Analyze aliases.
299 (assemble_aliases): New functoin.
300 (varpool_assemble_decl): Use it.
301 (varpool_create_variable_alias): New function.
302 (varpool_extra_name_alias): Rewrite.
303 (varpool_for_node_and_aliases): New function.
305 2011-06-18 Jakub Jelinek <jakub@redhat.com>
308 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
309 last_arg_constant and last argument doesn't match its predicate,
310 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
311 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
312 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
313 spelling of error message.
314 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
315 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
316 const_0_to_255_operand instead of const_int_operand.
319 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
321 * config/i386/sse.md (blendbits): Remove mode attribute.
322 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
323 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
324 Check integer value of operand 3 in insn constraint.
326 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
328 PR rtl-optimization/48542
329 * reload.c (find_equiv_reg): Stop looking when finding a
331 * reload1.c (reload_as_needed): Invalidate all reload
332 registers when crossing a setjmp-type call.
334 2011-06-16 Jeff Law <law@redhat.com>
336 * tree-ssa-threadupdate.c (struct redirection_data): New field
338 (THREAD_TARGET2): Define.
339 (redirection_data_eq): Also check that the intermediate edge is
341 (lookup_redirection_data): Drop useless argument. Extract the
342 outgoing_edge and intermediate edge from E. Callers updated.
343 (copy_phi_args, update_destination_phis): New functions.
344 (fix_duplicate_block_edges): Likewise.
345 (create_edge_and_update_destination_phis): Duplicate all the edges
346 hung off e->aux. Use copy_phi_args.
347 (create_duplicates): Use fix_duplicate_block_edges.
348 (fixup_template_block): Likewise.
349 (redirect_edges): If necessary, redirect the joiner block's incoming
350 edge to the duplicate of the joiner block.
351 (thread_block): Don't muck up loops when threading through a joiner
353 (thread_through_loop_header): Handle threading through a joiner
355 (mark_threaded_blocks, register_jump_thread): Likewise.
356 * tree-flow.h (register_jump_thread): Add new argument. Callers
358 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
359 (thread_across_edge): Handle threading through a joiner block.
361 2011-06-16 Martin Jambor <mjambor@suse.cz>
363 PR tree-optimization/49343
364 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
365 calculate offset, provide 2nd operand for the new COMPONENT_REF.
367 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
369 * config/darwin-protos.h (machopic_select_rtx_section): Move to
370 inside RTX_CODE ifdef.
372 2011-06-16 Tom de Vries <tom@codesourcery.com>
375 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): Disallow
376 NULL pointer for pointer arithmetic.
378 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
382 2011-06-10 Wei Guozhi <carrot@google.com>
385 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
386 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
387 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
389 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
391 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
392 (arm_legitimate_ldrd_p): New prototype.
393 (arm_output_ldrd): New prototype.
394 * config/arm/arm.c (arm_check_ldrd_operands): New function.
395 (arm_legitimate_ldrd_p): New function.
396 (arm_output_ldrd): New function.
398 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
401 * doc/tm.texi.in: Update Copyright date.
402 * doc/tm.texi: Regenerate.
403 * targhooks.c (default_setup_incoming_varargs): Replace
404 CUMULATIVE_ARGS* argument type with cumulative_args_t.
405 (default_pretend_outgoing_varargs_named): Likewise.
406 (hook_pass_by_reference_must_pass_in_stack): Likewise.
407 (hook_callee_copies_named): Likewise.
408 (default_function_arg_advance): Likewise.
409 (default_function_arg): Likewise.
410 (default_function_incoming_arg): Likewise.
411 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
412 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
413 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
414 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
415 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
416 * targhooks.h (default_setup_incoming_varargs): Likewise.
417 (default_pretend_outgoing_varargs_named): Likewise.
418 (hook_pass_by_reference_must_pass_in_stack): Likewise.
419 (hook_callee_copies_named): Likewise.
420 (default_function_arg_advance): Likewise.
421 (default_function_arg): Likewise.
422 (default_function_incoming_arg): Likewise.
423 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
424 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
425 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
426 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
427 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
428 * target.def (pass_by_reference): Likewise.
429 (setup_incoming_varargs, strict_argument_naming): Likewise.
430 (pretend_outgoing_varargs_named, callee_copies): Likewise.
431 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
432 (function_incoming_arg): Likewise.
433 * target.h: Don't include "tm.h" .
434 (cumulative_args_t): New typedef.
435 [GCC_TM_H] (get_cumulative_args): New static inline function.
436 [GCC_TM_H] (pack_cumulative_args): Likewise.
437 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
438 argument type with cumulative_args_t.
439 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
440 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
441 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
442 (frv_arg_partial_bytes, frv_function_arg): Likewise.
443 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
444 (frv_function_arg_1): Likewise.
445 * config/s390/s390.c (s390_pass_by_reference): Likewise.
446 (s390_function_arg_advance, s390_function_arg): Likewise.
447 * config/m32c/m32c.c (m32c_function_arg): Likewise.
448 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
449 (m32c_strict_argument_naming): Likewise.
450 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
451 (spu_function_arg_advance): Likewise.
452 (spu_setup_incoming_varargs): Likewise. Make static.
453 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
455 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
456 CUMULATIVE_ARGS* argument type with cumulative_args_t.
457 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
458 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
459 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
460 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
461 (mep_pass_by_reference, mep_function_arg): Likewise.
462 (mep_function_arg_advance): Likewise.
463 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
464 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
465 (m32r_function_arg, m32r_function_arg_advance): Likewise.
466 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
467 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
468 (ix86_function_arg, ix86_pass_by_reference): Likewise.
469 (ix86_setup_incoming_varargs): Likewise.
470 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
471 (sh_strict_argument_naming): Likewise.
472 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
473 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
474 (sh_function_arg_advance, sh_function_arg): Likewise.
475 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
476 (pdp11_function_arg_advance): Likewise.
477 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
479 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
480 * config/avr/avr.c (avr_function_arg): Likewise.
481 (avr_function_arg_advance): Likewise.
482 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
483 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
484 (xtensa_function_arg_1): Likewise.
485 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Likewise.
486 (xstormy16_function_arg): Likewise.
487 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
488 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
489 (fr30_function_arg_advance): Likewise.
490 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
491 (lm32_function_arg, lm32_function_arg_advance): Likewise.
492 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
493 (moxie_function_arg, moxie_function_arg_advance): Likewise.
494 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
495 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
496 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
497 (cris_function_arg, cris_function_incoming_arg): Likewise.
498 (cris_function_arg_advance, cris_function_arg_1): Likewise.
499 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
500 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
501 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
502 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
503 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
504 (mn10300_arg_partial_bytes): Likewise.
505 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
506 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
507 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
508 (ia64_function_arg_1): Likewise.
509 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
510 (m68k_function_arg): Likewise.
511 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
512 (rs6000_function_arg, setup_incoming_varargs): Likewise.
513 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
514 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
515 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
516 (picochip_arg_advance): Likewise.
517 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
518 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
519 (mcore_function_arg_advance): Likewise.
520 * config/score/score.c (score_pass_by_reference): Likewise.
521 (score_function_arg_advance): Likewise.
522 (score_arg_partial_bytes): Likewise. Make static.
523 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
524 * config/arm/arm.c (arm_arg_partial_bytes): Replace
525 CUMULATIVE_ARGS* argument type with cumulative_args_t.
526 (arm_function_arg, arm_function_arg_advance): Likewise.
527 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
528 * config/pa/pa.c (pa_pass_by_reference): Likewise.
529 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
530 (pa_function_arg): Likewise.
531 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
532 (mips_function_arg, mips_function_arg_advance): Likewise.
533 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
534 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
535 * config/vax/vax.c (vax_function_arg): Likewise.
536 (vax_function_arg_advance): Likewise.
537 * config/h8300/h8300.c (h8300_function_arg): Likewise.
538 (h8300_function_arg_advance): Likewise.
539 * config/v850/v850.c (v850_pass_by_reference): Likewise.
540 (v850_strict_argument_naming, v850_function_arg): Likewise.
541 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
542 (v850_setup_incoming_varargs): Likewise.
543 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
544 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
545 (mmix_function_arg, mmix_pass_by_reference): Likewise.
546 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
548 * config/bfin/bfin.c (setup_incoming_varargs): Replace
549 CUMULATIVE_ARGS* argument type with cumulative_args_t.
550 (bfin_function_arg_advance, bfin_function_arg): Likewise.
551 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
552 * calls.c (emit_call_1): Change type of args_so_far to
553 cumulative_args_t. Changed all callers.
554 (initialize_argument_information): Likewise.
555 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
556 * dse.c (get_call_args): Likewise.
557 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
558 * function.c (pass_by_reference, reference_callee_copied): Likewise.
559 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
560 New member args_so_far_v. Changed all users.
561 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
562 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
563 * config/mips/mips.c (mips_output_args_xfer): Likewise.
564 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
565 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
566 * config/microblaze/microblaze.c (microblaze_expand_prologue): Likewise.
567 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
568 m32r_pass_by_reference.
570 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
572 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
573 argument to be a VEC of statements.
574 * tree-vect-loop.c (vect_determine_vectorization_factor):
575 Remove the assert that pattern statements have to have their
577 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
578 Change the first argument to be a VEC of statements. Update
580 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
581 (vect_handle_widen_mult_by_const): New function.
582 (vect_recog_widen_mult_pattern): Change the first argument to
583 be a VEC of statements. Update documentation. Check that the
584 constant is INTEGER_CST. Support multiplication by a constant
585 that fits an intermediate type - call
586 vect_handle_widen_mult_by_const.
587 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
588 call. Handle additional pattern statements if necessary.
590 2011-06-16 Nick Clifton <nickc@redhat.com>
593 * config.gcc: Set cpu_type to v850 for any V850 architecture.
594 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
595 md_file, extra_modes, out_file and extra_options are these are all
596 deduced from cpu_type.
598 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
600 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
601 truncation mask to 63.
603 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
607 * longlong.h: Add AVR support:
608 (count_leading_zeros): New macro.
609 (count_trailing_zeros): New macro.
610 (COUNT_LEADING_ZEROS_0): New macro.
611 * config/avr/t-avr (LIB1ASMFUNCS): Add
612 _ffssi2, _ffshi2, _loop_ffsqi2,
613 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2,
614 _paritydi2, _paritysi2, _parityhi2,
615 _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
616 _bswapsi2, _bswapdi2,
617 _ashldi3, _ashrdi3, _lshrdi3
618 (LIB2FUNCS_EXCLUDE): Add _clz.
619 * config/avr/libgcc.S (XCALL): Move up in file.
621 (DEFUN): New asm macro.
622 (ENDF): New asm macro.
623 (__ffssi2): New function.
624 (__ffshi2): New function.
625 (__loop_ffsqi2): New function.
626 (__ctzsi2): New function.
627 (__ctzhi2): New function.
628 (__clzdi2): New function.
629 (__clzsi2): New function.
630 (__clzhi2): New function.
631 (__paritydi2): New function.
632 (__paritysi2): New function.
633 (__parityhi2): New function.
634 (__parityqi2): New function.
635 (__popcounthi2): New function.
636 (__popcountsi2): New function.
637 (__popcountdi2): New function.
638 (__popcountqi2): New function.
639 (__bswapsi2): New function.
640 (__bswapdi2): New function.
641 (__ashldi3): New function.
642 (__ashrdi3): New function.
643 (__lshrdi3): New function.
646 2011-06-16 Richard Guenther <rguenther@suse.de>
648 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
650 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
652 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
653 equality compares against zero for the lower bit.
655 2011-06-16 Jakub Jelinek <jakub@redhat.com>
657 PR tree-optimization/49419
658 * tree-vrp.c (execute_vrp): Call init_range_assertions
659 before estimate_numbers_of_iterations, call
660 free_number_of_iterations_estimates before calling
661 remove_range_assertions.
663 2011-06-16 Revital Eres <revital.eres@linaro.org>
665 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
666 (struct partial_schedule): Add rows_length field.
667 (verify_partial_schedule): Check rows_length.
668 (ps_insert_empty_row): Handle rows_length.
669 (create_partial_schedule): Likewise.
670 (free_partial_schedule): Likewise.
671 (reset_partial_schedule): Likewise.
672 (create_ps_insn): Remove rest_count argument.
673 (remove_node_from_ps): Update rows_length.
674 (add_node_to_ps): Update rows_length and call create_ps_insn
675 without passing row_rest_count.
676 (rotate_partial_schedule): Update rows_length.
678 2011-06-16 Revital Eres <revital.eres@linaro.org>
680 * ddg.c (add_intra_loop_mem_dep): New function.
681 (build_intra_loop_deps): Call it.
683 2011-06-13 Jeff Law <law@redhat.com>
685 * df-problems.c (df_lr_local_compute): Manually CSE
686 PIC_OFFSET_TABLE_REGNUM.
687 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
688 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
690 2011-06-13 Jan Hubicka <jh@suse.cz>
692 * cgraphunit.c (handle_alias_pairs): New function.
693 (cgraph_finalize_compilation_unit): Use it.
694 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
695 as externally visible.
697 2011-06-15 Richard Guenther <rguenther@suse.de>
699 * expr.c (expand_expr_real_2): Reduce all integral types to
701 (expand_expr_real_1): Likewise.
703 2011-06-15 Martin Jambor <mjambor@suse.cz>
705 PR tree-optimization/48613
706 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
707 ipa_node_params_vector is NULL.
709 2011-06-15 Jakub Jelinek <jakub@redhat.com>
712 * dwarf2out.c (dw_loc_list_node): Add force field.
713 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
714 the incoming location in the list, even if it is modified
715 before first real insn.
716 (output_loc_list): Emit empty ranges with force flag set.
717 (dw_loc_list): If first range of a PARM_DECL is empty,
720 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
723 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
724 (fence_to_rewind). Use it to notice when bookkeeping will be placed
725 above a fence. Update comments.
726 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
727 placed just above it. Do not allow NULL place_to_insert.
729 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
731 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
732 (slpeel_tree_peel_loop_to_edge): Don't call
733 remove_dead_stmts_from_loop.
734 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
735 remove irrelevant pattern statements. For irrelevant statements
736 check if it is the last statement of a detected pattern, use
737 corresponding pattern statement instead.
738 (destroy_loop_vec_info): No need to remove pattern statements,
739 only free stmt_vec_info.
740 (vect_transform_loop): For irrelevant statements check if it is
741 the last statement of a detected pattern, use corresponding
742 pattern statement instead.
743 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
744 pattern statements. Set basic block for the new statement.
745 (vect_pattern_recog): Update documentation.
746 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
747 operands of pattern statements.
748 (vectorizable_call): Fix printing. In case of a pattern statement
749 use the lhs of the original statement when creating a dummy
750 statement to replace the original call.
751 (vect_analyze_stmt): For irrelevant statements check if it is
752 the last statement of a detected pattern, use corresponding
753 pattern statement instead.
754 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
755 statements use gsi of the original statement.
757 2011-06-14 Joseph Myers <joseph@codesourcery.com>
759 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
760 common/common-target-def.h.
761 * target.def (default_target_flags, handle_option,
762 supports_split_stack, optimization_table, init_struct,
763 except_unwind_info, unwind_tables_default, have_named_sections):
764 Move to common/common-target.def.
765 * target.h (enum opt_levels, struct default_options): Move to
766 common/common-target.h.
767 * targhooks.c (default_except_unwind_info,
768 dwarf2_except_unwind_info, sjlj_except_unwind_info,
769 default_target_handle_option, empty_optimization_table): Move to
770 common/common-targhooks.c.
771 * targhooks.h (default_except_unwind_info,
772 dwarf2_except_unwind_info, sjlj_except_unwind_info,
773 default_target_handle_option, empty_optimization_table): Move to
774 common/common-targhooks.h.
775 * common/common-target-def.h: Include common/common-targhooks.h.
776 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
778 * common/common-target.def (handle_option, option_init_struct,
779 option_optimization_table, default_target_flags,
780 except_unwind_info, supports_split_stack, unwind_tables_default,
781 have_named_sections): Move from target.def.
782 (HOOK_PREFIX): Undefine at end of file.
783 * common/common-target.h: Include input.h.
784 (enum opt_levels, struct default_options): Move from target.h.
785 * common/common-targhooks.c, common/common-targhooks.h: New.
786 * config.gcc (target_has_targetm_common): Default to yes.
787 (moxie*): Set target_has_targetm_common=no.
788 (hppa*-*-*): Don't set target_has_targetm_common=yes.
789 * doc/tm.texi: Regenerate.
790 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
791 (C_TARGET_DEF_H): Add common/common-targhooks.h.
792 (GCC_OBJS): Remove vec.o.
793 (OBJS): Remove hooks.o and vec.o.
794 (OBJS-libcommon-target): Add vec.o, hooks.o and
795 common/common-targhooks.o.
796 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
797 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
798 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
799 cfglayout.o, $(out_object_file), $(common_out_object_file)):
801 (common/common-targhooks.o): New.
802 * common/config/default-common.c: Include tm.h. Add FIXME
804 * common/config/pa/pa-common.c: Include more headers. Take
805 copyright dates from pa.c.
806 (pa_option_optimization_table, pa_handle_option,
807 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
808 TARGET_HANDLE_OPTION): Move from pa.c.
809 * common/config/alpha/alpha-common.c,
810 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
811 common/config/bfin/bfin-common.c,
812 common/config/cris/cris-common.c,
813 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
814 common/config/h8300/h8300-common.c,
815 common/config/i386/i386-common.c,
816 common/config/ia64/ia64-common.c,
817 common/config/iq2000/iq2000-common.c,
818 common/config/lm32/lm32-common.c,
819 common/config/m32c/m32c-common.c,
820 common/config/m32r/m32r-common.c,
821 common/config/m68k/m68k-common.c,
822 common/config/mcore/mcore-common.c,
823 common/config/mep/mep-common.c,
824 common/config/microblaze/microblaze-common.c,
825 common/config/mips/mips-common.c,
826 common/config/mmix/mmix-common.c,
827 common/config/mn10300/mn10300-common.c,
828 common/config/pdp11/pdp11-common.c,
829 common/config/picochip/picochip-common.c,
830 common/config/rs6000/rs6000-common.c,
831 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
832 common/config/score/score-common.c, common/config/sh/sh-common.c,
833 common/config/sparc/sparc-common.c,
834 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
835 common/config/vax/vax-common.c,
836 common/config/xstormy16/xstormy16-common.c,
837 common/config/xtensa/xtensa-common.c: New.
838 * config/alpha/alpha.c: Include common/common-target.h.
839 (alpha_option_optimization_table, alpha_handle_option,
840 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
841 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
842 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
843 * config/arm/arm.c (arm_option_optimization_table,
844 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
845 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
847 * config/avr/avr.c (avr_option_optimization_table,
848 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
850 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
851 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
852 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
853 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
854 * config/cris/cris.c (cris_option_optimization_table,
855 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
856 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
858 * config/fr30/fr30.c (fr30_option_optimization_table,
859 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
861 * config/frv/frv.c (frv_option_optimization_table,
862 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
863 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
864 * config/h8300/h8300.c (h8300_option_optimization_table,
865 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
866 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
867 * config/i386/i386-protos.h (ix86_handle_option): Declare.
868 * config/i386/i386.c: Include common/common-target.h.
869 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
870 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
871 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
872 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
873 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
874 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
875 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
876 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
877 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
878 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
879 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
880 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
881 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
882 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
883 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
884 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
885 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
886 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
887 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
888 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
889 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
890 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
891 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
892 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
893 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
894 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
895 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
896 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
897 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
898 ix86_option_optimization_table, ix86_option_init_struct,
899 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
900 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
901 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
903 * config/i386/t-i386 (i386.o): Update dependencies.
904 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
905 * config/ia64/ia64.c (ia64_option_optimization_table,
906 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
907 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
908 ia64_handle_option): Move to ia64-common.c.
909 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
910 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
911 * config/lm32/lm32.c (lm32_option_optimization_table,
912 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
914 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
916 * config/m32r/m32r.c (m32r_option_optimization_table,
917 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
918 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
919 m32r_handle_option): Move to m32r-common.c.
920 (m32r_memory_move_cost): Remove comment referring to
921 TARGET_HANDLE_OPTION.
922 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
923 Move to m68k-common.c.
924 * config/mcore/mcore.c (mcore_option_optimization_table,
925 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
926 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
927 * config/mep/mep.c (mep_option_optimization_table,
928 mep_handle_option, TARGET_HANDLE_OPTION,
929 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
930 Move to mep-common.c.
931 * config/microblaze/microblaze.c
932 (microblaze_option_optimization_table,
933 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
934 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
935 * config/mips/mips.c (mips_handle_option,
936 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
937 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
939 * config/mmix/mmix.c (mmix_option_optimization_table,
940 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
941 Move to mmix-common.c.
942 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
943 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
944 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
945 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
946 * config/pa/pa.c: Include common/common-target.h.
947 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
948 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
949 pa_handle_option): Move to pa-common.c.
950 (pa_option_override): Use targetm_common.except_unwind_info.
951 (pa_asm_output_mi_thunk, pa_function_section): Use
952 targetm_common.have_named_sections.
953 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
954 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
955 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
956 pdp11_handle_option, pdp11_option_init_struct): Move to
958 * config/picochip/picochip.c (picochip_option_optimization_table,
959 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
960 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
961 * config/rs6000/rs6000.c: Include common/common-target.h.
962 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
963 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
964 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
965 rs6000_handle_option): Move to rs6000-common.c.
966 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
967 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
968 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
969 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
970 * config/s390/s390.c (processor_flags_table,
971 s390_option_optimization_table, s390_option_init_struct,
972 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
973 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
974 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
975 * config/s390/s390.h (processor_flags_table): Declare.
976 * config/score/score.c (score_option_optimization_table,
977 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
978 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
979 score_handle_option): Move to score-common.c.
980 * config/sh/sh.c (sh_option_optimization_table,
981 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
982 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
983 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
984 * config/sparc/sparc.c: Include common/common-target.h.
985 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
986 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
987 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
988 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
989 spu_option_init_struct): Move to spu-common.c.
990 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
991 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
992 * config/v850/v850.c (small_memory_physical_max,
993 v850_handle_memory_optionn v850_handle_option,
994 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
995 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
997 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
999 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1000 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1001 Move to xtensa-common.c.
1002 * cfglayout.c: Include common/common-target.h.
1003 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1004 * cfgrtl.c: Include common/common-target.h.
1005 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1006 targetm_common.have_named_sections.
1007 * dbxout.c: Include common/common-target.h.
1008 (dbxout_function_end): Use targetm_common.have_named_sections.
1009 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1010 targetm_common.except_unwind_info.
1011 * dwarf2out.c: Include common/common-target.h.
1012 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1013 dwarf2out_begin_prologue, dwarf2out_frame_init,
1014 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1015 targetm_common.except_unwind_info.
1016 * except.c: Include common/common-target.h.
1017 (init_eh, finish_eh_generation,
1018 output_one_function_exception_table): Use
1019 targetm_common.except_unwind_info.
1020 (switch_to_exception_section): Use
1021 targetm_common.have_named_sections.
1022 * explow.c: Include common/common-target.h.
1023 * expr.c: Include common/common-target.h.
1024 (build_personality_function): Use
1025 targetm_common.except_unwind_info.
1026 * function.c: Include common/common-target.h.
1027 (expand_function_end): Use targetm_common.except_unwind_info.
1028 * haifa-sched.c: Include common/common-target.h.
1029 (sched_create_recovery_edges): Use
1030 targetm_common.have_named_sections.
1031 * lto-opts.c: Include common/common-target.h instead of target.h.
1032 (lto_reissue_options): Use targetm_common.handle_option.
1033 * opts.c: Include common/common-target.h.
1034 (target_handle_option): Use targetm_common.handle_option.
1035 (init_options_struct): Update comment referring to
1036 targetm.target_option.optimization. Use
1037 targetm_common.default_target_flags,
1038 targetm_common.unwind_tables_default and
1039 targetm_common.option_init_struct.
1040 (default_options_optimization): Use
1041 targetm_common.option_optimization_table.
1042 (finish_options): Use targetm_common.except_unwind_info,
1043 targetm_common.unwind_tables_default,
1044 targetm_common.have_named_sections and
1045 targetm_common.supports_split_stack.
1046 * toplev.c: Include common/common-target.h.
1047 (process_options): Use targetm_common.have_named_sections.
1048 * tree-tailcall.c: Include common/common-target.h.
1049 (suitable_for_tail_call_opt_p): Use
1050 targetm_common.except_unwind_info.
1051 * tree.c: Include common/common-target.h.
1052 (build_common_builtin_nodes): Use
1053 targetm_common.except_unwind_info.
1054 * varasm.c: Include common/common-target.h.
1055 (resolve_unique_section, hot_function_section,
1056 default_function_section): Use targetm_common.have_named_sections.
1058 2011-06-14 Easwaran Raman <eraman@google.com>
1060 PR rtl-optimization/44194
1061 * dse.c: Include tree-flow.h
1062 (insn_info): Add new field non_frame_wild_read.
1063 (group_info): Add new fields escaped_n and escaped_p.
1064 (kill_on_calls): New variable.
1065 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1066 (dse_step0): Initialize kill_on_calls.
1067 (can_escape): New function.
1068 (set_usage_bits): Add additional parameter; record information
1069 about escaped locations.
1070 (record_store): Pass EXPR corresponding to MEM to
1072 (dse_step2_nospill): Set kill_on_calls based on
1073 group->escaped_n and group->escaped_n.
1074 (add_wild_read): Refactor into...
1075 (reset_active_stores): ... New function, and
1076 (free_read_records): ... New function.
1077 (add_non_frame_wild_read): New function.
1078 (scan_insn): Call add_non_frame_wild_read on non-const calls.
1079 (scan_reads_nospill): Handle instructions with
1080 non_frame_wild_read.
1081 (dse_step5_nospill): Call scan_reads_nospill for instructions
1082 marked as non_frame_wild_read.
1083 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
1086 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1088 * common/common-target-def.h, common/common-target.def,
1089 common/common-target.h, common/config/default-common.c,
1090 common/config/pa/pa-common.c: New files.
1091 * Makefile.in (common_out_file, common_out_object_file,
1092 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1093 (OBJS-libcommon-target): Include $(common_out_object_file).
1094 (prefix.o): Update dependencies.
1095 ($(common_out_object_file), common/common-target-hooks-def.h,
1096 s-common-target-hooks-def-h): New.
1097 (s-tm-texi): Also check timestamp on common-target.def.
1098 (build/genhooks.o): Update dependencies.
1099 * config.gcc (common_out_file, target_has_targetm_common): Define.
1100 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1101 TARGET_ALWAYS_STRIP_DOTDOT.
1102 * configure.ac (common_out_object_file): Define.
1103 (common_out_file, common_out_object_file): Substitute.
1104 (common): Create directory.
1105 * configure: Regenerate.
1106 * doc/tm.texi.in (targetm_common): Document.
1107 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1108 * doc/tm.texi: Regenerate.
1109 * genhooks.c (hook_array): Also include common/common-target.def.
1110 * prefix.c (tm.h): Don't include.
1111 (common/common-target.h): Include.
1112 (ALWAYS_STRIP_DOTDOT): Don't define.
1113 (update_path): Use targetm_common.always_strip_dotdot instead of
1114 ALWAYS_STRIP_DOTDOT.
1115 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1117 2011-06-14 David Li <davidxl@google.com>
1119 * passes.c (execute_function_todo): Remove TODO_dump_func.
1120 (execute_one_pass): Remove TODO_dump_func.
1121 (execute_function_dump): New function.
1122 * tree-vrp.c: Remove TODO_dump_func.
1123 * regrename.c: Remove TODO_dump_func.
1124 * fwprop.c: Remove TODO_dump_func.
1125 * tree-into-ssa.c: Remove TODO_dump_func.
1126 * tree-complex.c: Remove TODO_dump_func.
1127 * tracer.c: Remove TODO_dump_func.
1128 * tree-loop-distribution.c: Remove TODO_dump_func.
1129 * postreload-gcse.c: Remove TODO_dump_func.
1130 * postreload.c: Remove TODO_dump_func.
1131 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1132 * tree-tailcall.c: Remove TODO_dump_func.
1133 * ipa-cp.c: Remove TODO_dump_func.
1134 * final.c: Remove TODO_dump_func.
1135 * tree-emutls.c: Remove TODO_dump_func.
1136 * omp-low.c: Remove TODO_dump_func.
1137 * tree-ssa-dse.c: Remove TODO_dump_func.
1138 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1139 * auto-inc-dec.c: Remove TODO_dump_func.
1140 * reorg.c: Remove TODO_dump_func.
1141 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1142 * tree-ssa-ccp.c: Remove TODO_dump_func.
1143 * compare-elim.c: Remove TODO_dump_func.
1144 * mode-switching.c: Remove TODO_dump_func.
1145 * modulo-sched.c: Remove TODO_dump_func.
1146 * tree-call-cdce.c: Remove TODO_dump_func.
1147 * cse.c: Remove TODO_dump_func.
1148 * web.c: Remove TODO_dump_func.
1149 * tree-stdarg.c: Remove TODO_dump_func.
1150 * lto-streamer-out.c: Remove TODO_dump_func.
1151 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1152 * tree-ssa-dom.c: Remove TODO_dump_func.
1153 * tree-nrv.c: Remove TODO_dump_func.
1154 * loop-init.c: Remove TODO_dump_func.
1155 * gimple-low.c: Remove TODO_dump_func.
1156 * ipa-inline.c: Remove TODO_dump_func.
1157 * tree-ssa-sink.c: Remove TODO_dump_func.
1158 * jump.c: Remove TODO_dump_func.
1159 * ifcvt.c: Remove TODO_dump_func.
1160 * tree-ssa-loop.c: Remove TODO_dump_func.
1161 * recog.c: Remove TODO_dump_func.
1162 * dse.c: Remove TODO_dump_func.
1163 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1164 * matrix-reorg.c: Remove TODO_dump_func.
1165 * tree-eh.c: Remove TODO_dump_func.
1166 * regmove.c: Remove TODO_dump_func.
1167 * function.c: Remove TODO_dump_func.
1168 * tree-vectorizer.c: Remove TODO_dump_func.
1169 * ipa-split.c: Remove TODO_dump_func.
1170 * gcse.c: Remove TODO_dump_func.
1171 * tree-if-conv.c: Remove TODO_dump_func.
1172 * init-regs.c: Remove TODO_dump_func.
1173 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1174 * implicit-zee.c: Remove TODO_dump_func.
1175 * lower-subreg.c: Remove TODO_dump_func.
1176 * bt-load.c: Remove TODO_dump_func.
1177 * tree-dfa.c: Remove TODO_dump_func.
1178 * except.c: Remove TODO_dump_func.
1179 * emit-rtl.c: Remove TODO_dump_func.
1180 * store-motion.c: Remove TODO_dump_func.
1181 * cfgexpand.c: Remove TODO_dump_func.
1182 * tree-cfgcleanup.c: Remove TODO_dump_func.
1183 * cfgcleanup.c: Remove TODO_dump_func.
1184 * tree-ssa-pre.c: Remove TODO_dump_func.
1185 * tree-sra.c: Remove TODO_dump_func.
1186 * tree-mudflap.c: Remove TODO_dump_func.
1187 * tree-ssa-copy.c: Remove TODO_dump_func.
1188 * cfglayout.c: Remove TODO_dump_func.
1189 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1190 * tree-ssa-dce.c: Remove TODO_dump_func.
1191 * ira.c: Remove TODO_dump_func.
1192 * tree-ssa.c: Remove TODO_dump_func.
1193 * integrate.c: Remove TODO_dump_func.
1194 * tree-optimize.c: Remove TODO_dump_func.
1195 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1196 * tree-object-size.c: Remove TODO_dump_func.
1197 * combine.c: Remove TODO_dump_func.
1198 * bb-reorder.c: Remove TODO_dump_func.
1199 * cprop.c: Remove TODO_dump_func.
1200 * var-tracking.c: Remove TODO_dump_func.
1201 * tree-profile.c: Remove TODO_dump_func.
1202 * tree-vect-generic.c: Remove TODO_dump_func.
1203 * reg-stack.c: Remove TODO_dump_func.
1204 * sched-rgn.c: Remove TODO_dump_func.
1205 * tree-ssa-structalias.c: Remove TODO_dump_func.
1206 * tree-switch-conversion.c: Remove TODO_dump_func.
1207 * tree-cfg.c: Remove TODO_dump_func.
1208 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1209 * combine-stack-adj.c: Remove TODO_dump_func.
1210 * dce.c: Remove TODO_dump_func.
1211 * tree-ssanames.c: Remove TODO_dump_func.
1212 * regcprop.c: Remove TODO_dump_func.
1214 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1217 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1218 and properly handle result not in Pmode.
1220 2011-06-14 Robert Millan <rmh@gnu.org>
1222 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1223 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1226 * config/i386/kfreebsd-gnu64.h: New file.
1227 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1228 with `i386/kfreebsd-gnu64.h'.
1230 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1231 (GNU_USER_LINK_EMULATION64): New macros.
1232 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1233 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1234 of hardcoding `elf_i386' and `elf_x86_64'.
1236 2011-06-14 Nick Clifton <nickc@redhat.com>
1239 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1242 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1244 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1247 * tree.h (DECL_NONSHAREABLE): Define.
1248 (struct tree_decl_common): Change decl_common_unused to
1249 decl_nonshareable_flag.
1250 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1251 Ignore vars with DECL_NONSHAREABLE bit set.
1252 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1253 on stores to automatic aggregate vars.
1255 PR rtl-optimization/49390
1257 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1259 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1262 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
1263 Tom de Vries <tom@codesourcery.com>
1266 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1267 Document changed semantics.
1268 (max_stmt_executions, max_stmt_executions_int): Declare.
1269 * tree-data-ref.c (estimated_loop_iterations)
1270 (estimated_loop_iterations_int): Move functions...
1271 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1272 (estimated_loop_iterations_int): here.
1273 (record_estimate): Change nb_iterations_upper_bound and
1274 nb_iterations_estimate semantics.
1275 (max_stmt_executions, max_stmt_executions_int): New function.
1276 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1277 (max_stmt_executions_tree): this.
1278 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1279 estimated_loop_iterations_tree.
1280 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1281 max_stmt_executions_int instead of estimated_loop_iterations_int.
1282 * predict.c (predict_loops): Idem.
1283 * tree-parloops.c (parallelize_loops): Idem.
1284 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1285 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1286 (init_omega_for_ddr_1): Idem.
1287 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1288 (loop_prefetch_arrays): Idem
1289 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1290 max_stmt_executions instead of estimated_loop_iterations.
1291 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1292 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1293 instead of nb_iterations_upper_bound.
1295 2011-06-13 Jan Hubicka <jh@suse.cz>
1297 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1299 2011-06-14 Richard Henderson <rth@redhat.com>
1302 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1303 (based_loc_descr): Assert it's true.
1304 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1305 aborting immediately.
1307 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1308 Mingfeng Wu <mingfeng@faraday-tech.com>
1310 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1312 2011-06-13 Jan Hubicka <jh@suse.cz>
1314 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1316 2011-06-13 Jan Hubicka <jh@suse.cz>
1318 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1319 similarly to DECL_COMDAT.
1320 * cgraphunit.c (cgraph_analyze_function): Likewise.
1321 * ipa.c (function_and_variable_visibility): Likewise.
1323 2011-06-13 Jan Hubicka <jh@suse.cz>
1325 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1326 BINFO_VIRTUALS when streaming for ltrans unit.
1328 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
1330 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1331 (movdi_internal64): Same.
1333 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1336 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1337 a set of similar patterns, where the MATCH_OPERAND for the function
1338 argument is replaced with individual references to hardware registers.
1339 (save_fpregs_<mode>): Ditto
1340 (restore_gpregs_<mode>): Ditto
1341 (return_and_restore_gpregs_<mode>): Ditto
1342 (return_and_restore_fpregs_<mode>): Ditto
1343 (return_and_restore_fpregs_aix_<mode>): Ditto
1345 2011-06-13 Jan Hubicka <jh@suse.cz>
1347 * ipa-utils.c (postorder_stack): New structure.
1348 (ipa_reverse_postorder): Handle aliases.
1350 2011-06-13 Jan Hubicka <jh@suse.cz>
1352 * ipa-inline.c (reset_edge_caches): Walk aliases.
1353 (update_caller_keys): Do not test inlinability of aliases.
1354 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1355 (do_estimate_growth): Fix typo.
1357 2011-06-13 Jan Hubicka <jh@suse.cz>
1359 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1360 (can_remove_node_now_p): ... here; handle same comdat groups.
1361 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1362 (inline_call): Update use of can_remove_node_now_p.
1364 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1366 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1367 condition to disallow non-identical memory locations.
1368 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1369 preference to bit manipulation instructions.
1371 2011-06-13 Jan Hubicka <jh@suse.cz>
1373 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1374 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1375 (nonremovable_p): New function.
1376 (cgraph_can_remove_if_no_direct_calls_p): New function.
1377 (used_from_object_file_p): New functoin.
1378 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1379 references from aliases.
1380 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1381 * ipa-inline.c (check_caller_edge): New function.
1382 (want_inline_function_called_once_p): Use it; accept aliases called
1384 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1386 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1389 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1390 correctly for the case with Quad vectors.
1392 2011-06-13 Jakub Jelinek <jakub@redhat.com>
1393 Ira Rosen <ira.rosen@linaro.org>
1395 PR tree-optimization/49352
1396 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1397 all, make sure loop_use_stmt after the loop is a def stmt of a used
1398 SSA_NAME that is the only one defined inside of the loop. Don't
1399 check for COND_EXPR and GIMPLE_BINARY_RHS.
1400 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1401 check_reduction is true.
1403 2011-06-11 Jan Hubicka <jh@suse.cz>
1406 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1408 2011-06-11 Jan Hubicka <jh@suse.cz>
1411 * ipa-inline-transform.c: Include tree-pass.h
1412 (inline_transform): Set TODO_update_ssa_only_virtuals.
1413 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1415 2011-06-11 Jan Hubicka <jh@suse.cz>
1418 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1421 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
1423 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1424 Take number of iterations to peel into account for equally frequent
1425 misalignment values.
1427 2011-06-11 Jan Hubicka <jh@suse.cz>
1429 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
1432 2011-06-11 Jan Hubicka <jh@suse.cz>
1434 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
1436 (ipa_update_after_lto_read): Likewise.
1437 (ipa_write_node_info): Do not sream call_with_var_arguments.
1438 (ipa_read_node_info): Likewise.
1440 2011-06-11 Jan Hubicka <jh@suse.cz>
1442 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1444 2011-06-11 Jan Hubicka <jh@suse.cz>
1446 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1447 (lto_symtab_resolve_can_prevail_p): Likewise.
1448 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1449 * cgraph.c (same_body_aliases_done): New global var.
1450 (cgraph_same_body_alias_1): Rename to ...
1451 (cgraph_create_function_alias): ... this one; reorg to new
1453 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1454 record references when asked to.
1455 (cgraph_add_thunk): Fix formating.
1456 (cgraph_get_node): Kill same body alias code.
1457 (cgraph_node_for_asm): Likewise.
1458 (cgraph_remove_same_body_alias): Remove.
1459 (cgraph_remove_node): Kill same body alias code.
1460 (cgraph_mark_address_taken_node): Mark also the aliased function
1461 as having address taken.
1462 (dump_cgraph_node): Dump same body aliases.
1463 (cgraph_for_node_thunks_and_aliases): Update for new alias
1465 (cgraph_for_node_and_aliases): Likewise.
1466 * cgraph.h (same_body): Kll pointer.
1467 (same_body_alias): Update comment.
1468 (same_body_aliases_done): Declare.
1469 (cgraph_remove_same_body_alias): Remove declaration.
1470 (cgraph_create_function_alias): Declare.
1471 (cgraph_process_same_body_aliases): Declare.
1472 (cgraph_function_with_gimple_body_p): Check for alias.
1473 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1474 (cgraph_alias_aliased_node): New function.
1475 (cgraph_function_node): Update for new aliases.
1476 (cgraph_function_or_thunk_node): Likewise.
1477 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1478 (inline_call): Remove dead aliases.
1479 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1480 name hack for same body aliases.
1481 (clone_of_p): Look through aliases.
1482 (verify_cgraph_node): Verify aliases.
1483 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1484 (cgraph_process_same_body_aliases): New function.
1485 (process_function_and_variable_attributes): Disable weakref warning on
1487 (cgraph_analyze_functions): Handle aliases.
1488 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1489 (assemble_thunks): Rename to ...
1490 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1491 (cgraph_expand_function): Remove alias output code.
1492 (cgraph_output_in_order): Skip aliases.
1493 (cgraph_preserve_function_body_p): Aliases don't need preserving.
1494 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1495 (ipa_record_reference): Do not assert on alias references.
1496 (ipa_ref_has_aliases_p): New function.
1497 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1498 (ipa_ref_has_aliases_p): Declare.
1499 * lto-cgraph.c (lto_output_node): Handle aliases.
1500 (input_node): Likewise.
1501 * lto-streamer-out.c (lto_output): Skip aliases.
1502 (produce_symtab): Kill same_body_alias code.
1503 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1504 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1505 * ipa-inline.c (update_caller_keys): Walk aliases.
1506 (inline_small_functions): Fix thinko in previous patch.
1507 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1508 (function_and_variable_visibility): Do not walk same body aliases.
1509 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1510 (ipa_pta_execute): Use it.
1512 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1514 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1515 (*vec_dupv2df): Rename from vec_dupv2df.
1516 (vec_dupv2df): New expander.
1518 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1520 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1522 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1524 * config/i386/i386.md: Use default value in "isa" attribute.
1525 * config/i386/sse.md: Ditto.
1526 * config/i386/mmx.md: Ditto.
1528 2011-06-10 Wei Guozhi <carrot@google.com>
1531 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1532 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1533 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1535 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1537 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1538 (arm_legitimate_ldrd_p): New prototype.
1539 (arm_output_ldrd): New prototype.
1540 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1541 (arm_legitimate_ldrd_p): New function.
1542 (arm_output_ldrd): New function.
1544 2011-06-10 David Li <davidxl@google.com>
1546 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1547 * passes.c (passr_eq): New function.
1548 (create_pass_tab): New function.
1549 (pass_traverse): New function.
1550 (dump_one_pass): New function.
1551 (dump_pass_list): New function.
1552 (dump_passes): New function.
1554 2011-06-10 Jan Hubicka <jh@suse.cz>
1556 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
1557 setting the nothrow flag.
1558 * ipa-reference.c (propagate): Skip aliases.
1559 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
1560 (propagate_nothrow): Skip aliases; do not update cgraph.
1561 (local_pure_const): Do not update cgraph.
1562 * tree-profile.c (tree_profiling): Do fixup_cfg.
1564 2011-06-10 Jan Hubicka <jh@suse.cz>
1566 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
1567 (cgraph_local_node_p): ... here; handle aliases.
1568 (has_addr_references_p): Break out from ...;
1569 (cgraph_remove_unreachable_nodes) ... here.
1571 2011-06-10 Jan Hubicka <jh@suse.cz>
1573 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
1574 * common.opt (flag_inline_functions_called_once): Do not
1577 2011-06-10 Jan Hubicka <jh@suse.cz>
1579 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
1580 (ipcp_initialize_node_lattices): Do not deal with aliases;
1581 Do not try to propagate through thunks.
1582 (ipcp_change_tops_to_bottom): Do not deal with aliases.
1584 2011-06-10 Jan Hubicka <jh@suse.cz>
1586 * ipa-prop.c (ipa_write_node_info): Stream jump functions
1588 (ipa_read_node_info): Likewise.
1590 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1593 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
1594 (build_and_insert_call): Likewise.
1595 (build_and_insert_ref): New.
1596 (gimple_expand_builtin_pow): Minor cleanup.
1597 (gimple_expand_builtin_cabs): New.
1598 (execute_cse_sincos): Add case for BUILT_IN_CABS.
1600 2011-06-10 Jan Hubicka <jh@suse.cz>
1602 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1603 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1604 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1605 (ipcp_propagate_stage): Skip aliases when propagating.
1606 (ipcp_need_redirect_p): Skip aliases.
1607 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1608 collect_callers_of_node.
1609 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1611 (ipa_compute_jump_functions): Look through aliases.
1613 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1615 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1617 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1619 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1621 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1623 2011-06-10 Jan Hubicka <jh@suse.cz>
1625 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1626 Update call of gimple_get_virt_method_for_binfo.
1627 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1628 refuse_thunks parameter.
1629 (gimple_fold_call): Update.
1630 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1632 2011-06-10 Jan Hubicka <jh@suse.cz>
1634 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1635 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1636 worker for cgraph_for_node_and_aliases.
1637 (convert_callers_for_node): Break out from ...
1638 (convert_callers): ... here.
1639 (modify_function): Use collect_callers_of_node.
1640 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1642 2011-06-10 Richard Guenther <rguenther@suse.de>
1644 PR tree-optimization/49361
1645 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1646 when not already in gimple form.
1648 2011-06-10 Richard Guenther <rguenther@suse.de>
1651 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1652 FOR_EACH_PHI_OR_STMT_USE.
1654 2011-06-10 Jan Hubicka <jh@suse.cz>
1656 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1657 (clone_inlined_nodes): ... here.
1658 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1659 to real destination prior inlining.
1660 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1661 can_early_inline_edge_p, want_early_inline_function_p,
1662 want_early_inline_function_p, want_inline_small_function_p,
1663 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1664 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1665 add_new_edges_to_heap, inline_small_functions, flatten_function,
1666 inline_always_inline_functions, early_inline_small_functions): Use
1667 cgraph_function_or_thunk_node.
1668 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1669 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1670 (do_estimate_edge_growth_1): Break out from ...
1671 (do_estimate_growth) ... here; walk aliases.
1672 (inline_generate_summary): Skip aliases.
1674 2011-06-10 Richard Guenther <rguenther@suse.de>
1676 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1677 forward when combining, visit inserted stmts when a stmt was changed.
1679 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1681 * tree.h (error_operand_p): Add.
1682 * dbxout.c (dbxout_type_fields): Use the latter.
1683 * c-decl.c (add_stmt): Likewise.
1684 * gimplify.c (omp_add_variable, omp_notice_variable,
1685 gimplify_scan_omp_clauses): Likewise.
1687 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1689 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1690 when a value is actually passed in regs.
1692 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1693 Laurent Rougé <laurent.rouge@menta.fr>
1695 * doc/invoke.texi (SPARC options): Add -mflat.
1696 * config/sparc/sparc.opt: Likewise.
1697 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1698 (sparc_flat_expand_prologue): Declare.
1699 (sparc_flat_expand_epilogue): Likewise.
1700 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1701 (CPP_ENDIAN_SPEC): Replace with...
1702 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1703 (CPP_SPEC): Adjust to above change.
1704 (EXTRA_SPECS): Likewise.
1705 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1706 (INCOMING_REGNO): Likewise.
1707 (OUTGOING_REGNO): Likewise.
1708 (LOCAL_REGNO): Likewise.
1709 (SETUP_FRAME_ADDRESSES): Likewise.
1710 (FIXED_REGISTERS): Set 0 for %fp.
1711 (CALL_USED_REGISTERS): Likewise.
1712 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1713 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1714 (RETURN_ADDR_REGNUM): Define.
1715 (RETURN_ADDR_RTX): Use it.
1716 (INCOMING_RETURN_ADDR_REGNUM): Define.
1717 (INCOMING_RETURN_ADDR_RTX): Use it.
1718 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1719 (EH_RETURN_REGNUM): Define.
1720 (EH_RETURN_STACKADJ_RTX): Use it.
1721 (EH_RETURN_HANDLER_RTX): Delete.
1722 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1723 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1725 (struct machine_function): Add frame_size, apparent_frame_size,
1726 frame_base_reg, frame_base_offset, n_global_fp_regs and
1727 save_local_in_regs_p fields.
1728 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1729 sparc_frame_base_offset, sparc_n_global_fp_regs,
1730 sparc_save_local_in_regs_p): New macros.
1731 (sparc_option_override): Error out if -fcall-saved-REG is specified
1733 (eligible_for_restore_insn): Fix formatting.
1734 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1735 (eligible_for_sibcall_delay): Likewise.
1736 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1737 (sparc_legitimate_address_p): Adjust to above change.
1738 (save_global_or_fp_reg_p): New predicate.
1739 (return_addr_reg_needed_p): Likewise.
1740 (save_local_or_in_reg_p): Likewise.
1741 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1742 (SORR_SAVE, SORR_RESTORE): Delete.
1743 (sorr_pred_t): New typedef.
1744 (sorr_act_t): New enum.
1745 (save_or_restore_regs): Rename to...
1746 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1747 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1748 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1749 mechanism. Add CFI information for double-word saves in 32-bit mode.
1750 (emit_adjust_base_to_offset): New function extracted from...
1751 (emit_save_or_restore_regs): ...this. Rename the rest to...
1752 (emit_save_or_restore_regs_global_fp_regs): ...this.
1753 (emit_save_or_restore_regs_local_in_regs): New function.
1754 (gen_create_flat_frame_[123]): New functions.
1755 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1756 (sparc_flat_expand_prologue): New function.
1757 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1758 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1759 (sparc_flat_expand_epilogue): New function.
1760 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1761 (output_return): Likewise.
1762 (output_sibcall): Likewise.
1763 (sparc_output_mi_thunk): Likewise.
1764 (sparc_frame_pointer_required): Likewise.
1765 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1766 function optimization.
1767 * config/sparc/sparc.md (flat): New attribute.
1768 (prologue): Add TARGET_FLAT handling.
1769 (save_register_window): Disable if TARGET_FLAT.
1770 (create_flat_frame_[123]): New patterns.
1771 (epilogue): Add TARGET_FLAT handling.
1772 (sibcall_epilogue): Likewise.
1773 (eh_return): New expander.
1774 (eh_return_internal): New insn and splitter.
1775 (return_internal): Add TARGET_FLAT handling.
1776 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1777 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1778 (nonlocal_goto): Add TARGET_FLAT handling.
1779 * config/sparc/t-elf: Add -mflat multilib.
1780 * config/sparc/t-leon: Likewise.
1782 2011-06-10 Jan Hubicka <jh@suse.cz>
1784 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1785 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1786 (self_recursive_p): Use cgraph_function_node.
1787 (propagate_pure_const): Likewise.
1788 (propagate_nothrow): Likewise.
1789 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1790 cgraph_function_node.
1791 (propagate_bits): Likewise.
1792 (propagate): Likewise.
1794 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1795 Richard Earnshaw <rearnsha@arm.com>
1797 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1798 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1799 (*thumb2_movdi_vfp): Delete.
1800 (*arm_movdi_vfp_cortexa8): Delete.
1801 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1802 (*movdi_vfp_cortexa8): Likewise.
1804 2011-06-10 Richard Guenther <rguenther@suse.de>
1806 * stor-layout.c (initialize_sizetypes): Give names to all
1809 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1811 PR tree-optimization/49318
1812 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1813 irrelevant pattern statements.
1815 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1817 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1820 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1823 2011-06-09 Jan Hubicka <jh@suse.cz>
1825 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1826 do not recompute reachable flag.
1827 (cgraph_finalize_function, cgraph_analyze_functions): Set
1828 redefined_extern_inline here.
1830 2011-06-09 Jan Hubicka <jh@suse.cz>
1832 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1833 (cgraph_only_called_directly_p): ... this one; bring offline.
1834 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1835 varpool_used_from_object_file_p): Drop names from the declaratoin.
1836 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1837 collect_callers_of_node): New.
1838 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1839 (cgraph_edge_recursive_p): Use cgraph_function_node.
1840 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1841 (cgraph_node_cannot_be_local_p_1): Break out from ...
1842 (cgraph_node_can_be_local_p): ... here; walk aliases.
1843 (cgraph_for_node_thunks_and_aliases): New function.
1844 (cgraph_for_node_and_aliases): New function.
1845 (cgraph_make_node_local_1): Break out from ...
1846 (cgraph_make_node_local) ... here; use
1847 cgraph_for_node_thunks_and_aliases.
1848 (cgraph_set_nothrow_flag_1): Break out from ...
1849 (cgraph_set_nothrow_flag) ... here;
1850 use cgraph_for_node_thunks_and_aliases.
1851 (cgraph_set_const_flag_1): Break out from ...
1852 (cgraph_set_const_flag) ... here;
1853 use cgraph_for_node_thunks_and_aliases.
1854 (cgraph_set_pure_flag_1): Break out from ...
1855 (cgraph_set_pure_flag) ... here;
1856 use cgraph_for_node_thunks_and_aliases.
1857 (cgraph_propagate_frequency_1): Break out from ...
1858 (cgraph_propagate_frequency) ... here; use
1859 cgraph_for_node_thunks_and_aliases.
1860 (cgraph_used_from_object_file_p): Do not care about aliases.
1861 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1863 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1865 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1867 PR rtl-optimization/49154
1868 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1869 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1870 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1871 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1872 * config/cris/cris.h (cris_register_move_cost): Remove
1873 !TARGET_V32 code. Tweak comments.
1875 2011-06-09 Jan Hubicka <jh@suse.cz>
1877 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1880 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1882 PR rtl-optimization/49154
1883 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1884 is a matching slot in the hashtable, assign it to classes_ptr.
1886 PR rtl-optimization/49154
1887 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1889 * doc/tm.texi: Regenerate.
1891 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1894 * config/sh/sh.md (UNSPEC_CHKADD): New.
1895 (chk_guard_add): New define_insn_and_split.
1896 (symGOT_load): Use chk_guard_add instead of blockage.
1898 2011-06-09 Kai Tietz <ktietz@redhat.com>
1900 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1902 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1904 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1906 2011-06-09 Wei Guozhi <carrot@google.com>
1909 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1910 (peephole2 for conditional move): Generate 16 bit instructions.
1912 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1914 * config/i386/i386.md (*movdi_internal_rex64): Merge
1915 alternatives 6 and 8.
1917 2011-06-09 David Li <davidxl@google.com>
1919 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1920 * passes.c (passr_eq): New function.
1921 (create_pass_tab): New function.
1922 (pass_traverse): New function.
1923 (dump_one_pass): New function.
1924 (dump_pass_list): New function.
1925 (dump_passes): New function.
1927 2011-06-09 David Li <davidxl@google.com>
1929 * tree-complex.c (tree_lower_complex): Gate cleanup.
1930 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1931 (execute_optimize_stdarg): Ditto.
1932 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1933 (execute_cleanup_eh_1): Ditto.
1934 (execute_cleanup_eh): Ditto.
1935 * gcse.c (gate_rtl_pre): Ditto.
1936 (execute_rtl_pre): Ditto.
1937 * except.c (finish_eh_generation): Ditto.
1938 (convert_to_eh_region_ranges): Ditto.
1939 * cprop.c (one_cprop_pass): Ditto.
1941 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1944 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1945 in all basic blocks.
1947 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1949 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1950 (HAVE_ENABLE_EXECUTE_STACK): Define.
1951 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1952 (HAVE_ENABLE_EXECUTE_STACK): Define.
1953 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1954 (HAVE_ENABLE_EXECUTE_STACK): Define.
1955 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1956 (ENABLE_EXECUTE_STACK): Remove.
1957 (HAVE_ENABLE_EXECUTE_STACK): Define.
1958 [IN_LIBGCC2]: Don't include <windows.h>.
1959 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1960 (HAVE_ENABLE_EXECUTE_STACK): Define.
1961 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1962 (HAVE_ENABLE_EXECUTE_STACK): Define.
1963 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1964 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1965 (HAVE_ENABLE_EXECUTE_STACK): Define.
1966 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1967 (HAVE_ENABLE_EXECUTE_STACK): Define.
1968 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1969 (HAVE_ENABLE_EXECUTE_STACK): Define.
1970 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1971 (HAVE_ENABLE_EXECUTE_STACK): Define.
1972 * config/alpha/alpha.c (alpha_trampoline_init): Test
1973 HAVE_ENABLE_EXECUTE_STACK.
1974 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1975 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1976 (sparc64_initialize_trampoline): Likewise.
1977 * libgcc2.c [L_enable_execute_stack]: Remove.
1978 * system.h (ENABLE_EXECUTE_STACK): Poison.
1979 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1980 * doc/tm.texi: Regenerate.
1981 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1983 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1986 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1987 variable. After resetting and rescanning insn continue with previous
1990 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1992 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1993 (gcc_cv_ld_hidden): Likewise.
1994 * configure: Regenerate.
1995 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1996 (ix86_stack_protect_fail): Mark unused.
1997 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1998 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1999 [TARGET_MACHO]: Don't define.
2000 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2001 (TARGET_STACK_PROTECT_FAIL): Likewise.
2002 (rs6000_stack_protect_fail): Mark unused.
2003 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2004 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
2006 2011-06-08 Andi Kleen <ak@linux.intel.com>
2008 * varasm.c (get_section): Print location of other conflict
2009 for section conflicts.
2011 2011-06-08 Andi Kleen <ak@linux.intel.com>
2013 * config/i386/driver-i386.c (host_detect_local_cpu):
2014 Add model 0x2d Intel CPU.
2016 2011-06-08 Andi Kleen <ak@linux.intel.com>
2018 * reginfo.c (global_regs_decl): Add.
2019 (globalize_reg): Add decl parameter. Compute location. Pass location
2020 to warnings and add inform. Store decl in global_regs_decl.
2021 * rtl.h (globalize_reg): Update prototype.
2022 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2024 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2026 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2028 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2031 * config/sh/predicates.md (general_movsrc_operand): Check
2032 mode for memory with indexed address for QI and HImode.
2033 (general_movdst_operand): Likewise.
2035 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2037 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2039 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
2041 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2042 (num_ssa_operands): Likewise.
2043 (op_iter_init_phiuse): Forward-declare.
2044 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2046 2011-06-08 Nick Clifton <nickc@redhat.com>
2048 * doc/invoke.texi (ARM Options): Update description of
2051 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
2053 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2054 unknown Intel family 0x6 CPUs.
2056 2011-06-08 Martin Jambor <mjambor@suse.cz>
2058 * tree-sra.c (mark_rw_status): Removed.
2059 (analyze_access_subtree): New parameter parent instead of
2060 mark_read and mark_write, propagate from that.
2062 2011-06-08 Julian Brown <julian@codesourcery.com>
2064 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2065 for double-precision helper functions in hard-float mode if only
2066 single-precision arithmetic is supported in hardware.
2068 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
2070 PR rtl-optimization/49303
2071 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2072 code_motion_path_driver returned 0 or 1.
2073 (sel_region_finish): Clear h_d_i_d.
2075 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2077 * config/sh/sh.c (prepare_move_operands): Set pic register
2078 appropriately for global and local dynamic tls models even
2079 if flag_pic is unset.
2081 2011-06-07 Jason Merrill <jason@redhat.com>
2083 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2085 2011-06-07 Xinliang David Li <davidxl@google.com>
2086 * passes.c (enable_disable_pass): Handle assembler name.
2087 (is_pass_explicitly_enabled_or_disabled): Ditto.
2089 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2091 PR tree-optimization/48497
2092 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2094 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2096 PR tree-optimization/46728
2097 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2098 to use gimple_val_nonnegative_real_p.
2099 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2100 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2102 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2104 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2106 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2108 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2111 2011-06-07 Richard Guenther <rguenther@suse.de>
2113 * stor-layout.c (initialize_sizetypes): Initialize all
2114 sizetypes based on target definitions.
2115 (set_sizetype): Remove.
2116 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2117 * tree.h (set_sizetype): Remove.
2119 2011-06-07 Nick Clifton <nickc@redhat.com>
2121 * config.gcc: Unify V850 architecture options and add support for
2122 newer V850 architectures.
2123 * config/v850/t-v850e: Delete.
2125 2011-06-07 Richard Guenther <rguenther@suse.de>
2127 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2128 Call set_sizetype from here.
2130 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
2132 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2133 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2135 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2136 Andrew Stubbs <ams@codesourcery.com>
2138 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2140 * doc/md.texi (Canonicalization of Instructions): Document widening
2141 multiply canonicalization.
2143 2011-06-07 Jakub Jelinek <jakub@redhat.com>
2145 PR gcov-profile/49299
2146 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2148 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
2150 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2152 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2153 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2154 vect_recog_pow_pattern): Likewise.
2155 (vect_pattern_recog_1): Remove declaration.
2156 (widened_name_p): Remove declaration. Add new argument to specify
2157 whether to check that both types are either signed or unsigned.
2158 (vect_recog_widen_mult_pattern): Update documentation. Handle
2159 unsigned patterns and multiplication by constants.
2160 (vect_pattern_recog_1): Update vect_recog_func references. Use
2161 statement information from the statement returned from pattern
2162 detection functions.
2163 (vect_pattern_recog): Update vect_recog_func reference.
2164 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2165 multiplication by a constant use the type of the other operand.
2167 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2169 PR rtl-optimization/49145
2170 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2172 2011-06-06 Jakub Jelinek <jakub@redhat.com>
2175 * dwarf2out.c (native_encode_initializer): Decrement count in each
2179 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2183 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2184 if stmt folded into nothing.
2185 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2186 a bb folded into nothing, just update cgraph edges and move to next bb.
2187 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2188 to be NULL. Don't compute count and frequency if new_call is NULL.
2190 2011-06-04 Diego Novillo <dnovillo@google.com>
2192 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2193 (cgraph.o): Likewise.
2194 (cgraphunit.o): Likewise.
2195 * cgraphunit.c: Include lto-streamer.h
2196 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2198 * lto-streamer-in.c (unpack_value_fields): Call
2199 streamer_hooks.unpack_value_fields if set.
2200 (lto_materialize_tree): For unhandled nodes, first try to
2201 call lto_streamer_hooks.alloc_tree, if it exists.
2202 (lto_input_ts_decl_common_tree_pointers): Move reading of
2203 DECL_INITIAL to lto_streamer_read_tree.
2204 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2205 (lto_streamer_read_tree): New.
2206 (lto_reader_init): Rename from lto_init_reader.
2207 Move initialization code to lto/lto.c.
2208 * lto-streamer-out.c (pack_value_fields): Call
2209 streamer_hooks.pack_value_fields if set.
2210 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2211 call streamer_hooks.indexable_with_decls_p before giving up.
2212 (lto_output_ts_decl_common_tree_pointers): Move handling
2213 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2214 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2215 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2216 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2217 (lto_streamer_write_tree): New.
2218 (lto_output): Call lto_streamer_init directly.
2219 (lto_writer_init): Remove.
2220 * lto-streamer.c (streamer_hooks): New.
2221 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2222 instead of lto_preload_common_nodes.
2223 (lto_is_streamable): Move from lto-streamer.h
2224 (lto_streamer_hooks_init): New.
2225 (streamer_hooks): New.
2226 (streamer_hooks_init): New.
2227 * lto-streamer.h (struct output_block): Forward declare.
2228 (struct lto_input_block): Likewise.
2229 (struct data_in): Likewise.
2230 (struct bitpack_d): Likewise.
2231 (struct streamer_hooks): Declare.
2232 (streamer_hooks): Declare.
2233 (lto_streamer_hooks_init): Declare.
2234 (lto_streamer_write_tree): Declare.
2235 (lto_streamer_read_tree): Declare.
2236 (streamer_hooks_init): Declare.
2237 (lto_is_streamable): Move to lto-streamer.c
2239 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2241 * longlong.h (smul_ppmm): The resulting register pair contains the
2242 higher order word first.
2244 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2246 PR tree-optimization/46728
2247 * builtins.c (powi_table): Remove.
2248 (powi_lookup_cost): Remove.
2249 (powi_cost): Remove.
2250 (expand_powi_1): Remove.
2251 (expand_powi): Remove.
2252 (expand_builtin_pow_root): Remove.
2253 (expand_builtin_pow): Remove.
2254 (expand_builtin_powi): Eliminate handling of constant exponent.
2255 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2257 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2259 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2261 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2263 * dce.c (reset_unmarked_insns_debug_uses): New.
2264 (delete_unmarked_insns): Skip debug insns.
2265 (prescan_insns_for_dce): Likewise.
2266 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2267 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2268 active reg can be found.
2269 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2270 (convert_regs_1): Use it.
2272 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2274 * tree-pretty-print.c (dump_function_header): Add flags.
2275 Don't dump decl_uid with nouid.
2276 * tree-pretty-print.h (dump_function_header): Adjust.
2277 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2278 * passes.c (pass_init_dump_file): Pass dump_flags on.
2279 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2281 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2284 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2286 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2288 PR tree-optimization/49243
2289 * calls.c (setjmp_call_p): Also check if fndecl has the
2290 returns_twice attribute.
2292 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2294 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2297 2011-06-06 Richard Henderson <rth@redhat.com>
2298 Georg-Johann Lay <avr@gjlay.de>
2301 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2303 * config/avr/avr.md ("insv"): New insn expander.
2304 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2305 "*insv.not.io", "*insv.reg"): New insns.
2307 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2310 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2311 to nonimmediate_operand from memory_operand for the operand that is to
2312 be forced to memory by the expander. Lose the constraints.
2314 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2316 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2317 EH return when delayed branches are disabled.
2319 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
2321 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2322 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2324 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2325 Simplify MODE_V1DF and MODE_V2SF handling.
2326 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2327 Simplify MODE_SF handling.
2329 2011-06-04 Jan Hubicka <jh@suse.cz>
2331 PR tree-optimization/48893
2332 PR tree-optimization/49091
2333 PR tree-optimization/49179
2334 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2337 2011-06-04 Jan Hubicka <jh@suse.cz>
2340 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2343 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2345 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2347 2011-06-04 Jakub Jelinek <jakub@redhat.com>
2350 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2351 to be strictly smaller than 1 << shiftcount.
2353 2011-06-04 Jan Hubicka <jh@suse.cz>
2355 PR tree-optimize/48929
2356 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2359 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
2362 * calls.c (emit_call_1): Prefer the __builtin declaration of
2365 2011-06-03 Diego Novillo <dnovillo@google.com>
2367 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2368 (lto_input_tree_pointers): Likewise.
2369 * lto-streamer-out.c (pack_value_fields): Likewise.
2370 (lto_output_tree_pointers): Likewise.
2371 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2372 and OPTIMIZATION_NODE.
2374 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2376 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2377 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2378 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2379 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2380 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2381 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2382 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2383 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2384 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2385 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2386 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2387 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2388 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2389 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2390 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2391 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2392 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2393 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2394 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2395 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2396 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2397 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2398 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2399 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2400 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2401 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2402 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2403 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2404 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2405 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2406 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2407 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2408 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2409 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2410 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2411 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2412 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2413 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2414 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2415 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2416 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2417 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2418 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2419 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2420 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2421 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2422 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2423 * system.h (MD_UNWIND_SUPPORT): Poison.
2424 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2425 * doc/tm.texi: Regenerate.
2426 * unwind-dw2.c: Include md-unwind-support.h instead of
2428 * config/ia64/unwind-ia64.c: Likewise.
2429 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2431 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
2433 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2435 2011-06-03 Richard Henderson <rth@redhat.com>
2436 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2438 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2439 (sigill_hdlr): Correct insn, insn size.
2440 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2442 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2444 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2446 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2447 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2448 * config/mips/t-iris: Remove.
2449 * config/mips/t-irix6: New file.
2450 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2452 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2454 * Makefile.in (LIB2ADDEHDEP): Remove.
2455 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2456 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2457 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2458 * config/t-darwin (LIB2ADDEHDEP): Remove.
2459 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2460 * config/t-linux (LIB2ADDEHDEP): Remove.
2462 2011-06-03 Diego Novillo <dnovillo@google.com>
2464 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2465 (lto_register_var_decl_in_symtab): Likewise.
2466 (lto_register_function_decl_in_symtab): Likewise.
2467 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2468 logic to uniquify_nodes.
2470 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2472 * config/alpha/t-osf5: Remove.
2473 * config/alpha/t-osf-pthread: Remove.
2474 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2475 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2477 2011-06-03 Julian Brown <julian@codesourcery.com>
2479 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2480 (strongarm1110): Use strongarm tuning.
2481 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2482 * config/arm/arm.c (arm_strongarm_tune): New.
2483 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2484 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2485 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2486 setting, using previous defaults or 1 for Cortex-A5.
2487 (arm_option_override): Set max_insns_skipped from current tuning.
2489 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
2491 * doc/install.texi (Options specification): Document --with-specs.
2493 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2495 * config/arm/neon.md (orndi3_neon): Actually split it.
2497 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2499 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2500 * var-tracking.c (reverse_op): Limite recurse depth to 5.
2502 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2505 * target.def (delay_sched2, delay_vartrack): New.
2506 * doc/tm.texi.in: Update.
2507 * doc/tm.texi: Rebuild.
2508 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2509 * var-tracking.c (gate_handle_var_tracking): Likewise.
2510 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2511 (bfin_flag_var_tracking): Drop.
2512 (output_file_start): Don't save and override flag_var_tracking.
2513 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2514 (bfin_reorg): Test original variables.
2515 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2516 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2517 (ia64_flag_var_tracking): Drop.
2518 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2519 (ia64_file_start): Don't save and override flag_var_tracking.
2520 (ia64_override_options_after_change): Ditto
2521 flag_schedule_insns_after_reload.
2522 (ia64_reorg): Test original variables.
2523 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2524 (picochip_flag_var_tracking): Drop.
2525 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2526 (picochip_option_override): Don't save and override
2527 flag_schedule_insns_after_reload.
2528 (picochip_asm_file_start): Ditto flag_var_tracking.
2529 (picochip_reorg): Test original variables.
2530 * config/spu/spu.c (spu_flag_var_tracking): Drop.
2531 (TARGET_DELAY_VARTRACK): Define.
2532 (spu_var_tracking): New.
2533 (spu_machine_dependent_reorg): Call it.
2534 (asm_file_start): Don't save and override flag_var_tracking.
2536 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2539 * config/sh/predicates.md (general_movsrc_operand): Return 0
2540 for memory and memory subreg of which address is an invalid
2541 indexed address for QI and HImode.
2542 (general_movdst_operand): Likewise.
2544 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2546 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2547 edges only, when there is a non-local label in the function.
2548 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2550 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2552 * config/i386/constraints.md (Y3): New register constraint.
2553 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
2554 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
2555 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
2556 *sse2_interleave_lowv2df.
2558 2011-06-02 Julian Brown <julian@codesourcery.com>
2560 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
2561 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
2562 (arm_cortex_a5_tune): New.
2564 2011-06-02 Julian Brown <julian@codesourcery.com>
2566 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
2567 * config/arm/arm.c (arm_default_branch_cost): New.
2568 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2569 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
2570 (arm_fa726_tune): Set branch_cost field using
2571 arm_default_branch_cost.
2572 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
2573 current_tune structure.
2574 * dojump.c (tm_p.h): Include file.
2576 2011-06-02 Julian Brown <julian@codesourcery.com>
2578 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
2580 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
2581 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
2582 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
2584 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2585 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
2586 (arm_fa726te_tune): Add prefer_constant_pool setting.
2587 (arm_v6t2_tune, arm_cortex_tune): New.
2588 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
2589 prefer_constant_pool setting.
2591 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2593 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
2595 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
2596 (*movdf_internal) <case 6,7,8>: Ditto.
2598 * config/i386/constraints.md (Y4): New register constraint.
2599 * config/i386/sse.md (vec_set<mode>_0): Merge with
2600 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
2601 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2602 *vec_extractv2di_1_sse.
2603 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2604 and *vec_concatv2di_rex64_sse.
2606 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2609 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2610 of cgraph_local_info for null before attempting to use it.
2612 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2614 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2615 (current_function_dynamic_alloc_count): Delete.
2616 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2617 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2618 (expand_builtin_update_setjmp_buf): Remove dead code.
2619 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2620 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2622 * function.c (instantiate_virtual_regs): Likewise.
2623 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2624 for a block with a single abnormal incoming edge.
2625 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2626 (SETJMP_VIA_SAVE_AREA): Delete.
2627 * config/sparc/sparc-protos.h (load_got_register): Declare.
2628 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2629 (load_got_register): Make global.
2630 (sparc_frame_pointer_required): Add 'static'.
2631 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2632 (sparc_builtin_setjmp_frame_value): New function.
2633 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2634 (save_stack_nonlocal): New expander.
2635 (restore_stack_nonlocal): Likewise.
2636 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2637 (nonlocal_goto_internal): New insn.
2638 (goto_handler_and_restore): Delete.
2639 (builtin_setjmp_setup): Likewise.
2640 (do_builtin_setjmp_setup): Likewise.
2642 (builtin_setjmp_receiver): New expander.
2644 2011-06-01 David Li <davidxl@google.com>
2647 * tree-pretty-print.c (dump_function_header): Format cleanup.
2649 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2652 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2653 needed when original operands are used for msw_skip comparison.
2655 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2658 * var-tracking.c (add_uses, add_stores): Don't call
2659 cselib_subst_to_values on ENTRY_VALUE.
2661 2011-06-01 Diego Novillo <dnovillo@google.com>
2663 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2664 output_record_start with LTO_null instead of output_zero.
2665 (lto_output_ts_binfo_tree_pointers): Likewise.
2666 (lto_output_tree): Likewise.
2667 (output_eh_try_list): Likewise.
2668 (output_eh_region): Likewise.
2669 (output_eh_lp): Likewise.
2670 (output_eh_regions): Likewise.
2671 (output_bb): Likewise.
2672 (output_function): Likewise.
2673 (output_unreferenced_globals): Likewise.
2674 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2675 instead of NUM_TREE_CODES.
2676 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2677 (lto_output_int_in_range): Change << to >> when shifting VAL.
2679 2011-06-01 Diego Novillo <dnovillo@google.com>
2681 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2682 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2684 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2687 * optabs.h (valid_multiword_target_p): Declare.
2688 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2689 doing multi-word operations.
2690 * optabs.c (expand_binop): Likewise.
2691 (expand_doubleword_bswap): Likewise.
2692 (expand_absneg_bit): Likewise.
2693 (expand_unop): Likewise.
2694 (expand_copysign_bit): Likewise.
2695 (multiword_target_p): New function.
2697 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2699 PR rtl-optimization/48830
2700 PR rtl-optimization/48808
2701 PR rtl-optimization/48792
2702 * reload.c (push_reload): Check contains_reg_of_mode.
2703 * reload1.c (strip_paradoxical_subreg): New function.
2704 (gen_reload_chain_without_interm_reg_p): Use it to handle
2705 paradoxical subregs.
2706 (emit_output_reload_insns, gen_reload): Likewise.
2708 2011-06-01 David Li <davidxl@google.com>
2710 * predict.c : Change pass name
2713 * tree-profile.c: Ditto.
2716 2011-06-01 David Li <davidxl@google.com>
2718 * tree-pretty-print.c (dump_function_header): New function.
2719 * final.c (rest_of_clean_state): Use header dumper.
2720 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2721 * passes.c (pass_init_dump_file): Use header dumper.
2723 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2725 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2726 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2727 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2729 (mem_loc_descriptor): Use them.
2731 * var-tracking.c (create_entry_value): New function.
2732 (vt_add_function_parameter): Use it.
2734 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2736 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2737 Include <signal.h>, <ucontext.h>.
2738 (sigill_caught): Define.
2739 (sigill_hdlr): New function.
2740 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2741 insns can be executed.
2742 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2743 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2745 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2747 * config/t-slibgcc-darwin: Move to ...
2748 * config/t-slibgcc-dummy: ... this. Clarify comments.
2749 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2750 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2751 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2752 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2753 Remove i386/t-crtstuff from tmake_file.
2754 (i[34567]86-*-solaris2*): Remove t-svr4,
2755 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2757 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2758 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2759 sparc/t-crtfm from tmake_file.
2760 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2761 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2763 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2764 * config/i386/t-nwld (SHLIB_LINK): Remove.
2765 * config/i386/t-rtems-i386: Rename to ...
2766 * config/i386/t-rtems: ... this.
2767 ($(T)crti.o, $(T)crtn.o): Remove.
2768 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2769 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2770 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2771 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2772 EXTRA_MULTILIB_PARTS): Remove.
2773 * config/sparc/t-sol2-64: Likewise.
2774 * config/sparc/t-sol2: Remove.
2775 * config/sparc/t-crtin: Remove.
2776 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2777 * config/i386/gmon-sol2.c: Remove.
2778 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2779 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2780 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2781 * config/i386/sol2-gc1.asm: Remove.
2782 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2783 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2784 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2785 * config/t-slibgcc-sld: Remove.
2787 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2789 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2790 base_type_for_mode with op_mode instead of mode.
2792 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2794 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2796 * config/arm/arm-tune.md: Regenerate.
2797 * config/arm/arm-tables.opt: Regenerate.
2798 * config/arm/arm.c (FL_DIV): Rename...
2799 (FL_THUMB_DIV): ... to this.
2800 (FL_ARM_DIV): Define.
2801 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2802 (arm_arch_hwdiv): Remove.
2803 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2804 (arm_issue_rate): Add cortexr5.
2805 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2806 __ARM_ARCH_EXT_IDIV__.
2807 (TARGET_IDIV): Define.
2808 (arm_arch_hwdiv): Remove.
2809 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2810 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2811 (divsi3, udivsi3): New patterns.
2812 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2813 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2815 2011-06-01 Martin Jambor <mjambor@suse.cz>
2817 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2818 * ipa-utils.c (searchc): Set scc_no.
2820 2011-06-01 Martin Jambor <mjambor@suse.cz>
2822 * ipa-utils.c (searchc_env): New field allow_overwritable.
2823 (searchc): do not ignore edges to overwritable nodes if indicated
2824 by env->allow_overwritable.
2825 (ipa_reduced_postorder): Set env.allow_overwritable.
2827 2011-06-01 Richard Guenther <rguenther@suse.de>
2829 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2831 * lto-streamer.c (lto_record_common_node): Take node pointer,
2832 do not register types.
2833 (lto_preload_common_nodes): Explicitly skip preloading nodes
2834 that differ between frontends.
2836 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2838 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2841 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2843 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2844 parameter value for dump. Dump cost on outermost call only.
2845 (rs6000_memory_move_cost): Dump cost on outermost call only.
2847 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2849 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2850 DW_OP_GNU_convert ops.
2852 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2853 cselib_preserve_constants.
2854 (cselib_lookup_1): If cselib_preserve_constants,
2855 a new VALUE is being created for REG and there is a VALUE for the
2856 same register in wider mode, add another loc with lowpart SUBREG of
2858 (cselib_subst_to_values): Handle ENTRY_VALUE.
2859 * var-tracking.c (replace_expr_with_values): Return NULL for
2861 * dwarf2out.c (convert_descriptor_to_signed): New function.
2862 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2863 instead of two shifts.
2864 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2865 the right mode if needed.
2866 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2867 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2868 convert_descriptor_to_signed.
2869 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2870 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2873 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2875 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2877 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2878 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2879 (SWI248x): New mode iterator, rename from X87MODEI.
2880 (X87MODEI): Remove mode iterator.
2881 (X87MODEI12): Ditto.
2882 (SSEMODEI24): Ditto.
2884 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2886 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2887 * doc/invoke.texi: Document max-vartrack-expr-depth.
2888 * var-tracking.c (EXPR_DEPTH): New.
2889 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2891 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2893 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2894 * config/i386/sse.md: Add n to negated FMA pattern names.
2896 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2898 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2900 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2902 * gengtype-state.c (read_state_params_structs): Initialize previous.
2904 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2906 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2907 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2909 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2911 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2912 registers. Penalize F*r->o alternative to prevent partial memory
2913 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2914 CONST_DOUBLE immediates when optimizing function for size. Do not move
2915 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2916 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2917 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2918 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2920 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2922 (fp_register_operand splitters): Use fp_register_operand
2923 constraint. Do not use FP_REG_P in insn condition.
2924 (any_fp_register_operand splitters): Use any_fp_register_operand
2925 constraint. Do not use ANY_FP_REG_P in insn condition.
2927 2011-05-31 Jan Hubicka <jh@suse.cz>
2929 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2930 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2931 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2932 (lto_output_edge): Use output_enum and var_len_unsigned.
2933 (lto_output_varpool_node): Likewise.
2934 (input_overwrite_node): Do not take resolution parameter;
2935 extract it from a bitpack.
2936 (input_node): Do not read resolution; use input_enum and
2938 (input_varpool_node): Likewise.
2939 (input_edge): Likewise.
2940 (input_cgraph_1): Likewise.
2942 2011-05-31 Richard Guenther <rguenther@suse.de>
2944 * gimple.c (gimple_register_canonical_type): Do not register
2945 any types via gimple_register_type.
2947 2011-05-31 Jan Hubicka <jh@suse.cz>
2949 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2952 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2954 PR rtl-optimization/49235
2955 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2956 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2958 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2960 PR tree-optimization/49093
2961 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2964 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2967 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2968 for concrete functions containing the code of cloned functions.
2970 2011-05-31 Richard Guenther <rguenther@suse.de>
2972 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2974 (forward_propagate_into_comparison_1): ... this.
2975 (forward_propagate_comparison): Rename to ...
2976 (forward_propagate_into_comparison): ... this. Split out
2977 real forward propagation code to ...
2978 (forward_propagate_comparison): ... this.
2979 (forward_propagate_into_gimple_cond): Remove looping.
2980 (forward_propagate_into_cond): Likewise.
2981 (simplify_not_neg_expr): Return whether we have done something.
2982 (simplify_gimple_switch): Likewise.
2983 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2984 (ssa_forward_propagate_and_combine): ... this. Re-structure
2985 to do a forward forward-propagation walk on BBs and a backward
2986 stmt combining walk on BBs. Consistently re-scan changed statements.
2987 (pass_forwprop): Adjust.
2989 2011-05-30 Ian Lance Taylor <iant@google.com>
2991 * godump.c (go_format_type): Correct length of name added to
2992 obstack for anonymous field.
2994 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2997 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2998 part of the second operand is 0.
3000 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
3002 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3003 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3004 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3005 (*movdf_internal_rex64): Do not penalize F->r alternative.
3006 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3007 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3008 when optimizing function for size. Do not move CONST_DOUBLEs
3009 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3010 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3011 SUBREGs. Do not check for MEM_P operands in the insn condition,
3012 check for ANY_FP_REGNO_P instead.
3013 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3014 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3016 * config/i386/i386.c (ix86_option_override_internal): Do not
3017 set TARGET_INTEGER_DFMODE_MOVES here.
3019 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3022 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3024 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3026 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3027 DW_TAG_rvalue_reference_type even for
3028 -gdwarf-4 -fno-debug-types-section.
3030 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3032 PR tree-optimization/46728
3033 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3034 (build_and_insert_binop): New.
3035 (gimple_expand_builtin_pow): Reorder args for
3036 build_and_insert_call; use build_and_insert_binop; add more
3037 optimizations for fractional exponents.
3039 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3044 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3046 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3048 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3049 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3050 TS_BASE instead of TS_COMMON.
3051 * varasm.c (assemble_name): Remove assert.
3053 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3055 * config.gcc: Keep obselete list sorted.
3057 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3058 Eric Botcazou <ebotcazou@adacore.com>
3060 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3061 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3062 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3063 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3064 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3066 2011-05-30 Richard Guenther <rguenther@suse.de>
3068 * gimple.c (gimple_types_compatible_p_1): Compare record
3069 and union type members properly.
3071 2011-05-30 Richard Guenther <rguenther@suse.de>
3073 PR tree-optimization/49210
3074 * ipa-split.c (split_function): Care for the case where the call
3075 result is not trivially convertible to the result holding variable.
3077 2011-05-30 Richard Guenther <rguenther@suse.de>
3079 PR tree-optimization/49218
3080 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3083 2011-05-30 Richard Guenther <rguenther@suse.de>
3085 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3086 New function split out from ...
3087 (forward_propagate_into_gimple_cond): ... here. Adjust.
3088 (forward_propagate_into_cond): Likewise.
3089 (forward_propagate_comparison): Also propagate into
3090 comparisons on assignment RHS. Change return value to
3091 behave similar to forward_propagate_into_cond.
3092 (tree_ssa_forward_propagate_single_use_vars): Handle
3093 strict-overflow warnings properly for forward_propagate_comparison.
3095 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3097 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3099 * configure: Regenerate.
3101 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
3103 PR tree-optimization/49199
3104 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3105 non-reduction operands are either defined in the loop or by induction.
3107 2011-05-29 Xinliang David Li <davidxl@google.com>
3109 * opts-global.c (handle_common_deferred_options): Handle new options.
3110 * passes.c (register_one_dump_file): Call register_pass_name.
3111 (execute_one_pass): Check explicit enable/disable flag.
3112 (passr_hash): New function.
3114 (register_pass_name): Ditto.
3115 (get_pass_by_name): Ditto.
3118 (enable_pass): Ditto.
3119 (disable_pass): Ditto.
3120 (is_pass_explicitly_enabled_or_disabled): Ditto.
3122 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
3124 * config/i386/i386.md (*movoi_internal_avx): Use
3125 standard_sse_constant_opcode for alternative 0.
3126 (*movti_internal_sse): Ditto.
3127 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3129 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3131 (*movsi_internal): Ditto.
3132 (*movdi_internal): Ditto. Add ssecvt type moves.
3134 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3137 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3139 2011-05-29 Jakub Jelinek <jakub@redhat.com>
3141 PR rtl-optimization/49095
3142 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3143 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3145 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3148 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3149 recurse_p argument. Only follow register copies if it is set,
3150 and prevent mips_find_pic_call_symbol from recursing.
3151 (mips_find_pic_call_symbol): Add a recurse_p argument.
3152 Pass it to mips_pic_call_symbol_from_set.
3153 (mips_annotate_pic_calls): Update accordingly.
3155 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3157 * emit-rtl.c (try_split): Use a loop to search for
3158 NOTE_INSN_CALL_ARG_LOCATIONs.
3160 2011-05-29 Richard Guenther <rguenther@suse.de>
3162 PR tree-optimization/49217
3163 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3165 2011-05-28 Jan Hubicka <jh@suse.cz>
3167 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3169 (string_slot_free): Remove
3170 (create_output_block): Initialize obstack.
3171 (destroy_output_block): Free obstack.
3172 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3173 the string unless it needs to be added into the hash.
3174 (lto_output_string_with_length): Add persistent attribute;
3175 handle NULL strings.
3176 (lto_output_string): Add PERSISTENT parameter.
3177 (output_string_cst, output_identifier): Simplify.
3178 (lto_output_location_bitpack): Update.
3179 (lto_output_builtin_tree): Update.
3180 * lto-streamer.h (struct output_block): Add obstack.
3181 (lto_output_string, lto_output_string_with_length): Remove
3182 declarations; functions are static now.
3184 2011-05-28 Jan Hubicka <jh@suse.cz>
3186 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3187 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3188 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3189 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3190 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3191 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3192 unpack_ts_decl_with_vis_value_fields,
3193 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3194 lto_get_builtin_tree): Use enum and variable length i/o.
3195 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3196 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3198 (bp_pack_enum, bp_unpack_enum): New macros.
3200 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3202 * genrecog.c: Remove redundant forward declarations.
3204 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3206 * config.gcc: Deprecate mips*-*-openbsd*.
3208 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3211 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3214 2011-05-27 Andrew Pinski <pinskia@gmail.com>
3217 * gengtype.c (vec_prefix_type): New function.
3218 (note_def_vec): Use vec_prefix_type and change the length
3219 attribute to be based on the prefix.
3220 * vec.c: Include coretypes.h before vec.h.
3221 (struct vec_prefix): Remove.
3222 (vec_gc_p_reserve): Change the offsetof to sizeof.
3223 (vec_gc_p_reserve_exact): Likewise.
3224 (vec_heap_p_reserve): Likewise.
3225 (vec_heap_p_reserve_exact): Likewise.
3226 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3227 (vec_stack_p_reserve): Change the offsetof to sizeof.
3228 (vec_stack_p_reserve_exact): Likewise.
3229 * vec.h (struct vec_prefix): New struct definition.
3230 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3231 (VEC_T_GTY(T,B)): Likewise.
3232 (DEF_VEC_FUNC_P(T)): Use prefix field.
3233 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3234 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3236 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3238 PR tree-optimization/46728
3239 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3240 (powi_as_mults): Add gimple_set_location.
3241 (build_and_insert_call): New.
3242 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3243 0.5, 0.25, 0.75, 1./3., or 1./6.
3245 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
3247 * doc/contrib.texi: Update copyright years.
3248 (Contributors): Add Zdenek Sojka.
3250 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3252 * c-decl.c (c_push_function_context): Copy the current statement
3254 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3255 (finish_struct): Call building_stmt_list_p instead of checking
3257 * c-parser.c (c_parser_postfix_expression): Likewise.
3258 * c-typeck.c (c_end_compound_stmt): Likewise.
3259 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3260 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3261 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3262 (free_stmt_list): Likewise.
3263 * tree.h (struct tree_statement_list): Include typed_tree instead
3265 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3266 as TS_TYPED instead of TS_COMMON.
3268 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3269 Uros Bizjak <ubizjak@gmail.com>
3271 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3272 (HAVE_AS_IX86_TLSGDPTL): Define.
3273 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3274 (HAVE_AS_IX86_TLSLDMPLT): Define.
3275 * configure: Regenerate.
3276 * config.in: Regenerate.
3277 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3278 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3279 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3280 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3281 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3283 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3285 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3287 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3289 (INSN_COND, INSN_REVERSE_COND): New macros.
3290 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3292 (sched_get_condition_with_rev): Cache the results, and look them up
3294 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3295 are clobbered by the current insn.
3296 * target.def (exposed_pipline): New sched data hook.
3297 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3298 * doc/tm.texi: Regenerate.
3300 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3302 PR tree-optimization/49170
3303 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3306 2011-05-27 Richard Guenther <rguenther@suse.de>
3309 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3312 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3314 * haifa-sched.c (sched_scan_info): Remove.
3315 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3317 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3319 (sched_scan): Remove.
3320 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3321 static. All callers changed.
3322 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3323 static. All callers changed.
3324 (sched_init_luids): Remove all arguments except the first. All
3325 callers changed. Don't use sched_scan.
3326 (haifa_init_h_i_d): Likewise.
3327 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3328 manually rather than using sched_init_luids. Likewise with
3329 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3330 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3331 rather than sched_init_luids with NULL args.
3332 * sel-sched-ir.c (new_insns): Remove variable.
3333 (sched_scan): New static function, previously in haifa-sched.c. Remove
3334 all arguments but the first two; all callers changed.
3335 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3336 rather than sched_init_luids.
3337 (sel_init_bbs): Remove second argument. All callers changed.
3338 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3339 with NULL arguments.
3340 (create_insn_rtx_from_pattern): Likewise.
3341 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3342 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3343 (sched_init_insn_luid, sched_extend_luids): Declare.
3344 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3347 2011-05-27 Richard Guenther <rguenther@suse.de>
3350 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3351 A CMP B ? (T) true : (T) false for non-integral types T again.
3353 2011-05-27 Jan Hubicka <jh@suse.cz>
3355 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3356 so 0 means NULL string.
3357 (lto_output_string_with_length): ... here.
3358 (lto_output_string, output_string_cst, output_identifier): Update
3359 handling of NULL strings.
3360 (lto_output_location_bitpack): New function.
3361 (lto_output_location): Use it.
3362 (lto_output_tree_ref): Use output_record_start.
3363 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3365 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3367 (input_string_internal): ... here;
3368 (input_string_cst, input_identifier, lto_input_string): Update handling
3370 (lto_input_location_bitpack): New function
3371 (lto_input_location): Use it.
3372 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3374 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3375 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3376 (bp_pack_value): Sanity check the value range.
3377 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3379 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3382 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
3384 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3385 call_arg_location instructions down the floor.
3387 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3389 PR rtl-optimization/49154
3390 * ira.c (setup_pressure_classes): Process class without sublcasses
3391 as a candidate for pressure classes.
3393 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3395 PR rtl-optimization/48575
3396 * genrecog.c (position_type): New enum.
3397 (position): New structure.
3398 (decision): Use position structure instead of a string.
3399 (root_pos, peep2_insn_pos_list): New variables.
3400 (next_position, compare_positions): New functions.
3401 (new_decision): Use position structures instead of strings.
3402 (maybe_both_true): Likewise.
3403 (change_state): Likewise.
3404 (write_tree): Likewise.
3405 (make_insn_sequence): Likewise.
3407 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3409 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3410 TS_BASE instead of TS_COMMON.
3411 (find_decls_types_r): Check for TS_TYPED structure before looking at
3413 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3415 (BLOCK_CHAIN): Use new chain field.
3417 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
3419 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3420 moves expensive on Power7 also.
3422 2011-05-26 Richard Guenther <rguenther@suse.de>
3424 * fold-const.c (fold_unary_loc): Remove bogus code.
3426 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3428 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3430 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3431 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3432 TS_BASE instead of TS_COMMON.
3433 * varasm.c (assemble_name): Remove assert.
3435 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3437 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3439 * libgcc-std.ver: Delete file.
3441 2011-05-26 Richard Guenther <rguenther@suse.de>
3443 PR tree-optimization/48702
3444 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3445 only when we know the base address is within bounds.
3446 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3447 assume the base address of TARGET_MEM_REFs is in bounds.
3449 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3452 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3453 declaration in TARGET_SOLARIS.
3455 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
3457 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3458 The instruction is then expanded explicitly.
3459 (supported_compare): Callable instruction.
3460 (compare): Likewise.
3462 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3465 * gimplify.c (shortcut_cond_r): Don't special case
3466 COND_EXPRs if they have void type on one of their arms.
3468 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3470 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3471 to reduce duplication, and to achieve a slightly more logical order
3474 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3476 PR tree-optimization/49161
3477 * tree-vrp.c (struct case_info): New type.
3478 (compare_case_labels): Sort case_info structs instead of
3479 trees, and not primarily by CASE_LABEL uids but by
3480 label_for_block indexes.
3481 (find_switch_asserts): Put case labels into struct case_info
3482 array instead of TREE_VEC, adjust sorting, compare label_for_block
3483 values instead of CASE_LABELs.
3485 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3487 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3488 ("orndi3_neon"): Likewise.
3489 ("bic<mode>3_neon"): Likewise.
3491 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
3493 PR tree-optimization/49038
3494 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3495 Ensure at least one epilogue iteration if required by data
3497 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3498 to mark loops that require peeling for gaps.
3499 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3500 (vect_get_known_peeling_cost): Take peeling for gaps into
3502 (vect_transform_loop): Generate epilogue if required by data
3504 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3505 loop as requiring an epilogue if there are gaps in the end of
3508 2011-05-25 Ian Lance Taylor <iant@google.com>
3510 * godump.c (go_format_type): Output the first field with a usable
3513 2011-05-25 Ian Lance Taylor <iant@google.com>
3515 * godump.c (go_format_type): Check for invalid type names, pointer
3516 target types, and struct field types.
3518 2011-05-25 Jason Merrill <jason@redhat.com>
3520 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3522 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
3524 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3526 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3528 * config/i386/i386.md (*movqi_extv_1)): Put back
3529 "register_operand" check in "type" calculation.
3530 (*movqi_extzv_2): Likewise.
3532 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3534 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
3536 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3539 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3540 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3541 __divxc3, __divtc3): Wrap definitions in #ifndef.
3543 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3546 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3547 "register_operand" check and replace q_regs_operand with
3548 QIreg_operand in "type" calculation.
3549 (*movqi_extv_1): Likewise.
3550 (*movqi_extzv_2_rex64): Likewise.
3551 (*movqi_extzv_2): Likewise.
3553 * config/i386/predicates.md (QIreg_operand): New.
3555 2011-05-25 Richard Guenther <rguenther@suse.de>
3557 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
3558 type-based offset disambiguation, streamline MEM_REF and
3559 TARGET_MEM_REF handling.
3561 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3563 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
3564 (bdesc_special_args): Add pause intrinsic.
3566 * config/i386/i386.md (UNSPEC_PAUSE): New.
3569 * config/i386/ia32intrin.h (__pause): Likewise.
3571 * doc/extend.texi (X86 Built-in Functions): Add documentation for
3574 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3576 PR tree-optimization/46728
3577 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
3578 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
3580 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
3582 * tree.h (struct tree_exp): Inherit from struct tree_typed.
3583 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
3584 instead of TS_COMMON.
3586 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3588 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
3589 LIBGCC2_GNU_PREFIX is defined.
3591 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
3592 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
3593 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
3594 __clz_tab): Define using __N.
3595 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
3596 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
3597 * target.def (libfunc_gnu_prefix): New hook.
3598 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
3599 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
3600 * doc/tm.texi: Regenerate.
3601 * system.h (LIBGCC2_GNU_PREFIX): Poison.
3602 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3604 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3605 (init_optabs): Likewise for the bswap libfuncs.
3606 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3608 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3609 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3610 * libgcc-std.ver: Remove.
3611 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3612 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3614 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3615 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3616 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3617 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3618 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3619 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3620 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3621 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3622 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3623 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3625 2011-05-25 Jan Hubicka <jh@suse.cz>
3627 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3628 (lto_output_tree): Use output_record_start.
3629 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3630 (lto_get_pickled_tree): Use input_record_start.
3631 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3632 (lto_value_range_error): New function.
3633 * lto-streamer.h (lto_value_range_error): Declare.
3634 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3635 (lto_output_enum, lto_input_enum): New macros.
3637 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3639 * common.opt (flag_stack_usage_info): New variable.
3640 (-Wstack-usage): New option.
3641 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3642 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3643 <OPT_fstack_usage>: Likewise.
3644 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3645 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3646 of flag_stack_usage.
3647 (emit_library_call_value_1): Likewise.
3648 * explow.c (allocate_dynamic_stack_space): Likewise.
3649 * function.c (instantiate_virtual_regs ): Likewise.
3650 (prepare_function_start): Likewise.
3651 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3652 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3653 * config/arm/arm.c (arm_expand_prologue): Likewise.
3654 (thumb1_expand_prologue): Likewise.
3655 * config/avr/avr.c (expand_prologue): Likewise.
3656 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3657 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3658 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3659 * config/mips/mips.c (mips_expand_prologue): Likewise.
3660 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3661 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3662 * config/s390/s390.c (s390_emit_prologue): Likewise.
3663 * config/sh/sh.c (sh_expand_prologue): Likewise.
3664 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3665 * config/spu/spu.c (spu_expand_prologue): Likewise.
3667 2011-05-25 Richard Guenther <rguenther@suse.de>
3669 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3670 (gimple_canonical_types_compatible_p): Likewise.
3672 2011-05-25 Jan Hubicka <jh@suse.cz>
3675 * ipa.c (function_and_variable_visibility): Only add to same
3676 comdat group list if DECL_ONE_ONLY.
3678 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3680 PR rtl-optimization/49014
3681 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3683 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3686 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3688 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3690 PR rtl-optimization/48757
3691 * ira-build.c (loop_with_eh_edge_p): Rename to
3692 loop_with_complex_edge_p, check edges on complexity, make function
3694 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3697 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3699 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3700 force flag_ira_share_save_slots to 0.
3702 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3704 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3705 (vt_initialize): Set PROLOGUE_BB unconditionally.
3706 Add block comment about CFA_BASE_RTX machinery.
3707 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3708 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3710 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3713 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3714 parsing of syntax error in ObjC instance variable lists. In
3715 particular, avoid an infinite loop if there is a stray ']'.
3716 Updated error message.
3718 2011-05-24 Ian Lance Taylor <iant@google.com>
3720 * godump.c (go_define): Don't accept a string immediately after
3723 2011-05-24 Ian Lance Taylor <iant@google.com>
3725 * godump.c (struct godump_container): Add invalid_hash field.
3726 (go_format_type): Return false if type is found in invalid_hash.
3727 (go_output_typedef): Add invalid type to invalid_hash.
3728 (go_finish): Create and delete invalid_hash.
3730 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3732 PR tree-optimization/46728
3733 * tree-ssa-math-opts.c (powi_table): New.
3734 (powi_lookup_cost): New.
3736 (powi_as_mults_1): New.
3737 (powi_as_mults): New.
3738 (gimple_expand_builtin_powi): New.
3739 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3740 (gate_cse_sincos): Remove sincos/cexp restriction.
3742 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3745 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3747 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3748 * mips-tdump.c: Likewise.
3750 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3753 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3754 add -mno-XXX. Handle FMA.
3756 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3758 PR rtl-optimization/48633
3759 * ira-build.c (loop_with_eh_edge_p): New function.
3760 (mark_loops_for_removal): Use it.
3762 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3764 PR rtl-optimization/48971
3765 * ira.c (setup_pressure_classes): Don't check register move cost
3766 for classes with one registers. Don't add pressure class if there
3767 is a pressure class with the same available hard registers.
3768 Check contains_reg_of_mode. Fix a typo in collecting
3769 temp_hard_regset. Ignore hard registers not belonging to a class.
3771 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3774 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3776 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3777 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3779 PR gcov-profile/48845
3780 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3782 2011-05-24 Richard Guenther <rguenther@suse.de>
3784 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3785 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3786 (gimple_types_compatible_p_1): Adjust.
3787 (iterative_hash_canonical_type): Do not bother about complete vs.
3789 (gimple_canonical_types_compatible_p): Likewise.
3791 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3793 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3795 2011-05-24 Richard Guenther <rguenther@suse.de>
3798 * gimple.c (gimple_register_canonical_type): Revert
3800 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3801 does not for a tree for the case where it matters. Cache
3802 pointer-type alias-sets.
3804 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3806 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3807 (OBJS): Remove options.o, opts-common.o and prefix.o.
3808 (OBJS-libcommon-target): New.
3809 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3810 (BACKEND): Include libcommon-target.a.
3811 (MOSTLYCLEANFILES): Include libcommon-target.a.
3812 (libcommon-target.a): New.
3813 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3816 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3818 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3819 parts of output shared with the driver.
3820 * optc-gen.awk: Don't generate parts of output not shared with the
3822 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3823 * doc/options.texi (SourcerInclude): Mention options-save.c.
3824 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3825 (OBJS): Add options-save.o.
3826 (options-save.c, options-save.o): New.
3827 (options.o): Update dependencies.
3828 (gcc-options.o): Remove.
3829 (mostlyclean): Remove options-save.c.
3831 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3834 * dbxout.c: Include cgraph.h.
3835 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3836 and without value expr, return NULL if no varpool node exists for
3837 it or if it is not needed.
3838 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3841 * c-decl.c (start_decl): Convert expr to void_type_node.
3843 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3845 PR rtl-optimization/48826
3846 * emit-rtl.c (try_split): When splitting a call that is followed
3847 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3849 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3851 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3852 parameters passed in memory prefer using DECL_INCOMING_RTL over
3853 the pseudos it will be copied into.
3855 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3858 * config/i386/i386.c (ix86_option_override_internal): Save the
3859 initial options after checking vzeroupper.
3861 2011-05-23 David Li <davidxl@google.com>
3863 PR tree-optimization/48988
3864 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3865 Initialize has_valid_pred for each pred chain.
3867 2011-05-23 Richard Guenther <rguenther@suse.de>
3869 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3870 (iterative_hash_gimple_type): Always hash type names.
3872 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3874 * c-typeck.c (build_function_call_vec): Tweak call to
3875 check_function_arguments.
3877 2011-05-23 Richard Guenther <rguenther@suse.de>
3879 PR tree-optimization/49115
3880 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3881 is not necessarily carried out, do not claim it kills the ref.
3882 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3884 2011-05-23 Richard Guenther <rguenther@suse.de>
3887 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3888 what pointer types we accept for folding.
3890 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3892 * gthr-gnat.c: Remove.
3893 * gthr-gnat.h: Remove.
3894 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3895 * config/t-freebsd (LIB2ADDEH): Likewise.
3896 * config/t-linux (LIB2ADDEH): Likewise.
3897 * config/t-sol2 (LIB2ADDEH): Likewise.
3898 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3899 * configure.ac (target_thread_file): Remove gnat handling.
3900 * configure: Regenerate.
3901 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3903 2011-05-23 Tristan Gingold <gingold@adacore.com>
3904 Eric Botcazou <ebotcazou@adacore.com>
3906 * gcov.c (create_file_names): If no object directory is specified,
3907 keep the directory of the file.
3909 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3911 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3912 * configure: Regenerate.
3914 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3917 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3918 failed and the comparison has a single bit signed type, use
3919 constm1_rtx instead of const1_rtx for true value.
3920 (do_store_flag): If ops->type is single bit signed type, disable
3921 signel bit test optimization and pass -1 instead of 1 as last
3922 parameter to emit_store_flag_force.
3924 2011-05-23 Tom de Vries <tom@codesourcery.com>
3927 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3929 (infer_loop_bounds_from_undefined): Use new function.
3931 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3933 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3934 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3935 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3937 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3939 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3941 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3942 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3945 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3947 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3949 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3951 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3952 UNSPEC_MOVE_PIC pattern.
3954 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3956 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3957 (sparc-*-rtems*): Likewise.
3958 (sparc64-*-elf*): Likewise.
3959 (sparc64-*-rtems*): Likewise.
3960 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3961 * config/sparc/t-crtin: New file.
3962 * config/sparc/t-sol2 (crti.o): Delete rule.
3964 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3965 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3966 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3967 (ENDFILE_SPEC): Add crtn.o.
3969 2011-05-22 Tom de Vries <tom@codesourcery.com>
3972 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3973 CODE_CONTAINS_STRUCT (TS_COMMON).
3975 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3978 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3979 only after deciding which mode to use.
3981 2011-05-22 Tom de Vries <tom@codesourcery.com>
3984 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3985 for call to get_shiftadd_cost.
3987 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3990 * config/i386/cpuid.h (bit_MMXEXT): New define.
3992 2011-05-22 Nick Clifton <nickc@redhat.com>
3994 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3995 initialisation of non-existant args[2] element. Use args[] array
3996 not arg[] array to pass arguments to build_function_type_list.
3998 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
4000 PR tree-optimization/49087
4001 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4003 2011-05-21 Jason Merrill <jason@redhat.com>
4006 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4007 static storage duration.
4009 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4011 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4014 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4016 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4017 false if there are call-saved registers here...
4018 (sparc_can_use_return_insn_p): ...but here instead.
4019 (save_or_restore_regs): Fix thinko.
4020 (sparc_expand_prologue): Use current_function_is_leaf.
4021 (sparc_frame_pointer_required): Likewise.
4023 2011-05-21 Nick Clifton <nickc@redhat.com>
4026 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4028 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4030 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4031 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4033 2011-05-21 Joseph Myers <joseph@codesourcery.com>
4035 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4036 * optc-gen.awk: Move common code to opt-read.awk.
4037 * opth-gen.awk: Likewise.
4038 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4040 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
4042 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4044 2011-05-20 Tom de Vries <tom@codesourcery.com>
4047 * tree-ssa-loop-ivopts.c: Include expmed.h.
4048 (get_shiftadd_cost): New function.
4049 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
4051 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4054 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4055 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4057 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4059 * Makefile.in: Update comment referring to $(OBJS-common).
4061 2011-05-20 Ian Lance Taylor <iant@google.com>
4063 * godump.c (go_output_typedef): Put enum constants in the macro
4064 hash table to avoid duplicate Go const definitions.
4066 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4068 * Makefile.in (LIBDEPS): Add libcommon.a.
4070 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4071 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4072 pretty-print.o and version.o.
4073 (OBJS-libcommon): New.
4074 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4075 (BACKEND): Add libcommon.a.
4076 (MOSTLYCLEANFILES): Likewise.
4078 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4079 (cpp$(exeext)): Likewise.
4080 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4081 pretty-print.o and input.o.
4082 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4083 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4085 (mips-tfile): Don't explicitly use version.o.
4086 (mips-tdump): Likewise.
4087 (gcov.o): Depend on $(DIAGNOSTIC_H).
4088 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4089 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4090 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4091 * gcov-dump.c: Include intl.h and diagnostic.h.
4092 (main): Initialize diagnostics.
4093 * gcov.c: Include diagnostic.h.
4095 (main): Initialize diagnostics.
4096 * lto-wrapper.c: Include diagnostic.h.
4097 (main): Initialize diagnostics.
4099 2011-05-20 Michael Matz <matz@suse.de>
4101 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4103 2011-05-20 Michael Matz <matz@suse.de>
4104 Richard Guenther <rguenther@suse.de>
4106 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4107 use lto_streamer_cache_append directly instead of returning a VEC.
4108 (preload_common_node): Remove.
4109 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4111 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4113 2011-05-20 Richard Guenther <rguenther@suse.de>
4115 PR tree-optimization/49079
4116 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4117 MEM_REFs correctly for the trailing array access detection.
4118 Special case constants the same way as decls for overall size
4121 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
4123 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4126 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4128 PR tree-optimization/49073
4129 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4130 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4131 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4133 2011-05-20 Richard Guenther <rguenther@suse.de>
4136 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4137 of pointer types the same way the middle-end does.
4139 2011-05-20 Richard Guenther <rguenther@suse.de>
4141 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4142 or pointer-to chains. Delay all fixup to uniquify_nodes.
4144 2011-05-19 Quentin Neill <quentin.neill@amd.com>
4146 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4147 (fma4_fmaddsub): Likewise
4149 2011-05-19 Jan Hubicka <jh@suse.cz>
4151 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4152 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4153 (type_pair_cache): New static var.
4154 (lookup_type_pair): Use fixed sized custom hash; make inline.
4155 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4156 calls of lookup_type_pair.
4157 (print_gimple_types_stats): Remove cache stats.
4158 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4161 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
4163 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4164 when TARGET_RDRND is active.
4165 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4166 Generate dummy SImode target register when target is NULL.
4168 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4170 * config/arm/arm-fpus.def: New.
4171 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4173 * config/arm/arm-tables.opt: Regenerate.
4174 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4175 (arm_option_override): Don't decode FPU name to string here.
4176 * config/arm/arm.opt (mfpu=): Use Enum.
4177 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4178 Update dependencies.
4180 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4182 * collect2.c: Include diagnostic.h.
4183 (fatal_perror, fatal, error, fancy_abort): Remove.
4184 (main): Set progname. Call xmalloc_set_program_name and
4185 diagnostic_initialize.
4186 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4187 scan_libraries, resolve_lib_name): Call fatal_error instead of
4188 fatal and fatal_perror.
4189 * collect2.h (error, fatal, fatal_perror): Don't declare.
4190 * tlink.c: Include diagnostic-core.h.
4191 (recompile_files): Call fatal_error instead of fatal_perror.
4192 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4193 pretty-print.o and input.o.
4194 (collect2.o, tlink.o): Update dependencies.
4196 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4198 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4200 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4203 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4204 COMDAT group syntax, both SPARC and x86 variants.
4205 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4206 * configure: Regenerate.
4207 * config/sol2.h (TARGET_SOLARIS): Define.
4208 (PUSHSECTION_FORMAT): Remove.
4209 (SECTION_NAME_FORMAT): Define.
4210 * config/sol2.c: Include hashtab.h.
4211 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4212 expansion, using SECTION_NAME_FORMAT.
4213 (solaris_comdat_htab): New variable.
4214 (struct comdat_entry): Define.
4215 (comdat_hash): New function.
4216 (comdat_eq): New function.
4217 (solaris_elf_asm_comdat_section): New function.
4218 (solaris_define_comdat_signature): New function.
4219 (solaris_code_end): New function.
4220 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4221 (solaris_code_end): Declare.
4222 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4223 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4225 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4226 Remove ATTRIBUTE_UNUSED.
4227 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4228 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4229 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4230 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4231 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4232 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4233 (PUSHSECTION_FORMAT): Remove.
4234 (SECTION_NAME_FORMAT): Redefine.
4236 2011-05-19 Kai Tietz <ktietz@redhat.com>
4238 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4239 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4240 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4242 2011-05-19 Anatoly Sokolov <aesok@post.ru>
4243 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4245 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4247 2011-05-19 Richard Guenther <rguenther@suse.de>
4250 * tree-object-size.c (addr_object_size): If the pointed-to
4251 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4253 2011-05-19 Richard Guenther <rguenther@suse.de>
4255 * gimple.c (gimple_types_compatible_p_1): Compare names of
4256 the types themselves.
4257 (iterative_hash_gimple_type): And hash them that way.
4258 (gimple_register_type_1): If we register a main variant properly
4259 initialize the leader to ourselves.
4261 2011-05-19 Tom de Vries <tom@codesourcery.com>
4264 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4265 get_loop_invariant_expr_id.
4266 (get_loop_invariant_expr_id): Use get_expr_id.
4267 (parm_decl_cost): New function.
4268 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4269 Improve bound cost estimation. Use different inv_expr_id for elim and
4272 2011-05-19 Tom de Vries <tom@codesourcery.com>
4275 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4276 cost_base.cost == 0.
4278 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4281 * config/i386/sse.md
4282 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4285 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4287 PR tree-optimization/49039
4288 * tree-vrp.c (extract_range_from_binary_expr): For
4289 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4290 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4292 2011-05-18 Tom de Vries <tom@codesourcery.com>
4295 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4297 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
4299 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4300 (*tls_global_dynamic_64): Ditto.
4301 (*tls_local_dynamic_base_32_gnu): Ditto.
4302 (*tls_local_dynamic_base_64): Ditto.
4303 (tls_initial_exec_64_sun): Ditto.
4305 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4307 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4308 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4310 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4311 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4312 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4313 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4314 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4315 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4316 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4318 2011-05-18 Joseph Myers <joseph@codesourcery.com>
4320 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4321 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4322 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4323 target_thread_pointer, arm_structure_size_boundary, struct
4324 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4325 struct abi_name, arm_all_abis): Remove.
4326 (arm_option_override) Don't process most enumerated option values here.
4327 Don't process target_fpe_name here. Work with integer not string for
4328 structure size boundary; use separate diagnostics for each case.
4329 * config/arm/arm.h (enum float_abi_type, enum
4330 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4332 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4333 arm_structure_size_boundary): Remove.
4334 * config/arm/arm.opt (mabi=): Use Enum and Init.
4335 (arm_abi_type): New Enum and EnumValue entries.
4336 (mfloat-abi=): Use Enum and Init.
4337 (float_abi_type): New Enum and EnumValue entries.
4338 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4339 (mfp16-format=): Use Enum and Init.
4340 (arm_fp16_format_type): New Enum and EnumValue entries.
4341 (mstructure-size-boundary=): Use UInteger and Init.
4342 (mtp=): Use Enum and Init.
4343 (arm_tp_type): New Enum and EnumValue entries.
4345 2011-05-18 Richard Guenther <rguenther@suse.de>
4347 PR tree-optimization/49018
4348 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4349 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4350 gimple_has_side_effects.
4352 2011-05-18 Richard Guenther <rguenther@suse.de>
4354 * gimple.c (gimple_register_type_1): New function, split out from ...
4355 (gimple_register_type): ... here. Avoid infinite recursion.
4357 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4359 PR tree-optimization/41881
4360 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4361 reduction_chains along with a macro for its access.
4362 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4363 (destroy_loop_vec_info): Free reduction chains.
4364 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4365 (vect_is_slp_reduction): New function.
4366 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4367 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4368 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4369 definition types for reduction chains.
4370 (vect_supported_load_permutation_p): Don't allow permutations for
4372 (vect_analyze_slp_instance): Support reduction chains.
4373 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4374 (vect_get_constant_vectors): Handle reduction chains.
4375 (vect_schedule_slp_instance): Mark the first statement of the
4376 reduction chain as reduction.
4378 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4380 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4381 names for group elements access.
4382 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4383 reduction chains as well. Remove data reference and interleaving
4384 related words from the fields names.
4385 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4387 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4388 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4389 vect_update_interleaving_chain, vect_same_range_drs,
4390 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4391 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4392 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4393 vect_analyze_group_access, vect_analyze_data_ref_access,
4394 vect_create_data_ref_ptr, vect_transform_strided_load,
4395 vect_record_strided_load_vectors): Likewise.
4396 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4397 vect_model_load_cost, vectorizable_store, vectorizable_load,
4398 vect_remove_stores, new_stmt_vec_info): Likewise.
4399 * tree-vect-slp.c (vect_build_slp_tree,
4400 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4402 2011-05-18 Richard Guenther <rguenther@suse.de>
4405 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4406 operand verification.
4407 (verify_gimple_assign_binary): Likewise.
4408 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4409 to non-1-precision BOOLEAN_TYPEs.
4411 2011-05-18 Tom de Vries <tom@codesourcery.com>
4414 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4416 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4418 PR tree-optimization/49000
4419 * tree-ssa.c (execute_update_addresses_taken): Call
4420 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4421 be rewritten and decl has been marked for renaming, reset
4424 2011-05-17 Joseph Myers <joseph@codesourcery.com>
4426 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4427 enum_opts_set when testing if attributes have set -mfpmath=.
4429 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4431 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4433 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4435 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4437 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4438 id.transform_lang_insert_block with NULL.
4440 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4442 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4443 (output_fp_compare): Change args 3 and 4 to bool.
4444 (ix86_expand_call): Change arg 6 to bool.
4445 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4446 (ix86_attr_length_vex_default): Change arg 3 to bool.
4447 * config/i386/i386.md: Update all uses.
4448 * config/i386/i386.c: Ditto.
4449 (ix86_flags_dependent): Change return type to bool.
4451 2011-05-17 Richard Guenther <rguenther@suse.de>
4453 * gimple.c (type_hash_pair_compare): Fix comparison.
4455 2011-05-17 Richard Guenther <rguenther@suse.de>
4457 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4458 case some more, fix final hash value of the non-singleton case.
4460 2011-05-17 Richard Guenther <rguenther@suse.de>
4464 2011-05-16 Richard Guenther <rguenther@suse.de>
4466 * gimple.c (gimple_types_compatible_p_1): Use names of the
4467 type itself, not its main variant.
4468 (iterative_hash_gimple_type): Likewise.
4470 2011-05-17 Richard Guenther <rguenther@suse.de>
4472 * gimple.c (gimple_register_canonical_type): Use the main-variant
4473 leader for computing the canonical type.
4475 2011-05-17 Nick Clifton <nickc@redhat.com>
4477 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4480 * config/rx/rx.md: Add peephole to remove redundant extensions
4482 (bitset_in_memory): Use rx_restricted_mem_operand.
4483 (bitinvert_in_memory): Likewise.
4484 (bitclr_in_memory): Likewise.
4486 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
4487 Nick Clifton <nickc@redhat.com>
4489 * config/rx/rx.md: Add peepholes to match a register move followed
4490 by a comparison of the moved register. Replace these with an
4491 addition of zero that does both actions in one instruction.
4493 2011-05-17 Jakub Jelinek <jakub@redhat.com>
4496 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4497 predicate to allow CONST_INT.
4498 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4500 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4502 * opts-common.c (opt_enum_arg_to_value): New.
4503 * opts.h (opt_enum_arg_to_value): Declare.
4504 * config/i386/i386.opt (fpmath): Remove.
4505 (mfpmath=): Use Enum, Init and Save.
4506 (fpmath_unit): New Enum and EnumValue entries.
4507 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4508 name for function fpmath state.
4509 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4510 * config/i386/i386.c: Include diagnostic.h.
4511 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
4512 (ix86_target_string): Take enum fpmath_unit value instead of string.
4513 (ix86_debug_options): Update call to ix86_target_string.
4514 (ix86_option_override_internal): Don't process fpmath strings here.
4515 (x86_function_specific_save, ix86_function_specific_restore):
4516 Don't handle fpmath state specially.
4517 (ix86_function_specific_print): Pass fpmath state to
4518 ix86_target_string instead of printing in this function.
4519 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4520 Handle enum attributes.
4521 (IX86_ATTR_ENUM, ix86_opt_enum): New.
4522 (ix86_valid_target_attribute_tree): Update option_strings
4523 handling. Handle fpmath as enum option.
4524 (ix86_can_inline_p): Update field names for function fpmath state.
4525 (ix86_expand_builtin): Update call to ix86_target_string.
4526 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4527 (ix86_fpmath): Remove.
4528 * config/i386/t-i386 (i386.o): Update dependencies.
4530 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4532 PR preprocessor/48677
4533 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4534 from decoded_options[0], not from itself.
4536 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
4538 * config/i386/constraints.md (z): New constraint.
4539 * config/i386/i386.c (c): New mode attribute.
4540 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4541 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4542 constraint for operand 0.
4543 (*call_vzeroupper): Ditto.
4544 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
4545 (*call_rex64_ms_sysv_vzeroupper): Ditto.
4546 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4547 Use "lzm" constraint for operand 0.
4548 (*call_pop_vzeroupper): Ditto.
4549 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
4550 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
4551 constraint for operand 0.
4552 (*sibcall_vzeroupper): Ditto.
4553 (*sibcall_rex64_ms_sysv): Ditto.
4554 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
4555 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
4556 *sibcall_pop_1. Use "Uz" constraint for operand 0.
4557 (*sibcall_pop_vzeroupper): Ditto.
4558 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
4559 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
4560 mode iterator. Use "<c>zm" constraint for operand 1.
4561 (*call_value_vzeroupper): Ditto.
4562 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
4564 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
4565 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
4566 *call_value_pop_1. Use "lzm" constraint for operand 1.
4567 (*call_value_pop_vzeroupper): Ditto.
4568 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
4569 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
4570 mode iterator. Use "Uz" constraint for operand 1.
4571 (*sibcall_value_vzeroupper): Ditto.
4572 (*sibcall_value_rex64_ms_sysv): Ditto.
4573 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
4574 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
4575 constraint for operand 1.
4576 (*sibcall_value_pop_vzeroupper): Ditto.
4577 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
4578 and "z" constraint for operand 2.
4579 (*tls_global_dynamic_32_gnu): Ditto.
4580 (*tls_local_dynamic_base_32_gnu): Ditto.
4581 (*tls_local_dynamic_base_64): Ditto.
4582 (*tls_local_dynamic_32_once): Ditto.
4583 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
4585 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
4587 2011-05-16 Richard Guenther <rguenther@suse.de>
4589 * gimple.c (gimple_types_compatible_p_1): Use names of the
4590 type itself, not its main variant.
4591 (iterative_hash_gimple_type): Likewise.
4593 2011-05-16 Richard Guenther <rguenther@suse.de>
4595 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
4596 always visit pointer target and function result and argument types.
4598 2011-05-16 Jason Merrill <jason@redhat.com>
4601 * tree-inline.c (copy_statement_list): Put back recursion.
4603 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4607 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4608 * config/avr/avr.md ("*ior<mode>qi.byte0",
4609 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4611 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4614 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4615 register is needed for a function argument.
4617 2011-05-16 Richard Guenther <rguenther@suse.de>
4619 * gimple.c (struct type_hash_pair): New type.
4620 (type_hash_pair_compare): New function.
4621 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4623 2011-05-16 Revital Eres <revital.eres@linaro.org>
4625 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4627 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4629 * config/i386/i386.md (floating point move splitters): Fix
4630 usage of standard_80387_constant_p.
4631 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4633 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4635 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4637 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4639 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4640 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4641 (tree_ssa_lim_finalize): Likewise.
4643 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
4645 * config/i386/constraint.md (Yd, Yx): New register constraints.
4646 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4647 Yd conditional register constraint.
4648 (*movtf_internal): Use standard_sse_constant_opcode.
4649 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4650 Yx conditional register constraint.
4651 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4652 Yd conditional register constraint. Use standard_sse_constant_p to
4653 check for valid SSE constants and call standard_sse_constant_opcode to
4655 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4656 constants and call standard_sse_constant_opcode to output SSE insn.
4657 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4658 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4659 optimize_size is set.
4660 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4662 2011-05-14 Tobias Burnus <burnus@net-b.de>
4664 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4666 2011-05-13 Martin Jambor <mjambor@suse.cz>
4668 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4669 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4670 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4671 (evaluate_conditions_for_ipcp_clone): Removed.
4672 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4673 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4674 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4676 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4678 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4679 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4680 lieu of MAY_HAVE_DEBUG_STMTS.
4681 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4682 debug statements if !MAY_HAVE_DEBUG_STMTS.
4684 2011-05-13 Martin Thuresson <martint@google.com>
4686 PR gcov-profile/47793
4687 * libgcov.c (gcov_exit): Support relative profile paths.
4688 * doc/invoke.texi (-fprofile-dir): Update for above change.
4690 2011-05-13 Richard Guenther <rguenther@suse.de>
4692 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4693 type-pair caching, do not compare hashes.
4695 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4698 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4699 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4701 2011-05-13 Kai Tietz <ktietz@redhat.com>
4703 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4704 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4705 compatible type for TRUTH_NOT_EXPR.
4707 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4709 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4710 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4711 can_create_pseudo_p ().
4713 2011-05-13 Richard Guenther <rguenther@suse.de>
4716 * gimple.c (iterative_hash_gimple_type): Revert change in
4717 pointer target and function result and argument hashing.
4719 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4721 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4722 (*movxf_internal_nointeger): Ditto.
4723 (*movdf_internal_rex64): Ditto.
4724 (*movdf_internal): Ditto.
4725 (*movdf_internal_nointeger): Ditto.
4726 (*movsf_internal): Ditto.
4727 (sincos splitters): Use can_create_pseudo ().
4729 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4731 * config/i386/i386-opts.h: New.
4732 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4733 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4734 ix86_section_threshold): Remove.
4735 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4736 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4738 (ix86_option_override_internal): Don't decode strings for options
4739 other than -march=, -mtune= and -mfpmath=. Don't allow for
4740 __attribute__ uses in remaining diagnostics for options with
4741 string arguments. Don't check for integer arguments being negative.
4742 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4743 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4744 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4745 ix86_branch_cost, ix86_section_threshold): Remove.
4746 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4748 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4750 (masm=): Use Enum and Init.
4751 (asm_dialect): New Enum and EnumValue entries.
4752 (mbranch-cost=): Use UInteger.
4753 (mlarge-data-threshold=): Use UInteger and Init.
4754 (mcmodel=): Use Enum and Init.
4755 (cmodel): New Enum and EnumValue entries.
4756 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4757 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4758 mregparm=): Use UInteger.
4759 (mstringop-strategy=): Use Enum and Init.
4760 (stringop_alg): New Enum and EnumValue entries.
4761 (mtls-dialect=): Use Enum and Init.
4762 (tls_dialect): New Enum and EnumValue entries.
4763 (mabi=): Use Enum and Init.
4764 (calling_abi): New Enum and EnumValue entries.
4765 (mveclibabi=): Use Enum and Init.
4766 (ix86_veclibabi): New Enum and EnumValue entries.
4768 2011-05-13 Nick Clifton <nickc@redhat.com>
4770 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4771 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4773 2011-05-13 Kai Tietz <ktietz@redhat.com>
4776 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4777 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4778 (gimple_boolify): Check for cast for boolean_type_node instead for
4781 2011-05-13 Richard Guenther <rguenther@suse.de>
4783 PR tree-optimization/48172
4784 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4785 multiplying by number of iterations for equal step.
4786 (vect_create_cond_for_alias_checks): Likewise.
4788 2011-05-13 Andreas Schwab <schwab@redhat.com>
4790 * configure.ac: Use AS_HELP_STRING throughout.
4791 * configure: Regenerate.
4793 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4795 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4796 (ix86_emit_restore_regs_using_mov): Likewise.
4797 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4799 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4801 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4802 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4803 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4804 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4805 RTX_OK_FOR_OLO10_P): ...here.
4806 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4809 2011-05-12 Kai Tietz <ktietz@redhat.com>
4811 * gimplify.c (gimple_boolify): Re-boolify expression
4812 arguments even if expression type is of kind BOOLEAN_TYPE.
4813 (gimplify_boolean_expr): Removed.
4814 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4815 and XOR. Additional take care that we keep expression's type.
4816 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4817 of TRUTH_AND|OR|XOR_EXPR.
4819 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4821 PR tree-optimization/48975
4822 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4823 on all bbs here and free and clear ifc_bbs at the end.
4825 2011-05-12 Richard Guenther <rguenther@suse.de>
4827 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4828 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4829 until after simple checks.
4830 (gimple_types_compatible_p): Likewise.
4831 (iterative_hash_gimple_type): Always hash pointer targets
4832 and function return and argument types.
4833 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4834 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4835 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4836 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4837 completely in the simple compare section.
4838 (gimple_register_canonical_type): Query the cache again after
4841 2011-05-12 Richard Guenther <rguenther@suse.de>
4843 PR tree-optimization/48172
4844 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4845 the number of iterations from the segment size calculation.
4846 (vect_create_cond_for_alias_checks): Adjust.
4848 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4851 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4852 if validate_subreg fails.
4854 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4856 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4857 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4860 2011-05-12 DJ Delorie <dj@redhat.com>
4862 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4863 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4864 created builtin into rx_builtins array.
4865 (rx_builtin_decl): New function.
4866 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4868 2011-05-12 DJ Delorie <dj@redhat.com>
4869 Nick Clifton <nickc@redhat.com>
4871 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4872 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4873 (rx_is_legitimate_address): Add pre-decrement and post-increment
4874 addressing in HImode and QImode. Fix test for out of range
4876 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4877 (rx_align_for_label): Test label before extracting its usage count.
4878 (rx_adjust_insn_lengths): Fix selection of insn codes.
4879 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4881 2011-05-11 Jason Merrill <jason@redhat.com>
4883 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4885 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4887 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4888 reindent the subsequent block.
4890 2011-05-11 Satoru Takabayashi <satorux@google.com>
4891 Paul Pluzhnikov <ppluzhnikov@google.com>
4893 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4894 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4895 * config.in: Add LINKER_HASH_STYLE.
4896 * configure.ac: Add --with-linker-hash-style.
4897 * configure: Regenerate.
4899 2011-05-11 Richard Guenther <rguenther@suse.de>
4902 * gimple.c (iterative_hash_canonical_type): Fix typo.
4904 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4906 * config/i386/i386.c (legitimize_tls_address)
4907 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4908 expanders directly for TARGET_GNU2_TLS. Determine pic and
4909 __tls_get_addr symbol reference here. Update call to
4910 gen_tls_global_dynamic_{32,64} for added arguments.
4911 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4912 expanders directly for TARGET_GNU2_TLS. Determine
4913 __tls_get_addr symbol reference here. Update call to
4914 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4915 unique UNSPEC REG_EQUIV to libcall block.
4916 (ix86_tls_get_addr): Declare static.
4917 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4918 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4919 Do not determine pic and __tls_get_addr symbol reference here. Do not
4920 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4921 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4922 (tls_global_dynamic_64): Add operand 2. Do not determine
4923 __tls_get_addr symbol reference here. Do not call
4924 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4925 (tls_local_dynamic_base64): Ditto for operand 1.
4927 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4929 * function.c (expand_function_start): Initialize stack_check_probe_note
4930 only if the generic stack checking mechanism is used.
4932 2011-05-11 Richard Guenther <rguenther@suse.de>
4934 PR tree-optimization/15256
4935 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4936 (A & B) | C, combine (A op CST1) op CST2.
4937 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4938 visit assigns that have uses.
4940 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4942 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4943 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4944 (unpack_ts_type_common_value_fields): ...this. Update comment.
4945 (unpack_value_fields): Adjust for renaming.
4946 (lto_input_ts_type_tree_pointers): Split into...
4947 (lto_input_ts_type_common_tree_pointer): ...this and...
4948 (lto_input_ts_type_non_common_tree_pointers): ...this.
4949 (lto_input_tree_pointers): Adjust for above split.
4950 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4951 (pack_ts_type_common_value_fields): ...this. Update comment.
4952 (lto_output_ts_type_tree_pointers): Split into...
4953 (lto_output_ts_type_common_tree_pointers): ...this and...
4954 (lto_output_ts_type_non_common_tree_pointers): ...this.
4955 (lto_output_tree_pointers): Adjust for above split.
4956 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4957 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4958 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4959 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4961 (struct tree_type): Split into...
4962 (struct tree_type_common: ...this and...
4963 (struct tree_type_with_lang_specific): ...this and...
4964 (struct tree_type_non_common): ...this. Adjust accessor macros
4966 (TYPE_VALUES_RAW): Define.
4967 (union tree_node): Update for above changes.
4968 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4970 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4971 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4972 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4973 * treestructu.def (TS_TYPE): Remove.
4974 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4977 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4980 * tree-ssa.c (reset_debug_uses): New function.
4981 * tree-flow.h (reset_debug_uses): New prototype.
4982 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4983 * tree-loop-distribution.c (generate_loops_for_partition): Call
4984 reset_debug_uses on the stmts that will be removed. Keep around
4985 all debug stmts, don't count them as bits in partition bitmap.
4986 (generate_builtin): Don't count debug stmts or labels as bits in
4989 2011-05-11 Richard Guenther <rguenther@suse.de>
4991 * gimple.c (gimple_type_hash_1): Merge with ...
4992 (gimple_type_hash): ... this.
4993 (gtc_visit): Remove mode parameter and simplify accordingly.
4994 (gimple_types_compatible_p_1): Likewise.
4995 (gimple_types_compatible_p): Likewise.
4996 (iterative_hash_gimple_type): Likewise.
4998 (gimple_type_eq): Adjust.
5000 2011-05-11 Revital Eres <revital.eres@linaro.org>
5002 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5003 enters the branch create an anti edge in the opposite direction
5004 to prevent the creation of reg-moves.
5005 * modulo-sched.c: Adjust comment to reflect the fact we are
5006 scheduling closing branch.
5007 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5008 (stage_count): New field in struct partial_schedule.
5009 (calculate_stage_count): New function.
5010 (normalize_sched_times): Rename to reset_sched_times and handle
5011 incrementing the sched time of the nodes by a constant value
5012 passed as parameter.
5013 (duplicate_insns_of_cycles): Skip closing branch.
5014 (sms_schedule_by_order): Schedule closing branch.
5015 (ps_insn_find_column): Handle closing branch.
5016 (sms_schedule): Call reset_sched_times and adjust the code to
5017 support scheduling of the closing branch.
5018 (ps_insert_empty_row): Update calls to normalize_sched_times
5019 and rotate_partial_schedule functions.
5021 2011-05-11 Richard Guenther <rguenther@suse.de>
5024 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5026 2011-05-11 Joseph Myers <joseph@codesourcery.com>
5028 * opts.c (finish_options): Move warning settings from process_options.
5029 * toplev.c (process_options): Move warning settings to finish_options.
5031 2011-05-11 Richard Guenther <rguenther@suse.de>
5033 PR tree-optimization/18041
5034 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5035 (simplify_bitwise_binary): ... this. Handle operand conversions
5036 by applying them to the result instead.
5037 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
5039 2011-05-11 Richard Guenther <rguenther@suse.de>
5041 * gimple.c (gimple_canonical_types_compatible_p): Split out
5042 from gimple_types_compatible_p and friends. Do not recurse
5043 to pointed-to types.
5044 (gimple_canonical_type_eq): Use it.
5045 (iterative_hash_canonical_type): Split out from
5046 iterative_hash_gimple_type and friends. Do not recurse
5047 to pointed-to types.
5048 (gimple_canonical_type_hash): Use it, allocate the hash here.
5050 2011-05-11 Revital Eres <revital.eres@linaro.org>
5052 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5055 2011-05-11 Revital Eres <revital.eres@linaro.org>
5057 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5058 instead of PREV_INSN.
5060 2011-05-11 Revital Eres <revital.eres@linaro.org>
5062 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5063 * loop-doloop.c (doloop_condition_get): Likewise.
5064 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5066 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5068 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5070 * tree.def (CASE_LABEL_EXPR): Add an operand.
5071 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5073 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5075 * c-decl.c (c_override_global_bindings_to_false): Remove.
5076 (global_bindings_p): Don't check
5077 c_override_global_bindings_to_false.
5078 * c-tree.h (c_override_global_bindings_to_false): Remove.
5079 * c-typeck.c (composite_type): Don't set
5080 c_override_global_bindings_to_false.
5082 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5084 PR target/48857, 48495
5085 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5087 (VSX_MOVE_MODE): Ditto.
5088 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5089 VSX vector types. Add V2DImode.
5090 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5091 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5092 (MODES_TIEABLE_P): Ditto.
5094 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5095 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5097 (init_cumulative_args): Ditto.
5098 (rs6000_function_arg_boundary): Ditto.
5099 (rs6000_function_arg_advance_1): Ditto.
5100 (rs6000_function_arg): Ditto.
5101 (rs6000_function_ok_for_sibcall): Ditto.
5102 (emit_frame_save): Ditto.
5103 (rs6000_function_value): Ditto.
5104 (rs6000_libcall_value): Ditto.
5106 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5108 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5109 i386/darwin-lib.h to $libgcc_tm_file.
5110 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5112 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5114 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5116 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5118 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5119 * config/rs6000/rs6000-tables.opt: New file (generated).
5120 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5121 rs6000/rs6000-tables.opt to extra_options.
5122 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5123 * config/rs6000/rs6000.c (rs6000_select): Remove.
5124 (processor_target_table): Move contents to rs6000-cpus.def.
5125 (darwin_rs6000_override_options): Check
5126 global_options_set.x_rs6000_cpu_index instead of
5127 rs6000_select[1].string.
5128 (rs6000_option_override_internal): Likewise.
5129 (rs6000_handle_option): Don't assert that global structures are in
5130 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5131 (rs6000_default_cpu): New variable.
5132 (rs6000_file_start): Set it instead of local default_cpu. Check
5133 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5134 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5135 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5136 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5137 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5138 rs6000_select): Remove.
5139 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5141 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5142 * config/rs6000/t-rs6000
5143 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5144 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5145 global_options_set.x_rs6000_cpu_index instead of
5146 rs6000_select[1].string.
5147 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5148 global_options_set.x_rs6000_cpu_index instead of
5149 rs6000_select[1].string.
5151 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5153 * config.gcc (libgcc_tm_file): Define instead of including files
5154 from ../../libgcc/config/ in tm_file.
5155 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5156 * configure: Regenerate.
5157 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5158 libgcc_tm.h, cs-libgcc_tm.h): New.
5159 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5160 (clean): Remove libgcc_tm.h.
5161 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5162 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5163 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5165 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
5168 * config/avr/avr.c (avr_ret_register): Return unsigned int
5170 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5171 it to avr_libcall_value.
5172 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5174 (avr_expand_binop_builtin): Ditto.
5175 (avr_expand_unop_builtin): Ditto.
5177 2011-05-10 DJ Delorie <dj@redhat.com>
5179 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5180 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5181 * config/rx/rx.c (rx_align_for_label): Add label and
5182 uses_threshold parameters. Do not align when the label is not
5184 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5186 2011-05-10 Richard Guenther <rguenther@suse.de>
5188 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5189 a series of conversions and apply foldings similar to what
5191 (tree_ssa_forward_propagate_single_use_vars): Call it.
5193 2011-05-10 Jakub Jelinek <jakub@redhat.com>
5195 PR tree-optimization/48611
5196 PR tree-optimization/48794
5197 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5198 referenced from RESX or EH_DISPATCH arguments.
5201 * dfp.c (decimal_to_decnumber): Handle conversion from
5202 dconst{1,2,m1,half}.
5204 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5206 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5207 for !flag_prefer_avx128.
5208 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5210 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5212 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5213 (fold_ternary_loc): Use expr_location_or.
5215 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5218 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5219 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5220 Pmode and mem_mode is not VOIDmode.
5222 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
5224 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5225 TYPE_QUAL_RESTRICT): Convert to enum.
5227 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5229 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5230 (const_pow2_1_to_8_operand): Ditto.
5231 (const_pow2_1_to_128_operand): Ditto.
5232 (const_pow2_1_to_32768_operand): Ditto.
5233 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5234 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5235 in insn constraint to check integer value of operand 3.
5236 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5238 (PINSR_MODE): New mode iterator.
5239 (sse2p4_1): New mode attribute.
5240 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5241 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5242 iterator. Use const_int_operand instead of
5243 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5244 exact_log2 in insn constraint to check integer value of operand 3.
5246 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5248 * config/i386/sse.md (blendbits): Remove mode attribute.
5249 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5250 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5251 Check integer value of operand 3 in insn constraint.
5253 2011-05-09 Richard Guenther <rguenther@suse.de>
5255 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5257 (lto_symtab_merge): Likewise. Do not register types here.
5258 (lto_symtab_merge_decls_2): Likewise.
5259 (lto_symtab_merge_decls_1): Likewise.
5260 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5261 * gimple.c (enum gtc_mode): Declare.
5262 (gimple_types_compatible_p): Make static.
5264 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5266 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5267 temporary register to match Pmode.
5269 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5271 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5272 and *vec_concatv4si_1_avx.
5274 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5276 PR rtl-optimization/48927
5277 * ira-conflicts.c (commutative_constraint_p): Use
5278 recog_data.alternative_enabled_p to disable alternatives where
5279 "enabled" attribute is false.
5280 (get_dup_num): Ditto.
5281 * ira-lives.c (single_reg_class): Ditto.
5282 (ira_implicitly_set_insn_hard_regs): Ditto.
5284 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5286 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5287 (dataflow_set_preserve_mem_locs): Likewise.
5289 2011-05-09 Philipp Thomas <pth@suse.de>
5291 * config/mep/mep.c (mep_validate_vliw): Syntax description
5292 should not be translated.
5294 2011-05-09 Joseph Myers <joseph@codesourcery.com>
5296 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5297 * config/mips/mips-tables.opt: New file (generated).
5298 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5299 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5300 MIPS_ARCH_OPTION_NATIVE): Define.
5301 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5303 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5304 mips_parse_cpu): Remove.
5305 (mips_cpu_info_from_opt, mips_default_arch): New.
5306 (mips_handle_option): Don't assert that global structures are in
5307 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5308 (mips_option_override): Use new variables and functions to set
5309 state of these options. Use strcmp to check for individual CPU names.
5310 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5312 * config/mips/mips.opt (march=): Use ToLower and Enum.
5313 (mips): Use ToLower, Enum and Var.
5314 (mtune=): Use ToLower and Enum.
5315 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5317 2011-05-08 Jan Hubicka <jh@suse.cz>
5319 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5320 Arrange type pairs to be UID ordered.
5321 (gimple_lookup_type_leader): Make inline.
5323 2011-05-09 Nick Clifton <nickc@redhat.com>
5326 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5330 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5333 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5335 * combine.c (simplify_comparison): Abstract out parts into...
5336 (simplify_compare_const): ... new function.
5337 (try_combine): Generalize parallel arithmetic/compare combining
5338 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5340 2011-05-08 Jan Hubicka <jh@suse.cz>
5342 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5343 (cgraph_create_virtual_clone): Call hooks once virtual clone
5345 * cgraph.h (cgraph_clone_node): Update prototype.
5346 * ipa-cp.c (ipcp_estimate_growth): Use
5347 estimate_ipcp_clone_size_and_time.
5348 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5349 * lto-cgraph.c (input_node): Update.
5350 * ipa-inline.c (recursive_inlining): Update.
5351 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5352 (evaluate_conditions_for_known_args): Break out from ...
5353 (evaluate_conditions_for_edge): ... here.
5354 (evaluate_conditions_for_ipcp_clone): New function.
5355 (inline_node_duplication_hook): Update clone summary based
5357 (estimate_callee_size_and_time): Rename to ...
5358 (estimate_node_size_and_time): take NODE instead of EDGE;
5359 take POSSIBLE_TRUTHS as argument.
5360 (estimate_callee_size_and_time): Update.
5361 (estimate_ipcp_clone_size_and_time): New function.
5362 (do_estimate_edge_time): Update.
5364 2011-05-08 Richard Guenther <rguenther@suse.de>
5368 * expmed.c (expand_shift_1): Compute adjusted constant shift
5371 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5373 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5375 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5377 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5379 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5381 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5383 2011-05-07 Jan Hubicka <jh@suse.cz>
5385 * ipa-inline-transform.c (inline_call): Account when program size
5387 * ipa-inline.c (relative_time_benefit): New function.
5388 (edge_badness): Reorganize to be power 2 based; fix thinko when
5389 computing badness for negative growth; update comments to match
5390 reality; better dumps.
5392 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5394 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5395 type to bool and adjust comment.
5396 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5397 (fold_mathfn_compare): Remove calls to global_bindings_p.
5398 (fold_inf_compare): Likewise.
5399 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5400 * c-tree.h (global_bindings_p): Adjust prototype.
5401 * c-decl.c (global_bindings_p): Return bool and simplify.
5403 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
5405 PR tree-optimization/48837
5406 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5407 when accumulator transformation is performed.
5409 2011-05-06 Jan Hubicka <jh@suse.cz>
5411 * i386.h (ix86_tune_indices): Add
5412 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5413 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5414 * i386.c (initial_ix86_tune_features): Add
5415 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5416 (software_prefetching_beneficial_p): Remove predicate.
5417 (ix86_option_override_internal): Use new macro.
5419 2011-05-06 Jan Hubicka <jh@suse.cz>
5421 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5423 2011-05-06 Jan Hubicka <jh@suse.cz>
5425 * cgraph.c (cgraph_add_thunk): Create real function node instead
5426 of alias node; finalize it and mark needed/reachale; arrange visibility
5427 to be right and add it into the corresponding same comdat group list.
5428 (dump_cgraph_node): Dump thunks.
5429 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5430 cgraph_function_with_gimple_body_p,
5431 cgraph_first_function_with_gimple_body,
5432 cgraph_next_function_with_gimple_body): New functions.
5433 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5435 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5436 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5437 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5438 devirtualization when optimizing.
5439 (verify_cgraph_node): Verify thunks.
5440 (cgraph_analyze_function): Analyze thunks.
5441 (cgraph_mark_functions_to_output): Output thunks only in combination
5442 with function they are assigned to.
5443 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5444 alias into normal node.
5445 (assemble_thunks): New functoin.
5446 (cgraph_expand_function): Use it.
5447 * lto-cgraph.c (lto_output_node): Stream thunks.
5448 (input_overwrite_node): Stream in thunks.
5449 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5450 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5451 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5452 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5453 (inline_analyze_function): Do not care about thunk jump functions.
5454 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5455 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5456 cgraph_function_with_gimple_body_p.
5457 * passes.c (do_per_function_toporder): Use
5458 cgraph_function_with_gimple_body_p.
5459 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5460 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5461 (function_called_by_processed_nodes_p): Likewise.
5463 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5465 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5466 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5468 (mabi=): Replace with separate entries for mabi=altivec,
5469 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5470 mabi=ieeelongdouble and mabi=ibmlongdouble.
5471 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5472 check for -mabi=spe without SPE ABI support here.
5473 (rs6000_handle_option): Replace OPT_mabi_ handling with
5474 OPT_mabi_altivec and OPT_mabi_spe handling.
5476 2011-05-06 Cary Coutant <ccoutant@google.com>
5478 * dwarf2out.c (contains_subprogram_definition): New function.
5479 (should_move_die_to_comdat): Call it.
5481 2011-05-06 Jeff Law <law@redhat.com>
5483 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5484 remove_ctrl_stmt_and_useless_edges.
5485 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5486 (fixup_template_block, thread_single_edge): Likewise.
5487 (mark_threaded_blocks): Use THREAD_TARGET.
5489 2011-05-06 Alan Modra <amodra@gmail.com>
5492 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5493 const0_rtx as the arg to the dummy __tls_get_addr libcall.
5495 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5497 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5498 constraint modifier to "r".
5500 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5502 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5503 fall through for OPT_mcmodel_.
5505 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5507 * config/s390/s390.c (s390_asm_trampoline_template): Comment
5509 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
5511 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5514 * config/arm/arm.opt (marm): Document it.
5515 (mthumb): Reject negative variant.
5517 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5520 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5521 Fix typo in "ccvt" variable name.
5523 2011-05-06 Tristan Gingold <gingold@adacore.com>
5526 * config/vms/vms-ar.c (main): Remove cwd variable.
5528 2011-05-06 Jakub Jelinek <jakub@redhat.com>
5531 * var-tracking.c (prepare_call_arguments): Move else before #endif.
5533 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5535 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5536 * gimplify.c (gimplify_switch_expr): Likewise.
5537 * omp-low.c (expand_omp_sections): Likewise.
5538 * tree-eh.c (lower_try_finally_switch): Likewise.
5539 (lower_eh_dispatch): Likewise.
5540 * tree.h (build_case_label): Declare.
5541 * tree.c (build_case_label): Define.
5543 2011-05-05 Jason Merrill <jason@redhat.com>
5546 * tree-inline.c (copy_tree_r): Use copy_statement_list.
5547 (copy_statement_list): Don't recurse.
5548 * stor-layout.c (copy_self_referential_tree_r): Don't allow
5551 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5553 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
5554 through from -mfpu= handling.
5555 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
5557 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
5559 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
5562 2011-05-05 Steve Ellcey <sje@cup.hp.com>
5564 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
5566 (hppa[12]*-*-hpux11*): Ditto.
5567 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
5568 * config/ia64/hpux-unix2003.h: New.
5569 * config/pa/pa-hpux1131.opt: New.
5570 * config/pa/pa-hpux1131.h: New.
5571 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
5572 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
5573 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
5575 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5578 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
5579 instead of mode as 3rd argument to recursive call.
5580 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
5581 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
5583 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
5584 don't give up if mode is Pmode and mem_mode is not VOIDmode.
5585 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
5586 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
5588 2011-05-05 Julian Brown <julian@codesourcery.com>
5590 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
5591 parenthesis in D-register case.
5593 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5595 * opt-functions.awk (var_type_struct): Handle Enum options.
5596 * optc-gen.awk: Don't check range of variables of character type.
5597 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
5598 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
5599 rs6000_sdata_name, rs6000_explicit_options): Remove.
5600 (rs6000_option_override_internal): Check for -malign-power here.
5601 Use global_options_set instead of rs6000_explicit_options.
5602 (rs6000_parse_fpu_option): Remove.
5603 (rs6000_handle_option): Access variables via opts and opts_set
5604 pointers. Use error_at and warning_at. Add fall-through
5605 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5606 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5607 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5608 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5609 here. Don't use rs6000_parse_fpu_option.
5610 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5611 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5612 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5614 (mspe): Use Var and Save.
5615 (mtraceback=): Use Enum and Var.
5616 (rs6000_traceback_type): New Enum and EnumValue entries.
5617 (mfloat-gprs=): Use Enum, Var and Save.
5618 (rs6000_float_gprs): New Enum and EnumValue entries.
5619 (mlong-double-): use Var and Save.
5620 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5621 (malign-): Use Enum and Var.
5622 (rs6000_alignment_flags): New Enum and EnumValue entries.
5624 (fpu_type_t): New Enum and EnumValue entries.
5625 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5626 global_options_set instead of rs6000_explicit_options.
5627 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5628 global_options_set instead of rs6000_explicit_options.
5629 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5630 global_options_set instead of rs6000_explicit_options.
5631 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5632 global_options_set instead of rs6000_explicit_options.
5633 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5634 global_options_set instead of rs6000_explicit_options.
5635 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5636 global_options_set instead of rs6000_explicit_options.
5637 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5639 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5640 global_options_set instead of rs6000_explicit_options.
5641 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5642 (rs6000_cmodel): New Enum and EnumValue entries.
5643 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5644 global_options_set instead of rs6000_explicit_options.
5645 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5646 (mtls-size=): Use Enum and Var.
5647 (rs6000_tls_size): New Enum and EnumValue entries.
5649 2011-05-05 Michael Matz <matz@suse.de>
5651 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5652 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5653 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5654 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5655 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5656 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5657 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5658 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5659 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5660 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5661 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5662 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5663 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5664 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5665 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5666 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5668 2011-05-05 Richard Guenther <rguenther@suse.de>
5670 * expmed.c (expand_variable_shift): Rename to ...
5671 (expand_shift_1): ... this. Take an expanded shift amount.
5672 For rotates recurse directly not building trees for the shift amount.
5673 (expand_variable_shift): Wrap around expand_shift_1.
5674 (expand_shift): Adjust.
5676 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5678 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5680 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5682 * tree.h (get_pending_sizes): Remove prototype.
5683 (put_pending_size): Likewise.
5684 (put_pending_sizes): Likewise.
5685 * stor-layout.c (pending_sizes): Delete.
5686 (get_pending_sizes): Likewise.
5687 (put_pending_size): Likewise.
5688 (put_pending_sizes): Likewise.
5689 (variable_size): Do not call put_pending_size and tidy up.
5690 * function.h (struct function): Remove dont_save_pending_sizes_p.
5691 * lto-streamer-in.c (input_function): Do not stream it.
5692 * lto-streamer-out.c (output_function): Likewise.
5693 * tree-inline.c (initialize_cfun): Do not copy it.
5694 * c-decl.c (store_parm_decls): Do not set it.
5695 * omp-low.c (create_task_copyfn): Likewise.
5696 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5698 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5700 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5702 (*movdf_internal): Ditto.
5703 (*movdf_internal_nointeger): Ditto.
5704 (*movsf_internal): Ditto.
5706 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5708 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5709 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5710 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5711 (c_variable_size): Remove.
5712 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5713 call put_pending_sizes.
5714 (get_parm_info): Add parameter expr. Use it to set
5715 arg_info->pending_sizes.
5716 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5718 * c-parser.c (c_parser_parms_declarator): Update call to
5719 c_parser_parms_list_declarator.
5720 (c_parser_parms_list_declarator): Take parameter expr. Update
5721 call to push_parm_decl. Update recursive call. Don't call
5722 get_pending_sizes. Update calls to get_parm_info.
5723 (c_parser_objc_method_definition): Update calls to
5724 c_parser_objc_method_decl and objc_start_method_definition.
5725 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5726 (c_parser_objc_method_decl): Add parameter expr. Update call to
5728 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5729 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5730 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5732 2011-05-05 Michael Hope <michael.hope@linaro.org>
5735 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5738 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5740 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5741 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5742 (spu_output_mi_thunk): New function.
5744 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5746 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5747 targetm.asm_out.print_operand.
5748 * config/sol2.c: Include target.h.
5750 2011-05-04 Jan Hubicka <jh@suse.cz>
5752 * ipa-inline.c (reset_edge_caches): New function.
5753 (update_caller_keys): Add check_inlinablity_for; do not
5754 reset edge caches; remove now unnecesary loop.
5755 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5756 (update_all_callee_keys): Likewise.
5757 (inline_small_functions): Sanity check cache; update code
5760 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5762 PR rtl-optimization/47612
5763 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5764 as the last insn of the sequence to be moved.
5766 2011-05-04 Tobias Burnus <burnus@net-b.de>
5769 * doc/invoke.texi (Ofast): Document that it
5770 enables Fortran's -fno-protect-parens.
5772 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5774 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5776 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5778 * stor-layout.c (variable_size): Do not issue errors.
5780 2011-05-04 Richard Guenther <rguenther@suse.de>
5782 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5783 for array-ref indices.
5784 (tree_coverage_counter_addr): Likewise.
5785 (build_fn_info_type): Use size_int for index types.
5786 (build_gcov_info): Likewise.
5788 2011-05-04 Richard Guenther <rguenther@suse.de>
5790 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5792 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5793 for constructor indices.
5794 (push_init_level): Likewise.
5796 2011-05-04 Richard Guenther <rguenther@suse.de>
5798 * explow.c (promote_mode): Move variable declarations before code.
5800 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5802 * tree.h (build_function_type_array): Declare.
5803 (build_varargs_function_type_array): Declare.
5804 (build_function_type_vec, build_varargs_function_type_vec): Define.
5805 * tree.c (build_function_type_array_1): New function.
5806 (build_function_type_array): New function.
5807 (build_varargs_function_type_array): New function.
5809 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5811 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5812 before setting STMT_VINFO_TYPE.
5814 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5816 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5817 instead of spu_pass_by_reference.
5819 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5821 * calls.c (emit_library_call_value_1): Invoke
5822 promote_function_mode hook on libcall arguments.
5823 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5824 argument being NULL.
5825 * targhooks.c (default_promote_function_mode): Lisewise.
5826 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5827 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5829 * doc/tm.texi: Document that TYPE argument might be NULL.
5831 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5833 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5835 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5838 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5840 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5842 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5843 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5845 * mips-tfile.c: ... here.
5846 Don't include coretypes.h, tm.h, filenames.h.
5847 (saber_stop): Remove definition and all calls.
5848 [__SABER__]: Remove.
5849 (__LINE__): Remove default.
5850 (Size_t, Ptrdiff_t): Remove definitions.
5851 Replace by size_t, ptrdiff_t.
5852 [!MIPS_DEBUGGING_INFO]: Remove.
5853 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5854 (progname): Add const.
5856 Replace all uses by static.
5857 (ALIGN_SYMTABLE_OFFSET): Remove default.
5858 * mips-tdump.c: Don't include coretypes.h, tm.h.
5859 Remove !MIPS_IS_STAB guard.
5860 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5861 $(TM_H), filenames.h dependencies.
5862 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5864 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5867 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5868 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5870 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5873 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5874 account and save/restore RETS.
5875 (PROFILE_BEFORE_PROLOGUE): Define.
5876 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5877 the push insn to use predecrement.
5879 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5882 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5884 2011-05-04 Nick Clifton <nickc@redhat.com>
5886 * config/mn10300/mn10300.c: Include cfgloop.h.
5888 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5889 Lcc or a FLcc insn into the instruction stream.
5890 (mn10300_block_contains_call): New function. Returns true if the
5891 given basic block contains a CALL insn.
5892 (mn10300_loop_contains_call_insn): New function. Returns true if
5893 the given loop contains a CALL insn.
5894 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5895 to use the SETLB and Lcc or FLcc insns.
5896 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5897 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5898 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5899 disable the SETLB optimization.
5900 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5901 __SETLB__ or __NO_SETLB__.
5902 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5903 (movsf_internal): Handle MDR register.
5904 (cmpsi): Make visible.
5905 (setlb): New pattern.
5907 (FLcc): New pattern.
5909 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5912 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5913 for reg<->xmm moves.
5914 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5915 (vec_concatv2di_rex64_sse): Ditto.
5916 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5917 (*vec_extractv2di_1_rex64): Ditto.
5920 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5922 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5924 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5926 2011-05-04 Richard Guenther <rguenther@suse.de>
5928 * tree.h (int_const_binop): Remove notrunc argument.
5929 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5930 create integer constants that are properly truncated.
5931 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5932 (const_binop): Remove zero notrunc argument to int_const_binop.
5933 (size_binop_loc): Likewise.
5934 (fold_div_compare): Likewise.
5935 (maybe_canonicalize_comparison_1): Likewise.
5936 (fold_comparison): Likewise.
5937 (fold_binary_loc): Likewise.
5938 (multiple_of_p): Likewise.
5939 * expr.c (store_constructor): Likewise.
5940 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5941 (maybe_fold_stmt_addition): Likewise.
5942 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5943 * stor-layout.c (layout_type): Likewise.
5944 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5945 * tree-sra.c (build_ref_for_offset): Likewise.
5946 (build_user_friendly_ref_for_offset): Likewise.
5947 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5948 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5949 * tree-ssa-loop-niter.c (inverse): Likewise.
5950 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5951 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5952 * tree-switch-conversion.c (check_range): Likewise.
5953 (build_constructors): Likewise.
5954 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5955 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5956 (extract_range_from_assert): Likewise.
5957 (vrp_int_const_binop): Likewise.
5958 (extract_range_from_binary_expr): Likewise.
5959 (extract_range_from_unary_expr): Likewise.
5960 (check_array_ref): Likewise.
5961 (find_case_label_range): Likewise.
5962 (simplify_div_or_mod_using_ranges): Likewise.
5963 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5964 comparing case labels for merging.
5966 2011-05-03 Mark Wielaard <mjw@redhat.com>
5968 * dwarf2out.c (debug_str_hash_forced): Removed.
5969 (gen_label_for_indirect_string): Removed.
5970 (get_debug_string_label): Removed.
5971 (AT_string_form): Generate label directly.
5972 (output_indirect_string): Test indirect_string_node for
5973 DW_FORM_strp instead of checking label and refcount.
5974 (prune_indirect_string): Removed.
5975 (prune_unused_types): Don't check debug_str_hash_forced or
5976 call prune_indirect_string.
5978 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5981 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5983 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5987 * combine.c (try_combine): Skip debug insns at m_split tests.
5989 2011-04-26 Mark Wielaard <mjw@redhat.com>
5992 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5993 when info_section_emitted.
5995 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5997 * config/mips/mips-opts.h: New.
5998 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6000 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6001 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6002 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6004 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6006 (mips_abi, mips_code_readable): Don't declare.
6007 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6008 (mabi=): Use Enum and Var.
6009 (mips_abi): New Enum and EnumValue entries.
6010 (mcode-readable=): Use Enum and Var.
6011 (mips_code_readable_setting): New Enum and EnumValue entries.
6012 (mr10k-cache-barrier=): Use Enum and Var.
6013 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6015 2011-05-03 Jan Hubicka <jh@suse.cz>
6017 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6018 replace hash by pointer map.
6019 (cgraph_node_set_element_def, cgraph_node_set_element,
6020 const_cgraph_node_set_element, varpool_node_set_element_def,
6021 varpool_node_set_element, const_varpool_node_set_element): Remove.
6022 (free_cgraph_node_set, free_varpool_node_set): New function.
6023 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6024 * tree-emutls.c: Free varpool node set.
6025 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6026 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6027 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6028 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6029 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6030 Move here from ipa.c; implement using pointer_map
6031 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6032 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6033 debug_cgraph_node_set, varpool_node_set_new,
6034 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6035 dump_varpool_node_set, debug_varpool_node_set):
6036 Move to ipa-uitls.c.
6037 * passes.c (ipa_write_summaries): Update.
6039 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6041 From Mike Frysinger:
6042 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6043 bf542/bf544/bf547/bf548/bf549.
6045 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6047 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6049 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6052 * config/bfin/bfin.md (MOVCC): New mode_macro.
6053 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6054 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
6055 comments from generated assembly.
6057 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6060 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6061 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6062 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6063 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6064 * config/bfin/lib1funcs.asm (___muldi3): New function.
6066 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6068 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6069 build_function_type_list instead of build_function_type.
6070 Rearrange initialization of `args' to do so.
6072 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6074 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6075 instead of build_function_type.
6077 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6079 * config/rs6000/rs6000.c (spe_init_builtins): Call
6080 build_function_type_list instead of build_function_type.
6081 (paired_init_builtins, altivec_init_builtins): Likewise.
6082 (builtin_function_type): Likewise.
6084 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6086 * config/sh/sh.c (sh_media_init_builtins): Call
6087 build_function_type_list instead of build_function_type.
6089 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6091 * config/sparc/sparc.c (sparc_file_end): Call
6092 build_function_type_list instead of build_function_type.
6094 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6096 * config/alpha/alpha.c (alpha_init_builtins): Call
6097 build_function_type_list instead of build_function_type.
6099 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6101 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6102 build_function_type_list instead of build_function_type.
6104 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6106 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6107 build_function_type_list instead of build_function_type.
6108 Delete `endlink' variable.
6110 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6112 * config/avr/avr.c (avr_init_builtins): Call
6113 build_function_type_list instead of build_function_type.
6115 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6117 * config/picochip/picochip.c (picochip_init_builtins): Call
6118 build_function_type_list instead of build_function_type.
6119 Delete `endlink' variable.
6121 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6123 * config/bfin/bfin.c (bfin_init_builtins): Call
6124 build_function_type_list instead of build_function_type.
6126 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6129 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6130 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6132 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6135 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6136 libbffastfp overrides libgcc when -mfast-fp.
6138 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6140 Originally from Bernd Schmidt
6141 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6142 * config/bfin/bfin.c (override_options): Test it and error if
6145 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6147 Originally From Bernd Schmidt
6148 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6151 2011-05-03 Jeff Law <law@redhat.com>
6153 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6154 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6155 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6156 than accessing AUX field directly. Free the AUX field before
6158 (thread_block, thread_through_loop_header): Likewise.
6159 (thread_single_edge, mark_threaded_blocks): Likewise.
6160 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6161 (register_jump_thread): Do not attempt to thread to a NULL edge.
6163 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6165 * function.c (init_function_start): Call decide_function_section.
6166 * varasm.c (decide_function_section): New function.
6167 (assemble_start_function): When not using
6168 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6169 or first_function_block_is_cold.
6170 * rtl.h (decide_function_section): Declare.
6172 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6173 Jakub Jelinek <jakub@redhat.com>
6176 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6177 only succeed if req_mode is the same as set_mode.
6179 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6181 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6182 * genemit.c (gen_exp): Handle RETURN.
6183 * emit-rtl.c (verify_rtx_sharing): Likewise.
6184 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6185 * rtl.c (copy_rtx): RETURN is shared.
6186 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6188 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6189 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6190 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6191 * config/cris/cris.c (cris_expand_return): Likewise.
6192 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6193 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6194 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6195 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6196 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6198 * config/v850/v850.c (expand_epilogue): Likewise.
6199 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6200 * config/arm/arm.md (epilogue): Likewise.
6201 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6202 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6203 variable to ret_reg.
6205 2011-05-03 Richard Guenther <rguenther@suse.de>
6208 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6209 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6210 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6212 2011-05-03 Richard Guenther <rguenther@suse.de>
6214 * c-decl.c (grokdeclarator): Instead of looking at
6215 TREE_OVERFLOW check if the constant fits in the index type.
6217 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6219 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6220 (vec_store_lanes<mode><mode>): Likewise.
6222 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6224 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6225 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6226 convert_optab_index values.
6227 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6228 * genopinit.c (optabs): Initialize the new optabs.
6229 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6230 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6231 (expand_STORE_LANES): New functions.
6232 * tree.h (build_array_type_nelts): Declare.
6233 * tree.c (build_array_type_nelts): New function.
6234 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6235 (vect_model_load_cost): Likewise.
6236 (vect_store_lanes_supported, vect_load_lanes_supported)
6237 (vect_record_strided_load_vectors): Declare.
6238 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6239 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6240 (vect_transform_strided_load): Split out statement recording into...
6241 (vect_record_strided_load_vectors): ...this new function.
6242 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6243 (write_vector_array, create_array_ref): New functions.
6244 (vect_model_store_cost): Add store_lanes_p argument.
6245 (vect_model_load_cost): Add load_lanes_p argument.
6246 (vectorizable_store): Try to use store-lanes functions for
6248 (vectorizable_load): Likewise load-lanes and loads.
6249 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6250 to vect_model_store_cost.
6251 (vect_build_slp_tree): Likewise vect_model_load_cost.
6253 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6255 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6256 * hooks.c (hook_bool_mode_uhwi_false): New function.
6257 * target.def (array_mode_supported_p): New hook.
6258 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6259 * doc/tm.texi: Regenerate.
6260 * stor-layout.c (mode_for_array): New function.
6261 (layout_type): Use it.
6262 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6263 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6265 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6268 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6269 for -fstack-check if the size to allocate is negative.
6271 2011-05-02 Lawrence Crowl <crowl@google.com>
6273 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6274 (timevar_cond_start): New for starting a timer only when it is not
6276 (timevar_cond_stop): New for stopping a timer when it was not already
6279 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6280 (timevar_cond_start): New as above.
6281 (timevar_cond_stop): New as above.
6283 * timevar.def: Add start/stop timers for compiler phases,
6284 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6285 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6286 and TV_PHASE_FINALIZE.
6287 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6288 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6289 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6290 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6291 Make unused TV_OVERLOAD into a start/stop timer.
6293 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6294 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6295 to indicate that they are start/stop timers.
6297 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6298 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6299 Move initialization to do_compile.
6300 (do_compile): Add initialization from above.
6301 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6303 * c-decl.c (c_write_global_declarations): Add start/stop of
6304 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6306 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6307 or TV_PARSE_INLINE, as appropriate.
6308 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6309 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6311 2011-05-02 Jason Merrill <jason@redhat.com>
6314 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6316 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
6319 * c-decl.c (finish_decl): Only create a composite if the types are
6322 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6324 * config/fr30/fr30-protos.h (Mmode): Don't define.
6325 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6326 definition where used.
6327 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6328 define. Expand definitions where used.
6329 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6330 Expand definitions where used.
6331 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6332 rx_function_arg, rx_function_arg_advance,
6333 rx_function_arg_boundary): Expand definitions of those macros.
6334 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6335 definition where used.
6337 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6339 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6341 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6342 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6343 with *movv2sf_internal_rex64_avx.
6344 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6345 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6346 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6347 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6348 "vex" in "prefix" attribute calculation.
6349 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6351 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6354 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6355 inputs match the output.
6357 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6360 * config/m68k/m68k.c (m68k_expand_prologue): Set
6361 current_function_static_stack_size.
6363 2011-05-02 Jan Hubicka <jh@suse.cz>
6365 * lto-streamer.c (lto_streamer_cache_insert_1,
6366 lto_streamer_cache_lookup, lto_streamer_cache_create,
6367 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6368 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6370 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6372 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6373 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6374 config/m68k/t-opts: New files.
6375 * config/m68k/m68k-tables.opt: New file (generated).
6376 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6377 extra_options and m68k/t-opts to tmake_file.
6378 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6379 (all_isas): Initialize using m68k-isas.def.
6380 (all_microarchs): Initialize using m68k-microarchs.def.
6381 (m68k_find_selection): Remove.
6382 (m68k_handle_option): Don't assert that global structures are in
6383 use. Use error_at. Access variables via opts pointer. Don't
6384 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6385 directly for -m68020-40 and -m68020-60.
6386 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6387 m68k_tune_entry here.
6388 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6390 (m68k_library_id_string): Remove declaration.
6391 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6392 (m68k_library_id_string): New Variable.
6393 (march=, mcpu=, mtune=): Use Enum and Var.
6395 2011-05-02 Richard Guenther <rguenther@suse.de>
6397 * varasm.c (output_constructor_regular_field): Compute zero-based
6398 index with double-ints. Make sure to ICE instead of producing
6400 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6401 in asserts. Properly use a signed type.
6403 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6405 * config/i386/sse.md (V): New mode iterator.
6406 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6408 (V_256): Rename from AVX256MODE.
6409 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6410 condition to all users.
6412 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6413 condition to all users.
6414 (VF_128): Make V4SF mode unconditional.
6415 (VF_256): Rename from AVX256MODEF2P.
6416 (VI4F_128): Rename from SSEMODE4S.
6417 (VI8F_128): Rename from SSEMODE2D.
6418 (VI4F_256): Rename from AVX256MODE8P.
6419 (VI8F_256): Rename from AVX256MODE4P.
6420 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6421 (ssescalarmodesuffix): Remove SF and DF modes.
6422 (SSEMODE124): Remove.
6423 (SSEMODE1248): Ditto.
6424 (SSEMODEF2P): Ditto.
6425 (AVXMODEF2P): Ditto.
6426 (AVXMODEFDP): Ditto.
6427 (AVXMODEFSP): Ditto.
6428 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6430 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6432 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6433 xop_pcmov_<mode>256. Use V mode iterator.
6435 Adjust RTX patterns globally for renamed mode attributes.
6437 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6439 * haifa-sched.c (sched_emit_insn): Emit insn before first
6440 non-scheduled insn. Inform back-end about new insn. Add
6441 new insn to scheduled_insns list.
6443 2011-05-02 Richard Guenther <rguenther@suse.de>
6445 PR tree-optimization/48822
6446 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6447 (process_scc): Indicate which iteration we start.
6449 2011-05-02 Jan Hubicka <jh@suse.cz>
6451 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6452 (lto_section_overrun): New.
6453 * lto-section-out.c (append_block): Rename to ...
6454 (lto_append_block): ... this one; export.
6455 (lto_output_1_stream): Move lto lto-streamer.h
6456 (lto_output_data_stream): Update.
6457 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6458 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6461 2011-05-02 Richard Guenther <rguenther@suse.de>
6463 * tree.c (tree_code_counts): New global array.
6464 (record_node_allocation_statistics): Count individual tree codes.
6465 (dump_tree_statistics): Dump individual code stats.
6467 2011-05-01 Jan Hubicka <jh@suse.cz>
6469 * ipa-inline.c (caller_growth_limits): Fix thinko when
6470 looking for largest stack frame.
6471 * ipa-inline.h (dump_inline_summary): Declare.
6472 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6474 (dump_inline_summary): Export.
6475 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6477 2011-05-01 Anatoly Sokolov <aesok@post.ru>
6479 * reginfo.c (memory_move_cost): Change rclass argument type form
6480 'enum reg_class' to reg_class_t.
6481 * reload.h (memory_move_cost): Update prototype.
6482 * postreload.c reload_cse_simplify_set): Change type dclass var to
6484 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6486 (ira_allocate_and_set_costs): Change aclass argument type form
6487 'enum reg_class' to reg_class_t.
6488 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6489 Change aclass argument type to reg_class_t.
6490 (update_conflict_hard_reg_costs): Change type aclass and pref vars
6492 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6493 memory_move_cost call.
6495 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6496 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6497 Change type tmp var to reg_class_t.
6499 2011-04-30 Jan Hubicka <jh@suse.cz>
6501 * ipa-inline.c (can_inline_edge_p): Disregard limits when
6502 inlining into function with flatten attribute.
6503 (want_inline_small_function_p): Be more realistic about inlining
6504 cold calls where callee size grows.
6506 2011-04-30 Jan Hubicka <jh@suse.cz>
6508 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6511 2011-04-30 Anatoly Sokolov <aesok@post.ru>
6513 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6514 PRINT_OPERAND_PUNCT_VALID_P): Remove.
6515 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6516 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6517 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6518 (print_operand): Rename to...
6519 (sparc_print_operand): ...this. Make static. Adjust
6520 sparc_print_operand function call.
6521 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6524 2011-04-30 Jan Hubicka <jh@suse.cz>
6527 * ipa-inline.c (early_inliner): Disable when doing late
6528 addition of function.
6530 2011-04-30 Jakub Jelinek <jakub@redhat.com>
6532 * dwarf2out.c (get_address_mode): New inline.
6533 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6534 if not dwarf_strict emit
6535 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6536 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6537 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
6538 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6539 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6540 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6541 mem_loc_descriptor callers.
6542 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6543 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6544 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6545 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6546 (base_types): New variable.
6547 (get_base_type_offset, calc_base_type_die_sizes,
6548 base_type_for_mode, mark_base_types, base_type_cmp,
6549 move_marked_base_types): New functions.
6550 (calc_die_sizes): Assert that die_offset is 0 or equal to
6552 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
6553 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
6554 callers. If not dwarf_strict, call mem_loc_descriptor even for
6555 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
6556 (gen_subprogram_die): Don't give up on call site parameters
6557 with non-integral or large integral modes. Adjust
6558 mem_loc_descriptor callers.
6559 (prune_unused_types): Call prune_unused_types_mark on base_types
6561 (resolve_addr): Call mark_base_types.
6562 (dwarf2out_finish): Call move_marked_base_types.
6564 PR tree-optimization/48809
6565 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
6567 (gen_inbound_check): Don't compute index_expr - range_min in utype
6568 again, instead reuse SSA_NAME initialized in build_arrays.
6569 Remove two useless gsi_for_stmt calls.
6571 2011-04-29 Jeff Law <law@redhat.com>
6573 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
6575 2011-04-29 Martin Jambor <mjambor@suse.cz>
6577 * cgraph.h (cgraph_postorder): Remove declaration.
6578 * ipa-utils.h (ipa_free_postorder_info): Declare.
6579 (ipa_reverse_postorder): Likewise.
6580 * cgraphunit.c: Include ipa-utils.h.
6581 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
6582 * ipa-inline.c: Include ipa-utils.h.
6583 (ipa_inline): Update call to ipa_reverse_postorder.
6584 * ipa-pure-const.c (propagate_pure_const): Update call to
6585 ipa_reduced_postorder and ipa_print_order. Call
6586 ipa_free_postorder_info to clean up.
6587 (propagate_nothrow): Likewise.
6588 * ipa-reference.c (propagate): Removed a useless call to
6589 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
6590 and ipa_print_order. Call ipa_free_postorder_info to clean up.
6591 * ipa.c: Include ipa-utils.h.
6592 (ipa_profile): Update call to ipa_reverse_postorder.
6593 (cgraph_postorder): Moved to...
6594 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
6595 (ipa_utils_print_order): Renamed to ipa_print_order.
6596 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
6598 (ipa_free_postorder_info): New function.
6599 * passes.c: Include ipa-utils.h.
6600 (do_per_function_toporder): Update call to ipa_reverse_postorder.
6601 (ipa_write_summaries): Likewise.
6602 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6603 (cgraphunit.o): Likewise.
6605 (ipa-inline.o): Likewise.
6607 2011-04-29 Jan Hubicka <jh@suse.cz>
6609 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6610 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6611 * ipa-inline.h (clause_t): Turn into unsigned int.
6612 * ipa-inline-analysis.c (add_clause): Do more simplification.
6613 (and_predicates): Shortcut more cases.
6614 (predicates_equal_p): Move forward; check that clauses are properly
6616 (or_predicates): Shortcut more cases.
6617 (edge_execution_predicate): Rewrite as...
6618 (set_cond_stmt_execution_predicate): ... this function; handle
6619 __builtin_constant_p.
6620 (set_switch_stmt_execution_predicate): New .
6621 (compute_bb_predicates): New.
6622 (will_be_nonconstant_predicate): Update TODO.
6623 (estimate_function_body_sizes): Use compute_bb_predicates
6624 and free them later, always try to estimate if stmt is constant.
6625 (estimate_time_after_inlining, estimate_size_after_inlining):
6626 Gracefully handle optimized out edges.
6627 (read_predicate): Fix off by one error.
6629 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6631 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6633 2011-04-27 Xinliang David Li <davidxl@google.com>
6635 * tree-profile.c (init_ic_make_global_vars): Set
6636 tls attribute on ic vars.
6637 * coverage.c (coverage_end_function): Initialize
6638 function_list with zero.
6640 2011-04-29 Richard Guenther <rguenther@suse.de>
6642 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6643 for the type of the result.
6644 (fold_builtin_isascii): Likewise.
6645 (fold_builtin_toascii): Use integer_type_node where appropriate.
6646 (fold_builtin_logb): Likewise.
6647 (fold_builtin_frexp): Likewise.
6648 (fold_builtin_strstr): Likewise.
6649 (fold_builtin_strpbrk): Likewise.
6650 (fold_builtin_fputs): Likewise.
6651 (fold_builtin_sprintf): Likewise.
6652 (fold_builtin_snprintf): Likewise.
6653 (fold_builtin_printf): Likewise.
6654 (do_mpfr_remquo): Use a proper type for the assigned constant.
6655 (do_mpfr_lgamma_r): Likewise.
6656 * dwarf2out.c (resolve_one_addr): Use size_int.
6657 * except.c (init_eh): Likewise.
6658 (assign_filter_values): Use integer_type_node for filter values.
6659 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6661 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6662 for EH region numbers.
6663 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6664 for the shift amount.
6666 2011-04-29 Richard Guenther <rguenther@suse.de>
6668 * expr.h (expand_shift): Rename to ...
6669 (expand_variable_shift): ... this.
6670 (expand_shift): Take a constant shift amount.
6671 * expmed.c (expand_shift): Rename to ...
6672 (expand_variable_shift): ... this.
6673 (expand_shift): New wrapper around expand_variable_shift.
6674 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6675 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6676 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6677 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6678 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6679 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6680 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6681 emit_store_flag_1, emit_store_flag): Likewise.
6682 * builtins.c (expand_builtin_signbit): Likewise.
6683 * calls.c (load_register_parameters): Likewise.
6684 * function.c (assign_parm_setup_block): Likewise.
6685 * lower-subreg.c (resolve_shift_zext): Likewise.
6686 * optabs.c (widen_bswap, expand_abs_nojump,
6687 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6688 * spu/spu.c (spu_expand_extv): Likewise.
6689 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6691 2011-04-29 Richard Guenther <rguenther@suse.de>
6693 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6694 for the remapped region number.
6695 * predict.c (build_predict_expr): Use integer_type_node for the
6697 * fold-const.c (fold_binary_loc): Use integer_type_node for
6698 the shift amount. Use a proper type for the PLUS_EXPR operand.
6700 2011-04-29 Michael Matz <matz@suse.de>
6702 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6703 other trees that just builtins.
6704 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6706 2011-04-29 Richard Guenther <rguenther@suse.de>
6708 * tree-nested.c (get_trampoline_type): Use size_int.
6709 (get_nl_goto_field): Likewise.
6710 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6712 (lower_eh_constructs_2): Likewise.
6713 (lower_resx): Likewise.
6714 (lower_eh_dispatch): Likewise.
6715 * tree-mudflap.c (mf_build_string): Use size_int.
6716 (mudflap_register_call): Use integer_type_node for the flag.
6717 (mudflap_enqueue_constant): Use size_int.
6718 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6719 instead of rebuilding it.
6721 2011-04-29 Richard Guenther <rguenther@suse.de>
6723 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6724 Handle OBJ_TYPE_REF.
6725 (find_func_aliases_for_call): Use it more consistently.
6727 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6729 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6730 (rank_for_schedule): Use it.
6731 (schedule_block): Set it.
6733 2011-04-28 David Li <davidxl@google.com>
6735 * tree.c (crc32_string): Use crc32_byte.
6736 (crc32_byte): New function.
6737 * tree.h (crc32_byte): New function.
6738 * gcov.c (read_graph_file): Handle new cfg_cksum.
6739 (read_count_file): Ditto.
6740 * profile.c (instrument_values): Ditto.
6741 (get_exec_counts): Ditto.
6742 (read_profile_edge_counts): Ditto.
6743 (compute_branch_probabilities): Ditto.
6744 (compute_value_histograms): Ditto.
6745 (branch_prob): Ditto.
6746 (end_branch_prob): Ditto.
6747 * coverage.c (read_counts_file): Ditto.
6748 (get_coverage_counts): Ditto.
6749 (tree_coverage_counter_addr): Ditto.
6750 (coverage_checksum_string): Ditto.
6751 (coverage_begin_output): Ditto.
6752 (coverage_end_function): Ditto.
6753 (build_fn_info_type): Ditto.
6754 (build_fn_info_value): Ditto.
6755 * libgcov.c (gcov_exit): Ditto.
6756 * gcov-dump.c (tag_function): Ditto.
6757 (compute_checksum): Remove.
6759 2011-04-29 Alan Modra <amodra@gmail.com>
6761 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6762 unspec plus offset. Tidy macho code.
6764 2011-04-29 Martin Jambor <mjambor@suse.cz>
6766 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6767 node instead of a decl. Update all callers.
6768 * cgraph.h: Update declaration.
6770 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6772 PR tree-optimization/48765
6773 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6774 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6775 to indicate if loop aware SLP is being used. Scan the statements
6776 and update the vectorization factor according to the type of
6777 vectorization before statement analysis.
6778 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6779 pass it to vect_analyze_loop_operations.
6780 (vectorizable_reduction): Set number of copies to 1 in case of pure
6782 * tree-vect-stmts.c (vectorizable_conversion,
6783 vectorizable_assignment, vectorizable_shift,
6784 vectorizable_operation, vectorizable_type_demotion,
6785 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6787 (vectorizable_condition): Move the check that it is not SLP
6788 vectorization before the number of copies check.
6789 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6790 to vectorize the loop using SLP.
6792 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6795 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6798 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6800 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6801 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6802 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6803 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6804 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6806 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6807 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6808 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6809 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6810 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6811 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6813 * config/i386/linux.h (REG_NAME): Don't define.
6814 * config/i386/linux64.h (REG_NAME): Don't define.
6815 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6816 Undefine before defining.
6818 2011-04-28 Jan Hubicka <jh@suse.cz>
6820 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6821 nonconstant_names array.
6822 (estimate_function_body_sizes): Build nonconstant_names array; handle
6823 BUILT_IN_CONSTANT_P.
6825 2011-04-28 Richard Guenther <rguenther@suse.de>
6829 2011-04-28 Richard Guenther <rguenther@suse.de>
6831 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6832 as late as possible.
6834 2011-04-28 Richard Guenther <rguenther@suse.de>
6836 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6837 (debug_constraint): Do it here.
6838 (dump_constraints): And here.
6839 (rewrite_constraints): And here.
6840 (dump_constraint_edge): Remove.
6841 (dump_constraint_graph): Rewrite to produce DOT output.
6842 (solve_constraints): Build succ graph as late as possible.
6843 Dump constraint graphs before and after solving.
6845 2011-04-28 Richard Guenther <rguenther@suse.de>
6847 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6848 New function split out from ...
6849 (find_func_aliases): ... here. Call it.
6850 (find_func_aliases_for_call): Likewise.
6852 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6854 * internal-fn.h (internal_fn_name_array): Declare.
6855 (internal_fn_flags_array): Likewise.
6857 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6859 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6860 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6862 (ssemodefsuffix): Remove.
6863 (ssevecmodesuffix): New mode attribute.
6864 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6865 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6866 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6867 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6868 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6869 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6870 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6871 ssemodesuffix mode attribute.
6872 (float splitters): Use ssevecmodesuffix mode attribute.
6873 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6874 (sseinsmode): Rename from avxvecmode.
6875 (avxsizesuffix): Rename from avxmodesuffix.
6876 (sseintvecmode): Rename from avxpermvecmode.
6877 (ssedoublevecmode): Rename from ssedoublesizemode.
6878 (ssehalfvecmode): Rename from avxhalfvecmode.
6879 (ssescalarmode): Rename from avxscalarmode.
6880 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6881 templates for ssemodesuffix mode attribute.
6882 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6885 Adjust RTX patterns globally for renamed mode attributes.
6887 2011-04-27 Jan Hubcika <jh@suse.cz>
6889 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6890 * ipa-inline-analysis.c: Include alloc-pool.h.
6891 (edge_predicate_pool): New.
6892 (trye_predicate_p): New function
6893 (false_predicate_p): New function.
6894 (add_clause): Sanity check that false clauses are "optimized";
6895 never add clauses to predicate that is already known to be false.
6896 (and_predicate): Use flase_predicate_p.
6897 (evaulate_predicate): Rename to ...
6898 (evaluate_predicate): ... this one; update all callers; assert
6899 that false is not listed among possible truths.
6900 (dump_predicate): Use true_predicate_p.
6901 (account_size_time): Use false_predicate_p.
6902 (evaulate_conditions_for_edge): Rename to ...
6903 (evaluate_conditions_for_edge) ... this one.
6904 (edge_set_predicate): New function.
6905 (inline_edge_duplication_hook): Duplicate edge predicates.
6906 (inline_edge_removal_hook): Free edge predicates.
6907 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6908 (dump_inline_summary): Update.
6909 (estimate_function_body_sizes): Set edge predicates.
6910 (estimate_calls_size_and_time): Handle predicates.
6911 (estimate_callee_size_and_time): Update.
6912 (remap_predicate): Add toplev_predicate; update comment.
6913 (remap_edge_predicates): New function.
6914 (inline_merge_summary): Compute toplev predicate; update.
6915 (read_predicate): New function.
6916 (read_inline_edge_summary): Use it.
6917 (inline_read_section): Likewise.
6918 (write_predicate): New function.
6919 (write_inline_edge_summary): Use it.
6920 (inline_write_summary): Likewise.
6921 (inline_free_summary): Free alloc pool and edge summary vec.
6923 2011-04-27 Richard Guenther <rguenther@suse.de>
6925 * tree-ssa-structalias.c (changed_count): Remove.
6926 (changed): Use a bitmap.
6927 (unify_nodes): Adjust.
6928 (do_sd_constraint): Likewise.
6929 (do_ds_constraint): Likewise.
6930 (do_complex_constraint): Likewise.
6931 (solve_graph): Likewise.
6933 2011-04-27 Jan Hubicka <jh@suse.cz>
6935 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6937 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6939 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6940 (avx_vperm2f128_*_operand): Ditto.
6941 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6942 Use avx_vpermilp_parallel in insn condition.
6943 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6944 Use avx_vperm2f128_parallel in insn condition.
6946 2011-04-27 Richard Guenther <rguenther@suse.de>
6948 * Makefile.in (tree-ssa-structalias.o): Remove
6949 gt-tree-ssa-structalias.h dependency.
6950 (GTFILES): Remove tree-ssa-structalias.c.
6951 * tree.c (allocate_decl_uid): New function.
6952 (make_node_stat): Use it.
6953 (copy_node_stat): Likewise.
6954 * tree.h (allocate_decl_uid): Declare.
6955 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6956 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6957 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6958 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6959 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6960 (struct heapvar_map): Likewise.
6961 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6962 heapvar_insert): Likewise.
6963 (make_heapvar_for): Rename to ...
6964 (make_heapvar): ... this. Simplify.
6965 (fake_var_decl_obstack): New global var.
6966 (build_fake_var_decl): New function.
6967 (make_constraint_from_heapvar): Adjust.
6968 (handle_lhs_call): Likewise.
6969 (create_function_info_for): Likewise.
6970 (intra_create_variable_infos): Likewise.
6971 (init_alias_vars): Allocate fake_var_decl_obstack.
6972 (init_alias_heapvars, delete_alias_heapvars): Remove.
6973 (compute_points_to_sets): Do not call init_alias_heapvars.
6974 (ipa_pta_execute): Likewise.
6975 (delete_points_to_sets): Free fake_var_decl_obstack.
6977 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6979 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6980 (si_from_UTItype, si_to_UTItype): New functions.
6981 (__udivmodti4): Use them to implement type-punning.
6982 * config/spu/multi3.c (union qword_TItype): New data type.
6983 (si_from_TItype, si_to_TItype): New functions.
6984 (__multi3): Use them to implement type-punning.
6986 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6988 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6990 2011-04-27 Jan Hubicka <jh@suse.cz>
6992 * ipa-prop.c (function_insertion_hook_holder): New holder.
6993 (ipa_add_new_function): New function.
6994 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6995 Register/deregister holder.
6997 2011-04-27 Richard Guenther <rguenther@suse.de>
6999 PR tree-optimization/48772
7000 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7002 2011-04-27 Richard Guenther <rguenther@suse.de>
7004 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7005 TARGET_MEM_REF handling.
7007 2011-04-27 Nick Clifton <nickc@redhat.com>
7009 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7010 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7011 (REG_CLASS_NAMES): Likewise.
7012 (REG_CLASS_CONTENTS): Likewise.
7013 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7014 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7015 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7016 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7017 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7018 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7019 duplicate register classes.
7020 (frv_class_likely_spilled_p): Likewise.
7021 (frv_register_move_cost): Likewise.
7023 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7024 end of the regno_reg_class array.
7026 2011-04-27 Jakub Jelinek <jakub@redhat.com>
7029 * c-typeck.c (build_binary_op): Don't wrap arguments if
7030 int_operands is true.
7032 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7035 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7036 targetm.calls.must_pass_in_stack for void type.
7038 2011-04-26 Jan Hubicka <jh@suse.cz>
7040 * cgraphbuild.c (build_cgraph_edges): Update call
7041 of cgraph_create_edge and cgraph_create_indirect_edge.
7042 * cgraph.c (cgraph_create_edge_including_clones,
7043 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7044 cgraph_update_edges_for_call_stmt_node): Do not take nest
7045 argument; do not initialize call_stmt_size/time.
7046 (dump_cgraph_node): Do not dump nest.
7047 (cgraph_clone_edge): Do not take loop_nest argument;
7048 do not propagate it; do not clone call_stmt_size/time.
7049 (cgraph_clone_node): Likewise.
7050 (cgraph_create_virtual_clone): Update.
7051 * cgraph.h (struct cgraph_edge): Remove
7052 call_stmt_size/call_stmt_time/loop_nest.
7053 (cgraph_create_edge, cgraph_create_indirect_edge,
7054 cgraph_create_edge_including_clones, cgraph_clone_node): Update
7056 * tree-emutls.c (gen_emutls_addr): Update.
7057 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7058 loop_nest; handle indirect calls, too.
7059 (clone_inlined_nodes): Do not care about updating inline summaries.
7060 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7061 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7062 stream call_stmt_size/call_stmt_time/loop_nest.
7063 * ipa-inline.c (edge_badness): Update.
7064 (ipa_inline): dump summaries after inlining.
7065 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7067 (inline_edge_summary): New function.
7068 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7069 (inline_edge_removal_hook): Handle edge summaries.
7070 (inline_edge_duplication_hook): New hook.
7071 (inline_summary_alloc): Alloc hooks.
7072 (initialize_growth_caches): Do not register removal hooks.
7073 (free_growth_caches); Do not free removal hook.
7074 (dump_inline_edge_summary): New function.
7075 (dump_inline_summary): Use it.
7076 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7077 (inline_update_callee_summaries): New function.
7078 (inline_merge_summary): Use it.
7079 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7080 (read_inline_edge_summary): New function.
7081 (inline_read_section): Use it.
7082 (write_inline_edge_summary): New function.
7083 (inline_write_summary): Use it.
7084 (inline_free_summary): Free edge new holders.
7085 * tree-inline.c (copy_bb): Update.
7087 2011-04-26 Jason Merrill <jason@redhat.com>
7089 * tree-eh.c (lower_try_finally_switch): Create the label along with
7090 the CASE_LABEL_EXPR.
7092 2011-04-26 David S. Miller <davem@davemloft.net>
7093 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7095 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7096 * configure: Regenerate.
7098 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7101 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7103 (VEC_reduc): New code iterator and splitters for vector reduction.
7104 (VEC_reduc_name): Ditto.
7105 (VEC_reduc_rtx): Ditto.
7106 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7107 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7109 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7110 support for extracting SF on VSX.
7112 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7113 generating xscvspdp.
7114 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7115 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7116 double add, minimum, maximum vector reduction.
7117 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7118 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7119 optimize double vector reduction.
7120 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7122 2011-04-26 Joseph Myers <joseph@codesourcery.com>
7124 * config/fr30/fr30.h (inhibit_libc): Don't define.
7125 * config/m32r/m32r-protos.h: Correct comment.
7126 * config/v850/v850.h (GHS_default_section_names,
7127 GHS_current_section_names): Use tree, not union tree_node *.
7129 2011-04-26 Xinliang David Li <davidxl@google.com>
7131 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7132 * c-family/c-opts.c (c_common_handle_option): Set
7133 warn_maybe_uninitialized.
7134 * opts.c (common_handle_option): Ditto.
7135 * common.opt: New option.
7136 * tree-ssa.c (warn_uninit): Add one more parameter.
7137 (warn_uninitialized_var): Pass warning code.
7138 * tree-flow.h: Interface change.
7140 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7142 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7143 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7144 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7146 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7148 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7149 * config/mips/mips.opt (mmips-tfile): Remove.
7151 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7152 mips-tdump reference to ...
7153 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
7154 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7155 reference by Tru64 UNIX.
7157 2011-04-26 Jakub Jelinek <jakub@redhat.com>
7160 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7161 is error_mark_node, set value to NULL.
7163 PR tree-optimization/48734
7164 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7165 if return value from maybe_fold_*_comparsions isn't something
7166 the code is prepared to handle.
7168 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
7170 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7172 (ext_QIreg_nomode_operands): Remove.
7173 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7177 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
7179 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7181 2011-04-26 Richard Guenther <rguenther@suse.de>
7183 * c-typeck.c (build_unary_op): Do not expand array-refs via
7184 pointer arithmetic. Only adjust qualifiers for function types.
7186 2011-04-26 Richard Guenther <rguenther@suse.de>
7189 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7190 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7191 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7192 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7194 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7196 * doc/extend.texi: Document __underlying_type.
7198 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7200 * config/rs6000/titan.md (automata_option "progress"): Remove.
7202 2011-04-25 Jeff Law <law@redhat.com>
7204 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7206 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7208 * system.h (ENUM_BITFIELD): Remove.
7210 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
7211 Eric Botcazou <ebotcazou@adacore.com>
7213 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7214 for STORE_FLAG_VALUE==-1 case.
7216 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7219 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7220 LEGITIMATE_PIC_OPERAND_P.
7222 2011-04-24 Jan Hubicka <jh@suse.cz>
7224 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7226 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7227 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7228 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7229 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7230 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7231 Sanity check predicate length.
7232 (remap_predicate): Likewise; sanity check jump functions.
7233 (inline_read_section, inline_write_summary): Sanity check
7236 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7239 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7240 __is_literal_type, and __is_trivial; update throughout about
7241 possibly cv-qualified void types.
7243 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7245 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7246 testsuite and make it version agnostic.
7248 2011-04-22 Jan Hubicka <jh@suse.cz>
7250 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7252 2011-04-23 Jakub Jelinek <jakub@redhat.com>
7255 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7256 to VOID_TYPE even around MODIFY_EXPR.
7258 2011-04-22 Mike Stump <mikestump@comcast.net>
7260 * gensupport.c (read_md_rtx): Fix typo in comment.
7261 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7264 2011-04-22 Jan Hubicka <jh@suse.cz>
7266 * gengtype.c (open_base_files): Add ipa-inline.h include.
7267 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7268 ipa-prop.c; update all uses.
7269 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7270 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7271 merge summary of inlined function into former caller.
7272 * ipa-inline.c (max_benefit): Remove.
7273 (edge_badness): Compensate for removal of benefits.
7274 (update_caller_keys): Use
7275 reset_node_growth_cache/reset_edge_growth_cache.
7276 (update_callee_keys): Likewise.
7277 (update_all_callee_keys): Likewise.
7278 (inline_small_functions): Do not collect max_benefit; do not reset
7279 estimated_growth; call free_growth_caches and initialize_growth_caches.
7280 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7281 struct size_time_entry): New structures.
7282 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7283 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7284 and estimated_growth.
7285 (edge_growth_cache_entry): New structure.
7286 (node_growth_cache, edge_growth_cache): New global vars.
7287 (estimate_growth): Turn into inline.
7288 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7289 initialize_growth_caches, free_growth_caches): Declare.
7290 (estimate_edge_growth): Rewrite.
7291 (estimate_edge_time): Implement as inline cache lookup.
7292 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7294 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7295 (NUM_CONDITIONS): New constant.
7296 (predicate_conditions): New enum.
7297 (IS_NOT_CONSTANT): New constant.
7298 (edge_removal_hook_holder): New var.
7299 (node_growth_cache, edge_growth_cache): New global vars.
7300 (true_predicate, single_cond_predicate, false_predicate,
7301 not_inlined_predicate, add_condition, add_clause, and_predicates,
7302 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7303 dump_clause, dump_predicate, account_size_time,
7304 evaulate_conditions_for_edge): New functions.
7305 (inline_summary_alloc): Move to heap.
7306 (inline_node_removal_hook): Clear condition and entry vectors.
7307 (inline_edge_removal_hook): New function.
7308 (initialize_growth_caches, free_growth_caches): New function.
7309 (dump_inline_summary): Update.
7310 (edge_execution_predicate): New function.
7311 (will_be_nonconstant_predicate): New function.
7312 (estimate_function_body_sizes): Compute BB and constantness predicates.
7313 (compute_inline_parameters): Do not clear estimated_growth.
7314 (estimate_edge_size_and_time): New function.
7315 (estimate_calls_size_and_time): New function.
7316 (estimate_callee_size_and_time): New function.
7317 (remap_predicate): New function.
7318 (inline_merge_summary): New function.
7319 (do_estimate_edge_time): New function based on...
7320 (estimate_edge_time): ... this one.
7321 (do_estimate_edge_growth): New function.
7322 (do_estimate_growth): New function based on....
7323 (estimate_growth): ... this one.
7324 (inline_analyze_function): Analyze after deciding on jump functions.
7325 (inline_read_section): New function.
7326 (inline_read_summary): Use it.
7327 (inline_write_summary): Write all the new data.
7328 * ipa-prop.c (ipa_get_param_decl_index): Export.
7329 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7330 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7332 (ipa_get_lattice): Move here from ipa-cp.c
7333 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7334 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7335 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7336 cgraph_edge_inlinable_p): Remove.
7337 * cgraphunit.c: Include ipainline.h
7338 (cgraph_process_new_functions): Update call of
7339 compute_inline_parameters.
7341 2011-04-22 Richard Guenther <rguenther@suse.de>
7343 * tree.c (build_int_cst): Properly create canonicalized integer
7345 (build_int_cst_type): Remove scary comments.
7347 2011-04-22 Xinliang David Li <davidxl@google.com>
7349 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7350 by default when -Wno-error is not specified.
7351 * opts-global.c (decode_options): Remove call to
7352 control_warning_options.
7354 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7356 PR tree-optimization/48717
7357 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7358 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7360 2011-04-22 Joseph Myers <joseph@codesourcery.com>
7362 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7363 definition where used.
7365 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7368 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7369 TREE_STATIC variables declared inside of some OpenMP construct.
7371 2011-04-22 Martin Jambor <mjambor@suse.cz>
7374 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7376 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
7379 * c-typeck.c (pop_init_level): Do not warn about initializing
7382 2011-04-22 Alan Modra <amodra@gmail.com>
7384 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7385 when returning call_cookie.
7386 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7387 pointers, to functions with no more vector args than the current
7388 function, and some non-local calls for ABI_V4.
7389 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7390 sibcall_nonlocal_aix64): Combine to ..
7391 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7392 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7393 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7394 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7395 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7397 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7398 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7399 sibcall_value_symbolic_64): Delete.
7401 2011-04-21 Xinliang David Li <davidxl@google.com>
7403 * cgraph.h: Remove pid.
7404 * cgraph.c: Remove pid.
7405 * value-prof.c (init_node_map): New function.
7406 (del_node_map): New function.
7407 (find_func_by_funcdef_no): New function.
7408 (gimple_ic_transform): Call new function.
7409 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7410 * function.c (get_last_funcdef_no): New function.
7411 * function.h (get_last_funcdef_no): New function.
7412 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7413 to libgcov function.
7414 (tree-profiling): Call node map init and delete function.
7416 2011-04-21 Ian Lance Taylor <iant@google.com>
7418 * godump.c (go_format_type): Use exported Go name for anonymous
7421 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7423 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7424 Call builtin_function_type_list instead of builtin_function_type.
7425 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7427 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7429 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7430 build_function_type_list instead of build_function_type.
7431 Delete variable `endlink'.
7433 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7435 * config/s390/s390.c (s390_init_builtins): Call
7436 build_function_type_list instead of build_function_type.
7438 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7440 * config/ia64/ia64.c (ia64_init_builtins): Call
7441 build_function_type_list instead of builtin_function_type.
7443 2011-04-21 Easwaran Raman <eraman@google.com>
7445 * cfgexpand.c (stack_var): Remove OFFSET...
7446 (add_stack_var): ...and its reference here...
7447 (expand_stack_vars): ...and here.
7448 (stack_var_cmp): Sort by descending order of size.
7449 (partition_stack_vars): Change heuristic.
7450 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7451 (dump_stack_var_partition): Add newline after each partition.
7453 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7454 Jeff Law <law@redhat.com>
7456 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7457 * gengtype.c (matching_file_name_substitute): Likewise.
7459 2011-04-21 Richard Guenther <rguenther@suse.de>
7462 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7464 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7466 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7468 2011-04-21 Richard Guenther <rguenther@suse.de>
7470 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7473 2011-04-21 Richard Guenther <rguenther@suse.de>
7475 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7476 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7477 Use DECL_P, not SSA_VAR_P.
7478 (ptr_derefs_may_alias_p): Likewise.
7479 (ptr_deref_may_alias_ref_p_1): Likewise.
7480 (decl_refs_may_alias_p): Likewise.
7481 (refs_may_alias_p_1): Likewise.
7482 (ref_maybe_used_by_call_p_1): Likewise.
7483 (call_may_clobber_ref_p_1): Likewise.
7484 (indirect_ref_may_alias_decl_p): Assume indirect refrences
7485 are either MEM_REF or TARGET_MEM_REF.
7486 (indirect_refs_may_alias_p): Likewise.
7487 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7488 for MEM_EXPR of indirect calls.
7490 2011-04-21 Tristan Gingold <gingold@adacore.com>
7492 * vmsdbgout.c (write_srccorr): Compute file length from the string.
7493 (dst_file_info_struct): Remove flen field.
7494 (lookup_filename): Remove code that set flen field.
7496 2011-04-21 Tristan Gingold <gingold@adacore.com>
7498 * config/ia64/ia64.c (ia64_start_function): Add a guard.
7500 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
7503 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7504 vec_extract and vec_concat for non-SSE4_1 targets.
7506 2011-04-21 Richard Guenther <rguenther@suse.de>
7508 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7511 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7513 * config/i386/cygming.h (union tree_node, TREE): Don't define or
7515 (FILE): Don't undefine.
7517 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7519 * config/alpha/alpha.c (struct machine_function): Use rtx, not
7521 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7523 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
7524 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
7525 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7527 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
7528 definitions where used.
7529 * config/microblaze/microblaze.h (struct microblaze_args): Use
7530 rtx, not struct rtx_def *.
7531 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7533 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7534 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
7535 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7536 not struct rtx_def *.
7537 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7539 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7541 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
7543 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7545 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7546 operand_equal_p to compare DR_BASE_ADDRESSes.
7547 (vect_check_interleaving): Likewise.
7549 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7552 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
7553 for all Neon struct constants.
7555 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7557 * target.def (legitimate_constant_p): New hook.
7558 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
7559 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
7560 * doc/tm.texi: Regenerate.
7561 * hooks.h (hook_bool_mode_rtx_true): Declare.
7562 * hooks.c (hook_bool_mode_rtx_true): Define.
7563 * system.h (LEGITIMATE_CONSTANT_P): Poison.
7564 * calls.c (precompute_register_parameters): Replace uses of
7565 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
7566 (emit_library_call_value_1): Likewise.
7567 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
7568 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
7569 * ira-costs.c (scan_one_insn): Likewise.
7570 * recog.c (general_operand, immediate_operand): Likewise.
7571 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
7572 * reload1.c (init_eliminable_invariants): Likewise.
7574 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
7576 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
7577 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
7579 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7580 * config/alpha/predicates.md (input_operand): Update call to
7581 alpha_legitimate_constant_p.
7583 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
7584 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
7585 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
7586 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7587 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
7588 (arm_legitimate_constant_p): New functions.
7589 (arm_cannot_force_const_mem): Make static.
7591 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
7593 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
7594 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
7595 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
7596 instead of bfin_legitimate_constant_p.
7597 (bfin_legitimate_constant_p): Make static. Add a mode argument.
7598 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7600 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7602 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7604 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7605 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7606 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7607 (frv_legitimate_constant_p): Make static. Add a mode argument.
7609 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7610 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7611 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7613 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7614 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7615 * config/i386/i386.c (legitimate_constant_p): Rename to...
7616 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7618 (ix86_cannot_force_const_mem): Update accordingly.
7619 (ix86_legitimate_address_p): Likewise.
7620 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7621 * config/i386/i386.md: Update commentary.
7623 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7624 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7625 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7626 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7628 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7630 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7631 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7632 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7633 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7635 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7636 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7637 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7639 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7640 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7641 (m32r_legitimate_constant_p): New function.
7643 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7644 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7645 LEGITIMATE_CONSTANT_P.
7646 (LEGITIMATE_CONSTANT_P): Delete.
7647 * config/m68k/m68k.c (m68k_expand_prologue): Call
7648 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7649 (m68k_legitimate_constant_p): New function.
7650 * config/m68k/m68k.md: Update comments.
7652 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7653 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7654 (mcore_legitimate_constant_p): New function.
7656 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7657 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7658 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7659 Add a mode argument.
7660 (mep_legitimate_address): Update accordingly.
7661 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7663 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7665 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7666 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7667 static. Check OP's mode for VOIDmode.
7668 (microblaze_legitimate_constant_p): New function.
7669 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7671 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7672 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7673 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7674 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7675 * config/mips/predicates.md: Update comments.
7677 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7678 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7679 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7680 (mmix_legitimate_constant_p): Make static, return a bool, and take
7682 (mmix_print_operand_address): Update accordingly.
7684 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7686 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7687 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7688 static. Add a mode argument.
7689 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7691 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7693 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7694 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7695 (pa_legitimate_constant_p): New function.
7697 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7699 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7700 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7701 (pdp11_legitimate_constant_p): New function.
7703 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7704 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7705 (rs6000_legitimate_constant_p): New function.
7707 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7708 (rx_legitimate_constant_p): ...this.
7709 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7710 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7711 (rx_legitimate_constant_p): ...this.
7712 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7713 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7715 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7716 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7717 * config/s390/s390.c (legitimate_constant_p): Rename to...
7718 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7719 and add a mode argument.
7720 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7722 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7724 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7725 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7726 (sh_legitimate_constant_p): New function.
7728 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7729 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7730 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7731 (legitimate_constant_p): Rename to...
7732 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7734 (constant_address_p): Update accordingly.
7736 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7737 argument and return a bool.
7738 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7739 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7740 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7741 (spu_rtx_costs): Update accordingly.
7742 * config/spu/predicates.md (vec_imm_operand): Likewise.
7744 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7746 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7747 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7748 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7750 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7751 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7752 * config/vax/vax.c (legitimate_constant_p): Likewise.
7754 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7755 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7756 (xtensa_legitimate_constant_p): New function.
7758 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7760 * target.def (cannot_force_const_mem): Add a mode argument.
7761 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7762 * doc/tm.texi: Regenerate.
7763 * hooks.h (hook_bool_mode_rtx_false): Declare.
7764 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7765 (hook_bool_mode_const_rtx_true): Likewise.
7766 (hook_bool_mode_rtx_false): New function.
7767 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7768 to be non-VOID. Update call to cannot_force_const_mem.
7769 (find_reloads): Update accordingly.
7770 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7771 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7773 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7774 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7775 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7776 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7777 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7778 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7779 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7780 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7781 (m68k_cannot_force_const_mem): ...this new function.
7782 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7784 (mips_const_insns, mips_legitimize_const_move): Update calls.
7785 (mips_secondary_reload_class): Likewise.
7786 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7787 (pa_cannot_force_const_mem): ...this new function.
7788 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7789 (rs6000_cannot_force_const_mem): ...this new function.
7790 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7792 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7793 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7795 (xtensa_cannot_force_const_mem): ...this new function.
7797 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7799 * config/mips/mips.c (mips16_build_function_stub): Call
7800 build_function_type_list instead of build_function_type.
7801 (mips16_build_call_stub): Likewise.
7803 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7805 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7806 instead of build_function_type.
7808 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7810 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7811 instead of build_function_type.
7813 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7816 * config/i386/i386.md (insv): Change operand 0 constraint to
7817 "register_operand". Change operand 1 and 2 constraint to
7818 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7819 * config/i386/sse.md (sse4_1_pinsrb): Export.
7820 (sse2_pinsrw): Ditto.
7821 (sse4_1_pinsrd): Ditto.
7822 (sse4_1_pinsrq): Ditto.
7823 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7824 * config/i386/i386.c (ix86_expand_pinsr): New.
7826 2011-04-20 Easwaran Raman <eraman@google.com>
7828 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7829 containing union type only with -fstrict-aliasing.
7831 2011-04-20 Jim Meyering <meyering@redhat.com>
7833 Remove useless if-before-free tests.
7834 * calls.c (expand_call, save_area): Likewise.
7835 * cfgcleanup.c (try_forward_edges): Likewise.
7836 * collect2.c (collect_execute): Likewise.
7837 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7838 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7839 * coverage.c (coverage_checksum_string): Likewise.
7840 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7841 * cselib.c (cselib_init): Likewise.
7842 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7843 (df_set_clean_cfg): Likewise.
7844 * function.c (free_after_compilation): Likewise.
7845 * gcc.c (do_spec_1, main): Likewise.
7846 * gcov.c (create_file_names): Likewise.
7847 * gensupport.c (identify_predicable_attribute): Likewise.
7848 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7849 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7850 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7851 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7852 * ipa-pure-const.c (local_pure_const): Likewise.
7853 * ipa-reference.c (propagate): Likewise.
7854 * ira-costs.c (free_ira_costs): Likewise.
7855 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7856 * matrix-reorg.c (mat_free): Likewise.
7857 * prefix.c (get_key_value): Likewise.
7858 * profile.c (compute_value_histograms): Likewise.
7859 * reload1.c (free_reg_equiv): Likewise.
7860 * sched-deps.c (free_deps): Likewise.
7861 * sel-sched-ir.c (fence_clear): Likewise.
7862 * sese.c (set_rename, if_region_set_false_region): Likewise.
7863 * tree-data-ref.c (free_rdg): Likewise.
7864 * tree-eh.c (lower_try_finally): Likewise.
7865 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7866 * tree-ssa-live.c (delete_var_map): Likewise.
7867 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7868 * tree-ssa-pre.c (phi_trans_add): Likewise.
7870 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7872 PR tree-optimization/48611
7873 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7874 beyond ERT_MUST_NOT_THROW region.
7876 2011-04-20 Catherine Moore <clm@codesourcery.com>
7878 * config/mips/mips.opt (mfix-24k): New.
7879 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7880 * config/mips/mips.md (length): Increase by 4 for stores if
7882 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7883 all noreorder if fixing 24K errata.
7884 * doc/invoke.texi: Document mfix-24k.
7886 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7888 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7889 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7891 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7893 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7894 (const_ok_for_op): ... to here.
7896 2011-04-20 Kai Tietz <ktietz@redhat.com>
7898 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7899 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7901 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7903 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7905 2011-04-20 Richard Guenther <rguenther@suse.de>
7907 PR tree-optimization/47892
7908 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7911 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7913 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7915 2011-04-20 Tristan Gingold <gingold@adacore.com>
7917 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7919 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7923 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7924 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7925 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7926 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7927 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7929 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7932 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7933 (avr_asm_named_section, avr_asm_output_aligned_common,
7934 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7935 New functions to update...
7936 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7937 (avr_asm_init_sections): Overwrite section callbacks for
7938 data_section, bss_section.
7939 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7941 (avr_file_end): ...here.
7943 2011-04-20 Richard Guenther <rguenther@suse.de>
7946 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7947 objects and types here. Adjust for their offset before comparing.
7949 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7951 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7954 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7956 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7957 (GIMPLE_H): Include $(INTERNAL_FN_H).
7958 (OBJS-common): Add internal-fn.o.
7959 (internal-fn.o): New rule.
7960 * internal-fn.def: New file.
7961 * internal-fn.h: Likewise.
7962 * internal-fn.c: Likewise.
7963 * gimple.h: Include internal-fn.h.
7964 (GF_CALL_INTERNAL): New gf_mask.
7965 (gimple_statement_call): Put fntype into a union with a new
7967 (gimple_build_call_internal): Declare.
7968 (gimple_build_call_internal_vec): Likewise.
7969 (gimple_call_same_target_p): Likewise.
7970 (gimple_call_internal_p): New function.
7971 (gimple_call_internal_fn): Likewise.
7972 (gimple_call_fntype): Return null for internal calls.
7973 (gimple_call_set_fntype): Assert that the function is not internal.
7974 (gimple_call_set_fn): Likewise.
7975 (gimple_call_set_fndecl): Likewise.
7976 (gimple_call_set_internal_fn): New function.
7977 (gimple_call_addr_fndecl): Handle null functions.
7978 (gimple_call_return_type): Likewise null types.
7979 * gimple.c (gimple_build_call_internal_1): New function.
7980 (gimple_build_call_internal): Likewise.
7981 (gimple_build_call_internal_vec): Likewise.
7982 (gimple_call_same_target_p): Likewise.
7983 (gimple_call_flags): Handle calls to internal functions.
7984 (gimple_call_fnspec): New function.
7985 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7986 (gimple_has_side_effects): Handle null functions.
7987 (gimple_rhs_has_side_effects): Likewise.
7988 (gimple_call_copy_skip_args): Handle calls to internal functions.
7989 * cfgexpand.c (expand_call_stmt): Likewise.
7990 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7991 * gimple-fold.c (gimple_fold_call): Handle null functions.
7992 (gimple_fold_stmt_to_constant_1): Don't fold
7993 calls to internal functions.
7994 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7996 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7997 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7998 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7999 (do_warn_unused_result): Likewise.
8000 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8001 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8002 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8003 the target of a call.
8004 (initialize_hash_element): Update accordingly.
8005 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8006 (iterative_hash_hashable_expr): Handle calls to internal functions.
8007 (print_expr_hash_elt): Likewise.
8008 * tree-ssa-pre.c (can_value_number_call): Likewise.
8009 (eliminate): Handle null functions.
8010 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8011 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8012 (find_func_aliases): Likewise.
8013 * value-prof.c (gimple_ic_transform): Likewise.
8014 (gimple_indirect_call_to_profile): Likewise.
8015 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8016 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8018 2011-04-19 Jan Hubicka <jh@suse.cz>
8020 * ipa-inline-transform.c (save_inline_function_body): Add comments.
8021 * ipa-inline.c (inline_small_functions): Compute summaries first,
8022 populate heap later.
8024 2011-04-19 Jan Hubicka <jh@suse.cz>
8026 * cgraph.h (save_inline_function_body): Remove.
8027 * ipa-inline-transform.c: New file, broke out of...
8028 * ipa-inline.c: ... this one; Update toplevel comment.
8029 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8031 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8032 (cgraph_mark_inline_edge): Rename to inline_call; move to
8033 ipa-inline-transform.c.
8034 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8035 move to ipa-inline-transform.c
8036 (recursive_inlining, inline_small_functions, flatten_function,
8037 ipa_inline, inline_always_inline_functions,
8038 early_inline_small_functions): Update.
8039 (inline_transform): Move to ipa-inline-transform.c.
8040 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8042 * Makefile.in (ipa-inline-transform.o): New file.
8043 * cgraphunit.c (save_inline_function_body): Move to
8044 ipa-inline-transform.c
8046 2011-04-19 DJ Delorie <dj@redhat.com>
8048 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8049 registers if we already know there aren't any.
8050 (m32c_emit_epilogue): Don't emit a barrier here.
8051 (m32c_emit_eh_epilogue): Likewise.
8052 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8053 operands at expand time.
8054 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8056 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8057 duplicates. Provide aliases instead.
8058 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8059 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8062 2011-04-19 Anatoly Sokolov <aesok@post.ru>
8064 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8065 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8066 (general_or_i64_p, sparc_register_move_cost): New function.
8068 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8070 * doc/install.texi (Configuration, --enable-threads): Remove mach.
8071 Add lynx, mipssde. Sort table.
8073 2011-04-19 Xinliang David Li <davidxl@google.com>
8075 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8078 2011-04-19 Jakub Jelinek <jakub@redhat.com>
8081 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8082 is a SUBREG with non-MODE_INT mode inside of it.
8084 2011-04-19 Martin Jambor <mjambor@suse.cz>
8086 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8087 also according to actual contants.
8088 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8089 (gimple_fold_call): Use it.
8090 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8092 2011-04-19 Martin Jambor <mjambor@suse.cz>
8094 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8095 non-pointer assignments.
8097 2011-04-19 Martin Jambor <mjambor@suse.cz>
8099 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8100 account anc_offset and otr_type from the indirect edge info.
8101 * ipa-prop.c (get_ancestor_addr_info): New function.
8102 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8103 get_ancestor_addr_info, call it.
8104 (ipa_note_param_call): Do not initialize information about polymorphic
8105 calls, return the indirect call graph edge. Remove the last
8106 parameter, adjust all callers.
8107 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8108 parameters. Initialize polymorphic information in the indirect edge.
8110 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8113 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8114 the types if they have different enumeration identifiers.
8116 2011-04-19 Jan Hubicka <jh@suse.cz>
8118 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8119 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8120 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8121 (optimize_function_for_size_p) ... here.
8123 2011-04-19 Richard Guenther <rguenther@suse.de>
8126 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8129 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8131 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8132 if DECL_NO_INLINE_WARNING_P is set on the function.
8134 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8137 * reload1.c (inc_for_reload): Return void. All callers changed.
8138 (emit_input_reload_insns): Don't try to delete previous output
8139 reloads to a register, or record spill_reg_store for autoincs.
8141 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8143 * gengtype.h: Updated copyright year.
8144 (struct input_file_st): Add inpisplugin field.
8145 (type_fileloc): New function.
8147 (write_typed_struct_alloc_def): Add gcc_assert.
8148 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8149 (write_typed_alloc_defns): Don't output for plugin files.
8150 (input_file_by_name): Clear inpisplugin field.
8151 (main): Set inpisplugin field for plugin files.
8153 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8155 * gengtype-state.c (string_eq): New.
8156 (read_state): Use string_eq instead of strcmp when creating the
8159 2011-04-19 Wei Guozhi <carrot@google.com>
8162 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8163 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8165 * config/arm/constraints.md (Uu): New constraint.
8166 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8168 2011-04-19 Tristan Gingold <gingold@adacore.com>
8170 * config.gcc (-*-*-*vms): Added.
8171 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8173 * config/vms/vms-ld.c: New file.
8174 * config/vms/vms-ar.c: New file.
8175 * config/vms/t-vmsnative: New file.
8177 2011-04-18 Xinliang David Li <davidxl@google.com>
8179 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8181 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8184 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8185 if TREE_TYPE (v) is non-NULL.
8187 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8188 gimple_get_virt_mehtod_for_binfo.
8189 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8190 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8192 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8194 2011-04-18 Michael Matz <matz@suse.de>
8195 Steve Ellcey <sje@cup.hp.com>
8197 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8198 use its mode as source mode if it isn't VOIDmode.
8200 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8202 * doc/passes.texi: Fill crossref nodes.
8204 2011-04-18 Jim Meyering <meyering@redhat.com>
8206 Fix doubled-word typos in comments and strings
8207 * config/alpha/vms-unwind.h: s/for for/for/
8208 * config/arm/unwind-arm.h: Likewise.
8209 * config/microblaze/microblaze.c: Likewise.
8210 * config/sh/constraints.md: s/in in/in/
8211 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8213 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
8215 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8216 (AVX_FLOAT_MODE_P): Ditto.
8217 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8218 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8219 (AVX_VEC_FLOAT_MODE_P): Ditto.
8220 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8221 (UNSPEC_MASKSTORE): Ditto.
8222 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8223 Merge from <sse>_movmsk<ssemodesuffix> and
8224 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8225 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8227 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8228 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8229 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8231 2011-04-18 Jan Hubicka <jh@suse.cz>
8233 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8235 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8236 (want_inline_function_called_once_p): Break out the logic from
8238 (edge_badness): Ensure that profile is not misupdated.
8239 (lookup_recursive_calls): Prioritize by call frequencies.
8240 (inline_small_functions): Move program size estimates here;
8241 actually process whole queue even when unit growth has been
8242 met. (to properly compute inline_failed reasons and for the
8243 case unit size decrease.) Revisit comments on recursive inlining.
8244 (ipa_inline): Remove unit summary code; first inline hot calls
8245 of functions called once, cold calls next.
8246 (order, nnodes): Remove unused variables.
8247 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8248 (GTFILES): Remove ipa-inline.c
8249 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8251 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8253 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8255 2011-04-18 Jie Zhang <jie@codesourcery.com>
8256 Richard Earnshaw <rearnsha@arm.com>
8258 * arm.c (neon_builtin_type_bits): Remove.
8259 (typedef enum neon_builtin_mode): New.
8260 (T_MAX): Don't define.
8261 (typedef enum neon_builtin_datum): Remove bits, codes[],
8262 num_vars and base_fcode. Add mode, code and fcode.
8263 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8264 VAR10): Change accordingly.
8265 (neon_builtin_data[]): Change accordingly
8266 (arm_init_neon_builtins): Change accordingly.
8267 (neon_builtin_compare): Remove.
8268 (locate_neon_builtin_icode): Remove.
8269 (arm_expand_neon_builtin): Change accordingly.
8271 * arm.h (enum arm_builtins): Move to ...
8272 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8274 * arm.c (arm_builtin_decl): Declare.
8275 (TARGET_BUILTIN_DECL): Define.
8276 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8277 (arm_builtin_decls[]): New.
8278 (arm_init_neon_builtins): Store builtin declarations in
8279 arm_builtin_decls[].
8280 (arm_init_tls_builtins): Likewise.
8281 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8282 (arm_builtin_decl): New.
8284 2011-04-18 Richard Guenther <rguenther@suse.de>
8286 * tree.c (upper_bound_in_type): Build properly canonicalized
8288 (lower_bound_in_type): Likewise.
8290 2011-04-18 Richard Guenther <rguenther@suse.de>
8292 * gimple.h (gimple_call_addr_fndecl): New function.
8293 (gimple_call_fndecl): Use it.
8294 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8296 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8297 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8299 2011-04-18 Richard Guenther <rguenther@suse.de>
8302 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8304 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8307 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8308 DECL_IN_CONSTANT_POOL without RTL.
8310 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8311 Ira Rosen <ira.rosen@linaro.org>
8314 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8315 to match neon_vzip/vuzp/vtrn_internal.
8316 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8317 outputs explicitly dependent on both inputs.
8318 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8320 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8322 PR tree-optimization/48616
8323 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8324 whether the shift is by scalar or vector based on whether all SLP
8325 scalar stmts have the same rhs.
8327 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8329 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8332 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8335 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8338 2011-04-17 Jan Hubicka <jh@suse.cz>
8340 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8341 * cgrpahunit.c (cgraph_finalize_function): Do not set
8342 finalized_by_frontend.
8343 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8344 finalized_by_frontend.
8346 2011-04-17 Jan Hubicka <jh@suse.cz>
8348 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8349 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8350 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8351 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8353 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8355 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8357 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8360 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8361 is non-null before accessing it.
8362 (input_cgraph): Remove trailing spaces.
8364 2011-04-17 Revital Eres <revital.eres@linaro.org>
8366 * params.def (sms-min-sc): New param flag.
8367 * modulo-sched.c (sms_schedule): Use it.
8368 * doc/invoke.texi (sms-min-sc): Document it.
8370 2011-04-17 Jan Hubicka <jh@suse.cz>
8372 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8373 present, also set gimple_call_set_cannot_inline.
8374 * ipa-inline.c: Update toplevel comment.
8376 (cgraph_clone_inlined_nodes): Fix linebreaks.
8377 (cgraph_check_inline_limits): Restructure to ...
8378 (caller_growth_limits): ... this one; be more tolerant
8379 on growth in nested inline chains; add explanatory comment;
8380 fix stack accounting thinko introduced by previous patch.
8381 (cgraph_default_inline_p): Remove.
8382 (report_inline_failed_reason): New function.
8383 (can_inline_edge_p): New function.
8384 (can_early_inline_edge_p): New function.
8385 (leaf_node_p): Move upwards in file.
8386 (want_early_inline_function_p): New function.
8387 (want_inline_small_function_p): New function.
8388 (want_inline_self_recursive_call_p): New function.
8389 (cgraph_edge_badness): Rename to ...
8390 (edge_badness) ... this one; fix linebreaks.
8391 (update_edge_key): Update call of edge_baddness; add
8392 detailed dump about queue updates.
8393 (update_caller_keys): Use can_inline_edge_p and
8394 want_inline_small_function_p.
8395 (cgraph_decide_recursive_inlining): Rename to...
8396 (recursive_inlining): Use can_inline_edge_p and
8397 want_inline_self_recursive_call_p; simplify and remove no longer
8399 (cgraph_set_inline_failed): Remove.
8400 (add_new_edges_to_heap): Use can_inline_edge_p and
8401 want_inline_small_function_p.
8402 (cgraph_decide_inlining_of_small_functions): Rename to ...
8403 (inline_small_functions): ... this one; cleanup; use
8404 can/want predicates; cleanup debug ouput; work edges till fibheap
8405 is exhausted and do not stop once unit growth is reached; remove
8406 later loop processing remaining edges.
8407 (cgraph_flatten): Rename to ...
8408 (flatten_function): ... this one; use can_inline_edge_p
8409 and can_early_inline_edge_p predicates.
8410 (cgraph_decide_inlining): Rename to ...
8411 (ipa_inline): ... this one; remove unreachable nodes before
8412 inlining functions called once; simplify the pass.
8413 (cgraph_perform_always_inlining): Rename to ...
8414 (inline_always_inline_functions): ... this one; use
8415 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8416 (cgraph_decide_inlining_incrementally): Rename to ...
8417 (early_inline_small_functions): ... this one; simplify
8418 using new predicates; cleanup; make dumps prettier.
8419 (cgraph_early_inlining): Rename to ...
8420 (early_inliner): newer inline regular functions into always-inlines;
8421 fix updating of call stmt summaries.
8422 (pass_early_inline): Update for new names.
8423 (inline_transform): Fix formating.
8424 (gate_cgraph_decide_inlining): Rename to ...
8425 (pass_ipa_inline): ... this one.
8426 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8427 * ipa-inline-analysis.c (dump_inline_summary): Update.
8428 (compute_inline_parameters): Do not compute disregard_inline_limits;
8429 look for mismatching arguments.
8430 (estimate_growth): Fix handlig of non-trivial self recursion.
8431 (inline_read_summary): Do not read info->disregard_inline_limits.
8432 (inline_write_summary): Do not write info->disregard_inline_limits.
8433 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8434 and move all checks into can_inline_edge_p predicate; re-enable code
8435 comparing optimization levels.
8436 (expand_call_inline): Do not test inline_forbidden_into_p.
8437 * Makefile.in (ipa-inline.o): Update arguments.
8439 2011-04-17 Revital Eres <revital.eres@linaro.org>
8441 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8443 2011-04-17 Revital Eres <revital.eres@linaro.org>
8445 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8447 2011-04-17 Michael Matz <matz@suse.de>
8449 PR tree-optimization/48622
8451 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8452 in same order as they're written.
8454 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8456 * config/pa/predicates.md: Reorganize and simplify predicates.
8457 Eliminate duplicate code checks.
8458 (arith_operand): Rename to arith14_operand
8459 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8460 * config/pa/pa.md: Use renamed operands.
8461 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8462 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8463 arith11_operand, adddi3_operand, indexed_memory_operand,
8464 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8465 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8466 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8467 move_dest_operand, move_src_operand, prefetch_cc_operand,
8468 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8469 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8470 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8471 div_operand, int5_operand, movb_comparison_operator,
8472 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8473 arith_double_operand, ireg_operand, lhs_lshift_operand,
8474 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8475 integer_store_memory_operand): Likewise.
8476 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8477 (integer_store_memory_operand, read_only_operand,
8478 function_label_operand, borx_reg_operand,
8479 non_hard_reg_operand): Likewise.
8480 (eq_neq_comparison_operator): Delete unused operator.
8481 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8482 function_label_operand.
8483 (emit_move_sequence): Likewise.
8485 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8487 * config/i386/sse.md (sseunpackmode): New mode attribute.
8488 (ssepackmode): Ditto.
8489 (vec_pack_trunc_<mode>): Macroize expander from
8490 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8491 (vec_unpacks_lo_<mode>): Macroize expander from
8492 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8493 (vec_unpacks_hi_<mode>): Macroize expander from
8494 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8495 (vec_unpacku_lo_<mode>): Macroize expander from
8496 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8497 (vec_unpacku_hi_<mode>): Macroize expander from
8498 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8499 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8500 ix86_expand_sse4_unpack.
8501 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8503 2011-04-16 Jan Hubicka <jh@suse.cz>
8505 * cgraphbuild.c: Include ipa-inline.h.
8506 (reset_inline_failed): Use initialize_inline_failed.
8507 * cgraph.c: Include ipa-inline.h.
8508 (cgraph_create_node_1): Do not initialize estimated_growth.
8509 (initialize_inline_failed): More to ipa-inline-analysis.c
8510 (dump_cgraph_node): Do not dump inline flags.
8511 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8512 and disregard_inline_limits flags.
8513 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8514 time, size, estimated_growth.
8515 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8517 * cgraphunit.c (cgraph_decide_is_function_needed): Use
8518 DECL_DISREGARD_INLINE_LIMITS.
8519 (cgraph_analyze_function): Do not initialize
8520 node->local.disregard_inline_limits.
8521 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8522 inlinable, versionable and disregard_inline_limits.
8523 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8524 cgraph_check_inline_limits, cgraph_default_inline_p,
8525 cgraph_edge_badness, update_caller_keys, update_callee_keys,
8526 add_new_edges_to_heap): Update.
8527 (cgraph_decide_inlining_of_small_function): Update; set
8528 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
8529 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8530 cgraph_decide_inlining_incrementally): Update.
8531 * ipa-inline.h (inline_summary): Add inlinable, versionable,
8532 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8533 time, size and estimated_growth parameters.
8534 (estimate_edge_growth): Update.
8535 (initialize_inline_failed): Declare.
8536 * ipa-split.c: Include ipa-inline.h
8537 (execute_split_functions): Update.
8538 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8539 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8540 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8541 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8542 estimated_growth to INT_MIN.
8543 (inline_node_duplication_hook): Likewise.
8544 (dump_inline_summary): Dump new fields.
8545 (compute_inline_parameters): Update.
8546 (estimate_edge_time, estimate_time_after_inlining,
8547 estimate_size_after_inlining, estimate_growth, inline_read_summary,
8548 inline_write_summary):
8549 (initialize_inline_failed): Move here from cgraph.c.
8550 * tree-sra.c: Include ipa-inline.h.
8551 (ipa_sra_preliminary_function_checks): Update.
8552 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
8555 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8557 * config/i386/sse.md (V16): New mode iterator.
8559 (AVXMODEQI, AVXMODEDI): Remove.
8560 (sse2, sse3): New mode attribute.
8561 (mov<mode>): Use V16 mode iterator.
8562 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
8563 (push<mode>1): Use V16 mode iterator.
8564 (movmisalign<mode>): Ditto.
8565 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8566 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
8567 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8568 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
8569 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
8570 avx_movdqu<avxmodesuffix>.
8571 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
8572 *avx_movdqu<avxmodesuffix>.
8573 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
8574 avx_lddqu<avxmodesuffix>.
8575 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
8576 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
8577 avx_movnt<AVXMODEDI:mode>.
8578 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
8579 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
8581 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
8584 * haifa-sched.c (prune_ready_list, schedule_block): Use
8585 sched_pressure_p rather than flag_sched_pressure.
8587 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
8589 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8590 cgraph_get_node instead of cgraph_get_create_node.
8592 2011-04-15 Jakub Jelinek <jakub@redhat.com>
8594 * cfgexpand.c (expand_debug_expr): Use
8595 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
8597 2011-04-15 Michael Matz <matz@suse.de>
8599 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
8600 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
8601 * function.c (gimplify_parameters): Ditto.
8602 * gimplify.c (gimplify_vla_decl): Ditto.
8604 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8605 (gimple_call_set_alloca_for_var): New inline function.
8606 (gimple_call_alloca_for_var_p): Ditto.
8607 * gimple.c (gimple_build_call_from_tree): Remember
8608 CALL_ALLOCA_FOR_VAR_P state.
8609 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8611 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8612 calls if they were for VLA objects.
8614 2011-04-15 Martin Jambor <mjambor@suse.cz>
8616 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8619 2011-04-15 Martin Jambor <mjambor@suse.cz>
8622 * tree-emutls.c (lower_emutls_function_body): Call
8623 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8626 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8628 * c-decl.c (detect_field_duplicates): Call
8629 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8631 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8633 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8634 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8635 * ipa-pure-const.c (check_stmt): Call it.
8636 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8638 2011-04-15 Richard Guenther <rguenther@suse.de>
8640 PR tree-optimization/48290
8641 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8642 Properly decide inhibiting propagation based on the valueized
8643 operand. Do loop-closed SSA form preserving here ...
8644 (init_copy_prop): ... not here.
8646 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8649 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8650 (*ieee_smax<mode>3): Likewise.
8652 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8654 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8655 Replace match_operand with match_dup for the third operand in
8658 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8660 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8661 to track processing of conditionals. Update all callers.
8662 (try_combine, simplify_if_then_else): Update.
8664 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8666 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8669 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
8671 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8672 instead of match_operand for operand 3.
8674 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8676 * recog.h (insn_operand_data): Add an "allows_mem" field.
8677 * genoutput.c (output_operand_data): Initialize it.
8678 * optabs.c (maybe_legitimize_operand_same_code): New function.
8679 (maybe_legitimize_operand): Use it when matching the original
8682 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8684 * gimplify.c: Fix issues in comments throughout.
8685 (voidify_wrapper_expr): Fix long line.
8686 (build_stack_save_restore): Likewise.
8687 (gimplify_loop_expr): Likewise.
8688 (gimplify_compound_lval): Likewise.
8689 (gimplify_init_ctor_eval): Likewise.
8690 (gimplify_modify_expr_rhs): Likewise.
8691 (omp_notice_threadprivate_variable): Likewise.
8693 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8695 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8696 original one if this is not a builtin function.
8698 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8701 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8702 offset it as needed based on top 2 bits in operands[3], change
8703 MEM mode to SFmode and mask those 2 bits away from operands[3].
8705 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8707 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8708 change from objc_declare_protocols() to objc_declare_protocol().
8710 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8712 * config/i386/sse.md (sse4_1): New mode attribute.
8713 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8714 avx_blend<ssemodesuffix><avxmodesuffix> and
8715 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8716 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8717 avx_blendv<ssemodesuffix><avxmodesuffix> and
8718 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8719 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8720 avx_dp<ssemodesuffix><avxmodesuffix> and
8721 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8722 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8723 (sse4_1_packusdw): Merge with *avx_packusdw.
8724 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8725 (sse4_1_pblendw): Merge with *avx_pblendw.
8726 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8727 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8728 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8730 (sse4_1_round<ssescalarmodesuffix>): Merge with
8731 *avx_round<ssescalarmodesuffix>.
8732 (aesenc): Merge with *avx_aesenc.
8733 (aesenclast): Merge with *avx_aesenclast.
8734 (aesdec): Merge with *avx_aesdec.
8735 (aesdeclast): Merge with *avx_aesdeclast.
8736 (pclmulqdq): Merge with *pclmulqdq.
8737 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8739 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8741 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8744 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8745 (align_local_variable): This. Update DECL_ALIGN.
8746 (add_stack_var): Updated.
8747 (expand_one_stack_var): Likewise.
8749 2011-04-14 Richard Guenther <rguenther@suse.de>
8751 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8753 (dse_initialize_block_local_data, dse_leave_block,
8754 record_voperand_set, get_stmt_uid): Likewise.
8755 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8756 (dse_optimize_stmt): Remove voperand set handling code.
8757 Simplify and improve to handle any kind of killing stmt.
8758 (dse_record_phi): Remove.
8759 (dse_enter_block): Simplify.
8760 (tree_ssa_dse): Likewise.
8761 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8763 2011-04-14 Jan Hubicka <jh@suse.cz>
8765 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8766 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8767 (cgraph_local_info): Remove inline_summary.
8768 * ipa-cp.c: Include ipa-inline.h.
8769 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8770 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8772 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8773 (input_overwrite_node): Do not set inline summary.
8774 (input_node): Do not stream inline summary.
8775 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8776 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8777 growth; we do not have inline parameters computed for that anyway.
8778 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8779 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8780 (inline_summary_t): New type and VECtor.
8781 (debug_inline_summary, dump_inline_summaries): Declare.
8782 (inline_summary): Use VOCtor.
8783 (estimate_edge_growth): Kill hack computing call stmt size directly.
8784 * lto-section-in.c (lto_section_name): Add inline section.
8785 * ipa-inline-analysis.c: Include lto-streamer.h
8786 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8787 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8788 (inline_summary_vec): Define.
8789 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8790 dump_inline_summaries): New functions.
8791 (estimate_function_body_sizes): Properly compute size/time of outgoing
8793 (compute_inline_parameters): Alloc inline_summary; do not compute
8794 size/time of incomming calls.
8795 (estimate_edge_time): Avoid missing time summary hack.
8796 (inline_read_summary): Read inline summary info.
8797 (inline_write_summary): Write inline summary info.
8798 (inline_free_summary): Free all hooks and inline summary vector.
8799 * lto-streamer.h: Add LTO_section_inline_summary section.
8800 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8801 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8803 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8805 * tree-vectorizer.h (vect_strided_store_supported): Add a
8806 HOST_WIDE_INT argument.
8807 (vect_strided_load_supported): Likewise.
8808 (vect_permute_store_chain): Return void.
8809 (vect_transform_strided_load): Likewise.
8810 (vect_permute_load_chain): Delete.
8811 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8812 count argument. Check that the count is a power of two.
8813 (vect_strided_load_supported): Likewise.
8814 (vect_permute_store_chain): Return void. Update after above changes.
8815 Assert that the access is supported.
8816 (vect_permute_load_chain): Likewise.
8817 (vect_transform_strided_load): Return void.
8818 * tree-vect-stmts.c (vectorizable_store): Update calls after
8819 above interface changes.
8820 (vectorizable_load): Likewise.
8821 (vect_analyze_stmt): Don't check for strided powers of two here.
8823 2011-04-14 Richard Guenther <rguenther@suse.de>
8825 PR tree-optimization/48590
8826 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8827 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8828 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8829 BUILT_IN_STACK_SAVE.
8830 * tree-ssa-dce.c (propagate_necessity): Handle
8831 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8833 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8835 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8838 2011-04-14 Richard Guenther <rguenther@suse.de>
8840 * tree.h (get_object_alignment_1): Declare.
8841 * builtins.c (get_object_alignment_1): Split out worker from ...
8842 (get_object_alignment): ... here.
8843 * fold-const.c (get_pointer_modulus_and_residue): Use
8844 get_object_alignment_1.
8846 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8848 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8850 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8851 parameter. Generalise code to handle arrays as well as vectors.
8852 (vect_setup_realignment): Update accordingly.
8853 * tree-vect-stmts.c (vectorizable_store): Likewise.
8854 (vectorizable_load): Likewise.
8856 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8858 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8859 within the per-copy loop.
8861 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8863 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8866 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8868 * doc/options.texi (Negative): Explicitly mention that the
8869 Negative chain must be circular.
8871 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8873 * function.h (block_chainon): Declare.
8874 * function.c (block_chainon): Define.
8876 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8877 Eric Weddington <eric.weddington@atmel.com>
8878 Georg-Johann Lay <avr@gjlay.de>
8880 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8882 (avr_init_builtins, avr_expand_builtin,
8883 avr_expand_delay_cycles, avr_expand_unop_builtin,
8884 avr_expand_binop_builtin ): New functions.
8885 (avr_builtin_id): New enum
8886 (struct avr_builtin_description): New struct
8887 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8888 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8890 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8891 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8892 UNSPECV_DELAY_CYCLES): new enumeration values
8893 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8894 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8895 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8896 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8897 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8898 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8899 "fmulsu"): New insns
8901 * config/avr/avr-c.c: fix line endings
8902 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8903 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8904 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8905 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8906 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8908 * doc/extend.texi (AVR Built-in Functions): New node
8909 (Target Builtins): Add documentation of AVR
8912 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8915 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8916 alone. Error if non-const data has attribute progmem.
8918 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8920 * tree.h (struct tree_constructor): Include tree_typed instead of
8922 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8923 TS_TYPED instead of TS_COMMON.
8925 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8927 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8928 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8929 (sse2_psadbw): Merge with *avx_psadbw.
8930 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8931 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8932 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8933 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8934 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8935 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8936 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8937 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8938 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8939 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8940 (ssse3_palignrti): Merge with *avx_palignrti.
8942 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8944 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8945 * tree-ssanames.c (fini_ssanames): VEC_free it.
8946 (make_ssa_name_fn): Update for VECness of free_ssanames.
8947 (release_ssa_name, release_dead_ssa_names): Likewise.
8948 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8950 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8951 TS_TYPED instead of TS_COMMON.
8953 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8955 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8956 statistics_counter_event.
8957 * tree-ssa-copyrename.c (stats): Define.
8958 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8959 statistics_counter_event.
8960 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8961 (bswap_stats, widen_mul_stats): Define.
8962 (insert_reciprocals): Increment rdivs_inserted.
8963 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8964 rfuncs_inserted. Add calls to statistics_counter_event.
8965 (execute_cse_sincos_1): Increment inserted.
8966 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8967 statistics_counter_event.
8968 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8969 of bswap_stats. Add calls to statistics_counter_event.
8970 (convert_mult_to_widen): Increment widen_mults_inserted.
8971 (convert_plusminus_to_widen): Increment maccs_inserted.
8972 (convert_mult_to_fma): Increment fmas_inserted.
8973 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8974 calls to statistics_counter_event.
8976 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8978 PR rtl-optimization/48455
8979 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8980 `temp_costs->mem_cost'.
8982 2011-04-13 Jan Hubicka <jh@suse.cz>
8984 * ipa-inline.h: New file.
8985 * ipa-inline-analysis.c: New file. Broken out of ...
8986 * ipa-inline.c: ... this file; update toplevel comment;
8987 include ipa-inline.h
8988 (inline_summary): Move to ipa-inline.h
8989 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8990 ipa-inline-analysis.c.
8991 (cgraph_estimate_time_after_inlining): Rename to
8992 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8993 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8994 to estimate_edge_growth.
8995 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8996 rename to estimate_size_after_inlining.
8997 (cgraph_mark_inline_edge): Update for new naming convention.
8998 (cgraph_check_inline_limits): Likewise.
8999 (cgraph_edge_badness): Likewise.
9000 (cgraph_decide_recursive_inlining): Likewise.
9001 (cgraph_decide_inlining_of_small_functions): Likewise.
9002 (cgraph_decide_inlining_incrementally): Likewise.
9003 (cgraph_estimate_growth): Rename to estimate_growth; move to
9004 ipa-inline-analysis.c.
9005 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9006 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9007 (compute_inline_parameters): Likewise.
9008 (compute_inline_parameters_for_current): Likewise.
9009 (pass_inline_parameters): Likewise.
9010 (inline_indirect_intraprocedural_analysis): Likewise.
9011 (analyze_function): Rename to inline_analyze_function; likewise.
9012 (add_new_function): Move to ipa-inline-analysis.c.
9013 (inline_generate_summary): Likewise.
9014 (inline_read_summary): Likewise.
9015 (inline_write_summary): Likewise.
9016 * Makefile.in (ipa-inline-analysis.c): New file.
9018 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9020 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9021 * configure: Regenerate.
9023 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9025 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9026 instead of tree_common.
9027 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9029 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9030 TS_TYPED rather than TS_COMMON.
9031 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9033 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
9036 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9037 r20 around calls of __tablejump_elpm__
9039 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9042 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9044 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9046 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
9048 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9049 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9050 (cfi_vec): New typedef.
9051 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9052 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9053 (cie_cfi_vec): New static variable.
9054 (cie_cfi_head): Delete.
9055 (add_cfi): Accept a cfi_vec * as first argument. All callers and
9056 declaration changed. Use vector rather than list operations.
9057 (new_cfi): Don't initialize the dw_cfi_next field.
9058 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9059 rather than list operations.
9060 (lookup_cfa): Use vector rather than list operations.
9061 (output_cfis): New argument upto. Accept a cfi_vec rather than
9062 a dw_cfi_ref list head as argument. All callers changed.
9063 Iterate over the vector using upto as a maximum index.
9064 (output_all_cfis): New static function.
9065 (output_fde): Use vector rather than list operations. Use the
9066 new upto argument for output_cfis rather than manipulating a
9068 (dwarf2out_begin_prologue): Change initializations to match
9070 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9071 from the vector length rather than searching for the end of a list.
9072 Use output_all_cfis.
9073 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9075 2011-04-13 Nick Clifton <nickc@redhat.com>
9077 * config/rx/rx.md (movmemsi): Do not use this pattern when
9078 volatile pointers are involved.
9080 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9082 * config/i386/sse.md (pinsrbits): Remove.
9083 (sse2_packsswb): Merge with *avx_packsswb.
9084 (sse2_packssdw): Merge with *avx_packssdw.
9085 (sse2_packuswb): Merge with *avx_packuswb.
9086 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9087 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9088 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9089 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9090 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9091 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9092 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9093 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9094 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9095 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9096 (sse2_loadld): Merge with *avx_loadld.
9097 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9098 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9099 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9100 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9101 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9103 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9105 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9107 * print-tree.c (print_node): Likewise.
9108 * tree-inline.c (copy_tree_r): Likewise.
9109 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9110 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9111 instead of TS_COMMON.
9112 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9113 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9114 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9115 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9116 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9118 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9120 (TREE_CHAIN): Check for a TS_COMMON structure.
9121 (TREE_TYPE): Check for a TS_TYPED structure.
9123 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
9125 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9126 cgraph_get_create_node instead of cgraph_node.
9128 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9130 * c-parser.c (c_parser_initelt): Updated call to
9131 objc_build_message_expr.
9132 (c_parser_postfix_expression): Likewise.
9134 2011-04-12 Kai Tietz <ktietz@redhat.com>
9136 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9137 MASK_MS_BITFIELD_LAYOUT bit.
9139 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9141 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9142 assert it is always true.
9143 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9146 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9148 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9149 compiling Objective-C to be more efficient.
9151 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
9153 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9156 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9158 * recog.h, genoutput.c, optabs.c: Revert last patch.
9160 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9163 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9165 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9167 * recog.h (insn_operand_data): Add an "allows_mem" field.
9168 * genoutput.c (output_operand_data): Initialize it.
9169 * optabs.c (maybe_legitimize_operand_same_code): New function.
9170 (maybe_legitimize_operand): Use it when matching the original
9173 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9175 * genpreds.c (process_define_predicate): Move most processing
9176 to gensupport.c. Continue to validate the expression.
9177 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9178 (process_define_predicate): Move processing to gensupport.c.
9179 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9180 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9181 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9183 (valid_predicate_name_p): New function, split out from old
9184 genpreds.c:process_define_predicate.
9185 (process_define_predicate): New function, combining code from
9186 old genpreds.c and genrecog.c functions.
9187 (process_rtx): Call it for DEFINE_PREDICATE and
9188 DEFINE_SPECIAL_PREDICATE.
9190 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9192 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9193 size of a '%A' memory reference.
9194 (T_DREG, T_QREG): New neon_builtin_type_bits.
9195 (arm_init_neon_builtins): Assert that the load and store operands
9196 are neon_struct_operands.
9197 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9198 (NEON_ARG_MEMORY): New builtin_arg.
9199 (neon_dereference_pointer): New function.
9200 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9201 Handle NEON_ARG_MEMORY.
9202 (arm_expand_neon_builtin): Update after above interface changes.
9203 Use NEON_ARG_MEMORY for loads and stores.
9204 * config/arm/predicates.md (neon_struct_operand): New predicate.
9205 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9206 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9207 (V_four_elem): Tweak formatting.
9208 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9209 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9210 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9211 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9212 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9213 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9214 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9215 Use %A in the output template.
9216 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9217 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9218 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9219 the width of the memory access. Remove post-increment.
9220 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9222 2011-04-12 Nick Clifton <nickc@redhat.com>
9224 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9225 instruction for interrupt handlers if the target is the basic V850
9227 (expand_epilogue): Likewise.
9229 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9231 PR rtl-optimization/48549
9232 * combine.c (propagate_for_debug): Also stop after BB_END of
9233 this_basic_block. Process LAST and just stop processing after it.
9234 (combine_instructions): If last_combined_insn has been deleted,
9235 set last_combined_insn to its PREV_INSN.
9237 2011-04-12 Richard Guenther <rguenther@suse.de>
9239 PR tree-optimization/46076
9240 * gimple.h (struct gimple_statement_call): Add fntype field.
9241 (gimple_call_fntype): Adjust.
9242 (gimple_call_set_fntype): New function.
9243 * gimple.c (gimple_build_call_1): Set the call function type.
9244 * gimplify.c (gimplify_call_expr): Preserve the function
9245 type the frontend used for the call.
9246 (gimplify_modify_expr): Likewise.
9247 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9249 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9251 * tree-ssa.c (useless_type_conversion_p): Function pointer
9252 conversions are useless.
9254 2011-04-12 Martin Jambor <mjambor@suse.cz>
9256 * cgraph.h (cgraph_node): Remove function declaration.
9257 (cgraph_create_node): Declare.
9258 (cgraph_get_create_node): Likewise.
9259 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9260 Updated all callers.
9261 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9262 the decl does not already exist. Call cgraph_get_create_node instead
9264 (cgraph_get_create_node): New function.
9265 (cgraph_same_body_alias): Update comment.
9266 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9267 assert it does not return NULL.
9268 (cgraph_update_edges_for_call_stmt): Likewise.
9269 (cgraph_clone_edge): Likewise.
9270 (cgraph_create_virtual_clone): Likewise.
9271 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9272 instead of cgraph_node.
9273 (cgraph_add_new_function): Call cgraph_create_node or
9274 cgraph_get_create_node instead of cgraph_node.
9275 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9276 instead of cgraph_node.
9277 (record_eh_tables): Likewise.
9278 (mark_address): Likewise.
9279 (mark_load): Likewise.
9280 (build_cgraph_edges): Call cgraph_get_create_node instead
9282 (rebuild_cgraph_edges): Likewise.
9283 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9284 instead of cgraph_node.
9285 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9287 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9288 cgraph_create_node instead of cgraph_node.
9289 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9291 * lto-cgraph.c (input_node): Likewise.
9292 * lto-streamer-in.c (input_function): Likewise.
9293 * varasm.c (mark_decl_referenced): Likewise.
9294 (assemble_alias): Likewise.
9296 2011-04-12 Martin Jambor <mjambor@suse.cz>
9298 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9299 instead of cgraph_node and assert it does not return NULL.
9300 * lto-streamer-in.c (lto_read_body): Likewise.
9301 * omp-low.c (new_omp_context): Likewise.
9302 (create_task_copyfn): Likewise.
9303 * tree-emutls.c (lower_emutls_function_body): Likewise.
9304 * matrix-reorg.c (transform_allocation_sites): Likewise.
9306 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9309 * c-typeck.c (build_asm_expr): Error out on attempts to use
9310 void type outputs or inputs for constraints that allow reg or
9313 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9314 Richard Earnshaw <rearnsha@arm.com>
9317 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9318 to use sign-magnitude offsets. Reject unsupported unaligned
9319 cases. Add detailed description in comments.
9320 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9321 condition from TARGET_32BIT to TARGET_ARM.
9323 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9325 * tree.h (struct typed_tree): New.
9326 (struct tree_common): Include it instead of tree_base.
9327 (TREE_TYPE): Update for new location of type field.
9328 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9329 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9330 (union tree_node): Add typed field.
9331 * treestruct.def (TS_TYPED): New.
9332 * lto-streamer.c (check_handled_ts_structures): Handle it.
9333 * tree.c (MARK_TS_TYPED): New macro.
9334 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9336 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9338 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9339 (force_nonfallthru): Do not alter the loop nest if no basic block
9342 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9344 * config/i386/sse.md (VI): New mode iterator.
9346 (AVX256MODEI): Ditto.
9347 (AVXMODEF4P): Ditto.
9348 (avxvecpsmode): Ditto.
9349 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9350 (sse2_andnot<mode>3): New expander.
9351 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9352 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9353 (<any_logic:code><mode>3): Use VI mode iterator.
9354 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9355 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9356 (*andnottf3): Handle AVX three-operand constraints.
9357 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9359 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9360 Robert Millan <rmh@gnu.org>
9362 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9363 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9364 GNU_USER_DYNAMIC_LINKER64): Define.
9365 (REG_NAME): Don't undefine.
9366 (MD_UNWIND_SUPPORT): Undefine.
9367 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9368 (REG_NAME): Don't undefine.
9369 (MD_UNWIND_SUPPORT): Undefine.
9370 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9372 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9374 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9375 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9377 2011-04-11 Xinliang David Li <davidxl@google.com>
9379 * value-profile.c (check_ic_target): New function.
9380 (gimple_ic_transform): Sanity check indirect call target.
9381 * gimple-low.c (gimple_check_call_args): Interface change.
9382 (gimple_check_call_matching_types): New function.
9383 * tree-inline.c (tree_can_inline_p): Call new function.
9385 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9387 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9388 tree-pretty-print.h & realmpfr.h.
9390 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9393 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9394 (setup_allocno_and_important_classes): Ditto.
9396 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9398 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9399 GNU_USER_DYNAMIC_LINKER.
9400 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9401 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9402 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9403 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9404 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9405 GNU_USER_TARGET_OS_CPP_BUILTINS.
9406 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9407 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9408 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9409 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9410 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9411 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9412 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9413 GNU_USER_TARGET_OS_CPP_BUILTINS.
9414 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9415 GNU_USER_DYNAMIC_LINKER.
9416 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9417 GNU_USER_TARGET_OS_CPP_BUILTINS.
9418 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9419 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9420 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9421 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9422 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9423 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9424 GNU_USER_DYNAMIC_LINKER64): Remove.
9425 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9426 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9427 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9428 GNU_USER_DYNAMIC_LINKER.
9429 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9430 GNU_USER_TARGET_OS_CPP_BUILTINS.
9431 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9432 GNU_USER_TARGET_OS_CPP_BUILTINS.
9433 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9434 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9435 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9436 GNU_USER_TARGET_OS_CPP_BUILTINS.
9437 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9438 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9439 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9440 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9441 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9442 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9443 GNU_USER_DYNAMIC_LINKER.
9444 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9445 GNU_USER_TARGET_OS_CPP_BUILTINS.
9446 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9447 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9448 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9449 GNU_USER_DYNAMIC_LINKER.
9450 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9451 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9452 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9453 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9454 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9455 GNU_USER_DYNAMIC_LINKER.
9456 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9457 GNU_USER_DYNAMIC_LINKERN32.
9458 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9459 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9460 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9461 GNU_USER_DYNAMIC_LINKER32.
9462 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9463 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9464 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9465 GNU_USER_DYNAMIC_LINKER.
9466 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9467 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9468 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9469 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9470 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9471 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9472 GNU_USER_DYNAMIC_LINKER32.
9473 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9474 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9475 GNU_USER_DYNAMIC_LINKER.
9476 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9477 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9478 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9479 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9480 GNU_USER_DYNAMIC_LINKER64.
9481 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9482 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9483 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9484 GNU_USER_DYNAMIC_LINKER.
9485 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9486 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9487 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9488 GNU_USER_DYNAMIC_LINKER.
9489 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9490 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9491 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9492 GNU_USER_DYNAMIC_LINKER32.
9493 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9494 GNU_USER_DYNAMIC_LINKER64.
9495 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9496 GNU_USER_DYNAMIC_LINKER64.
9497 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9498 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9499 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
9500 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9501 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9503 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9505 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
9506 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9507 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9508 GNU_USER_DYNAMIC_LINKER.
9509 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9510 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
9511 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9512 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9513 GNU_USER_DYNAMIC_LINKER64.
9514 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9515 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9516 GNU_USER_LINK_EMULATION.
9517 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9518 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9519 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9520 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9521 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9522 CPP_SPEC, CC1_SPEC): Remove.
9523 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9524 (GNU_USER_DYNAMIC_LINKER): Define.
9525 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9526 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9527 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9528 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9529 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9530 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9531 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9532 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9533 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9534 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9535 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9536 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9537 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9538 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9539 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9540 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9541 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9542 GNU_USER_DYNAMIC_LINKER.
9543 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9544 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9545 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9546 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9547 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9548 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9549 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
9550 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
9551 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
9552 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
9554 2011-04-11 Kai Tietz <ktietz@redhat.com>
9558 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
9559 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
9561 (ix86_is_msabi_thiscall): Removed.
9562 (ix86_is_type_thiscall): Likewise.
9563 (ix86_get_callcvt): New function.
9564 (ix86_comp_type_attributes): Simplify check.
9565 (ix86_function_regparm): Use ix86_get_callcvt for calling
9566 convention attribute checks.
9567 (ix86_return_pops_args): Likewise.
9568 (ix86_static_chain): Likewise.
9569 (x86_this_parameter): Likewise.
9570 (x86_output_mi_thunk): Likewise.
9571 (ix86_function_type_abi): Optimize check for types without attributes.
9572 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
9573 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
9574 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
9576 (IX86_BASE_CALLCVT): Helper macro.
9577 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9578 Use ix86_get_callcvt for calling convention attribute checks and avoid
9579 symbol-decoration for stdcall in TARGET_RTD case.
9580 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
9582 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
9585 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9587 * config/i386/sse.md (VI_128): New mode iterator.
9588 (VI12_128): Rename from SSEMODE12.
9589 (VI14_128): Rename from SSEMODE14.
9590 (VI124_128): New mode iterator.
9591 (VI24_128): Rename from SSEMODE248.
9592 (VI248_128): Rename from SSEMODE248.
9593 (SSEMODE124C8): Remove.
9594 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9595 (*sse2_<plusminus_insn><mode>3): Merge with
9596 *avx_<plusminus_insn><mode>3.
9597 (*mulv8hi3): Merge with *avx_mulv8hi3.
9598 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
9599 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
9600 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
9601 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9602 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9603 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9604 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9605 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9606 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9607 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9608 (*<smaxmin:code>v8hi3): Ditto.
9609 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9610 (*<smaxmin:code>v16qi3): Ditto.
9611 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9612 (*sse2_eq<mode>3): Ditto.
9613 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9614 (*sse2_gt<mode>3): Ditto.
9615 (vcondv2di): Split out of vcond<mode>.
9616 (vconduv2di): Split out of vcondu<mode>.
9618 2011-04-11 Richard Guenther <rguenther@suse.de>
9620 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9621 before calling tree_low_cst.
9623 2011-04-11 Richard Guenther <rguenther@suse.de>
9625 * stor-layout.c (layout_type): Compute all array index size operations
9626 in the original type.
9627 (initialize_sizetypes): Add comment.
9628 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9630 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9632 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9634 2011-04-11 Martin Jambor <mjambor@suse.cz>
9636 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9637 of cgraph_node, handle NULL return value.
9638 (cgraph_global_info): Likewise.
9639 (cgraph_rtl_info): Likewise.
9640 * tree-inline.c (estimate_num_insns): Likewise.
9641 * gimplify.c (unshare_body): Likewise.
9642 (unvisit_body): Likewise.
9643 (gimplify_body): Likewise.
9644 * predict.c (optimize_function_for_size_p): Likewise.
9645 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9646 (call_may_clobber_ref_p_1): Likewise.
9647 * varasm.c (function_section_1): Likewise.
9648 (assemble_start_function): Likewise.
9650 2011-04-11 Martin Jambor <mjambor@suse.cz>
9652 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9654 * final.c (rest_of_clean_state): Likewise.
9655 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9656 * passes.c (pass_init_dump_file): Likewise.
9657 (execute_all_ipa_transforms): Likewise.
9658 (function_called_by_processed_nodes_p): Likewise.
9659 * predict.c (maybe_hot_frequency_p): Likewise.
9660 (probably_never_executed_bb_p): Likewise.
9661 (compute_function_frequency): Likewise.
9662 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9663 (unnest_nesting_tree_1): Likewise.
9664 (lower_nested_functions): Likewise.
9665 * tree-optimize.c (execute_fixup_cfg): Likewise.
9666 (tree_rest_of_compilation): Likewise.
9667 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9668 * tree-sra.c (ipa_early_sra): Likewise.
9669 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9670 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9671 * ipa.c (record_cdtor_fn): Likewise.
9672 * ipa-inline.c (cgraph_early_inlining): Likewise.
9673 (compute_inline_parameters_for_current): Likewise.
9674 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9675 * ipa-pure-const.c (local_pure_const): Likewise.
9676 * ipa-split.c (split_function): Likewise.
9677 (execute_split_functions): Likewise.
9678 * cgraphbuild.c (build_cgraph_edges): Likewise.
9679 (rebuild_cgraph_edges): Likewise.
9680 (cgraph_rebuild_references): Likewise.
9681 (remove_cgraph_callee_edges): Likewise.
9682 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9683 (verify_cgraph_node): Likewise.
9684 (cgraph_analyze_functions): Likewise.
9685 (cgraph_preserve_function_body_p): Likewise.
9686 (save_inline_function_body): Likewise.
9687 (save_inline_function_body): Likewise.
9688 * tree-inline.c (copy_bb): Likewise.
9689 (optimize_inline_calls): Likewise.
9691 2011-04-11 Martin Jambor <mjambor@suse.cz>
9693 PR tree-optimization/48195
9694 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9695 ipa_check_create_edge_args.
9696 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9697 ipa_check_create_edge_args.
9698 * ipa-inline.c (inline_generate_summary): Do not call
9699 ipa_check_create_node_params and ipa_check_create_edge_args.
9700 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9701 ipa_check_create_edge_args.
9703 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9705 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9707 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9708 * function.c (record_hard_reg_sets): Likewise.
9709 * ira.c (compute_regs_asm_clobbered): Likewise.
9710 * sched-deps.c (sched_analyze_1): Likewise.
9711 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9713 2011-04-09 Xinliang David Li <davidxl@google.com>
9715 PR tree-optimization/PR48484
9716 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9717 has_valid_pred lazily
9719 2011-04-09 Duncan Sands <baldrick@free.fr>
9721 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9723 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9725 * combine.c (combine_validate_cost): Adjust comments. Set registered
9726 cost of I0 to zero at the end, if any.
9728 2011-04-08 Xinliang David Li <davidxl@google.com>
9730 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9731 to insane profile data.
9733 2011-04-08 Xinliang David Li <davidxl@google.com>
9735 * ipa-cp.c (ipcp_update_profiling): Correct
9736 negative scale factor due to insane profile data.
9738 2011-04-08 Xinliang David Li <davidxl@google.com>
9740 * final.c (dump_basic_block_info): New function.
9741 (final): Dump basic block.
9742 (final_scan_insn): Remove old dump.
9744 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9747 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9750 2011-04-08 Michael Matz <matz@suse.de>
9753 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9755 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9756 * rtl.h (rebuild_jump_labels_chain): Declare.
9757 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9758 insns inserted on edges.
9760 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9762 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9763 * config/arm/arm-arches.def: New.
9764 * config/arm/arm-opts.h: New.
9765 * config/arm/genopt.sh: New.
9766 * config/arm/arm-tables.opt: New (generated).
9767 * config/arm/arm.c (arm_handle_option, arm_target_help,
9768 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9769 (all_architectures): Get most table contents from arm-arches.def.
9770 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9771 arm_selected_tune here.
9772 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9773 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9774 (march=, mcpu=, mtune=): Use Enum and Var.
9775 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9776 (arm.o): Update dependencies.
9778 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9780 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9782 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9783 (write_typed_alloc_defns): Likewise.
9784 (main): Calls write_typed_alloc_defns with output_header.
9786 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9789 * ira-color.c (setup_profitable_hard_regs): Add comments.
9790 Don't take prohibited hard regs into account.
9791 (setup_conflict_profitable_regs): Rename to
9792 get_conflict_profitable_regs.
9793 (check_hard_reg_p): Check prohibited hard regs.
9795 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9797 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9798 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9799 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9801 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9804 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9805 move from floating point to shift amount register.
9806 (emit_move_sequence): Remove secondary reload support for floating
9807 point to shift amount amount register copies.
9808 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9809 amount register copies.
9810 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9811 register, return false if mode isn't a scalar integer mode.
9812 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9814 2011-04-08 Richard Guenther <rguenther@suse.de>
9816 * gimple.c (gimple_call_flags): Remove kludge.
9818 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9820 * sel-sched.c (sel_region_init): Move call to
9821 sel_setup_region_sched_flags after setup_current_loop_nest.
9823 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9825 PR rtl-optimization/48272
9826 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9827 init_insn_reg_pressure_info. Adjust a caller.
9828 * sched-int.h (init_insn_reg_pressure_info): Declare.
9829 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9830 when sched-pressure is enabled.
9832 2011-04-08 Richard Guenther <rguenther@suse.de>
9834 * gimple.c (gimple_set_modified): Do not queue calls to
9835 MODIFIED_NORETURN_CALLS here ...
9836 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9838 2011-04-08 Richard Guenther <rguenther@suse.de>
9841 * toplev.c (lang_dependent_init): Do not open asm_out_file
9842 in WPA mode, nor perform debug machinery initialization.
9843 (finalize): Do not unlink asm_out_file in WPA mode.
9845 2011-04-08 Richard Guenther <rguenther@suse.de>
9847 * gimple.h (gimple_call_fntype): New function.
9848 (gimple_call_return_type): Use it.
9849 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9850 * gimple-low.c (gimple_check_call_args): Likewise.
9851 * gimple.c (gimple_call_flags): Likewise.
9852 (gimple_call_arg_flags): Likewise.
9853 (gimple_call_return_flags): Likewise.
9854 * tree-cfg.c (verify_gimple_call): Likewise.
9855 (do_warn_unused_result): Likewise.
9856 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9857 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9859 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9861 PR rtl-optimization/48235
9862 * sel-sched.c (code_motion_process_successors): Recompute the last
9863 insn in basic block if control flow changed.
9864 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9865 Update condition for ilist_remove.
9867 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9869 PR rtl-optimization/48302
9870 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9871 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9872 it to record added preheader blocks.
9873 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9874 on to sel_add_loop_preheaders.
9875 (sel_region_init): Move call to setup_current_loop_nest after
9878 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9881 * cfgloop.h (loop_has_exit_edges): New helper.
9882 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9884 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9885 that have no exit edges.
9887 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9889 PR rtl-optimization/48442
9890 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9891 all callers. Adjust assert.
9893 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9895 PR tree-optimization/48377
9896 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9897 is_packed to true even for types with smaller TYPE_ALIGN than
9900 2011-04-08 Richard Guenther <rguenther@suse.de>
9903 * doc/tm.texi: Re-generate.
9905 2011-04-08 Wei Guozhi <carrot@google.com>
9908 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9909 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9910 * config/arm/arm.md (*push_multi): Change the length computation to
9913 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9915 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9916 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9917 * doc/tm.texi: Regenerate.
9918 * system.h (ASM_OUTPUT_BSS): Poison.
9919 * varasm.c (asm_output_bss): Remove function.
9920 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9922 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9923 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9924 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9925 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9927 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9929 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9931 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9933 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9935 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9938 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9940 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9941 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9942 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9944 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9945 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9946 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9947 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9948 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9949 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9950 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9951 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9952 options. Don't map other m68k options manually. Don't handle
9953 old-style options as canonical.
9954 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9955 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9957 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9959 * basic-block.h (force_nonfallthru): Move to...
9960 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9961 (force_nonfallthru): ...here.
9962 * cfghooks.c (force_nonfallthru): New function.
9963 * cfgrtl.c (force_nonfallthru): Rename into...
9964 (rtl_force_nonfallthru): ...this.
9965 (commit_one_edge_insertion): Do not set AUX field.
9966 (commit_edge_insertions): Do not discover new basic blocks.
9967 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9968 (cfg_layout_rtl_cfg_hooks): Likewise.
9969 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9970 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9971 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9973 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9975 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9978 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9980 * config/i386/sse.md: Update copyright year.
9981 (avxcvtvecmode): Remove.
9982 (sse_movhlps): Merge with *avx_movhlps.
9983 (sse_movlhps): Merge with *avx_movlhps.
9984 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9985 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9986 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9987 (sse_loadhps): Merge with *avx_loadhps.
9988 (sse_storelps): Merge with *avx_storelps.
9989 (sse_loadlps): Merge with *avx_loadlps.
9990 (sse_movss): Merge with *avx_movss.
9991 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9992 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9993 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9994 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9995 (vec_set<mode>_0): Ditto.
9996 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9997 (sse4_1_insertps): Merge with *avx_insertps.
9998 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9999 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10000 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10001 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10002 (sse2_storehpd): Merge with *avx_storehpd.
10003 (sse2_loadhpd): Merge with *avx_loadhpd.
10004 (sse2_loadlpd): Merge with *avx_loadlpd.
10005 (sse2_movsd): Merge with *avx_movsd.
10006 (*vec_concatv2df): Merge with *vec_concatv2df.
10008 2011-04-07 Jakub Jelinek <jakub@redhat.com>
10011 * combine.c (combine_instructions): Add last_combined_insn,
10012 update it if insn is after it, pass it to all try_combine calls.
10013 (try_combine): Add last_combined_insn parameter, pass it instead of
10014 i3 to propagate_for_debug.
10016 2011-04-07 Nick Clifton <nickc@redhat.com>
10018 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10019 to handle MDR <-> data register transfers.
10020 (movhi_internal): Likewise.
10022 2011-04-07 Alan Modra <amodra@gmail.com>
10024 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10025 previous stack info.
10027 2011-04-07 Tom de Vries <tom@codesourcery.com>
10030 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10031 flow_find_cross_jump. Swap variables to implement backward replacement.
10032 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10034 2011-04-07 Tom de Vries <tom@codesourcery.com>
10037 * cfgcleanup.c (walk_to_nondebug_insn): New function.
10038 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
10040 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10041 src1 or src2. Redirect edges to the last basic block. Update
10042 frequency and count on multiple basic blocks in case of fallthru.
10044 2011-04-07 Tom de Vries <tom@codesourcery.com>
10047 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10049 (old_insns_match_p): Change return type. Replace return false/true
10050 with return dir_none/dir_both. Use can_replace_by.
10051 (flow_find_cross_jump): Add dir_p parameter. Init replacement
10052 direction from dir_p. Register replacement direction in dir, last_dir
10053 and afterlast_dir. Handle new return type of old_insns_match_p using
10054 merge_dir. Return replacement direction in dir_p.
10055 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10056 return type of old_insns_match_p.
10057 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10058 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10059 flow_find_cross_jump.
10060 * basic-block.h (enum replace_direction): New type.
10061 (flow_find_cross_jump): Add parameter to declaration.
10063 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10065 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10066 (AVXMODEDCVTPS2DQ): Ditto.
10067 (VEC_FLOAT_MODE): Ditto.
10068 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10069 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10070 (<any_logic:code><mode>3): Use VF mode iterator.
10071 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10072 Use VF mode iterator.
10073 (copysign<mode>3): Use VF mode iterator.
10074 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10075 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10076 (*<any_logic:code><MODEF:mode>3): Merge with
10077 *avx_<any_logic:code><MODEF:mode>3.
10078 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10079 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10080 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10081 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10082 (sse2_cvtdq2ps): Use %v modifier.
10083 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10084 (avx_cvtps2dq<avxmodesuffix>): Remove.
10085 (sse2_cvtps2dq): Use %v modifier.
10086 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10087 (avx_cvttps2dq<avxmodesuffix>): Remove.
10088 (sse2_cvttps2dq): Use %v modifier.
10089 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10090 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10091 (sse2_cvtsd2siq): Fix insn template.
10092 (sse2_cvtsd2siq_2): Ditto.
10093 (sse2_cvttsd2siq): Ditto.
10094 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10095 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10097 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10099 * gcov-io.c: Use GCC Runtime Library Exception.
10101 2011-04-06 Jakub Jelinek <jakub@redhat.com>
10104 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10105 as base_reg whatever register reg has been eliminated to, instead
10106 of hardcoding STACK_POINTER_REGNUM.
10108 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10110 * doc/tm.texi.in: Document C target hooks as separate from general
10112 * doc/tm.texi: Regenerate.
10113 * genhooks.c (struct hook_desc): Add docname field.
10114 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10116 (hook_array): Include c-target.def.
10117 (emit_documentation): Use docname field in output.
10118 (emit_init_macros): Take docname argument. Only emit definitions
10119 for hooks matching docname.
10120 (main): Expect additional arguments in all cases. Pass argument
10121 to emit_init_macros.
10122 * target.def: Move initial macro definitions and comments to
10123 target-hooks-macros.h.
10124 (gcc_targetcm): Move to c-family/c-target.def.
10125 * target.h (targetcm): Move declaration to c-family/c-target.h.
10126 * targhooks.c (default_handle_c_option): Move to
10128 * targhooks.h (default_handle_c_option): Move declaration to
10129 c-family/c-common.h.
10130 * target-hooks-macros.h: New file.
10131 * config.gcc (target_has_targetcm): Define and use to add to
10132 c_target_objs and cxx_target_objs.
10133 * config/default-c.c: New file.
10134 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10135 of target.h and target-def.h.
10136 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10137 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10138 darwin_check_cfstring_format_arg): Make static.
10139 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10140 TARGET_STRING_OBJECT_REF_TYPE_P,
10141 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10142 * config/darwin-protos.h (darwin_objc_construct_string,
10143 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10145 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10146 TARGET_STRING_OBJECT_REF_TYPE_P,
10147 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10148 * config/t-darwin (darwin-c.o): Update dependencies.
10149 * system.h (TARGET_HAS_TARGETCM): Poison.
10150 * Makefile.in (TARGET_H): Update.
10151 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10152 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10153 (default-c.o): New target.
10154 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10155 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10156 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10158 (build/genhooks.o): Update dependencies.
10160 2011-04-06 Richard Guenther <rguenther@suse.de>
10162 * ipa-inline.c (enum inlining_mode): Remove.
10163 (cgraph_flatten): Use some other token.
10164 (cgraph_edge_early_inlinable_p): New function, split out from ...
10165 (cgraph_perform_always_inlining): New function, split out from ...
10166 (cgraph_decide_inlining_incrementally): ... here.
10167 (cgraph_mark_inline_edge): Adjust.
10168 (cgraph_early_inlining): Re-structure.
10169 (pass_early_inline): Require SSA form.
10171 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
10172 Julian Brown <julian@codesourcery.com>
10173 Mark Shinwell <shinwell@codesourcery.com>
10175 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10176 LO_REGS only for Thumb-1.
10177 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10178 be used in short instructions when optimising for size on Thumb-2.
10180 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10182 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10183 associated with user returns to be preserved.
10185 2011-04-06 Tristan Gingold <gingold@adacore.com>
10187 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10188 symbol_queue_size, DBXOUT_DECR_NESTING,
10189 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10190 if XCOFF_DEBUGGING_INFO.
10192 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10194 * config/i386/i386.md (attribute isa): New.
10195 (attribute enabled): New.
10196 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10197 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10198 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10199 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10200 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10201 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10202 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10203 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10205 * config/i386/sse.md (VF): New mode iterator.
10209 (SSEMODEF4): Remove.
10210 (attribute sse): Handle V8SF and V4DF modes.
10211 (<absneg:code><mode>2): Use VF mode iterator.
10212 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10214 (<plusminus_insn><mode>3): Use VF mode iterator.
10215 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10216 Use VF mode iterator.
10217 (<sse>_vm<plusminus_insn><mode>3): Merge with
10218 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10219 (mul<mode>3): Use VF mode iterator.
10220 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10221 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10223 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10224 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10225 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10226 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10228 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10229 Use VF1 mode iterator.
10230 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10231 (sqrt<VF2:mode>2): New expander.
10232 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10233 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10234 and sqrtv2df2. Use VF mode iterator.
10235 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10237 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10238 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10239 Use VF1 mode iterator.
10240 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10241 (<smaxmin:code><mode>3): Use VF mode iterator.
10242 (*<smaxmin:code><mode>3_finite): Merge with
10243 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10244 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10245 (<sse>_vm<smaxmin:code><mode>2): Merge with
10246 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10247 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10249 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10251 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10252 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10253 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10254 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10255 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10257 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10258 Use VF_128 mode iterator.
10259 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10261 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10262 VF_128 mode iterator.
10263 (vcond<mode>): Use VF mode iterator.
10264 * config/i386/predicates.md (sse_comparison_operator): Merge with
10265 avx_comparison_float_operator. Do not declare as special_predicate.
10266 * config/i386/i386.c (struct builtin_description): Update for renamed
10268 (ix86_expand_args_builtin): Ditto.
10269 (ix86_expand_sse_compare_mask): Ditto.
10271 2011-04-06 Richard Guenther <rguenther@suse.de>
10273 * tree-inline.c (estimate_num_insns): For calls simply account
10274 for all passed arguments and a used return value.
10276 2011-04-06 Richard Guenther <rguenther@suse.de>
10278 PR tree-optimization/47663
10279 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10280 call_stmt_time fields.
10281 (cgraph_edge_inlinable_p): Declare.
10282 (cgraph_edge_recursive_p): New inline function.
10283 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10284 (cgraph_clone_edge): Copy it.
10285 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10286 Account for call stmt time.
10287 (cgraph_estimate_time_after_inlining): Take edge argument.
10288 (cgraph_estimate_edge_growth): Account call stmt size.
10289 (cgraph_estimate_size_after_inlining): Take edge argument.
10290 (cgraph_mark_inline_edge): Adjust.
10291 (cgraph_check_inline_limits): Likewise.
10292 (cgraph_recursive_inlining_p): Remove.
10293 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10294 (cgraph_decide_recursive_inlining): Take edge argument and
10296 (cgraph_decide_inlining_of_small_functions): Do not avoid
10297 diags for recursive inlining here.
10298 (cgraph_flatten): Adjust.
10299 (cgraph_decide_inlining_incrementally): Likewise.
10300 (estimate_function_body_sizes): Remove call cost handling.
10301 (compute_inline_parameters): Initialize caller edge call costs.
10302 (cgraph_estimate_edge_growth): New function.
10303 (cgraph_estimate_growth): Use it.
10304 (cgraph_edge_badness): Likewise.
10305 (cgraph_check_inline_limits): Take an edge argument.
10306 (cgraph_decide_inlining_of_small_functions): Adjust.
10307 (cgraph_decide_inlining): Likewise.
10308 * tree-inline.c (estimate_num_insns): Only account for call
10309 return value if it is used.
10310 (expand_call_inline): Avoid diagnostics on recursive inline
10312 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10313 (input_edge): Input edge call costs.
10315 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10317 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10319 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10321 * doc/invoke.texi (Spec Files): Fix typo.
10323 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10325 * profile.c (branch_prob): Move declaration of local variable. Remove
10326 obsolete ??? comment. Expand the location explicitly instead of using
10327 the LOCATION_FILE and LOCATION_LINE macros.
10329 2011-04-06 Wei Guozhi <carrot@google.com>
10332 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10333 (arm_cond_branch): Likewise.
10334 (arm_cond_branch_reversed): Likewise.
10335 (arm_jump): Likewise.
10336 (push_multi): Likewise.
10337 * config/arm/constraints.md (Py): New constraint.
10339 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10342 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10344 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10345 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10346 #ifdef DBX_DEBUGGING_INFO.
10348 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10351 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10352 if old and new states differ.
10354 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10356 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10357 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10358 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10359 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10360 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10361 mcfv4e): Use Alias.
10362 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10363 ColdFire options to -mcpu= options.
10365 2011-04-05 Jeff Law <law@redhat.com>
10367 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10368 check if BB is a successor of LOOP->header and return
10369 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10371 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10373 * cprop.c (struct reg_use): Remove.
10374 (reg_use_table): Make an array of RTX.
10375 (find_used_regs, constprop_register, local_cprop_pass,
10376 bypass_block): Simplify users of reg_use_table.
10377 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10378 on one of the uses found by find_used_regs.
10380 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10383 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10386 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10388 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10390 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10392 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10394 PR middle-end/48441
10395 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10397 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10399 * combine.c: Include obstack.h.
10400 (struct insn_link): Define.
10401 (uid_log_links): Adjust type.
10402 (FOR_EACH_LOG_LINK): New macro.
10403 (insn_link_obstack): Declare.
10404 (alloc_insn_link): Define.
10405 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10406 type of link variables.
10407 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10408 (try_combine, record_promoted_values, distribute_notes): Likewise.
10409 (distribute_links): Likewise. Tweak prototype.
10410 (clear_log_links): Delete.
10411 (adjust_for_new_dest): Call alloc_insn_link.
10412 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10414 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10416 * gcse.c (modify_mem_list): Convert to an array of VECs.
10417 (canon_modify_mem_list, compute_transp): Tweak formatting.
10418 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10419 (load_killed_in_block_p): Likewise.
10420 (record_last_mem_set_info): Likewise.
10421 (clear_modify_mem_tables): Likewise.
10423 2011-04-05 Tom de Vries <tom@codesourcery.com>
10425 PR middle-end/48461
10426 * function.c (emit_use_return_register_into_block): Only define if
10429 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10431 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10433 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10435 * config/rx/rx-opts.h: New.
10436 * config/rx/rx.c (rx_cpu_type): Remove.
10437 (rx_handle_option): Don't assert that global structures are in
10438 use. Access variables via opts pointer. Defer most handling of
10439 OPT_mint_register_. Use error_at.
10440 (rx_option_override): Handle deferred OPT_mint_register_ here.
10441 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10442 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10443 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10444 (rx_cpu_types): New Enum and EnumValue entries.
10445 (mint-register=): Use Defer and use Var accordingly.
10447 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10449 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10450 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10451 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10453 (debug_free_queue, debug_nesting, symbol_queue_index):
10455 * dbxout.c: ...to here. Make static.
10457 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10459 * gcse.c (modify_pair): Define. Define a VEC of it.
10460 (canon_modify_mem_list): Convert to an array of VECs.
10461 (free_insn_expr_list_list): Delete.
10462 (clear_modify_mem_tables): Call VEC_free instead.
10463 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10464 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10465 (canon_list_insert, compute_transp): Likewise.
10467 2011-04-05 Tom de Vries <tom@codesourcery.com>
10470 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10473 2011-04-05 Tom de Vries <tom@codesourcery.com>
10476 * function.c (emit_use_return_register_into_block): New function.
10477 (thread_prologue_and_epilogue_insns): Use
10478 emit_use_return_register_into_block.
10480 2011-04-05 Tom de Vries <tom@codesourcery.com>
10483 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10486 2011-04-05 Tom de Vries <tom@codesourcery.com>
10488 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10490 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
10492 * config/arm/arm.md (define_constants for unspec): Replace with
10494 (define_constants for unspecv): Replace with define_c_enum.
10495 * config/arm/neon.md (define_constants for unspec): Replace with
10498 2011-04-04 Richard Henderson <rth@redhat.com>
10501 * dwarf2out.c (output_line_info): Always emit line info from
10502 at least one section.
10503 (dwarf2out_init): Create text_section_line_info here ...
10504 (set_cur_line_info_table): ... not here.
10506 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
10509 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
10512 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
10514 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
10516 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10517 (expr_equiv_p): Remove.
10518 (insert_set_in_table): Look at <dest, src> pair instead of expr.
10519 (hash_scan_set): Update call to insert_set_in_table.
10520 (dump_hash_table): Dump <dest, src> pair.
10521 (lookup_set): Simplify. Lookup <dest, src> pair.
10522 (compute_transp): Remove, fold heavily simplified code into...
10523 (compute_local_properties): ...here. Expect COMP and TRANSP
10525 (find_avail_set): Take set directly from struct expr.
10526 (find_bypass-set): Likewise.
10527 (bypass_block): Likewise.
10528 (cprop_insn): Likewise. Remove redundant INSN_P test.
10530 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10531 checks on form of COND from find_implicit_sets to here.
10532 (find_implicit_sets): Cleanup control flow. Split critical edges
10533 if it exposes implicit sets. Allocate/resize implicit_sets as
10535 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10536 changed something. Run df_analyze after find_implicit_sets if any
10537 edges were split. Do not allocate implicit_sets here.
10539 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10540 (gcse_obstack): Renamed to cprop_obstack.
10541 (GNEW, GNEWVEC, GNEWVAR): Remove.
10543 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10544 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10545 (gcse_alloc): Likewise, and rename to cprop_alloc.
10546 (alloc_gcse_men, free_gcse_mem): Remove.
10547 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10548 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10549 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
10551 * cprop.c (oprs_not_set_p): Remove.
10552 (mark_set, mark_clobber): Remove.
10553 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
10554 (reg_not_set_p): New function.
10555 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
10556 (cprop_insn): Likewise.
10557 (cprop_jump): Use FOR_EACH_EDGE.
10559 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
10562 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
10563 (rank_for_schedule): Use scheduled_insns vector instead of
10564 last_scheduled_insn.
10565 (ok_for_early_queue_removal): Likewise.
10566 (queue_to_ready): Search forward in nonscheduled_insns_begin if
10568 (choose_ready): Likewise.
10569 (commit_schedule): Use VEC_iterate.
10570 (schedule_block): Initialize nonscheduled_insns_begin. If we have
10571 a dbg_cnt, use it and ensure the first insn is in the ready list.
10572 (haifa_sched_init): Allocate scheduled_insns.
10573 (sched_extend_ready_list): Don't allocate it; reserve space.
10574 (haifa_sched_finish): Free it.
10576 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10578 * optc-gen.awk: Always remove type from Variable entry before
10579 recording in var_seen.
10581 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
10583 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
10584 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
10585 call to tidy_fallthru_edges.
10587 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10589 * doc/options.texi (ToLower): Document.
10590 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
10591 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
10592 * opts.h (cl_option): Add cl_tolower field.
10593 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
10594 arguments with lowercase strings.
10595 * config/rx/rx.opt (mcpu=): Add ToLower.
10596 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
10599 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10601 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10603 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10605 * config/vax/vax.c: Include reload.h.
10607 2011-04-04 Anatoly Sokolov <aesok@post.ru>
10609 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10610 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10611 (sparc_preferred_reload_class): New function.
10613 2011-04-04 Jakub Jelinek <jakub@redhat.com>
10616 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10617 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10619 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10621 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10622 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10624 2011-04-03 Anatoly Sokolov <aesok@post.ru>
10626 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10627 (ASM_OUTPUT_ALIGNED_BSS): Define.
10629 2011-04-03 Michael Matz <matz@suse.de>
10631 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10632 and next_slot members.
10633 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10634 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10635 (lto_streamer_cache_append): Declare.
10636 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10637 unsigned index, remove offset parameter, ensure that we append
10638 or update existing entries.
10639 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10640 parameter, update next_slot for append.
10641 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10643 (lto_streamer_cache_insert_at): Likewise.
10644 (lto_streamer_cache_append): New function.
10645 (lto_streamer_cache_lookup): Use unsigned index.
10646 (lto_streamer_cache_get): Likewise.
10647 (lto_record_common_node): Don't test tree_node_can_be_shared.
10648 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10649 (lto_streamer_cache_delete): Don't free offsets member.
10650 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10651 (lto_output_string_with_length): Use lto_output_data_stream.
10652 (lto_output_tree_header): Remove ix parameter, don't write it.
10653 (lto_output_builtin_tree): Likewise.
10654 (lto_write_tree): Adjust callers to above, don't track and write
10655 offset, write unsigned index.
10656 (output_unreferenced_globals): Don't emit all global vars.
10657 (write_global_references): Use unsigned indices.
10658 (lto_output_decl_state_refs): Likewise.
10659 (write_symbol): Likewise.
10660 * lto-streamer-in.c (lto_input_chain): Move earlier.
10661 (input_function): Use unsigned index.
10662 (input_alias_pairs): Don't read and then ignore all global vars.
10663 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10664 don't pass it back, use lto_streamer_cache_append.
10665 (lto_register_var_decl_in_symtab): Use unsigned index.
10666 (lto_register_function_decl_in_symtab): Likewise.
10667 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10669 (lto_get_builtin_tree): Don't read index, use
10670 lto_streamer_cache_append.
10671 (lto_read_tree): Adjust call to lto_materialize_tree.
10673 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10674 don't use function calls in arguments to MIN.
10676 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10679 * gimple.c (gimple_type_leader_entry): Mark deletable.
10681 2011-04-03 Alan Modra <amodra@gmail.com>
10683 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10685 2011-04-03 Michael Matz <matz@suse.de>
10687 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10689 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10691 2011-04-03 Michael Matz <matz@suse.de>
10693 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10694 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10695 without function context.
10696 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10697 current_function_decl and cfun.
10699 2011-04-03 Michael Matz <matz@suse.de>
10701 * tree.c (decl_init_priority_insert): Don't create entry for
10703 (decl_fini_priority_insert): Ditto.
10704 (fields_compatible_p, find_compatible_field): Remove.
10705 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10706 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10708 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10710 * combine.c (try_combine): Remove useless local variable.
10712 2011-04-03 Richard Guenther <rguenther@suse.de>
10713 Ira Rosen <ira.rosen@linaro.org>
10715 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10716 non-variable offsets and compare the remaining bases of the two
10717 accesses instead of looking for exact same data-ref.
10719 2011-04-02 Kai Tietz <ktietz@redhat.com>
10722 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10724 * i386.c (ix86_is_msabi_thiscall): New helper function.
10725 (ix86_is_type_thiscall): New helper function.
10726 (ix86_comp_type_attributes): Handle thiscall for method-functions
10728 (init_cumulative_args): Likewise.
10729 (find_drap_reg): Likewise.
10730 (ix86_static_chain): Likewise.
10731 (x86_this_parameter): Likewise.
10732 (x86_output_mi_thunk): Likewise.
10734 2011-04-01 Olivier Hainque <hainque@adacore.com>
10735 Nicolas Setton <setton@adacore.com>
10736 Eric Botcazou <ebotcazou@adacore.com>
10738 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10739 (add_gnat_descriptive_type_attribute): New function.
10740 (gen_array_type_die): Call it.
10741 (gen_enumeration_type_die): Likewise.
10742 (gen_struct_or_union_type_die): Likewise.
10743 (modified_type_die): Likewise.
10744 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10745 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10746 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10748 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10751 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10752 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10755 2011-03-17 Richard Guenther <rguenther@suse.de>
10758 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10759 origin for decls in other ltrans units.
10760 (input_varpool_node): Likewise.
10762 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10764 PR middle-end/48335
10765 * expr.c (expand_assignment): Handle all possibilities
10766 if TO_RTX is CONCAT.
10767 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10768 (store_split_bit_field): If SUBREG_REG (op0) or
10769 op0 itself has smaller mode than word, return it
10770 for offset 0 and const0_rtx for out-of-bounds stores.
10771 If word is const0_rtx, skip it.
10773 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10775 * config/h8300/h8300.c (print_operand_address): Rename to...
10776 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10777 Call h8300_print_operand and h8300_print_operand_address instead of
10778 print_operand and print_operand_address. Declare.
10779 (print_operand): Renake to...
10780 (h8300_print_operand): ...this. Make static. Adjust comments.
10781 Call h8300_print_operand instead of print_operand. Declare.
10782 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10783 (h8300_register_move_cost): Likewise.
10784 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10785 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10786 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10787 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10788 * config/h8300/h8300-protos.h (print_operand): Delete.
10789 (print_operand_address): Delete.
10791 2011-04-01 Richard Henderson <rth@redhat.com>
10794 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10795 in strict mode before dwarf4. Re-order tests to early out
10796 before switching sections.
10798 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10800 * config/h8300/constraints.md: New file.
10801 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10802 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10803 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10804 * config/h8300/predicates.md (bit_operand): Likewise.
10805 (incdec_operand): Use satisfies_constraint_M and
10806 satisfies_constraint_O. Don't use C code block.
10807 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10808 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10809 (compute_mov_length): Use satisfies_constraint_G.
10810 (fix_bit_operand): Use satisfies_constraint_U.
10811 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10812 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10813 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10814 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10815 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10816 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10817 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10818 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10819 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10820 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10821 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10822 (EXTRA_MEMORY_CONSTRAINT): Delete.
10824 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10825 Michael Meissner <meissner@linux.vnet.ibm.com>
10828 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10829 operands, as per the specifications.
10831 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10832 (vec_extract_evenv4sf): Ditto.
10833 (vec_extract_evenv8hi): Ditto.
10834 (vec_extract_evenv16qi): Ditto.
10835 (vec_extract_oddv4si): Ditto.
10837 2011-03-31 Mark Wielaard <mjw@redhat.com>
10839 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10840 high_pc attribute if the CU has no associated code. Only output
10841 DW_AT_entry_pc for CU if not generating strict dwarf and
10844 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10846 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10847 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10849 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10850 * final.c (final_start_function): Call the new function rather
10851 than using a NULL argument for dwarf2out_frame_debug.
10853 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10854 that contains the prologue.
10856 * haifa-sched.c (queue_insn): New arg REASON. All callers
10857 changed. Print it in debugging output.
10859 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10861 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10862 Split most of the code into...
10863 (begin_move_insn): ... here. New function.
10864 (ebb_sched_info): Add a pointer to it.
10865 * haifa-sched.c (scheduled_insns): New static variable.
10866 (sched_extend_ready_list): Allocate it.
10867 (schedule_block): Use it to record the order of scheduled insns.
10868 Perform RTL changes to move insns only after all scheduling
10869 decisions have been made.
10870 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10871 begin_move_insn field.
10872 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10873 * sched-int.h (struct haifa_sched_info): Remove second argument
10874 from begin_schedule_ready hook. Add new member begin_move_insn.
10875 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10876 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10878 * haifa-sched.c (prune_ready_list): New function, broken out of
10880 (schedule_block): Use it.
10882 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10884 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10886 2011-04-01 Kai Tietz <ktietz@redhat.com>
10888 * config.gcc (*-*-mingw*): Allow as option the
10889 posix threading model.
10890 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10891 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10893 (CPP_SPEC): Add pthread/no-pthread handling.
10894 (LIB_SPEC): Likewise.
10895 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10896 (LIB_SPEC): Likewise.
10897 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10898 flag to pass -pthread option for shared libgcc build.
10899 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10900 for shared libgcc build.
10901 * config/i386/t-mingw-pthread: New file.
10902 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10903 New define to enable use of library pthread by default.
10904 * config/i386/mingw.opt (pthread): New driver option.
10905 (no-pthread): New driver option.
10906 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10907 * config/i386/mingw-w64.opt: Likewise.
10909 2011-04-01 Gary Funck <gary@intrepid.com>
10911 * c-decl.c (grokdeclarator): Fix formatting.
10913 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10915 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10916 instead of n_operands.
10917 (set_storage_via_setmem): Likewise.
10918 * optabs.c (maybe_gen_insn): Likewise.
10919 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10920 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10921 (mips_expand_builtin_direct): Likewise.
10922 * config/spu/spu.c (expand_builtin_args): Likewise.
10924 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10926 * recog.h (insn_data_d): Add n_generator_args.
10927 * genoutput.c (data): Likewise.
10928 (output_insn_data): Print it.
10929 (max_opno, num_dups): Delete.
10930 (scan_operands): Just fill in "d->operand[...]".
10931 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10933 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10935 * gensupport.h (pattern_stats): New structure.
10936 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10937 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10938 (max_operand_1, max_operand_vec): Delete.
10939 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10941 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10943 * emit-rtl.c (emit_pattern_after_setloc): New function.
10944 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10945 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10946 (emit_pattern_after): New function.
10947 (emit_insn_after, emit_jump_insn_after): Call it.
10948 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10949 (emit_pattern_before_setloc): New function.
10950 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10951 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10953 (emit_pattern_before): New function.
10954 (emit_insn_before, emit_jump_insn_before): Call it.
10955 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10957 2011-03-31 Richard Henderson <rth@redhat.com>
10959 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10960 (dw_separate_line_info_entry): Remove.
10961 (enum dw_line_info_opcode): New.
10962 (dw_line_info_entry): Use it.
10963 (dw_line_info_table, dw_line_info_table_p): New.
10964 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10965 (line_info_table, line_info_label_num): Remove.
10966 (line_info_table_in_use): Remove.
10967 (separate_line_info_table): Remove.
10968 (separate_line_info_table_allocated): Remove.
10969 (separate_line_info_table_in_use): Remove.
10970 (LINE_INFO_TABLE_INCREMENT): Remove.
10971 (line_info_label_num): New.
10972 (cur_line_info_table): New.
10973 (text_section_line_info, cold_text_section_line_info): New.
10974 (separate_line_info): New.
10975 (SEPARATE_LINE_CODE_LABEL): Remove.
10976 (print_dwarf_line_table): Remove.
10977 (debug_dwarf): Don't dump it.
10978 (output_one_line_info_table): New.
10979 (output_line_info): Use it.
10980 (new_line_info_table): New.
10981 (set_cur_line_info_table): New.
10982 (dwarf2out_switch_text_section): Use it.
10983 (dwarf2out_begin_function): Likewise.
10984 (push_dw_line_info_entry): New.
10985 (dwarf2out_source_line): Rewrite for new line info tables.
10986 (dwarf2out_init): Remove dead initailizations.
10988 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10990 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10992 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10993 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10994 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10995 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10996 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10997 * opt-functions.awk (flag_init, switch_bit_fields): New.
10998 (switch_flags): Don't handle flags moved to bit-fields. Don't
10999 generate CL_MISSING_OK or CL_SAVE.
11000 * optc-gen.awk: Update to generate bit-field output as well as
11002 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11003 bit-field instead of CL_REJECT_DRIVER flag.
11004 * opts-common.c (generate_canonical_option,
11005 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11006 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11007 instead of CL_REJECT_NEGATIVE flag.
11008 * toplev.c (print_switch_values): Use cl_report bit-field instead
11011 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11013 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11014 a zero minimum index only if it is redundant.
11016 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11018 PR rtl-optimization/48381
11019 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11020 instead of ira_class_hard_reg_index for calculating conflicting
11023 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11025 * cprop.c: Clean up hash table building.
11026 (reg_avail_info): Remove.
11027 (oprs_available_p): Remove.
11028 (record_last_reg_set_info): Remove.
11029 (record_last_set_info): Remove.
11030 (reg_available_p): New function.
11031 (gcse_constant_p): Do not treat unfolded conditions as constants.
11032 (make_set_regs_unavailable): New function.
11033 (hash_scan_set): Simplify with new reg_available_p.
11034 (compute_hash_table_work): Traverse insns stream only once.
11035 Do not compute reg_avail_info. Traverse insns in reverse order.
11036 Record implicit sets after recording explicit sets from the block.
11038 2011-03-31 Michael Matz <matz@suse.de>
11040 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11042 2011-03-31 Anatoly Sokolov <aesok@post.ru>
11044 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11045 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11046 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11047 (h8300_mode_dependent_address_p): New function.
11048 (h8300_get_index): Make static.
11050 2011-03-31 Jeff Law <law@redhat.com>
11052 * reload1.c (elimination_effects): Fix typo in recent change.
11054 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11055 typo potentially leading to null pointer dereference.
11057 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11058 (setup_save_areas): Corresponding changes to avoid useless
11061 * jump.c (reversed_comparison_code_parts): Avoid successive return
11062 statements when REVERSE_CONDITION is defined.
11064 * expr.c (expand_assignment): Avoid useless assignments.
11065 (expand_expr_real_1): Likewise.
11066 (expand_expr_real_2): Avoid useless statements.
11068 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11070 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11072 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11075 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11077 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11080 * doc/tm.texi.in (TARGET_VERSION): Remove.
11081 * doc/tm.texi: Regenerate.
11082 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11083 * collect2.c (main): Don't use TARGET_VERSION.
11084 * mips-tdump.c (main): Don't use TARGET_VERSION.
11085 * mips-tfile.c (main): Don't use TARGET_VERSION.
11086 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11087 * config/rs6000/vxworksae.h: Remove.
11088 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11089 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11090 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11091 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11092 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11093 * config/arm/arm.h (TARGET_VERSION): Remove.
11094 * config/arm/coff.h (TARGET_VERSION): Remove.
11095 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11096 * config/arm/elf.h (TARGET_VERSION): Remove.
11097 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11098 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11099 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11100 * config/arm/pe.h (TARGET_VERSION): Remove.
11101 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11102 * config/arm/semi.h (TARGET_VERSION): Remove.
11103 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11104 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11105 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11106 * config/avr/avr.h (TARGET_VERSION): Remove.
11107 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11108 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11109 * config/frv/frv.h (TARGET_VERSION): Remove.
11110 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11111 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11112 * config/i386/darwin.h (TARGET_VERSION): Remove.
11113 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11114 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11115 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11116 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11117 * config/i386/gnu.h (TARGET_VERSION): Remove.
11118 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11119 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11120 * config/i386/linux.h (TARGET_VERSION): Remove.
11121 * config/i386/linux64.h (TARGET_VERSION): Remove.
11122 * config/i386/lynx.h (TARGET_VERSION): Remove.
11123 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11124 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11125 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11126 * config/i386/netware.h (TARGET_VERSION): Remove.
11127 * config/i386/nto.h (TARGET_VERSION): Remove.
11128 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11129 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11130 * config/ia64/elf.h (TARGET_VERSION): Remove.
11131 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11132 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11133 * config/ia64/linux.h (TARGET_VERSION): Remove.
11134 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11135 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11136 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11137 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11138 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11139 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11140 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11141 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11142 * config/m68k/linux.h (TARGET_VERSION): Remove.
11143 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11144 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11145 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11146 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11147 * config/mep/mep.h (TARGET_VERSION): Remove.
11148 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11149 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11150 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11151 * config/mips/linux.h (TARGET_VERSION): Remove.
11152 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11153 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11154 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11155 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11156 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11157 * config/pa/pa.h (TARGET_VERSION): Remove.
11158 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11159 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11160 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11161 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11162 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11163 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11164 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11165 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11166 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11167 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11168 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11169 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11170 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11171 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11172 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11173 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11174 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11175 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11176 * config/s390/linux.h (TARGET_VERSION): Remove.
11177 * config/s390/s390.h (TARGET_VERSION): Remove.
11178 * config/s390/tpf.h (TARGET_VERSION): Remove.
11179 * config/score/score.h (TARGET_VERSION): Remove.
11180 * config/sh/linux.h (TARGET_VERSION): Remove.
11181 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11182 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11183 * config/sh/sh.h (TARGET_VERSION): Remove.
11184 * config/sh/sh64.h (TARGET_VERSION): Remove.
11185 * config/sh/superh.h (TARGET_VERSION): Remove.
11186 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11187 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11188 * config/sparc/linux.h (TARGET_VERSION): Remove.
11189 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11190 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11191 TARGET_NAME32, TARGET_NAME): Remove.
11192 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11193 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11194 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11195 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11196 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11197 * config/spu/spu.h (TARGET_VERSION): Remove.
11198 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11199 * config/v850/v850.h (TARGET_VERSION): Remove.
11200 * config/vax/linux.h (TARGET_VERSION): Remove.
11201 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11202 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11203 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11205 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11208 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11209 frame-related from frame-unrelated adjustments to the stack pointer.
11211 2011-03-31 Jakub Jelinek <jakub@redhat.com>
11213 * common.opt (fdebug-types-section): Move earlier.
11214 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11216 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
11218 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11221 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11223 * tree.h (CASE_CHAIN): Define.
11224 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11225 (gimple_redirect_edge_and_branch): Likewise.
11227 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11229 PR middle-end/48367
11230 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11233 2011-03-30 Jeff Law <law@redhat.com>
11235 * PR bootstrap/48371
11236 * reload1.c (reload): Fix botch in last change.
11238 * reload.h (struct reload): Fix typo introduced in last change.
11240 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11242 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11243 Undocumented. Remove help text.
11244 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11247 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11249 * doc/options.texi (NegativeAlias): Document.
11250 (Alias): Mention NegativeAlias.
11251 * opt-functions.awk: Handle NegativeAlias.
11252 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11253 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11254 * opts.h (CL_NEGATIVE_ALIAS): Define.
11255 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11256 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11258 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11260 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11261 mno-spe and mno-isel instead of mspe=no and -misel=no.
11263 2011-03-29 Mark Wielaard <mjw@redhat.com>
11265 * common.opt (fdebug-types-section): New flag.
11266 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11267 * dwarf2out.c (use_debug_types): New define.
11268 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11269 (print_die): Guard output of type unit signatures using
11271 (build_abbrev_table): Replace assert of dwarf_version >= 4
11272 with assert on use_debug_types.
11273 (size_of_die): Likewise.
11274 (unmark_dies): Likewise.
11275 (value_format): Decide AT_ref_external form on use_debug_types.
11276 (output_die): Replace dwarf_version version check guard with
11277 use_debug_types where appropriate.
11278 (modified_type_die): Likewise.
11279 (gen_reference_type_die): Likewise.
11280 (dwarf2out_start_source_file): Likewise.
11281 (dwarf2out_end_source_file): Likewise.
11282 (prune_unused_types_walk_attribs): Likewise.
11283 (dwarf2out_finish): Likewise.
11285 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11287 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11289 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11291 PR rtl-optimization/48332
11292 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11293 mode of input operand N and modeN to its actual mode.
11295 2011-03-30 Jeff Law <law@redhat.com>
11297 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11298 define accessor macro.
11299 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11300 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11301 (reg_equiv_init): Likewise.
11302 (reg_equivs_size): New variable.
11303 (reg_equiv_init_size): Remove.
11304 (allocate_initial_values): Move prototype to here from....
11305 * integrate.h (allocate_initial_values): Remove prototype.
11306 * integrate.c: Include reload.h.
11307 (allocate_initial_values): Corresponding changes.
11308 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11309 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11310 (update_equiv_regs): Corresponding changes.
11311 (ira): Corresponding changes.
11312 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11313 (push_secondary_reload): Corresponding changes.
11314 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11315 (make_memloc, find_reloads_address): Corresponding changes.
11316 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11317 (find_reloads_address_1): Corresponding changes.
11318 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11319 (refers_to_regno_for_reload_p): Corresponding changes.
11320 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11321 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11322 * reload1.c: Include ggc.h.
11323 (grow_reg_equivs): New function.
11324 (replace_pseudos_in, reload): Corresponding changes.
11325 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11326 (eliminate_regs_1, elimination_effects): Corresponding changes.
11327 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11328 (delete_output_reload): Likewise.
11329 * caller-save.c (mark_referenced_regs): Corresponding changes.
11330 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11331 * frv/predicates.md (frv_load_operand): Corresponding changes.
11332 * microblaze/microblaze.c (double_memory_operand): Corresponding
11334 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11335 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11336 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11337 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11338 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11340 * pa/pa.c (emit_move_sequence): Corresponding changes.
11341 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11343 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11346 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11347 structure modes. Don't check neon_vector_mem_operand for
11348 vector or structure modes.
11350 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11351 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11354 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11355 operand 1 and reshuffle the operands to match.
11356 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11358 2011-03-30 Christian Schüler <cschueler@gmx.de>
11361 * config/c.opt (F): Added 'Driver' to -F option.
11364 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11366 * config/darwin.opt: Added '-arch' option.
11368 2011-03-30 Nick Clifton <nickc@redhat.com>
11370 * config/rx/rx.md: Add peepholes and patterns to combine
11371 extending loads and simple arithmetic instructions.
11372 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11373 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11374 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11375 modes to use pre-decrement and post-increment addressing.
11376 (rx_is_restricted_memory_address): Add range checking of REG+INT
11378 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11379 (rx_memory_move_cost): Adjust cost of stores.
11380 (rx_adjust_insn_length): New function.
11382 2011-03-30 Jakub Jelinek <jakub@redhat.com>
11385 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11386 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11387 matching arg00/arg01 types.
11389 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11391 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11392 last_location to UNKNOWN_LOCATION.
11394 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11397 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11400 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11401 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11404 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11405 Init(PROCESSOR_V7).
11406 (sparc_cpu): Likewise.
11407 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11410 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11413 PR middle-end/48342
11414 PR rtl-optimization/48345
11415 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11416 hard regs for given mode from profitable regs when doing secondary
11419 2011-03-29 Jeff Law <law@redhat.com>
11422 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11423 do_not_duplicate field.
11424 (lookup_redirection_data): Corresponding changes.
11425 (create_duplicates): Always create a template block.
11426 (redirect_edges): Remove code which reused the original block
11427 when it was going to become unreachable code.
11428 (thread_block): Don't set do_not_duplicate field.
11430 2011-03-29 Joseph Myers <joseph@codesourcery.com>
11432 * lto-opts.c (register_user_option_p, lto_register_user_option):
11433 Make type argument unsigned.
11434 * lto-streamer.h (lto_register_user_option): Make type argument
11436 * opth-gen.awk: Make CL_* macros unsigned.
11437 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11438 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11439 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11440 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11441 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11442 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11443 (find_opt): Make lang_mask argument unsigned.
11445 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11447 PR rtl-optimization/48331
11448 PR rtl-optimization/48334
11449 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11450 for any used algorithm.
11452 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11454 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11457 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
11459 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11460 (alpha_option_override): Don't set alpha_sr_alias_set.
11461 (emit_frame_store_1): Use gen_frame_mem rather than calling
11463 (alpha_expand_epilogue): Ditto.
11465 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
11467 PR tree-optimization/48290
11468 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11469 vectorization, check that relevant phis in the basic block after
11470 the inner loop are really inner loop's exit phis.
11472 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11475 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11476 (cached_dw_loc_list_def): New structure.
11477 (cached_dw_loc_list): New typedef.
11478 (cached_dw_loc_list_table): New variable.
11479 (cached_dw_loc_list_table_hash): New function.
11480 (cached_dw_loc_list_table_eq): Likewise.
11481 (add_location_or_const_value_attribute): Take a bool cache_p.
11482 Cache the list when the parameter is true.
11483 (gen_formal_parameter_die): Update caller.
11484 (gen_variable_die): Likewise.
11485 (dwarf2out_finish): Likewise.
11486 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11487 while generating debug info for the decl.
11488 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11489 (dwarf2out_init): Initialize cached_dw_loc_list_table.
11490 (resolve_addr): Cache the result of resolving a chain of
11493 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
11495 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11496 conflict object hard regset nodes have intersecting hard reg sets.
11498 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11499 after regstat_init_n_sets_and_refs.
11501 * ira.c: Add more comments at the top.
11502 (setup_stack_reg_pressure_class, setup_pressure_classes):
11503 Add comments how we compute the register pressure classes.
11504 (setup_allocno_and_important_classes): Add more comments.
11505 (setup_class_translate_array, reorder_important_classes)
11506 (setup_reg_class_relations): Add comments.
11508 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
11511 * ira-color.c: Add 2011 to the Copyright line.
11512 (assign_hard_reg): Add more comments.
11513 (improve_allocation): Ditto.
11515 * ira-costs.c: Add 2011 to the Copyright line.
11516 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11518 (setup_regno_cost_classes_by_mode): Ditto.
11520 Initial patches from ira-improv branch:
11522 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11524 * ira-build.c (ira_create_object): Remove initialization of
11525 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
11526 (ira_create_allocno): Remove initialization of
11527 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11528 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11529 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11530 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11531 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11532 Initialize ALLOCNO_ADD_DATA.
11533 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11534 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11536 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
11537 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11539 * ira.c (ira_reallocate): Remove.
11540 (setup_pressure_classes): Call
11541 ira_init_register_move_cost_if_necessary. Use
11542 ira_register_move_cost instead of ira_get_register_move_cost.
11543 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11544 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11546 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11547 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11548 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11549 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
11550 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
11551 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
11553 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
11554 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11555 (struct allocno_color_data): New.
11556 (allocno_color_data_t): New typedef.
11557 (allocno_color_data): New definition.
11558 (ALLOCNO_COLOR_DATA): New macro.
11559 (struct object_color_data): New.
11560 (object_color_data_t): New typedef.
11561 (object_color_data): New definition.
11562 (OBJECT_COLOR_DATA): New macro.
11563 (update_copy_costs, calculate_allocno_spill_cost): Call
11564 ira_init_register_move_cost_if_necessary. Use
11565 ira_register_move_cost instead of ira_get_register_move_cost.
11566 (move_spill_restore, update_curr_costs): Ditto.
11567 (allocno_spill_priority): Make it inline.
11568 (color_pass): Allocate and free allocno_color_dat and object_color_data.
11569 (struct coalesce_data, coalesce_data_t): New.
11570 (allocno_coalesce_data): New definition.
11571 (ALLOCNO_COALESCE_DATA): New macro.
11572 (merge_allocnos, coalesced_allocno_conflict_p): Use
11573 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
11574 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
11575 (coalesce_allocnos): Ditto.
11576 (setup_coalesced_allocno_costs_and_nums): Ditto.
11577 (collect_spilled_coalesced_allocnos): Ditto.
11578 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
11579 (setup_slot_coalesced_allocno_live_ranges): Ditto.
11580 (coalesce_spill_slots): Ditto.
11581 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
11582 free allocno_coalesce_data.
11584 * ira-conflicts.c: Fix formatting.
11585 (process_regs_for_copy): Call
11586 ira_init_register_move_cost_if_necessary. Use
11587 ira_register_move_cost instead of ira_get_register_move_cost.
11588 (build_object_conflicts): Optimize.
11590 * ira-costs.c (record_reg_classes): Optimize. Call
11591 ira_init_register_move_cost_if_necessary. Use
11592 ira_register_move_cost, ira_may_move_in_cost, and
11593 ira_may_move_out_cost instead of ira_get_register_move_cost and
11594 ira_get_may_move_cost.
11595 (record_address_regs): Ditto.
11596 (scan_one_insn): Optimize.
11597 (find_costs_and_classes): Optimize.
11598 (process_bb_node_for_hard_reg_moves): Call
11599 ira_init_register_move_cost_if_necessary. Use
11600 ira_register_move_cost instead of ira_get_register_move_cost.
11602 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11603 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11604 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11605 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11607 (ira_initiate_emit_data, ira_finish_emit_data)
11608 (create_new_allocno): New functions.
11609 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11610 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11611 Use ira_register_move_cost instead of ira_get_register_move_cost.
11613 * ira-int.h: Fix some comments.
11614 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11615 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11616 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11617 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11619 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11620 bitfield after mode. Make hard_regno a short int. Make
11621 hard_regno short. Remove first_coalesced_allocno and
11622 next_coalesced_allocno. Move mem_optimized_dest_p,
11623 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11624 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11625 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11626 temp, colorable_p. Add new member add_data.
11627 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11628 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11629 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11630 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11631 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11632 (ALLOCNO_ADD_DATA): New macro.
11633 (ira_emit_data_t): New typedef.
11634 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11635 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11636 from struct ira_allocno.
11637 (ALLOCNO_EMIT_DATA): New macro.
11638 (ira_allocno_emit_data, allocno_emit_reg): New.
11639 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11640 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11641 (OBJECT_ADD_DATA): New macro.
11642 (ira_reallocate): Remove.
11643 (ira_initiate_emit_data, ira_finish_emit_data): New.
11644 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11645 (ira_init_register_move_cost_if_necessary): New.
11646 (ira_object_conflict_iter_next): Merge into
11647 ira_object_conflict_iter_cond.
11648 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11650 * ira-live.c (process_single_reg_class_operands): Call
11651 ira_init_register_move_cost_if_necessary. Use
11652 ira_register_move_cost instead of ira_get_register_move_cost.
11654 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11656 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11658 * ira-costs.c: Fix formatting.
11659 (cost_classes, cost_classes_num): Remove.
11660 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11661 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11662 (cost_classes_del, cost_classes_htab): New.
11663 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11664 (initiate_regno_cost_classes, setup_cost_classes): New.
11665 (setup_regno_cost_classes_by_aclass): New.
11666 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11667 (record_reg_classes): Use regno_cost_classes instead of
11668 cost_classes. Move checking opposite operand up.
11669 (record_address_regs): Use regno_cost_classes
11670 instead of cost_classes.
11671 (scan_one_insn): Ditto. Use always general register.
11672 (print_allocno_costs): Use regno_cost_classes instead of
11674 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11675 (find_costs_and_classes): Set up cost classes for each registers.
11676 Use also their mode for this. Use regno_cost_classes instead of
11678 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11680 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11681 (ira_costs, ira_set_pseudo_classes): Call
11682 initiate_regno_cost_classes and finish_regno_cost_classes.
11684 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11686 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11688 * target.def (ira_cover_classes): Remove.
11690 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11692 * doc/tm.texi.in: Ditto.
11694 * ira-conflicts.c: Remove mentioning cover classes from the file.
11695 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11696 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11698 * targhooks.c (default_ira_cover_classes): Remove.
11700 * targhooks.h (default_ira_cover_classes): Ditto.
11702 * haifa-sched.c: Remove mentioning cover classes from the file.
11703 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11704 ira_pressure_classes and ira_pressure_classes_num instead of
11705 ira_reg_class_cover_size and ira_reg_class_cover. Use
11706 sched_regno_pressure_class instead of sched_regno_cover_class.
11707 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11708 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11710 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11711 classes from the file.
11712 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11713 (struct object_hard_regs, struct object_hard_regs_node): New.
11714 (struct ira_object): New members profitable_hard_regs,
11715 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11716 (struct ira_allocno): Rename cover_class to aclass. Rename
11717 cover_class_cost and updated_cover_class_cost to class_cost and
11718 updated_class_cost. Remove splay_removed_p and
11719 left_conflict_size. Add new members colorable_p.
11720 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11721 (ALLOCNO_COLORABLE_P): New macro.
11722 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11723 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11724 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11725 (OBJECT_...): Rename parameter C to O.
11726 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11727 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11728 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11729 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11730 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11731 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11732 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11733 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11734 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11735 x_ira_reg_class_subunion.
11736 (ira_max_memory_move_cost, ira_max_register_move_cost)
11737 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11738 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11739 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11740 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11741 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11742 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11743 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11744 (ira_tune_allocno_costs_and_cover_classes): Rename to
11745 ira_tune_allocno_costs.
11746 (ira_debug_hard_regs_forest): New.
11747 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11748 (ira_object_conflict_iter_next): Fix comments.
11749 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11750 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11751 cover_class to aclass.
11752 (ira_allocate_and_accumulate_costs): Ditto.
11753 (ira_allocate_and_set_or_copy_costs): Ditto.
11755 * opts.c (decode_options): Remove ira_cover_class check.
11757 * ira-color.c: Remove mentioning cover classes from the file. Use
11758 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11759 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11760 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11761 (splay-tree.h): Remove include.
11762 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11763 before copy_freq_compare_func.
11764 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11765 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11767 (hard_regs_roots, hard_regs_node_vec): Ditto.
11768 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11769 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11770 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11771 (create_new_object_hard_regs_node): Ditto.
11772 (add_new_object_hard_regs_node_to_forest): Ditto.
11773 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11774 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11776 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11777 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11778 (remove_unused_object_hard_regs_nodes): Ditto.
11779 (enumerate_object_hard_regs_nodes): Ditto.
11780 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11781 (object_hard_regs_subnode_t): Ditto.
11782 (struct object_hard_regs_subnode): Ditto.
11783 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11784 (setup_object_hard_regs_subnode_index): Ditto.
11785 (get_object_hard_regs_subnodes_num): Ditto.
11786 (form_object_hard_regs_nodes_forest): Ditto.
11787 (finish_object_hard_regs_nodes_tree): Ditto.
11788 (finish_object_hard_regs_nodes_forest): Ditto.
11789 (allocnos_have_intersected_live_ranges_p): Rename to
11790 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11791 (pseudos_have_intersected_live_ranges_p): Rename to
11792 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11793 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11794 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11795 (update_copy_costs): Remove assert. Skip cost update if the hard
11796 reg does not belong the class.
11797 (assign_hard_reg): Process only profitable hard regs.
11798 (uncolorable_allocnos_num): Make it scalar.
11799 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11800 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11801 and ira_reg_class_max_nregs.
11802 (bucket_allocno_compare_func): Check frequency first.
11803 (sort_bucket): Add compare function as a parameter.
11804 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11805 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11806 (push_allocno_to_stack): Rewrite for checking new allocno
11808 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11809 (push_only_colorable): Pass new parameter to sort_bucket.
11810 (push_allocno_to_spill): Remove.
11811 (allocno_spill_priority_compare): Make it inline and rewrite.
11812 (splay_tree_allocate, splay_tree_free): Remove.
11813 (allocno_spill_sort_compare): New function.
11814 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11815 build and use splay tree. Choose first allocno in uncolorable
11816 allocno bucket to spill. Remove setting spill cost.
11817 (all_conflicting_hard_regs): Remove.
11818 (setup_allocno_available_regs_num): Check only profitable hard
11819 regs. Print info about hard regs nodes.
11820 (setup_allocno_left_conflicts_size): Remove.
11821 (put_allocno_into_bucket): Don't call
11822 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11823 (improve_allocation): New.
11824 (color_allocnos): Call setup_profitable_hard_regs,
11825 form_object_hard_regs_nodes_forest, improve_allocation,
11826 finish_object_hard_regs_nodes_forest. Setup spill cost.
11827 (print_loop_title): Use pressure classes.
11828 (color_allocnso): Ditto.
11829 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11830 and allocnos_for_spilling.
11831 (ira_sort_regnos_for_alter_reg): Don't setup members
11832 {first,next}_coalesced_allocno.
11833 (color): Remove allocating and freeing removed_splay_allocno_vec.
11834 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11835 prohibited_class_mode_regs.
11837 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11839 (update_allocno_pressure_excess_length): Use pressure classes.
11840 (inc_register_pressure, dec_register_pressure): Check for pressure
11842 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11843 pressure class. Use ira_reg_class_nregs instead of
11844 ira_reg_class_max_nregs.
11845 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11846 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11847 (single_reg_class): Use ira_reg_class_nregs instead of
11848 ira_reg_class_max_nregs.
11849 (process_bb_node_lives): Use pressure classes.
11851 * ira-emit.c: Remove mentioning cover classes from the file. Use
11852 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11853 (change_loop): Use pressure classes.
11854 (modify_move_list): Call ira_set_allocno_class instead of
11855 ira_set_allocno_cover_class.
11857 * ira-build.c: Remove mentioning cover classes from the file. Use
11858 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11859 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11860 ALLOCNO_UPDATED_CLASS_COST instead of
11861 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11862 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11863 (ira_create_allocno): Remove initialization of
11864 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11865 ALLOCNO_COLORABLE_P.
11866 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11867 Update conflict regs for the objects.
11868 (create_cap_allocno): Remove assert. Don't propagate
11869 ALLOCNO_AVAILABLE_REGS_NUM.
11870 (ira_free_allocno_costs): New function.
11871 (finish_allocno): Change a part of code into call of
11872 ira_free_allocno_costs.
11873 (low_pressure_loop_node_p): Use pressure classes.
11874 (object_range_compare_func): Don't compare classes.
11875 (setup_min_max_conflict_allocno_ids): Ditto.
11877 * loop-invariant.c: Remove mentioning cover classes from the file.
11878 Use ira_pressure_classes and ira_pressure_classes_num instead of
11879 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11880 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11881 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11882 Use reg_allocno_class instead of reg_cover_class.
11883 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11884 STACK_REG_COVER_CLASS.
11885 (get_regno_cover_class): Rename to get_regno_pressure_class.
11886 (move_loop_invariants): Initialize and finalize regstat.
11888 * ira.c: Remove mentioning cover classes from the file. Add
11889 comments about coloring without cover classes. Use ALLOCNO_CLASS
11890 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11891 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11892 setup_class_subset_and_memory_move_costs.
11893 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11894 (setup_cover_and_important_classes): Rename to
11895 setup_allocno_and_important_classes.
11896 (setup_class_translate_array): New.
11897 (setup_class_translate): Call it for allocno and pressure classes.
11898 (cover_class_order): Rename to allocno_class_order.
11899 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11900 of ira_class_translate.
11901 (reorder_important_classes): Set up ira_important_class_nums.
11902 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11903 (print_class_cover): Rename to print_classes. Add parameter.
11904 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11905 Print pressure classes too.
11906 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11907 setup_reg_subclasses.
11908 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11909 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11910 (setup_prohibited_class_mode_regs): Use
11911 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11912 (clarify_prohibited_class_mode_regs): New function.
11913 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11914 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11915 (ira_init_once): Initialize them.
11916 (free_register_move_costs): Process them.
11917 (ira_init): Move calls of find_reg_classes and
11918 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11919 Call clarify_prohibited_class_mode_regs.
11920 (ira_no_alloc_reg): Remove.
11921 (too_high_register_pressure_p): Use pressure classes.
11923 * sched-deps.c: Remove mentioning cover classes from the file.
11924 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11925 ira_pressure_classes and ira_pressure_classes_num instead of
11926 ira_reg_class_cover_size and ira_reg_class_cover.
11927 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11928 sched_regno_pressure_class instead of sched_regno_cover_class.
11929 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11930 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11932 * ira.h: Add 2010 to Copyright.
11933 (ira_no_alloc_reg): Remove external.
11934 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11935 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11936 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11937 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11938 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11939 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11940 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11941 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11942 x_ira_no_alloc_regs.
11943 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11944 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11945 ira_allocno_classes_num and ira_allocno_classes.
11946 (ira_class_translate): Rename to ira_allocno_class_translate.
11947 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11948 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11949 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11950 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11951 (ira_no_alloc_regs): New.
11953 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11954 classes from the file. Use ALLOCNO_CLASS instead of
11955 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11956 ALLOCNO_COVER_CLASS_COST.
11957 (regno_cover_class): Rename to regno_aclass.
11958 (record_reg_classes): Use ira_reg_class_subunion instead of
11959 ira_reg_class_union.
11960 (record_address_regs): Check overflow.
11961 (scan_one_insn): Ditto.
11962 (print_allocno_costs): Print total mem cost fore regional allocation.
11963 (print_pseudo_costs): Use REG_N_REFS.
11964 (find_costs_and_classes): Use classes intersected with them on the
11965 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11966 ira_reg_class_union. Use ira_allocno_class_translate and
11967 regno_aclass instead of ira_class_translate and regno_cover_class.
11968 Modify code for finding regno_aclass. Setup preferred classes for
11970 (setup_allocno_cover_class_and_costs): Rename to
11971 setup_allocno_class_and_costs. Use regno_aclass instead of
11972 regno_cover_class. Use ira_set_allocno_class instead of
11973 ira_set_allocno_cover_class.
11974 (init_costs, finish_costs): Use regno_aclass instead of
11976 (ira_costs): Use setup_allocno_class_and_costs instead of
11977 setup_allocno_cover_class_and_costs.
11978 (ira_tune_allocno_costs_and_cover_classes): Rename to
11979 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11980 by processing objects. Use ira_reg_class_max_nregs instead of
11981 ira_reg_class_nregs.
11983 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11985 * sched-int.h: Remove mentioning cover classes from the file.
11986 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11988 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11989 classes from the file.
11990 (struct reg_pref): Rename coverclass into allocnoclass.
11991 (reg_cover_class): Rename to reg_allocno_class.
11993 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11995 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11997 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11999 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12001 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12003 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12005 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12007 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12009 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12011 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12013 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12014 (i386_ira_cover_classes): Ditto.
12016 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12018 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12020 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12022 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12024 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12026 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12028 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12029 (mips_ira_cover_classes): Ditto.
12031 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12033 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12035 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12037 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12039 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12041 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12042 (IRA_COVER_CLASSES_VSX): Ditto.
12044 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12045 (rs6000_ira_cover_classes): Ditto.
12047 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12049 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12051 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12053 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12055 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12057 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12059 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12061 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12063 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12065 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12067 2011-03-29 Jakub Jelinek <jakub@redhat.com>
12070 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12071 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12072 dw_fde_unlikely_section_end_label, cold_in_std_section,
12073 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12074 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12076 (output_fde): Use dw_fde_second_{begin,end} if second is
12077 true, otherwise dw_fde_{begin,end}.
12078 (output_call_frame_info): Test dw_fde_second_begin != NULL
12079 instead of dw_fde_switched_sections.
12080 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12081 fields, initialize new fields. Initialize in_std_section
12082 unconditionally from the first partition.
12083 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12084 dw_fde_second_begin is non-NULL.
12085 (dwarf2out_switch_text_section): Stop initializing removed
12086 dw_fde_struct fields, initialize new fields, initialize
12087 also dw_fde_end here. Set dw_fde_switch_cfi even when
12088 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12089 (struct var_loc_list_def): Add last_before_switch field.
12090 (arange_table, arange_table_allocated, arange_table_in_use,
12091 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12092 (size_of_aranges): Count !in_std_section and !second_in_std_section
12093 hunks in fdes, instead of looking at arange_table_in_use.
12094 (output_aranges): Add aranges_length argument, don't call
12095 size_of_aranges here. Instead of using aranges_table*
12096 emit ranges for fdes when !in_std_section resp.
12097 !second_in_std_section.
12098 (dw_loc_list): Break ranges crossing section switch.
12099 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
12100 use dw_fde_second_end instead of dw_fde_end as end of last range.
12101 (gen_subprogram_die): Don't call add_arange. Use
12102 dw_fde_{begin,end} for first partition and if switched
12103 section dw_fde_second_{begin,end} for the second.
12104 (var_location_switch_text_section_1,
12105 var_location_switch_text_section): New functions.
12106 (dwarf2out_begin_function): Initialize cold_text_section even
12107 when function_section () isn't text_section.
12108 (prune_unused_types): Don't walk arange_table.
12109 (dwarf2out_finish): Don't needlessly test
12110 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12111 If info_section_emitted, call size_of_aranges and if it indicates
12112 non-empty .debug_aranges, call output_aranges with the computed
12113 size. Stop using removed dw_fde_struct fields, use
12114 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12118 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12119 create ENTRY_VALUE if incoming or address of incoming's MEM
12121 * dwarf2out.c (mem_loc_descriptor): Don't emit
12122 DW_OP_GNU_entry_value of DW_OP_fbreg.
12123 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12124 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12125 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12126 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12128 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12129 is a REG_P or MEM_P with REG_P address, compute hash directly
12130 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12131 (preserve_only_constants): Don't clear VALUES forwaring
12132 ENTRY_VALUE to some other VALUE.
12134 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12136 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12137 instead of GEN_INT.
12139 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12141 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12142 block before expanding the statement.
12143 (expand_gimple_stmt_1): Likewise. Set them here...
12144 (expand_gimple_stmt): ...and not here. Tidy.
12145 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12148 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12150 * Makefile.in: New rule for cprop.o.
12151 * gcse.c: Move constant/copy propagation to cprop.c.
12152 (compute_local_properties): Only handle expression tables.
12153 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12154 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12155 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12156 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12157 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12158 compute_cprop_data, find_used_regs, try_replace_reg,
12159 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12160 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12161 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12162 find_bypass_set, reg_killed_on_edge, bypass_block,
12163 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12164 execute_rtl_cprop, pass_rtl_cprop): Move to...
12165 * cprop.c: ...here. New file, constant/copy propagation for RTL
12166 moved from gcse.c to here with minor cleanups in duplicated code.
12168 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12170 * config/i386/i386.c (flag_opts): Fix a typo in
12171 -mavx256-split-unaligned-store.
12173 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12175 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12176 LIBCALL_VALUE): Remove macros.
12177 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12178 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12179 (h8300_function_value, h8300_libcall_value,
12180 h8300_function_value_regno_p): New functions.
12182 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12184 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12186 2011-03-28 Jeff Law <law@redhat.com>
12188 * tree-ssa-threadupdate.c (redirect_edges): Call
12189 create_edge_and_update_destination_phis as needed.
12190 (create_edge_and_update_destination_phis): Accept new BB argument.
12191 All callers updated.
12192 (thread_block): Do not update the profile when threading around
12193 intermediate blocks.
12194 (thread_single_edge): Likewise.
12195 (determine_bb_domination_status): If BB is not a successor of the
12196 loop header, return NONDOMINATING.
12197 (register_jump_thread): Note when we register a jump thread around
12198 an intermediate block.
12199 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12200 (thread_across_edge): Use it.
12202 2011-03-28 Tristan Gingold <gingold@adacore.com>
12204 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12205 when for_return is 2.
12207 2011-03-28 Jeff Law <law@redhat.com>
12209 * var-tracking.c (canonicalize_values_mark): Delete unused
12211 (canonicalize_values_star, set_variable_part): Likewise.
12212 (clobber_variable_part, delete_variable_part): Likewise.
12214 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12216 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12218 2011-03-28 Martin Jambor <mjambor@suse.cz>
12220 * tree-inline.c (expand_call_inline): Do not check that destination
12222 (optimize_inline_calls): Assert that destination node is analyzed.
12223 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12224 not call tree_lowering_passes.
12225 * cgraph.h (cgraph_analyze_function): Declare.
12226 * cgraphunit.c (cgraph_analyze_function): Make public.
12228 2011-03-28 Joseph Myers <joseph@codesourcery.com>
12230 * config/sparc/sparc-opts.h: New.
12231 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12232 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12233 (sparc_option_override): Store processor_type enumeration rather
12234 than string in cpu_default. Remove name and enumeration from
12235 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12236 without using sparc_select. Use target_flags_explicit instead of
12238 * config/sparc/sparc.h (enum processor_type): Move to
12240 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12241 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12242 HeaderInclude entry.
12243 (mcpu=, mtune=): Use Var and Enum.
12244 (sparc_processor_type): New Enum and EnumValue entries.
12246 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12247 Iain Sandoe <iains@gcc.gnu.org>
12250 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12252 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12254 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12255 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12256 Insert new statements at it in lieu of STMT.
12257 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12258 * tree-vect-stmts.c (vectorizable_store): Likewise.
12259 (vectorizable_load): Likewise.
12261 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
12263 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12268 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12270 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12271 unaligned 256bit load/store.
12272 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12273 (*avx_movdqu<avxmodesuffix>): Likewise.
12275 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12278 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12279 * config/pa/pa.md (iordi3): Use new predicate in expander.
12280 (iorsi3): Likewise.
12282 2011-03-27 Anatoly Sokolov <aesok@post.ru>
12284 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12285 FUNCTION_VALUE_REGNO_P): Remove macros.
12286 * config/mips/mips-protos.h (mips_function_value): Remove.
12287 * config/mips/mips.c (mips_function_value): Rename to...
12288 (mips_function_value_1): ... this. Make static. Handle receiving
12289 the function type in 'fn_decl_or_type' argument.
12290 (mips_function_value, mips_libcall_value,
12291 mips_function_value_regno_p): New function.
12292 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12293 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12295 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12297 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12298 and -mavx256-split-unaligned-store.
12299 (ix86_option_override_internal): Split 32-byte AVX unaligned
12300 load/store by default.
12301 (ix86_avx256_split_vector_move_misalign): New.
12302 (ix86_expand_vector_move_misalign): Use it.
12304 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12305 -mavx256-split-unaligned-store.
12307 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12308 256bit load/store. Generate unaligned store on misaligned memory
12310 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12312 (*avx_movdqu<avxmodesuffix>): Likewise.
12314 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12315 -mavx256-split-unaligned-store.
12317 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12320 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12323 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12325 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12326 opno arguments with an expand_operand. Use create_input_operand.
12327 (mips_prepare_builtin_target): Delete.
12328 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12330 (mips_expand_builtin_direct): Use create_output_operand and
12331 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12332 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12333 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12335 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
12337 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12339 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12341 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12343 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12344 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12345 basic blocks and call commit_edge_insertions directly.
12346 (fixup_abnormal_edges): Move from here to...
12347 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12348 on the edges and return whether some have actually been inserted.
12349 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12352 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
12354 PR rtl-optimization/48144
12355 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12356 (merge_expr_data): ... here.
12357 (av_set_intersect): Rename to av_set_code_motion_filter.
12358 Update all callers. Call merge_history_vect when an expression
12359 is found in both sets.
12360 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12362 2011-03-26 Alan Modra <amodra@gmail.com>
12364 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12365 cmodel medium addresses.
12366 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12367 64-bit gpr loads and stores.
12368 (rs6000_secondary_reload_ppc64): New function.
12369 * config/rs6000/rs6000-protos.h: Declare it.
12370 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12372 2011-03-26 Alan Modra <amodra@gmail.com>
12375 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12376 GNU Go in traceback table.
12378 2011-03-25 Richard Henderson <rth@redhat.com>
12380 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12381 if there are exactly 6 operands.
12382 (set_storage_via_setmem): Similarly.
12384 2011-03-25 Kai Tietz <ktietz@redhat.com>
12386 * collect2.c (write_c_file_stat): Handle backslash
12387 as right-hand directory separator.
12388 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12389 checking just for slash.
12390 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12391 instead of checking for trailing slash.
12392 * gcc.c (record_temp_file): Use filename_cmp instead
12394 (do_spec_1): Likewise.
12395 (replace_outfile_spec_function): Likewise.
12396 (is_directory): Use filename_ncmp instead of strncmp.
12397 (print_multilib_info): Likewise.
12398 * gcov.c (find_source): Use filename_cmp instead
12400 (make_gcov_file_name): Fix order of slash/backslash
12402 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12403 (add_standard_paths): Likewise.
12404 * mips-tfile.c (saber_stop): Handle backslash.
12405 * prefix.c (update_path): Use filename_ncmp instead of
12407 * profile.c (output_location): Use filename_cmp instead
12409 * read-md.c (handle_toplevel_file): Handle backslash.
12410 * tlink.c (frob_extension): Likewise.
12411 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12413 * tree-dump.c (dequeue_and_dump): Handle backslash.
12414 * tree.c (get_file_function_name): Likewise.
12415 * gengtype.c (read_input_list): Likewise.
12416 (get_file_realbasename): Likewise.
12417 (get_output_file_with_visibility): Use filename_cmp
12420 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12422 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12425 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12427 * fold-const.c (expr_location_or): New function.
12428 (fold_truth_not_expr): Call it.
12430 2011-03-25 Jeff Law <law@redhat.com>
12432 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12434 * c-family/c-common.c (def_fn_type): Likewise.
12435 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12436 * emit-rtl.c (gen_rtvec): Likewise.
12437 * lto/lto-lang.c (def_fn_type): Likewise.
12439 2011-03-25 Richard Guenther <rguenther@suse.de>
12441 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12442 also generate copies.
12443 (fini_copy_prop): Handle constant values properly.
12445 2011-03-25 Jakub Jelinek <jakub@redhat.com>
12447 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12448 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12449 (hash_loc_operands, compare_loc_operands): Handle
12450 DW_OP_GNU_entry_value.
12452 2011-03-25 Kai Tietz <ktietz@redhat.com>
12454 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12455 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12456 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12457 comment and use macro TARGET_64BIT_MS_ABI instead.
12458 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12459 and change default behavior for 32-bit MS_ABI.
12460 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12461 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12463 (ix86_cfun_abi): Likewise.
12464 (ix86_maybe_switch_abi): Adjust comment.
12465 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12466 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12467 instead of checking for SYSV_ABI.
12468 (ix86_nsaved_sseregs): Likewise.
12469 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12471 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12472 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12473 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12474 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12475 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12477 2011-03-25 Richard Guenther <rguenther@suse.de>
12479 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12480 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12481 (verify_gimple): Remove.
12482 * tree-cfg.c (verify_gimple_call): Merge verification
12484 (verify_gimple_phi): Merge verification from verify_stmts.
12485 (verify_gimple_label): New function.
12486 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12487 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12488 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12489 (verify_stmts): Rename to verify_gimple_in_cfg.
12490 (verify_gimple_in_cfg): New function.
12491 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12492 * tree-ssa.c (verify_ssa): Likewise.
12493 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12495 2011-03-25 Richard Guenther <rguenther@suse.de>
12497 * passes.c (init_optimization_passes): Add FRE pass after
12500 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
12501 Andrew Stubbs <ams@codesourcery.com>
12503 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12505 (arm_movdi_vfp_cortexa8): New pattern.
12506 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12507 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12508 instructions when tuning for Cortex-A8. Set attribute "arch".
12509 * config/arm/arm.md: Move include arm-tune.md up a bit.
12510 (define_attr "arch"): Add "onlya8" and "nota8" values.
12511 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12513 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12517 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12519 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12520 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12521 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12522 * passes.c (init_optimization_passes): Move
12523 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12525 2011-03-25 Kai Tietz <ktietz@redhat.com>
12527 * c-typeck.c (comptypes_internal): Replace target
12528 hook call of comp_type_attributes by version in tree.c file.
12529 * gimple.c (gimple_types_compatible_p_1): Likewise.
12530 * tree-ssa.c (useless_type_conversion_p): Likewise.
12531 * tree.c (build_type_attribute_qual_variant): Likewise.
12532 (attribute_value_equal): New static helper function.
12533 (comp_type_attributes): New function.
12534 (merge_attributes): Use attribute_value_equal for comparison.
12535 (attribute_list_contained): Likewise.
12536 * tree.h (comp_type_attributes): New prototype.
12538 2011-03-25 Richard Guenther <rguenther@suse.de>
12540 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12541 of complex types at -O0.
12542 (verify_gimple_assign_binary): Likewise.
12543 (verify_gimple_assign_ternary): Likewise.
12545 2011-03-24 Mark Wielaard <mjw@redhat.com>
12547 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12548 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12550 2011-03-24 Mark Wielaard <mjw@redhat.com>
12553 * dwarf2out.c (output_abbrev_section): Only write table when
12554 abbrev_die_table_in_use > 1.
12556 2011-02-24 Richard Henderson <rth@redhat.com>
12558 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
12559 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
12560 (alpha_expand_unaligned_load_words): Use extql.
12561 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
12562 (emit_insxl): Handle all modes for consistency.
12564 2011-02-24 Richard Henderson <rth@redhat.com>
12566 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
12567 (alpha_expand_unaligned_load): Likewise.
12568 (alpha_expand_unaligned_store): Likewise.
12569 (alpha_expand_unaligned_load_words): Likewise.
12570 (alpha_expand_unaligned_store_words): Likewise.
12571 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
12572 (alpha_split_lock_test_and_set_12): Likewise.
12573 (print_operand, alpha_fold_builtin_extxx): Likewise.
12574 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
12575 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
12576 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
12577 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
12578 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
12579 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
12580 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
12581 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
12582 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
12583 (extwl, extll, extql): Similarly.
12584 (inswh, inslh, insqh): Similarly.
12585 (mskbl, mskwl, mskll, mskql): Similarly.
12586 (mskwh, msklh, mskqh): Similarly.
12588 2011-02-24 Richard Henderson <rth@redhat.com>
12590 * config/alpha/alpha.md (attribute isa): Add er, ner.
12591 (attribute enabled): Handle them.
12592 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
12594 2011-02-24 Richard Henderson <rth@redhat.com>
12596 * config/alpha/alpha.md (attribute isa): Add vms.
12597 (attribute enabled): Handle it.
12598 (*movsf): Merge *movsf_{nofix,fix,nofp}.
12599 (*movdf): Merge *movdf_{nofix,fix,nofp}.
12600 (*movtf): Rename from *movtf_internal for consistency.
12601 (*movsi): Merge with *movsi_nt_vms.
12602 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12603 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12604 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12605 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12607 2011-02-24 Richard Henderson <rth@redhat.com>
12609 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12610 (extendqisi2, extendhisi2): Likewise.
12611 (extendqidi2): Simplify BWX/non-BWX expansions.
12612 (extendhidi2): Similarly.
12614 2011-02-24 Richard Henderson <rth@redhat.com>
12616 * config/alpha/alpha.md (attribute isa): New.
12617 (attribute enabled): New.
12618 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12619 (zero_extendqisi2, zero_extendqidi2): Similarly.
12620 (zero_extendhisi2, zero_extendhidi2): Similarly.
12621 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12623 2011-02-24 Richard Henderson <rth@redhat.com>
12625 * config/alpha/predicates.md (input_operand): Revert last change;
12626 update comment to mention 32-bit VMS rather than Windows.
12628 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12630 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12631 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12632 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12633 * passes.c (init_optimization_passes): Move
12634 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12636 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12638 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12640 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12642 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12645 2011-03-24 Jakub Jelinek <jakub@redhat.com>
12648 * simplify-rtx.c (simplify_const_unary_operation): Call
12649 real_convert when changing mode class with FLOAT_EXTEND.
12651 2011-03-24 Nick Clifton <nickc@redhat.com>
12653 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12654 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12655 * config/rx/rx.c (rx_option_override): Set align_jumps,
12656 align_loops and align_labels if not set by the user.
12657 (rx_align_for_label): New function.
12658 (rx_max_skip_for_label): New function.
12659 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12660 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12661 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12662 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12663 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12665 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12667 PR rtl-optimization/48263
12668 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12669 and original commutative_p handling. Use maybe_gen_insn.
12671 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12673 * reload.c (find_reloads_subreg_address): Add address_reloaded
12674 parameter and return true there if the full address has been
12676 (find_reloads_toplev): Pass address_reloaded flag.
12677 (find_reloads_address_1): Don't use address_reloaded parameter.
12679 2011-03-24 Jeff Law <law@redhat.com>
12681 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12682 unused variable "ann".
12683 (remove_unused_locals): Likewise.
12685 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12688 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12691 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12693 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12694 for invalid symbolic addresses.
12695 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12698 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12700 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12701 the argument in calls to fold_truth_not_expr.
12703 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12705 * tree.c (record_node_allocation_statistics): New function.
12706 (make_node_stat, copy_node_stat, build_string): Call it.
12707 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12708 (build1_stat, build_omp_clause): Likewise.
12710 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12712 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12715 2011-03-24 Richard Guenther <rguenther@suse.de>
12717 PR tree-optimization/48271
12718 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12719 blocks that still exist.
12721 2011-03-24 Richard Guenther <rguenther@suse.de>
12723 PR tree-optimization/48270
12724 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12725 not free datarefs before ddrs.
12727 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12729 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12730 from the address built for a reference with variable offset.
12732 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12735 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12736 alternatives that can be handled with movq or movabsq insn.
12737 (*movdf_internal): Disable for !TARGET_64BIT.
12738 (*movdf_internal_nointeger): Ditto.
12739 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12741 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12743 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12744 (FUNCTION_ARG_ADVANCE): Likewise.
12745 * tm.texi.in: Change references to them to hook references.
12746 * tm.texi: Regenerate.
12747 * targhooks.c (default_function_arg): Eliminate check for target macro.
12748 (default_function_incoming_arg): Likewise.
12749 (default_function_arg_advance): Likewise.
12750 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12751 (function_arg_advance): Likewise.
12752 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12754 2011-03-24 Richard Guenther <rguenther@suse.de>
12756 PR middle-end/48269
12757 * tree-object-size.c (addr_object_size): Do not double-account
12758 for MEM_REF offsets.
12760 2011-03-24 Diego Novillo <dnovillo@google.com>
12762 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12763 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12764 (lto_input_data_block): Move from lto-opts.c. Make extern.
12766 (lto_input_string): Rename from input_string. Make extern.
12768 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12769 output_string_with_length.
12770 Output 0 to indicate a non-NULL string. Update all callers to
12772 (lto_output_string): Rename from output_string. Make extern.
12774 (lto_output_decl_state_streams): Make extern.
12775 (lto_output_decl_state_refs): Make extern.
12776 * lto-streamer.h (lto_input_string): Declare.
12777 (lto_input_data_block): Declare.
12778 (lto_output_string): Declare.
12779 (lto_output_string_with_length): Declare.
12780 (lto_output_decl_state_streams): Declare.
12781 (lto_output_decl_state_refs): Declare.
12783 2011-03-24 Richard Guenther <rguenther@suse.de>
12785 PR tree-optimization/46562
12786 * tree.c (build_invariant_address): New function.
12787 * tree.h (build_invariant_address): Declare.
12788 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12789 a renamed function moved ...
12790 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12791 Take valueization callback parameter.
12792 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12793 * gimple-fold.h: New file.
12794 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12795 (ccp_fold, fold_const_aggregate_ref,
12796 fold_ctor_reference, fold_nonarray_ctor_reference,
12797 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12798 get_base_constructor): Move ...
12799 * gimple-fold.c: ... here.
12800 (gimple_fold_stmt_to_constant_1): New function
12801 split out from ccp_fold. Take a valueization callback parameter.
12802 Valueize all operands.
12803 (gimple_fold_stmt_to_constant): New wrapper function.
12804 (fold_const_aggregate_ref_1): New function split out from
12805 fold_const_aggregate_ref. Take a valueization callback parameter.
12806 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12807 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12808 invariant POINTER_PLUS_EXPRs to invariant form.
12809 (vn_valueize): New function.
12810 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12811 * tree-vrp.c (vrp_valueize): New function.
12812 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12813 to fold statements to constants.
12814 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12815 function declarations.
12816 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12817 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12819 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12821 * config/h8300/predicates.md (jump_address_operand): Fix register
12824 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12826 * doc/invoke.texi (max-stores-to-sink): Document.
12827 * params.h (MAX_STORES_TO_SINK): Define.
12828 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12829 if either vectorization or if-conversion is disabled.
12830 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12831 tree-vect-data-refs.c vect_equal_offsets.
12832 (dr_equal_offsets_p): New function.
12833 (find_data_references_in_bb): Remove static.
12834 * tree-data-ref.h (find_data_references_in_bb): Declare.
12835 (dr_equal_offsets_p): Likewise.
12836 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12837 (vect_drs_dependent_in_basic_block): Update calls to
12838 vect_equal_offsets.
12839 (vect_check_interleaving): Likewise.
12840 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12841 (cond_if_else_store_replacement): Rename to...
12842 (cond_if_else_store_replacement_1): ... this. Change arguments and
12844 (cond_if_else_store_replacement): New function.
12845 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12846 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12848 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12851 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12852 to subtract lower bound instead of GEN_INT().
12854 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12859 * doc/extend.texi (Alignment): Move section to match order in TOC.
12860 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12861 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12863 2011-03-23 Jeff Law <law@redhat.com>
12865 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12866 before removing the edge.
12868 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12869 it may have been freed by redirect_branch_edge or
12870 redirect_edge_succ_nodup.
12872 2011-03-23 Richard Guenther <rguenther@suse.de>
12874 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12875 (check_va_list_escapes): Likewise.
12876 (check_all_va_list_escapes): Likewise.
12878 2011-03-23 Richard Guenther <rguenther@suse.de>
12880 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12881 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12882 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12883 (alias.o): Likewise.
12884 (ipa-type-escape.o): Remove.
12885 (ipa-struct-reorg.o): Likewise.
12886 (GTFILES): Remove ipa-struct-reorg.c.
12887 * alias.c: Do not include ipa-type-escape.h.
12888 * tree-ssa-alias.c: Likewise.
12889 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12890 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12891 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12892 and ipa-type-escape passes.
12893 * tree-pass.h (pass_ipa_type_escape): Remove.
12894 (pass_ipa_struct_reorg): Likewise.
12895 * ipa-struct-reorg.h: Remove.
12896 * ipa-struct-reorg.c: Likewise.
12897 * ipa-type-escape.h: Likewise.
12898 * ipa-type-escape.c: Likewise.
12899 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12900 (--param struct-reorg-cold-struct-ratio): Likewise.
12901 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12902 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12903 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12905 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12907 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12908 cpu attribute value.
12909 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12910 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12911 * config/s390/s390.c (processor_flags_table): New constant array.
12912 (s390_handle_arch_option): Remove.
12913 (s390_handle_option): Remove s390_handle_arch_option invocations
12914 and OPT_mwarn_framesize_ handling.
12915 (s390_option_override): Remove s390_handle_arch_option invocation.
12916 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12918 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12919 * config/s390/s390.opt (s390_tune, s390_arch)
12920 (march=): Replace s390_arch_option enum and values with
12921 processor_type. Set variable name to s390_arch. Set
12922 initialization value.
12923 (mtune=): Replace s390_arch_option with processor_type. Set
12924 variable name to s390_tune. Set initialization value.
12926 2011-03-23 Julian Brown <julian@codesourcery.com>
12928 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12929 accesses which are not naturally aligned.
12931 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12934 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12936 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12938 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12939 parameter from "int" to "enum insn_code".
12940 (expand_operand_type): New enum.
12941 (expand_operand): New structure.
12942 (create_expand_operand): New function.
12943 (create_fixed_operand, create_output_operand): Likewise
12944 (create_input_operand, create_convert_operand_to): Likewise.
12945 (create_convert_operand_from, create_address_operand): Likewise.
12946 (create_integer_operand): Likewise.
12947 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12948 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12949 (expand_insn, expand_jump_insn): Likewise.
12950 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12951 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12952 (expand_movstr, expand_builtin___clear_cache): Likewise.
12953 (expand_builtin_lock_release): Likewise.
12954 * explow.c (allocate_dynamic_stack_space): Likewise.
12955 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12956 and use the default handling in that case.
12957 * expmed.c (check_predicate_volatile_ok): Delete.
12958 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12959 (emit_cstore): Likewise.
12960 * expr.c (emit_block_move_via_movmem): Likewise.
12961 (set_storage_via_setmem, expand_assignment): Likewise.
12962 (emit_storent_insn, try_casesi): Likewise.
12963 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12964 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12965 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12966 (expand_twoval_unop, expand_twoval_binop): Likewise.
12967 (expand_unop_direct, emit_indirect_jump): Likewise.
12968 (emit_conditional_move, vector_compare_rtx): Likewise.
12969 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12970 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12971 (expand_sync_lock_test_and_set): Likewise.
12972 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12973 (emit_unop_insn): Likewise.
12974 (expand_copysign_absneg): Change icode to an insn_code.
12975 (create_convert_operand_from_type): New function.
12976 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12977 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12978 (expand_insn, expand_jump_insn): Likewise.
12979 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12980 than const_int_operand for operand 2.
12982 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12984 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12987 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12989 * emit-rtl.c (emit_pattern_before_noloc): New function.
12990 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12991 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12992 (emit_pattern_after_noloc): New function.
12993 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12994 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12996 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12998 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12999 (__ffsDI2): Likewise.
13001 2011-03-22 Richard Henderson <rth@redhat.com>
13003 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13004 of !TARGET_ABI_OPEN_VMS.
13005 (alpha_trampoline_init, alpha_start_function): Likewise.
13006 (alpha_expand_epilogue, alpha_file_start): Likewise.
13007 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13008 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13009 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13010 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13011 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13013 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13015 * config/s390/s390-opts.h: New.
13016 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13017 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13018 s390_stack_guard): Remove.
13019 (s390_handle_arch_option): Return void. Take enum
13020 s390_arch_option value instead of string and searching array.
13021 (s390_handle_option): Don't assert that global structures are in
13022 use. Access variables via opts pointer. Use error_at. Don't use
13023 sscanf for -mstack-guard= or -mstack-size=. Update call to
13024 s390_handle_arch_option.
13025 (s390_option_override): Update call to s390_handle_arch_option.
13026 (s390_emit_prologue): Use %d format for s390_stack_size in
13027 diagnostic. Use %wd for HOST_WIDE_INT.
13028 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13029 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13030 * config/s390/s390.opt (config/s390/s390-opts.h): New
13031 HeaderInclude entry.
13032 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13033 s390_arch_flags, s390_warn_framesize): New Variable entries.
13034 (s390_arch_option): New Enum and EnumValue entries.
13035 (march=): Use Enum instead of Var.
13036 (mstack-guard=, mstack-size=): Use UInteger and Var.
13037 (mtune=): Use Enum.
13039 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13041 * config/score/score.c (score_handle_option): Don't assert that
13042 global structures are in use. Access target_flags via opts
13043 pointer. Use value of -march= option to determine target_flags
13045 * config/score/score.opt (march=): Use Enum.
13046 (score_arch): New Enum and EnumValue entries.
13048 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13050 * config/mep/mep.c (option_mtiny_specified): Remove.
13051 (mep_option_override): Move register handling for -mivc2 from
13052 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
13053 instead of option_mtiny_specified.
13054 (mep_handle_option): Access target_flags via opts pointer. Don't
13055 assert that global structures are in use. Defer part of -mivc2
13056 handling and move it to mep_option_override.
13057 * config/mep/mep.opt (IVC2): New Mask entry.
13058 (mivc2): Use Var and Defer instead of Mask.
13060 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13062 * config/v850/v850-opts.h: New.
13063 * config/v850/v850.c (small_memory): Replace with
13064 small_memory_physical_max array. Make that array static const.
13065 (v850_handle_memory_option): Take integer value of argument. Take
13066 gcc_options pointer, option text and location. Return void.
13067 Update for changes to small memory structures.
13068 (v850_handle_option): Access target_flags via opts pointer. Don't
13069 assert that global structures are in use. Update calls to
13070 v850_handle_memory_option.
13071 (v850_encode_data_area): Update references to small memory settings.
13072 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13073 (enum small_memory_type): Move to v850-opts.h.
13074 * config/v850/v850.opt (config/v850/v850-opts.h): New
13075 HeaderInclude entry.
13076 (small_memory_max): New Variable entry.
13077 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13078 (mtda, mzda): Likewise.
13080 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13082 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13083 pointer. Don't assert that global structures are in use.
13085 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13087 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13088 via opts pointer. Don't assert that global structures are in use.
13090 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13092 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13093 (munix=93): Use Var.
13094 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13095 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13096 * config/pa/pa-opts.h: New.
13097 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13098 (pa_handle_option): Don't assert that global structures are in
13099 use. Access target_flags via opts pointer. Don't handle
13100 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13102 (pa_option_override): Handle deferred OPT_mfixed_range_.
13104 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13106 * config/mn10300/mn10300-opts.h: New.
13107 * config/mn10300/mn10300.c (mn10300_processor,
13108 mn10300_tune_string): Remove.
13109 (mn10300_handle_option): Don't assert that global structures are
13110 in use. Access mn10300_processor via opts pointer. Don't handle
13112 * config/mn10300/mn10300.h (enum processor_type): Move to
13114 (mn10300_processor): Remove.
13115 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13116 HeaderInclude entry.
13117 (mn10300_processor): New Variable entry.
13120 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13122 * config/microblaze/microblaze.c: Don't include opts.h.
13123 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13124 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13125 (mno-clearbss): Use Var and Warn.
13127 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13129 * config/m32r/m32r-opts.h: New.
13130 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13131 (m32r_handle_option): Don't assert that global structures are in
13132 use. Access target_flags and m32r_cache_flush_func via opts
13133 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13134 OPT_mno_flush_trap here.
13135 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13136 include of m32r-opts.h.
13137 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13138 HeaderInclude entry.
13139 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13140 (mmodel=): Use Enum and Var.
13141 (m32r_model): New Enum and EnumValue entries.
13142 (mno-flush-trap): Use Var.
13143 (msdata=): Use Enum and Var.
13144 (m32r_sdata): New Enum and EnumValue entries.
13146 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13148 * config/m32c/m32c.c: Don't include opts.h.
13149 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13150 m32c_handle_option): Remove.
13151 (m32c_option_override): Check global_options_set.x_target_memregs
13152 instead of target_memregs_set.
13153 * config/m32c/m32c.h (target_memregs): Remove.
13154 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13157 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13159 * config/iq2000/iq2000-opts.h: New.
13160 * config/iq2000/iq2000.c: Don't include opts.h.
13161 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13162 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13163 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13164 HeaderInclude entry.
13165 (iq2000_tune): New Variable entry.
13166 (march=): Add comment. Use Enum.
13167 (iq2000_arch): New Enum and EnumValue entries.
13168 (mcpu=): Use Enum and Var.
13169 (iq2000_tune): New Enum and EnumValue entries.
13171 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13173 * config/ia64/ia64-opts.h: New.
13174 * config/ia64/ia64.c (ia64_tune): Remove.
13175 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13176 here. Use error_at.
13177 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13178 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13179 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13180 HeaderInclude entry.
13181 (ia64_tune): New Variable entry.
13182 (mfixed-range=): Use Defer and Var.
13183 (mtune=): Use Enum and Var.
13184 (ia64_tune): New Enum and EnumValue entries.
13186 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13188 * config/frv/frv-opts.h: New.
13189 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13191 (frv_cpu_type): Remove.
13192 * config/frv/frv.c: Don't include opts.h.
13193 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13194 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13195 (frv_cpu_type): New Variable entry.
13196 (frv_cpu): New Enum and EnumValue entries.
13198 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13200 * config/cris/cris.c (cris_handle_option): Access target_flags via
13201 opts pointer. Don't assert that global structures are in use.
13202 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13203 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13205 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13207 * config/bfin/bfin-opts.h: New.
13208 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13209 bfin_si_revision, bfin_workarounds): Remove.
13210 (bfin_cpus): Make static const.
13211 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13212 not bfin_lib_id_given.
13213 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13214 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13215 pointer. Use error_at. Don't assert that global structures are in use.
13216 * config/bfin/bfin.h: Include bfin-opts.h.
13217 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13218 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13219 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13220 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13223 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13225 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13226 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13227 or -msoft-float here.
13228 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13229 -msoft-float and -mhard-float.
13230 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13231 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13233 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13235 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13236 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13238 (LIBGCC_SPEC): Don't handle -msoft-float.
13239 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13241 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13243 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13244 -mfloat-abi=*, not -msoft-float and -mhard-float.
13245 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13247 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13248 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13249 mhard-float and msoft-float.
13250 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13251 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13252 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13253 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13255 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13256 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13258 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13260 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13263 2011-03-22 Richard Henderson <rth@redhat.com>
13265 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13266 TARGET_ABI_WINDOWS_NT.
13267 (alpha_output_function_end_prologue): Likewise.
13268 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13269 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13270 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13271 (trap, *movsi_nt_vms): Likewise.
13272 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13273 (*tablejump_osf_nt_internal): Remove.
13274 * config/alpha/predicates.md (input_operand): Only test Pmode.
13276 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13278 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13279 via opts pointer. Use error_at. Don't assert that global
13280 structures are in use.
13282 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13284 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13285 (ix86_handle_option): Access ix86_isa_flags and
13286 ix86_isa_flags_explicit via opts pointer. Don't assert that
13287 global structures are in use.
13288 (ix86_function_specific_save, ix86_function_specific_restore):
13289 Update ix86_isa_flags_explicit field name.
13290 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13291 (ix86_isa_flags_explicit): Rename TargetSave entry to
13292 x_ix86_isa_flags_explicit.
13294 2011-03-22 Richard Henderson <rth@redhat.com>
13296 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13297 (alpha_option_override, direct_return): Likewise.
13298 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13299 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13300 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13301 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13302 (alpha_expand_epilogue, alpha_end_function): Likewise.
13303 (alpha_init_libfuncs): Likewise.
13304 (struct machine_function): Remove unicosmk members.
13305 (print_operand) ['t']: Remove.
13306 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13307 unicosmk_output_module_name, unicosmk_output_common,
13308 current_section_align, unicosmk_output_text_section_asm_op,
13309 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13310 unicosmk_section_type_flags, unicosmk_unique_section,
13311 unicosmk_asm_named_section, unicosmk_insert_attributes,
13312 unicosmk_output_align, unicosmk_defer_case_vector,
13313 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13314 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13315 unicosmk_output_ssib, unicosmk_add_call_info_word,
13316 unicosmk_extern_head, unicosmk_output_default_externs,
13317 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13318 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13319 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13320 * config/alpha/alpha-protos.h: Update.
13321 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13322 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13323 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13324 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13325 (*mulsi_se, mulvsi3): Likewise.
13326 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13327 (*divmodsi_internal, call, call_value, realign): Likewise.
13328 (moddi3, umoddi3): Likewise; remove duplicate expander.
13329 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13330 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13331 (*movdi_nofix): Remove r/U alternative.
13332 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13333 * config/alpha/constraints.md ("U"): Remove.
13334 * config/alpha/predicates.md (call_operand"): Don't test
13335 TARGET_ABI_UNICOSMK.
13337 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13339 * target.def (handle_option): Take gcc_options and
13340 cl_decoded_option pointers and location_t.
13341 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13342 * doc/tm.texi: Regenerate.
13343 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13344 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13345 * lto-opts.c (lto_reissue_options): Generate option structure for
13346 targetm.handle_option call.
13347 * opts.c (target_handle_option): Update call to
13348 targetm.handle_option. Remove assertions about values now passed
13350 * targhooks.c (default_target_handle_option): New.
13351 * targhooks.h (default_target_handle_option): Declare.
13352 * config/alpha/alpha.c: Include opts.h.
13353 (alpha_handle_option): Update to new hook interface.
13354 * config/arm/arm.c: Include opts.h.
13355 (arm_handle_option): Update to new hook interface.
13356 * config/arm/t-arm (arm.o): Update dependencies.
13357 * config/bfin/bfin.c: Include opts.h.
13358 (bfin_handle_option): Update to new hook interface.
13359 * config/cris/cris.c: Include opts.h.
13360 (cris_handle_option): Update to new hook interface.
13361 * config/frv/frv.c: Include opts.h.
13362 (frv_handle_option): Update to new hook interface.
13363 * config/i386/i386.c: Include opts.h.
13364 (ix86_handle_option): Update to new hook interface.
13365 (ix86_valid_target_attribute_inner_p): Generate option structure
13366 for call to ix86_handle_option.
13367 * config/i386/t-i386 (i386.o): Update dependencies.
13368 * config/ia64/ia64.c: Include opts.h.
13369 (ia64_handle_option): Update to new hook interface.
13370 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13371 * config/iq2000/iq2000.c: Include opts.h.
13372 (iq2000_handle_option): Update to new hook interface.
13373 * config/m32c/m32c.c: Include opts.h.
13374 (m32c_handle_option): Update to new hook interface.
13375 * config/m32r/m32r.c: Include opts.h.
13376 (m32r_handle_option): Update to new hook interface.
13377 * config/m68k/m68k.c: Include opts.h.
13378 (m68k_handle_option): Update to new hook interface.
13379 * config/mep/mep.c: Include opts.h.
13380 (mep_handle_option): Update to new hook interface.
13381 * config/microblaze/microblaze.c: Include opts.h.
13382 (microblaze_handle_option): Update to new hook interface.
13383 * config/mips/mips.c: Include opts.h.
13384 (mips_handle_option): Update to new hook interface.
13385 * config/mn10300/mn10300.c: Include opts.h.
13386 (mn10300_handle_option): Update to new hook interface.
13387 * config/pa/pa.c: Include opts.h.
13388 (pa_handle_option): Update to new hook interface.
13389 * config/pdp11/pdp11.c: Include opts.h.
13390 (pdp11_handle_option): Update to new hook interface.
13391 * config/rs6000/rs6000.c: Include opts.h.
13392 (rs6000_handle_option): Update to new hook interface.
13393 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13394 * config/rx/rx.c: Include opts.h.
13395 (rx_handle_option): Update to new hook interface.
13396 * config/s390/s390.c: Include opts.h.
13397 (s390_handle_option): Update to new hook interface.
13398 * config/score/score.c: Include opts.h.
13399 (score_handle_option): Update to new hook interface.
13400 * config/sh/sh.c: Include opts.h.
13401 (sh_handle_option): Update to new hook interface.
13402 * config/sparc/sparc.c: Include opts.h.
13403 (sparc_handle_option): Update to new hook interface.
13404 * config/v850/v850.c: Include opts.h.
13405 (v850_handle_option): Update to new hook interface.
13407 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13409 * gcc.c (driver_unknown_option_callback): Only permit and save
13410 unknown -Wno- options.
13411 (driver_wrong_lang_callback): Save options directly instead of via
13412 driver_unknown_option_callback.
13414 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13416 * combine.c (simplify_set): Try harder to find the best CC mode when
13417 simplifying a nested COMPARE on the RHS.
13419 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13421 * config/alpha/gnu.h: Remove.
13422 * config/arc: Remove directory.
13423 * config/arm/netbsd.h: Remove.
13424 * config/arm/t-pe: Remove.
13425 * config/crx: Remove directory.
13426 * config/i386/netbsd.h: Remove.
13427 * config/m68hc11: Remove directory.
13428 * config/m68k/uclinux-oldabi.h: Remove.
13429 * config/mcore/mcore-pe.h: Remove.
13430 * config/mcore/t-mcore-pe: Remove.
13431 * config/netbsd-aout.h: Remove.
13432 * config/rs6000/gnu.h: Remove.
13433 * config/sh/sh-symbian.h: Remove.
13434 * config/sh/symbian-base.c: Remove.
13435 * config/sh/symbian-c.c: Remove.
13436 * config/sh/symbian-cxx.c: Remove.
13437 * config/sh/symbian-post.h: Remove.
13438 * config/sh/symbian-pre.h: Remove.
13439 * config/sh/t-symbian: Remove.
13440 * config/svr3.h: Remove.
13441 * config/vax/netbsd.h: Remove.
13442 * config.build: Don't handle i[34567]86-*-pe.
13443 * config.gcc: Remove handling of deprecations for most deprecated
13445 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13446 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13447 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13448 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13449 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13450 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13452 * config.host: Don't handle i[34567]86-*-pe.
13453 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13454 (ASM_SPEC32): Don't handle -mcall-gnu.
13455 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13457 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13458 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13459 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13460 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13461 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13462 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13463 conditional on SYMBIAN.
13464 * configure.ac: Don't handle powerpc*-*-gnu*.
13465 * configure: Regenerate.
13466 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13467 * doc/install-old.texi (m6811, m6812): Don't mention.
13468 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13469 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13470 (m68k-uclinuxoldabi): Don't mention.
13471 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13473 (-mcall-gnu): Remove.
13474 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13475 families): Remove constraint documentation.
13477 2011-03-22 Marius Strobl <marius@FreeBSD.org>
13479 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13480 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13481 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13483 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13486 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13487 vector when peeking at the next token for vector, don't expand the
13490 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
13492 * config/avr/avr-protos.h (expand_epilogue): Change prototype
13493 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13494 * config/avr/avr.c (init_cumulative_args)
13495 (avr_function_arg_advance): Use it.
13496 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13498 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13499 (avr_function_ok_for_sibcall): ...this new function.
13500 (avr_lookup_function_attribute1): New static Function.
13501 (avr_naked_function_p, interrupt_function_p)
13502 (signal_function_p, avr_OS_task_function_p)
13503 (avr_OS_main_function_p): Use it.
13504 * config/avr/avr.md ("sibcall", "sibcall_value")
13505 ("sibcall_epilogue"): New expander.
13506 ("*call_insn", "*call_value_insn"): New insn.
13507 ("call_insn", "call_value_insn"): Remove
13508 ("call", "call_value", "epilogue"): Change expander to handle
13511 2011-03-21 Nick Clifton <nickc@redhat.com>
13513 * doc/invoke.texi (Overall Options): Move closing brace to end of
13515 (Optimization Options): Add missing @gol.
13516 (Directory Options): Likewise.
13517 (i386 and x86-64 Options): Likewise.
13518 (RS6000 and PowerPC Options): Likewise.
13519 (i386 and x86-64 Windows Options): Likewise.
13520 (V850 Options): Add text missing from descriptions.
13522 2011-03-22 Richard Henderson <rth@redhat.com>
13524 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13525 (avr_incoming_return_addr_rtx): New.
13526 (emit_push_byte): New.
13527 (expand_prologue): Use it. Remove incorrect dwarf annotation for
13528 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
13529 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
13530 (emit_pop_byte): New.
13531 (expand_epilogue): Use it. Pop frame pointer by bytes.
13532 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13533 (INCOMING_RETURN_ADDR_RTX): New.
13534 (INCOMING_FRAME_SP_OFFSET): New.
13535 (ARG_POINTER_CFA_OFFSET): New.
13536 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13537 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13540 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13542 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13544 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13545 (FUNCTION_ARG_ADVANCE): Likewise.
13546 * tm.texi.in: Change references to them to hook references.
13547 * tm.texi: Regenerate.
13548 * targhooks.c (default_function_arg): Eliminate check for target
13550 (default_function_incoming_arg): Likewise.
13551 (default_function_arg_advance): Likewise.
13552 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13553 (function_arg_advance): Likewise.
13554 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13556 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13558 * tree.c (build_call_1): New function.
13559 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
13561 2011-03-22 Richard Guenther <rguenther@suse.de>
13563 PR tree-optimization/48228
13564 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
13565 for single-arg PHIs.
13567 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
13569 PR rtl-optimization/48143
13570 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
13571 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
13572 sse2_cvtps2pd): Likewise.
13574 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13576 * recog.c (canonicalize_change_group): Use validate_unshare_change.
13578 2011-03-22 Richard Guenther <rguenther@suse.de>
13580 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
13581 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
13582 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
13583 and REALIGN_LOAD_EXPR.
13584 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
13585 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
13586 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
13587 DOT_PROD_EXPR case ...
13588 (expand_expr_real_2): ... here.
13589 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
13590 and REALIGN_LOAD_EXPR.
13591 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
13592 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
13593 (vect_create_epilog_for_reduction): Likewise.
13594 (vectorizable_reduction): Likewise.
13595 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
13596 * tree-vect-stmts.c (vectorizable_load): Likewise.
13598 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13600 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13602 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13604 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13605 handling for PLTOFF/GOTOFF.
13607 2011-03-22 Nick Clifton <nickc@redhat.com>
13609 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13610 trailing backslash from the end of the macro definition.
13612 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13614 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13617 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13619 * expr.h (prepare_operand): Move to...
13620 * optabs.h (prepare_operand): ...here and change the insn code
13621 parameter from "int" to "enum insn_code".
13622 (insn_operand_matches): Declare.
13623 * expr.c (init_expr_target): Use insn_operand_matches.
13624 (compress_float_constant): Likewise.
13625 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13626 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13627 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13628 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13630 (gen_cond_trap): Likewise.
13631 (prepare_operand): Likewise. Change icode to an insn_code.
13632 (insn_operand_matches): New function.
13633 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13634 * reload1.c (gen_reload): Likewise.
13635 * targhooks.c (default_secondary_reload): Likewise.
13637 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13639 * config/alpha/alpha.md (unspec): New define_c_enum.
13642 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13645 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13646 between a call and its CALL_ARG_LOCATION note.
13648 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13650 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13652 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13656 * c-common.c (shorten_compare): If primopN is first sign-extended
13657 to opN and then zero-extended to result type, set primopN to opN.
13659 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13661 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13662 for barrier handlers.
13664 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13666 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13667 UNSPEC constants to be in the unspec enumeration, and redefine
13668 all UNSPECV constants to be in the unspecv enumeration, so that
13669 dumps print which unspec/unspec_volatile this is.
13670 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13671 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13672 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13673 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13674 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13676 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13677 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13678 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13679 * config/rs6000/sync.md (isync, lwsync): Ditto.
13681 2011-03-21 Richard Guenther <rguenther@suse.de>
13683 * params.def (lto-min-partition): Fix typo.
13685 2011-03-21 Richard Guenther <rguenther@suse.de>
13688 * c-decl.c (grokdeclarator): Drop to the main variant only
13689 for array types. Drop flag_gen_aux_info check.
13691 2011-03-21 Richard Guenther <rguenther@suse.de>
13693 PR translation/47911
13694 * params.def (lto-partitions): Fix typo.
13695 (lto-min-partition): Fix wording.
13697 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13699 * config/rs6000/t-freebsd: Remove duplication from file.
13701 2011-03-21 Richard Guenther <rguenther@suse.de>
13703 PR middle-end/47661
13704 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13706 2011-03-21 Richard Guenther <rguenther@suse.de>
13709 * params.def (lto-partitions): Require at least 1 partition.
13711 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13713 * gthr-solaris.h: Remove.
13714 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13715 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13716 (LIB_SPEC): Likewise.
13717 * config/sol2.opt (threads): Remove.
13718 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13719 (sparc*-*-solaris2*): Likewise.
13720 * configure.ac (enable_threads): Enable solaris support.
13721 * configure: Regenerate.
13722 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13723 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13726 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13728 * config.gcc: Obsolete *-*-solaris2.8*.
13729 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13731 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13734 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13735 reference. Solaris 8 perl works.
13737 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13740 * doc/install.texi (Prerequisites): Move jar etc. up.
13741 Explain support library version requirements.
13743 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13746 * doc/install.texi (Prerequisites): Move Perl to build
13747 requirements. Always necessary on Solaris 2 with Sun ld.
13749 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13751 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13753 (Specific, i?86-*-solaris2.[89]): Likewise.
13754 (Specific, i?86-*-solaris2.10): Likewise.
13755 (Specific, mips-sgi-irix6): Likewise.
13756 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13757 Update for binutils 2.21.
13759 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13761 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13762 Allow -fuse-linker-plugin for non-default plugin linker.
13763 * configure: Regenerate.
13765 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13768 * gengtype.c (files_rules): Added rule for cp/parser.h.
13770 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13773 * config/s390/s390.c (s390_delegitimize_address): Don't call
13774 lowpart_subreg if orig_x has BLKmode.
13776 2011-03-21 Kai Tietz <ktietz@redhat.com>
13779 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13780 * tree.h (attribute_spec): Add new member affects_type_identity.
13781 * attribs.c (empty_attribute_table): Adjust attribute_spec
13783 * config/alpha/alpha.c: Likewise.
13784 * config/arc/arc.c: Likewise.
13785 * config/arm/arm.c: Likewise.
13786 * config/avr/avr.c: Likewise.
13787 * config/bfin/bfin.c: Likewise.
13788 * config/crx/crx.c: Likewise.
13789 * config/darwin.h: Likewise.
13790 * config/h8300/h8300.c: Likewise.
13791 * config/i386/cygming.h: Likewise.
13792 * config/i386/i386.c: Likewise.
13793 * config/ia64/ia64.c: Likewise.
13794 * config/m32c/m32c.c: Likewise.
13795 * config/m32r/m32r.c: Likewise.
13796 * config/m68hc11/m68hc11.c: Likewise.
13797 * config/m68k/m68k.c: Likewise.
13798 * config/mcore/mcore.c: Likewise.
13799 * config/mep/mep.c: Likewise.
13800 * config/microblaze/microblaze.c: Likewise.
13801 * config/mips/mips.c: Likewise.
13802 * config/rs6000/rs6000.c: Likewise.
13803 * config/rx/rx.c: Likewise.
13804 * config/sh/sh.c: Likewise.
13805 * config/sol2.h: Likewise.
13806 * config/sparc/sparc.c: Likewise.
13807 * config/spu/spu.c: Likewise.
13808 * config/stormy16/stormy16.c: Likewise.
13809 * config/v850/v850.c: Likewise.
13811 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13813 * simplify-rtx.c (simplify_binary_operation_1): Handle
13814 (xor (and A B) C) case when B and C are both constants.
13816 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13818 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13820 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13823 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13825 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13827 PR rtl-optimization/48156
13828 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13829 assume df and df_lr are not NULL.
13831 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13834 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13835 between a call and its CALL_ARG_LOCATION note.
13837 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13840 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13841 between a call and its corresponding CALL_ARG_LOCATION note.
13843 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13845 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13846 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13847 * haifa-sched.c (setup_ref_regs): Ditto.
13848 * caller-save.c (add_used_regs_1): Ditto.
13849 * dse.c (look_for_hardregs): Ditto.
13850 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13851 * sched-rgn.c (check_live_1): Ditto.
13853 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13855 * c-decl.c (diagnose_mismatched_decls): Give an error for
13856 redefining a typedef with variably modified type.
13858 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13860 * c-decl.c (grokfield): Don't allow typedefs for structures or
13861 unions with no tag by default.
13862 * doc/extend.texi (Unnamed Fields): Update.
13864 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13866 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13867 Rewrite using indirect functions.
13868 (lwp_slwpcb): Ditto.
13869 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13870 (avx_vinsertf128<mode>): Ditto.
13872 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13874 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13877 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13879 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13880 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13882 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13884 PR rtl-optimization/48170
13885 * gcse.c (hoist_code): Remove bogus asserts.
13887 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13889 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13890 computation for prologue/epilogue.
13892 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13894 * Makefile.in (check-consistency): Remove.
13896 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13899 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13900 arange_table_in_use is 0, but either text_section_used or
13901 cold_text_section_used is true. Don't call it if
13902 !info_section_emitted.
13904 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13906 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13907 FUNCTION_VALUE_REGNO_P): Remove.
13908 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13910 * config/avr/avr.c (avr_ret_register): Make static inline.
13911 (avr_function_value_regno_p): New function.
13912 (avr_libcall_value): Make static. Add 'func' argument.
13913 (avr_function_value): Make static. Rename 'func' argument to
13914 'fn_decl_or_type', forward it to avr_libcall_value. Call
13915 avr_ret_register function instead of RET_REGISTER macro.
13916 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13918 2011-03-18 Jason Merrill <jason@redhat.com>
13921 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13923 2011-03-18 Richard Guenther <rguenther@suse.de>
13925 * doc/install.texi (--enable-gold): Remove.
13926 (--with-plugin-ld): Document.
13927 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13929 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13931 PR middle-end/47790
13932 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13933 again after expansion changes.
13935 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13937 * combine.c (try_combine): Do simplification only call of
13938 subst() on i2 even when i1 is present. Update comments.
13940 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13942 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13943 and UNSPEC_PCREL_SYMOFF.
13945 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13947 * config/s390/s390.md: Use define_c_enum for the unspec constant
13950 2011-03-18 Richard Henderson <rth@redhat.com>
13951 Jakub Jelinek <jakub@redhat.com>
13954 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13955 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13957 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13959 PR middle-end/47725
13960 * combine.c (cant_combine_insn_p): Don't check zero/sign
13961 extended hard registers.
13963 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13965 PR middle-end/47725
13966 * combine.c (cant_combine_insn_p): Check zero/sign extended
13969 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13971 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13972 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13973 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13974 Change return type to bool.
13975 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13977 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13980 * var-tracking.c (prepare_call_arguments): If CALL target
13981 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13982 pc instead of looking it up using cselib_lookup and use
13983 Pmode for it if x has VOIDmode.
13984 * dwarf2out.c (gen_subprogram_die): If also both first and
13985 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13988 * function.c (assign_parms): For data.passed_pointer parms
13989 use MEM of data.entry_parm instead of data.entry_parm itself
13990 as DECL_INCOMING_RTL.
13991 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13992 also when passed and declared mode is the same, DECL_RTL
13993 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13996 2011-03-16 Jeff Law <law@redhat.com>
13998 PR rtl-optimization/37273
13999 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14000 handle them like argument loads from stack slots. Do not double
14001 count memory for memory constants and argument loads from stack slots.
14003 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14006 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14008 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14011 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14013 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14016 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14018 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14019 Clear call_arg_locations and call_arg_loc_last always.
14021 PR middle-end/48152
14022 * var-tracking.c (prepare_call_arguments): If argument needs to be
14023 passed by reference, adjust argtype and mode.
14025 2011-03-17 Richard Guenther <rguenther@suse.de>
14027 PR middle-end/48134
14028 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14029 a value make sure to fold the statement.
14031 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14034 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14035 return condition with !cfun->calls_alloca.
14037 2011-03-17 Richard Guenther <rguenther@suse.de>
14040 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14041 origin for decls in other ltrans units.
14042 (input_varpool_node): Likewise.
14044 2011-03-17 Richard Guenther <rguenther@suse.de>
14046 PR middle-end/48165
14047 * tree-object-size.c (compute_object_offset): Properly return
14048 the offset operand of MEM_REFs as sizetype.
14050 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14052 PR rtl-optimization/48141
14053 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14054 * dse.c: Include params.h.
14055 (active_local_stores_len): New variable.
14056 (add_wild_read, dse_step1): Clear it when setting active_local_stores
14058 (record_store, check_mem_read_rtx): Decrease it when removing
14060 (scan_insn): Likewise. Increase it when adding to chain, if it
14061 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14062 set active_local_stores to NULL before the addition.
14063 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14065 PR rtl-optimization/48141
14066 * dse.c (record_store): If no positions are needed in an insn
14067 that cannot be deleted, at least unchain it from active_local_stores.
14069 2011-03-16 Dodji Seketeli <dodji@redhat.com>
14072 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14073 (lookup_type_die_strip_naming_typedef): ... here.
14074 (get_context_die): Use it.
14075 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14076 the anonymous struct named by the naming typedef.
14078 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14081 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14082 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14084 2011-03-16 Jeff Law <law@redhat.com>
14086 * tree-vrp.c (identify_jump_threads): Slightly simplify type
14087 check for operands of conditional. Allow type to be a pointer.
14089 2011-03-16 Richard Guenther <rguenther@suse.de>
14091 PR tree-optimization/48149
14092 * fold-const.c (fold_binary_loc): Fold
14093 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14095 2011-03-16 Richard Guenther <rguenther@suse.de>
14097 PR tree-optimization/26134
14098 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14099 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14100 (non_rewritable_mem_ref_base): Handle complex type component
14101 accesses, constrain offsets for vector and complex extracts
14104 2011-03-16 Richard Guenther <rguenther@suse.de>
14106 PR tree-optimization/48146
14107 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14108 operands avoiding the need for renaming.
14110 2011-03-16 Richard Guenther <rguenther@suse.de>
14112 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14113 constant folding. Move MEM_REF canonicalization first.
14114 Rely on fold_const_aggregate_ref for initializer folding.
14115 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14117 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14119 PR middle-end/48136
14120 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14121 arg0/arg1 or their arguments are always fold converted to matching
14124 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14127 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14130 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14131 Handle in-tree gold.
14132 (ld_vers): Extract binutils version for gold.
14133 (gcc_cv_ld_hidden): Handle gold here.
14134 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14135 * configure: Regenerate.
14136 * config.in: Regenerate.
14137 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14138 -fuse-linker-plugin otherwise.
14139 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14140 (LINK_COMMAND_SPEC): Use it.
14141 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14143 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14145 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14146 * calls.c: Remove debug.h include.
14147 (emit_call_1): Don't call virtual_call_token debug hook.
14148 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14149 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14150 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14151 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14152 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14153 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14154 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14155 dwarf2out_virtual_call): Remove.
14156 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14157 copy_call_info and virtual_call hooks.
14158 (dwarf2out_init): Don't initialize vcall_insn_table,
14159 debug_dcall_section and debug_vcall_section.
14160 (prune_unused_types): Don't mark nodes from dcall_table.
14161 (dwarf2out_finish): Don't output dcall or vcall tables.
14162 * final.c (final_scan_insn): Don't call direct_call or
14163 virtual_call debug hooks.
14164 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14165 virtual_call_token, copy_call_info and virtual_call hooks.
14166 (debug_nothing_uid): Remove prototype.
14167 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14168 copy_call_info and virtual_call hooks.
14169 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14170 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14171 * debug.c (do_nothing_debug_hooks): Likewise.
14172 (debug_nothing_uid): Remove.
14173 * doc/invoke.texi (-fenable-icf-debug): Remove.
14174 * common.opt (-fenable-icf-debug): Likewise.
14176 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14177 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14178 call's MEM. Handle functions returning aggregate through a hidden
14179 first pointer. For virtual calls add clobbered pc to call arguments
14181 * dwarf2out.c (gen_subprogram_die): Emit
14182 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14186 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14187 * rtl.h (ENTRY_VALUE_EXP): Define.
14188 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14189 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14190 * print-rtl.c (print_rtx): Likewise.
14191 * gengtype.c (adjust_field_rtx_def): Likewise.
14192 * var-tracking.c (vt_add_function_parameter): Adjust
14193 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14194 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14195 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14196 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14197 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14199 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14200 Call var_location debug hook even on CALL_INSNs.
14201 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14202 * rtl.def (ENTRY_VALUE): New.
14203 * dwarf2out.c: Include cfglayout.h.
14204 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14205 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14206 (struct call_arg_loc_node): New type.
14207 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14208 tail_call_site_count): New variables.
14209 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14210 DW_TAG_GNU_call_site_parameter.
14211 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14212 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14213 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14214 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14215 and DW_AT_GNU_all_source_call_sites.
14216 (mem_loc_descriptor): Handle ENTRY_VALUE.
14217 (add_src_coords_attributes): Don't add enything if
14218 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14219 (dwarf2out_abstract_function): Save and clear call_arg_location,
14220 call_site_count and tail_call_site_count around dwarf2out_decl call.
14221 (gen_call_site_die): New function.
14222 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14223 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14224 (dwarf2out_function_decl): Clear call_arg_locations,
14225 call_arg_loc_last, set call_site_count and tail_call_site_count
14226 to -1 and free block_map.
14227 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14228 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14229 followed by any real instructions.
14230 (dwarf2out_begin_function): Set call_site_count and
14231 tail_call_site_count to 0.
14232 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14233 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14234 attempt to force a DIE for it and worst case remove the attribute.
14235 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14236 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14238 * var-tracking.c: Include tm_p.h.
14239 (vt_stack_adjustments): For calls call note_register_arguments.
14240 (argument_reg_set): New variable.
14241 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14242 ensure the VALUE is resolved.
14243 (call_arguments): New variable.
14244 (prepare_call_arguments): New function.
14245 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14246 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14247 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14248 always use the best expression.
14249 (vt_expand_loc): Add ignore_cur_loc argument.
14250 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14251 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14252 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14253 note for all calls.
14254 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14255 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14256 argument. Don't call cselib_preserve_only_values and
14257 cselib_reset_table.
14258 (note_register_arguments): New function.
14259 (vt_initialize): Compute argument_reg_set. Call
14260 vt_add_function_parameters before processing basic blocks instead of
14261 afterwards. For calls call prepare_call_arguments before calling
14262 cselib_process_insn.
14263 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14264 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14265 (var-tracking.o): Depend on $(TM_P_H).
14266 * cfglayout.h (insn_scope): New prototype.
14267 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14268 * cfglayout.c (insn_scope): No longer static.
14269 * insn-notes.def (CALL_ARG_LOCATION): New.
14270 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14271 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14272 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14273 nothing for DECL_EXTERNAL BLOCK_VARS.
14275 2011-03-16 Alan Modra <amodra@gmail.com>
14278 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14279 create invalid offset address for vsx splat insn.
14280 * config/rs6000/predicates.md (splat_input_operand): New.
14281 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14283 2011-03-15 Xinliang David Li <davidxl@google.com>
14286 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14287 (normalize_preds): New function.
14288 (is_use_properly_guarded): Normalize def predicates.
14290 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14293 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14294 in the output template.
14296 2011-03-15 Richard Guenther <rguenther@suse.de>
14298 PR middle-end/47650
14299 * tree-pretty-print.c (dump_function_declaration): Properly
14300 dump unprototyped and varargs function types.
14302 2011-03-15 Richard Guenther <rguenther@suse.de>
14304 PR tree-optimization/13954
14305 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14308 2011-03-15 Richard Guenther <rguenther@suse.de>
14310 PR tree-optimization/48037
14311 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14312 selects into BIT_FIELD_REFs.
14313 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14316 2011-03-15 Jakub Jelinek <jakub@redhat.com>
14318 PR tree-optimization/48129
14319 * builtins.c (fold_builtin_snprintf): Convert to type of
14320 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14321 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14323 2011-03-15 Richard Guenther <rguenther@suse.de>
14325 PR tree-optimization/41490
14326 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14327 value but with VUSE.
14328 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14330 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14331 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14332 * tree-tailcall.c (find_tail_calls): Ignore returns.
14334 2011-03-15 Richard Guenther <rguenther@suse.de>
14336 PR middle-end/48031
14337 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14338 or variable-indexed array accesses when in gimple form.
14340 2011-03-15 Richard Guenther <rguenther@suse.de>
14342 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14344 2011-03-15 Alan Modra <amodra@gmail.com>
14347 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14348 presume symbol_refs without a symbol_ref_decl are suitably
14349 aligned, nor other trees we may see here. Handle anchor symbols.
14350 (legitimate_constant_pool_address_p): Comment. Add mode param.
14351 Check cmodel=medium addresses. Adjust all calls.
14352 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14353 creating cmodel=medium optimized access to locals.
14354 * config/rs6000/constraints.md (R): Pass QImode to
14355 legitimate_constant_pool_address_p.
14356 * config/rs6000/predicates.md (input_operand): Pass mode to
14357 legitimate_constant_pool_address_p.
14358 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14361 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14364 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14365 64-bit constants being loaded into registers other than GPRs such
14366 as loading 0 into a VSX register.
14368 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14370 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14372 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14374 PR middle-end/47917
14375 * builtins.c (fold_builtin_snprintf): New function.
14376 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14377 (fold_builtin_4): Likewise.
14379 PR middle-end/38878
14380 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14381 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14382 and C - X == X also strip nops from +/-/p+ operand.
14383 When optimizing -X == C, fold C to arg0's type.
14386 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14387 emit it as add_AT_int instead of add_AT_unsigned.
14389 2011-03-14 Tom Tromey <tromey@redhat.com>
14391 * unwind-dw2.c: Include sys/sdt.h if it exists.
14392 (_Unwind_DebugHook): Use STAP_PROBE2.
14393 * config.in, configure: Rebuild.
14394 * configure.ac: Check for sys/sdt.h.
14396 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
14398 * config/i386/i386.md (ROUND_FLOOR): New constant.
14399 (ROUND_CEIL): Ditto.
14400 (ROUND_TRUNC): Ditto.
14401 (ROUND_MXCSR): Ditto.
14402 (ROUND_NO_EXC): Ditto.
14403 (rint<mode>2): Use new defines instead of numerical constants.
14404 (floor<mode>2): Ditto.
14405 (ceil<mode>2): Ditto.
14406 (btrunc<mode>2): Ditto.
14407 * config/i386/i386-builtin-types.def: Define ROUND function type
14409 * config/i386/i386.c (enum ix86_builtins): Add
14410 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14411 (struct builtin_description): Add
14412 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14413 (ix86_expand_sse_round): New static function.
14414 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14416 (ix86_builtin_vectorized_function): Handle
14417 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14419 2011-03-14 Tom Tromey <tromey@redhat.com>
14421 * c-parser.c (c_parser_asm_string_literal): Clear
14422 warn_overlength_strings.
14424 2011-03-14 Tom Tromey <tromey@redhat.com>
14426 * c-parser.c (disable_extension_diagnostics): Save
14427 warn_overlength_strings.
14428 (restore_extension_diagnostics): Restore warn_overlength_strings.
14430 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14432 * BASE-VER: Change to 4.7.0.
14434 2011-03-14 Richard Guenther <rguenther@suse.de>
14436 PR middle-end/48098
14437 * tree.c (build_vector_from_val): Adjust assert to requirements
14440 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14443 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14445 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
14447 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14448 terms of target_flags_explicit. Adjust copyright year.
14450 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14451 * config/rs6000/t-freebsd: New file. Add override for
14454 2011-03-13 Chris Demetriou <cgd@google.com>
14456 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14457 (-fno-diagnostics-show-option): this, to reflect current default.
14458 (-Werror=): Update text about -fno-diagnostics-show-option.
14460 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14463 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14464 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14465 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14466 mode is not V2DImode or V2DFmode.
14467 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14468 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14469 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14471 (movdi_internal64): Likewise.
14473 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14475 PR tree-optimization/47127
14476 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14478 (set_cloog_options): Same.
14479 (scop_to_clast): Same.
14480 (print_clast_stmt): Do not call cloog_state_malloc and
14482 (print_generated_program): Same.
14484 * graphite-clast-to-gimple.h (cloog_state): Declared.
14485 (scop_to_clast): Adjust declaration.
14486 * graphite.c (cloog_state): Defined here.
14487 (graphite_initialize): Call cloog_state_malloc.
14488 (graphite_finalize): Call cloog_state_free.
14490 2011-03-11 Jason Merrill <jason@redhat.com>
14492 * attribs.c (lookup_attribute_spec): Take const_tree.
14495 2011-03-11 Joseph Myers <joseph@codesourcery.com>
14497 * config/sparc/sparc.c (sparc_option_override): Use
14498 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14500 2011-03-11 Richard Guenther <rguenther@suse.de>
14502 PR tree-optimization/48067
14503 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14504 multiplication result will be only used once on the target
14507 2011-03-11 Richard Guenther <rguenther@suse.de>
14509 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14511 2011-03-11 Richard Guenther <rguenther@suse.de>
14514 * tree.c (find_decls_types_r): Do not walk types only reachable
14515 from IDENTIFIER_NODEs.
14517 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14519 PR middle-end/48044
14520 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14521 all vnode->force_output nodes as needed.
14523 2011-03-11 Jason Merrill <jason@redhat.com>
14526 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14527 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14529 2011-03-11 Martin Jambor <mjambor@suse.cz>
14531 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14534 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14536 PR tree-optimization/48063
14537 * ipa-inline.c (cgraph_decide_inlining): Don't try to
14538 inline functions called once if !tree_can_inline_p (node->callers).
14540 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
14542 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14544 * config/score/score3.c: Delete.
14545 * config/score/score3.h: Delete.
14546 * config/score/mul-div.S: Delete.
14547 * config/score/sfp-machine.h: Add new file.
14548 * config/score/constraints.md: Add new file.
14549 * config/score/t-score-softfp: Add new file.
14550 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
14551 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
14552 (score7_extra_constraint): Delete.
14553 (score7_option_override): Remove unused code.
14554 * config/score/score.c: Remove score3 and score5 define and code.
14555 * config/score/score.h: Remove score3 and score5 define and code.
14556 * config/score/score.md: Remove score3 template and unusual insn.
14557 * config/score/score.opt: Remove score3 and score5 options.
14559 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14561 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
14562 when _HPUX_SOURCE is defined.
14563 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
14565 2011-03-10 Jason Merrill <jason@redhat.com>
14568 * stor-layout.c (layout_type): Don't set structural equality
14569 on arrays of incomplete type.
14570 * tree.c (type_hash_eq): Handle comparing them properly.
14572 2011-03-10 Jakub Jelinek <jakub@redhat.com>
14575 * config/s390/s390.c (s390_delegitimize_address): Make sure the
14576 result mode matches original rtl mode.
14578 2011-03-10 Nick Clifton <nickc@redhat.com>
14580 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
14581 (andsi3, andsi3_flags): Fix timings for three operand alternative.
14583 2011-03-09 Jakub Jelinek <jakub@redhat.com>
14585 PR rtl-optimization/47866
14586 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
14587 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
14588 if target wasn't scalar.
14589 * function.c (assign_stack_temp_for_type): Assert that neither
14590 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
14591 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
14593 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
14595 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14597 * config/s390/s390-protos.h (s390_label_align): New prototype.
14598 * config/s390/s390.c (s390_label_align): New function.
14599 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
14601 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14604 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14605 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14606 (output_vec_const_move): Ditto.
14608 2011-03-08 Anatoly Sokolov <aesok@post.ru>
14610 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14611 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14612 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14613 Change 'rclass' argument and result type to reg_class_t.
14614 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14616 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
14618 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14619 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14620 (TARGET_MEMORY_MOVE_COST): Define.
14621 (avr_register_move_cost, avr_memory_move_cost): New Functions.
14623 2011-03-08 Jakub Jelinek <jakub@redhat.com>
14626 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14629 PR tree-optimization/48022
14630 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14633 2011-03-07 Jakub Jelinek <jakub@redhat.com>
14636 * var-tracking.c (find_use_val): Return NULL for
14637 cui->sets && cui->store_p BLKmode MEMs.
14639 2011-03-07 Anatoly Sokolov <aesok@post.ru>
14641 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14643 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14644 xstormy16_print_operand_address): Remove.
14645 * config/stormy16/stormy16.c (xstormy16_print_operand,
14646 xstormy16_print_operand_address): Make static.
14647 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14649 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
14652 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14653 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14656 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
14659 * cfgloopmanip.c (fix_bb_placements): Return immediately
14660 if FROM is BASE_LOOP's header.
14662 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14664 * gimplify.c (gimplify_function_tree): Fix building calls
14665 to __builtin_return_address.
14667 2011-03-07 Alan Modra <amodra@gmail.com>
14669 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14670 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14671 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14672 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14674 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14675 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14676 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14677 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14678 * config/rs6000/rs6000.c
14679 (rs6000_elf_end_indicate_exec_stack): Rename to..
14680 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14681 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14682 (rs6000_file_start): ..here.
14683 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14684 file scope variables.
14685 (call_ABI_of_interest): New function.
14686 (init_cumulative_args): Set above vars when function return value
14687 is a float, vector, or small struct.
14688 (rs6000_function_arg_advance_1): Likewise for function args.
14689 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14690 references float args.
14692 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14694 * doc/cfg.texi: Remove "See" before @ref.
14695 * doc/invoke.texi: Likewise.
14697 2011-03-05 Jason Merrill <jason@redhat.com>
14699 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14701 2011-03-05 Anthony Green <green@moxielogic.com>
14703 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14705 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14707 PR rtl-optimization/47899
14708 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14709 to flow_loop_nested_p when moving the loop upward.
14711 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14714 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14716 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14718 PR tree-optimization/47967
14719 * ipa-cp.c (build_const_val): Return NULL instead of creating
14720 VIEW_CONVERT_EXPR for mismatching sizes.
14721 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14722 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14723 give up on versioning.
14725 2011-03-05 Alan Modra <amodra@gmail.com>
14728 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14729 full cmodel medium/large lo_sum + high addresses.
14731 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14733 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14734 pool references in UNSPEC_LTREL_OFFSET.
14736 2011-03-04 Jan Hubicka <jh@suse.cz>
14739 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14740 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14741 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14743 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14744 cgraph_add_thunk): Add node pointers.
14745 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14746 associated to right node.
14747 (input_node): Update use of cgraph_same_body_alias
14748 and cgraph_add_thunk.
14750 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14752 * config/i386/i386.opt (mprefer-avx128): New flag.
14753 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14754 modes when the flag -mprefer-avx128 is on.
14756 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14758 * dwarf2out.c (compare_loc_operands): Fix address handling.
14760 2011-03-04 Alan Modra <amodra@gmail.com>
14762 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14764 2011-03-04 Richard Guenther <rguenther@suse.de>
14766 PR middle-end/47968
14767 * expmed.c (extract_bit_field_1): Prefer vector modes that
14768 vec_extract patterns can handle.
14770 2011-03-04 Richard Guenther <rguenther@suse.de>
14772 PR middle-end/47975
14773 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14775 2011-03-04 Richard Henderson <rth@redhat.com>
14777 * explow.c (emit_stack_save): Remove 'after' parameter.
14778 (emit_stack_restore): Likewise.
14779 * expr.h: Update to match.
14780 * builtins.c, calls.c, stmt.c: Likewise.
14781 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14782 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14783 * function.c (expand_function_end): Insert the emit_stack_save
14784 sequence before parm_birth_insn instead of after.
14786 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14788 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14789 (ssse3_pmaddubsw128): Ditto.
14790 (ssse3_pmaddubsw): Ditto.
14792 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14794 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14796 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14799 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14800 on TYPE_SIZE_UNIT if it is a DECL.
14803 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14804 first operand is not is_gimple_mem_ref_addr, try to fold it.
14805 If the operand still isn't is_gimple_mem_ref_addr, clear
14808 2011-03-03 Richard Guenther <rguenther@suse.de>
14810 PR middle-end/47283
14811 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14813 (refs_may_alias_p_1): For release branches return true if
14814 we are confused by our input.
14816 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14818 * config/s390/s390.c (s390_function_value): Rename to ...
14819 (s390_function_and_libcall_value): ... this.
14820 (s390_function_value): New function.
14821 (s390_libcall_value): New function.
14822 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14823 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14824 target macro definitions.
14825 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14827 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14829 * config/i386/freebsd64.h (CC1_SPEC): Define.
14830 * config/i386/linux64.h (CC1_SPEC): Define.
14831 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14833 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14835 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14837 * config/stormy16/stormy16.c: Include reload.h.
14838 (xstormy16_memory_move_cost): New function.
14839 (TARGET_MEMORY_MOVE_COST): Define.
14841 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14843 PR rtl-optimization/47925
14844 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14845 with side effects. Remove the more-specific check for volatile asms.
14847 2011-03-02 Alan Modra <amodra@gmail.com>
14850 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14851 toc relative addresses for valid offsets.
14853 2011-03-01 Richard Guenther <rguenther@suse.de>
14855 PR tree-optimization/47890
14856 * tree-vect-loop.c (get_initial_def_for_induction): Set
14857 related stmt properly.
14859 2011-03-01 Richard Guenther <rguenther@suse.de>
14862 * lto-streamer.c (lto_record_common_node): Also register
14863 the canonical type.
14865 2011-03-01 Richard Guenther <rguenther@suse.de>
14868 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14869 Do not stream DECL_ABSTRACT_ORIGIN.
14870 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14871 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14872 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14873 Do not stream DECL_ABSTRACT_ORIGIN.
14874 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14875 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14877 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14879 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14880 FUNCTION_VALUE_REGNO_P): Remove.
14881 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14882 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14883 Add 'outgoing' argument.
14884 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14886 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14887 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14889 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14892 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14893 (lookup_filename): Likewise.
14894 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14896 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14897 Jakub Jelinek <jakub@redhat.com>
14899 PR middle-end/47893
14900 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14901 (assign_stack_local_1): Change last argument type to int.
14902 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14903 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14904 don't record padding space into frame_space_list nor use those areas.
14905 (assign_stack_local): Adjust caller.
14906 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14907 of assign_stack_local, pass 0 as last argument.
14908 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14911 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14914 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14915 Use target address_mode and pointer_mode hooks instead of hardcoded
14916 Pmode and ptr_mode. Handle some simple cases of extending if
14917 POINTERS_EXTEND_UNSIGNED < 0.
14918 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14919 Call convert_debug_memory_address.
14920 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14921 convert_debug_memory_address.
14923 PR middle-end/46790
14924 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14925 * configure: Regenerated.
14926 * config.in: Regenerated.
14927 * varasm.c (default_function_section): Return NULL
14928 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14930 2011-02-28 Martin Jambor <mjambor@suse.cz>
14932 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14933 the description to match the printed values.
14935 2011-02-28 Richard Guenther <rguenther@suse.de>
14937 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14938 of the copied scope tree.
14940 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14942 * doc/extend.texi (Function Attributes): Avoid deeply (and
14943 wrongly) nested tables.
14945 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14947 PR middle-end/47903
14948 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14949 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14950 r isn't op0 nor op1.
14952 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14954 * config/avr/avr.md: Remove magic comment for emacs.
14956 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14959 * config/avr/avr.c (avr_option_override): Use error on bad options.
14960 (avr_help): New function.
14961 (TARGET_HELP): Define.
14963 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14966 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14967 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14969 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14971 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14972 (ARM Options): Ditto.
14973 (i386 and x86-64 Options): Ditto.
14974 (RX Options): Ditto.
14975 (SPARC Options): Ditto.
14977 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14979 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14980 FreeBSD 6 and later. Generally use cpu generic.
14982 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14984 * doc/cpp.texi: Update copyright years.
14986 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14989 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14991 2011-02-25 Jon Beniston <jon@beniston.com>
14994 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14995 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14996 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14997 (lm32_block_move_inline): Add type cast to remove warning.
14998 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14999 (gen_int_relational): Move declarations to start of function.
15001 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15003 PR tree-optimization/45470
15004 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15005 can throw internally only.
15006 * tree-vect-stmts.c (vectorizable_call): Likewise.
15008 2011-02-24 Anatoly Sokolov <aesok@post.ru>
15010 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15011 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15012 * config/stormy16/stormy16-protos.h
15013 (xstormy16_preferred_reload_class): Remove.
15014 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15015 static. Change 'rclass' argument and return type to reg_class_t.
15016 (TARGET_PREFERRED_RELOAD_CLASS,
15017 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15019 2011-02-24 Richard Guenther <rguenther@suse.de>
15021 * lto-streamer-in.c (input_bb): Do not find referenced vars
15022 in debug statements.
15024 2011-02-23 Jason Merrill <jason@redhat.com>
15026 * common.opt (fabi-version): Document v5 and v6.
15028 2011-02-23 Richard Guenther <rguenther@suse.de>
15030 PR tree-optimization/47849
15031 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15033 2011-02-23 Jie Zhang <jie@codesourcery.com>
15035 * opts-common.c (decode_cmdline_option): Print empty string
15036 argument as "" in decoded->orig_option_with_args_text.
15037 * gcc.c (execute): Print empty string argument as ""
15038 in the verbose output.
15039 (do_spec_1): Keep empty string argument.
15041 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
15043 * config.gcc: Declare score-* and crx-* obsolete.
15045 2011-02-23 Jie Zhang <jie@codesourcery.com>
15047 PR rtl-optimization/47763
15048 * web.c (web_main): Ignore naked clobber when replacing register.
15050 2011-02-22 Anatoly Sokolov <aesok@post.ru>
15052 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15055 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
15058 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15060 2011-02-22 Mike Stump <mikestump@comcast.net>
15062 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15064 * configure: Regenerate.
15066 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15068 PR rtl-optimization/46002
15069 * ira-color.c (update_copy_costs): Change class intersection
15070 test to reg_class_contents[] test of 'hard_regno'.
15072 2011-02-21 Joseph Myers <joseph@codesourcery.com>
15074 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15075 than Driver option.
15076 * config/hpux11.opt (mt): Likewise.
15077 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15078 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15079 * config/vax/elf.opt (mno-asm-pic): Likewise.
15080 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15082 2011-02-21 Mike Stump <mikestump@comcast.net>
15085 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15086 tree so we can get save the type.
15087 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15088 for CFString instead of trying to use past the end of the builtins.
15089 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15090 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15091 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15092 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15093 Rename to darwin_builtin_cfstring.
15094 (darwin_init_cfstring_builtins): Return the built type.
15096 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
15099 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15100 (_mm256_insert_epi64): Use _mm_insert_epi64.
15102 2011-02-21 Anatoly Sokolov <aesok@post.ru>
15104 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15105 * config/stormy16/stormy16-protos.h
15106 (xstormy16_mode_dependent_address_p): Remove.
15107 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15108 Make static. Change return type to bool. Change argument type to
15109 const_rtx. Remove dead code.
15110 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15112 2011-02-21 Richard Guenther <rguenther@suse.de>
15115 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15116 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15117 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15119 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15120 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15122 2011-02-20 Richard Guenther <rguenther@suse.de>
15125 * tree.c (free_lang_data_in_decl): Clean builtins from
15126 the TU decl BLOCK_VARS.
15128 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
15132 * haifa-sched.c (fix_tick_ready): Skip tick computation
15135 2011-02-19 Richard Guenther <rguenther@suse.de>
15138 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15139 Remove lazy BLOCK_VARS streaming.
15140 (lto_input_ts_block_tree_pointers): Likewise.
15141 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15143 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15145 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15147 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15149 * config/i386/biarch32.h, config/i386/mach.h,
15150 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15152 2011-02-19 Jakub Jelinek <jakub@redhat.com>
15155 * config/i386/i386.md (peephole2 for shift and plus): Use
15156 operands[1] original mode in the first insn.
15158 2011-02-18 Mike Stump <mikestump@comcast.net>
15160 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15162 2011-02-18 Jan Hubicka <jh@suse.cz>
15164 PR middle-end/47788
15165 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15166 to zero when the function is not inlinable at all.
15168 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15170 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15171 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15172 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15173 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15174 * config/pa/t-pa64: Likewise.
15175 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15177 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15180 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15182 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15185 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15187 2011-02-18 Anatoly Sokolov <aesok@post.ru>
15189 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15190 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15191 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15192 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15193 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15194 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15195 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15196 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15197 m32r_legitimate_address_p): New functions.
15198 * config/m32r/constraints.md (constraint "S"): Don't use
15199 STORE_PREINC_PREDEC_P.
15200 (constraint "U"): Don't use LOAD_POSTINC_P.
15202 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15204 PR rtl-optimization/46178
15205 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15206 compute ira_hard_regno_cover_class[].
15208 2011-02-18 Richard Guenther <rguenther@suse.de>
15211 * lto-streamer.h (lto_global_var_decls): Declare.
15212 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15213 statics for global var processing.
15215 2011-02-18 Richard Guenther <rguenther@suse.de>
15217 PR tree-optimization/47737
15218 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15219 edge dominance check.
15221 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15224 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15225 avoid invalid rtx sharing.
15227 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15229 * doc/cpp.texi (Obsolete Features): Add background on the
15230 origin of assertions.
15232 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15234 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15236 * config/darwin.c (output_objc_section_asm_op): Added support for
15238 (is_objc_metadata): New.
15239 (darwin_objc2_section): New.
15240 (darwin_objc1_section): New.
15241 (machopic_select_section): Added support for ABI v1 and v2.
15242 (darwin_emit_objc_zeroed): New.
15243 (darwin_output_aligned_bss): Detect objc metadata and treat it
15245 (darwin_asm_output_aligned_decl_common): Same.
15246 (darwin_asm_output_aligned_decl_local): Same.
15247 * config/darwin-sections.def: Updated for ABI v1 and v2.
15248 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15249 compiling Objective-C code for the NeXT runtime, default to using
15250 ABI version 0 for 32-bit, and version 2 for 64-bit.
15252 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15254 * common.opt (optimize_fast): New Variable.
15255 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15256 instead of local variable ofast.
15258 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15260 * doc/invoke.texi (fobjc-abi-version): Documented.
15261 (fobjc-nilcheck): Documented.
15262 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15265 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15268 * common.opt (export-dynamic): New Driver option.
15269 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15271 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15273 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15275 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15276 Jan Hubicka <jh@suse.cz>
15280 * cfgexpand.c (account_used_vars_for_block): Remove.
15281 (estimated_stack_frame_size): Use referenced vars.
15282 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15283 that were referenced in the original function. Test src_fn
15284 rather than cfun. Drop redundant get_var_ann.
15285 (setup_one_parameter): Drop redundant get_var_ann.
15286 (declare_return_variable): Likewise.
15287 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15288 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15289 * ipa-inline.c (compute_inline_parameters): Do not compute
15290 disregard_inline_limits here.
15291 (compute_inlinable_for_current, pass_inlinable): New.
15292 (pass_inline_parameters): Require PROP_referenced_vars.
15293 * cgraphunit.c (cgraph_process_new_functions): Don't run
15294 compute_inline_parameters explicitly unless function is in SSA form.
15295 (cgraph_analyze_function): Set .disregard_inline_limits.
15296 * tree-sra.c (convert_callers): Compute inliner parameters
15297 only for functions already in SSA form.
15299 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15301 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15302 -mlittle-endian-data.
15304 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15306 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15307 -mno-fpu, not -fpu and -no-fpu.
15308 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15309 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15311 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
15314 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15315 input reload with PLUS RTX.
15317 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15319 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15320 of InverseVar(MDMX).
15322 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15324 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15327 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15329 * config/mn10300/mn10300.opt (mno-crt0): New.
15331 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15333 * config/m68k/uclinux.opt (static-libc): New Driver option.
15335 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15337 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15339 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15341 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15342 %{muser-extend-enabled}.
15344 2011-02-16 Richard Guenther <rguenther@suse.de>
15346 PR tree-optimization/47738
15347 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15348 the TODO from tree_predictive_commoning.
15350 2011-02-15 Jeff Law <law@redhat.com>
15353 2011-01-25 Jeff Law <law@redhat.com>
15355 PR rtl-optimization/37273
15356 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15357 handle them like argument loads from stack slots. Do not double
15358 count memory for memory constants and argument loads from stack slots.
15360 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15362 PR middle-end/47725
15363 * combine.c (cant_combine_insn_p): Revert the last change.
15365 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15368 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15369 mode for vector constants. Remove code that checks for TImode.
15371 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15375 * cgraph.h (compute_inline_parameters): Return void.
15376 * ipa-inline.c (compute_inline_parameters): Adjust.
15378 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15382 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15384 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15385 * ipa-inline.c (compute_inline_parameters): Adjust.
15387 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15391 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15392 Adjust all users. Pass FN to...
15393 * tree-flow-inline.h (first_referenced_var): ... this. Add
15395 * ipa-struct-reorg.c: Adjust.
15396 * tree-dfa.c: Adjust.
15397 * tree-into-ssa.c: Adjust.
15398 * tree-sra.c: Adjust.
15399 * tree-ssa-alias.c: Adjust.
15400 * tree-ssa-live.c: Adjust.
15401 * tree-ssa.c: Adjust.
15402 * tree-ssanames.c: Adjust.
15403 * tree-tailcall.c: Adjust.
15405 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15409 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15410 Adjust all callers.
15411 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15412 * tree-flow-inline.h: Adjust.
15413 * gimple-pretty-print.c: Adjust.
15414 * tree-into-ssa.c: Adjust.
15415 * tree-ssa.c: Adjust.
15416 * cfgexpand.c: Adjust.
15418 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15420 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15421 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15422 (EXTRA_CONSTRAINT): Delete.
15423 * config/iq2000/constraints.md: New file.
15424 * config/iq2000/iq2000.md: Include it.
15425 (define_insn ""): Delete.
15426 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15427 unsupported constraint letters from patterns.
15428 (call_value, call_value_internal1): Likewise.
15429 (call_value_multiple_internal1): Likewise.
15431 2011-02-15 Nick Clifton <nickc@redhat.com>
15433 * config/mn10300/mn10300.c: Include tm-constrs.h.
15434 (struct liw_data): New data structure describing an LIW candidate
15436 (extract_bundle): Use struct liw_data. Allow small integer
15437 operands for some instructions.
15438 (check_liw_constraints): Use struct liw_data. Remove swapped
15439 parameter. Add comments describing the checks. Fix bug when
15440 assigning the source of liw1 to the source of liw2.
15441 (liw_candidate): Delete. Code moved into extract_bundle.
15442 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15444 * config/mn10300/predicates.md (liw_operand): New predicate.
15445 Allows registers and small integer constants.
15446 * config/mn10300/constraints.md (O): New constraint. Accetps
15447 integers in the range -8 to +7 inclusive.
15448 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15449 for moving a small integer into a register. Give this alternative
15451 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15452 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15453 using the J,K,L and M constraints,
15454 (liw): Remove SI mode on second operands to allow for HI and QI
15456 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15459 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15461 PR middle-end/47725
15462 * combine.c (cant_combine_insn_p): Check zero/sign extended
15465 2011-02-15 Richard Guenther <rguenther@suse.de>
15467 PR tree-optimization/47743
15468 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15469 for a non-type-compatible VN lookup bail out.
15471 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15473 * config/fr30/constraints.md: New file.
15474 * config/fr30/fr30.md: Include it.
15475 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15476 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15477 (EXTRA_CONSTRAINT): Delete.
15479 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15481 * config/frv/constraints.md: New file.
15482 * config/frv/predicates.md: Include it.
15483 * config/frv/frv.c (reg_class_from_letter): Delete.
15484 (frv_option_override): Don't initialize it.
15485 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15486 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15487 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15488 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15489 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15490 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15491 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15492 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15493 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15494 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15495 (REG_CLASS_FROM_CONSTRAINT): Delete.
15497 2011-02-15 Jakub Jelinek <jakub@redhat.com>
15499 PR middle-end/47581
15500 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15501 if frame size is 0 in a leaf function.
15503 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15506 * config/alpha/host-osf.c: New file.
15507 * config/alpha/x-osf: New file.
15508 * config.host (alpha*-dec-osf*): Use it.
15510 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15512 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15513 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15514 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15515 (rx_mode_dependent_address_p): ...this. Make static. Change argument
15517 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15519 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15521 * config/stormy16/constraints.md: New file.
15522 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15523 Use satisfies_constraint_Q and satisfies_constraint_R.
15524 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15526 (xstormy16_legitiamte_address_p): Declare.
15527 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15528 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15529 (EXTRA_CONSTRAINT): Delete.
15530 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15532 (xstormy16_extra_constraint_p): Delete.
15534 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
15536 PR tree-optimization/46494
15537 * loop-unroll.c (split_edge_and_insert): Adjust comment.
15538 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15539 (pass_rtl_loop_done): Add TODO_verify_flow.
15540 * fwprop.c (pass_rtl_fwprop): Likewise.
15541 * modulo-sched.c (pass_sms): Likewise.
15542 * tree-ssa-dom.c (pass_dominator): Likewise.
15543 * tree-ssa-loop-ch.c (pass_ch): Likewise.
15544 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15545 (pass_tree_loop_done): Likewise.
15546 * tree-ssa-pre.c (execute_pre): Likewise.
15547 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15548 * tree-ssa-sink.c (pass_sink_code): Likewise.
15549 * tree-vrp.c (pass_vrp): Likewise.
15551 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15553 * config/v850/constraints.md: New file.
15554 * config/v850/v850.md: Include it.
15555 * config/v850/predicates.md (reg_or_0_operand): Use
15556 satisfies_constraint_G.
15557 (special_symbolref_operand): Use satisfies_constraint_K.
15558 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
15559 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
15560 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
15561 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15562 (EXTRA_CONSTRAINT): Delete.
15563 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
15564 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
15565 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
15567 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15570 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
15573 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15575 * config/mcore/constraints.md: New file.
15576 * config/mcore/mcore.md: Include it.
15577 * config/mcore/mcore.c (reg_class_from_letter): Delete.
15578 * config/mcore/mcore.h (reg_class_from_letter): Delete.
15579 (REG_CLASS_FROM_LETTER): Delete.
15580 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
15581 insn_const_int_ok_for_constraint.
15582 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
15583 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
15584 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15585 (EXTRA_CONSTRAINT): Delete.
15587 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15590 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
15591 (IS_SIGHANDLER): Define.
15592 (sparc64_is_sighandler): New function, split off from
15593 sparc64_fallback_frame_state.
15594 (sparc_is_sighandler): New function, split off from
15595 sparc_fallback_frame_state.
15596 (sparc64_fallback_frame_state): Merge with ...
15597 (sparc_fallback_frame_state): ... this into ...
15598 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
15599 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
15600 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
15601 stack instead of hardcoded offsets.
15603 2011-02-14 Andriy Gapon <avg@freebsd.org>
15606 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15608 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15610 * configure: Regenerate.
15612 2011-02-12 Joseph Myers <joseph@codesourcery.com>
15615 * gcc.c (asm_options): Correct spec matching --target-help.
15617 2011-02-12 Martin Jambor <mjambor@suse.cz>
15619 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15620 to gimple call error.
15622 2011-02-12 Mike Stump <mikestump@comcast.net>
15624 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15625 comments in backslash regions.
15627 2011-02-12 Mike Stump <mikestump@comcast.net>
15628 Jakub Jelinek <jakub@redhat.com>
15629 Iain Sandoe <iains@gcc.gnu.org>
15632 * dwarf2out.c (output_cfa_loc): When required, apply the
15633 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15634 (output_loc_sequence): Likewise.
15635 (output_loc_operands_raw): Likewise.
15636 (output_loc_sequence_raw): Likewise.
15637 (output_cfa_loc): Likewise.
15638 (output_loc_list): Suppress register number adjustment when
15639 calling output_loc_sequence()
15640 (output_die): Likewise.
15642 2011-02-12 Anatoly Sokolov <aesok@post.ru>
15644 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15646 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15647 xtensa_memory_move_cost): New functions.
15648 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15650 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
15653 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15654 in the current directory.
15655 * configure: Rebuilt.
15657 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15659 * config/darwin.c (darwin_override_options): Add a hunk missed
15660 from the commit of r168571. Trim comment line lengths and
15661 correct indents of the preceding block.
15663 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15665 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15668 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15670 * common.opt (nostartfiles): New Driver option.
15672 2011-02-11 Xinliang David Li <davidxl@google.com>
15674 PR tree-optimization/47707
15675 * tree-chrec.c (convert_affine_scev): Keep type precision.
15677 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15679 PR tree-optimization/47420
15680 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15682 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15684 PR rtl-optimization/47614
15685 * rtl.h (check_for_inc_dec): Declare.
15686 * dse.c (check_for_inc_dec): Externalize...
15687 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15688 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15690 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15693 * gcc.c (main): Do not compile inputs if there were errors in
15695 * opts-common.c (read_cmdline_option): Check for wrong language
15696 after other error checks.
15698 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15700 * cgraph.c: Fix comment typos.
15701 * cgraph.h: Likewise.
15702 * cgraphunit.c: Likewise.
15703 * ipa-cp.c: Likewise.
15704 * ipa-inline.c: Likewise.
15705 * ipa-prop.c: Likewise.
15706 * ipa-pure-const.c: Likewise.
15707 * ipa-ref.c: Likewise.
15708 * ipa-reference.c: Likewise.
15710 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15713 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15715 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15718 * doc/sourcebuild.texi (Require Support): Document
15719 dg-require-ascii-locale.
15721 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15723 * doc/lto.texi (Write summary): Fix missing parentheses.
15725 2011-02-10 DJ Delorie <dj@redhat.com>
15727 * config/m32c/m32c.c (m32c_option_override): Disable
15728 -fcombine-stack-adjustments until flag value tracking and compare
15729 optimization can be rewritten.
15731 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15733 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15735 (PROCESSOR_DEFAULT64): Likewise.
15737 2011-02-10 Richard Henderson <rth@redhat.com>
15739 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15740 change from 2011-02-03.
15741 * config/rx/rx.c (flags_from_code): Likewise.
15742 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15743 is valid, n/pz otherwise.
15744 (rx_select_cc_mode): Return CCmode if Y is not zero.
15746 2011-02-10 Richard Guenther <rguenther@suse.de>
15748 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15750 2011-02-10 Richard Guenther <rguenther@suse.de>
15752 PR tree-optimization/47677
15753 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15755 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15758 * combine.c (make_compound_operation): Only change shifts into
15759 multiplication for SCALAR_INT_MODE_P.
15761 2011-02-10 Jie Zhang <jie@codesourcery.com>
15765 2011-02-05 Jie Zhang <jie@codesourcery.com>
15767 * web.c (entry_register): Don't clobber the number of the
15768 first uninitialized reference in used[].
15770 2011-02-09 Richard Guenther <rguenther@suse.de>
15772 PR tree-optimization/47664
15773 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15776 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15780 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15782 (PROCESSOR_DEFAULT64): Same.
15783 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15785 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15787 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15789 2011-02-09 Martin Jambor <mjambor@suse.cz>
15791 PR middle-end/45505
15792 * tree-sra.c (struct access): New flags grp_scalar_read and
15793 grp_scalar_write. Changed description of assignment read and write
15795 (dump_access): Dump new flags, reorder all of them.
15796 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15797 to detect multiple scalar reads.
15798 (analyze_access_subtree): Use the new scalar read write flags instead
15799 of the old flags. Adjusted comments.
15801 2011-02-08 DJ Delorie <dj@redhat.com>
15804 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15807 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15809 * config/m68k/uclinux.opt: New.
15810 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15812 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15814 * config/cris/elf.opt (sim): New Driver option.
15816 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15818 * config/xtensa/elf.opt: New.
15819 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15821 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15823 * config/vax/elf.opt: New.
15824 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15826 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15828 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15830 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15832 * config/gnu-user.opt: New.
15833 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15834 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15835 *-*-uclinux*): Use gnu-user.opt.
15837 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15839 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15840 * config/i386/gnu.h (CPP_SPEC): Likewise.
15842 2011-02-08 Ian Lance Taylor <iant@google.com>
15844 * common.opt (fcx-limited-range): Add SetByCombined flag.
15845 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15846 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15847 (fassociative-math, freciprocal-math): Likewise.
15848 (funsafe-math-optimizations): Likewise.
15849 * opth-gen.awk: Handle SetByCombined.
15850 * optc-gen.awk: Likewise.
15851 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15852 (set_unsafe_math_optimizations_flags): Likewise.
15853 * doc/options.texi (Option properties): Document SetByCombined.
15855 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15857 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15858 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15859 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15860 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15861 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15863 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15865 PR tree-optimization/46834
15866 PR tree-optimization/46994
15867 PR tree-optimization/46995
15868 * graphite-sese-to-poly.c (used_outside_reduction): New.
15869 (detect_commutative_reduction): Call used_outside_reduction.
15870 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15871 translate_scalar_reduction_to_array only when at least one
15872 loop-phi/close-phi tuple has been detected.
15874 2011-02-08 Richard Guenther <rguenther@suse.de>
15876 PR middle-end/47639
15877 * tree-vect-generic.c (expand_vector_operations_1): Update
15879 (expand_vector_operations): ... not here. Cleanup EH info
15880 and the CFG if required.
15882 2011-02-08 Richard Guenther <rguenther@suse.de>
15884 PR tree-optimization/47641
15885 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15886 require type compatibility.
15888 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15890 * gimple-low.c (lower_function_body): Don't remove the location of
15891 the return statement here.
15892 (lower_gimple_return): Do it here instead but only if the return
15893 statement is actually used twice.
15895 2011-02-08 Richard Guenther <rguenther@suse.de>
15897 PR tree-optimization/47632
15898 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15899 unused up_to_stmt parameter, return whether cfg-cleanup is
15900 necessary, remove EH info properly.
15901 (forward_propagate_into_gimple_cond): Adjust caller.
15902 (forward_propagate_into_cond): Likewise.
15903 (forward_propagate_comparison): Likewise.
15904 (tree_ssa_forward_propagate_single_use_vars): Make
15905 forward_propagate_comparison case similar to the two others.
15907 2011-02-08 Nick Clifton <nickc@redhat.com>
15909 * config/mn10300/mn10300.opt (mliw): New command line option.
15910 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15911 (liw_bundling): New automaton.
15912 (liw): New attribute.
15913 (liw_op): New attribute.
15914 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15915 (movsi_internal): Add LIW attributes.
15916 (andsi3): Likewise.
15917 (iorsi3): Likewise.
15918 (xorsi3): Likewise.
15919 (addsi3): Separate register and immediate alternatives.
15920 Add LIW attributes.
15921 (subsi3): Likewise.
15923 (aslsi3): Likewise.
15924 (lshrsi3): Likewise.
15925 (ashrsi3): Likewise.
15926 (liw): New pattern.
15927 * config/mn10300/mn10300.c (liw_op_names): New
15928 (mn10300_print_operand): Handle 'W' operand descriptor.
15929 (extract_bundle): New function.
15930 (check_liw_constraints): New function.
15931 (liw_candidate): New function.
15932 (mn10300_bundle_liw): New function.
15933 (mn10300_reorg): New function.
15934 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15935 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15936 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15937 __LIW__ or __NO_LIW__.
15938 * doc/invoke.texi: Describe the -mliw command line option.
15940 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15942 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15943 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15944 pthread_mutex_unlock): Remove.
15945 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15946 * config/pa/t-pa64: Likewise.
15947 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15948 shared libc if not linking against libpthread.
15949 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15951 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15954 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15955 on 10.6 and later to ensure that we always use the unwinder from
15956 the system. Only add -no_compact_unwind when tarteting darwin
15959 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15962 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15963 (vec_interleave_lowv2sf): Ditto.
15964 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15965 (vec_extract_oddv2sf): Ditto.
15967 2011-02-07 Mike Stump <mikestump@comcast.net>
15970 Add __ieee_divdc3 entry point.
15971 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15973 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15974 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15975 * config/darwin.c (darwin_rename_builtins): Add.
15976 * config/darwin-protos.h (darwin_rename_builtins): Add.
15978 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15981 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15984 2011-02-07 Mike Stump <mikestump@comcast.net>
15986 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15988 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15991 * config/avr/libgcc.S (exit): Move .endfunc
15993 2011-02-07 Richard Guenther <rguenther@suse.de>
15995 PR tree-optimization/47615
15996 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15997 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15998 (run_scc_vn): Initialize it.
15999 (visit_reference_op_load): Use it.
16000 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16002 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16004 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16005 DImode trapping arithmetic libfuncs.
16007 2011-02-07 Richard Guenther <rguenther@suse.de>
16009 PR tree-optimization/47621
16010 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16012 (execute_update_addresses_taken): ... here. Make it more
16013 conservative in what we accept.
16015 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16017 * config/sparc/freebsd.h (ASM_SPEC): Define.
16018 * config/sparc/vxworks.h (ASM_SPEC): Define.
16020 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16022 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16024 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16026 * doc/invoke.texi: Remove reference to compiler internals from
16027 user documentation.
16029 * reg-notes.def: Remove REG_VALUE_PROFILE.
16030 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16032 2011-02-05 Jakub Jelinek <jakub@redhat.com>
16034 PR middle-end/47610
16035 * varasm.c (default_section_type_flags): If decl is NULL,
16036 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16038 2011-02-05 Jie Zhang <jie@codesourcery.com>
16041 * web.c (entry_register): Don't clobber the number of the
16042 first uninitialized reference in used[].
16044 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
16046 PR tree-optimization/46194
16047 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16048 (build_classic_dist_vector_1): Do not represent classic distance
16049 vectors when the access functions are variating in different loops.
16051 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16053 * config/mips/iris6.opt: New.
16054 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16056 2011-02-04 Richard Henderson <rth@redhat.com>
16057 Steve Ellcey <sje@cup.hp.com>
16060 * config/ia64/predicates.md (mux1_brcst_element): New.
16061 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16062 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16063 (ia64_unpack_sign): New.
16064 (ia64_expand_unpack): Rewrite using new routines.
16065 (ia64_expand_widen_sum): Ditto.
16066 (ia64_expand_dot_prod_v8qi): Ditto.
16067 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16068 routines, add endian check.
16069 (pmpy2_even): Rename from pmpy2_r, add endian check.
16070 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16071 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16072 (vec_widen_smult_hi_v4hi): Ditto.
16073 (vec_widen_umult_lo_v4hi): Ditto.
16074 (vec_widen_umult_hi_v4hi): Ditto.
16075 (mulv2si3): Change endian checks.
16076 (sdot_prodv4hi): Rewrite with new calls.
16077 (udot_prodv4hi): New.
16078 (vec_pack_ssat_v4hi): Add endian check.
16079 (vec_pack_usat_v4hi): Ditto.
16080 (vec_pack_ssat_v2si): Ditto.
16081 (max1_even): Rename from max1_r, add endian check.
16082 (max1_odd): Rename from max1_l, add endian check.
16083 (*mux1_rev): Format change.
16084 (*mux1_mix): Ditto.
16085 (*mux1_shuf): Ditto.
16086 (*mux1_alt): Ditto.
16087 (*mux1_brcst_v8qi): Use new predicate.
16088 (vec_extract_evenv8qi): Remove endian check.
16089 (vec_extract_oddv8qi): Ditto.
16090 (vec_interleave_lowv4hi): Format change.
16091 (vec_interleave_highv4hi): Ditto.
16092 (mix2_even): Rename from mix2_r, add endian check.
16093 (mix2_odd): Rename from mux2_l, add endian check.
16094 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16095 (vec_extract_evenodd_helper): Format change.
16096 (vec_extract_evenv4hi): Remove endian check.
16097 (vec_extract_oddv4hi): Remove endian check.
16098 (vec_interleave_lowv2si): Format change.
16099 (vec_interleave_highv2si): Format change.
16100 (vec_initv2si): Remove endian check.
16101 (vecinit_v2si): Add endian check.
16102 (reduc_splus_v2sf): Add endian check.
16103 (reduc_smax_v2sf): Ditto.
16104 (reduc_smin_v2sf): Ditto.
16105 (vec_initv2sf): Remove endian check.
16106 (fpack): Add endian check.
16107 (fswap): Add endian check.
16108 (vec_interleave_highv2sf): Add endian check.
16109 (vec_interleave_lowv2sf): Add endian check.
16110 (fmix_lr): Add endian check.
16111 (vec_setv2sf): Format change.
16112 (*vec_extractv2sf_0_be): Use shift to extract operand.
16113 (*vec_extractv2sf_1_be): New.
16114 (vec_pack_trunc_v4hi): Add endian check.
16115 (vec_pack_trunc_v2si): Format change.
16117 2011-02-04 Jakub Jelinek <jakub@redhat.com>
16119 PR inline-asm/23200
16120 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
16121 do bb, locus and block comparison and disallow loads if it is not set.
16122 (stmt_is_replaceable_p): New function.
16123 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16125 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16126 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16128 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16130 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16132 * config/rs6000/xilinx.opt: New.
16133 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16135 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16137 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16139 2011-02-03 Anatoly Sokolov <aesok@post.ru>
16141 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16142 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16143 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16144 secondary_reload_info, xtensa_secondary_reload): Remove.
16145 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16146 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16147 (xtensa_preferred_reload_class): Make static. Change return and
16148 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16149 Use CONST_DOUBLE_P predicate.
16150 (xtensa_preferred_output_reload_class): New function.
16151 (xtensa_secondary_reload): Make static.
16153 2011-02-03 Joseph Myers <joseph@codesourcery.com>
16155 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16156 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16157 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16159 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16161 PR middle-end/31490
16162 * output.h (SECTION_RELRO): Define.
16163 (SECTION_MACH_DEP): Adjust.
16164 (get_variable_section): New prototype.
16165 * varpool.c (varpool_finalize_named_section_flags): New function.
16166 (varpool_assemble_pending_decls): Call it.
16167 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16168 * cgraphunit.c (cgraph_output_in_order): Call
16169 varpool_finalize_named_section_flags.
16170 * varasm.c (get_section): Allow section flags conflicts between
16171 relro and read-only sections if the section hasn't been declared yet.
16172 Set SECTION_OVERRIDE after diagnosing section type conflict.
16173 (get_variable_section): No longer static.
16174 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16175 readonly sections that need relocations.
16176 (decl_readonly_section_1): New function.
16177 (decl_readonly_section): Use it.
16180 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
16181 Steve Ellcey <sje@cup.hp.com>
16183 PR middle-end/31490
16184 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16185 if section attribute used.
16187 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16189 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16190 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16191 (darwin_init_sections): Remove assertion.
16193 2011-02-03 Nick Clifton <nickc@redhat.com>
16195 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16197 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16198 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16199 instead of "n" and "pz".
16200 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16203 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16206 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16207 fma, expand FMA_EXPR as fma{,f,l} call.
16210 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16211 copy them into a unsigned char variable and pass address of it to
16212 lto_output_data_stream.
16215 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16216 around backend_init_target and lang_dependent_init_target calls.
16217 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16218 (verify_cgraph_node): Don't call set_cfun here. Use
16219 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16220 Set error_found for incorrectly represented calls to thunks.
16222 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16225 PR rtl-optimization/43494
16226 * rtl.h (for_each_inc_dec_fn): New type.
16227 (for_each_inc_dec): Declare.
16228 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16229 (for_each_inc_dec_find_inc_dec): New fn.
16230 (for_each_inc_dec_find_mem): New fn.
16231 (for_each_inc_dec): New fn.
16232 * dse.c (struct insn_size): Remove.
16233 (replace_inc_dec, replace_inc_dec_mem): Remove.
16234 (emit_inc_dec_insn_before): New fn.
16235 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16236 (canon_address): Pass mem modes to cselib_lookup.
16237 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16238 (cselib_lookup_from_insn): Likewise.
16239 (cselib_subst_to_values): Likewise.
16240 * cselib.c (find_slot_memmode): New var.
16241 (cselib_find_slot): New fn. Use it instead of
16242 htab_find_slot_with_hash everywhere.
16243 (entry_and_rtx_equal_p): Use find_slot_memmode.
16244 (autoinc_split): New fn.
16245 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16246 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16247 Deal with autoinc. Special-case recursion into MEMs.
16248 (cselib_hash_rtx): Likewise.
16249 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16250 address and MEM modes.
16251 (cselib_subst_to_values): Add memmode, pass it on.
16253 (cselib_lookup): Add memmode argument, pass it on.
16254 (cselib_lookup_from_insn): Add memmode.
16255 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16256 (struct cselib_record_autoinc_data): New.
16257 (cselib_record_autoinc_cb): New fn.
16258 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16259 mode to cselib_lookup. Reset autoinced REGs here instead of...
16260 (cselib_process_insn): ... here.
16261 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16263 (add_uses): Likewise, also to cselib_subst_to_values.
16264 (add_stores): Likewise.
16265 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16266 cselib_subst_to_values.
16267 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16268 * gcse.c (do_local_cprop): Adjusted.
16269 * postreload.c (reload_cse_simplify_set): Adjusted.
16270 (reload_cse_simplify_operands): Adjusted.
16271 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16273 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16275 PR tree-optimization/45122
16276 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16277 unsafe assumptions when there's more than one loop exit.
16279 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16282 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16283 Document using vector double with the load/store builtins, and
16284 that the load/store builtins always use Altivec instructions.
16286 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16287 to use altivec memory instructions, even on VSX.
16288 (vector_altivec_store_<mode>): Ditto.
16290 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16293 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16294 V2DF, V2DI support to load/store overloaded builtins.
16296 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16297 altivec load/store builtins for V2DF/V2DI types.
16299 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16300 set avoid indexed addresses on power6 if -maltivec.
16301 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16302 vector_altivec_load/vector_altivec_store builtins.
16303 (altivec_expand_st_builtin): Ditto.
16304 (altivec_expand_builtin): Add VSX memory builtins.
16305 (rs6000_init_builtins): Add V2DI types to internal types.
16306 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16307 load/store builtins.
16308 (rs6000_address_for_altivec): Insure memory address is appropriate
16311 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16312 vec_vsx_ld and vec_vsx_st.
16313 (vsx_store_<mode>): Ditto.
16315 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16316 variables to hold long long types for VSX vector memory builtins.
16317 (RS6000_BTI_unsigned_long_long): Ditto.
16318 (long_long_integer_type_internal_node): Ditti.
16319 (long_long_unsigned_type_internal_node): Ditti.
16321 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16322 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16323 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16325 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16327 (vec_vsx_st): Ditto.
16329 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16331 * config/pa/pa-hpux10.opt: New.
16332 * config/hpux11.opt (pthread): New Driver option.
16333 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16334 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16336 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16338 * config/ia64/vms.opt: New.
16339 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16341 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16344 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16345 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16346 generator functions.
16347 (vsx_floatuns<VSi><mode>2): Ditto.
16348 (vsx_fix_trunc<mode><VSi>2): Ditto.
16349 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16351 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16353 * config/i386/djgpp.opt (posix): New Driver option.
16355 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16357 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16358 Move to the unsupported targets list.
16360 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16362 PR rtl-optimization/47525
16363 * df-scan.c: Update copyright years.
16364 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16365 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16367 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16369 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16370 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16371 (ASM_OUTPUT_ASCII): Remove.
16372 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16374 2011-02-02 Jeff Law <law@redhat.com>
16376 PR middle-end/47543
16377 * reload.c (find_reloads_address): Handle reg+d address where both
16378 components are invalid by reloading the entire address.
16380 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16381 Richard Guenther <rguenther@suse.de>
16383 PR tree-optimization/40979
16385 * passes.c (init_optimization_passes): After LIM call copy_prop
16386 and DCE to clean up.
16387 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16389 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16391 PR tree-optimization/47576
16392 PR tree-optimization/47555
16393 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16394 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16395 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16396 * tree-scalar-evolution.c (follow_ssa_edge): Use
16397 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16399 2011-02-02 Richard Guenther <rguenther@suse.de>
16401 PR tree-optimization/47566
16402 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16404 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16408 * tree-inline.c (declare_return_variable): Remove unused caller
16413 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16414 * cfgexpand.c (account_used_vars_for_block): Use them.
16415 * tree-nrv.c (tree_nrv): Likewise.
16416 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16417 (dump_scope_block): Likewise.
16418 (remove_unused_locals): Likewise.
16422 * tree-inline.c (declare_return_variable): Add result decl to
16423 local decls only once.
16424 * gimple-low.c (record_vars_into): Mark newly-created variables
16427 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16433 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16435 (no_real_insns_p, schedule_block, set_priorities): Drop special
16436 treatment of boundary debug insns.
16437 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16438 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16439 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16440 (BOUNDARY_DEBUG_INSN_P): Likewise.
16441 (SCHEDULE_DEBUG_INSN_P): Likewise.
16442 * sched-rgn.c (init_ready_list): Drop special treatment of
16443 boundary debug insns.
16444 * final.c (rest_of_clean_state): Clear notes' BB.
16446 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16448 * config/openbsd.opt (assert=): New Driver option.
16450 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16452 * config/i386/nto.opt: New.
16453 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16455 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16457 * config/i386/netware.opt: New.
16458 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16460 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16462 * config/interix.opt (posix): New Driver option.
16464 2011-02-01 DJ Delorie <dj@redhat.com>
16466 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16468 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16471 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16473 PR tree-optimization/47561
16474 * toplev.c (process_options): Print the Graphite flags. Add
16475 flag_loop_flatten to the list of options requiring Graphite.
16477 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16479 * config/i386/cygming.opt (posix): New Driver option.
16481 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16483 * config/arm/vxworks.opt: New.
16484 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16486 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16488 * config/alpha/elf.opt: New.
16489 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16490 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16492 2011-02-01 Richard Guenther <rguenther@suse.de>
16494 PR tree-optimization/47559
16495 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16496 store-motion on references that can throw.
16498 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
16500 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16501 * tree-pass.h (TDF_CSELIB): New macro.
16502 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16503 cselib_lookup): Check for it rather than for TDF_DETAILS.
16505 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
16508 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16509 is HOST_BIT_BUCKET.
16511 * opts.c (finish_options): Don't add x_aux_base_name if it is
16514 2011-02-01 Richard Guenther <rguenther@suse.de>
16516 PR tree-optimization/47555
16518 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
16520 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16522 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
16525 * config/lm32/t-lm32: Add multilib for all CPU options.
16527 2011-02-01 Richard Guenther <rguenther@suse.de>
16529 PR tree-optimization/47541
16530 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16531 sure to have a field at offset zero.
16533 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16535 * config/arc/arc.opt (EB, EL): New Driver options.
16537 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16539 * config/alpha/osf5.opt: New.
16540 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16542 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16544 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16546 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
16548 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16549 -floop-interchange.
16550 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
16551 is an alias of -floop-interchange and that it requires the
16552 Graphite infrastructure.
16553 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
16554 flag_loop_interchange based on the value of flag_tree_loop_linear.
16556 2011-01-31 Jakub Jelinek <jakub@redhat.com>
16557 Richard Guenther <rguenther@suse.de>
16559 PR tree-optimization/47538
16560 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
16561 type instead of r1type, except for comparisons. For right
16562 shifts and comparisons punt if there are mismatches in
16563 sizetype vs. non-sizetype types.
16565 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16567 * doc/sourcebuild.texi (Effective-Target Keywords): Document
16570 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16572 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
16574 * configure: Regenerate.
16576 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16578 * configure.ac (gcc_cv_ld_static_option): Define.
16579 (gcc_cv_ld_dynamic_option): Define.
16580 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
16582 (HAVE_LD_STATIC_DYNAMIC): Update message.
16583 (LD_STATIC_OPTION): Define.
16584 (LD_DYNAMIC_OPTION): Define.
16585 * configure: Regenerate.
16586 * config.in: Regenerate.
16587 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
16588 HAVE_LD_STATIC_DYNAMIC]: Use them.
16590 2011-01-31 Nick Clifton <nickc@redhat.com>
16592 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
16593 registers inside interrupt handlers if the handler is not a leaf
16596 2011-01-31 Nick Clifton <nickc@redhat.com>
16598 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
16599 reg_renumber returning an INVALID_REGNUM.
16601 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16604 * doc/install.texi: Document host options discarded when cross
16605 configuring target libraries.
16607 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16610 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16613 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16615 (no_real_insns_p, schedule_block, set_priorities): Drop special
16616 treatment of boundary debug insns.
16617 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16618 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16619 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16620 (BOUNDARY_DEBUG_INSN_P): Likewise.
16621 (SCHEDULE_DEBUG_INSN_P): Likewise.
16622 * sched-rgn.c (init_ready_list): Drop special treatment of
16623 boundary debug insns.
16624 * final.c (rest_of_clean-state): Clear notes' BB.
16626 2011-01-31 Alan Modra <amodra@gmail.com>
16628 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16629 toc relative expressions as we do in print_operand_address.
16631 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
16633 * doc/extend.texi: Follow spelling conventions.
16634 * doc/invoke.texi: Fix a typo.
16636 2011-01-30 Joseph Myers <joseph@codesourcery.com>
16638 * config/hpux11.opt: New.
16639 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16640 ia64*-*-hpux*): Use hpux11.opt.
16642 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
16644 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16647 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16649 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16652 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16654 * doc/install.texi (Binaries): Remove outdated reference for
16655 Motorola 68HC11/68HC12 downloads.
16657 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16659 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16662 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16665 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16668 2011-01-28 Ahmad Sharif <asharif@google.com>
16670 * value-prof.c (check_counter): Corrected error message.
16672 2011-01-29 Jie Zhang <jie@codesourcery.com>
16674 * config/arm/arm.c (arm_legitimize_reload_address): New.
16675 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16676 arm_legitimize_reload_address.
16677 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16679 2011-01-28 Ian Lance Taylor <iant@google.com>
16681 * godump.c (go_define): Ignore macros whose definitions include
16682 two adjacent operands.
16684 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16687 * varasm.c (force_const_mem): Store copy of x in desc->constant
16688 instead of x itself.
16689 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16690 itself into REG_EQUAL note.
16692 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16694 * config/freebsd.opt (posix, rdynamic): New Driver options.
16696 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16698 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16699 -Bstatic/-Bdynamic.
16700 * configure: Regenerate.
16702 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16704 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16705 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16707 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16709 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16710 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16711 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16712 (s390_preferred_reload_class): Make static. Change return and
16713 'rclass' argument type to reg_class_t.
16715 2011-01-27 Jan Hubicka <jh@suse.cz>
16717 PR middle-end/46949
16718 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16719 (process_function_and_variable_attributes): Check defined weakrefs.
16721 2011-01-27 Martin Jambor <mjambor@suse.cz>
16723 PR tree-optimization/47228
16724 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16725 build_ref_for_offset.
16727 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16729 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16731 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16733 PR rtl-optimization/46856
16734 * postreload.c (reload_combine_recognize_const_pattern): Do not
16735 separate cc0 setter and user on cc0 targets.
16737 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16740 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16741 passed a VOID_TYPE expression, immediately emit an error and
16742 return error_mark_node.
16744 2011-01-26 Jeff Law <law@redhat.com>
16746 PR rtl-optimization/47464
16747 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16748 rather than may_trap_p as needed.
16750 2011-01-26 DJ Delorie <dj@redhat.com>
16752 PR rtl-optimization/46878
16753 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16754 setter/user dependency as well.
16756 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16758 PR rtl-optimization/44469
16759 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16760 after removing trivially dead basic blocks.
16762 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16764 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16765 * config/frv/frv.h (LINK_SPEC): Likewise.
16766 * config/i386/netware.h (LINK_SPEC): Likewise.
16767 * config/m68k/linux.h (ASM_SPEC): Likewise.
16768 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16769 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16770 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16771 * config/sparc/linux.h (ASM_SPEC): Likewise.
16772 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16773 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16775 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16777 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16778 * config/frv/frv.h (ASM_SPEC): Likewise.
16779 * config/m68k/linux.h (ASM_SPEC): Likewise.
16780 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16781 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16782 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16783 * config/sparc/linux.h (ASM_SPEC): Likewise.
16784 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16785 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16787 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16789 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16790 * config/frv/frv.h (LINK_SPEC): Likewise.
16791 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16793 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16795 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16796 * config/frv/frv.h (ASM_SPEC): Likewise.
16797 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16798 * config/m68k/linux.h (ASM_SPEC): Likewise.
16799 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16800 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16801 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16802 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16803 * config/sparc/linux.h (ASM_SPEC): Likewise.
16804 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16805 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16806 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16808 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16811 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16813 (vec_extract_evenodd_help): Ditto.
16814 (vec_extract_evenv4hi): Ditto.
16815 (vec_extract_oddv4hi): Ditto.
16816 (vec_interleave_lowv2si): Ditto.
16817 (vec_interleave_highv2si): Ditto.
16818 (vec_extract_evenv2si): Ditto.
16819 (vec_extract_oddv2si: Ditto.
16820 (vec_pack_trunc_v2si): Ditto.
16822 2011-01-22 Jan Hubicka <jh@suse.cz>
16825 * cgraph.h (cgraph_local_info): New field can_change_signature.
16826 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16827 signature can change.
16828 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16830 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16831 (cgraph_function_versioning): We can not change signature of functions
16832 that don't allow that.
16833 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16834 (lto_input_node): Likewise.
16835 * ipa-inline.c (compute_inline_parameters): Compute
16836 local.can_change_signature.
16837 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16838 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16839 functions that can not change signature.
16840 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16841 init_cumulative_args): Do not use local calling conventions
16842 for functions that can not change signature.
16844 2011-01-22 Jan Hubicka <jh@suse.cz>
16846 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16848 2011-01-26 Richard Guenther <rguenther@suse.de>
16850 PR tree-optimization/47190
16851 * cgraphunit.c (process_common_attributes): New function.
16852 (process_function_and_variable_attributes): Use it.
16854 2011-01-26 Richard Guenther <rguenther@suse.de>
16857 * cgraphbuild.c (record_eh_tables): Record reference to personality
16860 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16863 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16864 non-debug insns from moving up.
16866 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16869 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16870 t-dlldir{,-x} fragment for build and add it to tmake_file.
16871 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16872 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16873 * config/i386/t-dlldir: New file.
16874 (SHLIB_DLLDIR): Define.
16875 * config/i386/t-dlldir-x: New file.
16876 (SHLIB_DLLDIR): Define.
16877 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16878 (SHLIB_INSTALL): Use it.
16880 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16883 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16884 lower bound of the allowed Thumb-2 coprocessor load/store
16885 index range to -256. Add explaining comment.
16887 2011-01-25 Ian Lance Taylor <iant@google.com>
16889 * godump.c (go_define): Improve lexing of macro expansion to only
16890 accept expressions which match Go spec.
16892 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16895 * tree.c (handle_dll_attribute): Handle it.
16896 * doc/extend.texi (@item dllexport): Mention it.
16897 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16899 2011-01-25 Ian Lance Taylor <iant@google.com>
16901 PR tree-optimization/26854
16902 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16903 (decl_jump_unsafe): Move higher in file, with no other change.
16904 (bind): Set has_jump_unsafe_decl if appropriate.
16905 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16906 (check_earlier_gotos): Likewise.
16907 (c_check_switch_jump_warnings): Likewise.
16909 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16911 * doc/invoke.texi (Warning Options): Add missing hyphen.
16912 (-fprofile-dir): Minor grammatical fixes.
16913 (-fbranch-probabilities): Likewise.
16915 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16919 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16921 (no_real_insns_p, schedule_block, set_priorities): Drop special
16922 treatment of boundary debug insns.
16923 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16924 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16925 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16926 (BOUNDARY_DEBUG_INSN_P): Likewise.
16927 (SCHEDULE_DEBUG_INSN_P): Likewise.
16928 * sched-rgn.c (init_ready_list): Drop special treatment of
16929 boundary debug insns.
16930 * final.c (rest_of_clean-state): Clear notes' BB.
16932 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16934 * Makefile.in (LAMBDA_H): Removed.
16935 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16936 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16937 lambda-trans.o, and tree-loop-linear.o.
16938 (lto-symtab.o): Remove dependence on LAMBDA_H.
16939 (tree-loop-linear.o): Remove rule.
16940 (lambda-mat.o): Same.
16941 (lambda-trans.o): Same.
16942 (lambda-code.o): Same.
16943 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16944 (tree-vect-slp.o): Same.
16945 * hwint.h (gcd): Moved here.
16946 (least_common_multiple): Same.
16947 * lambda-code.c: Removed.
16948 * lambda-mat.c: Removed.
16949 * lambda-trans.c: Removed.
16950 * lambda.h: Removed.
16951 * tree-loop-linear.c: Removed.
16952 * lto-symtab.c: Do not include lambda.h.
16953 * omega.c (gcd): Removed.
16954 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16955 * tree-data-ref.c (print_lambda_vector): Moved here.
16956 (lambda_vector_copy): Same.
16957 (lambda_matrix_copy): Same.
16958 (lambda_matrix_id): Same.
16959 (lambda_vector_first_nz): Same.
16960 (lambda_matrix_row_add): Same.
16961 (lambda_matrix_row_exchange): Same.
16962 (lambda_vector_mult_const): Same.
16963 (lambda_vector_negate): Same.
16964 (lambda_matrix_row_negate): Same.
16965 (lambda_vector_equal): Same.
16966 (lambda_matrix_right_hermite): Same.
16967 * tree-data-ref.h: Do not include lambda.h.
16968 (lambda_vector): Moved here.
16969 (lambda_matrix): Same.
16970 (dependence_level): Same.
16971 (lambda_transform_legal_p): Removed declaration.
16972 (lambda_collect_parameters): Same.
16973 (lambda_compute_access_matrices): Same.
16974 (lambda_vector_gcd): Same.
16975 (lambda_vector_new): Same.
16976 (lambda_vector_clear): Same.
16977 (lambda_vector_lexico_pos): Same.
16978 (lambda_vector_zerop): Same.
16979 (lambda_matrix_new): Same.
16980 * tree-flow.h (least_common_multiple): Removed declaration.
16981 * tree-parloops.c (lambda_trans_matrix): Moved here.
16982 (LTM_MATRIX): Same.
16983 (LTM_ROWSIZE): Same.
16984 (LTM_COLSIZE): Same.
16985 (LTM_DENOMINATOR): Same.
16986 (lambda_trans_matrix_new): Same.
16987 (lambda_matrix_vector_mult): Same.
16988 (lambda_transform_legal_p): Same.
16989 * tree-pass.h (pass_linear_transform): Removed declaration.
16990 * tree-ssa-loop.c (tree_linear_transform): Removed.
16991 (gate_tree_linear_transform): Removed.
16992 (pass_linear_transform): Removed.
16993 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16994 flag_loop_interchange.
16996 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16998 PR tree-optimization/47265
16999 PR tree-optimization/47443
17000 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17001 if name still has some uses.
17003 2011-01-25 Martin Jambor <mjambor@suse.cz>
17005 PR tree-optimization/47382
17006 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17007 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17009 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
17011 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17012 sjlj_except_unwind_info.
17014 2011-01-25 Richard Guenther <rguenther@suse.de>
17016 PR tree-optimization/47426
17017 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17018 visible functions results escape.
17020 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17023 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17024 (arm_get_frame_offsets): Use it.
17026 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17027 Jakub Jelinek <jakub@redhat.com>
17029 PR tree-optimization/47271
17030 * tree-if-conv.c (bb_postdominates_preds): New.
17031 (if_convertible_bb_p): Call bb_postdominates_preds.
17032 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17033 (predicate_scalar_phi): Call bb_postdominates_preds.
17035 2011-01-25 Nick Clifton <nickc@redhat.com>
17037 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17038 * config/rx/rx.c (rx_function_value): Likewise.
17039 (rx_promote_function_mode): Likewise.
17040 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17041 in order to make it legitimate.
17042 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17043 make sure that the first operand is the same as the result register.
17044 (addsi3_unspec): Delete.
17045 (subdi3): Do not accept immediate operands.
17046 (subdi3_internal): Likewise.
17048 2011-01-25 Jeff Law <law@redhat.com>
17050 PR rtl-optimization/37273
17051 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17052 handle them like argument loads from stack slots. Do not double
17053 count memory for memory constants and argument loads from stack slots.
17055 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17057 PR tree-optimization/47427
17058 PR tree-optimization/47428
17059 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17060 coalesce if the new root var would be TREE_READONLY.
17062 2011-01-25 Richard Guenther <rguenther@suse.de>
17064 PR middle-end/47414
17065 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17066 correct type for TBAA.
17068 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17070 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17071 (close_phi_written_to_memory): Call for_each_index with
17072 dr_indices_valid_in_loop.
17074 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17076 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17077 when it is initialized.
17079 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17081 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17082 call to graphite_find_data_references_in_stmt.
17083 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17084 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17085 call to graphite_find_data_references_in_stmt.
17086 (analyze_drs_in_stmts): Same.
17087 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17088 in which the scalar analysis of indices is performed.
17089 (create_data_ref): Same. Update call to dr_analyze_indices.
17090 (find_data_references_in_stmt): Update call to create_data_ref.
17091 (graphite_find_data_references_in_stmt): Same.
17092 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17094 (create_data_ref): Same.
17095 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17096 call to create_data_ref.
17098 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17100 * graphite-sese-to-poly.c (build_poly_scop): Move
17101 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17103 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17105 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17106 VAR_DECL, PARM_DECL, and RESULT_DECL.
17108 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17110 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17111 in a reduction PBB.
17112 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17113 that have already been marked as PBB_IS_REDUCTION.
17115 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17117 * graphite-scop-detection.c (same_close_phi_node): New.
17118 (remove_duplicate_close_phi): New.
17119 (make_close_phi_nodes_unique): New.
17120 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17122 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17124 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17125 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17126 of both data references to be the same.
17128 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17130 * graphite-dependences.c (build_lexicographical_constraint): Remove
17131 the gdim parameter.
17132 (build_lexicographical_constraint): Adjust call to
17133 ppl_powerset_is_empty.
17134 (dependence_polyhedron): Same.
17135 (graphite_legal_transform_dr): Same.
17136 (graphite_carried_dependence_level_k): Same.
17137 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17139 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17141 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17143 * graphite-sese-to-poly.c
17144 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17145 (close_phi_written_to_memory): New.
17146 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17149 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17151 * doc/install.texi: Update the expected version number of PPL to 0.11.
17152 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17153 #if PPL_VERSION_MINOR < 11.
17155 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17157 * graphite-dependences.c: Include graphite-cloog-util.h.
17158 (new_poly_ddr): Inlined into dependence_polyhedron.
17159 (free_poly_ddr): Moved close by new_poly_ddr.
17160 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17161 Early return NULL when ppl_powerset_is_empty returns true.
17162 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17163 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17164 (graphite_legal_transform_dr): Call new_poly_ddr.
17165 (graphite_carried_dependence_level_k): Same.
17166 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17167 (dot_transformed_deps_stmt_1): Removed.
17168 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17169 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17170 (dot_deps_1): Call dot_deps_2.
17171 * Makefile.in (graphite-dependences.o): Add missing dependence on
17172 graphite-cloog-util.h.
17174 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17176 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17177 (build_lexicographical_constraint): Same.
17178 (dependence_polyhedron_1): Same.
17179 (graphite_legal_transform_dr): Same.
17180 (graphite_carried_dependence_level_k): Same.
17181 * graphite-ppl.c (ppl_powerset_is_empty): New.
17182 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17183 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17185 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17187 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17188 the "a followed by b" relation and document it.
17190 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17192 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17193 iteration when the bag of constraints is empty.
17195 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17197 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17199 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17201 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17202 nest and two loop depths as parameters.
17203 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17204 lst_perfect_nestify.
17206 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17208 * graphite-dependences.c (print_pddr): Call
17209 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17211 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17213 * graphite-ppl.c (debug_gmp_value): New.
17214 * graphite-ppl.h (debug_gmp_value): Declared.
17216 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17218 * doc/install.texi: Document availability of cloog-0.16.
17220 2011-01-25 Vladimir Kargov <kargov@gmail.com>
17222 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17223 invalid postdominance info.
17225 2011-01-24 Jan Hubicka <jh@suse.cz>
17228 * doc/extend.texi (weak pragma): Drop claim that it must
17229 appear before definition.
17230 * varasm.c (merge_weak, declare_weak): Only sanity check
17231 that DECL is not output at a time it is declared weak.
17233 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17235 * machmode.def: Fixed comments.
17237 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
17239 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17241 2011-01-24 Paul Koning <ni1d@arrl.net>
17243 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17246 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17249 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17250 (block_info): Add scanned and prev.
17251 (move_or_delete_vzeroupper_2): Return if the basic block
17252 has been scanned and the upper 128bit state is unchanged
17253 from the last scan.
17254 (move_or_delete_vzeroupper_1): Return true if the exit
17256 (move_or_delete_vzeroupper): Visit basic blocks using the
17257 work-list based algorithm based on vt_find_locations in
17260 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17262 2011-01-24 Nick Clifton <nickc@redhat.com>
17264 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17265 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17266 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17267 then define __v850e1__.
17268 * doc/invoke.texi: Document -mv850es.
17270 2011-01-24 Richard Henderson <rth@redhat.com>
17272 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17273 compound unordered comparisons.
17274 * config/rx/rx.c (rx_split_fp_compare): Remove.
17275 * config/rx/rx-protos.h: Update.
17276 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17277 (cbranchsf4): Don't call rx_split_fp_compare.
17278 (*cbranchsf4): Use rx_split_cbranch.
17279 (*cmpsf): Don't accept "i" constraint.
17280 (*conditional_branch): Only valid after reload.
17281 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17283 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17286 * config/rs6000/altivec.md (vector constant splitters): Add
17287 support for creating vector single precision constants if -mvsx is
17288 used and we would create the constant using Altivec primitives.
17290 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17291 Richard Sandiford <rdsandiford@googlemail.com>
17293 PR rtl-optimization/47166
17294 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17295 mechanism for PRE_MODIFY and POST_MODIFY.
17296 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17299 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17301 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17303 2011-01-22 Jan Hubicka <jh@suse.cz>
17306 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17308 2011-01-22 Jan Hubicka <jh@suse.cz>
17310 PR tree-optimization/43884
17312 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17313 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17315 2011-01-22 Anatoly Sokolov <aesok@post.ru>
17317 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17318 * config/s390/s390.c (s390_register_move_cost,
17319 s390_memory_move_cost): New.
17320 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17322 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17324 PR middle-end/47401
17325 * except.c (sjlj_assign_call_site_values): Move setting the
17326 crtl->uses_eh_lsda flag to ...
17327 (sjlj_mark_call_sites): ... here.
17328 (sjlj_emit_function_enter): Support NULL dispatch label.
17329 (sjlj_build_landing_pads): In a function with no landing pads
17330 that still has must-not-throw regions, generate code to register
17331 a personality function with empty LSDA.
17333 2011-01-21 Richard Henderson <rth@redhat.com>
17335 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17337 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17339 * compare-elim.c: New file.
17340 * Makefile.in (OBJS-common): Add it.
17341 (compare-elim.o): New.
17342 * common.opt (fcompare-elim): New.
17343 * opts.c (default_options_table): Add OPT_fcompare_elim.
17344 * tree-pass.h (pass_compare_elim_after_reload): New.
17345 * passes.c (init_optimization_passes): Add it.
17346 * recog.h: Protect against re-inclusion.
17347 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17348 * doc/invoke.texi (-fcompare-elim): Document it.
17349 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17350 * doc/tm.texi: Rebuild.
17352 2011-01-22 Nick Clifton <nickc@redhat.com>
17354 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17355 rx_split_fp_compare.
17357 2011-01-22 Nick Clifton <nickc@redhat.com>
17359 * config/rx/rx.md (UNSPEC_CONST): New.
17360 (deallocate_and_return): Wrap the amount popped off the stack in
17361 an UNSPEC_CONST in order to stop it being rejected by
17362 -mmax-constant-size.
17363 (pop_and_return): Add a "(return)" rtx.
17364 (call): Drop the immediate operand.
17365 (call_internal): Likewise.
17366 (call_value): Likewise.
17367 (call_value_internal): Likewise.
17368 (sibcall_internal): Likewise.
17369 (sibcall_value_internal): Likewise.
17370 (sibcall): Likewise. Generate an explicit call using
17372 (sibcall_value): Likewise.
17373 (mov<>): FAIL if a constant operand is not legitimate.
17374 (addsi3_unpsec): New pattern.
17376 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17377 (ok_for_max_constant): New function.
17378 (gen_safe_add): New function.
17379 (rx_expand_prologue): Use gen_safe_add.
17380 (rx_expand_epilogue): Likewise.
17381 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17384 2011-01-21 Jeff Law <law@redhat.com>
17386 PR tree-optimization/47053
17387 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17388 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17389 statements are deleted.
17390 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17391 is nonempty, then purge dead edges and cleanup the CFG.
17393 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17396 Temporarily revert:
17397 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17399 * tree-dfa.c (create_var_ann): Mark variable as used.
17401 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17403 PR middle-end/45566
17404 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17405 notes from other section in hot/cold partitioning even if
17406 last_action is -3. Increment call_site_base.
17408 PR rtl-optimization/47366
17409 * fwprop.c (forward_propagate_into): Return bool. If
17410 any changes are made, -fnon-call-exceptions is used and
17411 REG_EH_REGION note is present, call purge_dead_edges
17412 and return true if it purged anything.
17413 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17414 any EH edges were purged.
17416 2011-01-21 Jeff Law <law@redhat.com>
17418 PR rtl-optimization/41619
17419 * caller-save.c (setup_save_areas): Break out code to determine
17420 which hard regs are live across calls by examining the reload chains
17421 so that it is always used.
17422 Eliminate code which checked REG_N_CALLS_CROSSED.
17424 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17426 PR tree-optimization/47355
17427 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17428 NOP has non-debug uses beyond PHIs in new_bb.
17430 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17433 * cfgexpand.c (account_used_vars_for_block): Only account vars
17434 that are annotated as used.
17435 (estimated_stack_frame_size): Don't set TREE_USED.
17436 * tree-dfa.c (create_var_ann): Mark variable as used.
17438 2011-01-21 Richard Guenther <rguenther@suse.de>
17440 PR middle-end/47395
17441 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17443 2011-01-21 Richard Guenther <rguenther@suse.de>
17445 PR tree-optimization/47365
17446 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17447 (vn_reference_lookup_pieces): Adjust.
17448 (vn_reference_lookup): Likewise.
17449 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17450 (vn_reference_lookup_3): Only look through kills if in
17451 VN_WALKREWRITE mode.
17452 (vn_reference_lookup_pieces): Adjust.
17453 (vn_reference_lookup): Likewise.
17454 (visit_reference_op_load): Likewise.
17455 (visit_reference_op_store): Likewise.
17456 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17457 (compute_avail): Likewise.
17458 (eliminate): Likewise.
17460 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17462 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17463 DECL_IGNORED_P non-reg vars if they are used.
17465 PR tree-optimization/47391
17466 * varpool.c (const_value_known_p): Return false if
17469 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
17472 * config/i386/i386.c (ix86_local_alignment): Handle
17473 case for va_list_type_node is nil.
17474 (ix86_canonical_va_list_type): Likewise.
17476 2011-01-21 Alan Modra <amodra@gmail.com>
17478 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17479 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17481 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17483 * config/arm/arm.md (define_attr type): Rename f_load
17484 and f_store to f_fpa_load and f_fpa_store. Update.
17485 (write_conflict): Deal with rename fallout.
17486 (*push_fp_multi): Likewise.
17487 * config/arm/fpa.md (f_load): Use f_fpa_load.
17488 (f_store): Use f_fpa_store.
17489 (*movsf_fpa): Likewise.
17490 (*movdf_fpa): Likewise.
17491 (*movxf_fpa): Likewise.
17492 (*thumb2_movsf_fpa): Likewise.
17493 (*thumb2_movdf_fpa): Likewise.
17494 (*thumb2_movxf_fpa): Likewise.
17495 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17496 f_loadd and f_stored.
17497 (*thumb2_movdi_vfp): Likewise.
17498 (*thumb2_movsf_vfp): Fix attribute to f_loads.
17499 (*thumb2_movsi_vfp): Likewise.
17500 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17501 Use f_loads instead of f_load.
17502 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17504 2011-01-20 Anatoly Sokolov <aesok@post.ru>
17506 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17507 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17508 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17509 (xtensa_mode_dependent_address_p): New function.
17510 (constantpool_address_p): Make static. Change return type to bool.
17511 Change argument type to const_rtx. Use CONST_INT_P predicate.
17513 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
17516 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17518 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17521 * cfgexpand.c (expand_debug_expr): Instead of generating
17522 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17525 2011-01-20 Richard Guenther <rguenther@suse.de>
17527 PR middle-end/47370
17528 * tree-inline.c (remap_gimple_op_r): Recurse manually for
17529 the pointer operand of MEM_REFs.
17531 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17533 PR tree-optimization/46130
17534 * ipa-split.c (consider_split): If return_bb contains non-virtual
17535 PHIs other than for retval or if split_function would not adjust it,
17538 2011-01-20 Richard Guenther <rguenther@suse.de>
17540 PR tree-optimization/47167
17541 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17542 Revert previous change, only avoid enumeral type changes.
17544 2011-01-19 Mike Stump <mikestump@comcast.net>
17546 * doc/tm.texi.in (BRANCH_COST): Englishify.
17547 * doc/tm.texi (BRANCH_COST): Likewise.
17549 2011-01-19 Dodji Seketeli <dodji@redhat.com>
17552 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
17553 (gen_scheduled_generic_parms_dies): New functions.
17554 (gen_struct_or_union_type_die): Schedule template parameters DIEs
17555 generation for the end of CU compilation.
17556 (dwarf2out_finish): Generate template parameters DIEs here.
17558 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17561 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
17562 debug bind stmt on merge edges.
17564 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17568 * function.c (instantiate_expr): Instantiate incoming rtl of
17569 implicit arguments, and recurse on VALUE_EXPRs.
17570 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
17571 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
17573 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17575 * c-parser.c (c_parser_for_statement): Initialize
17576 collection_expression.
17578 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17580 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
17582 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17584 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
17585 (LINK_SHLIB_SPEC): Don't use %(link_path).
17586 (SUBTARGET_EXTRA_SPECS): Remove link_path.
17588 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17590 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
17591 (NO_SHARED_LIB_SUPPORT): Remove.
17592 (LINK_SHLIB_SPEC): Remove one conditional definition.
17594 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17596 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
17598 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
17599 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
17600 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
17601 %{call_shared} and conditionals on these options not being passed.
17602 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17605 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17607 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17610 * ipa-split.c: Spelling fixes.
17612 2011-01-19 Richard Henderson <rth@redhat.com>
17614 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17615 (*mulsi3): Likewise.
17617 * longlong.h [__mn10300__] (count_leading_zeros): New.
17618 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17619 [__mn10300__] (add_ssaaaa, subddmmss): New.
17620 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17621 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17623 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17625 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17627 2011-01-19 Richard Henderson <rth@redhat.com>
17629 * config/mn10300/mn10300.md (addsi3_flags): New.
17630 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17631 (subsi3_flags, subc_internal, subdi3): New.
17632 (subdi3_internal, *subdi3_degenerate): New.
17633 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17635 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17636 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17637 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17638 * config/mn10300/mn10300-protos.h: Update.
17639 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17640 (return_ret): Likewise. Rename from return_internal_regs.
17641 (return_internal): Remove.
17643 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17644 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17645 (mn10300_legitimate_constant_p): Likewise.
17646 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17647 (mn10300_frame_size): New.
17648 (mn10300_expand_prologue): Use it.
17649 (mn10300_expand_epilogue): Likewise.
17650 (mn10300_initial_offset): Likewise.
17651 * config/mn10300/mn10300-protos.h: Update.
17652 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17653 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17654 (prologue, epilogue, return_internal): Tidy output code.
17655 (mn10300_store_multiple_operation, return): Likewise.
17656 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17657 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17658 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17659 (load_pic, am33_load_pic): New.
17660 (mn10300_load_pic0, mn10300_load_pic1): New.
17662 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17663 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17664 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17665 (cc_flags_for_mode, cc_flags_for_code): New.
17666 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17667 overflow flag is not valid. Validate that the flags we need
17668 for the comparison are valid.
17669 (mn10300_output_cmp): Remove.
17670 (mn10300_output_add): New.
17671 (mn10300_select_cc_mode): Use cc_flags_for_code.
17672 (mn10300_split_cbranch): New.
17673 (mn10300_match_ccmode): New.
17674 (mn10300_split_and_operand_count): New.
17675 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17677 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17678 (addsi3): ... here. Use mn10300_output_add.
17679 (*addsi3_flags): New.
17680 (*am33_subsi3, *mn10300_subsi3): Merge...
17681 (subsi3): ... here. Use attribute isa.
17682 (*subsi3_flags): New.
17683 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17685 (*am33_andsi3, *mn10300_andsi3): Merge...
17686 (andsi3): ... here.
17687 (*andsi3_flags): New.
17688 (andsi3 splitters): New.
17689 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17690 (iorsi3): ... here.
17691 (*iorsi3_flags): New.
17692 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17693 (xorsi3): ... here.
17694 (*xorsi3_flags): New.
17695 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17696 (one_cmplsi2): ... here.
17697 (*one_cmplsi2_flags): New.
17698 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17699 instead of "dax" in constraints. Use mn10300_split_cbranch.
17700 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17701 use matching constraints to eliminate a self-comparison.
17702 (*integer_conditional_branch): Rename from integer_conditional_branch.
17703 Use int_mode_flags to match CC_REG.
17704 (*cbranchsi4_btst, *btstsi): New.
17705 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17706 mn10300_split_cbranch.
17707 (*am33_cmpsf): Rename from am33_cmpsf.
17708 (*float_conditional_branch): Rename from float_conditional_branch.
17709 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17710 (zero_extendqisi2): ... here.
17711 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17712 (zero_extendhisi2): ... here.
17713 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17714 (extendqisi2): ... here.
17715 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17716 (extendhisi2): ... here.
17717 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17718 (ashlsi3): ... here.
17719 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17720 (lshrsi3): ... here.
17721 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17722 (ashrsi3): ... here.
17723 (consecutive add peephole): Remove.
17724 * config/mn10300/predicates.md (label_ref_operand): New.
17725 (int_mode_flags): New.
17726 (CCZN_comparison_operator): New.
17728 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17729 (throughput_42_latency_43): New reservation.
17730 (mulsidi3, umulsidi3): New expanders.
17731 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17732 the MDR register to allocation; separately allocate the low and
17733 high parts of the DImode result.
17734 (umulsidi3_internal): Similarly.
17735 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17736 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17737 (udivsi3, umodsi3): Remove.
17738 (udivmodsi4, divmodsi4): New expanders.
17739 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17740 (*divmodsi4): Simiarly.
17741 (ext_internal): New.
17743 * config/mn10300/constraints.md ("z"): New constraint.
17744 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17745 (FIXED_REGISTERS): Don't fix MDR.
17746 (CALL_USED_REGSITERS): Reformat nicely.
17747 (REG_ALLOC_ORDER): Add MDR.
17748 (enum regclass): Add MDR_REGS.
17749 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17750 (IRA_COVER_CLASSES): Add MDR_REGS.
17751 (REGNO_REG_CLASS): Handle MDR_REG.
17752 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17753 (mn10300_register_move_cost): Likewise.
17754 * config/mn10300/mn10300.md (MDR_REG): New.
17755 (*movsi_internal): Handle moves to/from MDR_REGS.
17757 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17759 (mn10300_secondary_reload): Tidy combination reload classes.
17760 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17761 addresses for AM33. Allow symbolic offsets for reg+imm.
17762 (mn10300_regno_in_class_p): New.
17763 (mn10300_legitimize_reload_address): New.
17764 * config/mn10300/mn10300.h (enum reg_class): Remove
17765 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17766 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17767 SP_OR_GENERAL_REGS.
17768 (REG_CLASS_NAMES): Update to match.
17769 (REG_CLASS_CONTENTS): Likewise.
17770 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17771 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17772 (REGNO_IN_RANGE_P): Remove.
17773 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17774 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17775 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17776 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17777 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17778 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17779 (REGNO_GENERAL_P): New.
17780 (HAVE_POST_MODIFY_DISP): New.
17781 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17782 (LEGITIMIZE_RELOAD_ADDRESS): New.
17783 * config/mn10300/mn10300-protos.h: Update.
17785 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17786 DATA_REGS for AM33 stack-pointer destination.
17787 (mn10300_preferred_output_reload_class): Likewise.
17788 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17789 into a form appropriate for ...
17790 (TARGET_SECONDARY_RELOAD): New.
17791 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17792 * config/mn10300/mn10300-protos.h: Update.
17793 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17794 reload_insi; use the "A" constraint for the scratch; handle AM33
17795 moves of sp to non-address registers.
17797 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17798 (*movqi_internal): ... here.
17799 (*am33_movhi, *mn10300_movhi): Merge into...
17800 (*movhi_internal): ... here.
17801 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17802 as the source/destination of moves from/to SP.
17803 (movsf): Only allow for AM33-2.
17804 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17805 any integer constant constraint. Only allow for AM33-2. Tidy
17806 all of the alternative outputs.
17807 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17808 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17810 (udivsi3, umodsi3): New patterns for MN103 only.
17812 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17814 * doc/tm.texi.in: Spell out that a lack of register class unions
17816 * doc/tm.texi: Regenerate.
17818 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17820 PR rtl-optimization/47337
17821 * dce.c (check_argument_store): New function.
17822 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17824 PR tree-optimization/47290
17825 * tree-eh.c (infinite_empty_loop_p): New function.
17826 (cleanup_empty_eh): Use it.
17828 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17831 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17832 (a64_expand_widen_sum): Ditto.
17833 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17834 (vec_extract_evenodd_help): Ditto.
17835 (vec_extract_evenv4hi): Ditto.
17836 (vec_extract_oddv4hi): Ditto.
17837 (vec_extract_evenv2si): Ditto.
17838 (vec_extract_oddv2si): Ditto.
17839 (vec_extract_evenv2sf): Ditto.
17840 (vec_extract_oddv2sf): Ditto.
17841 (vec_pack_trunc_v4hi: Ditto.
17842 (vec_pack_trunc_v2si): Ditto.
17843 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17844 (vec_interleave_highv8qi): Ditto.
17846 (vec_extract_oddv8qi): Ditto.
17847 (vec_interleave_lowv4hi): Ditto.
17848 (vec_interleave_highv4hi): Ditto.
17849 (vec_interleave_lowv2si): Ditto.
17850 (vec_interleave_highv2si): Ditto.
17852 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17854 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17855 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17856 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17857 (pa_c_mode_for_suffix): New.
17858 (TARGET_EXPAND_BUILTIN): Define.
17859 (TARGET_C_MODE_FOR_SUFFIX): Define.
17860 (pa_builtins): Define.
17861 (pa_init_builtins): Register __float128 type and init new support
17863 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17864 * config/pa/quadlib.c (_U_Qfcopysign): New.
17866 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17868 PR middle-end/46894
17869 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17870 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17873 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17875 PR tree-optimization/47179
17876 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17877 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17879 2011-01-18 Richard Guenther <rguenther@suse.de>
17881 PR rtl-optimization/47216
17882 * emit-rtl.c: Include tree-flow.h.
17883 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17884 of replicating it with different semantics.
17885 * Makefile.in (emit-rtl.o): Adjust.
17887 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17889 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17890 (cortex_a9_dp): Handle neon types correctly.
17892 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17894 PR rtl-optimization/47299
17895 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17896 subtarget. Use normal multiplication if both operands are constants.
17897 * expmed.c (expand_widening_mult): Don't try to optimize constant
17898 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17901 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17903 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17904 spacing after 'e.g.', typos, comma, hyphenation.
17906 2011-01-17 Richard Henderson <rth@redhat.com>
17908 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17909 (rx_restricted_mem_operand): New.
17910 (rx_shift_operand): Use register_operand.
17911 (rx_source_operand, rx_compare_operand): Likewise.
17912 * config/rx/rx.md (addsi3_flags): New expander.
17913 (adddi3): Rewrite as expander.
17914 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17915 (subsi3_flags): New expander.
17916 (subdi3): Rewrite as expander.
17917 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17919 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17920 (rx_init_builtins): Remove sat builtin.
17921 (rx_expand_builtin): Likewise.
17922 * config/rx/rx.md (ssaddsi3): New.
17923 (*sat): Rename from sat. Represent the CC_REG input.
17925 * config/rx/predicates.md (rshift_operator): New.
17926 * config/rx/rx.c (rx_expand_insv): Remove.
17927 * config/rx/rx-protos.h: Update.
17928 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17929 operand to the canonical position.
17930 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17931 (*bitclr, *bitclr_in_memory): Similarly.
17932 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17933 (insv): Retain the zero_extract in the expansion.
17935 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17936 (bswaphi2, bitinvert, revw): Likewise.
17938 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17939 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17940 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17941 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17942 (bitset, bitset_in_memory): Likewise.
17943 (bitinvert, bitinvert_in_memory): Likewise.
17944 (bitclr, bitclr_in_memory): Likewise.
17945 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17946 (rx_strend, rx_cmpstrn): Likewise.
17947 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17948 (bitop peep2 patterns): Remove.
17950 * config/rx/rx.c (rx_match_ccmode): New.
17951 * config/rx/rx-protos.h: Update.
17952 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17953 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17954 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17955 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17956 (fix_truncsfsi2, floatsisf2): Likewise.
17957 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17958 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17959 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17960 (*subsi3_flags, *xorsi3_flags): New.
17962 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17964 * config/rx/rx.c (rx_print_operand): Remove workaround for
17965 unsplit comparison operations.
17967 * config/rx/rx.md (movsicc): Split after reload.
17968 (*movsicc): Merge *movsieq and *movsine via match_operator.
17969 (*stcc): New pattern.
17971 * config/rx/rx.c (rx_float_compare_mode): Remove.
17972 * config/rx/rx.h (rx_float_compare_mode): Remove.
17973 * config/rx/rx.md (cstoresi4): Split after reload.
17974 (*sccc): New pattern.
17976 * config/rx/predicates.md (label_ref_operand): New.
17977 (rx_z_comparison_operator): New.
17978 (rx_zs_comparison_operator): New.
17979 (rx_fp_comparison_operator): New.
17980 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17981 Validate that the flags are set properly for the comparison.
17982 (rx_gen_cond_branch_template): Remove.
17983 (rx_cc_modes_compatible): Remove.
17984 (mode_from_flags): New.
17985 (flags_from_code): Rename from flags_needed_for_conditional.
17986 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17987 (rx_select_cc_mode): Likewise.
17988 (rx_split_fp_compare): New.
17989 (rx_split_cbranch): New.
17990 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17991 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17992 (*cbranchsf4): Similarly.
17993 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17994 match_operator and rx_split_cbranch.
17995 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17996 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17997 (*cmpsi): Rename from cmpsi.
17998 (*tstsi): Rename from tstsi.
17999 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18000 (*conditional_branch): Rename from conditional_branch.
18001 (*reveresed_conditional_branch): Remove.
18002 (b<code>): Remove expander.
18003 * config/rx/rx-protos.h: Update.
18005 * config/rx/rx.c (rx_compare_redundant): Remove.
18006 * config/rx/rx.md (cmpsi): Don't use it.
18007 * config/rx/rx-protos.h: Update.
18009 * config/rx/rx-modes.def (CC_F): New mode.
18010 * config/rx/rx.c (rx_select_cc_mode): New.
18011 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18012 * config/rx/rx-protos.h: Update.
18014 2011-01-17 Richard Henderson <rth@redhat.com>
18016 * except.c (dump_eh_tree): Fix stray ; after for statement.
18018 2011-01-17 Richard Guenther <rguenther@suse.de>
18020 PR tree-optimization/47313
18021 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18022 handling before copying the body. Properly deal with
18023 by-reference result in SSA form.
18025 2011-01-17 Ian Lance Taylor <iant@google.com>
18028 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18029 (struct_value_alias_set): Don't define.
18030 (sparc_option_override): Don't set sparc_sr_alias_set and
18031 struct_value_alias_set.
18032 (save_or_restore_regs): Use gen_frame_mem rather than calling
18034 (sparc_struct_value_rtx): Likewise.
18036 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
18039 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18040 (_mm_maskstore_pd): Likewise.
18041 (_mm_maskload_ps): Likewise.
18042 (_mm_maskstore_ps): Likewise.
18043 (_mm256_maskload_pd): Change mask to __m256i.
18044 (_mm256_maskstore_pd): Likewise.
18045 (_mm256_maskload_ps): Likewise.
18046 (_mm256_maskstore_ps): Likewise.
18048 * config/i386/i386-builtin-types.def: Updated.
18049 (ix86_expand_special_args_builtin): Likewise.
18051 * config/i386/i386.c (bdesc_special_args): Update
18052 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18053 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18054 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18055 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18057 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18058 Use <avxpermvecmode> on mask register.
18059 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18061 2011-01-17 Olivier Hainque <hainque@adacore.com>
18062 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18063 Eric Botcazou <ebotcazou@adacore.com>
18066 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18067 if <= USHRT_MAX in 32-bit mode.
18069 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18071 * doc/install.texi (Configuration, Specific): Wrap long
18072 lines in examples. Allow line wrapping in long options
18073 and URLs where beneficial for PDF output.
18075 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18077 * config/mips/mips.c (mips_classify_symbol): Don't return
18078 SYMBOL_PC_RELATIVE for nonlocal labels.
18080 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
18082 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18084 2011-01-15 Jan Hubicka <jh@suse.cz>
18086 PR tree-optimization/47276
18087 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18088 declarations as needed.
18090 2011-01-15 Martin Jambor <mjambor@suse.cz>
18092 * common.opt (fdevirtualize): New flag.
18093 * doc/invoke.texi (Option Summary): Document it.
18094 * opts.c (default_options_table): Add devirtualize flag.
18095 * ipa-prop.c (detect_type_change): Return immediately if
18096 devirtualize flag is not set.
18097 (detect_type_change_ssa): Likewise.
18098 (compute_known_type_jump_func): Likewise.
18099 (ipa_analyze_virtual_call_uses): Likewise.
18101 2011-01-14 Martin Jambor <mjambor@suse.cz>
18103 PR tree-optimization/45934
18104 PR tree-optimization/46302
18105 * ipa-prop.c (type_change_info): New type.
18106 (stmt_may_be_vtbl_ptr_store): New function.
18107 (check_stmt_for_type_change): Likewise.
18108 (detect_type_change): Likewise.
18109 (detect_type_change_ssa): Likewise.
18110 (compute_complex_assign_jump_func): Check for dynamic type change.
18111 (compute_complex_ancestor_jump_func): Likewise.
18112 (compute_known_type_jump_func): Likewise.
18113 (compute_scalar_jump_functions): Likewise.
18114 (ipa_analyze_virtual_call_uses): Likewise.
18115 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18117 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18119 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18120 * config/i386/i386.opt (msse5): New Alias.
18122 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18124 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18125 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18126 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18127 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18129 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18131 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18133 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18134 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18135 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18136 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18138 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18140 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18142 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18144 2011-01-14 Mike Stump <mikestump@comcast.net>
18146 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18147 * config/fr30/fr30.md: Likweise
18148 (movsi_push): Likewise.
18149 (movsi_pop): Likewise.
18150 (enter_func): Likewise.
18151 * config/moxie/moxie.md (movsi_push): Likewise.
18152 (movsi_pop): Likewise.
18154 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18156 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18157 %{no_archive} %{exact_version}.
18158 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18159 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18160 %{no_archive} %{exact_version}.
18161 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18162 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18163 * config/mips/vxworks.h: Likewise.
18165 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18167 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18169 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18171 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18172 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18174 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18176 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18179 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18181 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18183 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18184 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18186 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18187 Don't handle -shlib.
18189 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18191 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18192 (CC1_SPEC): Don't handle -profile.
18194 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18196 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18197 * config/mips/mips.h (CC1_SPEC): Likewise.
18199 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18201 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18202 * config/mips/mips.h (CC1_SPEC): Likewise.
18204 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18206 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18207 * config/m32r/linux.h (LINK_SPEC): Likewise.
18208 * config/mips/linux.h (LINK_SPEC): Likewise.
18209 * config/mips/linux64.h (LINK_SPEC): Likewise.
18210 * config/sparc/linux.h (LINK_SPEC): Likewise.
18211 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18212 LINK_SPEC): Likewise.
18213 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18215 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18217 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18219 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18221 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18223 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18224 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18226 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18228 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18230 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18232 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18233 supports -Bstatic/-Bdynamic.
18234 * configure: Regenerate.
18236 2011-01-14 Jan Hubicka <jh@suse.cz>
18237 Jack Howarth <howarth@bromo.med.uc.edu>
18240 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18241 when checking debug_info_level. Test write_symbols instead of
18242 debug_hooks->var_location when setting flag_var_tracking_uninit.
18244 2011-01-14 Richard Guenther <rguenther@suse.de>
18246 PR tree-optimization/47179
18247 * target.def (ref_may_alias_errno): New target hook.
18248 * targhooks.h (default_ref_may_alias_errno): Declare.
18249 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18250 (default_ref_may_alias_errno): New function.
18251 * target.h (struct ao_ref_s): Declare.
18252 * tree-ssa-alias.c: Include target.h.
18253 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18254 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18255 (targhooks.o): Likewise.
18256 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18257 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18259 2011-01-14 Richard Guenther <rguenther@suse.de>
18261 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18263 2011-01-14 Richard Guenther <rguenther@suse.de>
18265 PR tree-optimization/47280
18266 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18267 return CFG changes.
18268 (tree_ssa_forward_propagate_single_use_vars): Deal with
18269 CFG changes from associate_plusminus.
18271 2011-01-14 Richard Guenther <rguenther@suse.de>
18273 PR middle-end/47281
18275 2011-01-11 Richard Guenther <rguenther@suse.de>
18277 PR tree-optimization/46076
18278 * tree-ssa.c (useless_type_conversion_p): Conversions from
18279 unprototyped to empty argument list function types are useless.
18281 2011-01-14 Richard Guenther <rguenther@suse.de>
18283 PR tree-optimization/47286
18284 * tree-ssa-structalias.c (new_var_info): Register variables are global.
18286 2011-01-14 Martin Jambor <mjambor@suse.cz>
18288 PR middle-end/46823
18289 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18291 2011-01-13 Anatoly Sokolov <aesok@post.ru>
18293 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18294 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18295 * config/xtensa/xtensa.c (xtensa_libcall_value,
18296 xtensa_function_value_regno_p): New functions.
18297 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18299 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
18302 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18304 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18305 New function prototype.
18306 * config/i386/winnt.c (i386_pe_assemble_visibility):
18307 Warn only if attribute was specified by user.
18309 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18312 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18314 (floatunsdidf2_fcfidu): Ditto.
18316 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18318 * config/s390/s390.c (print_operand_address): Replace 'error' with
18319 'output_operand_lossage'.
18320 (print_operand): Likewise.
18322 2011-01-13 Jeff Law <law@redhat.com>
18324 PR rtl-optimization/39077
18325 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18326 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18327 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18328 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18329 * gcse.c (prune_insertions_deletions): New function.
18330 (compute_pre_data): Use it.
18332 2011-01-13 Dodji Seketeli <dodji@redhat.com>
18335 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18337 (prune_unused_types_mark): Use it.
18339 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
18341 PR rtl-optimization/45352
18342 * sel-sched.c: Update copyright years.
18343 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18344 in the advancing loop when we have issued issue_rate insns.
18346 2011-01-12 Richard Henderson <rth@redhat.com>
18348 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18349 (TARGET_MD_ASM_CLOBBERS): New.
18351 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18352 (TARGET_DELEGITIMIZE_ADDRESS): New.
18354 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18355 (clzsi2, *bsch): New patterns.
18357 * config/mn10300/mn10300.md (INT): New mode iterator.
18358 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18360 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18361 flag_split_wide_types.
18363 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18364 (mn10300_trampoline_init): Rewrite without a template, an immediate
18365 load and a direct branch.
18366 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18368 2011-01-12 Anatoly Sokolov <aesok@post.ru>
18370 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18371 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18372 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18373 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18375 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
18378 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18381 2011-01-12 Jan Hubicka <jh@suse.cz>
18384 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18385 (PLUGIN_COND_CLOSE): New macro.
18386 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18388 2011-01-12 Richard Guenther <rguenther@suse.de>
18391 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18392 register variables in a MEM_REF.
18394 2011-01-12 Joseph Myers <joseph@codesourcery.com>
18396 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18397 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18398 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18399 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18400 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18401 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18402 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18403 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18404 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18405 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18406 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18407 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18408 * config/gnu-user.h: New. Copied from linux.h.
18409 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18410 GNU_USER_TARGET_STARTFILE_SPEC.
18411 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18412 GNU_USER_TARGET_ENDFILE_SPEC.
18413 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18414 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18415 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18416 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18417 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18418 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18419 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18420 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18421 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18422 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18423 * config/arm/linux-eabi.h (CC1_SPEC): Use
18424 GNU_USER_TARGET_CC1_SPEC.
18425 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18426 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18427 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18428 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18429 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18430 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18431 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18432 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18434 2011-01-12 Richard Guenther <rguenther@suse.de>
18437 * doc/invoke.texi (ffast-math): Document it is turned on
18440 2011-01-12 Jan Hubicka <jh@suse.cz>
18442 PR tree-optimization/47233
18443 * opts.c (common_handle_option): Disable ipa-reference with profile
18446 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18448 * c-parser.c (c_parser_objc_at_property_declaration): Improved
18451 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18453 * c-parser.c (c_lex_one_token): Updated and reindented some
18454 comments. No changes in code.
18456 2011-01-11 Ian Lance Taylor <iant@google.com>
18458 * godump.c (go_output_var): Don't output the variable if there is
18459 already a type with the same name.
18461 2011-01-11 Ian Lance Taylor <iant@google.com>
18463 * godump.c (go_format_type): Don't generate float80.
18465 2011-01-11 Richard Henderson <rth@redhat.com>
18467 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18468 declaration. Rewrite for both speed and size.
18469 (mn10300_address_cost_1): Remove.
18470 (mn10300_register_move_cost): New.
18471 (mn10300_memory_move_cost): New.
18472 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18473 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18474 extensions, shifts, BSWAP, CLZ.
18475 (mn10300_wide_const_load_uses_clr): Remove.
18476 (TARGET_REGISTER_MOVE_COST): New.
18477 (TARGET_MEMORY_MOVE_COST): New.
18478 * config/mn10300/mn10300-protos.h: Update.
18479 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18481 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18482 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18483 * config/mn10300/mn10300-protos.h: Update.
18484 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18485 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18486 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18487 (*test_int_bitfield, *test_byte_bitfield): Remove.
18488 (*bit_test, *subreg_bit_test): Remove.
18489 * config/mn10300/predicates.md (const_8bit_operand): Remove.
18491 * config/mn10300/constraints.md ("c"): Rename from "A".
18492 ("A", "D"): New constraint letters.
18493 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18494 (fmssf4, fnmasf4, fnmssf4): Likewise.
18496 * config/mn10300/mn10300.md (isa): New attribute.
18497 (enabled): New attribute.
18499 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18500 (abssf2, negsf2): Define only for hardware fp.
18501 (sqrtsf2): Reformat.
18502 (addsf3, subsf3, mulsf3): Merge expander and insn.
18504 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18505 (DEBUGGER_AUTO_OFFSET): Remove.
18506 (DEBUGGER_ARG_OFFSET): Remove.
18508 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18509 Emit register stores with the same offsets as the hardware.
18510 (mn10300_store_multiple_operation): Don't check that the register
18511 save offsets are monotonic.
18512 * config/mn10300/mn10300-protos.h: Update.
18514 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18516 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18517 in terms of the value on the stack, not the MDR register.
18519 2011-01-11 Jan Hubicka <jh@suse.cz>
18523 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18524 (symbol_alias_set_destroy, symbol_alias_set_contains,
18525 propagate_aliases_backward): Declare.
18526 * lto-streamer-out.c (struct sets): New sturcture.
18527 (trivally_defined_alias): New function.
18528 (output_alias_pair_p): Rewrite.
18529 (output_unreferenced_globals): Fix output of alias pairs.
18530 (produce_symtab): Likewise.
18531 * ipa.c (function_and_variable_visibility): Set weak alias destination
18533 * varasm.c (symbol_alias_set_t): Remove.
18534 (symbol_alias_set_destroy): Export.
18535 (propagate_aliases_forward, propagate_aliases_backward): New functions
18537 (compute_visible_aliases): ... this one; remove.
18538 (trivially_visible_alias): New
18539 (trivially_defined_alias): New.
18540 (remove_unreachable_alias_pairs): Rewrite.
18541 (finish_aliases_1): Reorganize code checking if alias is defined.
18542 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18545 2011-01-11 Richard Guenther <rguenther@suse.de>
18547 PR tree-optimization/46076
18548 * tree-ssa.c (useless_type_conversion_p): Conversions from
18549 unprototyped to empty argument list function types are useless.
18551 2011-01-11 Richard Guenther <rguenther@suse.de>
18553 PR middle-end/45235
18554 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
18555 volatile MEMs as MEM_READONLY_P.
18557 2011-01-11 Richard Guenther <rguenther@suse.de>
18559 PR tree-optimization/47239
18560 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
18562 2011-01-11 Jeff Law <law@redhat.com>
18564 PR tree-optimization/47086
18565 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
18566 IVs from statements that might throw.
18568 2011-01-10 Jan Hubicka <jh@suse.cz>
18571 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
18573 2011-01-10 Jan Hubicka <jh@suse.cz>
18576 * profile.c (read_profile_edge_counts): Ignore profile inconistency
18577 when correcting profile.
18579 2011-01-10 Jan Hubicka <jh@suse.cz>
18582 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
18583 DECL_FINI_PRIORITY.
18584 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
18585 Restore DECL_FINI_PRIORITY.
18587 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18589 * doc/gimple.texi: Fix quoting of multi-word return values in
18590 @deftypefn statements. Ensure presence of return value. Wrap
18591 overlong @deftypefn lines.
18592 (is_gimple_operand, is_gimple_min_invariant_address): Remove
18593 descriptions of removed functions.
18594 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
18595 of multi-word return value in @deftypefn statement.
18597 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18599 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
18600 (Conditional Expressions, Logical Operators)
18601 (Statement and operand traversals): Do not indent smallexample
18602 code. Fix duplicate function argument in example.
18604 2011-01-10 Jeff Law <law@redhat.com>
18606 PR tree-optimization/47141
18607 * ipa-split.c (split_function): Handle case where we are
18608 returning a value and the return block has a virtual operand phi.
18610 2011-01-10 Jan Hubicka <jh@suse.cz>
18612 PR tree-optimization/47234
18613 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18614 (pass_feedback_split_functions): Declare.
18615 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18617 * ipa-split.c (gate_split_functions): Update comments; disable
18618 split-functions for profile_arc_flag and branch_probabilities.
18619 (gate_feedback_split_functions): New function.
18620 (execute_feedback_split_functions): New function.
18621 (pass_feedback_split_functions): New global var.
18623 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18626 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18627 calling gimple_call_set_cannot_inline.
18629 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18631 * config/darwin-sections.def: Remove unused section.
18633 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18636 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18638 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18641 * c-parser.c (c_parser_declaration_or_fndef): Improved
18644 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
18646 * config/i386/winnt.c (i386_pe_start_function): Make sure
18647 to switch back to function's section.
18649 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18653 * plugin.c: Move include of dlfcn.h from here...
18654 * system.h: ... to here.
18656 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18658 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18660 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18661 two extra empty pages in PDF output.
18663 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18666 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18667 for error recovery purposes behave as if it was not specified so
18668 that the default type is usd.
18670 2011-01-07 Jan Hubicka <jh@suse.cz>
18672 PR tree-optmization/46469
18673 * ipa.c (function_and_variable_visibility): Clear needed flags on
18674 nodes with external decls; handle weakrefs merging correctly.
18676 2011-01-07 Joseph Myers <joseph@codesourcery.com>
18678 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18681 2011-01-07 Jan Hubicka <jh@suse.cz>
18683 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18684 and no longer claim that gold is required for linker plugin.
18685 * configure: Regenerate.
18686 * gcc.c (PLUGIN_COND): New macro.
18687 (LINK_COMMAND_SPEC): Use it.
18688 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18689 * config.in (HAVE_LTO_PLUGIN): New.
18690 * configure.ac (--with-lto-plugin): New parameter; autodetect
18693 2011-01-07 Jan Hubicka <jh@suse.cz>
18695 PR tree-optimization/46367
18696 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18697 when we can update original.
18698 (cgraph_mark_inline_edge): Sanity check.
18699 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18701 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18703 * config/spu/spu.h (ASM_COMMENT_START): Define.
18705 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18708 * gcc.c (%>S): New.
18709 (SWITCH_KEEP_FOR_GCC): Likewise.
18710 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18711 (do_spec_1): Handle "%>".
18713 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18715 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18718 * config/i386/i386.c (ix86_delegitimize_address): If
18719 simplify_gen_subreg fails, return orig_x.
18722 * value-prof.c (gimple_stringop_fixed_value): Handle
18723 lhs of the call properly.
18725 2011-01-07 Jan Hubicka <jh@suse.cz>
18728 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18730 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18732 * target.def (function_switched_text_sections): New hook.
18733 * doc/tm.texi: Regenerated.
18734 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18735 * final.c (default_function_switched_text_sections): New.
18736 (final_scan_insn): Call function_switched_text_sections when a
18737 mid-function section change occurs.
18738 * output.h (default_function_switched_text_sections): Declare.
18739 * config/darwin-protos.h (darwin_function_switched_text_sections):
18741 * config/darwin.c (darwin_function_switched_text_sections): New.
18742 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18744 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18746 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18747 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18748 the secondary code fragment when outputting for DWARF == 2.
18750 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18752 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18753 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18755 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18756 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18758 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18761 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18762 when it is not empty.
18764 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18767 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18768 (case ${target}): Add btver1.
18769 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18770 -march=native recognize btver1 processors.
18771 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18772 btver1 def_and_undef
18773 * config/i386/i386.c (struct processor_costs btver1_cost): New
18775 (m_BTVER1): New definition.
18776 (m_AMD_MULTIPLE): Includes m_BTVER1.
18777 (initial_ix86_tune_features): Add btver1 tune.
18778 (processor_target_table): Add btver1 entry.
18779 (static const char *const cpu_names): Add btver1 entry.
18780 (software_prefetching_beneficial_p): Add btver1.
18781 (ix86_option_override_internal): Add btver1 instruction sets.
18782 (ix86_issue_rate): Add btver1.
18783 (ix86_adjust_cost): Add btver1.
18784 * config/i386/i386.h (TARGET_BTVER1): New definition.
18785 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18786 (enum processor_type): Add PROCESSOR_BTVER1.
18787 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18789 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18792 * config/i386/i386.c (legitimize_tls_address)
18793 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18794 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18795 (tls_initial_exec_64_sun): New pattern.
18797 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18799 * doc/invoke.texi (Overall Options): Improve wording and markup
18800 of the description of -wrapper.
18802 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18804 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18805 rdynamic, threads): New Driver options.
18807 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18810 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18811 if coming from .tdata.
18812 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18814 2011-01-06 Jan Hubicka <jh@suse.cz>
18817 * collect2.c (main): Do not enable LTOmode when plugin is active.
18819 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18822 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18823 --version output if supported.
18824 * configure: Regenerate.
18826 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18828 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18831 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18834 * c-convert.c (convert): When converting a complex expression
18835 other than COMPLEX_EXPR to a different complex type, ensure
18836 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18837 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18838 when converting COMPLEX_TYPE.
18840 2011-01-06 Ira Rosen <irar@il.ibm.com>
18842 PR tree-optimization/47139
18843 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18844 only the last reduction value is used outside the loop. Update
18847 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18849 * config/rtems.opt: New.
18850 * config.gcc (*-*-rtems*): Use rtems.opt.
18852 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18854 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18855 processors do not support 3DNow instructions.
18857 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18859 * config/spu/spu.c (spu_option_override): Set parameter
18860 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18862 2011-01-05 Jan Hubicka <jh@suse.cz>
18864 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18865 at the command line.
18867 2011-01-05 Martin Jambor <mjambor@suse.cz>
18870 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18871 deltas on streamed outgoing edges.
18872 (output_node_opt_summary): Output info for outgoing edges only when
18873 the node is in new parameter set.
18874 (output_cgraph_opt_summary): New parameter set, passed to the two
18875 aforementioned functions. Update its forward declaration and its
18878 2011-01-05 Tom Tromey <tromey@redhat.com>
18880 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18881 operator to c_finish_omp_atomic.
18882 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18883 (build_unary_op): Update.
18884 (build_modify_expr): Update.
18885 (build_asm_expr): Update.
18887 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18889 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18890 newly inserted insns.
18891 (pad_bb): Likewise.
18892 (spu_emit_branch_hint): Likewise.
18893 (insert_hbrp_for_ilb_runout): Likewise.
18894 (spu_machine_dependent_reorg): Call df_finish_pass after
18895 schedule_insns returns.
18897 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18899 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18901 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18903 PR tree-optimization/47005
18904 * tree-sra.c (struct access): Add 'non_addressable' bit.
18905 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18906 (decide_one_param_reduction): Return 0 if the parameter is passed by
18907 reference and one of the accesses in the group is non_addressable.
18909 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18911 PR tree-optimization/47056
18912 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18913 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18914 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18916 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18918 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18919 initializer. Skip view conversions from aggregate types.
18921 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18924 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18926 2011-01-04 Philipp Thomas <pth@suse.de>
18928 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18931 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18933 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18934 on empty epilogue sequences.
18936 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18938 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18939 non-static): New Driver options.
18941 2011-01-04 Jie Zhang <jie@codesourcery.com>
18944 * gcc.c (default_compilers[]): Set combinable field to 0
18945 for all assembly languages.
18947 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18949 * config/mips/loongson3a.md: New file.
18950 * config/mips/mips.md: Include loongson3a.md.
18951 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18954 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18956 PR middle-end/47017
18957 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18958 instead of convert_memory_address_addr_space on the base expression.
18960 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18962 * config/spu/spu.c (spu_option_override): Update error text
18963 for bad -march= / -mtune= values.
18965 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18967 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18968 if branch-hint optimization will be performed.
18970 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18972 PR tree-optimization/47148
18973 * ipa-split.c (split_function): Convert arguments to
18974 DECL_ARG_TYPE if possible.
18976 PR tree-optimization/47155
18977 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18978 when computing uns.
18980 PR rtl-optimization/47157
18981 * combine.c (try_combine): If undobuf.other_insn becomes
18982 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18983 and set *new_direct_jump_p too.
18985 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18987 PR tree-optimization/47021
18988 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18990 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18992 * gcc.c (process_command): Update copyright notice dates.
18993 * gcov.c (print_version): Likewise.
18994 * gcov-dump.c (print_version): Likewise.
18995 * mips-tfile.c (main): Likewise.
18996 * mips-tdump.c (main): Likewise.
18998 2011-01-03 Martin Jambor <mjambor@suse.cz>
19000 PR tree-optimization/46801
19001 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19002 aggregate fields start at byte boundary instead of the bit-field flag.
19004 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19007 * gcc.c (main): Revert revision 168407.
19009 2011-01-03 Martin Jambor <mjambor@suse.cz>
19011 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19013 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19015 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19016 vector optab to expand vector/scalar shift, update gimple to vector.
19018 2011-01-03 Martin Jambor <mjambor@suse.cz>
19020 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19023 2011-01-03 Martin Jambor <mjambor@suse.cz>
19025 PR tree-optimization/46984
19026 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19028 (cgraph_create_indirect_edge): Fixed line length.
19029 (cgraph_indirect_call_info): Declare.
19030 (cgraph_make_edge_direct) Update declaration.
19031 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19032 (cgraph_create_indirect_edge): Use it.
19033 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19035 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19036 the new thunk_delta representation.
19037 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19039 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19040 (ipa_read_indirect_edge_info): Likewise.
19041 * lto-cgraph.c (output_edge_opt_summary): New function.
19042 (output_node_opt_summary): Call it on all outgoing edges.
19043 (input_edge_opt_summary): New function.
19044 (input_node_opt_summary): Call it on all outgoing edges.
19046 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
19049 * gcc.c (main): Don't check have_o when settting combine_inputs.
19051 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
19053 * regrename.c: Add general comment describing the pass.
19054 (struct du_head): Remove 'length' field.
19055 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19056 (regrename_optimize): Do not sort chains. Rework comments, add others.
19057 Force renaming to the preferred class (if any) in the first pass and do
19058 not consider registers that belong to it in the second pass.
19059 (create_new_chain): Do not set 'length' field.
19060 (scan_rtx_reg): Likewise.
19062 2011-01-02 Jakub Jelinek <jakub@redhat.com>
19064 PR tree-optimization/47140
19065 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19066 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19067 to bit_value_binop.
19069 PR rtl-optimization/47028
19070 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19071 parm_birth_insn instead of at the beginning of first bb.
19073 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
19075 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19076 Remove the word "see" before "@pxref".
19077 * doc/rtl.texi: Remove the word "see" before "@pxref".
19079 2011-01-01 Jan Hubicka <jh@suse.cz>
19081 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19084 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
19087 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19090 Copyright (C) 2011 Free Software Foundation, Inc.
19092 Copying and distribution of this file, with or without modification,
19093 are permitted in any medium without royalty provided the copyright
19094 notice and this notice are preserved.