1 2011-06-21 Richard Guenther <rguenther@suse.de>
3 PR tree-optimization/49483
4 * tree-vect-stmts.c (vectorizable_assignment): Also handle
5 VIEW_CONVERT_EXPR conversions.
7 2011-06-21 Joseph Myers <joseph@codesourcery.com>
9 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
10 * config/avr/avr-tables.opt: New file (generated).
11 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
12 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
14 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
15 (avr_option_override): Don't process -mmcu= argument here. Set
16 avr_current_device using avr_mcu_index.
17 (avr_file_start): Use avr_current_device->name instead of
19 * config/avr/avr.opt (mmcu=): Use Enum.
20 * config/avr/t-avr (avr-devices.o): Update dependencies.
21 ($(srcdir)/config/avr/avr-tables.opt): New.
22 * target.def (help): Remove.
23 * doc/tm.texi.in (TARGET_HELP): Remove.
24 * doc/tm.texi: Regenerate.
25 * opts.c: Don't include target.h.
26 (common_handle_option): Don't call targetm.help.
27 * system.h (TARGET_HELP): Poison.
28 * Makefile.in (opts.o): Update dependencies.
30 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32 * config/usegld.h: New file.
33 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
34 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
37 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
38 (RDYNAMIC_SPEC): Handle GNU ld.
39 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC): Define.
40 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
41 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
42 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
43 (STACK_CHECK_STATIC_BUILTIN): Define.
44 * config/sol2.opt (compat-bsd): Remove.
45 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
46 * config/sol2-bi.h: New file.
47 * config/sol2-gld.h: Remove.
48 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
49 (NO_DBX_BNSYM_ENSYM): Remove.
50 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
51 (STACK_CHECK_STATIC_BUILTIN): Remove.
52 Test USE_GLD instead of TARGET_GNU_LD.
53 * config/i386/sol2-10.h: Rename to ...
54 * config/i386/sol2-bi.h .. this.
55 (SUBTARGET_EXTRA_SPECS): Redefine.
56 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
57 (MULTILIB_DEFAULTS): Remove.
58 (DEFAULT_ARCH32_P): Define.
59 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
60 (ARCH64_SUBDIR): Define.
61 Test USE_GLD instead of TARGET_GNU_LD.
62 (I386_EMULATION): Rename to ...
63 (ARCH32_EMULATION): ... this.
64 (X86_64_EMULATION): Rename to ...
65 (ARCH64_EMULATION): ... this.
66 (TARGET_LD_EMULATION): Remove.
67 (LINK_ARCH_SPEC): Remove.
68 * config/i386/sol2-gas.h: Remove.
69 * config/i386/t-sol2-10: Rename to ...
70 * config/i386/t-sol2-64: ... this.
71 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
72 (AS_SPARC64_FLAG): Define.
73 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
74 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
75 depending on TARGET_CPU_DEFAULT.
76 (CPP_CPU_SPEC): Redefine.
77 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
78 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
79 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
80 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
81 ASM_ARCH_DEFAULT_SPEC): Redefine.
82 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
83 LINK_ARCH_DEFAULT_SPEC.
84 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
85 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
86 (ARCH64_SUBDIR): Define.
87 (LINK_ARCH64_SPEC): Redefine.
89 (OPTION_DEFAULT_SPECS): Redefine.
90 (MULTILIB_DEFAULTS): Define.
91 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
92 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
93 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
94 (NO_DBX_BNSYM_ENSYM): Remove.
95 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
96 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
97 (TARGET_ASM_NAMED_SECTION): Likewise.
98 (STACK_CHECK_STATIC_BUILTIN): Remove.
99 * config/sparc/sol2-bi.h: Remove.
100 * config/sparc/sol2-gas-bi.h: Remove.
101 * config/sparc/sol2-gas.h: Remove.
102 * config/sparc/sol2-gld-bi.h: Remove.
103 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
105 (*-*-solaris2*): ... here.
107 2011-06-21 Christian Bruel <christian.bruel@st.com>
110 * ipa-inline.c (can_inline_edge_p): Check !DECL_DISREGARD_INLINE_LIMITS.
112 2011-06-21 Christian Bruel <christian.bruel@st.com>
115 * cgraphunit.c (process_function_and_variable_attributes): warn when
116 always_inline functions that are not inline.
117 * ipa-inline-transform.c (inline_transform): Always call optimize_inline.
118 * tree-inline.c (tree_inlinable_function_p): Use error instead of sorry.
119 (expand_call_inline): Likewise.
121 2011-06-21 Jakub Jelinek <jakub@redhat.com>
123 * Makefile.in (dg_target_exps): Set.
124 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
125 instead of 7, try to divide it more evenly.
127 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
130 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
131 (avx256_split_unaligned_store): New definition.
132 (ix86_option_override_internal): Enable avx256 unaligned load/store
133 splitting only when avx256_split_unaligned_load/store is set.
135 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
137 * regrename.c (scan_rtx_reg): Handle the case where we write to an
138 open chain in a smaller mode without failing the entire block.
140 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
143 * combine.c (cant_combine_insn_p): Don't check zero/sign
144 extended hard registers.
146 2011-06-21 Alan Modra <amodra@gmail.com>
148 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
149 CONST high part large-toc address.
150 (rs6000_tls_referenced_p): Make static.
151 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
153 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
156 * combine.c (cant_combine_insn_p): Check zero/sign extended
159 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
162 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
163 one of the operands is a register.
165 2011-06-20 Kai Tietz <ktietz@redhat.com>
167 * fold-const.c (fold_binary_loc): Add missing
168 folding for truth-not operations in combination
171 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
173 * regrename.c (do_replace): Don't update notes.
175 2011-06-20 Alan Modra <amodra@gmail.com>
177 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
178 of toc-relative address in CONST.
179 (rs6000_delegitimize_address): Recognize changed address.
180 (rs6000_legitimize_reload_address): Likewise.
181 (rs6000_emit_move): Don't force these constants to memory.
182 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
183 toc-relative address in CONST.
184 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
185 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
187 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
189 * longlong.h (count_leading_zeros): Use long long builtin for
191 (count_trailing_zeros): Likewise.
193 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
196 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
197 .init_array can be used with .ctors on targets.
198 * configure: Regenerated.
200 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
202 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
203 if the element type is volatile.
205 2011-06-18 Jan Hubicka <jh@suse.cz>
207 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
209 (lto_symtab_resolve_can_prevail_p): Likewise.
210 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
211 * cgraphbuild.c (record_reference): Remove extra body alias code.
212 (mark_load): Likewise.
213 (mark_store): Likewise.
214 * cgraph.h (varpool_node): Remove extra_name filed;
215 add alias_of and extraname_alias.
216 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
217 (varpool_alias_aliased_node): New inline function.
218 (varpool_variable_node): New function.
219 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
220 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
221 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
222 (input_varpool_node): Likewise.
223 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
224 (varpool_externally_visible_p): Remove extra body alias code.
225 (function_and_variable_visibility): Likewise.
226 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
227 (ipa_pta_execute): Use it.
228 * varpool.c (varpool_remove_node): Remove extra name alias code.
229 (varpool_mark_needed_node): Likewise.
230 (varpool_analyze_pending_decls): Analyze aliases.
231 (assemble_aliases): New functoin.
232 (varpool_assemble_decl): Use it.
233 (varpool_create_variable_alias): New function.
234 (varpool_extra_name_alias): Rewrite.
235 (varpool_for_node_and_aliases): New function.
237 2011-06-18 Jakub Jelinek <jakub@redhat.com>
240 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
241 last_arg_constant and last argument doesn't match its predicate,
242 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
243 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
244 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
245 spelling of error message.
246 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
247 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
248 const_0_to_255_operand instead of const_int_operand.
251 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
253 * config/i386/sse.md (blendbits): Remove mode attribute.
254 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
255 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
256 Check integer value of operand 3 in insn constraint.
258 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
260 PR rtl-optimization/48542
261 * reload.c (find_equiv_reg): Stop looking when finding a
263 * reload1.c (reload_as_needed): Invalidate all reload
264 registers when crossing a setjmp-type call.
266 2011-06-16 Jeff Law <law@redhat.com>
268 * tree-ssa-threadupdate.c (struct redirection_data): New field
270 (THREAD_TARGET2): Define.
271 (redirection_data_eq): Also check that the intermediate edge is
273 (lookup_redirection_data): Drop useless argument. Extract the
274 outgoing_edge and intermediate edge from E. Callers updated.
275 (copy_phi_args, update_destination_phis): New functions.
276 (fix_duplicate_block_edges): Likewise.
277 (create_edge_and_update_destination_phis): Duplicate all the edges
278 hung off e->aux. Use copy_phi_args.
279 (create_duplicates): Use fix_duplicate_block_edges.
280 (fixup_template_block): Likewise.
281 (redirect_edges): If necessary, redirect the joiner block's incoming
282 edge to the duplicate of the joiner block.
283 (thread_block): Don't muck up loops when threading through a joiner
285 (thread_through_loop_header): Handle threading through a joiner
287 (mark_threaded_blocks, register_jump_thread): Likewise.
288 * tree-flow.h (register_jump_thread): Add new argument. Callers
290 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
291 (thread_across_edge): Handle threading through a joiner block.
293 2011-06-16 Martin Jambor <mjambor@suse.cz>
295 PR tree-optimization/49343
296 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
297 calculate offset, provide 2nd operand for the new COMPONENT_REF.
299 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
301 * config/darwin-protos.h (machopic_select_rtx_section): Move to
302 inside RTX_CODE ifdef.
304 2011-06-16 Tom de Vries <tom@codesourcery.com>
307 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): Disallow
308 NULL pointer for pointer arithmetic.
310 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
314 2011-06-10 Wei Guozhi <carrot@google.com>
317 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
318 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
319 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
321 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
323 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
324 (arm_legitimate_ldrd_p): New prototype.
325 (arm_output_ldrd): New prototype.
326 * config/arm/arm.c (arm_check_ldrd_operands): New function.
327 (arm_legitimate_ldrd_p): New function.
328 (arm_output_ldrd): New function.
330 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
333 * doc/tm.texi.in: Update Copyright date.
334 * doc/tm.texi: Regenerate.
335 * targhooks.c (default_setup_incoming_varargs): Replace
336 CUMULATIVE_ARGS* argument type with cumulative_args_t.
337 (default_pretend_outgoing_varargs_named): Likewise.
338 (hook_pass_by_reference_must_pass_in_stack): Likewise.
339 (hook_callee_copies_named): Likewise.
340 (default_function_arg_advance): Likewise.
341 (default_function_arg): Likewise.
342 (default_function_incoming_arg): Likewise.
343 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
344 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
345 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
346 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
347 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
348 * targhooks.h (default_setup_incoming_varargs): Likewise.
349 (default_pretend_outgoing_varargs_named): Likewise.
350 (hook_pass_by_reference_must_pass_in_stack): Likewise.
351 (hook_callee_copies_named): Likewise.
352 (default_function_arg_advance): Likewise.
353 (default_function_arg): Likewise.
354 (default_function_incoming_arg): Likewise.
355 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
356 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
357 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
358 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
359 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
360 * target.def (pass_by_reference): Likewise.
361 (setup_incoming_varargs, strict_argument_naming): Likewise.
362 (pretend_outgoing_varargs_named, callee_copies): Likewise.
363 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
364 (function_incoming_arg): Likewise.
365 * target.h: Don't include "tm.h" .
366 (cumulative_args_t): New typedef.
367 [GCC_TM_H] (get_cumulative_args): New static inline function.
368 [GCC_TM_H] (pack_cumulative_args): Likewise.
369 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
370 argument type with cumulative_args_t.
371 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
372 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
373 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
374 (frv_arg_partial_bytes, frv_function_arg): Likewise.
375 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
376 (frv_function_arg_1): Likewise.
377 * config/s390/s390.c (s390_pass_by_reference): Likewise.
378 (s390_function_arg_advance, s390_function_arg): Likewise.
379 * config/m32c/m32c.c (m32c_function_arg): Likewise.
380 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
381 (m32c_strict_argument_naming): Likewise.
382 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
383 (spu_function_arg_advance): Likewise.
384 (spu_setup_incoming_varargs): Likewise. Make static.
385 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
387 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
388 CUMULATIVE_ARGS* argument type with cumulative_args_t.
389 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
390 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
391 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
392 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
393 (mep_pass_by_reference, mep_function_arg): Likewise.
394 (mep_function_arg_advance): Likewise.
395 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
396 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
397 (m32r_function_arg, m32r_function_arg_advance): Likewise.
398 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
399 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
400 (ix86_function_arg, ix86_pass_by_reference): Likewise.
401 (ix86_setup_incoming_varargs): Likewise.
402 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
403 (sh_strict_argument_naming): Likewise.
404 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
405 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
406 (sh_function_arg_advance, sh_function_arg): Likewise.
407 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
408 (pdp11_function_arg_advance): Likewise.
409 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
411 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
412 * config/avr/avr.c (avr_function_arg): Likewise.
413 (avr_function_arg_advance): Likewise.
414 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
415 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
416 (xtensa_function_arg_1): Likewise.
417 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Likewise.
418 (xstormy16_function_arg): Likewise.
419 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
420 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
421 (fr30_function_arg_advance): Likewise.
422 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
423 (lm32_function_arg, lm32_function_arg_advance): Likewise.
424 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
425 (moxie_function_arg, moxie_function_arg_advance): Likewise.
426 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
427 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
428 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
429 (cris_function_arg, cris_function_incoming_arg): Likewise.
430 (cris_function_arg_advance, cris_function_arg_1): Likewise.
431 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
432 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
433 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
434 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
435 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
436 (mn10300_arg_partial_bytes): Likewise.
437 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
438 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
439 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
440 (ia64_function_arg_1): Likewise.
441 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
442 (m68k_function_arg): Likewise.
443 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
444 (rs6000_function_arg, setup_incoming_varargs): Likewise.
445 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
446 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
447 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
448 (picochip_arg_advance): Likewise.
449 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
450 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
451 (mcore_function_arg_advance): Likewise.
452 * config/score/score.c (score_pass_by_reference): Likewise.
453 (score_function_arg_advance): Likewise.
454 (score_arg_partial_bytes): Likewise. Make static.
455 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
456 * config/arm/arm.c (arm_arg_partial_bytes): Replace
457 CUMULATIVE_ARGS* argument type with cumulative_args_t.
458 (arm_function_arg, arm_function_arg_advance): Likewise.
459 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
460 * config/pa/pa.c (pa_pass_by_reference): Likewise.
461 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
462 (pa_function_arg): Likewise.
463 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
464 (mips_function_arg, mips_function_arg_advance): Likewise.
465 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
466 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
467 * config/vax/vax.c (vax_function_arg): Likewise.
468 (vax_function_arg_advance): Likewise.
469 * config/h8300/h8300.c (h8300_function_arg): Likewise.
470 (h8300_function_arg_advance): Likewise.
471 * config/v850/v850.c (v850_pass_by_reference): Likewise.
472 (v850_strict_argument_naming, v850_function_arg): Likewise.
473 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
474 (v850_setup_incoming_varargs): Likewise.
475 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
476 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
477 (mmix_function_arg, mmix_pass_by_reference): Likewise.
478 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
480 * config/bfin/bfin.c (setup_incoming_varargs): Replace
481 CUMULATIVE_ARGS* argument type with cumulative_args_t.
482 (bfin_function_arg_advance, bfin_function_arg): Likewise.
483 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
484 * calls.c (emit_call_1): Change type of args_so_far to
485 cumulative_args_t. Changed all callers.
486 (initialize_argument_information): Likewise.
487 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
488 * dse.c (get_call_args): Likewise.
489 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
490 * function.c (pass_by_reference, reference_callee_copied): Likewise.
491 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
492 New member args_so_far_v. Changed all users.
493 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
494 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
495 * config/mips/mips.c (mips_output_args_xfer): Likewise.
496 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
497 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
498 * config/microblaze/microblaze.c (microblaze_expand_prologue): Likewise.
499 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
500 m32r_pass_by_reference.
502 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
504 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
505 argument to be a VEC of statements.
506 * tree-vect-loop.c (vect_determine_vectorization_factor):
507 Remove the assert that pattern statements have to have their
509 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
510 Change the first argument to be a VEC of statements. Update
512 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
513 (vect_handle_widen_mult_by_const): New function.
514 (vect_recog_widen_mult_pattern): Change the first argument to
515 be a VEC of statements. Update documentation. Check that the
516 constant is INTEGER_CST. Support multiplication by a constant
517 that fits an intermediate type - call
518 vect_handle_widen_mult_by_const.
519 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
520 call. Handle additional pattern statements if necessary.
522 2011-06-16 Nick Clifton <nickc@redhat.com>
525 * config.gcc: Set cpu_type to v850 for any V850 architecture.
526 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
527 md_file, extra_modes, out_file and extra_options are these are all
528 deduced from cpu_type.
530 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
532 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
533 truncation mask to 63.
535 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
539 * longlong.h: Add AVR support:
540 (count_leading_zeros): New macro.
541 (count_trailing_zeros): New macro.
542 (COUNT_LEADING_ZEROS_0): New macro.
543 * config/avr/t-avr (LIB1ASMFUNCS): Add
544 _ffssi2, _ffshi2, _loop_ffsqi2,
545 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2,
546 _paritydi2, _paritysi2, _parityhi2,
547 _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
548 _bswapsi2, _bswapdi2,
549 _ashldi3, _ashrdi3, _lshrdi3
550 (LIB2FUNCS_EXCLUDE): Add _clz.
551 * config/avr/libgcc.S (XCALL): Move up in file.
553 (DEFUN): New asm macro.
554 (ENDF): New asm macro.
555 (__ffssi2): New function.
556 (__ffshi2): New function.
557 (__loop_ffsqi2): New function.
558 (__ctzsi2): New function.
559 (__ctzhi2): New function.
560 (__clzdi2): New function.
561 (__clzsi2): New function.
562 (__clzhi2): New function.
563 (__paritydi2): New function.
564 (__paritysi2): New function.
565 (__parityhi2): New function.
566 (__parityqi2): New function.
567 (__popcounthi2): New function.
568 (__popcountsi2): New function.
569 (__popcountdi2): New function.
570 (__popcountqi2): New function.
571 (__bswapsi2): New function.
572 (__bswapdi2): New function.
573 (__ashldi3): New function.
574 (__ashrdi3): New function.
575 (__lshrdi3): New function.
578 2011-06-16 Richard Guenther <rguenther@suse.de>
580 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
582 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
584 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
585 equality compares against zero for the lower bit.
587 2011-06-16 Jakub Jelinek <jakub@redhat.com>
589 PR tree-optimization/49419
590 * tree-vrp.c (execute_vrp): Call init_range_assertions
591 before estimate_numbers_of_iterations, call
592 free_number_of_iterations_estimates before calling
593 remove_range_assertions.
595 2011-06-16 Revital Eres <revital.eres@linaro.org>
597 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
598 (struct partial_schedule): Add rows_length field.
599 (verify_partial_schedule): Check rows_length.
600 (ps_insert_empty_row): Handle rows_length.
601 (create_partial_schedule): Likewise.
602 (free_partial_schedule): Likewise.
603 (reset_partial_schedule): Likewise.
604 (create_ps_insn): Remove rest_count argument.
605 (remove_node_from_ps): Update rows_length.
606 (add_node_to_ps): Update rows_length and call create_ps_insn
607 without passing row_rest_count.
608 (rotate_partial_schedule): Update rows_length.
610 2011-06-16 Revital Eres <revital.eres@linaro.org>
612 * ddg.c (add_intra_loop_mem_dep): New function.
613 (build_intra_loop_deps): Call it.
615 2011-06-13 Jeff Law <law@redhat.com>
617 * df-problems.c (df_lr_local_compute): Manually CSE
618 PIC_OFFSET_TABLE_REGNUM.
619 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
620 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
622 2011-06-13 Jan Hubicka <jh@suse.cz>
624 * cgraphunit.c (handle_alias_pairs): New function.
625 (cgraph_finalize_compilation_unit): Use it.
626 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
627 as externally visible.
629 2011-06-15 Richard Guenther <rguenther@suse.de>
631 * expr.c (expand_expr_real_2): Reduce all integral types to
633 (expand_expr_real_1): Likewise.
635 2011-06-15 Martin Jambor <mjambor@suse.cz>
637 PR tree-optimization/48613
638 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
639 ipa_node_params_vector is NULL.
641 2011-06-15 Jakub Jelinek <jakub@redhat.com>
644 * dwarf2out.c (dw_loc_list_node): Add force field.
645 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
646 the incoming location in the list, even if it is modified
647 before first real insn.
648 (output_loc_list): Emit empty ranges with force flag set.
649 (dw_loc_list): If first range of a PARM_DECL is empty,
652 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
655 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
656 (fence_to_rewind). Use it to notice when bookkeeping will be placed
657 above a fence. Update comments.
658 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
659 placed just above it. Do not allow NULL place_to_insert.
661 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
663 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
664 (slpeel_tree_peel_loop_to_edge): Don't call
665 remove_dead_stmts_from_loop.
666 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
667 remove irrelevant pattern statements. For irrelevant statements
668 check if it is the last statement of a detected pattern, use
669 corresponding pattern statement instead.
670 (destroy_loop_vec_info): No need to remove pattern statements,
671 only free stmt_vec_info.
672 (vect_transform_loop): For irrelevant statements check if it is
673 the last statement of a detected pattern, use corresponding
674 pattern statement instead.
675 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
676 pattern statements. Set basic block for the new statement.
677 (vect_pattern_recog): Update documentation.
678 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
679 operands of pattern statements.
680 (vectorizable_call): Fix printing. In case of a pattern statement
681 use the lhs of the original statement when creating a dummy
682 statement to replace the original call.
683 (vect_analyze_stmt): For irrelevant statements check if it is
684 the last statement of a detected pattern, use corresponding
685 pattern statement instead.
686 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
687 statements use gsi of the original statement.
689 2011-06-14 Joseph Myers <joseph@codesourcery.com>
691 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
692 common/common-target-def.h.
693 * target.def (default_target_flags, handle_option,
694 supports_split_stack, optimization_table, init_struct,
695 except_unwind_info, unwind_tables_default, have_named_sections):
696 Move to common/common-target.def.
697 * target.h (enum opt_levels, struct default_options): Move to
698 common/common-target.h.
699 * targhooks.c (default_except_unwind_info,
700 dwarf2_except_unwind_info, sjlj_except_unwind_info,
701 default_target_handle_option, empty_optimization_table): Move to
702 common/common-targhooks.c.
703 * targhooks.h (default_except_unwind_info,
704 dwarf2_except_unwind_info, sjlj_except_unwind_info,
705 default_target_handle_option, empty_optimization_table): Move to
706 common/common-targhooks.h.
707 * common/common-target-def.h: Include common/common-targhooks.h.
708 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
710 * common/common-target.def (handle_option, option_init_struct,
711 option_optimization_table, default_target_flags,
712 except_unwind_info, supports_split_stack, unwind_tables_default,
713 have_named_sections): Move from target.def.
714 (HOOK_PREFIX): Undefine at end of file.
715 * common/common-target.h: Include input.h.
716 (enum opt_levels, struct default_options): Move from target.h.
717 * common/common-targhooks.c, common/common-targhooks.h: New.
718 * config.gcc (target_has_targetm_common): Default to yes.
719 (moxie*): Set target_has_targetm_common=no.
720 (hppa*-*-*): Don't set target_has_targetm_common=yes.
721 * doc/tm.texi: Regenerate.
722 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
723 (C_TARGET_DEF_H): Add common/common-targhooks.h.
724 (GCC_OBJS): Remove vec.o.
725 (OBJS): Remove hooks.o and vec.o.
726 (OBJS-libcommon-target): Add vec.o, hooks.o and
727 common/common-targhooks.o.
728 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
729 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
730 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
731 cfglayout.o, $(out_object_file), $(common_out_object_file)):
733 (common/common-targhooks.o): New.
734 * common/config/default-common.c: Include tm.h. Add FIXME
736 * common/config/pa/pa-common.c: Include more headers. Take
737 copyright dates from pa.c.
738 (pa_option_optimization_table, pa_handle_option,
739 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
740 TARGET_HANDLE_OPTION): Move from pa.c.
741 * common/config/alpha/alpha-common.c,
742 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
743 common/config/bfin/bfin-common.c,
744 common/config/cris/cris-common.c,
745 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
746 common/config/h8300/h8300-common.c,
747 common/config/i386/i386-common.c,
748 common/config/ia64/ia64-common.c,
749 common/config/iq2000/iq2000-common.c,
750 common/config/lm32/lm32-common.c,
751 common/config/m32c/m32c-common.c,
752 common/config/m32r/m32r-common.c,
753 common/config/m68k/m68k-common.c,
754 common/config/mcore/mcore-common.c,
755 common/config/mep/mep-common.c,
756 common/config/microblaze/microblaze-common.c,
757 common/config/mips/mips-common.c,
758 common/config/mmix/mmix-common.c,
759 common/config/mn10300/mn10300-common.c,
760 common/config/pdp11/pdp11-common.c,
761 common/config/picochip/picochip-common.c,
762 common/config/rs6000/rs6000-common.c,
763 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
764 common/config/score/score-common.c, common/config/sh/sh-common.c,
765 common/config/sparc/sparc-common.c,
766 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
767 common/config/vax/vax-common.c,
768 common/config/xstormy16/xstormy16-common.c,
769 common/config/xtensa/xtensa-common.c: New.
770 * config/alpha/alpha.c: Include common/common-target.h.
771 (alpha_option_optimization_table, alpha_handle_option,
772 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
773 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
774 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
775 * config/arm/arm.c (arm_option_optimization_table,
776 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
777 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
779 * config/avr/avr.c (avr_option_optimization_table,
780 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
782 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
783 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
784 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
785 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
786 * config/cris/cris.c (cris_option_optimization_table,
787 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
788 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
790 * config/fr30/fr30.c (fr30_option_optimization_table,
791 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
793 * config/frv/frv.c (frv_option_optimization_table,
794 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
795 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
796 * config/h8300/h8300.c (h8300_option_optimization_table,
797 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
798 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
799 * config/i386/i386-protos.h (ix86_handle_option): Declare.
800 * config/i386/i386.c: Include common/common-target.h.
801 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
802 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
803 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
804 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
805 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
806 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
807 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
808 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
809 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
810 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
811 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
812 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
813 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
814 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
815 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
816 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
817 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
818 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
819 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
820 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
821 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
822 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
823 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
824 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
825 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
826 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
827 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
828 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
829 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
830 ix86_option_optimization_table, ix86_option_init_struct,
831 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
832 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
833 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
835 * config/i386/t-i386 (i386.o): Update dependencies.
836 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
837 * config/ia64/ia64.c (ia64_option_optimization_table,
838 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
839 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
840 ia64_handle_option): Move to ia64-common.c.
841 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
842 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
843 * config/lm32/lm32.c (lm32_option_optimization_table,
844 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
846 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
848 * config/m32r/m32r.c (m32r_option_optimization_table,
849 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
850 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
851 m32r_handle_option): Move to m32r-common.c.
852 (m32r_memory_move_cost): Remove comment referring to
853 TARGET_HANDLE_OPTION.
854 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
855 Move to m68k-common.c.
856 * config/mcore/mcore.c (mcore_option_optimization_table,
857 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
858 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
859 * config/mep/mep.c (mep_option_optimization_table,
860 mep_handle_option, TARGET_HANDLE_OPTION,
861 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
862 Move to mep-common.c.
863 * config/microblaze/microblaze.c
864 (microblaze_option_optimization_table,
865 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
866 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
867 * config/mips/mips.c (mips_handle_option,
868 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
869 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
871 * config/mmix/mmix.c (mmix_option_optimization_table,
872 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
873 Move to mmix-common.c.
874 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
875 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
876 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
877 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
878 * config/pa/pa.c: Include common/common-target.h.
879 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
880 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
881 pa_handle_option): Move to pa-common.c.
882 (pa_option_override): Use targetm_common.except_unwind_info.
883 (pa_asm_output_mi_thunk, pa_function_section): Use
884 targetm_common.have_named_sections.
885 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
886 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
887 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
888 pdp11_handle_option, pdp11_option_init_struct): Move to
890 * config/picochip/picochip.c (picochip_option_optimization_table,
891 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
892 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
893 * config/rs6000/rs6000.c: Include common/common-target.h.
894 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
895 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
896 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
897 rs6000_handle_option): Move to rs6000-common.c.
898 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
899 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
900 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
901 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
902 * config/s390/s390.c (processor_flags_table,
903 s390_option_optimization_table, s390_option_init_struct,
904 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
905 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
906 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
907 * config/s390/s390.h (processor_flags_table): Declare.
908 * config/score/score.c (score_option_optimization_table,
909 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
910 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
911 score_handle_option): Move to score-common.c.
912 * config/sh/sh.c (sh_option_optimization_table,
913 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
914 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
915 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
916 * config/sparc/sparc.c: Include common/common-target.h.
917 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
918 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
919 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
920 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
921 spu_option_init_struct): Move to spu-common.c.
922 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
923 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
924 * config/v850/v850.c (small_memory_physical_max,
925 v850_handle_memory_optionn v850_handle_option,
926 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
927 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
929 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
931 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
932 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
933 Move to xtensa-common.c.
934 * cfglayout.c: Include common/common-target.h.
935 (fixup_reorder_chain): Use targetm_common.have_named_sections.
936 * cfgrtl.c: Include common/common-target.h.
937 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
938 targetm_common.have_named_sections.
939 * dbxout.c: Include common/common-target.h.
940 (dbxout_function_end): Use targetm_common.have_named_sections.
941 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
942 targetm_common.except_unwind_info.
943 * dwarf2out.c: Include common/common-target.h.
944 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
945 dwarf2out_begin_prologue, dwarf2out_frame_init,
946 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
947 targetm_common.except_unwind_info.
948 * except.c: Include common/common-target.h.
949 (init_eh, finish_eh_generation,
950 output_one_function_exception_table): Use
951 targetm_common.except_unwind_info.
952 (switch_to_exception_section): Use
953 targetm_common.have_named_sections.
954 * explow.c: Include common/common-target.h.
955 * expr.c: Include common/common-target.h.
956 (build_personality_function): Use
957 targetm_common.except_unwind_info.
958 * function.c: Include common/common-target.h.
959 (expand_function_end): Use targetm_common.except_unwind_info.
960 * haifa-sched.c: Include common/common-target.h.
961 (sched_create_recovery_edges): Use
962 targetm_common.have_named_sections.
963 * lto-opts.c: Include common/common-target.h instead of target.h.
964 (lto_reissue_options): Use targetm_common.handle_option.
965 * opts.c: Include common/common-target.h.
966 (target_handle_option): Use targetm_common.handle_option.
967 (init_options_struct): Update comment referring to
968 targetm.target_option.optimization. Use
969 targetm_common.default_target_flags,
970 targetm_common.unwind_tables_default and
971 targetm_common.option_init_struct.
972 (default_options_optimization): Use
973 targetm_common.option_optimization_table.
974 (finish_options): Use targetm_common.except_unwind_info,
975 targetm_common.unwind_tables_default,
976 targetm_common.have_named_sections and
977 targetm_common.supports_split_stack.
978 * toplev.c: Include common/common-target.h.
979 (process_options): Use targetm_common.have_named_sections.
980 * tree-tailcall.c: Include common/common-target.h.
981 (suitable_for_tail_call_opt_p): Use
982 targetm_common.except_unwind_info.
983 * tree.c: Include common/common-target.h.
984 (build_common_builtin_nodes): Use
985 targetm_common.except_unwind_info.
986 * varasm.c: Include common/common-target.h.
987 (resolve_unique_section, hot_function_section,
988 default_function_section): Use targetm_common.have_named_sections.
990 2011-06-14 Easwaran Raman <eraman@google.com>
992 PR rtl-optimization/44194
993 * dse.c: Include tree-flow.h
994 (insn_info): Add new field non_frame_wild_read.
995 (group_info): Add new fields escaped_n and escaped_p.
996 (kill_on_calls): New variable.
997 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
998 (dse_step0): Initialize kill_on_calls.
999 (can_escape): New function.
1000 (set_usage_bits): Add additional parameter; record information
1001 about escaped locations.
1002 (record_store): Pass EXPR corresponding to MEM to
1004 (dse_step2_nospill): Set kill_on_calls based on
1005 group->escaped_n and group->escaped_n.
1006 (add_wild_read): Refactor into...
1007 (reset_active_stores): ... New function, and
1008 (free_read_records): ... New function.
1009 (add_non_frame_wild_read): New function.
1010 (scan_insn): Call add_non_frame_wild_read on non-const calls.
1011 (scan_reads_nospill): Handle instructions with
1012 non_frame_wild_read.
1013 (dse_step5_nospill): Call scan_reads_nospill for instructions
1014 marked as non_frame_wild_read.
1015 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
1018 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1020 * common/common-target-def.h, common/common-target.def,
1021 common/common-target.h, common/config/default-common.c,
1022 common/config/pa/pa-common.c: New files.
1023 * Makefile.in (common_out_file, common_out_object_file,
1024 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1025 (OBJS-libcommon-target): Include $(common_out_object_file).
1026 (prefix.o): Update dependencies.
1027 ($(common_out_object_file), common/common-target-hooks-def.h,
1028 s-common-target-hooks-def-h): New.
1029 (s-tm-texi): Also check timestamp on common-target.def.
1030 (build/genhooks.o): Update dependencies.
1031 * config.gcc (common_out_file, target_has_targetm_common): Define.
1032 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1033 TARGET_ALWAYS_STRIP_DOTDOT.
1034 * configure.ac (common_out_object_file): Define.
1035 (common_out_file, common_out_object_file): Substitute.
1036 (common): Create directory.
1037 * configure: Regenerate.
1038 * doc/tm.texi.in (targetm_common): Document.
1039 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1040 * doc/tm.texi: Regenerate.
1041 * genhooks.c (hook_array): Also include common/common-target.def.
1042 * prefix.c (tm.h): Don't include.
1043 (common/common-target.h): Include.
1044 (ALWAYS_STRIP_DOTDOT): Don't define.
1045 (update_path): Use targetm_common.always_strip_dotdot instead of
1046 ALWAYS_STRIP_DOTDOT.
1047 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1049 2011-06-14 David Li <davidxl@google.com>
1051 * passes.c (execute_function_todo): Remove TODO_dump_func.
1052 (execute_one_pass): Remove TODO_dump_func.
1053 (execute_function_dump): New function.
1054 * tree-vrp.c: Remove TODO_dump_func.
1055 * regrename.c: Remove TODO_dump_func.
1056 * fwprop.c: Remove TODO_dump_func.
1057 * tree-into-ssa.c: Remove TODO_dump_func.
1058 * tree-complex.c: Remove TODO_dump_func.
1059 * tracer.c: Remove TODO_dump_func.
1060 * tree-loop-distribution.c: Remove TODO_dump_func.
1061 * postreload-gcse.c: Remove TODO_dump_func.
1062 * postreload.c: Remove TODO_dump_func.
1063 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1064 * tree-tailcall.c: Remove TODO_dump_func.
1065 * ipa-cp.c: Remove TODO_dump_func.
1066 * final.c: Remove TODO_dump_func.
1067 * tree-emutls.c: Remove TODO_dump_func.
1068 * omp-low.c: Remove TODO_dump_func.
1069 * tree-ssa-dse.c: Remove TODO_dump_func.
1070 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1071 * auto-inc-dec.c: Remove TODO_dump_func.
1072 * reorg.c: Remove TODO_dump_func.
1073 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1074 * tree-ssa-ccp.c: Remove TODO_dump_func.
1075 * compare-elim.c: Remove TODO_dump_func.
1076 * mode-switching.c: Remove TODO_dump_func.
1077 * modulo-sched.c: Remove TODO_dump_func.
1078 * tree-call-cdce.c: Remove TODO_dump_func.
1079 * cse.c: Remove TODO_dump_func.
1080 * web.c: Remove TODO_dump_func.
1081 * tree-stdarg.c: Remove TODO_dump_func.
1082 * lto-streamer-out.c: Remove TODO_dump_func.
1083 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1084 * tree-ssa-dom.c: Remove TODO_dump_func.
1085 * tree-nrv.c: Remove TODO_dump_func.
1086 * loop-init.c: Remove TODO_dump_func.
1087 * gimple-low.c: Remove TODO_dump_func.
1088 * ipa-inline.c: Remove TODO_dump_func.
1089 * tree-ssa-sink.c: Remove TODO_dump_func.
1090 * jump.c: Remove TODO_dump_func.
1091 * ifcvt.c: Remove TODO_dump_func.
1092 * tree-ssa-loop.c: Remove TODO_dump_func.
1093 * recog.c: Remove TODO_dump_func.
1094 * dse.c: Remove TODO_dump_func.
1095 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1096 * matrix-reorg.c: Remove TODO_dump_func.
1097 * tree-eh.c: Remove TODO_dump_func.
1098 * regmove.c: Remove TODO_dump_func.
1099 * function.c: Remove TODO_dump_func.
1100 * tree-vectorizer.c: Remove TODO_dump_func.
1101 * ipa-split.c: Remove TODO_dump_func.
1102 * gcse.c: Remove TODO_dump_func.
1103 * tree-if-conv.c: Remove TODO_dump_func.
1104 * init-regs.c: Remove TODO_dump_func.
1105 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1106 * implicit-zee.c: Remove TODO_dump_func.
1107 * lower-subreg.c: Remove TODO_dump_func.
1108 * bt-load.c: Remove TODO_dump_func.
1109 * tree-dfa.c: Remove TODO_dump_func.
1110 * except.c: Remove TODO_dump_func.
1111 * emit-rtl.c: Remove TODO_dump_func.
1112 * store-motion.c: Remove TODO_dump_func.
1113 * cfgexpand.c: Remove TODO_dump_func.
1114 * tree-cfgcleanup.c: Remove TODO_dump_func.
1115 * cfgcleanup.c: Remove TODO_dump_func.
1116 * tree-ssa-pre.c: Remove TODO_dump_func.
1117 * tree-sra.c: Remove TODO_dump_func.
1118 * tree-mudflap.c: Remove TODO_dump_func.
1119 * tree-ssa-copy.c: Remove TODO_dump_func.
1120 * cfglayout.c: Remove TODO_dump_func.
1121 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1122 * tree-ssa-dce.c: Remove TODO_dump_func.
1123 * ira.c: Remove TODO_dump_func.
1124 * tree-ssa.c: Remove TODO_dump_func.
1125 * integrate.c: Remove TODO_dump_func.
1126 * tree-optimize.c: Remove TODO_dump_func.
1127 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1128 * tree-object-size.c: Remove TODO_dump_func.
1129 * combine.c: Remove TODO_dump_func.
1130 * bb-reorder.c: Remove TODO_dump_func.
1131 * cprop.c: Remove TODO_dump_func.
1132 * var-tracking.c: Remove TODO_dump_func.
1133 * tree-profile.c: Remove TODO_dump_func.
1134 * tree-vect-generic.c: Remove TODO_dump_func.
1135 * reg-stack.c: Remove TODO_dump_func.
1136 * sched-rgn.c: Remove TODO_dump_func.
1137 * tree-ssa-structalias.c: Remove TODO_dump_func.
1138 * tree-switch-conversion.c: Remove TODO_dump_func.
1139 * tree-cfg.c: Remove TODO_dump_func.
1140 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1141 * combine-stack-adj.c: Remove TODO_dump_func.
1142 * dce.c: Remove TODO_dump_func.
1143 * tree-ssanames.c: Remove TODO_dump_func.
1144 * regcprop.c: Remove TODO_dump_func.
1146 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1149 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1150 and properly handle result not in Pmode.
1152 2011-06-14 Robert Millan <rmh@gnu.org>
1154 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1155 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1158 * config/i386/kfreebsd-gnu64.h: New file.
1159 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1160 with `i386/kfreebsd-gnu64.h'.
1162 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1163 (GNU_USER_LINK_EMULATION64): New macros.
1164 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1165 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1166 of hardcoding `elf_i386' and `elf_x86_64'.
1168 2011-06-14 Nick Clifton <nickc@redhat.com>
1171 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1174 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1176 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1179 * tree.h (DECL_NONSHAREABLE): Define.
1180 (struct tree_decl_common): Change decl_common_unused to
1181 decl_nonshareable_flag.
1182 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1183 Ignore vars with DECL_NONSHAREABLE bit set.
1184 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1185 on stores to automatic aggregate vars.
1187 PR rtl-optimization/49390
1189 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1191 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1194 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
1195 Tom de Vries <tom@codesourcery.com>
1198 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1199 Document changed semantics.
1200 (max_stmt_executions, max_stmt_executions_int): Declare.
1201 * tree-data-ref.c (estimated_loop_iterations)
1202 (estimated_loop_iterations_int): Move functions...
1203 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1204 (estimated_loop_iterations_int): here.
1205 (record_estimate): Change nb_iterations_upper_bound and
1206 nb_iterations_estimate semantics.
1207 (max_stmt_executions, max_stmt_executions_int): New function.
1208 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1209 (max_stmt_executions_tree): this.
1210 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1211 estimated_loop_iterations_tree.
1212 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1213 max_stmt_executions_int instead of estimated_loop_iterations_int.
1214 * predict.c (predict_loops): Idem.
1215 * tree-parloops.c (parallelize_loops): Idem.
1216 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1217 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1218 (init_omega_for_ddr_1): Idem.
1219 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1220 (loop_prefetch_arrays): Idem
1221 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1222 max_stmt_executions instead of estimated_loop_iterations.
1223 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1224 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1225 instead of nb_iterations_upper_bound.
1227 2011-06-13 Jan Hubicka <jh@suse.cz>
1229 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1231 2011-06-14 Richard Henderson <rth@redhat.com>
1234 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1235 (based_loc_descr): Assert it's true.
1236 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1237 aborting immediately.
1239 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1240 Mingfeng Wu <mingfeng@faraday-tech.com>
1242 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1244 2011-06-13 Jan Hubicka <jh@suse.cz>
1246 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1248 2011-06-13 Jan Hubicka <jh@suse.cz>
1250 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1251 similarly to DECL_COMDAT.
1252 * cgraphunit.c (cgraph_analyze_function): Likewise.
1253 * ipa.c (function_and_variable_visibility): Likewise.
1255 2011-06-13 Jan Hubicka <jh@suse.cz>
1257 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1258 BINFO_VIRTUALS when streaming for ltrans unit.
1260 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
1262 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1263 (movdi_internal64): Same.
1265 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1268 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1269 a set of similar patterns, where the MATCH_OPERAND for the function
1270 argument is replaced with individual references to hardware registers.
1271 (save_fpregs_<mode>): Ditto
1272 (restore_gpregs_<mode>): Ditto
1273 (return_and_restore_gpregs_<mode>): Ditto
1274 (return_and_restore_fpregs_<mode>): Ditto
1275 (return_and_restore_fpregs_aix_<mode>): Ditto
1277 2011-06-13 Jan Hubicka <jh@suse.cz>
1279 * ipa-utils.c (postorder_stack): New structure.
1280 (ipa_reverse_postorder): Handle aliases.
1282 2011-06-13 Jan Hubicka <jh@suse.cz>
1284 * ipa-inline.c (reset_edge_caches): Walk aliases.
1285 (update_caller_keys): Do not test inlinability of aliases.
1286 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1287 (do_estimate_growth): Fix typo.
1289 2011-06-13 Jan Hubicka <jh@suse.cz>
1291 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1292 (can_remove_node_now_p): ... here; handle same comdat groups.
1293 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1294 (inline_call): Update use of can_remove_node_now_p.
1296 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1298 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1299 condition to disallow non-identical memory locations.
1300 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1301 preference to bit manipulation instructions.
1303 2011-06-13 Jan Hubicka <jh@suse.cz>
1305 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1306 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1307 (nonremovable_p): New function.
1308 (cgraph_can_remove_if_no_direct_calls_p): New function.
1309 (used_from_object_file_p): New functoin.
1310 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1311 references from aliases.
1312 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1313 * ipa-inline.c (check_caller_edge): New function.
1314 (want_inline_function_called_once_p): Use it; accept aliases called
1316 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1318 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1321 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1322 correctly for the case with Quad vectors.
1324 2011-06-13 Jakub Jelinek <jakub@redhat.com>
1325 Ira Rosen <ira.rosen@linaro.org>
1327 PR tree-optimization/49352
1328 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1329 all, make sure loop_use_stmt after the loop is a def stmt of a used
1330 SSA_NAME that is the only one defined inside of the loop. Don't
1331 check for COND_EXPR and GIMPLE_BINARY_RHS.
1332 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1333 check_reduction is true.
1335 2011-06-11 Jan Hubicka <jh@suse.cz>
1338 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1340 2011-06-11 Jan Hubicka <jh@suse.cz>
1343 * ipa-inline-transform.c: Include tree-pass.h
1344 (inline_transform): Set TODO_update_ssa_only_virtuals.
1345 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1347 2011-06-11 Jan Hubicka <jh@suse.cz>
1350 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1353 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
1355 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1356 Take number of iterations to peel into account for equally frequent
1357 misalignment values.
1359 2011-06-11 Jan Hubicka <jh@suse.cz>
1361 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
1364 2011-06-11 Jan Hubicka <jh@suse.cz>
1366 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
1368 (ipa_update_after_lto_read): Likewise.
1369 (ipa_write_node_info): Do not sream call_with_var_arguments.
1370 (ipa_read_node_info): Likewise.
1372 2011-06-11 Jan Hubicka <jh@suse.cz>
1374 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1376 2011-06-11 Jan Hubicka <jh@suse.cz>
1378 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1379 (lto_symtab_resolve_can_prevail_p): Likewise.
1380 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1381 * cgraph.c (same_body_aliases_done): New global var.
1382 (cgraph_same_body_alias_1): Rename to ...
1383 (cgraph_create_function_alias): ... this one; reorg to new
1385 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1386 record references when asked to.
1387 (cgraph_add_thunk): Fix formating.
1388 (cgraph_get_node): Kill same body alias code.
1389 (cgraph_node_for_asm): Likewise.
1390 (cgraph_remove_same_body_alias): Remove.
1391 (cgraph_remove_node): Kill same body alias code.
1392 (cgraph_mark_address_taken_node): Mark also the aliased function
1393 as having address taken.
1394 (dump_cgraph_node): Dump same body aliases.
1395 (cgraph_for_node_thunks_and_aliases): Update for new alias
1397 (cgraph_for_node_and_aliases): Likewise.
1398 * cgraph.h (same_body): Kll pointer.
1399 (same_body_alias): Update comment.
1400 (same_body_aliases_done): Declare.
1401 (cgraph_remove_same_body_alias): Remove declaration.
1402 (cgraph_create_function_alias): Declare.
1403 (cgraph_process_same_body_aliases): Declare.
1404 (cgraph_function_with_gimple_body_p): Check for alias.
1405 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1406 (cgraph_alias_aliased_node): New function.
1407 (cgraph_function_node): Update for new aliases.
1408 (cgraph_function_or_thunk_node): Likewise.
1409 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1410 (inline_call): Remove dead aliases.
1411 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1412 name hack for same body aliases.
1413 (clone_of_p): Look through aliases.
1414 (verify_cgraph_node): Verify aliases.
1415 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1416 (cgraph_process_same_body_aliases): New function.
1417 (process_function_and_variable_attributes): Disable weakref warning on
1419 (cgraph_analyze_functions): Handle aliases.
1420 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1421 (assemble_thunks): Rename to ...
1422 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1423 (cgraph_expand_function): Remove alias output code.
1424 (cgraph_output_in_order): Skip aliases.
1425 (cgraph_preserve_function_body_p): Aliases don't need preserving.
1426 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1427 (ipa_record_reference): Do not assert on alias references.
1428 (ipa_ref_has_aliases_p): New function.
1429 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1430 (ipa_ref_has_aliases_p): Declare.
1431 * lto-cgraph.c (lto_output_node): Handle aliases.
1432 (input_node): Likewise.
1433 * lto-streamer-out.c (lto_output): Skip aliases.
1434 (produce_symtab): Kill same_body_alias code.
1435 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1436 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1437 * ipa-inline.c (update_caller_keys): Walk aliases.
1438 (inline_small_functions): Fix thinko in previous patch.
1439 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1440 (function_and_variable_visibility): Do not walk same body aliases.
1441 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1442 (ipa_pta_execute): Use it.
1444 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1446 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1447 (*vec_dupv2df): Rename from vec_dupv2df.
1448 (vec_dupv2df): New expander.
1450 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1452 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1454 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1456 * config/i386/i386.md: Use default value in "isa" attribute.
1457 * config/i386/sse.md: Ditto.
1458 * config/i386/mmx.md: Ditto.
1460 2011-06-10 Wei Guozhi <carrot@google.com>
1463 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1464 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1465 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1467 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1469 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1470 (arm_legitimate_ldrd_p): New prototype.
1471 (arm_output_ldrd): New prototype.
1472 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1473 (arm_legitimate_ldrd_p): New function.
1474 (arm_output_ldrd): New function.
1476 2011-06-10 David Li <davidxl@google.com>
1478 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1479 * passes.c (passr_eq): New function.
1480 (create_pass_tab): New function.
1481 (pass_traverse): New function.
1482 (dump_one_pass): New function.
1483 (dump_pass_list): New function.
1484 (dump_passes): New function.
1486 2011-06-10 Jan Hubicka <jh@suse.cz>
1488 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
1489 setting the nothrow flag.
1490 * ipa-reference.c (propagate): Skip aliases.
1491 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
1492 (propagate_nothrow): Skip aliases; do not update cgraph.
1493 (local_pure_const): Do not update cgraph.
1494 * tree-profile.c (tree_profiling): Do fixup_cfg.
1496 2011-06-10 Jan Hubicka <jh@suse.cz>
1498 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
1499 (cgraph_local_node_p): ... here; handle aliases.
1500 (has_addr_references_p): Break out from ...;
1501 (cgraph_remove_unreachable_nodes) ... here.
1503 2011-06-10 Jan Hubicka <jh@suse.cz>
1505 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
1506 * common.opt (flag_inline_functions_called_once): Do not
1509 2011-06-10 Jan Hubicka <jh@suse.cz>
1511 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
1512 (ipcp_initialize_node_lattices): Do not deal with aliases;
1513 Do not try to propagate through thunks.
1514 (ipcp_change_tops_to_bottom): Do not deal with aliases.
1516 2011-06-10 Jan Hubicka <jh@suse.cz>
1518 * ipa-prop.c (ipa_write_node_info): Stream jump functions
1520 (ipa_read_node_info): Likewise.
1522 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1525 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
1526 (build_and_insert_call): Likewise.
1527 (build_and_insert_ref): New.
1528 (gimple_expand_builtin_pow): Minor cleanup.
1529 (gimple_expand_builtin_cabs): New.
1530 (execute_cse_sincos): Add case for BUILT_IN_CABS.
1532 2011-06-10 Jan Hubicka <jh@suse.cz>
1534 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1535 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1536 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1537 (ipcp_propagate_stage): Skip aliases when propagating.
1538 (ipcp_need_redirect_p): Skip aliases.
1539 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1540 collect_callers_of_node.
1541 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1543 (ipa_compute_jump_functions): Look through aliases.
1545 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1547 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1549 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1551 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1553 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1555 2011-06-10 Jan Hubicka <jh@suse.cz>
1557 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1558 Update call of gimple_get_virt_method_for_binfo.
1559 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1560 refuse_thunks parameter.
1561 (gimple_fold_call): Update.
1562 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1564 2011-06-10 Jan Hubicka <jh@suse.cz>
1566 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1567 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1568 worker for cgraph_for_node_and_aliases.
1569 (convert_callers_for_node): Break out from ...
1570 (convert_callers): ... here.
1571 (modify_function): Use collect_callers_of_node.
1572 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1574 2011-06-10 Richard Guenther <rguenther@suse.de>
1576 PR tree-optimization/49361
1577 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1578 when not already in gimple form.
1580 2011-06-10 Richard Guenther <rguenther@suse.de>
1583 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1584 FOR_EACH_PHI_OR_STMT_USE.
1586 2011-06-10 Jan Hubicka <jh@suse.cz>
1588 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1589 (clone_inlined_nodes): ... here.
1590 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1591 to real destination prior inlining.
1592 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1593 can_early_inline_edge_p, want_early_inline_function_p,
1594 want_early_inline_function_p, want_inline_small_function_p,
1595 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1596 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1597 add_new_edges_to_heap, inline_small_functions, flatten_function,
1598 inline_always_inline_functions, early_inline_small_functions): Use
1599 cgraph_function_or_thunk_node.
1600 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1601 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1602 (do_estimate_edge_growth_1): Break out from ...
1603 (do_estimate_growth) ... here; walk aliases.
1604 (inline_generate_summary): Skip aliases.
1606 2011-06-10 Richard Guenther <rguenther@suse.de>
1608 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1609 forward when combining, visit inserted stmts when a stmt was changed.
1611 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1613 * tree.h (error_operand_p): Add.
1614 * dbxout.c (dbxout_type_fields): Use the latter.
1615 * c-decl.c (add_stmt): Likewise.
1616 * gimplify.c (omp_add_variable, omp_notice_variable,
1617 gimplify_scan_omp_clauses): Likewise.
1619 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1621 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1622 when a value is actually passed in regs.
1624 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1625 Laurent Rougé <laurent.rouge@menta.fr>
1627 * doc/invoke.texi (SPARC options): Add -mflat.
1628 * config/sparc/sparc.opt: Likewise.
1629 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1630 (sparc_flat_expand_prologue): Declare.
1631 (sparc_flat_expand_epilogue): Likewise.
1632 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1633 (CPP_ENDIAN_SPEC): Replace with...
1634 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1635 (CPP_SPEC): Adjust to above change.
1636 (EXTRA_SPECS): Likewise.
1637 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1638 (INCOMING_REGNO): Likewise.
1639 (OUTGOING_REGNO): Likewise.
1640 (LOCAL_REGNO): Likewise.
1641 (SETUP_FRAME_ADDRESSES): Likewise.
1642 (FIXED_REGISTERS): Set 0 for %fp.
1643 (CALL_USED_REGISTERS): Likewise.
1644 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1645 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1646 (RETURN_ADDR_REGNUM): Define.
1647 (RETURN_ADDR_RTX): Use it.
1648 (INCOMING_RETURN_ADDR_REGNUM): Define.
1649 (INCOMING_RETURN_ADDR_RTX): Use it.
1650 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1651 (EH_RETURN_REGNUM): Define.
1652 (EH_RETURN_STACKADJ_RTX): Use it.
1653 (EH_RETURN_HANDLER_RTX): Delete.
1654 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1655 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1657 (struct machine_function): Add frame_size, apparent_frame_size,
1658 frame_base_reg, frame_base_offset, n_global_fp_regs and
1659 save_local_in_regs_p fields.
1660 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1661 sparc_frame_base_offset, sparc_n_global_fp_regs,
1662 sparc_save_local_in_regs_p): New macros.
1663 (sparc_option_override): Error out if -fcall-saved-REG is specified
1665 (eligible_for_restore_insn): Fix formatting.
1666 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1667 (eligible_for_sibcall_delay): Likewise.
1668 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1669 (sparc_legitimate_address_p): Adjust to above change.
1670 (save_global_or_fp_reg_p): New predicate.
1671 (return_addr_reg_needed_p): Likewise.
1672 (save_local_or_in_reg_p): Likewise.
1673 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1674 (SORR_SAVE, SORR_RESTORE): Delete.
1675 (sorr_pred_t): New typedef.
1676 (sorr_act_t): New enum.
1677 (save_or_restore_regs): Rename to...
1678 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1679 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1680 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1681 mechanism. Add CFI information for double-word saves in 32-bit mode.
1682 (emit_adjust_base_to_offset): New function extracted from...
1683 (emit_save_or_restore_regs): ...this. Rename the rest to...
1684 (emit_save_or_restore_regs_global_fp_regs): ...this.
1685 (emit_save_or_restore_regs_local_in_regs): New function.
1686 (gen_create_flat_frame_[123]): New functions.
1687 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1688 (sparc_flat_expand_prologue): New function.
1689 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1690 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1691 (sparc_flat_expand_epilogue): New function.
1692 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1693 (output_return): Likewise.
1694 (output_sibcall): Likewise.
1695 (sparc_output_mi_thunk): Likewise.
1696 (sparc_frame_pointer_required): Likewise.
1697 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1698 function optimization.
1699 * config/sparc/sparc.md (flat): New attribute.
1700 (prologue): Add TARGET_FLAT handling.
1701 (save_register_window): Disable if TARGET_FLAT.
1702 (create_flat_frame_[123]): New patterns.
1703 (epilogue): Add TARGET_FLAT handling.
1704 (sibcall_epilogue): Likewise.
1705 (eh_return): New expander.
1706 (eh_return_internal): New insn and splitter.
1707 (return_internal): Add TARGET_FLAT handling.
1708 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1709 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1710 (nonlocal_goto): Add TARGET_FLAT handling.
1711 * config/sparc/t-elf: Add -mflat multilib.
1712 * config/sparc/t-leon: Likewise.
1714 2011-06-10 Jan Hubicka <jh@suse.cz>
1716 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1717 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1718 (self_recursive_p): Use cgraph_function_node.
1719 (propagate_pure_const): Likewise.
1720 (propagate_nothrow): Likewise.
1721 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1722 cgraph_function_node.
1723 (propagate_bits): Likewise.
1724 (propagate): Likewise.
1726 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1727 Richard Earnshaw <rearnsha@arm.com>
1729 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1730 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1731 (*thumb2_movdi_vfp): Delete.
1732 (*arm_movdi_vfp_cortexa8): Delete.
1733 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1734 (*movdi_vfp_cortexa8): Likewise.
1736 2011-06-10 Richard Guenther <rguenther@suse.de>
1738 * stor-layout.c (initialize_sizetypes): Give names to all
1741 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1743 PR tree-optimization/49318
1744 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1745 irrelevant pattern statements.
1747 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1749 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1752 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1755 2011-06-09 Jan Hubicka <jh@suse.cz>
1757 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1758 do not recompute reachable flag.
1759 (cgraph_finalize_function, cgraph_analyze_functions): Set
1760 redefined_extern_inline here.
1762 2011-06-09 Jan Hubicka <jh@suse.cz>
1764 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1765 (cgraph_only_called_directly_p): ... this one; bring offline.
1766 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1767 varpool_used_from_object_file_p): Drop names from the declaratoin.
1768 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1769 collect_callers_of_node): New.
1770 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1771 (cgraph_edge_recursive_p): Use cgraph_function_node.
1772 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1773 (cgraph_node_cannot_be_local_p_1): Break out from ...
1774 (cgraph_node_can_be_local_p): ... here; walk aliases.
1775 (cgraph_for_node_thunks_and_aliases): New function.
1776 (cgraph_for_node_and_aliases): New function.
1777 (cgraph_make_node_local_1): Break out from ...
1778 (cgraph_make_node_local) ... here; use
1779 cgraph_for_node_thunks_and_aliases.
1780 (cgraph_set_nothrow_flag_1): Break out from ...
1781 (cgraph_set_nothrow_flag) ... here;
1782 use cgraph_for_node_thunks_and_aliases.
1783 (cgraph_set_const_flag_1): Break out from ...
1784 (cgraph_set_const_flag) ... here;
1785 use cgraph_for_node_thunks_and_aliases.
1786 (cgraph_set_pure_flag_1): Break out from ...
1787 (cgraph_set_pure_flag) ... here;
1788 use cgraph_for_node_thunks_and_aliases.
1789 (cgraph_propagate_frequency_1): Break out from ...
1790 (cgraph_propagate_frequency) ... here; use
1791 cgraph_for_node_thunks_and_aliases.
1792 (cgraph_used_from_object_file_p): Do not care about aliases.
1793 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1795 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1797 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1799 PR rtl-optimization/49154
1800 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1801 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1802 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1803 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1804 * config/cris/cris.h (cris_register_move_cost): Remove
1805 !TARGET_V32 code. Tweak comments.
1807 2011-06-09 Jan Hubicka <jh@suse.cz>
1809 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1812 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1814 PR rtl-optimization/49154
1815 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1816 is a matching slot in the hashtable, assign it to classes_ptr.
1818 PR rtl-optimization/49154
1819 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1821 * doc/tm.texi: Regenerate.
1823 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1826 * config/sh/sh.md (UNSPEC_CHKADD): New.
1827 (chk_guard_add): New define_insn_and_split.
1828 (symGOT_load): Use chk_guard_add instead of blockage.
1830 2011-06-09 Kai Tietz <ktietz@redhat.com>
1832 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1834 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1836 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1838 2011-06-09 Wei Guozhi <carrot@google.com>
1841 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1842 (peephole2 for conditional move): Generate 16 bit instructions.
1844 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1846 * config/i386/i386.md (*movdi_internal_rex64): Merge
1847 alternatives 6 and 8.
1849 2011-06-09 David Li <davidxl@google.com>
1851 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1852 * passes.c (passr_eq): New function.
1853 (create_pass_tab): New function.
1854 (pass_traverse): New function.
1855 (dump_one_pass): New function.
1856 (dump_pass_list): New function.
1857 (dump_passes): New function.
1859 2011-06-09 David Li <davidxl@google.com>
1861 * tree-complex.c (tree_lower_complex): Gate cleanup.
1862 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1863 (execute_optimize_stdarg): Ditto.
1864 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1865 (execute_cleanup_eh_1): Ditto.
1866 (execute_cleanup_eh): Ditto.
1867 * gcse.c (gate_rtl_pre): Ditto.
1868 (execute_rtl_pre): Ditto.
1869 * except.c (finish_eh_generation): Ditto.
1870 (convert_to_eh_region_ranges): Ditto.
1871 * cprop.c (one_cprop_pass): Ditto.
1873 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1876 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1877 in all basic blocks.
1879 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1881 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1882 (HAVE_ENABLE_EXECUTE_STACK): Define.
1883 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1884 (HAVE_ENABLE_EXECUTE_STACK): Define.
1885 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1886 (HAVE_ENABLE_EXECUTE_STACK): Define.
1887 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1888 (ENABLE_EXECUTE_STACK): Remove.
1889 (HAVE_ENABLE_EXECUTE_STACK): Define.
1890 [IN_LIBGCC2]: Don't include <windows.h>.
1891 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1892 (HAVE_ENABLE_EXECUTE_STACK): Define.
1893 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1894 (HAVE_ENABLE_EXECUTE_STACK): Define.
1895 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1896 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1897 (HAVE_ENABLE_EXECUTE_STACK): Define.
1898 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1899 (HAVE_ENABLE_EXECUTE_STACK): Define.
1900 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1901 (HAVE_ENABLE_EXECUTE_STACK): Define.
1902 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1903 (HAVE_ENABLE_EXECUTE_STACK): Define.
1904 * config/alpha/alpha.c (alpha_trampoline_init): Test
1905 HAVE_ENABLE_EXECUTE_STACK.
1906 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1907 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1908 (sparc64_initialize_trampoline): Likewise.
1909 * libgcc2.c [L_enable_execute_stack]: Remove.
1910 * system.h (ENABLE_EXECUTE_STACK): Poison.
1911 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1912 * doc/tm.texi: Regenerate.
1913 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1915 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1918 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1919 variable. After resetting and rescanning insn continue with previous
1922 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1924 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1925 (gcc_cv_ld_hidden): Likewise.
1926 * configure: Regenerate.
1927 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1928 (ix86_stack_protect_fail): Mark unused.
1929 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1930 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1931 [TARGET_MACHO]: Don't define.
1932 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1933 (TARGET_STACK_PROTECT_FAIL): Likewise.
1934 (rs6000_stack_protect_fail): Mark unused.
1935 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1936 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1938 2011-06-08 Andi Kleen <ak@linux.intel.com>
1940 * varasm.c (get_section): Print location of other conflict
1941 for section conflicts.
1943 2011-06-08 Andi Kleen <ak@linux.intel.com>
1945 * config/i386/driver-i386.c (host_detect_local_cpu):
1946 Add model 0x2d Intel CPU.
1948 2011-06-08 Andi Kleen <ak@linux.intel.com>
1950 * reginfo.c (global_regs_decl): Add.
1951 (globalize_reg): Add decl parameter. Compute location. Pass location
1952 to warnings and add inform. Store decl in global_regs_decl.
1953 * rtl.h (globalize_reg): Update prototype.
1954 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1956 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1958 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1960 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1963 * config/sh/predicates.md (general_movsrc_operand): Check
1964 mode for memory with indexed address for QI and HImode.
1965 (general_movdst_operand): Likewise.
1967 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1969 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1971 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1973 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1974 (num_ssa_operands): Likewise.
1975 (op_iter_init_phiuse): Forward-declare.
1976 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1978 2011-06-08 Nick Clifton <nickc@redhat.com>
1980 * doc/invoke.texi (ARM Options): Update description of
1983 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1985 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1986 unknown Intel family 0x6 CPUs.
1988 2011-06-08 Martin Jambor <mjambor@suse.cz>
1990 * tree-sra.c (mark_rw_status): Removed.
1991 (analyze_access_subtree): New parameter parent instead of
1992 mark_read and mark_write, propagate from that.
1994 2011-06-08 Julian Brown <julian@codesourcery.com>
1996 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1997 for double-precision helper functions in hard-float mode if only
1998 single-precision arithmetic is supported in hardware.
2000 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
2002 PR rtl-optimization/49303
2003 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2004 code_motion_path_driver returned 0 or 1.
2005 (sel_region_finish): Clear h_d_i_d.
2007 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2009 * config/sh/sh.c (prepare_move_operands): Set pic register
2010 appropriately for global and local dynamic tls models even
2011 if flag_pic is unset.
2013 2011-06-07 Jason Merrill <jason@redhat.com>
2015 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2017 2011-06-07 Xinliang David Li <davidxl@google.com>
2018 * passes.c (enable_disable_pass): Handle assembler name.
2019 (is_pass_explicitly_enabled_or_disabled): Ditto.
2021 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2023 PR tree-optimization/48497
2024 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2026 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2028 PR tree-optimization/46728
2029 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2030 to use gimple_val_nonnegative_real_p.
2031 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2032 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2034 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2036 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2038 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2040 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2043 2011-06-07 Richard Guenther <rguenther@suse.de>
2045 * stor-layout.c (initialize_sizetypes): Initialize all
2046 sizetypes based on target definitions.
2047 (set_sizetype): Remove.
2048 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2049 * tree.h (set_sizetype): Remove.
2051 2011-06-07 Nick Clifton <nickc@redhat.com>
2053 * config.gcc: Unify V850 architecture options and add support for
2054 newer V850 architectures.
2055 * config/v850/t-v850e: Delete.
2057 2011-06-07 Richard Guenther <rguenther@suse.de>
2059 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2060 Call set_sizetype from here.
2062 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
2064 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2065 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2067 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2068 Andrew Stubbs <ams@codesourcery.com>
2070 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2072 * doc/md.texi (Canonicalization of Instructions): Document widening
2073 multiply canonicalization.
2075 2011-06-07 Jakub Jelinek <jakub@redhat.com>
2077 PR gcov-profile/49299
2078 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2080 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
2082 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2084 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2085 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2086 vect_recog_pow_pattern): Likewise.
2087 (vect_pattern_recog_1): Remove declaration.
2088 (widened_name_p): Remove declaration. Add new argument to specify
2089 whether to check that both types are either signed or unsigned.
2090 (vect_recog_widen_mult_pattern): Update documentation. Handle
2091 unsigned patterns and multiplication by constants.
2092 (vect_pattern_recog_1): Update vect_recog_func references. Use
2093 statement information from the statement returned from pattern
2094 detection functions.
2095 (vect_pattern_recog): Update vect_recog_func reference.
2096 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2097 multiplication by a constant use the type of the other operand.
2099 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2101 PR rtl-optimization/49145
2102 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2104 2011-06-06 Jakub Jelinek <jakub@redhat.com>
2107 * dwarf2out.c (native_encode_initializer): Decrement count in each
2111 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2115 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2116 if stmt folded into nothing.
2117 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2118 a bb folded into nothing, just update cgraph edges and move to next bb.
2119 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2120 to be NULL. Don't compute count and frequency if new_call is NULL.
2122 2011-06-04 Diego Novillo <dnovillo@google.com>
2124 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2125 (cgraph.o): Likewise.
2126 (cgraphunit.o): Likewise.
2127 * cgraphunit.c: Include lto-streamer.h
2128 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2130 * lto-streamer-in.c (unpack_value_fields): Call
2131 streamer_hooks.unpack_value_fields if set.
2132 (lto_materialize_tree): For unhandled nodes, first try to
2133 call lto_streamer_hooks.alloc_tree, if it exists.
2134 (lto_input_ts_decl_common_tree_pointers): Move reading of
2135 DECL_INITIAL to lto_streamer_read_tree.
2136 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2137 (lto_streamer_read_tree): New.
2138 (lto_reader_init): Rename from lto_init_reader.
2139 Move initialization code to lto/lto.c.
2140 * lto-streamer-out.c (pack_value_fields): Call
2141 streamer_hooks.pack_value_fields if set.
2142 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2143 call streamer_hooks.indexable_with_decls_p before giving up.
2144 (lto_output_ts_decl_common_tree_pointers): Move handling
2145 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2146 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2147 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2148 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2149 (lto_streamer_write_tree): New.
2150 (lto_output): Call lto_streamer_init directly.
2151 (lto_writer_init): Remove.
2152 * lto-streamer.c (streamer_hooks): New.
2153 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2154 instead of lto_preload_common_nodes.
2155 (lto_is_streamable): Move from lto-streamer.h
2156 (lto_streamer_hooks_init): New.
2157 (streamer_hooks): New.
2158 (streamer_hooks_init): New.
2159 * lto-streamer.h (struct output_block): Forward declare.
2160 (struct lto_input_block): Likewise.
2161 (struct data_in): Likewise.
2162 (struct bitpack_d): Likewise.
2163 (struct streamer_hooks): Declare.
2164 (streamer_hooks): Declare.
2165 (lto_streamer_hooks_init): Declare.
2166 (lto_streamer_write_tree): Declare.
2167 (lto_streamer_read_tree): Declare.
2168 (streamer_hooks_init): Declare.
2169 (lto_is_streamable): Move to lto-streamer.c
2171 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2173 * longlong.h (smul_ppmm): The resulting register pair contains the
2174 higher order word first.
2176 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2178 PR tree-optimization/46728
2179 * builtins.c (powi_table): Remove.
2180 (powi_lookup_cost): Remove.
2181 (powi_cost): Remove.
2182 (expand_powi_1): Remove.
2183 (expand_powi): Remove.
2184 (expand_builtin_pow_root): Remove.
2185 (expand_builtin_pow): Remove.
2186 (expand_builtin_powi): Eliminate handling of constant exponent.
2187 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2189 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2191 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2193 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2195 * dce.c (reset_unmarked_insns_debug_uses): New.
2196 (delete_unmarked_insns): Skip debug insns.
2197 (prescan_insns_for_dce): Likewise.
2198 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2199 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2200 active reg can be found.
2201 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2202 (convert_regs_1): Use it.
2204 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2206 * tree-pretty-print.c (dump_function_header): Add flags.
2207 Don't dump decl_uid with nouid.
2208 * tree-pretty-print.h (dump_function_header): Adjust.
2209 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2210 * passes.c (pass_init_dump_file): Pass dump_flags on.
2211 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2213 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2216 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2218 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2220 PR tree-optimization/49243
2221 * calls.c (setjmp_call_p): Also check if fndecl has the
2222 returns_twice attribute.
2224 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2226 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2229 2011-06-06 Richard Henderson <rth@redhat.com>
2230 Georg-Johann Lay <avr@gjlay.de>
2233 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2235 * config/avr/avr.md ("insv"): New insn expander.
2236 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2237 "*insv.not.io", "*insv.reg"): New insns.
2239 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2242 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2243 to nonimmediate_operand from memory_operand for the operand that is to
2244 be forced to memory by the expander. Lose the constraints.
2246 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2248 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2249 EH return when delayed branches are disabled.
2251 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
2253 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2254 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2256 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2257 Simplify MODE_V1DF and MODE_V2SF handling.
2258 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2259 Simplify MODE_SF handling.
2261 2011-06-04 Jan Hubicka <jh@suse.cz>
2263 PR tree-optimization/48893
2264 PR tree-optimization/49091
2265 PR tree-optimization/49179
2266 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2269 2011-06-04 Jan Hubicka <jh@suse.cz>
2272 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2275 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2277 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2279 2011-06-04 Jakub Jelinek <jakub@redhat.com>
2282 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2283 to be strictly smaller than 1 << shiftcount.
2285 2011-06-04 Jan Hubicka <jh@suse.cz>
2287 PR tree-optimize/48929
2288 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2291 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
2294 * calls.c (emit_call_1): Prefer the __builtin declaration of
2297 2011-06-03 Diego Novillo <dnovillo@google.com>
2299 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2300 (lto_input_tree_pointers): Likewise.
2301 * lto-streamer-out.c (pack_value_fields): Likewise.
2302 (lto_output_tree_pointers): Likewise.
2303 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2304 and OPTIMIZATION_NODE.
2306 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2308 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2309 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2310 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2311 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2312 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2313 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2314 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2315 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2316 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2317 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2318 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2319 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2320 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2321 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2322 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2323 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2324 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2325 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2326 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2327 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2328 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2329 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2330 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2331 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2332 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2333 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2334 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2335 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2336 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2337 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2338 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2339 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2340 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2341 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2342 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2343 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2344 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2345 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2346 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2347 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2348 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2349 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2350 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2351 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2352 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2353 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2354 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2355 * system.h (MD_UNWIND_SUPPORT): Poison.
2356 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2357 * doc/tm.texi: Regenerate.
2358 * unwind-dw2.c: Include md-unwind-support.h instead of
2360 * config/ia64/unwind-ia64.c: Likewise.
2361 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2363 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
2365 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2367 2011-06-03 Richard Henderson <rth@redhat.com>
2368 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2370 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2371 (sigill_hdlr): Correct insn, insn size.
2372 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2374 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2376 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2378 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2379 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2380 * config/mips/t-iris: Remove.
2381 * config/mips/t-irix6: New file.
2382 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2384 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2386 * Makefile.in (LIB2ADDEHDEP): Remove.
2387 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2388 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2389 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2390 * config/t-darwin (LIB2ADDEHDEP): Remove.
2391 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2392 * config/t-linux (LIB2ADDEHDEP): Remove.
2394 2011-06-03 Diego Novillo <dnovillo@google.com>
2396 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2397 (lto_register_var_decl_in_symtab): Likewise.
2398 (lto_register_function_decl_in_symtab): Likewise.
2399 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2400 logic to uniquify_nodes.
2402 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2404 * config/alpha/t-osf5: Remove.
2405 * config/alpha/t-osf-pthread: Remove.
2406 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2407 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2409 2011-06-03 Julian Brown <julian@codesourcery.com>
2411 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2412 (strongarm1110): Use strongarm tuning.
2413 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2414 * config/arm/arm.c (arm_strongarm_tune): New.
2415 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2416 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2417 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2418 setting, using previous defaults or 1 for Cortex-A5.
2419 (arm_option_override): Set max_insns_skipped from current tuning.
2421 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
2423 * doc/install.texi (Options specification): Document --with-specs.
2425 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2427 * config/arm/neon.md (orndi3_neon): Actually split it.
2429 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2431 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2432 * var-tracking.c (reverse_op): Limite recurse depth to 5.
2434 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2437 * target.def (delay_sched2, delay_vartrack): New.
2438 * doc/tm.texi.in: Update.
2439 * doc/tm.texi: Rebuild.
2440 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2441 * var-tracking.c (gate_handle_var_tracking): Likewise.
2442 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2443 (bfin_flag_var_tracking): Drop.
2444 (output_file_start): Don't save and override flag_var_tracking.
2445 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2446 (bfin_reorg): Test original variables.
2447 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2448 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2449 (ia64_flag_var_tracking): Drop.
2450 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2451 (ia64_file_start): Don't save and override flag_var_tracking.
2452 (ia64_override_options_after_change): Ditto
2453 flag_schedule_insns_after_reload.
2454 (ia64_reorg): Test original variables.
2455 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2456 (picochip_flag_var_tracking): Drop.
2457 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2458 (picochip_option_override): Don't save and override
2459 flag_schedule_insns_after_reload.
2460 (picochip_asm_file_start): Ditto flag_var_tracking.
2461 (picochip_reorg): Test original variables.
2462 * config/spu/spu.c (spu_flag_var_tracking): Drop.
2463 (TARGET_DELAY_VARTRACK): Define.
2464 (spu_var_tracking): New.
2465 (spu_machine_dependent_reorg): Call it.
2466 (asm_file_start): Don't save and override flag_var_tracking.
2468 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2471 * config/sh/predicates.md (general_movsrc_operand): Return 0
2472 for memory and memory subreg of which address is an invalid
2473 indexed address for QI and HImode.
2474 (general_movdst_operand): Likewise.
2476 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2478 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2479 edges only, when there is a non-local label in the function.
2480 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2482 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2484 * config/i386/constraints.md (Y3): New register constraint.
2485 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
2486 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
2487 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
2488 *sse2_interleave_lowv2df.
2490 2011-06-02 Julian Brown <julian@codesourcery.com>
2492 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
2493 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
2494 (arm_cortex_a5_tune): New.
2496 2011-06-02 Julian Brown <julian@codesourcery.com>
2498 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
2499 * config/arm/arm.c (arm_default_branch_cost): New.
2500 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2501 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
2502 (arm_fa726_tune): Set branch_cost field using
2503 arm_default_branch_cost.
2504 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
2505 current_tune structure.
2506 * dojump.c (tm_p.h): Include file.
2508 2011-06-02 Julian Brown <julian@codesourcery.com>
2510 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
2512 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
2513 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
2514 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
2516 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2517 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
2518 (arm_fa726te_tune): Add prefer_constant_pool setting.
2519 (arm_v6t2_tune, arm_cortex_tune): New.
2520 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
2521 prefer_constant_pool setting.
2523 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2525 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
2527 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
2528 (*movdf_internal) <case 6,7,8>: Ditto.
2530 * config/i386/constraints.md (Y4): New register constraint.
2531 * config/i386/sse.md (vec_set<mode>_0): Merge with
2532 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
2533 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2534 *vec_extractv2di_1_sse.
2535 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2536 and *vec_concatv2di_rex64_sse.
2538 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2541 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2542 of cgraph_local_info for null before attempting to use it.
2544 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2546 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2547 (current_function_dynamic_alloc_count): Delete.
2548 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2549 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2550 (expand_builtin_update_setjmp_buf): Remove dead code.
2551 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2552 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2554 * function.c (instantiate_virtual_regs): Likewise.
2555 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2556 for a block with a single abnormal incoming edge.
2557 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2558 (SETJMP_VIA_SAVE_AREA): Delete.
2559 * config/sparc/sparc-protos.h (load_got_register): Declare.
2560 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2561 (load_got_register): Make global.
2562 (sparc_frame_pointer_required): Add 'static'.
2563 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2564 (sparc_builtin_setjmp_frame_value): New function.
2565 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2566 (save_stack_nonlocal): New expander.
2567 (restore_stack_nonlocal): Likewise.
2568 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2569 (nonlocal_goto_internal): New insn.
2570 (goto_handler_and_restore): Delete.
2571 (builtin_setjmp_setup): Likewise.
2572 (do_builtin_setjmp_setup): Likewise.
2574 (builtin_setjmp_receiver): New expander.
2576 2011-06-01 David Li <davidxl@google.com>
2579 * tree-pretty-print.c (dump_function_header): Format cleanup.
2581 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2584 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2585 needed when original operands are used for msw_skip comparison.
2587 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2590 * var-tracking.c (add_uses, add_stores): Don't call
2591 cselib_subst_to_values on ENTRY_VALUE.
2593 2011-06-01 Diego Novillo <dnovillo@google.com>
2595 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2596 output_record_start with LTO_null instead of output_zero.
2597 (lto_output_ts_binfo_tree_pointers): Likewise.
2598 (lto_output_tree): Likewise.
2599 (output_eh_try_list): Likewise.
2600 (output_eh_region): Likewise.
2601 (output_eh_lp): Likewise.
2602 (output_eh_regions): Likewise.
2603 (output_bb): Likewise.
2604 (output_function): Likewise.
2605 (output_unreferenced_globals): Likewise.
2606 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2607 instead of NUM_TREE_CODES.
2608 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2609 (lto_output_int_in_range): Change << to >> when shifting VAL.
2611 2011-06-01 Diego Novillo <dnovillo@google.com>
2613 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2614 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2616 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2619 * optabs.h (valid_multiword_target_p): Declare.
2620 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2621 doing multi-word operations.
2622 * optabs.c (expand_binop): Likewise.
2623 (expand_doubleword_bswap): Likewise.
2624 (expand_absneg_bit): Likewise.
2625 (expand_unop): Likewise.
2626 (expand_copysign_bit): Likewise.
2627 (multiword_target_p): New function.
2629 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2631 PR rtl-optimization/48830
2632 PR rtl-optimization/48808
2633 PR rtl-optimization/48792
2634 * reload.c (push_reload): Check contains_reg_of_mode.
2635 * reload1.c (strip_paradoxical_subreg): New function.
2636 (gen_reload_chain_without_interm_reg_p): Use it to handle
2637 paradoxical subregs.
2638 (emit_output_reload_insns, gen_reload): Likewise.
2640 2011-06-01 David Li <davidxl@google.com>
2642 * predict.c : Change pass name
2645 * tree-profile.c: Ditto.
2648 2011-06-01 David Li <davidxl@google.com>
2650 * tree-pretty-print.c (dump_function_header): New function.
2651 * final.c (rest_of_clean_state): Use header dumper.
2652 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2653 * passes.c (pass_init_dump_file): Use header dumper.
2655 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2657 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2658 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2659 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2661 (mem_loc_descriptor): Use them.
2663 * var-tracking.c (create_entry_value): New function.
2664 (vt_add_function_parameter): Use it.
2666 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2668 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2669 Include <signal.h>, <ucontext.h>.
2670 (sigill_caught): Define.
2671 (sigill_hdlr): New function.
2672 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2673 insns can be executed.
2674 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2675 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2677 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2679 * config/t-slibgcc-darwin: Move to ...
2680 * config/t-slibgcc-dummy: ... this. Clarify comments.
2681 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2682 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2683 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2684 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2685 Remove i386/t-crtstuff from tmake_file.
2686 (i[34567]86-*-solaris2*): Remove t-svr4,
2687 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2689 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2690 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2691 sparc/t-crtfm from tmake_file.
2692 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2693 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2695 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2696 * config/i386/t-nwld (SHLIB_LINK): Remove.
2697 * config/i386/t-rtems-i386: Rename to ...
2698 * config/i386/t-rtems: ... this.
2699 ($(T)crti.o, $(T)crtn.o): Remove.
2700 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2701 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2702 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2703 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2704 EXTRA_MULTILIB_PARTS): Remove.
2705 * config/sparc/t-sol2-64: Likewise.
2706 * config/sparc/t-sol2: Remove.
2707 * config/sparc/t-crtin: Remove.
2708 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2709 * config/i386/gmon-sol2.c: Remove.
2710 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2711 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2712 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2713 * config/i386/sol2-gc1.asm: Remove.
2714 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2715 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2716 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2717 * config/t-slibgcc-sld: Remove.
2719 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2721 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2722 base_type_for_mode with op_mode instead of mode.
2724 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2726 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2728 * config/arm/arm-tune.md: Regenerate.
2729 * config/arm/arm-tables.opt: Regenerate.
2730 * config/arm/arm.c (FL_DIV): Rename...
2731 (FL_THUMB_DIV): ... to this.
2732 (FL_ARM_DIV): Define.
2733 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2734 (arm_arch_hwdiv): Remove.
2735 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2736 (arm_issue_rate): Add cortexr5.
2737 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2738 __ARM_ARCH_EXT_IDIV__.
2739 (TARGET_IDIV): Define.
2740 (arm_arch_hwdiv): Remove.
2741 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2742 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2743 (divsi3, udivsi3): New patterns.
2744 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2745 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2747 2011-06-01 Martin Jambor <mjambor@suse.cz>
2749 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2750 * ipa-utils.c (searchc): Set scc_no.
2752 2011-06-01 Martin Jambor <mjambor@suse.cz>
2754 * ipa-utils.c (searchc_env): New field allow_overwritable.
2755 (searchc): do not ignore edges to overwritable nodes if indicated
2756 by env->allow_overwritable.
2757 (ipa_reduced_postorder): Set env.allow_overwritable.
2759 2011-06-01 Richard Guenther <rguenther@suse.de>
2761 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2763 * lto-streamer.c (lto_record_common_node): Take node pointer,
2764 do not register types.
2765 (lto_preload_common_nodes): Explicitly skip preloading nodes
2766 that differ between frontends.
2768 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2770 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2773 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2775 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2776 parameter value for dump. Dump cost on outermost call only.
2777 (rs6000_memory_move_cost): Dump cost on outermost call only.
2779 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2781 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2782 DW_OP_GNU_convert ops.
2784 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2785 cselib_preserve_constants.
2786 (cselib_lookup_1): If cselib_preserve_constants,
2787 a new VALUE is being created for REG and there is a VALUE for the
2788 same register in wider mode, add another loc with lowpart SUBREG of
2790 (cselib_subst_to_values): Handle ENTRY_VALUE.
2791 * var-tracking.c (replace_expr_with_values): Return NULL for
2793 * dwarf2out.c (convert_descriptor_to_signed): New function.
2794 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2795 instead of two shifts.
2796 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2797 the right mode if needed.
2798 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2799 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2800 convert_descriptor_to_signed.
2801 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2802 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2805 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2807 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2809 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2810 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2811 (SWI248x): New mode iterator, rename from X87MODEI.
2812 (X87MODEI): Remove mode iterator.
2813 (X87MODEI12): Ditto.
2814 (SSEMODEI24): Ditto.
2816 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2818 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2819 * doc/invoke.texi: Document max-vartrack-expr-depth.
2820 * var-tracking.c (EXPR_DEPTH): New.
2821 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2823 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2825 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2826 * config/i386/sse.md: Add n to negated FMA pattern names.
2828 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2830 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2832 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2834 * gengtype-state.c (read_state_params_structs): Initialize previous.
2836 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2838 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2839 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2841 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2843 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2844 registers. Penalize F*r->o alternative to prevent partial memory
2845 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2846 CONST_DOUBLE immediates when optimizing function for size. Do not move
2847 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2848 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2849 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2850 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2852 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2854 (fp_register_operand splitters): Use fp_register_operand
2855 constraint. Do not use FP_REG_P in insn condition.
2856 (any_fp_register_operand splitters): Use any_fp_register_operand
2857 constraint. Do not use ANY_FP_REG_P in insn condition.
2859 2011-05-31 Jan Hubicka <jh@suse.cz>
2861 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2862 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2863 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2864 (lto_output_edge): Use output_enum and var_len_unsigned.
2865 (lto_output_varpool_node): Likewise.
2866 (input_overwrite_node): Do not take resolution parameter;
2867 extract it from a bitpack.
2868 (input_node): Do not read resolution; use input_enum and
2870 (input_varpool_node): Likewise.
2871 (input_edge): Likewise.
2872 (input_cgraph_1): Likewise.
2874 2011-05-31 Richard Guenther <rguenther@suse.de>
2876 * gimple.c (gimple_register_canonical_type): Do not register
2877 any types via gimple_register_type.
2879 2011-05-31 Jan Hubicka <jh@suse.cz>
2881 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2884 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2886 PR rtl-optimization/49235
2887 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2888 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2890 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2892 PR tree-optimization/49093
2893 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2896 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2899 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2900 for concrete functions containing the code of cloned functions.
2902 2011-05-31 Richard Guenther <rguenther@suse.de>
2904 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2906 (forward_propagate_into_comparison_1): ... this.
2907 (forward_propagate_comparison): Rename to ...
2908 (forward_propagate_into_comparison): ... this. Split out
2909 real forward propagation code to ...
2910 (forward_propagate_comparison): ... this.
2911 (forward_propagate_into_gimple_cond): Remove looping.
2912 (forward_propagate_into_cond): Likewise.
2913 (simplify_not_neg_expr): Return whether we have done something.
2914 (simplify_gimple_switch): Likewise.
2915 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2916 (ssa_forward_propagate_and_combine): ... this. Re-structure
2917 to do a forward forward-propagation walk on BBs and a backward
2918 stmt combining walk on BBs. Consistently re-scan changed statements.
2919 (pass_forwprop): Adjust.
2921 2011-05-30 Ian Lance Taylor <iant@google.com>
2923 * godump.c (go_format_type): Correct length of name added to
2924 obstack for anonymous field.
2926 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2929 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2930 part of the second operand is 0.
2932 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2934 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2935 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2936 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2937 (*movdf_internal_rex64): Do not penalize F->r alternative.
2938 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2939 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2940 when optimizing function for size. Do not move CONST_DOUBLEs
2941 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2942 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2943 SUBREGs. Do not check for MEM_P operands in the insn condition,
2944 check for ANY_FP_REGNO_P instead.
2945 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2946 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2948 * config/i386/i386.c (ix86_option_override_internal): Do not
2949 set TARGET_INTEGER_DFMODE_MOVES here.
2951 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2954 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2956 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2958 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2959 DW_TAG_rvalue_reference_type even for
2960 -gdwarf-4 -fno-debug-types-section.
2962 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2964 PR tree-optimization/46728
2965 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2966 (build_and_insert_binop): New.
2967 (gimple_expand_builtin_pow): Reorder args for
2968 build_and_insert_call; use build_and_insert_binop; add more
2969 optimizations for fractional exponents.
2971 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2976 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2978 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2980 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2981 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2982 TS_BASE instead of TS_COMMON.
2983 * varasm.c (assemble_name): Remove assert.
2985 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2987 * config.gcc: Keep obselete list sorted.
2989 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2990 Eric Botcazou <ebotcazou@adacore.com>
2992 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2993 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2994 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2995 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2996 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2998 2011-05-30 Richard Guenther <rguenther@suse.de>
3000 * gimple.c (gimple_types_compatible_p_1): Compare record
3001 and union type members properly.
3003 2011-05-30 Richard Guenther <rguenther@suse.de>
3005 PR tree-optimization/49210
3006 * ipa-split.c (split_function): Care for the case where the call
3007 result is not trivially convertible to the result holding variable.
3009 2011-05-30 Richard Guenther <rguenther@suse.de>
3011 PR tree-optimization/49218
3012 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3015 2011-05-30 Richard Guenther <rguenther@suse.de>
3017 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3018 New function split out from ...
3019 (forward_propagate_into_gimple_cond): ... here. Adjust.
3020 (forward_propagate_into_cond): Likewise.
3021 (forward_propagate_comparison): Also propagate into
3022 comparisons on assignment RHS. Change return value to
3023 behave similar to forward_propagate_into_cond.
3024 (tree_ssa_forward_propagate_single_use_vars): Handle
3025 strict-overflow warnings properly for forward_propagate_comparison.
3027 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3029 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3031 * configure: Regenerate.
3033 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
3035 PR tree-optimization/49199
3036 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3037 non-reduction operands are either defined in the loop or by induction.
3039 2011-05-29 Xinliang David Li <davidxl@google.com>
3041 * opts-global.c (handle_common_deferred_options): Handle new options.
3042 * passes.c (register_one_dump_file): Call register_pass_name.
3043 (execute_one_pass): Check explicit enable/disable flag.
3044 (passr_hash): New function.
3046 (register_pass_name): Ditto.
3047 (get_pass_by_name): Ditto.
3050 (enable_pass): Ditto.
3051 (disable_pass): Ditto.
3052 (is_pass_explicitly_enabled_or_disabled): Ditto.
3054 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
3056 * config/i386/i386.md (*movoi_internal_avx): Use
3057 standard_sse_constant_opcode for alternative 0.
3058 (*movti_internal_sse): Ditto.
3059 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3061 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3063 (*movsi_internal): Ditto.
3064 (*movdi_internal): Ditto. Add ssecvt type moves.
3066 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3069 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3071 2011-05-29 Jakub Jelinek <jakub@redhat.com>
3073 PR rtl-optimization/49095
3074 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3075 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3077 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3080 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3081 recurse_p argument. Only follow register copies if it is set,
3082 and prevent mips_find_pic_call_symbol from recursing.
3083 (mips_find_pic_call_symbol): Add a recurse_p argument.
3084 Pass it to mips_pic_call_symbol_from_set.
3085 (mips_annotate_pic_calls): Update accordingly.
3087 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3089 * emit-rtl.c (try_split): Use a loop to search for
3090 NOTE_INSN_CALL_ARG_LOCATIONs.
3092 2011-05-29 Richard Guenther <rguenther@suse.de>
3094 PR tree-optimization/49217
3095 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3097 2011-05-28 Jan Hubicka <jh@suse.cz>
3099 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3101 (string_slot_free): Remove
3102 (create_output_block): Initialize obstack.
3103 (destroy_output_block): Free obstack.
3104 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3105 the string unless it needs to be added into the hash.
3106 (lto_output_string_with_length): Add persistent attribute;
3107 handle NULL strings.
3108 (lto_output_string): Add PERSISTENT parameter.
3109 (output_string_cst, output_identifier): Simplify.
3110 (lto_output_location_bitpack): Update.
3111 (lto_output_builtin_tree): Update.
3112 * lto-streamer.h (struct output_block): Add obstack.
3113 (lto_output_string, lto_output_string_with_length): Remove
3114 declarations; functions are static now.
3116 2011-05-28 Jan Hubicka <jh@suse.cz>
3118 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3119 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3120 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3121 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3122 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3123 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3124 unpack_ts_decl_with_vis_value_fields,
3125 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3126 lto_get_builtin_tree): Use enum and variable length i/o.
3127 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3128 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3130 (bp_pack_enum, bp_unpack_enum): New macros.
3132 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3134 * genrecog.c: Remove redundant forward declarations.
3136 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3138 * config.gcc: Deprecate mips*-*-openbsd*.
3140 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3143 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3146 2011-05-27 Andrew Pinski <pinskia@gmail.com>
3149 * gengtype.c (vec_prefix_type): New function.
3150 (note_def_vec): Use vec_prefix_type and change the length
3151 attribute to be based on the prefix.
3152 * vec.c: Include coretypes.h before vec.h.
3153 (struct vec_prefix): Remove.
3154 (vec_gc_p_reserve): Change the offsetof to sizeof.
3155 (vec_gc_p_reserve_exact): Likewise.
3156 (vec_heap_p_reserve): Likewise.
3157 (vec_heap_p_reserve_exact): Likewise.
3158 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3159 (vec_stack_p_reserve): Change the offsetof to sizeof.
3160 (vec_stack_p_reserve_exact): Likewise.
3161 * vec.h (struct vec_prefix): New struct definition.
3162 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3163 (VEC_T_GTY(T,B)): Likewise.
3164 (DEF_VEC_FUNC_P(T)): Use prefix field.
3165 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3166 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3168 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3170 PR tree-optimization/46728
3171 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3172 (powi_as_mults): Add gimple_set_location.
3173 (build_and_insert_call): New.
3174 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3175 0.5, 0.25, 0.75, 1./3., or 1./6.
3177 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
3179 * doc/contrib.texi: Update copyright years.
3180 (Contributors): Add Zdenek Sojka.
3182 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3184 * c-decl.c (c_push_function_context): Copy the current statement
3186 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3187 (finish_struct): Call building_stmt_list_p instead of checking
3189 * c-parser.c (c_parser_postfix_expression): Likewise.
3190 * c-typeck.c (c_end_compound_stmt): Likewise.
3191 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3192 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3193 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3194 (free_stmt_list): Likewise.
3195 * tree.h (struct tree_statement_list): Include typed_tree instead
3197 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3198 as TS_TYPED instead of TS_COMMON.
3200 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3201 Uros Bizjak <ubizjak@gmail.com>
3203 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3204 (HAVE_AS_IX86_TLSGDPTL): Define.
3205 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3206 (HAVE_AS_IX86_TLSLDMPLT): Define.
3207 * configure: Regenerate.
3208 * config.in: Regenerate.
3209 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3210 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3211 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3212 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3213 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3215 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3217 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3219 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3221 (INSN_COND, INSN_REVERSE_COND): New macros.
3222 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3224 (sched_get_condition_with_rev): Cache the results, and look them up
3226 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3227 are clobbered by the current insn.
3228 * target.def (exposed_pipline): New sched data hook.
3229 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3230 * doc/tm.texi: Regenerate.
3232 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3234 PR tree-optimization/49170
3235 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3238 2011-05-27 Richard Guenther <rguenther@suse.de>
3241 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3244 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3246 * haifa-sched.c (sched_scan_info): Remove.
3247 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3249 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3251 (sched_scan): Remove.
3252 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3253 static. All callers changed.
3254 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3255 static. All callers changed.
3256 (sched_init_luids): Remove all arguments except the first. All
3257 callers changed. Don't use sched_scan.
3258 (haifa_init_h_i_d): Likewise.
3259 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3260 manually rather than using sched_init_luids. Likewise with
3261 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3262 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3263 rather than sched_init_luids with NULL args.
3264 * sel-sched-ir.c (new_insns): Remove variable.
3265 (sched_scan): New static function, previously in haifa-sched.c. Remove
3266 all arguments but the first two; all callers changed.
3267 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3268 rather than sched_init_luids.
3269 (sel_init_bbs): Remove second argument. All callers changed.
3270 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3271 with NULL arguments.
3272 (create_insn_rtx_from_pattern): Likewise.
3273 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3274 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3275 (sched_init_insn_luid, sched_extend_luids): Declare.
3276 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3279 2011-05-27 Richard Guenther <rguenther@suse.de>
3282 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3283 A CMP B ? (T) true : (T) false for non-integral types T again.
3285 2011-05-27 Jan Hubicka <jh@suse.cz>
3287 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3288 so 0 means NULL string.
3289 (lto_output_string_with_length): ... here.
3290 (lto_output_string, output_string_cst, output_identifier): Update
3291 handling of NULL strings.
3292 (lto_output_location_bitpack): New function.
3293 (lto_output_location): Use it.
3294 (lto_output_tree_ref): Use output_record_start.
3295 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3297 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3299 (input_string_internal): ... here;
3300 (input_string_cst, input_identifier, lto_input_string): Update handling
3302 (lto_input_location_bitpack): New function
3303 (lto_input_location): Use it.
3304 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3306 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3307 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3308 (bp_pack_value): Sanity check the value range.
3309 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3311 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3314 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
3316 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3317 call_arg_location instructions down the floor.
3319 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3321 PR rtl-optimization/49154
3322 * ira.c (setup_pressure_classes): Process class without sublcasses
3323 as a candidate for pressure classes.
3325 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3327 PR rtl-optimization/48575
3328 * genrecog.c (position_type): New enum.
3329 (position): New structure.
3330 (decision): Use position structure instead of a string.
3331 (root_pos, peep2_insn_pos_list): New variables.
3332 (next_position, compare_positions): New functions.
3333 (new_decision): Use position structures instead of strings.
3334 (maybe_both_true): Likewise.
3335 (change_state): Likewise.
3336 (write_tree): Likewise.
3337 (make_insn_sequence): Likewise.
3339 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3341 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3342 TS_BASE instead of TS_COMMON.
3343 (find_decls_types_r): Check for TS_TYPED structure before looking at
3345 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3347 (BLOCK_CHAIN): Use new chain field.
3349 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
3351 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3352 moves expensive on Power7 also.
3354 2011-05-26 Richard Guenther <rguenther@suse.de>
3356 * fold-const.c (fold_unary_loc): Remove bogus code.
3358 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3360 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3362 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3363 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3364 TS_BASE instead of TS_COMMON.
3365 * varasm.c (assemble_name): Remove assert.
3367 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3369 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3371 * libgcc-std.ver: Delete file.
3373 2011-05-26 Richard Guenther <rguenther@suse.de>
3375 PR tree-optimization/48702
3376 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3377 only when we know the base address is within bounds.
3378 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3379 assume the base address of TARGET_MEM_REFs is in bounds.
3381 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3384 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3385 declaration in TARGET_SOLARIS.
3387 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
3389 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3390 The instruction is then expanded explicitly.
3391 (supported_compare): Callable instruction.
3392 (compare): Likewise.
3394 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3397 * gimplify.c (shortcut_cond_r): Don't special case
3398 COND_EXPRs if they have void type on one of their arms.
3400 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3402 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3403 to reduce duplication, and to achieve a slightly more logical order
3406 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3408 PR tree-optimization/49161
3409 * tree-vrp.c (struct case_info): New type.
3410 (compare_case_labels): Sort case_info structs instead of
3411 trees, and not primarily by CASE_LABEL uids but by
3412 label_for_block indexes.
3413 (find_switch_asserts): Put case labels into struct case_info
3414 array instead of TREE_VEC, adjust sorting, compare label_for_block
3415 values instead of CASE_LABELs.
3417 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3419 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3420 ("orndi3_neon"): Likewise.
3421 ("bic<mode>3_neon"): Likewise.
3423 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
3425 PR tree-optimization/49038
3426 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3427 Ensure at least one epilogue iteration if required by data
3429 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3430 to mark loops that require peeling for gaps.
3431 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3432 (vect_get_known_peeling_cost): Take peeling for gaps into
3434 (vect_transform_loop): Generate epilogue if required by data
3436 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3437 loop as requiring an epilogue if there are gaps in the end of
3440 2011-05-25 Ian Lance Taylor <iant@google.com>
3442 * godump.c (go_format_type): Output the first field with a usable
3445 2011-05-25 Ian Lance Taylor <iant@google.com>
3447 * godump.c (go_format_type): Check for invalid type names, pointer
3448 target types, and struct field types.
3450 2011-05-25 Jason Merrill <jason@redhat.com>
3452 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3454 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
3456 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3458 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3460 * config/i386/i386.md (*movqi_extv_1)): Put back
3461 "register_operand" check in "type" calculation.
3462 (*movqi_extzv_2): Likewise.
3464 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3466 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
3468 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3471 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3472 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3473 __divxc3, __divtc3): Wrap definitions in #ifndef.
3475 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3478 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3479 "register_operand" check and replace q_regs_operand with
3480 QIreg_operand in "type" calculation.
3481 (*movqi_extv_1): Likewise.
3482 (*movqi_extzv_2_rex64): Likewise.
3483 (*movqi_extzv_2): Likewise.
3485 * config/i386/predicates.md (QIreg_operand): New.
3487 2011-05-25 Richard Guenther <rguenther@suse.de>
3489 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
3490 type-based offset disambiguation, streamline MEM_REF and
3491 TARGET_MEM_REF handling.
3493 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3495 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
3496 (bdesc_special_args): Add pause intrinsic.
3498 * config/i386/i386.md (UNSPEC_PAUSE): New.
3501 * config/i386/ia32intrin.h (__pause): Likewise.
3503 * doc/extend.texi (X86 Built-in Functions): Add documentation for
3506 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3508 PR tree-optimization/46728
3509 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
3510 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
3512 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
3514 * tree.h (struct tree_exp): Inherit from struct tree_typed.
3515 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
3516 instead of TS_COMMON.
3518 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3520 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
3521 LIBGCC2_GNU_PREFIX is defined.
3523 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
3524 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
3525 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
3526 __clz_tab): Define using __N.
3527 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
3528 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
3529 * target.def (libfunc_gnu_prefix): New hook.
3530 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
3531 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
3532 * doc/tm.texi: Regenerate.
3533 * system.h (LIBGCC2_GNU_PREFIX): Poison.
3534 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3536 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3537 (init_optabs): Likewise for the bswap libfuncs.
3538 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3540 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3541 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3542 * libgcc-std.ver: Remove.
3543 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3544 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3546 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3547 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3548 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3549 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3550 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3551 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3552 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3553 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3554 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3555 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3557 2011-05-25 Jan Hubicka <jh@suse.cz>
3559 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3560 (lto_output_tree): Use output_record_start.
3561 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3562 (lto_get_pickled_tree): Use input_record_start.
3563 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3564 (lto_value_range_error): New function.
3565 * lto-streamer.h (lto_value_range_error): Declare.
3566 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3567 (lto_output_enum, lto_input_enum): New macros.
3569 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3571 * common.opt (flag_stack_usage_info): New variable.
3572 (-Wstack-usage): New option.
3573 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3574 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3575 <OPT_fstack_usage>: Likewise.
3576 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3577 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3578 of flag_stack_usage.
3579 (emit_library_call_value_1): Likewise.
3580 * explow.c (allocate_dynamic_stack_space): Likewise.
3581 * function.c (instantiate_virtual_regs ): Likewise.
3582 (prepare_function_start): Likewise.
3583 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3584 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3585 * config/arm/arm.c (arm_expand_prologue): Likewise.
3586 (thumb1_expand_prologue): Likewise.
3587 * config/avr/avr.c (expand_prologue): Likewise.
3588 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3589 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3590 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3591 * config/mips/mips.c (mips_expand_prologue): Likewise.
3592 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3593 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3594 * config/s390/s390.c (s390_emit_prologue): Likewise.
3595 * config/sh/sh.c (sh_expand_prologue): Likewise.
3596 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3597 * config/spu/spu.c (spu_expand_prologue): Likewise.
3599 2011-05-25 Richard Guenther <rguenther@suse.de>
3601 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3602 (gimple_canonical_types_compatible_p): Likewise.
3604 2011-05-25 Jan Hubicka <jh@suse.cz>
3607 * ipa.c (function_and_variable_visibility): Only add to same
3608 comdat group list if DECL_ONE_ONLY.
3610 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3612 PR rtl-optimization/49014
3613 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3615 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3618 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3620 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3622 PR rtl-optimization/48757
3623 * ira-build.c (loop_with_eh_edge_p): Rename to
3624 loop_with_complex_edge_p, check edges on complexity, make function
3626 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3629 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3631 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3632 force flag_ira_share_save_slots to 0.
3634 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3636 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3637 (vt_initialize): Set PROLOGUE_BB unconditionally.
3638 Add block comment about CFA_BASE_RTX machinery.
3639 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3640 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3642 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3645 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3646 parsing of syntax error in ObjC instance variable lists. In
3647 particular, avoid an infinite loop if there is a stray ']'.
3648 Updated error message.
3650 2011-05-24 Ian Lance Taylor <iant@google.com>
3652 * godump.c (go_define): Don't accept a string immediately after
3655 2011-05-24 Ian Lance Taylor <iant@google.com>
3657 * godump.c (struct godump_container): Add invalid_hash field.
3658 (go_format_type): Return false if type is found in invalid_hash.
3659 (go_output_typedef): Add invalid type to invalid_hash.
3660 (go_finish): Create and delete invalid_hash.
3662 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3664 PR tree-optimization/46728
3665 * tree-ssa-math-opts.c (powi_table): New.
3666 (powi_lookup_cost): New.
3668 (powi_as_mults_1): New.
3669 (powi_as_mults): New.
3670 (gimple_expand_builtin_powi): New.
3671 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3672 (gate_cse_sincos): Remove sincos/cexp restriction.
3674 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3677 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3679 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3680 * mips-tdump.c: Likewise.
3682 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3685 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3686 add -mno-XXX. Handle FMA.
3688 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3690 PR rtl-optimization/48633
3691 * ira-build.c (loop_with_eh_edge_p): New function.
3692 (mark_loops_for_removal): Use it.
3694 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3696 PR rtl-optimization/48971
3697 * ira.c (setup_pressure_classes): Don't check register move cost
3698 for classes with one registers. Don't add pressure class if there
3699 is a pressure class with the same available hard registers.
3700 Check contains_reg_of_mode. Fix a typo in collecting
3701 temp_hard_regset. Ignore hard registers not belonging to a class.
3703 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3706 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3708 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3709 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3711 PR gcov-profile/48845
3712 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3714 2011-05-24 Richard Guenther <rguenther@suse.de>
3716 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3717 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3718 (gimple_types_compatible_p_1): Adjust.
3719 (iterative_hash_canonical_type): Do not bother about complete vs.
3721 (gimple_canonical_types_compatible_p): Likewise.
3723 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3725 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3727 2011-05-24 Richard Guenther <rguenther@suse.de>
3730 * gimple.c (gimple_register_canonical_type): Revert
3732 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3733 does not for a tree for the case where it matters. Cache
3734 pointer-type alias-sets.
3736 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3738 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3739 (OBJS): Remove options.o, opts-common.o and prefix.o.
3740 (OBJS-libcommon-target): New.
3741 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3742 (BACKEND): Include libcommon-target.a.
3743 (MOSTLYCLEANFILES): Include libcommon-target.a.
3744 (libcommon-target.a): New.
3745 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3748 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3750 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3751 parts of output shared with the driver.
3752 * optc-gen.awk: Don't generate parts of output not shared with the
3754 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3755 * doc/options.texi (SourcerInclude): Mention options-save.c.
3756 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3757 (OBJS): Add options-save.o.
3758 (options-save.c, options-save.o): New.
3759 (options.o): Update dependencies.
3760 (gcc-options.o): Remove.
3761 (mostlyclean): Remove options-save.c.
3763 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3766 * dbxout.c: Include cgraph.h.
3767 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3768 and without value expr, return NULL if no varpool node exists for
3769 it or if it is not needed.
3770 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3773 * c-decl.c (start_decl): Convert expr to void_type_node.
3775 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3777 PR rtl-optimization/48826
3778 * emit-rtl.c (try_split): When splitting a call that is followed
3779 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3781 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3783 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3784 parameters passed in memory prefer using DECL_INCOMING_RTL over
3785 the pseudos it will be copied into.
3787 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3790 * config/i386/i386.c (ix86_option_override_internal): Save the
3791 initial options after checking vzeroupper.
3793 2011-05-23 David Li <davidxl@google.com>
3795 PR tree-optimization/48988
3796 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3797 Initialize has_valid_pred for each pred chain.
3799 2011-05-23 Richard Guenther <rguenther@suse.de>
3801 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3802 (iterative_hash_gimple_type): Always hash type names.
3804 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3806 * c-typeck.c (build_function_call_vec): Tweak call to
3807 check_function_arguments.
3809 2011-05-23 Richard Guenther <rguenther@suse.de>
3811 PR tree-optimization/49115
3812 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3813 is not necessarily carried out, do not claim it kills the ref.
3814 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3816 2011-05-23 Richard Guenther <rguenther@suse.de>
3819 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3820 what pointer types we accept for folding.
3822 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3824 * gthr-gnat.c: Remove.
3825 * gthr-gnat.h: Remove.
3826 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3827 * config/t-freebsd (LIB2ADDEH): Likewise.
3828 * config/t-linux (LIB2ADDEH): Likewise.
3829 * config/t-sol2 (LIB2ADDEH): Likewise.
3830 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3831 * configure.ac (target_thread_file): Remove gnat handling.
3832 * configure: Regenerate.
3833 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3835 2011-05-23 Tristan Gingold <gingold@adacore.com>
3836 Eric Botcazou <ebotcazou@adacore.com>
3838 * gcov.c (create_file_names): If no object directory is specified,
3839 keep the directory of the file.
3841 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3843 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3844 * configure: Regenerate.
3846 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3849 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3850 failed and the comparison has a single bit signed type, use
3851 constm1_rtx instead of const1_rtx for true value.
3852 (do_store_flag): If ops->type is single bit signed type, disable
3853 signel bit test optimization and pass -1 instead of 1 as last
3854 parameter to emit_store_flag_force.
3856 2011-05-23 Tom de Vries <tom@codesourcery.com>
3859 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3861 (infer_loop_bounds_from_undefined): Use new function.
3863 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3865 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3866 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3867 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3869 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3871 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3873 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3874 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3877 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3879 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3881 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3883 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3884 UNSPEC_MOVE_PIC pattern.
3886 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3888 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3889 (sparc-*-rtems*): Likewise.
3890 (sparc64-*-elf*): Likewise.
3891 (sparc64-*-rtems*): Likewise.
3892 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3893 * config/sparc/t-crtin: New file.
3894 * config/sparc/t-sol2 (crti.o): Delete rule.
3896 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3897 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3898 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3899 (ENDFILE_SPEC): Add crtn.o.
3901 2011-05-22 Tom de Vries <tom@codesourcery.com>
3904 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3905 CODE_CONTAINS_STRUCT (TS_COMMON).
3907 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3910 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3911 only after deciding which mode to use.
3913 2011-05-22 Tom de Vries <tom@codesourcery.com>
3916 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3917 for call to get_shiftadd_cost.
3919 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3922 * config/i386/cpuid.h (bit_MMXEXT): New define.
3924 2011-05-22 Nick Clifton <nickc@redhat.com>
3926 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3927 initialisation of non-existant args[2] element. Use args[] array
3928 not arg[] array to pass arguments to build_function_type_list.
3930 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3932 PR tree-optimization/49087
3933 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3935 2011-05-21 Jason Merrill <jason@redhat.com>
3938 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3939 static storage duration.
3941 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3943 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3946 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3948 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3949 false if there are call-saved registers here...
3950 (sparc_can_use_return_insn_p): ...but here instead.
3951 (save_or_restore_regs): Fix thinko.
3952 (sparc_expand_prologue): Use current_function_is_leaf.
3953 (sparc_frame_pointer_required): Likewise.
3955 2011-05-21 Nick Clifton <nickc@redhat.com>
3958 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3960 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3962 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3963 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3965 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3967 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3968 * optc-gen.awk: Move common code to opt-read.awk.
3969 * opth-gen.awk: Likewise.
3970 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3972 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3974 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3976 2011-05-20 Tom de Vries <tom@codesourcery.com>
3979 * tree-ssa-loop-ivopts.c: Include expmed.h.
3980 (get_shiftadd_cost): New function.
3981 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3983 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3986 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3987 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3989 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3991 * Makefile.in: Update comment referring to $(OBJS-common).
3993 2011-05-20 Ian Lance Taylor <iant@google.com>
3995 * godump.c (go_output_typedef): Put enum constants in the macro
3996 hash table to avoid duplicate Go const definitions.
3998 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4000 * Makefile.in (LIBDEPS): Add libcommon.a.
4002 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4003 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4004 pretty-print.o and version.o.
4005 (OBJS-libcommon): New.
4006 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4007 (BACKEND): Add libcommon.a.
4008 (MOSTLYCLEANFILES): Likewise.
4010 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4011 (cpp$(exeext)): Likewise.
4012 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4013 pretty-print.o and input.o.
4014 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4015 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4017 (mips-tfile): Don't explicitly use version.o.
4018 (mips-tdump): Likewise.
4019 (gcov.o): Depend on $(DIAGNOSTIC_H).
4020 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4021 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4022 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4023 * gcov-dump.c: Include intl.h and diagnostic.h.
4024 (main): Initialize diagnostics.
4025 * gcov.c: Include diagnostic.h.
4027 (main): Initialize diagnostics.
4028 * lto-wrapper.c: Include diagnostic.h.
4029 (main): Initialize diagnostics.
4031 2011-05-20 Michael Matz <matz@suse.de>
4033 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4035 2011-05-20 Michael Matz <matz@suse.de>
4036 Richard Guenther <rguenther@suse.de>
4038 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4039 use lto_streamer_cache_append directly instead of returning a VEC.
4040 (preload_common_node): Remove.
4041 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4043 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4045 2011-05-20 Richard Guenther <rguenther@suse.de>
4047 PR tree-optimization/49079
4048 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4049 MEM_REFs correctly for the trailing array access detection.
4050 Special case constants the same way as decls for overall size
4053 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
4055 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4058 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4060 PR tree-optimization/49073
4061 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4062 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4063 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4065 2011-05-20 Richard Guenther <rguenther@suse.de>
4068 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4069 of pointer types the same way the middle-end does.
4071 2011-05-20 Richard Guenther <rguenther@suse.de>
4073 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4074 or pointer-to chains. Delay all fixup to uniquify_nodes.
4076 2011-05-19 Quentin Neill <quentin.neill@amd.com>
4078 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4079 (fma4_fmaddsub): Likewise
4081 2011-05-19 Jan Hubicka <jh@suse.cz>
4083 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4084 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4085 (type_pair_cache): New static var.
4086 (lookup_type_pair): Use fixed sized custom hash; make inline.
4087 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4088 calls of lookup_type_pair.
4089 (print_gimple_types_stats): Remove cache stats.
4090 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4093 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
4095 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4096 when TARGET_RDRND is active.
4097 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4098 Generate dummy SImode target register when target is NULL.
4100 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4102 * config/arm/arm-fpus.def: New.
4103 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4105 * config/arm/arm-tables.opt: Regenerate.
4106 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4107 (arm_option_override): Don't decode FPU name to string here.
4108 * config/arm/arm.opt (mfpu=): Use Enum.
4109 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4110 Update dependencies.
4112 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4114 * collect2.c: Include diagnostic.h.
4115 (fatal_perror, fatal, error, fancy_abort): Remove.
4116 (main): Set progname. Call xmalloc_set_program_name and
4117 diagnostic_initialize.
4118 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4119 scan_libraries, resolve_lib_name): Call fatal_error instead of
4120 fatal and fatal_perror.
4121 * collect2.h (error, fatal, fatal_perror): Don't declare.
4122 * tlink.c: Include diagnostic-core.h.
4123 (recompile_files): Call fatal_error instead of fatal_perror.
4124 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4125 pretty-print.o and input.o.
4126 (collect2.o, tlink.o): Update dependencies.
4128 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4130 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4132 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4135 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4136 COMDAT group syntax, both SPARC and x86 variants.
4137 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4138 * configure: Regenerate.
4139 * config/sol2.h (TARGET_SOLARIS): Define.
4140 (PUSHSECTION_FORMAT): Remove.
4141 (SECTION_NAME_FORMAT): Define.
4142 * config/sol2.c: Include hashtab.h.
4143 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4144 expansion, using SECTION_NAME_FORMAT.
4145 (solaris_comdat_htab): New variable.
4146 (struct comdat_entry): Define.
4147 (comdat_hash): New function.
4148 (comdat_eq): New function.
4149 (solaris_elf_asm_comdat_section): New function.
4150 (solaris_define_comdat_signature): New function.
4151 (solaris_code_end): New function.
4152 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4153 (solaris_code_end): Declare.
4154 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4155 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4157 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4158 Remove ATTRIBUTE_UNUSED.
4159 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4160 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4161 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4162 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4163 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4164 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4165 (PUSHSECTION_FORMAT): Remove.
4166 (SECTION_NAME_FORMAT): Redefine.
4168 2011-05-19 Kai Tietz <ktietz@redhat.com>
4170 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4171 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4172 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4174 2011-05-19 Anatoly Sokolov <aesok@post.ru>
4175 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4177 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4179 2011-05-19 Richard Guenther <rguenther@suse.de>
4182 * tree-object-size.c (addr_object_size): If the pointed-to
4183 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4185 2011-05-19 Richard Guenther <rguenther@suse.de>
4187 * gimple.c (gimple_types_compatible_p_1): Compare names of
4188 the types themselves.
4189 (iterative_hash_gimple_type): And hash them that way.
4190 (gimple_register_type_1): If we register a main variant properly
4191 initialize the leader to ourselves.
4193 2011-05-19 Tom de Vries <tom@codesourcery.com>
4196 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4197 get_loop_invariant_expr_id.
4198 (get_loop_invariant_expr_id): Use get_expr_id.
4199 (parm_decl_cost): New function.
4200 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4201 Improve bound cost estimation. Use different inv_expr_id for elim and
4204 2011-05-19 Tom de Vries <tom@codesourcery.com>
4207 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4208 cost_base.cost == 0.
4210 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4213 * config/i386/sse.md
4214 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4217 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4219 PR tree-optimization/49039
4220 * tree-vrp.c (extract_range_from_binary_expr): For
4221 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4222 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4224 2011-05-18 Tom de Vries <tom@codesourcery.com>
4227 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4229 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
4231 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4232 (*tls_global_dynamic_64): Ditto.
4233 (*tls_local_dynamic_base_32_gnu): Ditto.
4234 (*tls_local_dynamic_base_64): Ditto.
4235 (tls_initial_exec_64_sun): Ditto.
4237 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4239 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4240 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4242 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4243 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4244 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4245 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4246 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4247 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4248 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4250 2011-05-18 Joseph Myers <joseph@codesourcery.com>
4252 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4253 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4254 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4255 target_thread_pointer, arm_structure_size_boundary, struct
4256 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4257 struct abi_name, arm_all_abis): Remove.
4258 (arm_option_override) Don't process most enumerated option values here.
4259 Don't process target_fpe_name here. Work with integer not string for
4260 structure size boundary; use separate diagnostics for each case.
4261 * config/arm/arm.h (enum float_abi_type, enum
4262 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4264 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4265 arm_structure_size_boundary): Remove.
4266 * config/arm/arm.opt (mabi=): Use Enum and Init.
4267 (arm_abi_type): New Enum and EnumValue entries.
4268 (mfloat-abi=): Use Enum and Init.
4269 (float_abi_type): New Enum and EnumValue entries.
4270 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4271 (mfp16-format=): Use Enum and Init.
4272 (arm_fp16_format_type): New Enum and EnumValue entries.
4273 (mstructure-size-boundary=): Use UInteger and Init.
4274 (mtp=): Use Enum and Init.
4275 (arm_tp_type): New Enum and EnumValue entries.
4277 2011-05-18 Richard Guenther <rguenther@suse.de>
4279 PR tree-optimization/49018
4280 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4281 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4282 gimple_has_side_effects.
4284 2011-05-18 Richard Guenther <rguenther@suse.de>
4286 * gimple.c (gimple_register_type_1): New function, split out from ...
4287 (gimple_register_type): ... here. Avoid infinite recursion.
4289 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4291 PR tree-optimization/41881
4292 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4293 reduction_chains along with a macro for its access.
4294 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4295 (destroy_loop_vec_info): Free reduction chains.
4296 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4297 (vect_is_slp_reduction): New function.
4298 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4299 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4300 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4301 definition types for reduction chains.
4302 (vect_supported_load_permutation_p): Don't allow permutations for
4304 (vect_analyze_slp_instance): Support reduction chains.
4305 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4306 (vect_get_constant_vectors): Handle reduction chains.
4307 (vect_schedule_slp_instance): Mark the first statement of the
4308 reduction chain as reduction.
4310 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4312 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4313 names for group elements access.
4314 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4315 reduction chains as well. Remove data reference and interleaving
4316 related words from the fields names.
4317 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4319 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4320 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4321 vect_update_interleaving_chain, vect_same_range_drs,
4322 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4323 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4324 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4325 vect_analyze_group_access, vect_analyze_data_ref_access,
4326 vect_create_data_ref_ptr, vect_transform_strided_load,
4327 vect_record_strided_load_vectors): Likewise.
4328 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4329 vect_model_load_cost, vectorizable_store, vectorizable_load,
4330 vect_remove_stores, new_stmt_vec_info): Likewise.
4331 * tree-vect-slp.c (vect_build_slp_tree,
4332 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4334 2011-05-18 Richard Guenther <rguenther@suse.de>
4337 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4338 operand verification.
4339 (verify_gimple_assign_binary): Likewise.
4340 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4341 to non-1-precision BOOLEAN_TYPEs.
4343 2011-05-18 Tom de Vries <tom@codesourcery.com>
4346 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4348 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4350 PR tree-optimization/49000
4351 * tree-ssa.c (execute_update_addresses_taken): Call
4352 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4353 be rewritten and decl has been marked for renaming, reset
4356 2011-05-17 Joseph Myers <joseph@codesourcery.com>
4358 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4359 enum_opts_set when testing if attributes have set -mfpmath=.
4361 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4363 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4365 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4367 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4369 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4370 id.transform_lang_insert_block with NULL.
4372 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4374 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4375 (output_fp_compare): Change args 3 and 4 to bool.
4376 (ix86_expand_call): Change arg 6 to bool.
4377 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4378 (ix86_attr_length_vex_default): Change arg 3 to bool.
4379 * config/i386/i386.md: Update all uses.
4380 * config/i386/i386.c: Ditto.
4381 (ix86_flags_dependent): Change return type to bool.
4383 2011-05-17 Richard Guenther <rguenther@suse.de>
4385 * gimple.c (type_hash_pair_compare): Fix comparison.
4387 2011-05-17 Richard Guenther <rguenther@suse.de>
4389 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4390 case some more, fix final hash value of the non-singleton case.
4392 2011-05-17 Richard Guenther <rguenther@suse.de>
4396 2011-05-16 Richard Guenther <rguenther@suse.de>
4398 * gimple.c (gimple_types_compatible_p_1): Use names of the
4399 type itself, not its main variant.
4400 (iterative_hash_gimple_type): Likewise.
4402 2011-05-17 Richard Guenther <rguenther@suse.de>
4404 * gimple.c (gimple_register_canonical_type): Use the main-variant
4405 leader for computing the canonical type.
4407 2011-05-17 Nick Clifton <nickc@redhat.com>
4409 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4412 * config/rx/rx.md: Add peephole to remove redundant extensions
4414 (bitset_in_memory): Use rx_restricted_mem_operand.
4415 (bitinvert_in_memory): Likewise.
4416 (bitclr_in_memory): Likewise.
4418 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
4419 Nick Clifton <nickc@redhat.com>
4421 * config/rx/rx.md: Add peepholes to match a register move followed
4422 by a comparison of the moved register. Replace these with an
4423 addition of zero that does both actions in one instruction.
4425 2011-05-17 Jakub Jelinek <jakub@redhat.com>
4428 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4429 predicate to allow CONST_INT.
4430 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4432 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4434 * opts-common.c (opt_enum_arg_to_value): New.
4435 * opts.h (opt_enum_arg_to_value): Declare.
4436 * config/i386/i386.opt (fpmath): Remove.
4437 (mfpmath=): Use Enum, Init and Save.
4438 (fpmath_unit): New Enum and EnumValue entries.
4439 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4440 name for function fpmath state.
4441 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4442 * config/i386/i386.c: Include diagnostic.h.
4443 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
4444 (ix86_target_string): Take enum fpmath_unit value instead of string.
4445 (ix86_debug_options): Update call to ix86_target_string.
4446 (ix86_option_override_internal): Don't process fpmath strings here.
4447 (x86_function_specific_save, ix86_function_specific_restore):
4448 Don't handle fpmath state specially.
4449 (ix86_function_specific_print): Pass fpmath state to
4450 ix86_target_string instead of printing in this function.
4451 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4452 Handle enum attributes.
4453 (IX86_ATTR_ENUM, ix86_opt_enum): New.
4454 (ix86_valid_target_attribute_tree): Update option_strings
4455 handling. Handle fpmath as enum option.
4456 (ix86_can_inline_p): Update field names for function fpmath state.
4457 (ix86_expand_builtin): Update call to ix86_target_string.
4458 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4459 (ix86_fpmath): Remove.
4460 * config/i386/t-i386 (i386.o): Update dependencies.
4462 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4464 PR preprocessor/48677
4465 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4466 from decoded_options[0], not from itself.
4468 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
4470 * config/i386/constraints.md (z): New constraint.
4471 * config/i386/i386.c (c): New mode attribute.
4472 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4473 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4474 constraint for operand 0.
4475 (*call_vzeroupper): Ditto.
4476 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
4477 (*call_rex64_ms_sysv_vzeroupper): Ditto.
4478 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4479 Use "lzm" constraint for operand 0.
4480 (*call_pop_vzeroupper): Ditto.
4481 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
4482 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
4483 constraint for operand 0.
4484 (*sibcall_vzeroupper): Ditto.
4485 (*sibcall_rex64_ms_sysv): Ditto.
4486 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
4487 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
4488 *sibcall_pop_1. Use "Uz" constraint for operand 0.
4489 (*sibcall_pop_vzeroupper): Ditto.
4490 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
4491 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
4492 mode iterator. Use "<c>zm" constraint for operand 1.
4493 (*call_value_vzeroupper): Ditto.
4494 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
4496 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
4497 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
4498 *call_value_pop_1. Use "lzm" constraint for operand 1.
4499 (*call_value_pop_vzeroupper): Ditto.
4500 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
4501 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
4502 mode iterator. Use "Uz" constraint for operand 1.
4503 (*sibcall_value_vzeroupper): Ditto.
4504 (*sibcall_value_rex64_ms_sysv): Ditto.
4505 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
4506 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
4507 constraint for operand 1.
4508 (*sibcall_value_pop_vzeroupper): Ditto.
4509 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
4510 and "z" constraint for operand 2.
4511 (*tls_global_dynamic_32_gnu): Ditto.
4512 (*tls_local_dynamic_base_32_gnu): Ditto.
4513 (*tls_local_dynamic_base_64): Ditto.
4514 (*tls_local_dynamic_32_once): Ditto.
4515 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
4517 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
4519 2011-05-16 Richard Guenther <rguenther@suse.de>
4521 * gimple.c (gimple_types_compatible_p_1): Use names of the
4522 type itself, not its main variant.
4523 (iterative_hash_gimple_type): Likewise.
4525 2011-05-16 Richard Guenther <rguenther@suse.de>
4527 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
4528 always visit pointer target and function result and argument types.
4530 2011-05-16 Jason Merrill <jason@redhat.com>
4533 * tree-inline.c (copy_statement_list): Put back recursion.
4535 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4539 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4540 * config/avr/avr.md ("*ior<mode>qi.byte0",
4541 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4543 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4546 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4547 register is needed for a function argument.
4549 2011-05-16 Richard Guenther <rguenther@suse.de>
4551 * gimple.c (struct type_hash_pair): New type.
4552 (type_hash_pair_compare): New function.
4553 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4555 2011-05-16 Revital Eres <revital.eres@linaro.org>
4557 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4559 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4561 * config/i386/i386.md (floating point move splitters): Fix
4562 usage of standard_80387_constant_p.
4563 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4565 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4567 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4569 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4571 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4572 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4573 (tree_ssa_lim_finalize): Likewise.
4575 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
4577 * config/i386/constraint.md (Yd, Yx): New register constraints.
4578 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4579 Yd conditional register constraint.
4580 (*movtf_internal): Use standard_sse_constant_opcode.
4581 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4582 Yx conditional register constraint.
4583 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4584 Yd conditional register constraint. Use standard_sse_constant_p to
4585 check for valid SSE constants and call standard_sse_constant_opcode to
4587 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4588 constants and call standard_sse_constant_opcode to output SSE insn.
4589 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4590 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4591 optimize_size is set.
4592 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4594 2011-05-14 Tobias Burnus <burnus@net-b.de>
4596 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4598 2011-05-13 Martin Jambor <mjambor@suse.cz>
4600 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4601 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4602 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4603 (evaluate_conditions_for_ipcp_clone): Removed.
4604 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4605 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4606 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4608 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4610 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4611 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4612 lieu of MAY_HAVE_DEBUG_STMTS.
4613 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4614 debug statements if !MAY_HAVE_DEBUG_STMTS.
4616 2011-05-13 Martin Thuresson <martint@google.com>
4618 PR gcov-profile/47793
4619 * libgcov.c (gcov_exit): Support relative profile paths.
4620 * doc/invoke.texi (-fprofile-dir): Update for above change.
4622 2011-05-13 Richard Guenther <rguenther@suse.de>
4624 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4625 type-pair caching, do not compare hashes.
4627 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4630 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4631 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4633 2011-05-13 Kai Tietz <ktietz@redhat.com>
4635 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4636 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4637 compatible type for TRUTH_NOT_EXPR.
4639 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4641 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4642 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4643 can_create_pseudo_p ().
4645 2011-05-13 Richard Guenther <rguenther@suse.de>
4648 * gimple.c (iterative_hash_gimple_type): Revert change in
4649 pointer target and function result and argument hashing.
4651 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4653 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4654 (*movxf_internal_nointeger): Ditto.
4655 (*movdf_internal_rex64): Ditto.
4656 (*movdf_internal): Ditto.
4657 (*movdf_internal_nointeger): Ditto.
4658 (*movsf_internal): Ditto.
4659 (sincos splitters): Use can_create_pseudo ().
4661 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4663 * config/i386/i386-opts.h: New.
4664 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4665 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4666 ix86_section_threshold): Remove.
4667 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4668 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4670 (ix86_option_override_internal): Don't decode strings for options
4671 other than -march=, -mtune= and -mfpmath=. Don't allow for
4672 __attribute__ uses in remaining diagnostics for options with
4673 string arguments. Don't check for integer arguments being negative.
4674 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4675 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4676 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4677 ix86_branch_cost, ix86_section_threshold): Remove.
4678 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4680 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4682 (masm=): Use Enum and Init.
4683 (asm_dialect): New Enum and EnumValue entries.
4684 (mbranch-cost=): Use UInteger.
4685 (mlarge-data-threshold=): Use UInteger and Init.
4686 (mcmodel=): Use Enum and Init.
4687 (cmodel): New Enum and EnumValue entries.
4688 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4689 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4690 mregparm=): Use UInteger.
4691 (mstringop-strategy=): Use Enum and Init.
4692 (stringop_alg): New Enum and EnumValue entries.
4693 (mtls-dialect=): Use Enum and Init.
4694 (tls_dialect): New Enum and EnumValue entries.
4695 (mabi=): Use Enum and Init.
4696 (calling_abi): New Enum and EnumValue entries.
4697 (mveclibabi=): Use Enum and Init.
4698 (ix86_veclibabi): New Enum and EnumValue entries.
4700 2011-05-13 Nick Clifton <nickc@redhat.com>
4702 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4703 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4705 2011-05-13 Kai Tietz <ktietz@redhat.com>
4708 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4709 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4710 (gimple_boolify): Check for cast for boolean_type_node instead for
4713 2011-05-13 Richard Guenther <rguenther@suse.de>
4715 PR tree-optimization/48172
4716 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4717 multiplying by number of iterations for equal step.
4718 (vect_create_cond_for_alias_checks): Likewise.
4720 2011-05-13 Andreas Schwab <schwab@redhat.com>
4722 * configure.ac: Use AS_HELP_STRING throughout.
4723 * configure: Regenerate.
4725 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4727 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4728 (ix86_emit_restore_regs_using_mov): Likewise.
4729 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4731 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4733 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4734 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4735 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4736 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4737 RTX_OK_FOR_OLO10_P): ...here.
4738 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4741 2011-05-12 Kai Tietz <ktietz@redhat.com>
4743 * gimplify.c (gimple_boolify): Re-boolify expression
4744 arguments even if expression type is of kind BOOLEAN_TYPE.
4745 (gimplify_boolean_expr): Removed.
4746 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4747 and XOR. Additional take care that we keep expression's type.
4748 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4749 of TRUTH_AND|OR|XOR_EXPR.
4751 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4753 PR tree-optimization/48975
4754 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4755 on all bbs here and free and clear ifc_bbs at the end.
4757 2011-05-12 Richard Guenther <rguenther@suse.de>
4759 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4760 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4761 until after simple checks.
4762 (gimple_types_compatible_p): Likewise.
4763 (iterative_hash_gimple_type): Always hash pointer targets
4764 and function return and argument types.
4765 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4766 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4767 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4768 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4769 completely in the simple compare section.
4770 (gimple_register_canonical_type): Query the cache again after
4773 2011-05-12 Richard Guenther <rguenther@suse.de>
4775 PR tree-optimization/48172
4776 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4777 the number of iterations from the segment size calculation.
4778 (vect_create_cond_for_alias_checks): Adjust.
4780 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4783 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4784 if validate_subreg fails.
4786 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4788 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4789 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4792 2011-05-12 DJ Delorie <dj@redhat.com>
4794 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4795 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4796 created builtin into rx_builtins array.
4797 (rx_builtin_decl): New function.
4798 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4800 2011-05-12 DJ Delorie <dj@redhat.com>
4801 Nick Clifton <nickc@redhat.com>
4803 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4804 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4805 (rx_is_legitimate_address): Add pre-decrement and post-increment
4806 addressing in HImode and QImode. Fix test for out of range
4808 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4809 (rx_align_for_label): Test label before extracting its usage count.
4810 (rx_adjust_insn_lengths): Fix selection of insn codes.
4811 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4813 2011-05-11 Jason Merrill <jason@redhat.com>
4815 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4817 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4819 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4820 reindent the subsequent block.
4822 2011-05-11 Satoru Takabayashi <satorux@google.com>
4823 Paul Pluzhnikov <ppluzhnikov@google.com>
4825 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4826 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4827 * config.in: Add LINKER_HASH_STYLE.
4828 * configure.ac: Add --with-linker-hash-style.
4829 * configure: Regenerate.
4831 2011-05-11 Richard Guenther <rguenther@suse.de>
4834 * gimple.c (iterative_hash_canonical_type): Fix typo.
4836 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4838 * config/i386/i386.c (legitimize_tls_address)
4839 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4840 expanders directly for TARGET_GNU2_TLS. Determine pic and
4841 __tls_get_addr symbol reference here. Update call to
4842 gen_tls_global_dynamic_{32,64} for added arguments.
4843 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4844 expanders directly for TARGET_GNU2_TLS. Determine
4845 __tls_get_addr symbol reference here. Update call to
4846 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4847 unique UNSPEC REG_EQUIV to libcall block.
4848 (ix86_tls_get_addr): Declare static.
4849 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4850 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4851 Do not determine pic and __tls_get_addr symbol reference here. Do not
4852 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4853 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4854 (tls_global_dynamic_64): Add operand 2. Do not determine
4855 __tls_get_addr symbol reference here. Do not call
4856 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4857 (tls_local_dynamic_base64): Ditto for operand 1.
4859 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4861 * function.c (expand_function_start): Initialize stack_check_probe_note
4862 only if the generic stack checking mechanism is used.
4864 2011-05-11 Richard Guenther <rguenther@suse.de>
4866 PR tree-optimization/15256
4867 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4868 (A & B) | C, combine (A op CST1) op CST2.
4869 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4870 visit assigns that have uses.
4872 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4874 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4875 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4876 (unpack_ts_type_common_value_fields): ...this. Update comment.
4877 (unpack_value_fields): Adjust for renaming.
4878 (lto_input_ts_type_tree_pointers): Split into...
4879 (lto_input_ts_type_common_tree_pointer): ...this and...
4880 (lto_input_ts_type_non_common_tree_pointers): ...this.
4881 (lto_input_tree_pointers): Adjust for above split.
4882 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4883 (pack_ts_type_common_value_fields): ...this. Update comment.
4884 (lto_output_ts_type_tree_pointers): Split into...
4885 (lto_output_ts_type_common_tree_pointers): ...this and...
4886 (lto_output_ts_type_non_common_tree_pointers): ...this.
4887 (lto_output_tree_pointers): Adjust for above split.
4888 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4889 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4890 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4891 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4893 (struct tree_type): Split into...
4894 (struct tree_type_common: ...this and...
4895 (struct tree_type_with_lang_specific): ...this and...
4896 (struct tree_type_non_common): ...this. Adjust accessor macros
4898 (TYPE_VALUES_RAW): Define.
4899 (union tree_node): Update for above changes.
4900 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4902 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4903 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4904 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4905 * treestructu.def (TS_TYPE): Remove.
4906 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4909 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4912 * tree-ssa.c (reset_debug_uses): New function.
4913 * tree-flow.h (reset_debug_uses): New prototype.
4914 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4915 * tree-loop-distribution.c (generate_loops_for_partition): Call
4916 reset_debug_uses on the stmts that will be removed. Keep around
4917 all debug stmts, don't count them as bits in partition bitmap.
4918 (generate_builtin): Don't count debug stmts or labels as bits in
4921 2011-05-11 Richard Guenther <rguenther@suse.de>
4923 * gimple.c (gimple_type_hash_1): Merge with ...
4924 (gimple_type_hash): ... this.
4925 (gtc_visit): Remove mode parameter and simplify accordingly.
4926 (gimple_types_compatible_p_1): Likewise.
4927 (gimple_types_compatible_p): Likewise.
4928 (iterative_hash_gimple_type): Likewise.
4930 (gimple_type_eq): Adjust.
4932 2011-05-11 Revital Eres <revital.eres@linaro.org>
4934 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4935 enters the branch create an anti edge in the opposite direction
4936 to prevent the creation of reg-moves.
4937 * modulo-sched.c: Adjust comment to reflect the fact we are
4938 scheduling closing branch.
4939 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4940 (stage_count): New field in struct partial_schedule.
4941 (calculate_stage_count): New function.
4942 (normalize_sched_times): Rename to reset_sched_times and handle
4943 incrementing the sched time of the nodes by a constant value
4944 passed as parameter.
4945 (duplicate_insns_of_cycles): Skip closing branch.
4946 (sms_schedule_by_order): Schedule closing branch.
4947 (ps_insn_find_column): Handle closing branch.
4948 (sms_schedule): Call reset_sched_times and adjust the code to
4949 support scheduling of the closing branch.
4950 (ps_insert_empty_row): Update calls to normalize_sched_times
4951 and rotate_partial_schedule functions.
4953 2011-05-11 Richard Guenther <rguenther@suse.de>
4956 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4958 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4960 * opts.c (finish_options): Move warning settings from process_options.
4961 * toplev.c (process_options): Move warning settings to finish_options.
4963 2011-05-11 Richard Guenther <rguenther@suse.de>
4965 PR tree-optimization/18041
4966 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4967 (simplify_bitwise_binary): ... this. Handle operand conversions
4968 by applying them to the result instead.
4969 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4971 2011-05-11 Richard Guenther <rguenther@suse.de>
4973 * gimple.c (gimple_canonical_types_compatible_p): Split out
4974 from gimple_types_compatible_p and friends. Do not recurse
4975 to pointed-to types.
4976 (gimple_canonical_type_eq): Use it.
4977 (iterative_hash_canonical_type): Split out from
4978 iterative_hash_gimple_type and friends. Do not recurse
4979 to pointed-to types.
4980 (gimple_canonical_type_hash): Use it, allocate the hash here.
4982 2011-05-11 Revital Eres <revital.eres@linaro.org>
4984 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4987 2011-05-11 Revital Eres <revital.eres@linaro.org>
4989 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4990 instead of PREV_INSN.
4992 2011-05-11 Revital Eres <revital.eres@linaro.org>
4994 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4995 * loop-doloop.c (doloop_condition_get): Likewise.
4996 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4998 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5000 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5002 * tree.def (CASE_LABEL_EXPR): Add an operand.
5003 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5005 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5007 * c-decl.c (c_override_global_bindings_to_false): Remove.
5008 (global_bindings_p): Don't check
5009 c_override_global_bindings_to_false.
5010 * c-tree.h (c_override_global_bindings_to_false): Remove.
5011 * c-typeck.c (composite_type): Don't set
5012 c_override_global_bindings_to_false.
5014 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5016 PR target/48857, 48495
5017 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5019 (VSX_MOVE_MODE): Ditto.
5020 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5021 VSX vector types. Add V2DImode.
5022 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5023 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5024 (MODES_TIEABLE_P): Ditto.
5026 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5027 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5029 (init_cumulative_args): Ditto.
5030 (rs6000_function_arg_boundary): Ditto.
5031 (rs6000_function_arg_advance_1): Ditto.
5032 (rs6000_function_arg): Ditto.
5033 (rs6000_function_ok_for_sibcall): Ditto.
5034 (emit_frame_save): Ditto.
5035 (rs6000_function_value): Ditto.
5036 (rs6000_libcall_value): Ditto.
5038 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5040 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5041 i386/darwin-lib.h to $libgcc_tm_file.
5042 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5044 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5046 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5048 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5050 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5051 * config/rs6000/rs6000-tables.opt: New file (generated).
5052 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5053 rs6000/rs6000-tables.opt to extra_options.
5054 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5055 * config/rs6000/rs6000.c (rs6000_select): Remove.
5056 (processor_target_table): Move contents to rs6000-cpus.def.
5057 (darwin_rs6000_override_options): Check
5058 global_options_set.x_rs6000_cpu_index instead of
5059 rs6000_select[1].string.
5060 (rs6000_option_override_internal): Likewise.
5061 (rs6000_handle_option): Don't assert that global structures are in
5062 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5063 (rs6000_default_cpu): New variable.
5064 (rs6000_file_start): Set it instead of local default_cpu. Check
5065 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5066 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5067 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5068 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5069 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5070 rs6000_select): Remove.
5071 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5073 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5074 * config/rs6000/t-rs6000
5075 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5076 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5077 global_options_set.x_rs6000_cpu_index instead of
5078 rs6000_select[1].string.
5079 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5080 global_options_set.x_rs6000_cpu_index instead of
5081 rs6000_select[1].string.
5083 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5085 * config.gcc (libgcc_tm_file): Define instead of including files
5086 from ../../libgcc/config/ in tm_file.
5087 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5088 * configure: Regenerate.
5089 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5090 libgcc_tm.h, cs-libgcc_tm.h): New.
5091 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5092 (clean): Remove libgcc_tm.h.
5093 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5094 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5095 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5097 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
5100 * config/avr/avr.c (avr_ret_register): Return unsigned int
5102 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5103 it to avr_libcall_value.
5104 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5106 (avr_expand_binop_builtin): Ditto.
5107 (avr_expand_unop_builtin): Ditto.
5109 2011-05-10 DJ Delorie <dj@redhat.com>
5111 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5112 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5113 * config/rx/rx.c (rx_align_for_label): Add label and
5114 uses_threshold parameters. Do not align when the label is not
5116 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5118 2011-05-10 Richard Guenther <rguenther@suse.de>
5120 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5121 a series of conversions and apply foldings similar to what
5123 (tree_ssa_forward_propagate_single_use_vars): Call it.
5125 2011-05-10 Jakub Jelinek <jakub@redhat.com>
5127 PR tree-optimization/48611
5128 PR tree-optimization/48794
5129 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5130 referenced from RESX or EH_DISPATCH arguments.
5133 * dfp.c (decimal_to_decnumber): Handle conversion from
5134 dconst{1,2,m1,half}.
5136 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5138 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5139 for !flag_prefer_avx128.
5140 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5142 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5144 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5145 (fold_ternary_loc): Use expr_location_or.
5147 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5150 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5151 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5152 Pmode and mem_mode is not VOIDmode.
5154 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
5156 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5157 TYPE_QUAL_RESTRICT): Convert to enum.
5159 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5161 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5162 (const_pow2_1_to_8_operand): Ditto.
5163 (const_pow2_1_to_128_operand): Ditto.
5164 (const_pow2_1_to_32768_operand): Ditto.
5165 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5166 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5167 in insn constraint to check integer value of operand 3.
5168 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5170 (PINSR_MODE): New mode iterator.
5171 (sse2p4_1): New mode attribute.
5172 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5173 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5174 iterator. Use const_int_operand instead of
5175 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5176 exact_log2 in insn constraint to check integer value of operand 3.
5178 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5180 * config/i386/sse.md (blendbits): Remove mode attribute.
5181 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5182 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5183 Check integer value of operand 3 in insn constraint.
5185 2011-05-09 Richard Guenther <rguenther@suse.de>
5187 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5189 (lto_symtab_merge): Likewise. Do not register types here.
5190 (lto_symtab_merge_decls_2): Likewise.
5191 (lto_symtab_merge_decls_1): Likewise.
5192 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5193 * gimple.c (enum gtc_mode): Declare.
5194 (gimple_types_compatible_p): Make static.
5196 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5198 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5199 temporary register to match Pmode.
5201 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5203 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5204 and *vec_concatv4si_1_avx.
5206 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5208 PR rtl-optimization/48927
5209 * ira-conflicts.c (commutative_constraint_p): Use
5210 recog_data.alternative_enabled_p to disable alternatives where
5211 "enabled" attribute is false.
5212 (get_dup_num): Ditto.
5213 * ira-lives.c (single_reg_class): Ditto.
5214 (ira_implicitly_set_insn_hard_regs): Ditto.
5216 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5218 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5219 (dataflow_set_preserve_mem_locs): Likewise.
5221 2011-05-09 Philipp Thomas <pth@suse.de>
5223 * config/mep/mep.c (mep_validate_vliw): Syntax description
5224 should not be translated.
5226 2011-05-09 Joseph Myers <joseph@codesourcery.com>
5228 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5229 * config/mips/mips-tables.opt: New file (generated).
5230 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5231 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5232 MIPS_ARCH_OPTION_NATIVE): Define.
5233 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5235 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5236 mips_parse_cpu): Remove.
5237 (mips_cpu_info_from_opt, mips_default_arch): New.
5238 (mips_handle_option): Don't assert that global structures are in
5239 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5240 (mips_option_override): Use new variables and functions to set
5241 state of these options. Use strcmp to check for individual CPU names.
5242 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5244 * config/mips/mips.opt (march=): Use ToLower and Enum.
5245 (mips): Use ToLower, Enum and Var.
5246 (mtune=): Use ToLower and Enum.
5247 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5249 2011-05-08 Jan Hubicka <jh@suse.cz>
5251 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5252 Arrange type pairs to be UID ordered.
5253 (gimple_lookup_type_leader): Make inline.
5255 2011-05-09 Nick Clifton <nickc@redhat.com>
5258 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5262 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5265 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5267 * combine.c (simplify_comparison): Abstract out parts into...
5268 (simplify_compare_const): ... new function.
5269 (try_combine): Generalize parallel arithmetic/compare combining
5270 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5272 2011-05-08 Jan Hubicka <jh@suse.cz>
5274 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5275 (cgraph_create_virtual_clone): Call hooks once virtual clone
5277 * cgraph.h (cgraph_clone_node): Update prototype.
5278 * ipa-cp.c (ipcp_estimate_growth): Use
5279 estimate_ipcp_clone_size_and_time.
5280 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5281 * lto-cgraph.c (input_node): Update.
5282 * ipa-inline.c (recursive_inlining): Update.
5283 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5284 (evaluate_conditions_for_known_args): Break out from ...
5285 (evaluate_conditions_for_edge): ... here.
5286 (evaluate_conditions_for_ipcp_clone): New function.
5287 (inline_node_duplication_hook): Update clone summary based
5289 (estimate_callee_size_and_time): Rename to ...
5290 (estimate_node_size_and_time): take NODE instead of EDGE;
5291 take POSSIBLE_TRUTHS as argument.
5292 (estimate_callee_size_and_time): Update.
5293 (estimate_ipcp_clone_size_and_time): New function.
5294 (do_estimate_edge_time): Update.
5296 2011-05-08 Richard Guenther <rguenther@suse.de>
5300 * expmed.c (expand_shift_1): Compute adjusted constant shift
5303 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5305 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5307 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5309 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5311 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5313 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5315 2011-05-07 Jan Hubicka <jh@suse.cz>
5317 * ipa-inline-transform.c (inline_call): Account when program size
5319 * ipa-inline.c (relative_time_benefit): New function.
5320 (edge_badness): Reorganize to be power 2 based; fix thinko when
5321 computing badness for negative growth; update comments to match
5322 reality; better dumps.
5324 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5326 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5327 type to bool and adjust comment.
5328 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5329 (fold_mathfn_compare): Remove calls to global_bindings_p.
5330 (fold_inf_compare): Likewise.
5331 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5332 * c-tree.h (global_bindings_p): Adjust prototype.
5333 * c-decl.c (global_bindings_p): Return bool and simplify.
5335 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
5337 PR tree-optimization/48837
5338 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5339 when accumulator transformation is performed.
5341 2011-05-06 Jan Hubicka <jh@suse.cz>
5343 * i386.h (ix86_tune_indices): Add
5344 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5345 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5346 * i386.c (initial_ix86_tune_features): Add
5347 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5348 (software_prefetching_beneficial_p): Remove predicate.
5349 (ix86_option_override_internal): Use new macro.
5351 2011-05-06 Jan Hubicka <jh@suse.cz>
5353 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5355 2011-05-06 Jan Hubicka <jh@suse.cz>
5357 * cgraph.c (cgraph_add_thunk): Create real function node instead
5358 of alias node; finalize it and mark needed/reachale; arrange visibility
5359 to be right and add it into the corresponding same comdat group list.
5360 (dump_cgraph_node): Dump thunks.
5361 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5362 cgraph_function_with_gimple_body_p,
5363 cgraph_first_function_with_gimple_body,
5364 cgraph_next_function_with_gimple_body): New functions.
5365 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5367 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5368 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5369 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5370 devirtualization when optimizing.
5371 (verify_cgraph_node): Verify thunks.
5372 (cgraph_analyze_function): Analyze thunks.
5373 (cgraph_mark_functions_to_output): Output thunks only in combination
5374 with function they are assigned to.
5375 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5376 alias into normal node.
5377 (assemble_thunks): New functoin.
5378 (cgraph_expand_function): Use it.
5379 * lto-cgraph.c (lto_output_node): Stream thunks.
5380 (input_overwrite_node): Stream in thunks.
5381 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5382 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5383 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5384 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5385 (inline_analyze_function): Do not care about thunk jump functions.
5386 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5387 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5388 cgraph_function_with_gimple_body_p.
5389 * passes.c (do_per_function_toporder): Use
5390 cgraph_function_with_gimple_body_p.
5391 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5392 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5393 (function_called_by_processed_nodes_p): Likewise.
5395 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5397 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5398 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5400 (mabi=): Replace with separate entries for mabi=altivec,
5401 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5402 mabi=ieeelongdouble and mabi=ibmlongdouble.
5403 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5404 check for -mabi=spe without SPE ABI support here.
5405 (rs6000_handle_option): Replace OPT_mabi_ handling with
5406 OPT_mabi_altivec and OPT_mabi_spe handling.
5408 2011-05-06 Cary Coutant <ccoutant@google.com>
5410 * dwarf2out.c (contains_subprogram_definition): New function.
5411 (should_move_die_to_comdat): Call it.
5413 2011-05-06 Jeff Law <law@redhat.com>
5415 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5416 remove_ctrl_stmt_and_useless_edges.
5417 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5418 (fixup_template_block, thread_single_edge): Likewise.
5419 (mark_threaded_blocks): Use THREAD_TARGET.
5421 2011-05-06 Alan Modra <amodra@gmail.com>
5424 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5425 const0_rtx as the arg to the dummy __tls_get_addr libcall.
5427 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5429 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5430 constraint modifier to "r".
5432 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5434 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5435 fall through for OPT_mcmodel_.
5437 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5439 * config/s390/s390.c (s390_asm_trampoline_template): Comment
5441 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
5443 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5446 * config/arm/arm.opt (marm): Document it.
5447 (mthumb): Reject negative variant.
5449 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5452 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5453 Fix typo in "ccvt" variable name.
5455 2011-05-06 Tristan Gingold <gingold@adacore.com>
5458 * config/vms/vms-ar.c (main): Remove cwd variable.
5460 2011-05-06 Jakub Jelinek <jakub@redhat.com>
5463 * var-tracking.c (prepare_call_arguments): Move else before #endif.
5465 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5467 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5468 * gimplify.c (gimplify_switch_expr): Likewise.
5469 * omp-low.c (expand_omp_sections): Likewise.
5470 * tree-eh.c (lower_try_finally_switch): Likewise.
5471 (lower_eh_dispatch): Likewise.
5472 * tree.h (build_case_label): Declare.
5473 * tree.c (build_case_label): Define.
5475 2011-05-05 Jason Merrill <jason@redhat.com>
5478 * tree-inline.c (copy_tree_r): Use copy_statement_list.
5479 (copy_statement_list): Don't recurse.
5480 * stor-layout.c (copy_self_referential_tree_r): Don't allow
5483 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5485 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
5486 through from -mfpu= handling.
5487 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
5489 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
5491 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
5494 2011-05-05 Steve Ellcey <sje@cup.hp.com>
5496 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
5498 (hppa[12]*-*-hpux11*): Ditto.
5499 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
5500 * config/ia64/hpux-unix2003.h: New.
5501 * config/pa/pa-hpux1131.opt: New.
5502 * config/pa/pa-hpux1131.h: New.
5503 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
5504 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
5505 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
5507 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5510 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
5511 instead of mode as 3rd argument to recursive call.
5512 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
5513 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
5515 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
5516 don't give up if mode is Pmode and mem_mode is not VOIDmode.
5517 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
5518 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
5520 2011-05-05 Julian Brown <julian@codesourcery.com>
5522 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
5523 parenthesis in D-register case.
5525 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5527 * opt-functions.awk (var_type_struct): Handle Enum options.
5528 * optc-gen.awk: Don't check range of variables of character type.
5529 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
5530 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
5531 rs6000_sdata_name, rs6000_explicit_options): Remove.
5532 (rs6000_option_override_internal): Check for -malign-power here.
5533 Use global_options_set instead of rs6000_explicit_options.
5534 (rs6000_parse_fpu_option): Remove.
5535 (rs6000_handle_option): Access variables via opts and opts_set
5536 pointers. Use error_at and warning_at. Add fall-through
5537 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5538 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5539 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5540 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5541 here. Don't use rs6000_parse_fpu_option.
5542 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5543 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5544 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5546 (mspe): Use Var and Save.
5547 (mtraceback=): Use Enum and Var.
5548 (rs6000_traceback_type): New Enum and EnumValue entries.
5549 (mfloat-gprs=): Use Enum, Var and Save.
5550 (rs6000_float_gprs): New Enum and EnumValue entries.
5551 (mlong-double-): use Var and Save.
5552 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5553 (malign-): Use Enum and Var.
5554 (rs6000_alignment_flags): New Enum and EnumValue entries.
5556 (fpu_type_t): New Enum and EnumValue entries.
5557 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5558 global_options_set instead of rs6000_explicit_options.
5559 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5560 global_options_set instead of rs6000_explicit_options.
5561 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5562 global_options_set instead of rs6000_explicit_options.
5563 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5564 global_options_set instead of rs6000_explicit_options.
5565 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5566 global_options_set instead of rs6000_explicit_options.
5567 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5568 global_options_set instead of rs6000_explicit_options.
5569 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5571 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5572 global_options_set instead of rs6000_explicit_options.
5573 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5574 (rs6000_cmodel): New Enum and EnumValue entries.
5575 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5576 global_options_set instead of rs6000_explicit_options.
5577 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5578 (mtls-size=): Use Enum and Var.
5579 (rs6000_tls_size): New Enum and EnumValue entries.
5581 2011-05-05 Michael Matz <matz@suse.de>
5583 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5584 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5585 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5586 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5587 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5588 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5589 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5590 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5591 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5592 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5593 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5594 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5595 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5596 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5597 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5598 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5600 2011-05-05 Richard Guenther <rguenther@suse.de>
5602 * expmed.c (expand_variable_shift): Rename to ...
5603 (expand_shift_1): ... this. Take an expanded shift amount.
5604 For rotates recurse directly not building trees for the shift amount.
5605 (expand_variable_shift): Wrap around expand_shift_1.
5606 (expand_shift): Adjust.
5608 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5610 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5612 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5614 * tree.h (get_pending_sizes): Remove prototype.
5615 (put_pending_size): Likewise.
5616 (put_pending_sizes): Likewise.
5617 * stor-layout.c (pending_sizes): Delete.
5618 (get_pending_sizes): Likewise.
5619 (put_pending_size): Likewise.
5620 (put_pending_sizes): Likewise.
5621 (variable_size): Do not call put_pending_size and tidy up.
5622 * function.h (struct function): Remove dont_save_pending_sizes_p.
5623 * lto-streamer-in.c (input_function): Do not stream it.
5624 * lto-streamer-out.c (output_function): Likewise.
5625 * tree-inline.c (initialize_cfun): Do not copy it.
5626 * c-decl.c (store_parm_decls): Do not set it.
5627 * omp-low.c (create_task_copyfn): Likewise.
5628 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5630 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5632 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5634 (*movdf_internal): Ditto.
5635 (*movdf_internal_nointeger): Ditto.
5636 (*movsf_internal): Ditto.
5638 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5640 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5641 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5642 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5643 (c_variable_size): Remove.
5644 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5645 call put_pending_sizes.
5646 (get_parm_info): Add parameter expr. Use it to set
5647 arg_info->pending_sizes.
5648 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5650 * c-parser.c (c_parser_parms_declarator): Update call to
5651 c_parser_parms_list_declarator.
5652 (c_parser_parms_list_declarator): Take parameter expr. Update
5653 call to push_parm_decl. Update recursive call. Don't call
5654 get_pending_sizes. Update calls to get_parm_info.
5655 (c_parser_objc_method_definition): Update calls to
5656 c_parser_objc_method_decl and objc_start_method_definition.
5657 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5658 (c_parser_objc_method_decl): Add parameter expr. Update call to
5660 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5661 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5662 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5664 2011-05-05 Michael Hope <michael.hope@linaro.org>
5667 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5670 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5672 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5673 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5674 (spu_output_mi_thunk): New function.
5676 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5678 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5679 targetm.asm_out.print_operand.
5680 * config/sol2.c: Include target.h.
5682 2011-05-04 Jan Hubicka <jh@suse.cz>
5684 * ipa-inline.c (reset_edge_caches): New function.
5685 (update_caller_keys): Add check_inlinablity_for; do not
5686 reset edge caches; remove now unnecesary loop.
5687 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5688 (update_all_callee_keys): Likewise.
5689 (inline_small_functions): Sanity check cache; update code
5692 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5694 PR rtl-optimization/47612
5695 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5696 as the last insn of the sequence to be moved.
5698 2011-05-04 Tobias Burnus <burnus@net-b.de>
5701 * doc/invoke.texi (Ofast): Document that it
5702 enables Fortran's -fno-protect-parens.
5704 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5706 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5708 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5710 * stor-layout.c (variable_size): Do not issue errors.
5712 2011-05-04 Richard Guenther <rguenther@suse.de>
5714 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5715 for array-ref indices.
5716 (tree_coverage_counter_addr): Likewise.
5717 (build_fn_info_type): Use size_int for index types.
5718 (build_gcov_info): Likewise.
5720 2011-05-04 Richard Guenther <rguenther@suse.de>
5722 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5724 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5725 for constructor indices.
5726 (push_init_level): Likewise.
5728 2011-05-04 Richard Guenther <rguenther@suse.de>
5730 * explow.c (promote_mode): Move variable declarations before code.
5732 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5734 * tree.h (build_function_type_array): Declare.
5735 (build_varargs_function_type_array): Declare.
5736 (build_function_type_vec, build_varargs_function_type_vec): Define.
5737 * tree.c (build_function_type_array_1): New function.
5738 (build_function_type_array): New function.
5739 (build_varargs_function_type_array): New function.
5741 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5743 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5744 before setting STMT_VINFO_TYPE.
5746 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5748 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5749 instead of spu_pass_by_reference.
5751 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5753 * calls.c (emit_library_call_value_1): Invoke
5754 promote_function_mode hook on libcall arguments.
5755 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5756 argument being NULL.
5757 * targhooks.c (default_promote_function_mode): Lisewise.
5758 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5759 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5761 * doc/tm.texi: Document that TYPE argument might be NULL.
5763 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5765 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5767 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5770 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5772 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5774 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5775 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5777 * mips-tfile.c: ... here.
5778 Don't include coretypes.h, tm.h, filenames.h.
5779 (saber_stop): Remove definition and all calls.
5780 [__SABER__]: Remove.
5781 (__LINE__): Remove default.
5782 (Size_t, Ptrdiff_t): Remove definitions.
5783 Replace by size_t, ptrdiff_t.
5784 [!MIPS_DEBUGGING_INFO]: Remove.
5785 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5786 (progname): Add const.
5788 Replace all uses by static.
5789 (ALIGN_SYMTABLE_OFFSET): Remove default.
5790 * mips-tdump.c: Don't include coretypes.h, tm.h.
5791 Remove !MIPS_IS_STAB guard.
5792 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5793 $(TM_H), filenames.h dependencies.
5794 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5796 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5799 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5800 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5802 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5805 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5806 account and save/restore RETS.
5807 (PROFILE_BEFORE_PROLOGUE): Define.
5808 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5809 the push insn to use predecrement.
5811 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5814 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5816 2011-05-04 Nick Clifton <nickc@redhat.com>
5818 * config/mn10300/mn10300.c: Include cfgloop.h.
5820 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5821 Lcc or a FLcc insn into the instruction stream.
5822 (mn10300_block_contains_call): New function. Returns true if the
5823 given basic block contains a CALL insn.
5824 (mn10300_loop_contains_call_insn): New function. Returns true if
5825 the given loop contains a CALL insn.
5826 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5827 to use the SETLB and Lcc or FLcc insns.
5828 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5829 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5830 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5831 disable the SETLB optimization.
5832 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5833 __SETLB__ or __NO_SETLB__.
5834 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5835 (movsf_internal): Handle MDR register.
5836 (cmpsi): Make visible.
5837 (setlb): New pattern.
5839 (FLcc): New pattern.
5841 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5844 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5845 for reg<->xmm moves.
5846 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5847 (vec_concatv2di_rex64_sse): Ditto.
5848 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5849 (*vec_extractv2di_1_rex64): Ditto.
5852 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5854 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5856 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5858 2011-05-04 Richard Guenther <rguenther@suse.de>
5860 * tree.h (int_const_binop): Remove notrunc argument.
5861 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5862 create integer constants that are properly truncated.
5863 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5864 (const_binop): Remove zero notrunc argument to int_const_binop.
5865 (size_binop_loc): Likewise.
5866 (fold_div_compare): Likewise.
5867 (maybe_canonicalize_comparison_1): Likewise.
5868 (fold_comparison): Likewise.
5869 (fold_binary_loc): Likewise.
5870 (multiple_of_p): Likewise.
5871 * expr.c (store_constructor): Likewise.
5872 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5873 (maybe_fold_stmt_addition): Likewise.
5874 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5875 * stor-layout.c (layout_type): Likewise.
5876 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5877 * tree-sra.c (build_ref_for_offset): Likewise.
5878 (build_user_friendly_ref_for_offset): Likewise.
5879 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5880 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5881 * tree-ssa-loop-niter.c (inverse): Likewise.
5882 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5883 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5884 * tree-switch-conversion.c (check_range): Likewise.
5885 (build_constructors): Likewise.
5886 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5887 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5888 (extract_range_from_assert): Likewise.
5889 (vrp_int_const_binop): Likewise.
5890 (extract_range_from_binary_expr): Likewise.
5891 (extract_range_from_unary_expr): Likewise.
5892 (check_array_ref): Likewise.
5893 (find_case_label_range): Likewise.
5894 (simplify_div_or_mod_using_ranges): Likewise.
5895 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5896 comparing case labels for merging.
5898 2011-05-03 Mark Wielaard <mjw@redhat.com>
5900 * dwarf2out.c (debug_str_hash_forced): Removed.
5901 (gen_label_for_indirect_string): Removed.
5902 (get_debug_string_label): Removed.
5903 (AT_string_form): Generate label directly.
5904 (output_indirect_string): Test indirect_string_node for
5905 DW_FORM_strp instead of checking label and refcount.
5906 (prune_indirect_string): Removed.
5907 (prune_unused_types): Don't check debug_str_hash_forced or
5908 call prune_indirect_string.
5910 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5913 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5915 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5919 * combine.c (try_combine): Skip debug insns at m_split tests.
5921 2011-04-26 Mark Wielaard <mjw@redhat.com>
5924 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5925 when info_section_emitted.
5927 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5929 * config/mips/mips-opts.h: New.
5930 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5932 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5933 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5934 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5936 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5938 (mips_abi, mips_code_readable): Don't declare.
5939 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5940 (mabi=): Use Enum and Var.
5941 (mips_abi): New Enum and EnumValue entries.
5942 (mcode-readable=): Use Enum and Var.
5943 (mips_code_readable_setting): New Enum and EnumValue entries.
5944 (mr10k-cache-barrier=): Use Enum and Var.
5945 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5947 2011-05-03 Jan Hubicka <jh@suse.cz>
5949 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5950 replace hash by pointer map.
5951 (cgraph_node_set_element_def, cgraph_node_set_element,
5952 const_cgraph_node_set_element, varpool_node_set_element_def,
5953 varpool_node_set_element, const_varpool_node_set_element): Remove.
5954 (free_cgraph_node_set, free_varpool_node_set): New function.
5955 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5956 * tree-emutls.c: Free varpool node set.
5957 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5958 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5959 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5960 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5961 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5962 Move here from ipa.c; implement using pointer_map
5963 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5964 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5965 debug_cgraph_node_set, varpool_node_set_new,
5966 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5967 dump_varpool_node_set, debug_varpool_node_set):
5968 Move to ipa-uitls.c.
5969 * passes.c (ipa_write_summaries): Update.
5971 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5973 From Mike Frysinger:
5974 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5975 bf542/bf544/bf547/bf548/bf549.
5977 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5979 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5981 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5984 * config/bfin/bfin.md (MOVCC): New mode_macro.
5985 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5986 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5987 comments from generated assembly.
5989 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5992 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5993 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5994 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5995 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5996 * config/bfin/lib1funcs.asm (___muldi3): New function.
5998 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6000 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6001 build_function_type_list instead of build_function_type.
6002 Rearrange initialization of `args' to do so.
6004 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6006 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6007 instead of build_function_type.
6009 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6011 * config/rs6000/rs6000.c (spe_init_builtins): Call
6012 build_function_type_list instead of build_function_type.
6013 (paired_init_builtins, altivec_init_builtins): Likewise.
6014 (builtin_function_type): Likewise.
6016 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6018 * config/sh/sh.c (sh_media_init_builtins): Call
6019 build_function_type_list instead of build_function_type.
6021 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6023 * config/sparc/sparc.c (sparc_file_end): Call
6024 build_function_type_list instead of build_function_type.
6026 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6028 * config/alpha/alpha.c (alpha_init_builtins): Call
6029 build_function_type_list instead of build_function_type.
6031 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6033 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6034 build_function_type_list instead of build_function_type.
6036 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6038 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6039 build_function_type_list instead of build_function_type.
6040 Delete `endlink' variable.
6042 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6044 * config/avr/avr.c (avr_init_builtins): Call
6045 build_function_type_list instead of build_function_type.
6047 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6049 * config/picochip/picochip.c (picochip_init_builtins): Call
6050 build_function_type_list instead of build_function_type.
6051 Delete `endlink' variable.
6053 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6055 * config/bfin/bfin.c (bfin_init_builtins): Call
6056 build_function_type_list instead of build_function_type.
6058 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6061 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6062 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6064 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6067 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6068 libbffastfp overrides libgcc when -mfast-fp.
6070 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6072 Originally from Bernd Schmidt
6073 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6074 * config/bfin/bfin.c (override_options): Test it and error if
6077 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6079 Originally From Bernd Schmidt
6080 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6083 2011-05-03 Jeff Law <law@redhat.com>
6085 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6086 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6087 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6088 than accessing AUX field directly. Free the AUX field before
6090 (thread_block, thread_through_loop_header): Likewise.
6091 (thread_single_edge, mark_threaded_blocks): Likewise.
6092 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6093 (register_jump_thread): Do not attempt to thread to a NULL edge.
6095 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6097 * function.c (init_function_start): Call decide_function_section.
6098 * varasm.c (decide_function_section): New function.
6099 (assemble_start_function): When not using
6100 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6101 or first_function_block_is_cold.
6102 * rtl.h (decide_function_section): Declare.
6104 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6105 Jakub Jelinek <jakub@redhat.com>
6108 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6109 only succeed if req_mode is the same as set_mode.
6111 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6113 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6114 * genemit.c (gen_exp): Handle RETURN.
6115 * emit-rtl.c (verify_rtx_sharing): Likewise.
6116 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6117 * rtl.c (copy_rtx): RETURN is shared.
6118 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6120 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6121 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6122 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6123 * config/cris/cris.c (cris_expand_return): Likewise.
6124 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6125 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6126 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6127 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6128 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6130 * config/v850/v850.c (expand_epilogue): Likewise.
6131 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6132 * config/arm/arm.md (epilogue): Likewise.
6133 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6134 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6135 variable to ret_reg.
6137 2011-05-03 Richard Guenther <rguenther@suse.de>
6140 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6141 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6142 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6144 2011-05-03 Richard Guenther <rguenther@suse.de>
6146 * c-decl.c (grokdeclarator): Instead of looking at
6147 TREE_OVERFLOW check if the constant fits in the index type.
6149 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6151 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6152 (vec_store_lanes<mode><mode>): Likewise.
6154 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6156 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6157 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6158 convert_optab_index values.
6159 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6160 * genopinit.c (optabs): Initialize the new optabs.
6161 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6162 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6163 (expand_STORE_LANES): New functions.
6164 * tree.h (build_array_type_nelts): Declare.
6165 * tree.c (build_array_type_nelts): New function.
6166 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6167 (vect_model_load_cost): Likewise.
6168 (vect_store_lanes_supported, vect_load_lanes_supported)
6169 (vect_record_strided_load_vectors): Declare.
6170 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6171 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6172 (vect_transform_strided_load): Split out statement recording into...
6173 (vect_record_strided_load_vectors): ...this new function.
6174 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6175 (write_vector_array, create_array_ref): New functions.
6176 (vect_model_store_cost): Add store_lanes_p argument.
6177 (vect_model_load_cost): Add load_lanes_p argument.
6178 (vectorizable_store): Try to use store-lanes functions for
6180 (vectorizable_load): Likewise load-lanes and loads.
6181 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6182 to vect_model_store_cost.
6183 (vect_build_slp_tree): Likewise vect_model_load_cost.
6185 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6187 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6188 * hooks.c (hook_bool_mode_uhwi_false): New function.
6189 * target.def (array_mode_supported_p): New hook.
6190 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6191 * doc/tm.texi: Regenerate.
6192 * stor-layout.c (mode_for_array): New function.
6193 (layout_type): Use it.
6194 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6195 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6197 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6200 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6201 for -fstack-check if the size to allocate is negative.
6203 2011-05-02 Lawrence Crowl <crowl@google.com>
6205 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6206 (timevar_cond_start): New for starting a timer only when it is not
6208 (timevar_cond_stop): New for stopping a timer when it was not already
6211 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6212 (timevar_cond_start): New as above.
6213 (timevar_cond_stop): New as above.
6215 * timevar.def: Add start/stop timers for compiler phases,
6216 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6217 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6218 and TV_PHASE_FINALIZE.
6219 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6220 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6221 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6222 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6223 Make unused TV_OVERLOAD into a start/stop timer.
6225 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6226 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6227 to indicate that they are start/stop timers.
6229 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6230 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6231 Move initialization to do_compile.
6232 (do_compile): Add initialization from above.
6233 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6235 * c-decl.c (c_write_global_declarations): Add start/stop of
6236 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6238 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6239 or TV_PARSE_INLINE, as appropriate.
6240 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6241 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6243 2011-05-02 Jason Merrill <jason@redhat.com>
6246 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6248 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
6251 * c-decl.c (finish_decl): Only create a composite if the types are
6254 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6256 * config/fr30/fr30-protos.h (Mmode): Don't define.
6257 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6258 definition where used.
6259 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6260 define. Expand definitions where used.
6261 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6262 Expand definitions where used.
6263 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6264 rx_function_arg, rx_function_arg_advance,
6265 rx_function_arg_boundary): Expand definitions of those macros.
6266 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6267 definition where used.
6269 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6271 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6273 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6274 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6275 with *movv2sf_internal_rex64_avx.
6276 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6277 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6278 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6279 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6280 "vex" in "prefix" attribute calculation.
6281 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6283 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6286 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6287 inputs match the output.
6289 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6292 * config/m68k/m68k.c (m68k_expand_prologue): Set
6293 current_function_static_stack_size.
6295 2011-05-02 Jan Hubicka <jh@suse.cz>
6297 * lto-streamer.c (lto_streamer_cache_insert_1,
6298 lto_streamer_cache_lookup, lto_streamer_cache_create,
6299 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6300 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6302 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6304 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6305 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6306 config/m68k/t-opts: New files.
6307 * config/m68k/m68k-tables.opt: New file (generated).
6308 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6309 extra_options and m68k/t-opts to tmake_file.
6310 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6311 (all_isas): Initialize using m68k-isas.def.
6312 (all_microarchs): Initialize using m68k-microarchs.def.
6313 (m68k_find_selection): Remove.
6314 (m68k_handle_option): Don't assert that global structures are in
6315 use. Use error_at. Access variables via opts pointer. Don't
6316 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6317 directly for -m68020-40 and -m68020-60.
6318 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6319 m68k_tune_entry here.
6320 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6322 (m68k_library_id_string): Remove declaration.
6323 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6324 (m68k_library_id_string): New Variable.
6325 (march=, mcpu=, mtune=): Use Enum and Var.
6327 2011-05-02 Richard Guenther <rguenther@suse.de>
6329 * varasm.c (output_constructor_regular_field): Compute zero-based
6330 index with double-ints. Make sure to ICE instead of producing
6332 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6333 in asserts. Properly use a signed type.
6335 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6337 * config/i386/sse.md (V): New mode iterator.
6338 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6340 (V_256): Rename from AVX256MODE.
6341 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6342 condition to all users.
6344 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6345 condition to all users.
6346 (VF_128): Make V4SF mode unconditional.
6347 (VF_256): Rename from AVX256MODEF2P.
6348 (VI4F_128): Rename from SSEMODE4S.
6349 (VI8F_128): Rename from SSEMODE2D.
6350 (VI4F_256): Rename from AVX256MODE8P.
6351 (VI8F_256): Rename from AVX256MODE4P.
6352 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6353 (ssescalarmodesuffix): Remove SF and DF modes.
6354 (SSEMODE124): Remove.
6355 (SSEMODE1248): Ditto.
6356 (SSEMODEF2P): Ditto.
6357 (AVXMODEF2P): Ditto.
6358 (AVXMODEFDP): Ditto.
6359 (AVXMODEFSP): Ditto.
6360 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6362 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6364 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6365 xop_pcmov_<mode>256. Use V mode iterator.
6367 Adjust RTX patterns globally for renamed mode attributes.
6369 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6371 * haifa-sched.c (sched_emit_insn): Emit insn before first
6372 non-scheduled insn. Inform back-end about new insn. Add
6373 new insn to scheduled_insns list.
6375 2011-05-02 Richard Guenther <rguenther@suse.de>
6377 PR tree-optimization/48822
6378 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6379 (process_scc): Indicate which iteration we start.
6381 2011-05-02 Jan Hubicka <jh@suse.cz>
6383 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6384 (lto_section_overrun): New.
6385 * lto-section-out.c (append_block): Rename to ...
6386 (lto_append_block): ... this one; export.
6387 (lto_output_1_stream): Move lto lto-streamer.h
6388 (lto_output_data_stream): Update.
6389 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6390 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6393 2011-05-02 Richard Guenther <rguenther@suse.de>
6395 * tree.c (tree_code_counts): New global array.
6396 (record_node_allocation_statistics): Count individual tree codes.
6397 (dump_tree_statistics): Dump individual code stats.
6399 2011-05-01 Jan Hubicka <jh@suse.cz>
6401 * ipa-inline.c (caller_growth_limits): Fix thinko when
6402 looking for largest stack frame.
6403 * ipa-inline.h (dump_inline_summary): Declare.
6404 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6406 (dump_inline_summary): Export.
6407 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6409 2011-05-01 Anatoly Sokolov <aesok@post.ru>
6411 * reginfo.c (memory_move_cost): Change rclass argument type form
6412 'enum reg_class' to reg_class_t.
6413 * reload.h (memory_move_cost): Update prototype.
6414 * postreload.c reload_cse_simplify_set): Change type dclass var to
6416 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6418 (ira_allocate_and_set_costs): Change aclass argument type form
6419 'enum reg_class' to reg_class_t.
6420 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6421 Change aclass argument type to reg_class_t.
6422 (update_conflict_hard_reg_costs): Change type aclass and pref vars
6424 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6425 memory_move_cost call.
6427 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6428 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6429 Change type tmp var to reg_class_t.
6431 2011-04-30 Jan Hubicka <jh@suse.cz>
6433 * ipa-inline.c (can_inline_edge_p): Disregard limits when
6434 inlining into function with flatten attribute.
6435 (want_inline_small_function_p): Be more realistic about inlining
6436 cold calls where callee size grows.
6438 2011-04-30 Jan Hubicka <jh@suse.cz>
6440 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6443 2011-04-30 Anatoly Sokolov <aesok@post.ru>
6445 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6446 PRINT_OPERAND_PUNCT_VALID_P): Remove.
6447 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6448 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6449 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6450 (print_operand): Rename to...
6451 (sparc_print_operand): ...this. Make static. Adjust
6452 sparc_print_operand function call.
6453 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6456 2011-04-30 Jan Hubicka <jh@suse.cz>
6459 * ipa-inline.c (early_inliner): Disable when doing late
6460 addition of function.
6462 2011-04-30 Jakub Jelinek <jakub@redhat.com>
6464 * dwarf2out.c (get_address_mode): New inline.
6465 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6466 if not dwarf_strict emit
6467 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6468 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6469 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
6470 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6471 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6472 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6473 mem_loc_descriptor callers.
6474 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6475 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6476 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6477 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6478 (base_types): New variable.
6479 (get_base_type_offset, calc_base_type_die_sizes,
6480 base_type_for_mode, mark_base_types, base_type_cmp,
6481 move_marked_base_types): New functions.
6482 (calc_die_sizes): Assert that die_offset is 0 or equal to
6484 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
6485 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
6486 callers. If not dwarf_strict, call mem_loc_descriptor even for
6487 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
6488 (gen_subprogram_die): Don't give up on call site parameters
6489 with non-integral or large integral modes. Adjust
6490 mem_loc_descriptor callers.
6491 (prune_unused_types): Call prune_unused_types_mark on base_types
6493 (resolve_addr): Call mark_base_types.
6494 (dwarf2out_finish): Call move_marked_base_types.
6496 PR tree-optimization/48809
6497 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
6499 (gen_inbound_check): Don't compute index_expr - range_min in utype
6500 again, instead reuse SSA_NAME initialized in build_arrays.
6501 Remove two useless gsi_for_stmt calls.
6503 2011-04-29 Jeff Law <law@redhat.com>
6505 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
6507 2011-04-29 Martin Jambor <mjambor@suse.cz>
6509 * cgraph.h (cgraph_postorder): Remove declaration.
6510 * ipa-utils.h (ipa_free_postorder_info): Declare.
6511 (ipa_reverse_postorder): Likewise.
6512 * cgraphunit.c: Include ipa-utils.h.
6513 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
6514 * ipa-inline.c: Include ipa-utils.h.
6515 (ipa_inline): Update call to ipa_reverse_postorder.
6516 * ipa-pure-const.c (propagate_pure_const): Update call to
6517 ipa_reduced_postorder and ipa_print_order. Call
6518 ipa_free_postorder_info to clean up.
6519 (propagate_nothrow): Likewise.
6520 * ipa-reference.c (propagate): Removed a useless call to
6521 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
6522 and ipa_print_order. Call ipa_free_postorder_info to clean up.
6523 * ipa.c: Include ipa-utils.h.
6524 (ipa_profile): Update call to ipa_reverse_postorder.
6525 (cgraph_postorder): Moved to...
6526 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
6527 (ipa_utils_print_order): Renamed to ipa_print_order.
6528 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
6530 (ipa_free_postorder_info): New function.
6531 * passes.c: Include ipa-utils.h.
6532 (do_per_function_toporder): Update call to ipa_reverse_postorder.
6533 (ipa_write_summaries): Likewise.
6534 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6535 (cgraphunit.o): Likewise.
6537 (ipa-inline.o): Likewise.
6539 2011-04-29 Jan Hubicka <jh@suse.cz>
6541 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6542 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6543 * ipa-inline.h (clause_t): Turn into unsigned int.
6544 * ipa-inline-analysis.c (add_clause): Do more simplification.
6545 (and_predicates): Shortcut more cases.
6546 (predicates_equal_p): Move forward; check that clauses are properly
6548 (or_predicates): Shortcut more cases.
6549 (edge_execution_predicate): Rewrite as...
6550 (set_cond_stmt_execution_predicate): ... this function; handle
6551 __builtin_constant_p.
6552 (set_switch_stmt_execution_predicate): New .
6553 (compute_bb_predicates): New.
6554 (will_be_nonconstant_predicate): Update TODO.
6555 (estimate_function_body_sizes): Use compute_bb_predicates
6556 and free them later, always try to estimate if stmt is constant.
6557 (estimate_time_after_inlining, estimate_size_after_inlining):
6558 Gracefully handle optimized out edges.
6559 (read_predicate): Fix off by one error.
6561 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6563 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6565 2011-04-27 Xinliang David Li <davidxl@google.com>
6567 * tree-profile.c (init_ic_make_global_vars): Set
6568 tls attribute on ic vars.
6569 * coverage.c (coverage_end_function): Initialize
6570 function_list with zero.
6572 2011-04-29 Richard Guenther <rguenther@suse.de>
6574 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6575 for the type of the result.
6576 (fold_builtin_isascii): Likewise.
6577 (fold_builtin_toascii): Use integer_type_node where appropriate.
6578 (fold_builtin_logb): Likewise.
6579 (fold_builtin_frexp): Likewise.
6580 (fold_builtin_strstr): Likewise.
6581 (fold_builtin_strpbrk): Likewise.
6582 (fold_builtin_fputs): Likewise.
6583 (fold_builtin_sprintf): Likewise.
6584 (fold_builtin_snprintf): Likewise.
6585 (fold_builtin_printf): Likewise.
6586 (do_mpfr_remquo): Use a proper type for the assigned constant.
6587 (do_mpfr_lgamma_r): Likewise.
6588 * dwarf2out.c (resolve_one_addr): Use size_int.
6589 * except.c (init_eh): Likewise.
6590 (assign_filter_values): Use integer_type_node for filter values.
6591 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6593 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6594 for EH region numbers.
6595 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6596 for the shift amount.
6598 2011-04-29 Richard Guenther <rguenther@suse.de>
6600 * expr.h (expand_shift): Rename to ...
6601 (expand_variable_shift): ... this.
6602 (expand_shift): Take a constant shift amount.
6603 * expmed.c (expand_shift): Rename to ...
6604 (expand_variable_shift): ... this.
6605 (expand_shift): New wrapper around expand_variable_shift.
6606 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6607 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6608 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6609 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6610 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6611 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6612 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6613 emit_store_flag_1, emit_store_flag): Likewise.
6614 * builtins.c (expand_builtin_signbit): Likewise.
6615 * calls.c (load_register_parameters): Likewise.
6616 * function.c (assign_parm_setup_block): Likewise.
6617 * lower-subreg.c (resolve_shift_zext): Likewise.
6618 * optabs.c (widen_bswap, expand_abs_nojump,
6619 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6620 * spu/spu.c (spu_expand_extv): Likewise.
6621 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6623 2011-04-29 Richard Guenther <rguenther@suse.de>
6625 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6626 for the remapped region number.
6627 * predict.c (build_predict_expr): Use integer_type_node for the
6629 * fold-const.c (fold_binary_loc): Use integer_type_node for
6630 the shift amount. Use a proper type for the PLUS_EXPR operand.
6632 2011-04-29 Michael Matz <matz@suse.de>
6634 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6635 other trees that just builtins.
6636 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6638 2011-04-29 Richard Guenther <rguenther@suse.de>
6640 * tree-nested.c (get_trampoline_type): Use size_int.
6641 (get_nl_goto_field): Likewise.
6642 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6644 (lower_eh_constructs_2): Likewise.
6645 (lower_resx): Likewise.
6646 (lower_eh_dispatch): Likewise.
6647 * tree-mudflap.c (mf_build_string): Use size_int.
6648 (mudflap_register_call): Use integer_type_node for the flag.
6649 (mudflap_enqueue_constant): Use size_int.
6650 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6651 instead of rebuilding it.
6653 2011-04-29 Richard Guenther <rguenther@suse.de>
6655 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6656 Handle OBJ_TYPE_REF.
6657 (find_func_aliases_for_call): Use it more consistently.
6659 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6661 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6662 (rank_for_schedule): Use it.
6663 (schedule_block): Set it.
6665 2011-04-28 David Li <davidxl@google.com>
6667 * tree.c (crc32_string): Use crc32_byte.
6668 (crc32_byte): New function.
6669 * tree.h (crc32_byte): New function.
6670 * gcov.c (read_graph_file): Handle new cfg_cksum.
6671 (read_count_file): Ditto.
6672 * profile.c (instrument_values): Ditto.
6673 (get_exec_counts): Ditto.
6674 (read_profile_edge_counts): Ditto.
6675 (compute_branch_probabilities): Ditto.
6676 (compute_value_histograms): Ditto.
6677 (branch_prob): Ditto.
6678 (end_branch_prob): Ditto.
6679 * coverage.c (read_counts_file): Ditto.
6680 (get_coverage_counts): Ditto.
6681 (tree_coverage_counter_addr): Ditto.
6682 (coverage_checksum_string): Ditto.
6683 (coverage_begin_output): Ditto.
6684 (coverage_end_function): Ditto.
6685 (build_fn_info_type): Ditto.
6686 (build_fn_info_value): Ditto.
6687 * libgcov.c (gcov_exit): Ditto.
6688 * gcov-dump.c (tag_function): Ditto.
6689 (compute_checksum): Remove.
6691 2011-04-29 Alan Modra <amodra@gmail.com>
6693 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6694 unspec plus offset. Tidy macho code.
6696 2011-04-29 Martin Jambor <mjambor@suse.cz>
6698 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6699 node instead of a decl. Update all callers.
6700 * cgraph.h: Update declaration.
6702 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6704 PR tree-optimization/48765
6705 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6706 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6707 to indicate if loop aware SLP is being used. Scan the statements
6708 and update the vectorization factor according to the type of
6709 vectorization before statement analysis.
6710 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6711 pass it to vect_analyze_loop_operations.
6712 (vectorizable_reduction): Set number of copies to 1 in case of pure
6714 * tree-vect-stmts.c (vectorizable_conversion,
6715 vectorizable_assignment, vectorizable_shift,
6716 vectorizable_operation, vectorizable_type_demotion,
6717 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6719 (vectorizable_condition): Move the check that it is not SLP
6720 vectorization before the number of copies check.
6721 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6722 to vectorize the loop using SLP.
6724 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6727 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6730 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6732 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6733 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6734 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6735 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6736 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6738 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6739 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6740 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6741 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6742 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6743 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6745 * config/i386/linux.h (REG_NAME): Don't define.
6746 * config/i386/linux64.h (REG_NAME): Don't define.
6747 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6748 Undefine before defining.
6750 2011-04-28 Jan Hubicka <jh@suse.cz>
6752 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6753 nonconstant_names array.
6754 (estimate_function_body_sizes): Build nonconstant_names array; handle
6755 BUILT_IN_CONSTANT_P.
6757 2011-04-28 Richard Guenther <rguenther@suse.de>
6761 2011-04-28 Richard Guenther <rguenther@suse.de>
6763 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6764 as late as possible.
6766 2011-04-28 Richard Guenther <rguenther@suse.de>
6768 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6769 (debug_constraint): Do it here.
6770 (dump_constraints): And here.
6771 (rewrite_constraints): And here.
6772 (dump_constraint_edge): Remove.
6773 (dump_constraint_graph): Rewrite to produce DOT output.
6774 (solve_constraints): Build succ graph as late as possible.
6775 Dump constraint graphs before and after solving.
6777 2011-04-28 Richard Guenther <rguenther@suse.de>
6779 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6780 New function split out from ...
6781 (find_func_aliases): ... here. Call it.
6782 (find_func_aliases_for_call): Likewise.
6784 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6786 * internal-fn.h (internal_fn_name_array): Declare.
6787 (internal_fn_flags_array): Likewise.
6789 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6791 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6792 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6794 (ssemodefsuffix): Remove.
6795 (ssevecmodesuffix): New mode attribute.
6796 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6797 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6798 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6799 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6800 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6801 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6802 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6803 ssemodesuffix mode attribute.
6804 (float splitters): Use ssevecmodesuffix mode attribute.
6805 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6806 (sseinsmode): Rename from avxvecmode.
6807 (avxsizesuffix): Rename from avxmodesuffix.
6808 (sseintvecmode): Rename from avxpermvecmode.
6809 (ssedoublevecmode): Rename from ssedoublesizemode.
6810 (ssehalfvecmode): Rename from avxhalfvecmode.
6811 (ssescalarmode): Rename from avxscalarmode.
6812 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6813 templates for ssemodesuffix mode attribute.
6814 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6817 Adjust RTX patterns globally for renamed mode attributes.
6819 2011-04-27 Jan Hubcika <jh@suse.cz>
6821 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6822 * ipa-inline-analysis.c: Include alloc-pool.h.
6823 (edge_predicate_pool): New.
6824 (trye_predicate_p): New function
6825 (false_predicate_p): New function.
6826 (add_clause): Sanity check that false clauses are "optimized";
6827 never add clauses to predicate that is already known to be false.
6828 (and_predicate): Use flase_predicate_p.
6829 (evaulate_predicate): Rename to ...
6830 (evaluate_predicate): ... this one; update all callers; assert
6831 that false is not listed among possible truths.
6832 (dump_predicate): Use true_predicate_p.
6833 (account_size_time): Use false_predicate_p.
6834 (evaulate_conditions_for_edge): Rename to ...
6835 (evaluate_conditions_for_edge) ... this one.
6836 (edge_set_predicate): New function.
6837 (inline_edge_duplication_hook): Duplicate edge predicates.
6838 (inline_edge_removal_hook): Free edge predicates.
6839 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6840 (dump_inline_summary): Update.
6841 (estimate_function_body_sizes): Set edge predicates.
6842 (estimate_calls_size_and_time): Handle predicates.
6843 (estimate_callee_size_and_time): Update.
6844 (remap_predicate): Add toplev_predicate; update comment.
6845 (remap_edge_predicates): New function.
6846 (inline_merge_summary): Compute toplev predicate; update.
6847 (read_predicate): New function.
6848 (read_inline_edge_summary): Use it.
6849 (inline_read_section): Likewise.
6850 (write_predicate): New function.
6851 (write_inline_edge_summary): Use it.
6852 (inline_write_summary): Likewise.
6853 (inline_free_summary): Free alloc pool and edge summary vec.
6855 2011-04-27 Richard Guenther <rguenther@suse.de>
6857 * tree-ssa-structalias.c (changed_count): Remove.
6858 (changed): Use a bitmap.
6859 (unify_nodes): Adjust.
6860 (do_sd_constraint): Likewise.
6861 (do_ds_constraint): Likewise.
6862 (do_complex_constraint): Likewise.
6863 (solve_graph): Likewise.
6865 2011-04-27 Jan Hubicka <jh@suse.cz>
6867 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6869 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6871 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6872 (avx_vperm2f128_*_operand): Ditto.
6873 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6874 Use avx_vpermilp_parallel in insn condition.
6875 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6876 Use avx_vperm2f128_parallel in insn condition.
6878 2011-04-27 Richard Guenther <rguenther@suse.de>
6880 * Makefile.in (tree-ssa-structalias.o): Remove
6881 gt-tree-ssa-structalias.h dependency.
6882 (GTFILES): Remove tree-ssa-structalias.c.
6883 * tree.c (allocate_decl_uid): New function.
6884 (make_node_stat): Use it.
6885 (copy_node_stat): Likewise.
6886 * tree.h (allocate_decl_uid): Declare.
6887 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6888 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6889 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6890 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6891 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6892 (struct heapvar_map): Likewise.
6893 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6894 heapvar_insert): Likewise.
6895 (make_heapvar_for): Rename to ...
6896 (make_heapvar): ... this. Simplify.
6897 (fake_var_decl_obstack): New global var.
6898 (build_fake_var_decl): New function.
6899 (make_constraint_from_heapvar): Adjust.
6900 (handle_lhs_call): Likewise.
6901 (create_function_info_for): Likewise.
6902 (intra_create_variable_infos): Likewise.
6903 (init_alias_vars): Allocate fake_var_decl_obstack.
6904 (init_alias_heapvars, delete_alias_heapvars): Remove.
6905 (compute_points_to_sets): Do not call init_alias_heapvars.
6906 (ipa_pta_execute): Likewise.
6907 (delete_points_to_sets): Free fake_var_decl_obstack.
6909 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6911 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6912 (si_from_UTItype, si_to_UTItype): New functions.
6913 (__udivmodti4): Use them to implement type-punning.
6914 * config/spu/multi3.c (union qword_TItype): New data type.
6915 (si_from_TItype, si_to_TItype): New functions.
6916 (__multi3): Use them to implement type-punning.
6918 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6920 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6922 2011-04-27 Jan Hubicka <jh@suse.cz>
6924 * ipa-prop.c (function_insertion_hook_holder): New holder.
6925 (ipa_add_new_function): New function.
6926 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6927 Register/deregister holder.
6929 2011-04-27 Richard Guenther <rguenther@suse.de>
6931 PR tree-optimization/48772
6932 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6934 2011-04-27 Richard Guenther <rguenther@suse.de>
6936 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6937 TARGET_MEM_REF handling.
6939 2011-04-27 Nick Clifton <nickc@redhat.com>
6941 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6942 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6943 (REG_CLASS_NAMES): Likewise.
6944 (REG_CLASS_CONTENTS): Likewise.
6945 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6946 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6947 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6948 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6949 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6950 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6951 duplicate register classes.
6952 (frv_class_likely_spilled_p): Likewise.
6953 (frv_register_move_cost): Likewise.
6955 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6956 end of the regno_reg_class array.
6958 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6961 * c-typeck.c (build_binary_op): Don't wrap arguments if
6962 int_operands is true.
6964 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6967 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6968 targetm.calls.must_pass_in_stack for void type.
6970 2011-04-26 Jan Hubicka <jh@suse.cz>
6972 * cgraphbuild.c (build_cgraph_edges): Update call
6973 of cgraph_create_edge and cgraph_create_indirect_edge.
6974 * cgraph.c (cgraph_create_edge_including_clones,
6975 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6976 cgraph_update_edges_for_call_stmt_node): Do not take nest
6977 argument; do not initialize call_stmt_size/time.
6978 (dump_cgraph_node): Do not dump nest.
6979 (cgraph_clone_edge): Do not take loop_nest argument;
6980 do not propagate it; do not clone call_stmt_size/time.
6981 (cgraph_clone_node): Likewise.
6982 (cgraph_create_virtual_clone): Update.
6983 * cgraph.h (struct cgraph_edge): Remove
6984 call_stmt_size/call_stmt_time/loop_nest.
6985 (cgraph_create_edge, cgraph_create_indirect_edge,
6986 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6988 * tree-emutls.c (gen_emutls_addr): Update.
6989 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6990 loop_nest; handle indirect calls, too.
6991 (clone_inlined_nodes): Do not care about updating inline summaries.
6992 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6993 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6994 stream call_stmt_size/call_stmt_time/loop_nest.
6995 * ipa-inline.c (edge_badness): Update.
6996 (ipa_inline): dump summaries after inlining.
6997 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6999 (inline_edge_summary): New function.
7000 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7001 (inline_edge_removal_hook): Handle edge summaries.
7002 (inline_edge_duplication_hook): New hook.
7003 (inline_summary_alloc): Alloc hooks.
7004 (initialize_growth_caches): Do not register removal hooks.
7005 (free_growth_caches); Do not free removal hook.
7006 (dump_inline_edge_summary): New function.
7007 (dump_inline_summary): Use it.
7008 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7009 (inline_update_callee_summaries): New function.
7010 (inline_merge_summary): Use it.
7011 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7012 (read_inline_edge_summary): New function.
7013 (inline_read_section): Use it.
7014 (write_inline_edge_summary): New function.
7015 (inline_write_summary): Use it.
7016 (inline_free_summary): Free edge new holders.
7017 * tree-inline.c (copy_bb): Update.
7019 2011-04-26 Jason Merrill <jason@redhat.com>
7021 * tree-eh.c (lower_try_finally_switch): Create the label along with
7022 the CASE_LABEL_EXPR.
7024 2011-04-26 David S. Miller <davem@davemloft.net>
7025 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7027 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7028 * configure: Regenerate.
7030 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7033 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7035 (VEC_reduc): New code iterator and splitters for vector reduction.
7036 (VEC_reduc_name): Ditto.
7037 (VEC_reduc_rtx): Ditto.
7038 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7039 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7041 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7042 support for extracting SF on VSX.
7044 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7045 generating xscvspdp.
7046 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7047 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7048 double add, minimum, maximum vector reduction.
7049 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7050 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7051 optimize double vector reduction.
7052 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7054 2011-04-26 Joseph Myers <joseph@codesourcery.com>
7056 * config/fr30/fr30.h (inhibit_libc): Don't define.
7057 * config/m32r/m32r-protos.h: Correct comment.
7058 * config/v850/v850.h (GHS_default_section_names,
7059 GHS_current_section_names): Use tree, not union tree_node *.
7061 2011-04-26 Xinliang David Li <davidxl@google.com>
7063 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7064 * c-family/c-opts.c (c_common_handle_option): Set
7065 warn_maybe_uninitialized.
7066 * opts.c (common_handle_option): Ditto.
7067 * common.opt: New option.
7068 * tree-ssa.c (warn_uninit): Add one more parameter.
7069 (warn_uninitialized_var): Pass warning code.
7070 * tree-flow.h: Interface change.
7072 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7074 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7075 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7076 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7078 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7080 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7081 * config/mips/mips.opt (mmips-tfile): Remove.
7083 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7084 mips-tdump reference to ...
7085 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
7086 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7087 reference by Tru64 UNIX.
7089 2011-04-26 Jakub Jelinek <jakub@redhat.com>
7092 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7093 is error_mark_node, set value to NULL.
7095 PR tree-optimization/48734
7096 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7097 if return value from maybe_fold_*_comparsions isn't something
7098 the code is prepared to handle.
7100 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
7102 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7104 (ext_QIreg_nomode_operands): Remove.
7105 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7109 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
7111 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7113 2011-04-26 Richard Guenther <rguenther@suse.de>
7115 * c-typeck.c (build_unary_op): Do not expand array-refs via
7116 pointer arithmetic. Only adjust qualifiers for function types.
7118 2011-04-26 Richard Guenther <rguenther@suse.de>
7121 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7122 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7123 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7124 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7126 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7128 * doc/extend.texi: Document __underlying_type.
7130 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7132 * config/rs6000/titan.md (automata_option "progress"): Remove.
7134 2011-04-25 Jeff Law <law@redhat.com>
7136 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7138 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7140 * system.h (ENUM_BITFIELD): Remove.
7142 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
7143 Eric Botcazou <ebotcazou@adacore.com>
7145 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7146 for STORE_FLAG_VALUE==-1 case.
7148 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7151 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7152 LEGITIMATE_PIC_OPERAND_P.
7154 2011-04-24 Jan Hubicka <jh@suse.cz>
7156 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7158 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7159 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7160 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7161 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7162 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7163 Sanity check predicate length.
7164 (remap_predicate): Likewise; sanity check jump functions.
7165 (inline_read_section, inline_write_summary): Sanity check
7168 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7171 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7172 __is_literal_type, and __is_trivial; update throughout about
7173 possibly cv-qualified void types.
7175 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7177 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7178 testsuite and make it version agnostic.
7180 2011-04-22 Jan Hubicka <jh@suse.cz>
7182 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7184 2011-04-23 Jakub Jelinek <jakub@redhat.com>
7187 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7188 to VOID_TYPE even around MODIFY_EXPR.
7190 2011-04-22 Mike Stump <mikestump@comcast.net>
7192 * gensupport.c (read_md_rtx): Fix typo in comment.
7193 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7196 2011-04-22 Jan Hubicka <jh@suse.cz>
7198 * gengtype.c (open_base_files): Add ipa-inline.h include.
7199 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7200 ipa-prop.c; update all uses.
7201 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7202 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7203 merge summary of inlined function into former caller.
7204 * ipa-inline.c (max_benefit): Remove.
7205 (edge_badness): Compensate for removal of benefits.
7206 (update_caller_keys): Use
7207 reset_node_growth_cache/reset_edge_growth_cache.
7208 (update_callee_keys): Likewise.
7209 (update_all_callee_keys): Likewise.
7210 (inline_small_functions): Do not collect max_benefit; do not reset
7211 estimated_growth; call free_growth_caches and initialize_growth_caches.
7212 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7213 struct size_time_entry): New structures.
7214 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7215 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7216 and estimated_growth.
7217 (edge_growth_cache_entry): New structure.
7218 (node_growth_cache, edge_growth_cache): New global vars.
7219 (estimate_growth): Turn into inline.
7220 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7221 initialize_growth_caches, free_growth_caches): Declare.
7222 (estimate_edge_growth): Rewrite.
7223 (estimate_edge_time): Implement as inline cache lookup.
7224 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7226 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7227 (NUM_CONDITIONS): New constant.
7228 (predicate_conditions): New enum.
7229 (IS_NOT_CONSTANT): New constant.
7230 (edge_removal_hook_holder): New var.
7231 (node_growth_cache, edge_growth_cache): New global vars.
7232 (true_predicate, single_cond_predicate, false_predicate,
7233 not_inlined_predicate, add_condition, add_clause, and_predicates,
7234 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7235 dump_clause, dump_predicate, account_size_time,
7236 evaulate_conditions_for_edge): New functions.
7237 (inline_summary_alloc): Move to heap.
7238 (inline_node_removal_hook): Clear condition and entry vectors.
7239 (inline_edge_removal_hook): New function.
7240 (initialize_growth_caches, free_growth_caches): New function.
7241 (dump_inline_summary): Update.
7242 (edge_execution_predicate): New function.
7243 (will_be_nonconstant_predicate): New function.
7244 (estimate_function_body_sizes): Compute BB and constantness predicates.
7245 (compute_inline_parameters): Do not clear estimated_growth.
7246 (estimate_edge_size_and_time): New function.
7247 (estimate_calls_size_and_time): New function.
7248 (estimate_callee_size_and_time): New function.
7249 (remap_predicate): New function.
7250 (inline_merge_summary): New function.
7251 (do_estimate_edge_time): New function based on...
7252 (estimate_edge_time): ... this one.
7253 (do_estimate_edge_growth): New function.
7254 (do_estimate_growth): New function based on....
7255 (estimate_growth): ... this one.
7256 (inline_analyze_function): Analyze after deciding on jump functions.
7257 (inline_read_section): New function.
7258 (inline_read_summary): Use it.
7259 (inline_write_summary): Write all the new data.
7260 * ipa-prop.c (ipa_get_param_decl_index): Export.
7261 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7262 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7264 (ipa_get_lattice): Move here from ipa-cp.c
7265 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7266 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7267 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7268 cgraph_edge_inlinable_p): Remove.
7269 * cgraphunit.c: Include ipainline.h
7270 (cgraph_process_new_functions): Update call of
7271 compute_inline_parameters.
7273 2011-04-22 Richard Guenther <rguenther@suse.de>
7275 * tree.c (build_int_cst): Properly create canonicalized integer
7277 (build_int_cst_type): Remove scary comments.
7279 2011-04-22 Xinliang David Li <davidxl@google.com>
7281 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7282 by default when -Wno-error is not specified.
7283 * opts-global.c (decode_options): Remove call to
7284 control_warning_options.
7286 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7288 PR tree-optimization/48717
7289 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7290 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7292 2011-04-22 Joseph Myers <joseph@codesourcery.com>
7294 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7295 definition where used.
7297 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7300 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7301 TREE_STATIC variables declared inside of some OpenMP construct.
7303 2011-04-22 Martin Jambor <mjambor@suse.cz>
7306 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7308 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
7311 * c-typeck.c (pop_init_level): Do not warn about initializing
7314 2011-04-22 Alan Modra <amodra@gmail.com>
7316 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7317 when returning call_cookie.
7318 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7319 pointers, to functions with no more vector args than the current
7320 function, and some non-local calls for ABI_V4.
7321 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7322 sibcall_nonlocal_aix64): Combine to ..
7323 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7324 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7325 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7326 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7327 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7329 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7330 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7331 sibcall_value_symbolic_64): Delete.
7333 2011-04-21 Xinliang David Li <davidxl@google.com>
7335 * cgraph.h: Remove pid.
7336 * cgraph.c: Remove pid.
7337 * value-prof.c (init_node_map): New function.
7338 (del_node_map): New function.
7339 (find_func_by_funcdef_no): New function.
7340 (gimple_ic_transform): Call new function.
7341 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7342 * function.c (get_last_funcdef_no): New function.
7343 * function.h (get_last_funcdef_no): New function.
7344 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7345 to libgcov function.
7346 (tree-profiling): Call node map init and delete function.
7348 2011-04-21 Ian Lance Taylor <iant@google.com>
7350 * godump.c (go_format_type): Use exported Go name for anonymous
7353 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7355 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7356 Call builtin_function_type_list instead of builtin_function_type.
7357 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7359 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7361 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7362 build_function_type_list instead of build_function_type.
7363 Delete variable `endlink'.
7365 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7367 * config/s390/s390.c (s390_init_builtins): Call
7368 build_function_type_list instead of build_function_type.
7370 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7372 * config/ia64/ia64.c (ia64_init_builtins): Call
7373 build_function_type_list instead of builtin_function_type.
7375 2011-04-21 Easwaran Raman <eraman@google.com>
7377 * cfgexpand.c (stack_var): Remove OFFSET...
7378 (add_stack_var): ...and its reference here...
7379 (expand_stack_vars): ...and here.
7380 (stack_var_cmp): Sort by descending order of size.
7381 (partition_stack_vars): Change heuristic.
7382 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7383 (dump_stack_var_partition): Add newline after each partition.
7385 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7386 Jeff Law <law@redhat.com>
7388 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7389 * gengtype.c (matching_file_name_substitute): Likewise.
7391 2011-04-21 Richard Guenther <rguenther@suse.de>
7394 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7396 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7398 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7400 2011-04-21 Richard Guenther <rguenther@suse.de>
7402 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7405 2011-04-21 Richard Guenther <rguenther@suse.de>
7407 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7408 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7409 Use DECL_P, not SSA_VAR_P.
7410 (ptr_derefs_may_alias_p): Likewise.
7411 (ptr_deref_may_alias_ref_p_1): Likewise.
7412 (decl_refs_may_alias_p): Likewise.
7413 (refs_may_alias_p_1): Likewise.
7414 (ref_maybe_used_by_call_p_1): Likewise.
7415 (call_may_clobber_ref_p_1): Likewise.
7416 (indirect_ref_may_alias_decl_p): Assume indirect refrences
7417 are either MEM_REF or TARGET_MEM_REF.
7418 (indirect_refs_may_alias_p): Likewise.
7419 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7420 for MEM_EXPR of indirect calls.
7422 2011-04-21 Tristan Gingold <gingold@adacore.com>
7424 * vmsdbgout.c (write_srccorr): Compute file length from the string.
7425 (dst_file_info_struct): Remove flen field.
7426 (lookup_filename): Remove code that set flen field.
7428 2011-04-21 Tristan Gingold <gingold@adacore.com>
7430 * config/ia64/ia64.c (ia64_start_function): Add a guard.
7432 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
7435 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7436 vec_extract and vec_concat for non-SSE4_1 targets.
7438 2011-04-21 Richard Guenther <rguenther@suse.de>
7440 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7443 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7445 * config/i386/cygming.h (union tree_node, TREE): Don't define or
7447 (FILE): Don't undefine.
7449 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7451 * config/alpha/alpha.c (struct machine_function): Use rtx, not
7453 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7455 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
7456 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
7457 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7459 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
7460 definitions where used.
7461 * config/microblaze/microblaze.h (struct microblaze_args): Use
7462 rtx, not struct rtx_def *.
7463 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7465 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7466 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
7467 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7468 not struct rtx_def *.
7469 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7471 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7473 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
7475 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7477 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7478 operand_equal_p to compare DR_BASE_ADDRESSes.
7479 (vect_check_interleaving): Likewise.
7481 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7484 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
7485 for all Neon struct constants.
7487 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7489 * target.def (legitimate_constant_p): New hook.
7490 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
7491 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
7492 * doc/tm.texi: Regenerate.
7493 * hooks.h (hook_bool_mode_rtx_true): Declare.
7494 * hooks.c (hook_bool_mode_rtx_true): Define.
7495 * system.h (LEGITIMATE_CONSTANT_P): Poison.
7496 * calls.c (precompute_register_parameters): Replace uses of
7497 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
7498 (emit_library_call_value_1): Likewise.
7499 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
7500 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
7501 * ira-costs.c (scan_one_insn): Likewise.
7502 * recog.c (general_operand, immediate_operand): Likewise.
7503 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
7504 * reload1.c (init_eliminable_invariants): Likewise.
7506 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
7508 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
7509 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
7511 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7512 * config/alpha/predicates.md (input_operand): Update call to
7513 alpha_legitimate_constant_p.
7515 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
7516 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
7517 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
7518 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7519 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
7520 (arm_legitimate_constant_p): New functions.
7521 (arm_cannot_force_const_mem): Make static.
7523 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
7525 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
7526 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
7527 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
7528 instead of bfin_legitimate_constant_p.
7529 (bfin_legitimate_constant_p): Make static. Add a mode argument.
7530 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7532 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7534 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7536 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7537 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7538 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7539 (frv_legitimate_constant_p): Make static. Add a mode argument.
7541 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7542 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7543 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7545 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7546 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7547 * config/i386/i386.c (legitimate_constant_p): Rename to...
7548 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7550 (ix86_cannot_force_const_mem): Update accordingly.
7551 (ix86_legitimate_address_p): Likewise.
7552 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7553 * config/i386/i386.md: Update commentary.
7555 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7556 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7557 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7558 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7560 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7562 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7563 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7564 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7565 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7567 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7568 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7569 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7571 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7572 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7573 (m32r_legitimate_constant_p): New function.
7575 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7576 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7577 LEGITIMATE_CONSTANT_P.
7578 (LEGITIMATE_CONSTANT_P): Delete.
7579 * config/m68k/m68k.c (m68k_expand_prologue): Call
7580 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7581 (m68k_legitimate_constant_p): New function.
7582 * config/m68k/m68k.md: Update comments.
7584 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7585 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7586 (mcore_legitimate_constant_p): New function.
7588 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7589 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7590 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7591 Add a mode argument.
7592 (mep_legitimate_address): Update accordingly.
7593 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7595 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7597 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7598 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7599 static. Check OP's mode for VOIDmode.
7600 (microblaze_legitimate_constant_p): New function.
7601 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7603 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7604 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7605 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7606 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7607 * config/mips/predicates.md: Update comments.
7609 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7610 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7611 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7612 (mmix_legitimate_constant_p): Make static, return a bool, and take
7614 (mmix_print_operand_address): Update accordingly.
7616 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7618 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7619 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7620 static. Add a mode argument.
7621 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7623 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7625 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7626 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7627 (pa_legitimate_constant_p): New function.
7629 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7631 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7632 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7633 (pdp11_legitimate_constant_p): New function.
7635 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7636 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7637 (rs6000_legitimate_constant_p): New function.
7639 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7640 (rx_legitimate_constant_p): ...this.
7641 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7642 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7643 (rx_legitimate_constant_p): ...this.
7644 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7645 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7647 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7648 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7649 * config/s390/s390.c (legitimate_constant_p): Rename to...
7650 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7651 and add a mode argument.
7652 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7654 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7656 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7657 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7658 (sh_legitimate_constant_p): New function.
7660 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7661 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7662 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7663 (legitimate_constant_p): Rename to...
7664 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7666 (constant_address_p): Update accordingly.
7668 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7669 argument and return a bool.
7670 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7671 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7672 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7673 (spu_rtx_costs): Update accordingly.
7674 * config/spu/predicates.md (vec_imm_operand): Likewise.
7676 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7678 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7679 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7680 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7682 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7683 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7684 * config/vax/vax.c (legitimate_constant_p): Likewise.
7686 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7687 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7688 (xtensa_legitimate_constant_p): New function.
7690 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7692 * target.def (cannot_force_const_mem): Add a mode argument.
7693 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7694 * doc/tm.texi: Regenerate.
7695 * hooks.h (hook_bool_mode_rtx_false): Declare.
7696 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7697 (hook_bool_mode_const_rtx_true): Likewise.
7698 (hook_bool_mode_rtx_false): New function.
7699 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7700 to be non-VOID. Update call to cannot_force_const_mem.
7701 (find_reloads): Update accordingly.
7702 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7703 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7705 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7706 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7707 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7708 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7709 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7710 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7711 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7712 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7713 (m68k_cannot_force_const_mem): ...this new function.
7714 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7716 (mips_const_insns, mips_legitimize_const_move): Update calls.
7717 (mips_secondary_reload_class): Likewise.
7718 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7719 (pa_cannot_force_const_mem): ...this new function.
7720 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7721 (rs6000_cannot_force_const_mem): ...this new function.
7722 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7724 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7725 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7727 (xtensa_cannot_force_const_mem): ...this new function.
7729 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7731 * config/mips/mips.c (mips16_build_function_stub): Call
7732 build_function_type_list instead of build_function_type.
7733 (mips16_build_call_stub): Likewise.
7735 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7737 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7738 instead of build_function_type.
7740 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7742 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7743 instead of build_function_type.
7745 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7748 * config/i386/i386.md (insv): Change operand 0 constraint to
7749 "register_operand". Change operand 1 and 2 constraint to
7750 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7751 * config/i386/sse.md (sse4_1_pinsrb): Export.
7752 (sse2_pinsrw): Ditto.
7753 (sse4_1_pinsrd): Ditto.
7754 (sse4_1_pinsrq): Ditto.
7755 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7756 * config/i386/i386.c (ix86_expand_pinsr): New.
7758 2011-04-20 Easwaran Raman <eraman@google.com>
7760 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7761 containing union type only with -fstrict-aliasing.
7763 2011-04-20 Jim Meyering <meyering@redhat.com>
7765 Remove useless if-before-free tests.
7766 * calls.c (expand_call, save_area): Likewise.
7767 * cfgcleanup.c (try_forward_edges): Likewise.
7768 * collect2.c (collect_execute): Likewise.
7769 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7770 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7771 * coverage.c (coverage_checksum_string): Likewise.
7772 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7773 * cselib.c (cselib_init): Likewise.
7774 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7775 (df_set_clean_cfg): Likewise.
7776 * function.c (free_after_compilation): Likewise.
7777 * gcc.c (do_spec_1, main): Likewise.
7778 * gcov.c (create_file_names): Likewise.
7779 * gensupport.c (identify_predicable_attribute): Likewise.
7780 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7781 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7782 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7783 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7784 * ipa-pure-const.c (local_pure_const): Likewise.
7785 * ipa-reference.c (propagate): Likewise.
7786 * ira-costs.c (free_ira_costs): Likewise.
7787 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7788 * matrix-reorg.c (mat_free): Likewise.
7789 * prefix.c (get_key_value): Likewise.
7790 * profile.c (compute_value_histograms): Likewise.
7791 * reload1.c (free_reg_equiv): Likewise.
7792 * sched-deps.c (free_deps): Likewise.
7793 * sel-sched-ir.c (fence_clear): Likewise.
7794 * sese.c (set_rename, if_region_set_false_region): Likewise.
7795 * tree-data-ref.c (free_rdg): Likewise.
7796 * tree-eh.c (lower_try_finally): Likewise.
7797 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7798 * tree-ssa-live.c (delete_var_map): Likewise.
7799 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7800 * tree-ssa-pre.c (phi_trans_add): Likewise.
7802 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7804 PR tree-optimization/48611
7805 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7806 beyond ERT_MUST_NOT_THROW region.
7808 2011-04-20 Catherine Moore <clm@codesourcery.com>
7810 * config/mips/mips.opt (mfix-24k): New.
7811 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7812 * config/mips/mips.md (length): Increase by 4 for stores if
7814 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7815 all noreorder if fixing 24K errata.
7816 * doc/invoke.texi: Document mfix-24k.
7818 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7820 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7821 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7823 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7825 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7826 (const_ok_for_op): ... to here.
7828 2011-04-20 Kai Tietz <ktietz@redhat.com>
7830 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7831 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7833 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7835 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7837 2011-04-20 Richard Guenther <rguenther@suse.de>
7839 PR tree-optimization/47892
7840 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7843 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7845 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7847 2011-04-20 Tristan Gingold <gingold@adacore.com>
7849 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7851 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7855 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7856 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7857 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7858 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7859 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7861 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7864 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7865 (avr_asm_named_section, avr_asm_output_aligned_common,
7866 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7867 New functions to update...
7868 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7869 (avr_asm_init_sections): Overwrite section callbacks for
7870 data_section, bss_section.
7871 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7873 (avr_file_end): ...here.
7875 2011-04-20 Richard Guenther <rguenther@suse.de>
7878 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7879 objects and types here. Adjust for their offset before comparing.
7881 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7883 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7886 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7888 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7889 (GIMPLE_H): Include $(INTERNAL_FN_H).
7890 (OBJS-common): Add internal-fn.o.
7891 (internal-fn.o): New rule.
7892 * internal-fn.def: New file.
7893 * internal-fn.h: Likewise.
7894 * internal-fn.c: Likewise.
7895 * gimple.h: Include internal-fn.h.
7896 (GF_CALL_INTERNAL): New gf_mask.
7897 (gimple_statement_call): Put fntype into a union with a new
7899 (gimple_build_call_internal): Declare.
7900 (gimple_build_call_internal_vec): Likewise.
7901 (gimple_call_same_target_p): Likewise.
7902 (gimple_call_internal_p): New function.
7903 (gimple_call_internal_fn): Likewise.
7904 (gimple_call_fntype): Return null for internal calls.
7905 (gimple_call_set_fntype): Assert that the function is not internal.
7906 (gimple_call_set_fn): Likewise.
7907 (gimple_call_set_fndecl): Likewise.
7908 (gimple_call_set_internal_fn): New function.
7909 (gimple_call_addr_fndecl): Handle null functions.
7910 (gimple_call_return_type): Likewise null types.
7911 * gimple.c (gimple_build_call_internal_1): New function.
7912 (gimple_build_call_internal): Likewise.
7913 (gimple_build_call_internal_vec): Likewise.
7914 (gimple_call_same_target_p): Likewise.
7915 (gimple_call_flags): Handle calls to internal functions.
7916 (gimple_call_fnspec): New function.
7917 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7918 (gimple_has_side_effects): Handle null functions.
7919 (gimple_rhs_has_side_effects): Likewise.
7920 (gimple_call_copy_skip_args): Handle calls to internal functions.
7921 * cfgexpand.c (expand_call_stmt): Likewise.
7922 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7923 * gimple-fold.c (gimple_fold_call): Handle null functions.
7924 (gimple_fold_stmt_to_constant_1): Don't fold
7925 calls to internal functions.
7926 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7928 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7929 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7930 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7931 (do_warn_unused_result): Likewise.
7932 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7933 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7934 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7935 the target of a call.
7936 (initialize_hash_element): Update accordingly.
7937 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7938 (iterative_hash_hashable_expr): Handle calls to internal functions.
7939 (print_expr_hash_elt): Likewise.
7940 * tree-ssa-pre.c (can_value_number_call): Likewise.
7941 (eliminate): Handle null functions.
7942 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7943 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7944 (find_func_aliases): Likewise.
7945 * value-prof.c (gimple_ic_transform): Likewise.
7946 (gimple_indirect_call_to_profile): Likewise.
7947 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7948 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7950 2011-04-19 Jan Hubicka <jh@suse.cz>
7952 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7953 * ipa-inline.c (inline_small_functions): Compute summaries first,
7954 populate heap later.
7956 2011-04-19 Jan Hubicka <jh@suse.cz>
7958 * cgraph.h (save_inline_function_body): Remove.
7959 * ipa-inline-transform.c: New file, broke out of...
7960 * ipa-inline.c: ... this one; Update toplevel comment.
7961 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7963 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7964 (cgraph_mark_inline_edge): Rename to inline_call; move to
7965 ipa-inline-transform.c.
7966 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7967 move to ipa-inline-transform.c
7968 (recursive_inlining, inline_small_functions, flatten_function,
7969 ipa_inline, inline_always_inline_functions,
7970 early_inline_small_functions): Update.
7971 (inline_transform): Move to ipa-inline-transform.c.
7972 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7974 * Makefile.in (ipa-inline-transform.o): New file.
7975 * cgraphunit.c (save_inline_function_body): Move to
7976 ipa-inline-transform.c
7978 2011-04-19 DJ Delorie <dj@redhat.com>
7980 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7981 registers if we already know there aren't any.
7982 (m32c_emit_epilogue): Don't emit a barrier here.
7983 (m32c_emit_eh_epilogue): Likewise.
7984 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7985 operands at expand time.
7986 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7988 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7989 duplicates. Provide aliases instead.
7990 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7991 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7994 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7996 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7997 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7998 (general_or_i64_p, sparc_register_move_cost): New function.
8000 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8002 * doc/install.texi (Configuration, --enable-threads): Remove mach.
8003 Add lynx, mipssde. Sort table.
8005 2011-04-19 Xinliang David Li <davidxl@google.com>
8007 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8010 2011-04-19 Jakub Jelinek <jakub@redhat.com>
8013 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8014 is a SUBREG with non-MODE_INT mode inside of it.
8016 2011-04-19 Martin Jambor <mjambor@suse.cz>
8018 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8019 also according to actual contants.
8020 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8021 (gimple_fold_call): Use it.
8022 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8024 2011-04-19 Martin Jambor <mjambor@suse.cz>
8026 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8027 non-pointer assignments.
8029 2011-04-19 Martin Jambor <mjambor@suse.cz>
8031 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8032 account anc_offset and otr_type from the indirect edge info.
8033 * ipa-prop.c (get_ancestor_addr_info): New function.
8034 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8035 get_ancestor_addr_info, call it.
8036 (ipa_note_param_call): Do not initialize information about polymorphic
8037 calls, return the indirect call graph edge. Remove the last
8038 parameter, adjust all callers.
8039 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8040 parameters. Initialize polymorphic information in the indirect edge.
8042 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8045 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8046 the types if they have different enumeration identifiers.
8048 2011-04-19 Jan Hubicka <jh@suse.cz>
8050 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8051 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8052 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8053 (optimize_function_for_size_p) ... here.
8055 2011-04-19 Richard Guenther <rguenther@suse.de>
8058 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8061 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8063 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8064 if DECL_NO_INLINE_WARNING_P is set on the function.
8066 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8069 * reload1.c (inc_for_reload): Return void. All callers changed.
8070 (emit_input_reload_insns): Don't try to delete previous output
8071 reloads to a register, or record spill_reg_store for autoincs.
8073 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8075 * gengtype.h: Updated copyright year.
8076 (struct input_file_st): Add inpisplugin field.
8077 (type_fileloc): New function.
8079 (write_typed_struct_alloc_def): Add gcc_assert.
8080 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8081 (write_typed_alloc_defns): Don't output for plugin files.
8082 (input_file_by_name): Clear inpisplugin field.
8083 (main): Set inpisplugin field for plugin files.
8085 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8087 * gengtype-state.c (string_eq): New.
8088 (read_state): Use string_eq instead of strcmp when creating the
8091 2011-04-19 Wei Guozhi <carrot@google.com>
8094 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8095 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8097 * config/arm/constraints.md (Uu): New constraint.
8098 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8100 2011-04-19 Tristan Gingold <gingold@adacore.com>
8102 * config.gcc (-*-*-*vms): Added.
8103 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8105 * config/vms/vms-ld.c: New file.
8106 * config/vms/vms-ar.c: New file.
8107 * config/vms/t-vmsnative: New file.
8109 2011-04-18 Xinliang David Li <davidxl@google.com>
8111 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8113 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8116 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8117 if TREE_TYPE (v) is non-NULL.
8119 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8120 gimple_get_virt_mehtod_for_binfo.
8121 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8122 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8124 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8126 2011-04-18 Michael Matz <matz@suse.de>
8127 Steve Ellcey <sje@cup.hp.com>
8129 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8130 use its mode as source mode if it isn't VOIDmode.
8132 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8134 * doc/passes.texi: Fill crossref nodes.
8136 2011-04-18 Jim Meyering <meyering@redhat.com>
8138 Fix doubled-word typos in comments and strings
8139 * config/alpha/vms-unwind.h: s/for for/for/
8140 * config/arm/unwind-arm.h: Likewise.
8141 * config/microblaze/microblaze.c: Likewise.
8142 * config/sh/constraints.md: s/in in/in/
8143 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8145 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
8147 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8148 (AVX_FLOAT_MODE_P): Ditto.
8149 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8150 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8151 (AVX_VEC_FLOAT_MODE_P): Ditto.
8152 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8153 (UNSPEC_MASKSTORE): Ditto.
8154 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8155 Merge from <sse>_movmsk<ssemodesuffix> and
8156 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8157 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8159 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8160 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8161 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8163 2011-04-18 Jan Hubicka <jh@suse.cz>
8165 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8167 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8168 (want_inline_function_called_once_p): Break out the logic from
8170 (edge_badness): Ensure that profile is not misupdated.
8171 (lookup_recursive_calls): Prioritize by call frequencies.
8172 (inline_small_functions): Move program size estimates here;
8173 actually process whole queue even when unit growth has been
8174 met. (to properly compute inline_failed reasons and for the
8175 case unit size decrease.) Revisit comments on recursive inlining.
8176 (ipa_inline): Remove unit summary code; first inline hot calls
8177 of functions called once, cold calls next.
8178 (order, nnodes): Remove unused variables.
8179 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8180 (GTFILES): Remove ipa-inline.c
8181 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8183 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8185 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8187 2011-04-18 Jie Zhang <jie@codesourcery.com>
8188 Richard Earnshaw <rearnsha@arm.com>
8190 * arm.c (neon_builtin_type_bits): Remove.
8191 (typedef enum neon_builtin_mode): New.
8192 (T_MAX): Don't define.
8193 (typedef enum neon_builtin_datum): Remove bits, codes[],
8194 num_vars and base_fcode. Add mode, code and fcode.
8195 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8196 VAR10): Change accordingly.
8197 (neon_builtin_data[]): Change accordingly
8198 (arm_init_neon_builtins): Change accordingly.
8199 (neon_builtin_compare): Remove.
8200 (locate_neon_builtin_icode): Remove.
8201 (arm_expand_neon_builtin): Change accordingly.
8203 * arm.h (enum arm_builtins): Move to ...
8204 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8206 * arm.c (arm_builtin_decl): Declare.
8207 (TARGET_BUILTIN_DECL): Define.
8208 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8209 (arm_builtin_decls[]): New.
8210 (arm_init_neon_builtins): Store builtin declarations in
8211 arm_builtin_decls[].
8212 (arm_init_tls_builtins): Likewise.
8213 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8214 (arm_builtin_decl): New.
8216 2011-04-18 Richard Guenther <rguenther@suse.de>
8218 * tree.c (upper_bound_in_type): Build properly canonicalized
8220 (lower_bound_in_type): Likewise.
8222 2011-04-18 Richard Guenther <rguenther@suse.de>
8224 * gimple.h (gimple_call_addr_fndecl): New function.
8225 (gimple_call_fndecl): Use it.
8226 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8228 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8229 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8231 2011-04-18 Richard Guenther <rguenther@suse.de>
8234 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8236 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8239 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8240 DECL_IN_CONSTANT_POOL without RTL.
8242 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8243 Ira Rosen <ira.rosen@linaro.org>
8246 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8247 to match neon_vzip/vuzp/vtrn_internal.
8248 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8249 outputs explicitly dependent on both inputs.
8250 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8252 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8254 PR tree-optimization/48616
8255 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8256 whether the shift is by scalar or vector based on whether all SLP
8257 scalar stmts have the same rhs.
8259 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8261 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8264 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8267 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8270 2011-04-17 Jan Hubicka <jh@suse.cz>
8272 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8273 * cgrpahunit.c (cgraph_finalize_function): Do not set
8274 finalized_by_frontend.
8275 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8276 finalized_by_frontend.
8278 2011-04-17 Jan Hubicka <jh@suse.cz>
8280 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8281 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8282 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8283 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8285 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8287 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8289 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8292 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8293 is non-null before accessing it.
8294 (input_cgraph): Remove trailing spaces.
8296 2011-04-17 Revital Eres <revital.eres@linaro.org>
8298 * params.def (sms-min-sc): New param flag.
8299 * modulo-sched.c (sms_schedule): Use it.
8300 * doc/invoke.texi (sms-min-sc): Document it.
8302 2011-04-17 Jan Hubicka <jh@suse.cz>
8304 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8305 present, also set gimple_call_set_cannot_inline.
8306 * ipa-inline.c: Update toplevel comment.
8308 (cgraph_clone_inlined_nodes): Fix linebreaks.
8309 (cgraph_check_inline_limits): Restructure to ...
8310 (caller_growth_limits): ... this one; be more tolerant
8311 on growth in nested inline chains; add explanatory comment;
8312 fix stack accounting thinko introduced by previous patch.
8313 (cgraph_default_inline_p): Remove.
8314 (report_inline_failed_reason): New function.
8315 (can_inline_edge_p): New function.
8316 (can_early_inline_edge_p): New function.
8317 (leaf_node_p): Move upwards in file.
8318 (want_early_inline_function_p): New function.
8319 (want_inline_small_function_p): New function.
8320 (want_inline_self_recursive_call_p): New function.
8321 (cgraph_edge_badness): Rename to ...
8322 (edge_badness) ... this one; fix linebreaks.
8323 (update_edge_key): Update call of edge_baddness; add
8324 detailed dump about queue updates.
8325 (update_caller_keys): Use can_inline_edge_p and
8326 want_inline_small_function_p.
8327 (cgraph_decide_recursive_inlining): Rename to...
8328 (recursive_inlining): Use can_inline_edge_p and
8329 want_inline_self_recursive_call_p; simplify and remove no longer
8331 (cgraph_set_inline_failed): Remove.
8332 (add_new_edges_to_heap): Use can_inline_edge_p and
8333 want_inline_small_function_p.
8334 (cgraph_decide_inlining_of_small_functions): Rename to ...
8335 (inline_small_functions): ... this one; cleanup; use
8336 can/want predicates; cleanup debug ouput; work edges till fibheap
8337 is exhausted and do not stop once unit growth is reached; remove
8338 later loop processing remaining edges.
8339 (cgraph_flatten): Rename to ...
8340 (flatten_function): ... this one; use can_inline_edge_p
8341 and can_early_inline_edge_p predicates.
8342 (cgraph_decide_inlining): Rename to ...
8343 (ipa_inline): ... this one; remove unreachable nodes before
8344 inlining functions called once; simplify the pass.
8345 (cgraph_perform_always_inlining): Rename to ...
8346 (inline_always_inline_functions): ... this one; use
8347 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8348 (cgraph_decide_inlining_incrementally): Rename to ...
8349 (early_inline_small_functions): ... this one; simplify
8350 using new predicates; cleanup; make dumps prettier.
8351 (cgraph_early_inlining): Rename to ...
8352 (early_inliner): newer inline regular functions into always-inlines;
8353 fix updating of call stmt summaries.
8354 (pass_early_inline): Update for new names.
8355 (inline_transform): Fix formating.
8356 (gate_cgraph_decide_inlining): Rename to ...
8357 (pass_ipa_inline): ... this one.
8358 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8359 * ipa-inline-analysis.c (dump_inline_summary): Update.
8360 (compute_inline_parameters): Do not compute disregard_inline_limits;
8361 look for mismatching arguments.
8362 (estimate_growth): Fix handlig of non-trivial self recursion.
8363 (inline_read_summary): Do not read info->disregard_inline_limits.
8364 (inline_write_summary): Do not write info->disregard_inline_limits.
8365 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8366 and move all checks into can_inline_edge_p predicate; re-enable code
8367 comparing optimization levels.
8368 (expand_call_inline): Do not test inline_forbidden_into_p.
8369 * Makefile.in (ipa-inline.o): Update arguments.
8371 2011-04-17 Revital Eres <revital.eres@linaro.org>
8373 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8375 2011-04-17 Revital Eres <revital.eres@linaro.org>
8377 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8379 2011-04-17 Michael Matz <matz@suse.de>
8381 PR tree-optimization/48622
8383 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8384 in same order as they're written.
8386 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8388 * config/pa/predicates.md: Reorganize and simplify predicates.
8389 Eliminate duplicate code checks.
8390 (arith_operand): Rename to arith14_operand
8391 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8392 * config/pa/pa.md: Use renamed operands.
8393 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8394 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8395 arith11_operand, adddi3_operand, indexed_memory_operand,
8396 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8397 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8398 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8399 move_dest_operand, move_src_operand, prefetch_cc_operand,
8400 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8401 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8402 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8403 div_operand, int5_operand, movb_comparison_operator,
8404 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8405 arith_double_operand, ireg_operand, lhs_lshift_operand,
8406 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8407 integer_store_memory_operand): Likewise.
8408 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8409 (integer_store_memory_operand, read_only_operand,
8410 function_label_operand, borx_reg_operand,
8411 non_hard_reg_operand): Likewise.
8412 (eq_neq_comparison_operator): Delete unused operator.
8413 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8414 function_label_operand.
8415 (emit_move_sequence): Likewise.
8417 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8419 * config/i386/sse.md (sseunpackmode): New mode attribute.
8420 (ssepackmode): Ditto.
8421 (vec_pack_trunc_<mode>): Macroize expander from
8422 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8423 (vec_unpacks_lo_<mode>): Macroize expander from
8424 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8425 (vec_unpacks_hi_<mode>): Macroize expander from
8426 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8427 (vec_unpacku_lo_<mode>): Macroize expander from
8428 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8429 (vec_unpacku_hi_<mode>): Macroize expander from
8430 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8431 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8432 ix86_expand_sse4_unpack.
8433 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8435 2011-04-16 Jan Hubicka <jh@suse.cz>
8437 * cgraphbuild.c: Include ipa-inline.h.
8438 (reset_inline_failed): Use initialize_inline_failed.
8439 * cgraph.c: Include ipa-inline.h.
8440 (cgraph_create_node_1): Do not initialize estimated_growth.
8441 (initialize_inline_failed): More to ipa-inline-analysis.c
8442 (dump_cgraph_node): Do not dump inline flags.
8443 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8444 and disregard_inline_limits flags.
8445 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8446 time, size, estimated_growth.
8447 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8449 * cgraphunit.c (cgraph_decide_is_function_needed): Use
8450 DECL_DISREGARD_INLINE_LIMITS.
8451 (cgraph_analyze_function): Do not initialize
8452 node->local.disregard_inline_limits.
8453 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8454 inlinable, versionable and disregard_inline_limits.
8455 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8456 cgraph_check_inline_limits, cgraph_default_inline_p,
8457 cgraph_edge_badness, update_caller_keys, update_callee_keys,
8458 add_new_edges_to_heap): Update.
8459 (cgraph_decide_inlining_of_small_function): Update; set
8460 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
8461 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8462 cgraph_decide_inlining_incrementally): Update.
8463 * ipa-inline.h (inline_summary): Add inlinable, versionable,
8464 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8465 time, size and estimated_growth parameters.
8466 (estimate_edge_growth): Update.
8467 (initialize_inline_failed): Declare.
8468 * ipa-split.c: Include ipa-inline.h
8469 (execute_split_functions): Update.
8470 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8471 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8472 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8473 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8474 estimated_growth to INT_MIN.
8475 (inline_node_duplication_hook): Likewise.
8476 (dump_inline_summary): Dump new fields.
8477 (compute_inline_parameters): Update.
8478 (estimate_edge_time, estimate_time_after_inlining,
8479 estimate_size_after_inlining, estimate_growth, inline_read_summary,
8480 inline_write_summary):
8481 (initialize_inline_failed): Move here from cgraph.c.
8482 * tree-sra.c: Include ipa-inline.h.
8483 (ipa_sra_preliminary_function_checks): Update.
8484 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
8487 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8489 * config/i386/sse.md (V16): New mode iterator.
8491 (AVXMODEQI, AVXMODEDI): Remove.
8492 (sse2, sse3): New mode attribute.
8493 (mov<mode>): Use V16 mode iterator.
8494 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
8495 (push<mode>1): Use V16 mode iterator.
8496 (movmisalign<mode>): Ditto.
8497 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8498 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
8499 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8500 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
8501 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
8502 avx_movdqu<avxmodesuffix>.
8503 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
8504 *avx_movdqu<avxmodesuffix>.
8505 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
8506 avx_lddqu<avxmodesuffix>.
8507 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
8508 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
8509 avx_movnt<AVXMODEDI:mode>.
8510 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
8511 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
8513 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
8516 * haifa-sched.c (prune_ready_list, schedule_block): Use
8517 sched_pressure_p rather than flag_sched_pressure.
8519 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
8521 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8522 cgraph_get_node instead of cgraph_get_create_node.
8524 2011-04-15 Jakub Jelinek <jakub@redhat.com>
8526 * cfgexpand.c (expand_debug_expr): Use
8527 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
8529 2011-04-15 Michael Matz <matz@suse.de>
8531 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
8532 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
8533 * function.c (gimplify_parameters): Ditto.
8534 * gimplify.c (gimplify_vla_decl): Ditto.
8536 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8537 (gimple_call_set_alloca_for_var): New inline function.
8538 (gimple_call_alloca_for_var_p): Ditto.
8539 * gimple.c (gimple_build_call_from_tree): Remember
8540 CALL_ALLOCA_FOR_VAR_P state.
8541 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8543 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8544 calls if they were for VLA objects.
8546 2011-04-15 Martin Jambor <mjambor@suse.cz>
8548 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8551 2011-04-15 Martin Jambor <mjambor@suse.cz>
8554 * tree-emutls.c (lower_emutls_function_body): Call
8555 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8558 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8560 * c-decl.c (detect_field_duplicates): Call
8561 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8563 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8565 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8566 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8567 * ipa-pure-const.c (check_stmt): Call it.
8568 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8570 2011-04-15 Richard Guenther <rguenther@suse.de>
8572 PR tree-optimization/48290
8573 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8574 Properly decide inhibiting propagation based on the valueized
8575 operand. Do loop-closed SSA form preserving here ...
8576 (init_copy_prop): ... not here.
8578 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8581 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8582 (*ieee_smax<mode>3): Likewise.
8584 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8586 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8587 Replace match_operand with match_dup for the third operand in
8590 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8592 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8593 to track processing of conditionals. Update all callers.
8594 (try_combine, simplify_if_then_else): Update.
8596 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8598 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8601 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
8603 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8604 instead of match_operand for operand 3.
8606 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8608 * recog.h (insn_operand_data): Add an "allows_mem" field.
8609 * genoutput.c (output_operand_data): Initialize it.
8610 * optabs.c (maybe_legitimize_operand_same_code): New function.
8611 (maybe_legitimize_operand): Use it when matching the original
8614 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8616 * gimplify.c: Fix issues in comments throughout.
8617 (voidify_wrapper_expr): Fix long line.
8618 (build_stack_save_restore): Likewise.
8619 (gimplify_loop_expr): Likewise.
8620 (gimplify_compound_lval): Likewise.
8621 (gimplify_init_ctor_eval): Likewise.
8622 (gimplify_modify_expr_rhs): Likewise.
8623 (omp_notice_threadprivate_variable): Likewise.
8625 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8627 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8628 original one if this is not a builtin function.
8630 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8633 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8634 offset it as needed based on top 2 bits in operands[3], change
8635 MEM mode to SFmode and mask those 2 bits away from operands[3].
8637 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8639 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8640 change from objc_declare_protocols() to objc_declare_protocol().
8642 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8644 * config/i386/sse.md (sse4_1): New mode attribute.
8645 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8646 avx_blend<ssemodesuffix><avxmodesuffix> and
8647 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8648 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8649 avx_blendv<ssemodesuffix><avxmodesuffix> and
8650 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8651 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8652 avx_dp<ssemodesuffix><avxmodesuffix> and
8653 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8654 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8655 (sse4_1_packusdw): Merge with *avx_packusdw.
8656 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8657 (sse4_1_pblendw): Merge with *avx_pblendw.
8658 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8659 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8660 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8662 (sse4_1_round<ssescalarmodesuffix>): Merge with
8663 *avx_round<ssescalarmodesuffix>.
8664 (aesenc): Merge with *avx_aesenc.
8665 (aesenclast): Merge with *avx_aesenclast.
8666 (aesdec): Merge with *avx_aesdec.
8667 (aesdeclast): Merge with *avx_aesdeclast.
8668 (pclmulqdq): Merge with *pclmulqdq.
8669 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8671 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8673 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8676 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8677 (align_local_variable): This. Update DECL_ALIGN.
8678 (add_stack_var): Updated.
8679 (expand_one_stack_var): Likewise.
8681 2011-04-14 Richard Guenther <rguenther@suse.de>
8683 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8685 (dse_initialize_block_local_data, dse_leave_block,
8686 record_voperand_set, get_stmt_uid): Likewise.
8687 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8688 (dse_optimize_stmt): Remove voperand set handling code.
8689 Simplify and improve to handle any kind of killing stmt.
8690 (dse_record_phi): Remove.
8691 (dse_enter_block): Simplify.
8692 (tree_ssa_dse): Likewise.
8693 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8695 2011-04-14 Jan Hubicka <jh@suse.cz>
8697 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8698 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8699 (cgraph_local_info): Remove inline_summary.
8700 * ipa-cp.c: Include ipa-inline.h.
8701 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8702 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8704 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8705 (input_overwrite_node): Do not set inline summary.
8706 (input_node): Do not stream inline summary.
8707 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8708 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8709 growth; we do not have inline parameters computed for that anyway.
8710 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8711 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8712 (inline_summary_t): New type and VECtor.
8713 (debug_inline_summary, dump_inline_summaries): Declare.
8714 (inline_summary): Use VOCtor.
8715 (estimate_edge_growth): Kill hack computing call stmt size directly.
8716 * lto-section-in.c (lto_section_name): Add inline section.
8717 * ipa-inline-analysis.c: Include lto-streamer.h
8718 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8719 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8720 (inline_summary_vec): Define.
8721 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8722 dump_inline_summaries): New functions.
8723 (estimate_function_body_sizes): Properly compute size/time of outgoing
8725 (compute_inline_parameters): Alloc inline_summary; do not compute
8726 size/time of incomming calls.
8727 (estimate_edge_time): Avoid missing time summary hack.
8728 (inline_read_summary): Read inline summary info.
8729 (inline_write_summary): Write inline summary info.
8730 (inline_free_summary): Free all hooks and inline summary vector.
8731 * lto-streamer.h: Add LTO_section_inline_summary section.
8732 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8733 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8735 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8737 * tree-vectorizer.h (vect_strided_store_supported): Add a
8738 HOST_WIDE_INT argument.
8739 (vect_strided_load_supported): Likewise.
8740 (vect_permute_store_chain): Return void.
8741 (vect_transform_strided_load): Likewise.
8742 (vect_permute_load_chain): Delete.
8743 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8744 count argument. Check that the count is a power of two.
8745 (vect_strided_load_supported): Likewise.
8746 (vect_permute_store_chain): Return void. Update after above changes.
8747 Assert that the access is supported.
8748 (vect_permute_load_chain): Likewise.
8749 (vect_transform_strided_load): Return void.
8750 * tree-vect-stmts.c (vectorizable_store): Update calls after
8751 above interface changes.
8752 (vectorizable_load): Likewise.
8753 (vect_analyze_stmt): Don't check for strided powers of two here.
8755 2011-04-14 Richard Guenther <rguenther@suse.de>
8757 PR tree-optimization/48590
8758 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8759 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8760 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8761 BUILT_IN_STACK_SAVE.
8762 * tree-ssa-dce.c (propagate_necessity): Handle
8763 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8765 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8767 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8770 2011-04-14 Richard Guenther <rguenther@suse.de>
8772 * tree.h (get_object_alignment_1): Declare.
8773 * builtins.c (get_object_alignment_1): Split out worker from ...
8774 (get_object_alignment): ... here.
8775 * fold-const.c (get_pointer_modulus_and_residue): Use
8776 get_object_alignment_1.
8778 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8780 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8782 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8783 parameter. Generalise code to handle arrays as well as vectors.
8784 (vect_setup_realignment): Update accordingly.
8785 * tree-vect-stmts.c (vectorizable_store): Likewise.
8786 (vectorizable_load): Likewise.
8788 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8790 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8791 within the per-copy loop.
8793 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8795 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8798 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8800 * doc/options.texi (Negative): Explicitly mention that the
8801 Negative chain must be circular.
8803 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8805 * function.h (block_chainon): Declare.
8806 * function.c (block_chainon): Define.
8808 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8809 Eric Weddington <eric.weddington@atmel.com>
8810 Georg-Johann Lay <avr@gjlay.de>
8812 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8814 (avr_init_builtins, avr_expand_builtin,
8815 avr_expand_delay_cycles, avr_expand_unop_builtin,
8816 avr_expand_binop_builtin ): New functions.
8817 (avr_builtin_id): New enum
8818 (struct avr_builtin_description): New struct
8819 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8820 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8822 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8823 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8824 UNSPECV_DELAY_CYCLES): new enumeration values
8825 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8826 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8827 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8828 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8829 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8830 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8831 "fmulsu"): New insns
8833 * config/avr/avr-c.c: fix line endings
8834 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8835 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8836 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8837 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8838 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8840 * doc/extend.texi (AVR Built-in Functions): New node
8841 (Target Builtins): Add documentation of AVR
8844 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8847 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8848 alone. Error if non-const data has attribute progmem.
8850 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8852 * tree.h (struct tree_constructor): Include tree_typed instead of
8854 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8855 TS_TYPED instead of TS_COMMON.
8857 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8859 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8860 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8861 (sse2_psadbw): Merge with *avx_psadbw.
8862 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8863 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8864 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8865 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8866 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8867 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8868 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8869 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8870 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8871 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8872 (ssse3_palignrti): Merge with *avx_palignrti.
8874 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8876 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8877 * tree-ssanames.c (fini_ssanames): VEC_free it.
8878 (make_ssa_name_fn): Update for VECness of free_ssanames.
8879 (release_ssa_name, release_dead_ssa_names): Likewise.
8880 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8882 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8883 TS_TYPED instead of TS_COMMON.
8885 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8887 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8888 statistics_counter_event.
8889 * tree-ssa-copyrename.c (stats): Define.
8890 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8891 statistics_counter_event.
8892 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8893 (bswap_stats, widen_mul_stats): Define.
8894 (insert_reciprocals): Increment rdivs_inserted.
8895 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8896 rfuncs_inserted. Add calls to statistics_counter_event.
8897 (execute_cse_sincos_1): Increment inserted.
8898 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8899 statistics_counter_event.
8900 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8901 of bswap_stats. Add calls to statistics_counter_event.
8902 (convert_mult_to_widen): Increment widen_mults_inserted.
8903 (convert_plusminus_to_widen): Increment maccs_inserted.
8904 (convert_mult_to_fma): Increment fmas_inserted.
8905 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8906 calls to statistics_counter_event.
8908 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8910 PR rtl-optimization/48455
8911 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8912 `temp_costs->mem_cost'.
8914 2011-04-13 Jan Hubicka <jh@suse.cz>
8916 * ipa-inline.h: New file.
8917 * ipa-inline-analysis.c: New file. Broken out of ...
8918 * ipa-inline.c: ... this file; update toplevel comment;
8919 include ipa-inline.h
8920 (inline_summary): Move to ipa-inline.h
8921 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8922 ipa-inline-analysis.c.
8923 (cgraph_estimate_time_after_inlining): Rename to
8924 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8925 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8926 to estimate_edge_growth.
8927 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8928 rename to estimate_size_after_inlining.
8929 (cgraph_mark_inline_edge): Update for new naming convention.
8930 (cgraph_check_inline_limits): Likewise.
8931 (cgraph_edge_badness): Likewise.
8932 (cgraph_decide_recursive_inlining): Likewise.
8933 (cgraph_decide_inlining_of_small_functions): Likewise.
8934 (cgraph_decide_inlining_incrementally): Likewise.
8935 (cgraph_estimate_growth): Rename to estimate_growth; move to
8936 ipa-inline-analysis.c.
8937 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8938 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8939 (compute_inline_parameters): Likewise.
8940 (compute_inline_parameters_for_current): Likewise.
8941 (pass_inline_parameters): Likewise.
8942 (inline_indirect_intraprocedural_analysis): Likewise.
8943 (analyze_function): Rename to inline_analyze_function; likewise.
8944 (add_new_function): Move to ipa-inline-analysis.c.
8945 (inline_generate_summary): Likewise.
8946 (inline_read_summary): Likewise.
8947 (inline_write_summary): Likewise.
8948 * Makefile.in (ipa-inline-analysis.c): New file.
8950 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8952 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8953 * configure: Regenerate.
8955 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8957 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8958 instead of tree_common.
8959 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8961 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8962 TS_TYPED rather than TS_COMMON.
8963 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8965 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8968 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8969 r20 around calls of __tablejump_elpm__
8971 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8974 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8976 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8978 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8980 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8981 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8982 (cfi_vec): New typedef.
8983 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8984 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8985 (cie_cfi_vec): New static variable.
8986 (cie_cfi_head): Delete.
8987 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8988 declaration changed. Use vector rather than list operations.
8989 (new_cfi): Don't initialize the dw_cfi_next field.
8990 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8991 rather than list operations.
8992 (lookup_cfa): Use vector rather than list operations.
8993 (output_cfis): New argument upto. Accept a cfi_vec rather than
8994 a dw_cfi_ref list head as argument. All callers changed.
8995 Iterate over the vector using upto as a maximum index.
8996 (output_all_cfis): New static function.
8997 (output_fde): Use vector rather than list operations. Use the
8998 new upto argument for output_cfis rather than manipulating a
9000 (dwarf2out_begin_prologue): Change initializations to match
9002 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9003 from the vector length rather than searching for the end of a list.
9004 Use output_all_cfis.
9005 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9007 2011-04-13 Nick Clifton <nickc@redhat.com>
9009 * config/rx/rx.md (movmemsi): Do not use this pattern when
9010 volatile pointers are involved.
9012 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9014 * config/i386/sse.md (pinsrbits): Remove.
9015 (sse2_packsswb): Merge with *avx_packsswb.
9016 (sse2_packssdw): Merge with *avx_packssdw.
9017 (sse2_packuswb): Merge with *avx_packuswb.
9018 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9019 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9020 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9021 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9022 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9023 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9024 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9025 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9026 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9027 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9028 (sse2_loadld): Merge with *avx_loadld.
9029 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9030 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9031 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9032 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9033 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9035 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9037 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9039 * print-tree.c (print_node): Likewise.
9040 * tree-inline.c (copy_tree_r): Likewise.
9041 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9042 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9043 instead of TS_COMMON.
9044 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9045 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9046 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9047 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9048 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9050 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9052 (TREE_CHAIN): Check for a TS_COMMON structure.
9053 (TREE_TYPE): Check for a TS_TYPED structure.
9055 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
9057 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9058 cgraph_get_create_node instead of cgraph_node.
9060 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9062 * c-parser.c (c_parser_initelt): Updated call to
9063 objc_build_message_expr.
9064 (c_parser_postfix_expression): Likewise.
9066 2011-04-12 Kai Tietz <ktietz@redhat.com>
9068 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9069 MASK_MS_BITFIELD_LAYOUT bit.
9071 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9073 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9074 assert it is always true.
9075 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9078 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9080 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9081 compiling Objective-C to be more efficient.
9083 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
9085 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9088 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9090 * recog.h, genoutput.c, optabs.c: Revert last patch.
9092 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9095 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9097 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9099 * recog.h (insn_operand_data): Add an "allows_mem" field.
9100 * genoutput.c (output_operand_data): Initialize it.
9101 * optabs.c (maybe_legitimize_operand_same_code): New function.
9102 (maybe_legitimize_operand): Use it when matching the original
9105 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9107 * genpreds.c (process_define_predicate): Move most processing
9108 to gensupport.c. Continue to validate the expression.
9109 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9110 (process_define_predicate): Move processing to gensupport.c.
9111 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9112 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9113 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9115 (valid_predicate_name_p): New function, split out from old
9116 genpreds.c:process_define_predicate.
9117 (process_define_predicate): New function, combining code from
9118 old genpreds.c and genrecog.c functions.
9119 (process_rtx): Call it for DEFINE_PREDICATE and
9120 DEFINE_SPECIAL_PREDICATE.
9122 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9124 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9125 size of a '%A' memory reference.
9126 (T_DREG, T_QREG): New neon_builtin_type_bits.
9127 (arm_init_neon_builtins): Assert that the load and store operands
9128 are neon_struct_operands.
9129 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9130 (NEON_ARG_MEMORY): New builtin_arg.
9131 (neon_dereference_pointer): New function.
9132 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9133 Handle NEON_ARG_MEMORY.
9134 (arm_expand_neon_builtin): Update after above interface changes.
9135 Use NEON_ARG_MEMORY for loads and stores.
9136 * config/arm/predicates.md (neon_struct_operand): New predicate.
9137 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9138 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9139 (V_four_elem): Tweak formatting.
9140 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9141 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9142 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9143 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9144 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9145 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9146 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9147 Use %A in the output template.
9148 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9149 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9150 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9151 the width of the memory access. Remove post-increment.
9152 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9154 2011-04-12 Nick Clifton <nickc@redhat.com>
9156 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9157 instruction for interrupt handlers if the target is the basic V850
9159 (expand_epilogue): Likewise.
9161 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9163 PR rtl-optimization/48549
9164 * combine.c (propagate_for_debug): Also stop after BB_END of
9165 this_basic_block. Process LAST and just stop processing after it.
9166 (combine_instructions): If last_combined_insn has been deleted,
9167 set last_combined_insn to its PREV_INSN.
9169 2011-04-12 Richard Guenther <rguenther@suse.de>
9171 PR tree-optimization/46076
9172 * gimple.h (struct gimple_statement_call): Add fntype field.
9173 (gimple_call_fntype): Adjust.
9174 (gimple_call_set_fntype): New function.
9175 * gimple.c (gimple_build_call_1): Set the call function type.
9176 * gimplify.c (gimplify_call_expr): Preserve the function
9177 type the frontend used for the call.
9178 (gimplify_modify_expr): Likewise.
9179 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9181 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9183 * tree-ssa.c (useless_type_conversion_p): Function pointer
9184 conversions are useless.
9186 2011-04-12 Martin Jambor <mjambor@suse.cz>
9188 * cgraph.h (cgraph_node): Remove function declaration.
9189 (cgraph_create_node): Declare.
9190 (cgraph_get_create_node): Likewise.
9191 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9192 Updated all callers.
9193 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9194 the decl does not already exist. Call cgraph_get_create_node instead
9196 (cgraph_get_create_node): New function.
9197 (cgraph_same_body_alias): Update comment.
9198 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9199 assert it does not return NULL.
9200 (cgraph_update_edges_for_call_stmt): Likewise.
9201 (cgraph_clone_edge): Likewise.
9202 (cgraph_create_virtual_clone): Likewise.
9203 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9204 instead of cgraph_node.
9205 (cgraph_add_new_function): Call cgraph_create_node or
9206 cgraph_get_create_node instead of cgraph_node.
9207 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9208 instead of cgraph_node.
9209 (record_eh_tables): Likewise.
9210 (mark_address): Likewise.
9211 (mark_load): Likewise.
9212 (build_cgraph_edges): Call cgraph_get_create_node instead
9214 (rebuild_cgraph_edges): Likewise.
9215 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9216 instead of cgraph_node.
9217 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9219 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9220 cgraph_create_node instead of cgraph_node.
9221 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9223 * lto-cgraph.c (input_node): Likewise.
9224 * lto-streamer-in.c (input_function): Likewise.
9225 * varasm.c (mark_decl_referenced): Likewise.
9226 (assemble_alias): Likewise.
9228 2011-04-12 Martin Jambor <mjambor@suse.cz>
9230 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9231 instead of cgraph_node and assert it does not return NULL.
9232 * lto-streamer-in.c (lto_read_body): Likewise.
9233 * omp-low.c (new_omp_context): Likewise.
9234 (create_task_copyfn): Likewise.
9235 * tree-emutls.c (lower_emutls_function_body): Likewise.
9236 * matrix-reorg.c (transform_allocation_sites): Likewise.
9238 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9241 * c-typeck.c (build_asm_expr): Error out on attempts to use
9242 void type outputs or inputs for constraints that allow reg or
9245 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9246 Richard Earnshaw <rearnsha@arm.com>
9249 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9250 to use sign-magnitude offsets. Reject unsupported unaligned
9251 cases. Add detailed description in comments.
9252 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9253 condition from TARGET_32BIT to TARGET_ARM.
9255 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9257 * tree.h (struct typed_tree): New.
9258 (struct tree_common): Include it instead of tree_base.
9259 (TREE_TYPE): Update for new location of type field.
9260 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9261 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9262 (union tree_node): Add typed field.
9263 * treestruct.def (TS_TYPED): New.
9264 * lto-streamer.c (check_handled_ts_structures): Handle it.
9265 * tree.c (MARK_TS_TYPED): New macro.
9266 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9268 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9270 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9271 (force_nonfallthru): Do not alter the loop nest if no basic block
9274 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9276 * config/i386/sse.md (VI): New mode iterator.
9278 (AVX256MODEI): Ditto.
9279 (AVXMODEF4P): Ditto.
9280 (avxvecpsmode): Ditto.
9281 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9282 (sse2_andnot<mode>3): New expander.
9283 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9284 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9285 (<any_logic:code><mode>3): Use VI mode iterator.
9286 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9287 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9288 (*andnottf3): Handle AVX three-operand constraints.
9289 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9291 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9292 Robert Millan <rmh@gnu.org>
9294 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9295 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9296 GNU_USER_DYNAMIC_LINKER64): Define.
9297 (REG_NAME): Don't undefine.
9298 (MD_UNWIND_SUPPORT): Undefine.
9299 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9300 (REG_NAME): Don't undefine.
9301 (MD_UNWIND_SUPPORT): Undefine.
9302 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9304 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9306 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9307 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9309 2011-04-11 Xinliang David Li <davidxl@google.com>
9311 * value-profile.c (check_ic_target): New function.
9312 (gimple_ic_transform): Sanity check indirect call target.
9313 * gimple-low.c (gimple_check_call_args): Interface change.
9314 (gimple_check_call_matching_types): New function.
9315 * tree-inline.c (tree_can_inline_p): Call new function.
9317 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9319 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9320 tree-pretty-print.h & realmpfr.h.
9322 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9325 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9326 (setup_allocno_and_important_classes): Ditto.
9328 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9330 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9331 GNU_USER_DYNAMIC_LINKER.
9332 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9333 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9334 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9335 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9336 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9337 GNU_USER_TARGET_OS_CPP_BUILTINS.
9338 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9339 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9340 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9341 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9342 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9343 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9344 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9345 GNU_USER_TARGET_OS_CPP_BUILTINS.
9346 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9347 GNU_USER_DYNAMIC_LINKER.
9348 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9349 GNU_USER_TARGET_OS_CPP_BUILTINS.
9350 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9351 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9352 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9353 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9354 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9355 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9356 GNU_USER_DYNAMIC_LINKER64): Remove.
9357 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9358 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9359 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9360 GNU_USER_DYNAMIC_LINKER.
9361 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9362 GNU_USER_TARGET_OS_CPP_BUILTINS.
9363 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9364 GNU_USER_TARGET_OS_CPP_BUILTINS.
9365 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9366 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9367 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9368 GNU_USER_TARGET_OS_CPP_BUILTINS.
9369 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9370 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9371 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9372 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9373 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9374 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9375 GNU_USER_DYNAMIC_LINKER.
9376 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9377 GNU_USER_TARGET_OS_CPP_BUILTINS.
9378 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9379 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9380 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9381 GNU_USER_DYNAMIC_LINKER.
9382 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9383 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9384 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9385 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9386 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9387 GNU_USER_DYNAMIC_LINKER.
9388 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9389 GNU_USER_DYNAMIC_LINKERN32.
9390 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9391 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9392 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9393 GNU_USER_DYNAMIC_LINKER32.
9394 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9395 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9396 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9397 GNU_USER_DYNAMIC_LINKER.
9398 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9399 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9400 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9401 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9402 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9403 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9404 GNU_USER_DYNAMIC_LINKER32.
9405 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9406 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9407 GNU_USER_DYNAMIC_LINKER.
9408 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9409 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9410 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9411 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9412 GNU_USER_DYNAMIC_LINKER64.
9413 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9414 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9415 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9416 GNU_USER_DYNAMIC_LINKER.
9417 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9418 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9419 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9420 GNU_USER_DYNAMIC_LINKER.
9421 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9422 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9423 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9424 GNU_USER_DYNAMIC_LINKER32.
9425 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9426 GNU_USER_DYNAMIC_LINKER64.
9427 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9428 GNU_USER_DYNAMIC_LINKER64.
9429 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9430 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9431 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
9432 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9433 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9435 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9437 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
9438 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9439 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9440 GNU_USER_DYNAMIC_LINKER.
9441 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9442 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
9443 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9444 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9445 GNU_USER_DYNAMIC_LINKER64.
9446 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9447 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9448 GNU_USER_LINK_EMULATION.
9449 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9450 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9451 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9452 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9453 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9454 CPP_SPEC, CC1_SPEC): Remove.
9455 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9456 (GNU_USER_DYNAMIC_LINKER): Define.
9457 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9458 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9459 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9460 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9461 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9462 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9463 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9464 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9465 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9466 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9467 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9468 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9469 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9470 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9471 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9472 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9473 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9474 GNU_USER_DYNAMIC_LINKER.
9475 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9476 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9477 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9478 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9479 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9480 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9481 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
9482 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
9483 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
9484 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
9486 2011-04-11 Kai Tietz <ktietz@redhat.com>
9490 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
9491 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
9493 (ix86_is_msabi_thiscall): Removed.
9494 (ix86_is_type_thiscall): Likewise.
9495 (ix86_get_callcvt): New function.
9496 (ix86_comp_type_attributes): Simplify check.
9497 (ix86_function_regparm): Use ix86_get_callcvt for calling
9498 convention attribute checks.
9499 (ix86_return_pops_args): Likewise.
9500 (ix86_static_chain): Likewise.
9501 (x86_this_parameter): Likewise.
9502 (x86_output_mi_thunk): Likewise.
9503 (ix86_function_type_abi): Optimize check for types without attributes.
9504 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
9505 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
9506 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
9508 (IX86_BASE_CALLCVT): Helper macro.
9509 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9510 Use ix86_get_callcvt for calling convention attribute checks and avoid
9511 symbol-decoration for stdcall in TARGET_RTD case.
9512 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
9514 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
9517 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9519 * config/i386/sse.md (VI_128): New mode iterator.
9520 (VI12_128): Rename from SSEMODE12.
9521 (VI14_128): Rename from SSEMODE14.
9522 (VI124_128): New mode iterator.
9523 (VI24_128): Rename from SSEMODE248.
9524 (VI248_128): Rename from SSEMODE248.
9525 (SSEMODE124C8): Remove.
9526 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9527 (*sse2_<plusminus_insn><mode>3): Merge with
9528 *avx_<plusminus_insn><mode>3.
9529 (*mulv8hi3): Merge with *avx_mulv8hi3.
9530 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
9531 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
9532 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
9533 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9534 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9535 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9536 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9537 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9538 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9539 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9540 (*<smaxmin:code>v8hi3): Ditto.
9541 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9542 (*<smaxmin:code>v16qi3): Ditto.
9543 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9544 (*sse2_eq<mode>3): Ditto.
9545 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9546 (*sse2_gt<mode>3): Ditto.
9547 (vcondv2di): Split out of vcond<mode>.
9548 (vconduv2di): Split out of vcondu<mode>.
9550 2011-04-11 Richard Guenther <rguenther@suse.de>
9552 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9553 before calling tree_low_cst.
9555 2011-04-11 Richard Guenther <rguenther@suse.de>
9557 * stor-layout.c (layout_type): Compute all array index size operations
9558 in the original type.
9559 (initialize_sizetypes): Add comment.
9560 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9562 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9564 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9566 2011-04-11 Martin Jambor <mjambor@suse.cz>
9568 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9569 of cgraph_node, handle NULL return value.
9570 (cgraph_global_info): Likewise.
9571 (cgraph_rtl_info): Likewise.
9572 * tree-inline.c (estimate_num_insns): Likewise.
9573 * gimplify.c (unshare_body): Likewise.
9574 (unvisit_body): Likewise.
9575 (gimplify_body): Likewise.
9576 * predict.c (optimize_function_for_size_p): Likewise.
9577 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9578 (call_may_clobber_ref_p_1): Likewise.
9579 * varasm.c (function_section_1): Likewise.
9580 (assemble_start_function): Likewise.
9582 2011-04-11 Martin Jambor <mjambor@suse.cz>
9584 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9586 * final.c (rest_of_clean_state): Likewise.
9587 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9588 * passes.c (pass_init_dump_file): Likewise.
9589 (execute_all_ipa_transforms): Likewise.
9590 (function_called_by_processed_nodes_p): Likewise.
9591 * predict.c (maybe_hot_frequency_p): Likewise.
9592 (probably_never_executed_bb_p): Likewise.
9593 (compute_function_frequency): Likewise.
9594 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9595 (unnest_nesting_tree_1): Likewise.
9596 (lower_nested_functions): Likewise.
9597 * tree-optimize.c (execute_fixup_cfg): Likewise.
9598 (tree_rest_of_compilation): Likewise.
9599 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9600 * tree-sra.c (ipa_early_sra): Likewise.
9601 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9602 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9603 * ipa.c (record_cdtor_fn): Likewise.
9604 * ipa-inline.c (cgraph_early_inlining): Likewise.
9605 (compute_inline_parameters_for_current): Likewise.
9606 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9607 * ipa-pure-const.c (local_pure_const): Likewise.
9608 * ipa-split.c (split_function): Likewise.
9609 (execute_split_functions): Likewise.
9610 * cgraphbuild.c (build_cgraph_edges): Likewise.
9611 (rebuild_cgraph_edges): Likewise.
9612 (cgraph_rebuild_references): Likewise.
9613 (remove_cgraph_callee_edges): Likewise.
9614 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9615 (verify_cgraph_node): Likewise.
9616 (cgraph_analyze_functions): Likewise.
9617 (cgraph_preserve_function_body_p): Likewise.
9618 (save_inline_function_body): Likewise.
9619 (save_inline_function_body): Likewise.
9620 * tree-inline.c (copy_bb): Likewise.
9621 (optimize_inline_calls): Likewise.
9623 2011-04-11 Martin Jambor <mjambor@suse.cz>
9625 PR tree-optimization/48195
9626 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9627 ipa_check_create_edge_args.
9628 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9629 ipa_check_create_edge_args.
9630 * ipa-inline.c (inline_generate_summary): Do not call
9631 ipa_check_create_node_params and ipa_check_create_edge_args.
9632 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9633 ipa_check_create_edge_args.
9635 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9637 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9639 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9640 * function.c (record_hard_reg_sets): Likewise.
9641 * ira.c (compute_regs_asm_clobbered): Likewise.
9642 * sched-deps.c (sched_analyze_1): Likewise.
9643 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9645 2011-04-09 Xinliang David Li <davidxl@google.com>
9647 PR tree-optimization/PR48484
9648 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9649 has_valid_pred lazily
9651 2011-04-09 Duncan Sands <baldrick@free.fr>
9653 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9655 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9657 * combine.c (combine_validate_cost): Adjust comments. Set registered
9658 cost of I0 to zero at the end, if any.
9660 2011-04-08 Xinliang David Li <davidxl@google.com>
9662 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9663 to insane profile data.
9665 2011-04-08 Xinliang David Li <davidxl@google.com>
9667 * ipa-cp.c (ipcp_update_profiling): Correct
9668 negative scale factor due to insane profile data.
9670 2011-04-08 Xinliang David Li <davidxl@google.com>
9672 * final.c (dump_basic_block_info): New function.
9673 (final): Dump basic block.
9674 (final_scan_insn): Remove old dump.
9676 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9679 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9682 2011-04-08 Michael Matz <matz@suse.de>
9685 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9687 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9688 * rtl.h (rebuild_jump_labels_chain): Declare.
9689 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9690 insns inserted on edges.
9692 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9694 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9695 * config/arm/arm-arches.def: New.
9696 * config/arm/arm-opts.h: New.
9697 * config/arm/genopt.sh: New.
9698 * config/arm/arm-tables.opt: New (generated).
9699 * config/arm/arm.c (arm_handle_option, arm_target_help,
9700 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9701 (all_architectures): Get most table contents from arm-arches.def.
9702 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9703 arm_selected_tune here.
9704 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9705 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9706 (march=, mcpu=, mtune=): Use Enum and Var.
9707 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9708 (arm.o): Update dependencies.
9710 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9712 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9714 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9715 (write_typed_alloc_defns): Likewise.
9716 (main): Calls write_typed_alloc_defns with output_header.
9718 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9721 * ira-color.c (setup_profitable_hard_regs): Add comments.
9722 Don't take prohibited hard regs into account.
9723 (setup_conflict_profitable_regs): Rename to
9724 get_conflict_profitable_regs.
9725 (check_hard_reg_p): Check prohibited hard regs.
9727 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9729 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9730 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9731 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9733 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9736 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9737 move from floating point to shift amount register.
9738 (emit_move_sequence): Remove secondary reload support for floating
9739 point to shift amount amount register copies.
9740 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9741 amount register copies.
9742 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9743 register, return false if mode isn't a scalar integer mode.
9744 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9746 2011-04-08 Richard Guenther <rguenther@suse.de>
9748 * gimple.c (gimple_call_flags): Remove kludge.
9750 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9752 * sel-sched.c (sel_region_init): Move call to
9753 sel_setup_region_sched_flags after setup_current_loop_nest.
9755 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9757 PR rtl-optimization/48272
9758 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9759 init_insn_reg_pressure_info. Adjust a caller.
9760 * sched-int.h (init_insn_reg_pressure_info): Declare.
9761 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9762 when sched-pressure is enabled.
9764 2011-04-08 Richard Guenther <rguenther@suse.de>
9766 * gimple.c (gimple_set_modified): Do not queue calls to
9767 MODIFIED_NORETURN_CALLS here ...
9768 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9770 2011-04-08 Richard Guenther <rguenther@suse.de>
9773 * toplev.c (lang_dependent_init): Do not open asm_out_file
9774 in WPA mode, nor perform debug machinery initialization.
9775 (finalize): Do not unlink asm_out_file in WPA mode.
9777 2011-04-08 Richard Guenther <rguenther@suse.de>
9779 * gimple.h (gimple_call_fntype): New function.
9780 (gimple_call_return_type): Use it.
9781 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9782 * gimple-low.c (gimple_check_call_args): Likewise.
9783 * gimple.c (gimple_call_flags): Likewise.
9784 (gimple_call_arg_flags): Likewise.
9785 (gimple_call_return_flags): Likewise.
9786 * tree-cfg.c (verify_gimple_call): Likewise.
9787 (do_warn_unused_result): Likewise.
9788 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9789 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9791 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9793 PR rtl-optimization/48235
9794 * sel-sched.c (code_motion_process_successors): Recompute the last
9795 insn in basic block if control flow changed.
9796 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9797 Update condition for ilist_remove.
9799 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9801 PR rtl-optimization/48302
9802 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9803 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9804 it to record added preheader blocks.
9805 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9806 on to sel_add_loop_preheaders.
9807 (sel_region_init): Move call to setup_current_loop_nest after
9810 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9813 * cfgloop.h (loop_has_exit_edges): New helper.
9814 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9816 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9817 that have no exit edges.
9819 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9821 PR rtl-optimization/48442
9822 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9823 all callers. Adjust assert.
9825 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9827 PR tree-optimization/48377
9828 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9829 is_packed to true even for types with smaller TYPE_ALIGN than
9832 2011-04-08 Richard Guenther <rguenther@suse.de>
9835 * doc/tm.texi: Re-generate.
9837 2011-04-08 Wei Guozhi <carrot@google.com>
9840 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9841 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9842 * config/arm/arm.md (*push_multi): Change the length computation to
9845 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9847 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9848 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9849 * doc/tm.texi: Regenerate.
9850 * system.h (ASM_OUTPUT_BSS): Poison.
9851 * varasm.c (asm_output_bss): Remove function.
9852 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9854 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9855 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9856 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9857 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9859 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9861 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9863 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9865 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9867 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9870 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9872 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9873 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9874 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9876 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9877 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9878 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9879 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9880 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9881 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9882 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9883 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9884 options. Don't map other m68k options manually. Don't handle
9885 old-style options as canonical.
9886 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9887 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9889 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9891 * basic-block.h (force_nonfallthru): Move to...
9892 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9893 (force_nonfallthru): ...here.
9894 * cfghooks.c (force_nonfallthru): New function.
9895 * cfgrtl.c (force_nonfallthru): Rename into...
9896 (rtl_force_nonfallthru): ...this.
9897 (commit_one_edge_insertion): Do not set AUX field.
9898 (commit_edge_insertions): Do not discover new basic blocks.
9899 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9900 (cfg_layout_rtl_cfg_hooks): Likewise.
9901 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9902 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9903 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9905 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9907 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9910 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9912 * config/i386/sse.md: Update copyright year.
9913 (avxcvtvecmode): Remove.
9914 (sse_movhlps): Merge with *avx_movhlps.
9915 (sse_movlhps): Merge with *avx_movlhps.
9916 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9917 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9918 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9919 (sse_loadhps): Merge with *avx_loadhps.
9920 (sse_storelps): Merge with *avx_storelps.
9921 (sse_loadlps): Merge with *avx_loadlps.
9922 (sse_movss): Merge with *avx_movss.
9923 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9924 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9925 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9926 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9927 (vec_set<mode>_0): Ditto.
9928 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9929 (sse4_1_insertps): Merge with *avx_insertps.
9930 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9931 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9932 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9933 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9934 (sse2_storehpd): Merge with *avx_storehpd.
9935 (sse2_loadhpd): Merge with *avx_loadhpd.
9936 (sse2_loadlpd): Merge with *avx_loadlpd.
9937 (sse2_movsd): Merge with *avx_movsd.
9938 (*vec_concatv2df): Merge with *vec_concatv2df.
9940 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9943 * combine.c (combine_instructions): Add last_combined_insn,
9944 update it if insn is after it, pass it to all try_combine calls.
9945 (try_combine): Add last_combined_insn parameter, pass it instead of
9946 i3 to propagate_for_debug.
9948 2011-04-07 Nick Clifton <nickc@redhat.com>
9950 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9951 to handle MDR <-> data register transfers.
9952 (movhi_internal): Likewise.
9954 2011-04-07 Alan Modra <amodra@gmail.com>
9956 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9957 previous stack info.
9959 2011-04-07 Tom de Vries <tom@codesourcery.com>
9962 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9963 flow_find_cross_jump. Swap variables to implement backward replacement.
9964 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9966 2011-04-07 Tom de Vries <tom@codesourcery.com>
9969 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9970 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9972 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9973 src1 or src2. Redirect edges to the last basic block. Update
9974 frequency and count on multiple basic blocks in case of fallthru.
9976 2011-04-07 Tom de Vries <tom@codesourcery.com>
9979 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9981 (old_insns_match_p): Change return type. Replace return false/true
9982 with return dir_none/dir_both. Use can_replace_by.
9983 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9984 direction from dir_p. Register replacement direction in dir, last_dir
9985 and afterlast_dir. Handle new return type of old_insns_match_p using
9986 merge_dir. Return replacement direction in dir_p.
9987 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9988 return type of old_insns_match_p.
9989 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9990 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9991 flow_find_cross_jump.
9992 * basic-block.h (enum replace_direction): New type.
9993 (flow_find_cross_jump): Add parameter to declaration.
9995 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9997 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9998 (AVXMODEDCVTPS2DQ): Ditto.
9999 (VEC_FLOAT_MODE): Ditto.
10000 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10001 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10002 (<any_logic:code><mode>3): Use VF mode iterator.
10003 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10004 Use VF mode iterator.
10005 (copysign<mode>3): Use VF mode iterator.
10006 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10007 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10008 (*<any_logic:code><MODEF:mode>3): Merge with
10009 *avx_<any_logic:code><MODEF:mode>3.
10010 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10011 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10012 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10013 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10014 (sse2_cvtdq2ps): Use %v modifier.
10015 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10016 (avx_cvtps2dq<avxmodesuffix>): Remove.
10017 (sse2_cvtps2dq): Use %v modifier.
10018 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10019 (avx_cvttps2dq<avxmodesuffix>): Remove.
10020 (sse2_cvttps2dq): Use %v modifier.
10021 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10022 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10023 (sse2_cvtsd2siq): Fix insn template.
10024 (sse2_cvtsd2siq_2): Ditto.
10025 (sse2_cvttsd2siq): Ditto.
10026 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10027 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10029 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10031 * gcov-io.c: Use GCC Runtime Library Exception.
10033 2011-04-06 Jakub Jelinek <jakub@redhat.com>
10036 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10037 as base_reg whatever register reg has been eliminated to, instead
10038 of hardcoding STACK_POINTER_REGNUM.
10040 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10042 * doc/tm.texi.in: Document C target hooks as separate from general
10044 * doc/tm.texi: Regenerate.
10045 * genhooks.c (struct hook_desc): Add docname field.
10046 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10048 (hook_array): Include c-target.def.
10049 (emit_documentation): Use docname field in output.
10050 (emit_init_macros): Take docname argument. Only emit definitions
10051 for hooks matching docname.
10052 (main): Expect additional arguments in all cases. Pass argument
10053 to emit_init_macros.
10054 * target.def: Move initial macro definitions and comments to
10055 target-hooks-macros.h.
10056 (gcc_targetcm): Move to c-family/c-target.def.
10057 * target.h (targetcm): Move declaration to c-family/c-target.h.
10058 * targhooks.c (default_handle_c_option): Move to
10060 * targhooks.h (default_handle_c_option): Move declaration to
10061 c-family/c-common.h.
10062 * target-hooks-macros.h: New file.
10063 * config.gcc (target_has_targetcm): Define and use to add to
10064 c_target_objs and cxx_target_objs.
10065 * config/default-c.c: New file.
10066 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10067 of target.h and target-def.h.
10068 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10069 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10070 darwin_check_cfstring_format_arg): Make static.
10071 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10072 TARGET_STRING_OBJECT_REF_TYPE_P,
10073 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10074 * config/darwin-protos.h (darwin_objc_construct_string,
10075 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10077 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10078 TARGET_STRING_OBJECT_REF_TYPE_P,
10079 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10080 * config/t-darwin (darwin-c.o): Update dependencies.
10081 * system.h (TARGET_HAS_TARGETCM): Poison.
10082 * Makefile.in (TARGET_H): Update.
10083 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10084 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10085 (default-c.o): New target.
10086 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10087 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10088 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10090 (build/genhooks.o): Update dependencies.
10092 2011-04-06 Richard Guenther <rguenther@suse.de>
10094 * ipa-inline.c (enum inlining_mode): Remove.
10095 (cgraph_flatten): Use some other token.
10096 (cgraph_edge_early_inlinable_p): New function, split out from ...
10097 (cgraph_perform_always_inlining): New function, split out from ...
10098 (cgraph_decide_inlining_incrementally): ... here.
10099 (cgraph_mark_inline_edge): Adjust.
10100 (cgraph_early_inlining): Re-structure.
10101 (pass_early_inline): Require SSA form.
10103 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
10104 Julian Brown <julian@codesourcery.com>
10105 Mark Shinwell <shinwell@codesourcery.com>
10107 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10108 LO_REGS only for Thumb-1.
10109 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10110 be used in short instructions when optimising for size on Thumb-2.
10112 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10114 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10115 associated with user returns to be preserved.
10117 2011-04-06 Tristan Gingold <gingold@adacore.com>
10119 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10120 symbol_queue_size, DBXOUT_DECR_NESTING,
10121 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10122 if XCOFF_DEBUGGING_INFO.
10124 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10126 * config/i386/i386.md (attribute isa): New.
10127 (attribute enabled): New.
10128 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10129 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10130 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10131 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10132 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10133 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10134 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10135 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10137 * config/i386/sse.md (VF): New mode iterator.
10141 (SSEMODEF4): Remove.
10142 (attribute sse): Handle V8SF and V4DF modes.
10143 (<absneg:code><mode>2): Use VF mode iterator.
10144 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10146 (<plusminus_insn><mode>3): Use VF mode iterator.
10147 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10148 Use VF mode iterator.
10149 (<sse>_vm<plusminus_insn><mode>3): Merge with
10150 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10151 (mul<mode>3): Use VF mode iterator.
10152 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10153 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10155 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10156 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10157 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10158 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10160 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10161 Use VF1 mode iterator.
10162 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10163 (sqrt<VF2:mode>2): New expander.
10164 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10165 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10166 and sqrtv2df2. Use VF mode iterator.
10167 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10169 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10170 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10171 Use VF1 mode iterator.
10172 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10173 (<smaxmin:code><mode>3): Use VF mode iterator.
10174 (*<smaxmin:code><mode>3_finite): Merge with
10175 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10176 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10177 (<sse>_vm<smaxmin:code><mode>2): Merge with
10178 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10179 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10181 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10183 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10184 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10185 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10186 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10187 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10189 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10190 Use VF_128 mode iterator.
10191 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10193 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10194 VF_128 mode iterator.
10195 (vcond<mode>): Use VF mode iterator.
10196 * config/i386/predicates.md (sse_comparison_operator): Merge with
10197 avx_comparison_float_operator. Do not declare as special_predicate.
10198 * config/i386/i386.c (struct builtin_description): Update for renamed
10200 (ix86_expand_args_builtin): Ditto.
10201 (ix86_expand_sse_compare_mask): Ditto.
10203 2011-04-06 Richard Guenther <rguenther@suse.de>
10205 * tree-inline.c (estimate_num_insns): For calls simply account
10206 for all passed arguments and a used return value.
10208 2011-04-06 Richard Guenther <rguenther@suse.de>
10210 PR tree-optimization/47663
10211 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10212 call_stmt_time fields.
10213 (cgraph_edge_inlinable_p): Declare.
10214 (cgraph_edge_recursive_p): New inline function.
10215 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10216 (cgraph_clone_edge): Copy it.
10217 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10218 Account for call stmt time.
10219 (cgraph_estimate_time_after_inlining): Take edge argument.
10220 (cgraph_estimate_edge_growth): Account call stmt size.
10221 (cgraph_estimate_size_after_inlining): Take edge argument.
10222 (cgraph_mark_inline_edge): Adjust.
10223 (cgraph_check_inline_limits): Likewise.
10224 (cgraph_recursive_inlining_p): Remove.
10225 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10226 (cgraph_decide_recursive_inlining): Take edge argument and
10228 (cgraph_decide_inlining_of_small_functions): Do not avoid
10229 diags for recursive inlining here.
10230 (cgraph_flatten): Adjust.
10231 (cgraph_decide_inlining_incrementally): Likewise.
10232 (estimate_function_body_sizes): Remove call cost handling.
10233 (compute_inline_parameters): Initialize caller edge call costs.
10234 (cgraph_estimate_edge_growth): New function.
10235 (cgraph_estimate_growth): Use it.
10236 (cgraph_edge_badness): Likewise.
10237 (cgraph_check_inline_limits): Take an edge argument.
10238 (cgraph_decide_inlining_of_small_functions): Adjust.
10239 (cgraph_decide_inlining): Likewise.
10240 * tree-inline.c (estimate_num_insns): Only account for call
10241 return value if it is used.
10242 (expand_call_inline): Avoid diagnostics on recursive inline
10244 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10245 (input_edge): Input edge call costs.
10247 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10249 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10251 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10253 * doc/invoke.texi (Spec Files): Fix typo.
10255 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10257 * profile.c (branch_prob): Move declaration of local variable. Remove
10258 obsolete ??? comment. Expand the location explicitly instead of using
10259 the LOCATION_FILE and LOCATION_LINE macros.
10261 2011-04-06 Wei Guozhi <carrot@google.com>
10264 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10265 (arm_cond_branch): Likewise.
10266 (arm_cond_branch_reversed): Likewise.
10267 (arm_jump): Likewise.
10268 (push_multi): Likewise.
10269 * config/arm/constraints.md (Py): New constraint.
10271 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10274 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10276 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10277 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10278 #ifdef DBX_DEBUGGING_INFO.
10280 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10283 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10284 if old and new states differ.
10286 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10288 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10289 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10290 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10291 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10292 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10293 mcfv4e): Use Alias.
10294 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10295 ColdFire options to -mcpu= options.
10297 2011-04-05 Jeff Law <law@redhat.com>
10299 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10300 check if BB is a successor of LOOP->header and return
10301 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10303 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10305 * cprop.c (struct reg_use): Remove.
10306 (reg_use_table): Make an array of RTX.
10307 (find_used_regs, constprop_register, local_cprop_pass,
10308 bypass_block): Simplify users of reg_use_table.
10309 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10310 on one of the uses found by find_used_regs.
10312 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10315 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10318 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10320 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10322 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10324 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10326 PR middle-end/48441
10327 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10329 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10331 * combine.c: Include obstack.h.
10332 (struct insn_link): Define.
10333 (uid_log_links): Adjust type.
10334 (FOR_EACH_LOG_LINK): New macro.
10335 (insn_link_obstack): Declare.
10336 (alloc_insn_link): Define.
10337 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10338 type of link variables.
10339 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10340 (try_combine, record_promoted_values, distribute_notes): Likewise.
10341 (distribute_links): Likewise. Tweak prototype.
10342 (clear_log_links): Delete.
10343 (adjust_for_new_dest): Call alloc_insn_link.
10344 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10346 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10348 * gcse.c (modify_mem_list): Convert to an array of VECs.
10349 (canon_modify_mem_list, compute_transp): Tweak formatting.
10350 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10351 (load_killed_in_block_p): Likewise.
10352 (record_last_mem_set_info): Likewise.
10353 (clear_modify_mem_tables): Likewise.
10355 2011-04-05 Tom de Vries <tom@codesourcery.com>
10357 PR middle-end/48461
10358 * function.c (emit_use_return_register_into_block): Only define if
10361 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10363 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10365 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10367 * config/rx/rx-opts.h: New.
10368 * config/rx/rx.c (rx_cpu_type): Remove.
10369 (rx_handle_option): Don't assert that global structures are in
10370 use. Access variables via opts pointer. Defer most handling of
10371 OPT_mint_register_. Use error_at.
10372 (rx_option_override): Handle deferred OPT_mint_register_ here.
10373 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10374 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10375 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10376 (rx_cpu_types): New Enum and EnumValue entries.
10377 (mint-register=): Use Defer and use Var accordingly.
10379 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10381 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10382 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10383 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10385 (debug_free_queue, debug_nesting, symbol_queue_index):
10387 * dbxout.c: ...to here. Make static.
10389 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10391 * gcse.c (modify_pair): Define. Define a VEC of it.
10392 (canon_modify_mem_list): Convert to an array of VECs.
10393 (free_insn_expr_list_list): Delete.
10394 (clear_modify_mem_tables): Call VEC_free instead.
10395 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10396 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10397 (canon_list_insert, compute_transp): Likewise.
10399 2011-04-05 Tom de Vries <tom@codesourcery.com>
10402 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10405 2011-04-05 Tom de Vries <tom@codesourcery.com>
10408 * function.c (emit_use_return_register_into_block): New function.
10409 (thread_prologue_and_epilogue_insns): Use
10410 emit_use_return_register_into_block.
10412 2011-04-05 Tom de Vries <tom@codesourcery.com>
10415 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10418 2011-04-05 Tom de Vries <tom@codesourcery.com>
10420 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10422 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
10424 * config/arm/arm.md (define_constants for unspec): Replace with
10426 (define_constants for unspecv): Replace with define_c_enum.
10427 * config/arm/neon.md (define_constants for unspec): Replace with
10430 2011-04-04 Richard Henderson <rth@redhat.com>
10433 * dwarf2out.c (output_line_info): Always emit line info from
10434 at least one section.
10435 (dwarf2out_init): Create text_section_line_info here ...
10436 (set_cur_line_info_table): ... not here.
10438 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
10441 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
10444 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
10446 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
10448 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10449 (expr_equiv_p): Remove.
10450 (insert_set_in_table): Look at <dest, src> pair instead of expr.
10451 (hash_scan_set): Update call to insert_set_in_table.
10452 (dump_hash_table): Dump <dest, src> pair.
10453 (lookup_set): Simplify. Lookup <dest, src> pair.
10454 (compute_transp): Remove, fold heavily simplified code into...
10455 (compute_local_properties): ...here. Expect COMP and TRANSP
10457 (find_avail_set): Take set directly from struct expr.
10458 (find_bypass-set): Likewise.
10459 (bypass_block): Likewise.
10460 (cprop_insn): Likewise. Remove redundant INSN_P test.
10462 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10463 checks on form of COND from find_implicit_sets to here.
10464 (find_implicit_sets): Cleanup control flow. Split critical edges
10465 if it exposes implicit sets. Allocate/resize implicit_sets as
10467 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10468 changed something. Run df_analyze after find_implicit_sets if any
10469 edges were split. Do not allocate implicit_sets here.
10471 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10472 (gcse_obstack): Renamed to cprop_obstack.
10473 (GNEW, GNEWVEC, GNEWVAR): Remove.
10475 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10476 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10477 (gcse_alloc): Likewise, and rename to cprop_alloc.
10478 (alloc_gcse_men, free_gcse_mem): Remove.
10479 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10480 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10481 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
10483 * cprop.c (oprs_not_set_p): Remove.
10484 (mark_set, mark_clobber): Remove.
10485 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
10486 (reg_not_set_p): New function.
10487 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
10488 (cprop_insn): Likewise.
10489 (cprop_jump): Use FOR_EACH_EDGE.
10491 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
10494 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
10495 (rank_for_schedule): Use scheduled_insns vector instead of
10496 last_scheduled_insn.
10497 (ok_for_early_queue_removal): Likewise.
10498 (queue_to_ready): Search forward in nonscheduled_insns_begin if
10500 (choose_ready): Likewise.
10501 (commit_schedule): Use VEC_iterate.
10502 (schedule_block): Initialize nonscheduled_insns_begin. If we have
10503 a dbg_cnt, use it and ensure the first insn is in the ready list.
10504 (haifa_sched_init): Allocate scheduled_insns.
10505 (sched_extend_ready_list): Don't allocate it; reserve space.
10506 (haifa_sched_finish): Free it.
10508 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10510 * optc-gen.awk: Always remove type from Variable entry before
10511 recording in var_seen.
10513 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
10515 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
10516 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
10517 call to tidy_fallthru_edges.
10519 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10521 * doc/options.texi (ToLower): Document.
10522 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
10523 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
10524 * opts.h (cl_option): Add cl_tolower field.
10525 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
10526 arguments with lowercase strings.
10527 * config/rx/rx.opt (mcpu=): Add ToLower.
10528 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
10531 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10533 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10535 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10537 * config/vax/vax.c: Include reload.h.
10539 2011-04-04 Anatoly Sokolov <aesok@post.ru>
10541 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10542 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10543 (sparc_preferred_reload_class): New function.
10545 2011-04-04 Jakub Jelinek <jakub@redhat.com>
10548 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10549 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10551 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10553 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10554 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10556 2011-04-03 Anatoly Sokolov <aesok@post.ru>
10558 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10559 (ASM_OUTPUT_ALIGNED_BSS): Define.
10561 2011-04-03 Michael Matz <matz@suse.de>
10563 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10564 and next_slot members.
10565 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10566 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10567 (lto_streamer_cache_append): Declare.
10568 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10569 unsigned index, remove offset parameter, ensure that we append
10570 or update existing entries.
10571 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10572 parameter, update next_slot for append.
10573 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10575 (lto_streamer_cache_insert_at): Likewise.
10576 (lto_streamer_cache_append): New function.
10577 (lto_streamer_cache_lookup): Use unsigned index.
10578 (lto_streamer_cache_get): Likewise.
10579 (lto_record_common_node): Don't test tree_node_can_be_shared.
10580 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10581 (lto_streamer_cache_delete): Don't free offsets member.
10582 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10583 (lto_output_string_with_length): Use lto_output_data_stream.
10584 (lto_output_tree_header): Remove ix parameter, don't write it.
10585 (lto_output_builtin_tree): Likewise.
10586 (lto_write_tree): Adjust callers to above, don't track and write
10587 offset, write unsigned index.
10588 (output_unreferenced_globals): Don't emit all global vars.
10589 (write_global_references): Use unsigned indices.
10590 (lto_output_decl_state_refs): Likewise.
10591 (write_symbol): Likewise.
10592 * lto-streamer-in.c (lto_input_chain): Move earlier.
10593 (input_function): Use unsigned index.
10594 (input_alias_pairs): Don't read and then ignore all global vars.
10595 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10596 don't pass it back, use lto_streamer_cache_append.
10597 (lto_register_var_decl_in_symtab): Use unsigned index.
10598 (lto_register_function_decl_in_symtab): Likewise.
10599 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10601 (lto_get_builtin_tree): Don't read index, use
10602 lto_streamer_cache_append.
10603 (lto_read_tree): Adjust call to lto_materialize_tree.
10605 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10606 don't use function calls in arguments to MIN.
10608 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10611 * gimple.c (gimple_type_leader_entry): Mark deletable.
10613 2011-04-03 Alan Modra <amodra@gmail.com>
10615 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10617 2011-04-03 Michael Matz <matz@suse.de>
10619 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10621 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10623 2011-04-03 Michael Matz <matz@suse.de>
10625 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10626 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10627 without function context.
10628 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10629 current_function_decl and cfun.
10631 2011-04-03 Michael Matz <matz@suse.de>
10633 * tree.c (decl_init_priority_insert): Don't create entry for
10635 (decl_fini_priority_insert): Ditto.
10636 (fields_compatible_p, find_compatible_field): Remove.
10637 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10638 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10640 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10642 * combine.c (try_combine): Remove useless local variable.
10644 2011-04-03 Richard Guenther <rguenther@suse.de>
10645 Ira Rosen <ira.rosen@linaro.org>
10647 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10648 non-variable offsets and compare the remaining bases of the two
10649 accesses instead of looking for exact same data-ref.
10651 2011-04-02 Kai Tietz <ktietz@redhat.com>
10654 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10656 * i386.c (ix86_is_msabi_thiscall): New helper function.
10657 (ix86_is_type_thiscall): New helper function.
10658 (ix86_comp_type_attributes): Handle thiscall for method-functions
10660 (init_cumulative_args): Likewise.
10661 (find_drap_reg): Likewise.
10662 (ix86_static_chain): Likewise.
10663 (x86_this_parameter): Likewise.
10664 (x86_output_mi_thunk): Likewise.
10666 2011-04-01 Olivier Hainque <hainque@adacore.com>
10667 Nicolas Setton <setton@adacore.com>
10668 Eric Botcazou <ebotcazou@adacore.com>
10670 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10671 (add_gnat_descriptive_type_attribute): New function.
10672 (gen_array_type_die): Call it.
10673 (gen_enumeration_type_die): Likewise.
10674 (gen_struct_or_union_type_die): Likewise.
10675 (modified_type_die): Likewise.
10676 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10677 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10678 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10680 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10683 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10684 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10687 2011-03-17 Richard Guenther <rguenther@suse.de>
10690 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10691 origin for decls in other ltrans units.
10692 (input_varpool_node): Likewise.
10694 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10696 PR middle-end/48335
10697 * expr.c (expand_assignment): Handle all possibilities
10698 if TO_RTX is CONCAT.
10699 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10700 (store_split_bit_field): If SUBREG_REG (op0) or
10701 op0 itself has smaller mode than word, return it
10702 for offset 0 and const0_rtx for out-of-bounds stores.
10703 If word is const0_rtx, skip it.
10705 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10707 * config/h8300/h8300.c (print_operand_address): Rename to...
10708 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10709 Call h8300_print_operand and h8300_print_operand_address instead of
10710 print_operand and print_operand_address. Declare.
10711 (print_operand): Renake to...
10712 (h8300_print_operand): ...this. Make static. Adjust comments.
10713 Call h8300_print_operand instead of print_operand. Declare.
10714 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10715 (h8300_register_move_cost): Likewise.
10716 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10717 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10718 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10719 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10720 * config/h8300/h8300-protos.h (print_operand): Delete.
10721 (print_operand_address): Delete.
10723 2011-04-01 Richard Henderson <rth@redhat.com>
10726 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10727 in strict mode before dwarf4. Re-order tests to early out
10728 before switching sections.
10730 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10732 * config/h8300/constraints.md: New file.
10733 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10734 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10735 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10736 * config/h8300/predicates.md (bit_operand): Likewise.
10737 (incdec_operand): Use satisfies_constraint_M and
10738 satisfies_constraint_O. Don't use C code block.
10739 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10740 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10741 (compute_mov_length): Use satisfies_constraint_G.
10742 (fix_bit_operand): Use satisfies_constraint_U.
10743 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10744 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10745 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10746 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10747 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10748 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10749 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10750 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10751 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10752 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10753 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10754 (EXTRA_MEMORY_CONSTRAINT): Delete.
10756 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10757 Michael Meissner <meissner@linux.vnet.ibm.com>
10760 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10761 operands, as per the specifications.
10763 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10764 (vec_extract_evenv4sf): Ditto.
10765 (vec_extract_evenv8hi): Ditto.
10766 (vec_extract_evenv16qi): Ditto.
10767 (vec_extract_oddv4si): Ditto.
10769 2011-03-31 Mark Wielaard <mjw@redhat.com>
10771 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10772 high_pc attribute if the CU has no associated code. Only output
10773 DW_AT_entry_pc for CU if not generating strict dwarf and
10776 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10778 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10779 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10781 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10782 * final.c (final_start_function): Call the new function rather
10783 than using a NULL argument for dwarf2out_frame_debug.
10785 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10786 that contains the prologue.
10788 * haifa-sched.c (queue_insn): New arg REASON. All callers
10789 changed. Print it in debugging output.
10791 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10793 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10794 Split most of the code into...
10795 (begin_move_insn): ... here. New function.
10796 (ebb_sched_info): Add a pointer to it.
10797 * haifa-sched.c (scheduled_insns): New static variable.
10798 (sched_extend_ready_list): Allocate it.
10799 (schedule_block): Use it to record the order of scheduled insns.
10800 Perform RTL changes to move insns only after all scheduling
10801 decisions have been made.
10802 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10803 begin_move_insn field.
10804 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10805 * sched-int.h (struct haifa_sched_info): Remove second argument
10806 from begin_schedule_ready hook. Add new member begin_move_insn.
10807 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10808 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10810 * haifa-sched.c (prune_ready_list): New function, broken out of
10812 (schedule_block): Use it.
10814 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10816 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10818 2011-04-01 Kai Tietz <ktietz@redhat.com>
10820 * config.gcc (*-*-mingw*): Allow as option the
10821 posix threading model.
10822 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10823 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10825 (CPP_SPEC): Add pthread/no-pthread handling.
10826 (LIB_SPEC): Likewise.
10827 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10828 (LIB_SPEC): Likewise.
10829 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10830 flag to pass -pthread option for shared libgcc build.
10831 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10832 for shared libgcc build.
10833 * config/i386/t-mingw-pthread: New file.
10834 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10835 New define to enable use of library pthread by default.
10836 * config/i386/mingw.opt (pthread): New driver option.
10837 (no-pthread): New driver option.
10838 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10839 * config/i386/mingw-w64.opt: Likewise.
10841 2011-04-01 Gary Funck <gary@intrepid.com>
10843 * c-decl.c (grokdeclarator): Fix formatting.
10845 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10847 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10848 instead of n_operands.
10849 (set_storage_via_setmem): Likewise.
10850 * optabs.c (maybe_gen_insn): Likewise.
10851 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10852 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10853 (mips_expand_builtin_direct): Likewise.
10854 * config/spu/spu.c (expand_builtin_args): Likewise.
10856 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10858 * recog.h (insn_data_d): Add n_generator_args.
10859 * genoutput.c (data): Likewise.
10860 (output_insn_data): Print it.
10861 (max_opno, num_dups): Delete.
10862 (scan_operands): Just fill in "d->operand[...]".
10863 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10865 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10867 * gensupport.h (pattern_stats): New structure.
10868 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10869 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10870 (max_operand_1, max_operand_vec): Delete.
10871 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10873 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10875 * emit-rtl.c (emit_pattern_after_setloc): New function.
10876 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10877 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10878 (emit_pattern_after): New function.
10879 (emit_insn_after, emit_jump_insn_after): Call it.
10880 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10881 (emit_pattern_before_setloc): New function.
10882 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10883 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10885 (emit_pattern_before): New function.
10886 (emit_insn_before, emit_jump_insn_before): Call it.
10887 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10889 2011-03-31 Richard Henderson <rth@redhat.com>
10891 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10892 (dw_separate_line_info_entry): Remove.
10893 (enum dw_line_info_opcode): New.
10894 (dw_line_info_entry): Use it.
10895 (dw_line_info_table, dw_line_info_table_p): New.
10896 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10897 (line_info_table, line_info_label_num): Remove.
10898 (line_info_table_in_use): Remove.
10899 (separate_line_info_table): Remove.
10900 (separate_line_info_table_allocated): Remove.
10901 (separate_line_info_table_in_use): Remove.
10902 (LINE_INFO_TABLE_INCREMENT): Remove.
10903 (line_info_label_num): New.
10904 (cur_line_info_table): New.
10905 (text_section_line_info, cold_text_section_line_info): New.
10906 (separate_line_info): New.
10907 (SEPARATE_LINE_CODE_LABEL): Remove.
10908 (print_dwarf_line_table): Remove.
10909 (debug_dwarf): Don't dump it.
10910 (output_one_line_info_table): New.
10911 (output_line_info): Use it.
10912 (new_line_info_table): New.
10913 (set_cur_line_info_table): New.
10914 (dwarf2out_switch_text_section): Use it.
10915 (dwarf2out_begin_function): Likewise.
10916 (push_dw_line_info_entry): New.
10917 (dwarf2out_source_line): Rewrite for new line info tables.
10918 (dwarf2out_init): Remove dead initailizations.
10920 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10922 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10924 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10925 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10926 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10927 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10928 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10929 * opt-functions.awk (flag_init, switch_bit_fields): New.
10930 (switch_flags): Don't handle flags moved to bit-fields. Don't
10931 generate CL_MISSING_OK or CL_SAVE.
10932 * optc-gen.awk: Update to generate bit-field output as well as
10934 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10935 bit-field instead of CL_REJECT_DRIVER flag.
10936 * opts-common.c (generate_canonical_option,
10937 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10938 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10939 instead of CL_REJECT_NEGATIVE flag.
10940 * toplev.c (print_switch_values): Use cl_report bit-field instead
10943 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10945 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10946 a zero minimum index only if it is redundant.
10948 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10950 PR rtl-optimization/48381
10951 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10952 instead of ira_class_hard_reg_index for calculating conflicting
10955 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10957 * cprop.c: Clean up hash table building.
10958 (reg_avail_info): Remove.
10959 (oprs_available_p): Remove.
10960 (record_last_reg_set_info): Remove.
10961 (record_last_set_info): Remove.
10962 (reg_available_p): New function.
10963 (gcse_constant_p): Do not treat unfolded conditions as constants.
10964 (make_set_regs_unavailable): New function.
10965 (hash_scan_set): Simplify with new reg_available_p.
10966 (compute_hash_table_work): Traverse insns stream only once.
10967 Do not compute reg_avail_info. Traverse insns in reverse order.
10968 Record implicit sets after recording explicit sets from the block.
10970 2011-03-31 Michael Matz <matz@suse.de>
10972 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10974 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10976 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10977 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10978 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10979 (h8300_mode_dependent_address_p): New function.
10980 (h8300_get_index): Make static.
10982 2011-03-31 Jeff Law <law@redhat.com>
10984 * reload1.c (elimination_effects): Fix typo in recent change.
10986 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10987 typo potentially leading to null pointer dereference.
10989 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10990 (setup_save_areas): Corresponding changes to avoid useless
10993 * jump.c (reversed_comparison_code_parts): Avoid successive return
10994 statements when REVERSE_CONDITION is defined.
10996 * expr.c (expand_assignment): Avoid useless assignments.
10997 (expand_expr_real_1): Likewise.
10998 (expand_expr_real_2): Avoid useless statements.
11000 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11002 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11004 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11007 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11009 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11012 * doc/tm.texi.in (TARGET_VERSION): Remove.
11013 * doc/tm.texi: Regenerate.
11014 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11015 * collect2.c (main): Don't use TARGET_VERSION.
11016 * mips-tdump.c (main): Don't use TARGET_VERSION.
11017 * mips-tfile.c (main): Don't use TARGET_VERSION.
11018 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11019 * config/rs6000/vxworksae.h: Remove.
11020 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11021 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11022 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11023 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11024 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11025 * config/arm/arm.h (TARGET_VERSION): Remove.
11026 * config/arm/coff.h (TARGET_VERSION): Remove.
11027 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11028 * config/arm/elf.h (TARGET_VERSION): Remove.
11029 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11030 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11031 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11032 * config/arm/pe.h (TARGET_VERSION): Remove.
11033 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11034 * config/arm/semi.h (TARGET_VERSION): Remove.
11035 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11036 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11037 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11038 * config/avr/avr.h (TARGET_VERSION): Remove.
11039 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11040 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11041 * config/frv/frv.h (TARGET_VERSION): Remove.
11042 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11043 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11044 * config/i386/darwin.h (TARGET_VERSION): Remove.
11045 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11046 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11047 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11048 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11049 * config/i386/gnu.h (TARGET_VERSION): Remove.
11050 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11051 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11052 * config/i386/linux.h (TARGET_VERSION): Remove.
11053 * config/i386/linux64.h (TARGET_VERSION): Remove.
11054 * config/i386/lynx.h (TARGET_VERSION): Remove.
11055 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11056 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11057 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11058 * config/i386/netware.h (TARGET_VERSION): Remove.
11059 * config/i386/nto.h (TARGET_VERSION): Remove.
11060 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11061 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11062 * config/ia64/elf.h (TARGET_VERSION): Remove.
11063 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11064 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11065 * config/ia64/linux.h (TARGET_VERSION): Remove.
11066 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11067 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11068 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11069 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11070 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11071 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11072 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11073 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11074 * config/m68k/linux.h (TARGET_VERSION): Remove.
11075 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11076 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11077 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11078 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11079 * config/mep/mep.h (TARGET_VERSION): Remove.
11080 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11081 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11082 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11083 * config/mips/linux.h (TARGET_VERSION): Remove.
11084 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11085 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11086 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11087 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11088 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11089 * config/pa/pa.h (TARGET_VERSION): Remove.
11090 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11091 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11092 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11093 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11094 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11095 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11096 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11097 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11098 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11099 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11100 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11101 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11102 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11103 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11104 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11105 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11106 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11107 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11108 * config/s390/linux.h (TARGET_VERSION): Remove.
11109 * config/s390/s390.h (TARGET_VERSION): Remove.
11110 * config/s390/tpf.h (TARGET_VERSION): Remove.
11111 * config/score/score.h (TARGET_VERSION): Remove.
11112 * config/sh/linux.h (TARGET_VERSION): Remove.
11113 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11114 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11115 * config/sh/sh.h (TARGET_VERSION): Remove.
11116 * config/sh/sh64.h (TARGET_VERSION): Remove.
11117 * config/sh/superh.h (TARGET_VERSION): Remove.
11118 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11119 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11120 * config/sparc/linux.h (TARGET_VERSION): Remove.
11121 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11122 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11123 TARGET_NAME32, TARGET_NAME): Remove.
11124 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11125 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11126 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11127 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11128 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11129 * config/spu/spu.h (TARGET_VERSION): Remove.
11130 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11131 * config/v850/v850.h (TARGET_VERSION): Remove.
11132 * config/vax/linux.h (TARGET_VERSION): Remove.
11133 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11134 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11135 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11137 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11140 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11141 frame-related from frame-unrelated adjustments to the stack pointer.
11143 2011-03-31 Jakub Jelinek <jakub@redhat.com>
11145 * common.opt (fdebug-types-section): Move earlier.
11146 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11148 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
11150 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11153 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11155 * tree.h (CASE_CHAIN): Define.
11156 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11157 (gimple_redirect_edge_and_branch): Likewise.
11159 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11161 PR middle-end/48367
11162 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11165 2011-03-30 Jeff Law <law@redhat.com>
11167 * PR bootstrap/48371
11168 * reload1.c (reload): Fix botch in last change.
11170 * reload.h (struct reload): Fix typo introduced in last change.
11172 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11174 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11175 Undocumented. Remove help text.
11176 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11179 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11181 * doc/options.texi (NegativeAlias): Document.
11182 (Alias): Mention NegativeAlias.
11183 * opt-functions.awk: Handle NegativeAlias.
11184 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11185 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11186 * opts.h (CL_NEGATIVE_ALIAS): Define.
11187 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11188 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11190 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11192 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11193 mno-spe and mno-isel instead of mspe=no and -misel=no.
11195 2011-03-29 Mark Wielaard <mjw@redhat.com>
11197 * common.opt (fdebug-types-section): New flag.
11198 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11199 * dwarf2out.c (use_debug_types): New define.
11200 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11201 (print_die): Guard output of type unit signatures using
11203 (build_abbrev_table): Replace assert of dwarf_version >= 4
11204 with assert on use_debug_types.
11205 (size_of_die): Likewise.
11206 (unmark_dies): Likewise.
11207 (value_format): Decide AT_ref_external form on use_debug_types.
11208 (output_die): Replace dwarf_version version check guard with
11209 use_debug_types where appropriate.
11210 (modified_type_die): Likewise.
11211 (gen_reference_type_die): Likewise.
11212 (dwarf2out_start_source_file): Likewise.
11213 (dwarf2out_end_source_file): Likewise.
11214 (prune_unused_types_walk_attribs): Likewise.
11215 (dwarf2out_finish): Likewise.
11217 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11219 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11221 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11223 PR rtl-optimization/48332
11224 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11225 mode of input operand N and modeN to its actual mode.
11227 2011-03-30 Jeff Law <law@redhat.com>
11229 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11230 define accessor macro.
11231 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11232 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11233 (reg_equiv_init): Likewise.
11234 (reg_equivs_size): New variable.
11235 (reg_equiv_init_size): Remove.
11236 (allocate_initial_values): Move prototype to here from....
11237 * integrate.h (allocate_initial_values): Remove prototype.
11238 * integrate.c: Include reload.h.
11239 (allocate_initial_values): Corresponding changes.
11240 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11241 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11242 (update_equiv_regs): Corresponding changes.
11243 (ira): Corresponding changes.
11244 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11245 (push_secondary_reload): Corresponding changes.
11246 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11247 (make_memloc, find_reloads_address): Corresponding changes.
11248 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11249 (find_reloads_address_1): Corresponding changes.
11250 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11251 (refers_to_regno_for_reload_p): Corresponding changes.
11252 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11253 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11254 * reload1.c: Include ggc.h.
11255 (grow_reg_equivs): New function.
11256 (replace_pseudos_in, reload): Corresponding changes.
11257 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11258 (eliminate_regs_1, elimination_effects): Corresponding changes.
11259 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11260 (delete_output_reload): Likewise.
11261 * caller-save.c (mark_referenced_regs): Corresponding changes.
11262 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11263 * frv/predicates.md (frv_load_operand): Corresponding changes.
11264 * microblaze/microblaze.c (double_memory_operand): Corresponding
11266 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11267 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11268 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11269 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11270 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11272 * pa/pa.c (emit_move_sequence): Corresponding changes.
11273 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11275 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11278 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11279 structure modes. Don't check neon_vector_mem_operand for
11280 vector or structure modes.
11282 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11283 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11286 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11287 operand 1 and reshuffle the operands to match.
11288 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11290 2011-03-30 Christian Schüler <cschueler@gmx.de>
11293 * config/c.opt (F): Added 'Driver' to -F option.
11296 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11298 * config/darwin.opt: Added '-arch' option.
11300 2011-03-30 Nick Clifton <nickc@redhat.com>
11302 * config/rx/rx.md: Add peepholes and patterns to combine
11303 extending loads and simple arithmetic instructions.
11304 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11305 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11306 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11307 modes to use pre-decrement and post-increment addressing.
11308 (rx_is_restricted_memory_address): Add range checking of REG+INT
11310 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11311 (rx_memory_move_cost): Adjust cost of stores.
11312 (rx_adjust_insn_length): New function.
11314 2011-03-30 Jakub Jelinek <jakub@redhat.com>
11317 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11318 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11319 matching arg00/arg01 types.
11321 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11323 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11324 last_location to UNKNOWN_LOCATION.
11326 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11329 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11332 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11333 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11336 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11337 Init(PROCESSOR_V7).
11338 (sparc_cpu): Likewise.
11339 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11342 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11345 PR middle-end/48342
11346 PR rtl-optimization/48345
11347 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11348 hard regs for given mode from profitable regs when doing secondary
11351 2011-03-29 Jeff Law <law@redhat.com>
11354 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11355 do_not_duplicate field.
11356 (lookup_redirection_data): Corresponding changes.
11357 (create_duplicates): Always create a template block.
11358 (redirect_edges): Remove code which reused the original block
11359 when it was going to become unreachable code.
11360 (thread_block): Don't set do_not_duplicate field.
11362 2011-03-29 Joseph Myers <joseph@codesourcery.com>
11364 * lto-opts.c (register_user_option_p, lto_register_user_option):
11365 Make type argument unsigned.
11366 * lto-streamer.h (lto_register_user_option): Make type argument
11368 * opth-gen.awk: Make CL_* macros unsigned.
11369 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11370 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11371 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11372 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11373 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11374 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11375 (find_opt): Make lang_mask argument unsigned.
11377 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11379 PR rtl-optimization/48331
11380 PR rtl-optimization/48334
11381 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11382 for any used algorithm.
11384 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11386 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11389 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
11391 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11392 (alpha_option_override): Don't set alpha_sr_alias_set.
11393 (emit_frame_store_1): Use gen_frame_mem rather than calling
11395 (alpha_expand_epilogue): Ditto.
11397 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
11399 PR tree-optimization/48290
11400 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11401 vectorization, check that relevant phis in the basic block after
11402 the inner loop are really inner loop's exit phis.
11404 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11407 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11408 (cached_dw_loc_list_def): New structure.
11409 (cached_dw_loc_list): New typedef.
11410 (cached_dw_loc_list_table): New variable.
11411 (cached_dw_loc_list_table_hash): New function.
11412 (cached_dw_loc_list_table_eq): Likewise.
11413 (add_location_or_const_value_attribute): Take a bool cache_p.
11414 Cache the list when the parameter is true.
11415 (gen_formal_parameter_die): Update caller.
11416 (gen_variable_die): Likewise.
11417 (dwarf2out_finish): Likewise.
11418 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11419 while generating debug info for the decl.
11420 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11421 (dwarf2out_init): Initialize cached_dw_loc_list_table.
11422 (resolve_addr): Cache the result of resolving a chain of
11425 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
11427 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11428 conflict object hard regset nodes have intersecting hard reg sets.
11430 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11431 after regstat_init_n_sets_and_refs.
11433 * ira.c: Add more comments at the top.
11434 (setup_stack_reg_pressure_class, setup_pressure_classes):
11435 Add comments how we compute the register pressure classes.
11436 (setup_allocno_and_important_classes): Add more comments.
11437 (setup_class_translate_array, reorder_important_classes)
11438 (setup_reg_class_relations): Add comments.
11440 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
11443 * ira-color.c: Add 2011 to the Copyright line.
11444 (assign_hard_reg): Add more comments.
11445 (improve_allocation): Ditto.
11447 * ira-costs.c: Add 2011 to the Copyright line.
11448 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11450 (setup_regno_cost_classes_by_mode): Ditto.
11452 Initial patches from ira-improv branch:
11454 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11456 * ira-build.c (ira_create_object): Remove initialization of
11457 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
11458 (ira_create_allocno): Remove initialization of
11459 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11460 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11461 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11462 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11463 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11464 Initialize ALLOCNO_ADD_DATA.
11465 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11466 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11468 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
11469 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11471 * ira.c (ira_reallocate): Remove.
11472 (setup_pressure_classes): Call
11473 ira_init_register_move_cost_if_necessary. Use
11474 ira_register_move_cost instead of ira_get_register_move_cost.
11475 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11476 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11478 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11479 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11480 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11481 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
11482 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
11483 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
11485 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
11486 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11487 (struct allocno_color_data): New.
11488 (allocno_color_data_t): New typedef.
11489 (allocno_color_data): New definition.
11490 (ALLOCNO_COLOR_DATA): New macro.
11491 (struct object_color_data): New.
11492 (object_color_data_t): New typedef.
11493 (object_color_data): New definition.
11494 (OBJECT_COLOR_DATA): New macro.
11495 (update_copy_costs, calculate_allocno_spill_cost): Call
11496 ira_init_register_move_cost_if_necessary. Use
11497 ira_register_move_cost instead of ira_get_register_move_cost.
11498 (move_spill_restore, update_curr_costs): Ditto.
11499 (allocno_spill_priority): Make it inline.
11500 (color_pass): Allocate and free allocno_color_dat and object_color_data.
11501 (struct coalesce_data, coalesce_data_t): New.
11502 (allocno_coalesce_data): New definition.
11503 (ALLOCNO_COALESCE_DATA): New macro.
11504 (merge_allocnos, coalesced_allocno_conflict_p): Use
11505 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
11506 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
11507 (coalesce_allocnos): Ditto.
11508 (setup_coalesced_allocno_costs_and_nums): Ditto.
11509 (collect_spilled_coalesced_allocnos): Ditto.
11510 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
11511 (setup_slot_coalesced_allocno_live_ranges): Ditto.
11512 (coalesce_spill_slots): Ditto.
11513 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
11514 free allocno_coalesce_data.
11516 * ira-conflicts.c: Fix formatting.
11517 (process_regs_for_copy): Call
11518 ira_init_register_move_cost_if_necessary. Use
11519 ira_register_move_cost instead of ira_get_register_move_cost.
11520 (build_object_conflicts): Optimize.
11522 * ira-costs.c (record_reg_classes): Optimize. Call
11523 ira_init_register_move_cost_if_necessary. Use
11524 ira_register_move_cost, ira_may_move_in_cost, and
11525 ira_may_move_out_cost instead of ira_get_register_move_cost and
11526 ira_get_may_move_cost.
11527 (record_address_regs): Ditto.
11528 (scan_one_insn): Optimize.
11529 (find_costs_and_classes): Optimize.
11530 (process_bb_node_for_hard_reg_moves): Call
11531 ira_init_register_move_cost_if_necessary. Use
11532 ira_register_move_cost instead of ira_get_register_move_cost.
11534 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11535 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11536 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11537 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11539 (ira_initiate_emit_data, ira_finish_emit_data)
11540 (create_new_allocno): New functions.
11541 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11542 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11543 Use ira_register_move_cost instead of ira_get_register_move_cost.
11545 * ira-int.h: Fix some comments.
11546 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11547 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11548 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11549 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11551 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11552 bitfield after mode. Make hard_regno a short int. Make
11553 hard_regno short. Remove first_coalesced_allocno and
11554 next_coalesced_allocno. Move mem_optimized_dest_p,
11555 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11556 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11557 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11558 temp, colorable_p. Add new member add_data.
11559 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11560 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11561 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11562 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11563 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11564 (ALLOCNO_ADD_DATA): New macro.
11565 (ira_emit_data_t): New typedef.
11566 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11567 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11568 from struct ira_allocno.
11569 (ALLOCNO_EMIT_DATA): New macro.
11570 (ira_allocno_emit_data, allocno_emit_reg): New.
11571 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11572 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11573 (OBJECT_ADD_DATA): New macro.
11574 (ira_reallocate): Remove.
11575 (ira_initiate_emit_data, ira_finish_emit_data): New.
11576 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11577 (ira_init_register_move_cost_if_necessary): New.
11578 (ira_object_conflict_iter_next): Merge into
11579 ira_object_conflict_iter_cond.
11580 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11582 * ira-live.c (process_single_reg_class_operands): Call
11583 ira_init_register_move_cost_if_necessary. Use
11584 ira_register_move_cost instead of ira_get_register_move_cost.
11586 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11588 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11590 * ira-costs.c: Fix formatting.
11591 (cost_classes, cost_classes_num): Remove.
11592 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11593 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11594 (cost_classes_del, cost_classes_htab): New.
11595 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11596 (initiate_regno_cost_classes, setup_cost_classes): New.
11597 (setup_regno_cost_classes_by_aclass): New.
11598 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11599 (record_reg_classes): Use regno_cost_classes instead of
11600 cost_classes. Move checking opposite operand up.
11601 (record_address_regs): Use regno_cost_classes
11602 instead of cost_classes.
11603 (scan_one_insn): Ditto. Use always general register.
11604 (print_allocno_costs): Use regno_cost_classes instead of
11606 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11607 (find_costs_and_classes): Set up cost classes for each registers.
11608 Use also their mode for this. Use regno_cost_classes instead of
11610 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11612 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11613 (ira_costs, ira_set_pseudo_classes): Call
11614 initiate_regno_cost_classes and finish_regno_cost_classes.
11616 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11618 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11620 * target.def (ira_cover_classes): Remove.
11622 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11624 * doc/tm.texi.in: Ditto.
11626 * ira-conflicts.c: Remove mentioning cover classes from the file.
11627 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11628 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11630 * targhooks.c (default_ira_cover_classes): Remove.
11632 * targhooks.h (default_ira_cover_classes): Ditto.
11634 * haifa-sched.c: Remove mentioning cover classes from the file.
11635 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11636 ira_pressure_classes and ira_pressure_classes_num instead of
11637 ira_reg_class_cover_size and ira_reg_class_cover. Use
11638 sched_regno_pressure_class instead of sched_regno_cover_class.
11639 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11640 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11642 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11643 classes from the file.
11644 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11645 (struct object_hard_regs, struct object_hard_regs_node): New.
11646 (struct ira_object): New members profitable_hard_regs,
11647 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11648 (struct ira_allocno): Rename cover_class to aclass. Rename
11649 cover_class_cost and updated_cover_class_cost to class_cost and
11650 updated_class_cost. Remove splay_removed_p and
11651 left_conflict_size. Add new members colorable_p.
11652 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11653 (ALLOCNO_COLORABLE_P): New macro.
11654 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11655 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11656 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11657 (OBJECT_...): Rename parameter C to O.
11658 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11659 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11660 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11661 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11662 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11663 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11664 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11665 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11666 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11667 x_ira_reg_class_subunion.
11668 (ira_max_memory_move_cost, ira_max_register_move_cost)
11669 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11670 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11671 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11672 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11673 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11674 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11675 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11676 (ira_tune_allocno_costs_and_cover_classes): Rename to
11677 ira_tune_allocno_costs.
11678 (ira_debug_hard_regs_forest): New.
11679 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11680 (ira_object_conflict_iter_next): Fix comments.
11681 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11682 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11683 cover_class to aclass.
11684 (ira_allocate_and_accumulate_costs): Ditto.
11685 (ira_allocate_and_set_or_copy_costs): Ditto.
11687 * opts.c (decode_options): Remove ira_cover_class check.
11689 * ira-color.c: Remove mentioning cover classes from the file. Use
11690 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11691 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11692 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11693 (splay-tree.h): Remove include.
11694 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11695 before copy_freq_compare_func.
11696 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11697 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11699 (hard_regs_roots, hard_regs_node_vec): Ditto.
11700 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11701 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11702 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11703 (create_new_object_hard_regs_node): Ditto.
11704 (add_new_object_hard_regs_node_to_forest): Ditto.
11705 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11706 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11708 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11709 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11710 (remove_unused_object_hard_regs_nodes): Ditto.
11711 (enumerate_object_hard_regs_nodes): Ditto.
11712 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11713 (object_hard_regs_subnode_t): Ditto.
11714 (struct object_hard_regs_subnode): Ditto.
11715 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11716 (setup_object_hard_regs_subnode_index): Ditto.
11717 (get_object_hard_regs_subnodes_num): Ditto.
11718 (form_object_hard_regs_nodes_forest): Ditto.
11719 (finish_object_hard_regs_nodes_tree): Ditto.
11720 (finish_object_hard_regs_nodes_forest): Ditto.
11721 (allocnos_have_intersected_live_ranges_p): Rename to
11722 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11723 (pseudos_have_intersected_live_ranges_p): Rename to
11724 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11725 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11726 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11727 (update_copy_costs): Remove assert. Skip cost update if the hard
11728 reg does not belong the class.
11729 (assign_hard_reg): Process only profitable hard regs.
11730 (uncolorable_allocnos_num): Make it scalar.
11731 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11732 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11733 and ira_reg_class_max_nregs.
11734 (bucket_allocno_compare_func): Check frequency first.
11735 (sort_bucket): Add compare function as a parameter.
11736 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11737 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11738 (push_allocno_to_stack): Rewrite for checking new allocno
11740 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11741 (push_only_colorable): Pass new parameter to sort_bucket.
11742 (push_allocno_to_spill): Remove.
11743 (allocno_spill_priority_compare): Make it inline and rewrite.
11744 (splay_tree_allocate, splay_tree_free): Remove.
11745 (allocno_spill_sort_compare): New function.
11746 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11747 build and use splay tree. Choose first allocno in uncolorable
11748 allocno bucket to spill. Remove setting spill cost.
11749 (all_conflicting_hard_regs): Remove.
11750 (setup_allocno_available_regs_num): Check only profitable hard
11751 regs. Print info about hard regs nodes.
11752 (setup_allocno_left_conflicts_size): Remove.
11753 (put_allocno_into_bucket): Don't call
11754 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11755 (improve_allocation): New.
11756 (color_allocnos): Call setup_profitable_hard_regs,
11757 form_object_hard_regs_nodes_forest, improve_allocation,
11758 finish_object_hard_regs_nodes_forest. Setup spill cost.
11759 (print_loop_title): Use pressure classes.
11760 (color_allocnso): Ditto.
11761 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11762 and allocnos_for_spilling.
11763 (ira_sort_regnos_for_alter_reg): Don't setup members
11764 {first,next}_coalesced_allocno.
11765 (color): Remove allocating and freeing removed_splay_allocno_vec.
11766 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11767 prohibited_class_mode_regs.
11769 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11771 (update_allocno_pressure_excess_length): Use pressure classes.
11772 (inc_register_pressure, dec_register_pressure): Check for pressure
11774 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11775 pressure class. Use ira_reg_class_nregs instead of
11776 ira_reg_class_max_nregs.
11777 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11778 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11779 (single_reg_class): Use ira_reg_class_nregs instead of
11780 ira_reg_class_max_nregs.
11781 (process_bb_node_lives): Use pressure classes.
11783 * ira-emit.c: Remove mentioning cover classes from the file. Use
11784 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11785 (change_loop): Use pressure classes.
11786 (modify_move_list): Call ira_set_allocno_class instead of
11787 ira_set_allocno_cover_class.
11789 * ira-build.c: Remove mentioning cover classes from the file. Use
11790 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11791 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11792 ALLOCNO_UPDATED_CLASS_COST instead of
11793 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11794 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11795 (ira_create_allocno): Remove initialization of
11796 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11797 ALLOCNO_COLORABLE_P.
11798 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11799 Update conflict regs for the objects.
11800 (create_cap_allocno): Remove assert. Don't propagate
11801 ALLOCNO_AVAILABLE_REGS_NUM.
11802 (ira_free_allocno_costs): New function.
11803 (finish_allocno): Change a part of code into call of
11804 ira_free_allocno_costs.
11805 (low_pressure_loop_node_p): Use pressure classes.
11806 (object_range_compare_func): Don't compare classes.
11807 (setup_min_max_conflict_allocno_ids): Ditto.
11809 * loop-invariant.c: Remove mentioning cover classes from the file.
11810 Use ira_pressure_classes and ira_pressure_classes_num instead of
11811 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11812 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11813 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11814 Use reg_allocno_class instead of reg_cover_class.
11815 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11816 STACK_REG_COVER_CLASS.
11817 (get_regno_cover_class): Rename to get_regno_pressure_class.
11818 (move_loop_invariants): Initialize and finalize regstat.
11820 * ira.c: Remove mentioning cover classes from the file. Add
11821 comments about coloring without cover classes. Use ALLOCNO_CLASS
11822 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11823 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11824 setup_class_subset_and_memory_move_costs.
11825 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11826 (setup_cover_and_important_classes): Rename to
11827 setup_allocno_and_important_classes.
11828 (setup_class_translate_array): New.
11829 (setup_class_translate): Call it for allocno and pressure classes.
11830 (cover_class_order): Rename to allocno_class_order.
11831 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11832 of ira_class_translate.
11833 (reorder_important_classes): Set up ira_important_class_nums.
11834 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11835 (print_class_cover): Rename to print_classes. Add parameter.
11836 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11837 Print pressure classes too.
11838 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11839 setup_reg_subclasses.
11840 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11841 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11842 (setup_prohibited_class_mode_regs): Use
11843 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11844 (clarify_prohibited_class_mode_regs): New function.
11845 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11846 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11847 (ira_init_once): Initialize them.
11848 (free_register_move_costs): Process them.
11849 (ira_init): Move calls of find_reg_classes and
11850 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11851 Call clarify_prohibited_class_mode_regs.
11852 (ira_no_alloc_reg): Remove.
11853 (too_high_register_pressure_p): Use pressure classes.
11855 * sched-deps.c: Remove mentioning cover classes from the file.
11856 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11857 ira_pressure_classes and ira_pressure_classes_num instead of
11858 ira_reg_class_cover_size and ira_reg_class_cover.
11859 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11860 sched_regno_pressure_class instead of sched_regno_cover_class.
11861 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11862 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11864 * ira.h: Add 2010 to Copyright.
11865 (ira_no_alloc_reg): Remove external.
11866 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11867 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11868 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11869 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11870 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11871 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11872 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11873 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11874 x_ira_no_alloc_regs.
11875 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11876 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11877 ira_allocno_classes_num and ira_allocno_classes.
11878 (ira_class_translate): Rename to ira_allocno_class_translate.
11879 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11880 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11881 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11882 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11883 (ira_no_alloc_regs): New.
11885 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11886 classes from the file. Use ALLOCNO_CLASS instead of
11887 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11888 ALLOCNO_COVER_CLASS_COST.
11889 (regno_cover_class): Rename to regno_aclass.
11890 (record_reg_classes): Use ira_reg_class_subunion instead of
11891 ira_reg_class_union.
11892 (record_address_regs): Check overflow.
11893 (scan_one_insn): Ditto.
11894 (print_allocno_costs): Print total mem cost fore regional allocation.
11895 (print_pseudo_costs): Use REG_N_REFS.
11896 (find_costs_and_classes): Use classes intersected with them on the
11897 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11898 ira_reg_class_union. Use ira_allocno_class_translate and
11899 regno_aclass instead of ira_class_translate and regno_cover_class.
11900 Modify code for finding regno_aclass. Setup preferred classes for
11902 (setup_allocno_cover_class_and_costs): Rename to
11903 setup_allocno_class_and_costs. Use regno_aclass instead of
11904 regno_cover_class. Use ira_set_allocno_class instead of
11905 ira_set_allocno_cover_class.
11906 (init_costs, finish_costs): Use regno_aclass instead of
11908 (ira_costs): Use setup_allocno_class_and_costs instead of
11909 setup_allocno_cover_class_and_costs.
11910 (ira_tune_allocno_costs_and_cover_classes): Rename to
11911 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11912 by processing objects. Use ira_reg_class_max_nregs instead of
11913 ira_reg_class_nregs.
11915 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11917 * sched-int.h: Remove mentioning cover classes from the file.
11918 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11920 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11921 classes from the file.
11922 (struct reg_pref): Rename coverclass into allocnoclass.
11923 (reg_cover_class): Rename to reg_allocno_class.
11925 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11927 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11929 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11931 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11933 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11935 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11937 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11939 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11941 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11943 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11945 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11946 (i386_ira_cover_classes): Ditto.
11948 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11950 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11952 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11954 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11956 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11958 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11960 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11961 (mips_ira_cover_classes): Ditto.
11963 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11965 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11967 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11969 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11971 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11973 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11974 (IRA_COVER_CLASSES_VSX): Ditto.
11976 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11977 (rs6000_ira_cover_classes): Ditto.
11979 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11981 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11983 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11985 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11987 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11989 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11991 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11993 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11995 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11997 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11999 2011-03-29 Jakub Jelinek <jakub@redhat.com>
12002 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12003 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12004 dw_fde_unlikely_section_end_label, cold_in_std_section,
12005 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12006 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12008 (output_fde): Use dw_fde_second_{begin,end} if second is
12009 true, otherwise dw_fde_{begin,end}.
12010 (output_call_frame_info): Test dw_fde_second_begin != NULL
12011 instead of dw_fde_switched_sections.
12012 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12013 fields, initialize new fields. Initialize in_std_section
12014 unconditionally from the first partition.
12015 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12016 dw_fde_second_begin is non-NULL.
12017 (dwarf2out_switch_text_section): Stop initializing removed
12018 dw_fde_struct fields, initialize new fields, initialize
12019 also dw_fde_end here. Set dw_fde_switch_cfi even when
12020 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12021 (struct var_loc_list_def): Add last_before_switch field.
12022 (arange_table, arange_table_allocated, arange_table_in_use,
12023 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12024 (size_of_aranges): Count !in_std_section and !second_in_std_section
12025 hunks in fdes, instead of looking at arange_table_in_use.
12026 (output_aranges): Add aranges_length argument, don't call
12027 size_of_aranges here. Instead of using aranges_table*
12028 emit ranges for fdes when !in_std_section resp.
12029 !second_in_std_section.
12030 (dw_loc_list): Break ranges crossing section switch.
12031 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
12032 use dw_fde_second_end instead of dw_fde_end as end of last range.
12033 (gen_subprogram_die): Don't call add_arange. Use
12034 dw_fde_{begin,end} for first partition and if switched
12035 section dw_fde_second_{begin,end} for the second.
12036 (var_location_switch_text_section_1,
12037 var_location_switch_text_section): New functions.
12038 (dwarf2out_begin_function): Initialize cold_text_section even
12039 when function_section () isn't text_section.
12040 (prune_unused_types): Don't walk arange_table.
12041 (dwarf2out_finish): Don't needlessly test
12042 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12043 If info_section_emitted, call size_of_aranges and if it indicates
12044 non-empty .debug_aranges, call output_aranges with the computed
12045 size. Stop using removed dw_fde_struct fields, use
12046 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12050 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12051 create ENTRY_VALUE if incoming or address of incoming's MEM
12053 * dwarf2out.c (mem_loc_descriptor): Don't emit
12054 DW_OP_GNU_entry_value of DW_OP_fbreg.
12055 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12056 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12057 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12058 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12060 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12061 is a REG_P or MEM_P with REG_P address, compute hash directly
12062 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12063 (preserve_only_constants): Don't clear VALUES forwaring
12064 ENTRY_VALUE to some other VALUE.
12066 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12068 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12069 instead of GEN_INT.
12071 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12073 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12074 block before expanding the statement.
12075 (expand_gimple_stmt_1): Likewise. Set them here...
12076 (expand_gimple_stmt): ...and not here. Tidy.
12077 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12080 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12082 * Makefile.in: New rule for cprop.o.
12083 * gcse.c: Move constant/copy propagation to cprop.c.
12084 (compute_local_properties): Only handle expression tables.
12085 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12086 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12087 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12088 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12089 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12090 compute_cprop_data, find_used_regs, try_replace_reg,
12091 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12092 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12093 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12094 find_bypass_set, reg_killed_on_edge, bypass_block,
12095 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12096 execute_rtl_cprop, pass_rtl_cprop): Move to...
12097 * cprop.c: ...here. New file, constant/copy propagation for RTL
12098 moved from gcse.c to here with minor cleanups in duplicated code.
12100 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12102 * config/i386/i386.c (flag_opts): Fix a typo in
12103 -mavx256-split-unaligned-store.
12105 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12107 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12108 LIBCALL_VALUE): Remove macros.
12109 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12110 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12111 (h8300_function_value, h8300_libcall_value,
12112 h8300_function_value_regno_p): New functions.
12114 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12116 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12118 2011-03-28 Jeff Law <law@redhat.com>
12120 * tree-ssa-threadupdate.c (redirect_edges): Call
12121 create_edge_and_update_destination_phis as needed.
12122 (create_edge_and_update_destination_phis): Accept new BB argument.
12123 All callers updated.
12124 (thread_block): Do not update the profile when threading around
12125 intermediate blocks.
12126 (thread_single_edge): Likewise.
12127 (determine_bb_domination_status): If BB is not a successor of the
12128 loop header, return NONDOMINATING.
12129 (register_jump_thread): Note when we register a jump thread around
12130 an intermediate block.
12131 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12132 (thread_across_edge): Use it.
12134 2011-03-28 Tristan Gingold <gingold@adacore.com>
12136 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12137 when for_return is 2.
12139 2011-03-28 Jeff Law <law@redhat.com>
12141 * var-tracking.c (canonicalize_values_mark): Delete unused
12143 (canonicalize_values_star, set_variable_part): Likewise.
12144 (clobber_variable_part, delete_variable_part): Likewise.
12146 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12148 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12150 2011-03-28 Martin Jambor <mjambor@suse.cz>
12152 * tree-inline.c (expand_call_inline): Do not check that destination
12154 (optimize_inline_calls): Assert that destination node is analyzed.
12155 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12156 not call tree_lowering_passes.
12157 * cgraph.h (cgraph_analyze_function): Declare.
12158 * cgraphunit.c (cgraph_analyze_function): Make public.
12160 2011-03-28 Joseph Myers <joseph@codesourcery.com>
12162 * config/sparc/sparc-opts.h: New.
12163 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12164 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12165 (sparc_option_override): Store processor_type enumeration rather
12166 than string in cpu_default. Remove name and enumeration from
12167 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12168 without using sparc_select. Use target_flags_explicit instead of
12170 * config/sparc/sparc.h (enum processor_type): Move to
12172 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12173 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12174 HeaderInclude entry.
12175 (mcpu=, mtune=): Use Var and Enum.
12176 (sparc_processor_type): New Enum and EnumValue entries.
12178 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12179 Iain Sandoe <iains@gcc.gnu.org>
12182 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12184 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12186 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12187 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12188 Insert new statements at it in lieu of STMT.
12189 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12190 * tree-vect-stmts.c (vectorizable_store): Likewise.
12191 (vectorizable_load): Likewise.
12193 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
12195 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12200 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12202 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12203 unaligned 256bit load/store.
12204 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12205 (*avx_movdqu<avxmodesuffix>): Likewise.
12207 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12210 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12211 * config/pa/pa.md (iordi3): Use new predicate in expander.
12212 (iorsi3): Likewise.
12214 2011-03-27 Anatoly Sokolov <aesok@post.ru>
12216 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12217 FUNCTION_VALUE_REGNO_P): Remove macros.
12218 * config/mips/mips-protos.h (mips_function_value): Remove.
12219 * config/mips/mips.c (mips_function_value): Rename to...
12220 (mips_function_value_1): ... this. Make static. Handle receiving
12221 the function type in 'fn_decl_or_type' argument.
12222 (mips_function_value, mips_libcall_value,
12223 mips_function_value_regno_p): New function.
12224 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12225 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12227 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12229 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12230 and -mavx256-split-unaligned-store.
12231 (ix86_option_override_internal): Split 32-byte AVX unaligned
12232 load/store by default.
12233 (ix86_avx256_split_vector_move_misalign): New.
12234 (ix86_expand_vector_move_misalign): Use it.
12236 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12237 -mavx256-split-unaligned-store.
12239 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12240 256bit load/store. Generate unaligned store on misaligned memory
12242 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12244 (*avx_movdqu<avxmodesuffix>): Likewise.
12246 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12247 -mavx256-split-unaligned-store.
12249 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12252 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12255 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12257 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12258 opno arguments with an expand_operand. Use create_input_operand.
12259 (mips_prepare_builtin_target): Delete.
12260 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12262 (mips_expand_builtin_direct): Use create_output_operand and
12263 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12264 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12265 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12267 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
12269 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12271 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12273 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12275 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12276 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12277 basic blocks and call commit_edge_insertions directly.
12278 (fixup_abnormal_edges): Move from here to...
12279 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12280 on the edges and return whether some have actually been inserted.
12281 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12284 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
12286 PR rtl-optimization/48144
12287 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12288 (merge_expr_data): ... here.
12289 (av_set_intersect): Rename to av_set_code_motion_filter.
12290 Update all callers. Call merge_history_vect when an expression
12291 is found in both sets.
12292 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12294 2011-03-26 Alan Modra <amodra@gmail.com>
12296 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12297 cmodel medium addresses.
12298 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12299 64-bit gpr loads and stores.
12300 (rs6000_secondary_reload_ppc64): New function.
12301 * config/rs6000/rs6000-protos.h: Declare it.
12302 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12304 2011-03-26 Alan Modra <amodra@gmail.com>
12307 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12308 GNU Go in traceback table.
12310 2011-03-25 Richard Henderson <rth@redhat.com>
12312 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12313 if there are exactly 6 operands.
12314 (set_storage_via_setmem): Similarly.
12316 2011-03-25 Kai Tietz <ktietz@redhat.com>
12318 * collect2.c (write_c_file_stat): Handle backslash
12319 as right-hand directory separator.
12320 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12321 checking just for slash.
12322 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12323 instead of checking for trailing slash.
12324 * gcc.c (record_temp_file): Use filename_cmp instead
12326 (do_spec_1): Likewise.
12327 (replace_outfile_spec_function): Likewise.
12328 (is_directory): Use filename_ncmp instead of strncmp.
12329 (print_multilib_info): Likewise.
12330 * gcov.c (find_source): Use filename_cmp instead
12332 (make_gcov_file_name): Fix order of slash/backslash
12334 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12335 (add_standard_paths): Likewise.
12336 * mips-tfile.c (saber_stop): Handle backslash.
12337 * prefix.c (update_path): Use filename_ncmp instead of
12339 * profile.c (output_location): Use filename_cmp instead
12341 * read-md.c (handle_toplevel_file): Handle backslash.
12342 * tlink.c (frob_extension): Likewise.
12343 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12345 * tree-dump.c (dequeue_and_dump): Handle backslash.
12346 * tree.c (get_file_function_name): Likewise.
12347 * gengtype.c (read_input_list): Likewise.
12348 (get_file_realbasename): Likewise.
12349 (get_output_file_with_visibility): Use filename_cmp
12352 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12354 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12357 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12359 * fold-const.c (expr_location_or): New function.
12360 (fold_truth_not_expr): Call it.
12362 2011-03-25 Jeff Law <law@redhat.com>
12364 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12366 * c-family/c-common.c (def_fn_type): Likewise.
12367 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12368 * emit-rtl.c (gen_rtvec): Likewise.
12369 * lto/lto-lang.c (def_fn_type): Likewise.
12371 2011-03-25 Richard Guenther <rguenther@suse.de>
12373 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12374 also generate copies.
12375 (fini_copy_prop): Handle constant values properly.
12377 2011-03-25 Jakub Jelinek <jakub@redhat.com>
12379 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12380 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12381 (hash_loc_operands, compare_loc_operands): Handle
12382 DW_OP_GNU_entry_value.
12384 2011-03-25 Kai Tietz <ktietz@redhat.com>
12386 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12387 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12388 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12389 comment and use macro TARGET_64BIT_MS_ABI instead.
12390 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12391 and change default behavior for 32-bit MS_ABI.
12392 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12393 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12395 (ix86_cfun_abi): Likewise.
12396 (ix86_maybe_switch_abi): Adjust comment.
12397 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12398 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12399 instead of checking for SYSV_ABI.
12400 (ix86_nsaved_sseregs): Likewise.
12401 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12403 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12404 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12405 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12406 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12407 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12409 2011-03-25 Richard Guenther <rguenther@suse.de>
12411 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12412 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12413 (verify_gimple): Remove.
12414 * tree-cfg.c (verify_gimple_call): Merge verification
12416 (verify_gimple_phi): Merge verification from verify_stmts.
12417 (verify_gimple_label): New function.
12418 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12419 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12420 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12421 (verify_stmts): Rename to verify_gimple_in_cfg.
12422 (verify_gimple_in_cfg): New function.
12423 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12424 * tree-ssa.c (verify_ssa): Likewise.
12425 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12427 2011-03-25 Richard Guenther <rguenther@suse.de>
12429 * passes.c (init_optimization_passes): Add FRE pass after
12432 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
12433 Andrew Stubbs <ams@codesourcery.com>
12435 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12437 (arm_movdi_vfp_cortexa8): New pattern.
12438 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12439 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12440 instructions when tuning for Cortex-A8. Set attribute "arch".
12441 * config/arm/arm.md: Move include arm-tune.md up a bit.
12442 (define_attr "arch"): Add "onlya8" and "nota8" values.
12443 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12445 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12449 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12451 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12452 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12453 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12454 * passes.c (init_optimization_passes): Move
12455 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12457 2011-03-25 Kai Tietz <ktietz@redhat.com>
12459 * c-typeck.c (comptypes_internal): Replace target
12460 hook call of comp_type_attributes by version in tree.c file.
12461 * gimple.c (gimple_types_compatible_p_1): Likewise.
12462 * tree-ssa.c (useless_type_conversion_p): Likewise.
12463 * tree.c (build_type_attribute_qual_variant): Likewise.
12464 (attribute_value_equal): New static helper function.
12465 (comp_type_attributes): New function.
12466 (merge_attributes): Use attribute_value_equal for comparison.
12467 (attribute_list_contained): Likewise.
12468 * tree.h (comp_type_attributes): New prototype.
12470 2011-03-25 Richard Guenther <rguenther@suse.de>
12472 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12473 of complex types at -O0.
12474 (verify_gimple_assign_binary): Likewise.
12475 (verify_gimple_assign_ternary): Likewise.
12477 2011-03-24 Mark Wielaard <mjw@redhat.com>
12479 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12480 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12482 2011-03-24 Mark Wielaard <mjw@redhat.com>
12485 * dwarf2out.c (output_abbrev_section): Only write table when
12486 abbrev_die_table_in_use > 1.
12488 2011-02-24 Richard Henderson <rth@redhat.com>
12490 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
12491 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
12492 (alpha_expand_unaligned_load_words): Use extql.
12493 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
12494 (emit_insxl): Handle all modes for consistency.
12496 2011-02-24 Richard Henderson <rth@redhat.com>
12498 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
12499 (alpha_expand_unaligned_load): Likewise.
12500 (alpha_expand_unaligned_store): Likewise.
12501 (alpha_expand_unaligned_load_words): Likewise.
12502 (alpha_expand_unaligned_store_words): Likewise.
12503 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
12504 (alpha_split_lock_test_and_set_12): Likewise.
12505 (print_operand, alpha_fold_builtin_extxx): Likewise.
12506 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
12507 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
12508 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
12509 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
12510 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
12511 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
12512 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
12513 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
12514 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
12515 (extwl, extll, extql): Similarly.
12516 (inswh, inslh, insqh): Similarly.
12517 (mskbl, mskwl, mskll, mskql): Similarly.
12518 (mskwh, msklh, mskqh): Similarly.
12520 2011-02-24 Richard Henderson <rth@redhat.com>
12522 * config/alpha/alpha.md (attribute isa): Add er, ner.
12523 (attribute enabled): Handle them.
12524 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
12526 2011-02-24 Richard Henderson <rth@redhat.com>
12528 * config/alpha/alpha.md (attribute isa): Add vms.
12529 (attribute enabled): Handle it.
12530 (*movsf): Merge *movsf_{nofix,fix,nofp}.
12531 (*movdf): Merge *movdf_{nofix,fix,nofp}.
12532 (*movtf): Rename from *movtf_internal for consistency.
12533 (*movsi): Merge with *movsi_nt_vms.
12534 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12535 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12536 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12537 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12539 2011-02-24 Richard Henderson <rth@redhat.com>
12541 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12542 (extendqisi2, extendhisi2): Likewise.
12543 (extendqidi2): Simplify BWX/non-BWX expansions.
12544 (extendhidi2): Similarly.
12546 2011-02-24 Richard Henderson <rth@redhat.com>
12548 * config/alpha/alpha.md (attribute isa): New.
12549 (attribute enabled): New.
12550 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12551 (zero_extendqisi2, zero_extendqidi2): Similarly.
12552 (zero_extendhisi2, zero_extendhidi2): Similarly.
12553 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12555 2011-02-24 Richard Henderson <rth@redhat.com>
12557 * config/alpha/predicates.md (input_operand): Revert last change;
12558 update comment to mention 32-bit VMS rather than Windows.
12560 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12562 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12563 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12564 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12565 * passes.c (init_optimization_passes): Move
12566 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12568 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12570 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12572 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12574 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12577 2011-03-24 Jakub Jelinek <jakub@redhat.com>
12580 * simplify-rtx.c (simplify_const_unary_operation): Call
12581 real_convert when changing mode class with FLOAT_EXTEND.
12583 2011-03-24 Nick Clifton <nickc@redhat.com>
12585 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12586 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12587 * config/rx/rx.c (rx_option_override): Set align_jumps,
12588 align_loops and align_labels if not set by the user.
12589 (rx_align_for_label): New function.
12590 (rx_max_skip_for_label): New function.
12591 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12592 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12593 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12594 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12595 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12597 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12599 PR rtl-optimization/48263
12600 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12601 and original commutative_p handling. Use maybe_gen_insn.
12603 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12605 * reload.c (find_reloads_subreg_address): Add address_reloaded
12606 parameter and return true there if the full address has been
12608 (find_reloads_toplev): Pass address_reloaded flag.
12609 (find_reloads_address_1): Don't use address_reloaded parameter.
12611 2011-03-24 Jeff Law <law@redhat.com>
12613 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12614 unused variable "ann".
12615 (remove_unused_locals): Likewise.
12617 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12620 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12623 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12625 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12626 for invalid symbolic addresses.
12627 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12630 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12632 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12633 the argument in calls to fold_truth_not_expr.
12635 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12637 * tree.c (record_node_allocation_statistics): New function.
12638 (make_node_stat, copy_node_stat, build_string): Call it.
12639 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12640 (build1_stat, build_omp_clause): Likewise.
12642 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12644 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12647 2011-03-24 Richard Guenther <rguenther@suse.de>
12649 PR tree-optimization/48271
12650 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12651 blocks that still exist.
12653 2011-03-24 Richard Guenther <rguenther@suse.de>
12655 PR tree-optimization/48270
12656 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12657 not free datarefs before ddrs.
12659 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12661 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12662 from the address built for a reference with variable offset.
12664 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12667 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12668 alternatives that can be handled with movq or movabsq insn.
12669 (*movdf_internal): Disable for !TARGET_64BIT.
12670 (*movdf_internal_nointeger): Ditto.
12671 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12673 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12675 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12676 (FUNCTION_ARG_ADVANCE): Likewise.
12677 * tm.texi.in: Change references to them to hook references.
12678 * tm.texi: Regenerate.
12679 * targhooks.c (default_function_arg): Eliminate check for target macro.
12680 (default_function_incoming_arg): Likewise.
12681 (default_function_arg_advance): Likewise.
12682 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12683 (function_arg_advance): Likewise.
12684 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12686 2011-03-24 Richard Guenther <rguenther@suse.de>
12688 PR middle-end/48269
12689 * tree-object-size.c (addr_object_size): Do not double-account
12690 for MEM_REF offsets.
12692 2011-03-24 Diego Novillo <dnovillo@google.com>
12694 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12695 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12696 (lto_input_data_block): Move from lto-opts.c. Make extern.
12698 (lto_input_string): Rename from input_string. Make extern.
12700 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12701 output_string_with_length.
12702 Output 0 to indicate a non-NULL string. Update all callers to
12704 (lto_output_string): Rename from output_string. Make extern.
12706 (lto_output_decl_state_streams): Make extern.
12707 (lto_output_decl_state_refs): Make extern.
12708 * lto-streamer.h (lto_input_string): Declare.
12709 (lto_input_data_block): Declare.
12710 (lto_output_string): Declare.
12711 (lto_output_string_with_length): Declare.
12712 (lto_output_decl_state_streams): Declare.
12713 (lto_output_decl_state_refs): Declare.
12715 2011-03-24 Richard Guenther <rguenther@suse.de>
12717 PR tree-optimization/46562
12718 * tree.c (build_invariant_address): New function.
12719 * tree.h (build_invariant_address): Declare.
12720 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12721 a renamed function moved ...
12722 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12723 Take valueization callback parameter.
12724 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12725 * gimple-fold.h: New file.
12726 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12727 (ccp_fold, fold_const_aggregate_ref,
12728 fold_ctor_reference, fold_nonarray_ctor_reference,
12729 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12730 get_base_constructor): Move ...
12731 * gimple-fold.c: ... here.
12732 (gimple_fold_stmt_to_constant_1): New function
12733 split out from ccp_fold. Take a valueization callback parameter.
12734 Valueize all operands.
12735 (gimple_fold_stmt_to_constant): New wrapper function.
12736 (fold_const_aggregate_ref_1): New function split out from
12737 fold_const_aggregate_ref. Take a valueization callback parameter.
12738 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12739 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12740 invariant POINTER_PLUS_EXPRs to invariant form.
12741 (vn_valueize): New function.
12742 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12743 * tree-vrp.c (vrp_valueize): New function.
12744 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12745 to fold statements to constants.
12746 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12747 function declarations.
12748 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12749 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12751 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12753 * config/h8300/predicates.md (jump_address_operand): Fix register
12756 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12758 * doc/invoke.texi (max-stores-to-sink): Document.
12759 * params.h (MAX_STORES_TO_SINK): Define.
12760 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12761 if either vectorization or if-conversion is disabled.
12762 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12763 tree-vect-data-refs.c vect_equal_offsets.
12764 (dr_equal_offsets_p): New function.
12765 (find_data_references_in_bb): Remove static.
12766 * tree-data-ref.h (find_data_references_in_bb): Declare.
12767 (dr_equal_offsets_p): Likewise.
12768 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12769 (vect_drs_dependent_in_basic_block): Update calls to
12770 vect_equal_offsets.
12771 (vect_check_interleaving): Likewise.
12772 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12773 (cond_if_else_store_replacement): Rename to...
12774 (cond_if_else_store_replacement_1): ... this. Change arguments and
12776 (cond_if_else_store_replacement): New function.
12777 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12778 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12780 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12783 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12784 to subtract lower bound instead of GEN_INT().
12786 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12791 * doc/extend.texi (Alignment): Move section to match order in TOC.
12792 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12793 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12795 2011-03-23 Jeff Law <law@redhat.com>
12797 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12798 before removing the edge.
12800 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12801 it may have been freed by redirect_branch_edge or
12802 redirect_edge_succ_nodup.
12804 2011-03-23 Richard Guenther <rguenther@suse.de>
12806 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12807 (check_va_list_escapes): Likewise.
12808 (check_all_va_list_escapes): Likewise.
12810 2011-03-23 Richard Guenther <rguenther@suse.de>
12812 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12813 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12814 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12815 (alias.o): Likewise.
12816 (ipa-type-escape.o): Remove.
12817 (ipa-struct-reorg.o): Likewise.
12818 (GTFILES): Remove ipa-struct-reorg.c.
12819 * alias.c: Do not include ipa-type-escape.h.
12820 * tree-ssa-alias.c: Likewise.
12821 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12822 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12823 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12824 and ipa-type-escape passes.
12825 * tree-pass.h (pass_ipa_type_escape): Remove.
12826 (pass_ipa_struct_reorg): Likewise.
12827 * ipa-struct-reorg.h: Remove.
12828 * ipa-struct-reorg.c: Likewise.
12829 * ipa-type-escape.h: Likewise.
12830 * ipa-type-escape.c: Likewise.
12831 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12832 (--param struct-reorg-cold-struct-ratio): Likewise.
12833 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12834 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12835 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12837 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12839 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12840 cpu attribute value.
12841 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12842 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12843 * config/s390/s390.c (processor_flags_table): New constant array.
12844 (s390_handle_arch_option): Remove.
12845 (s390_handle_option): Remove s390_handle_arch_option invocations
12846 and OPT_mwarn_framesize_ handling.
12847 (s390_option_override): Remove s390_handle_arch_option invocation.
12848 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12850 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12851 * config/s390/s390.opt (s390_tune, s390_arch)
12852 (march=): Replace s390_arch_option enum and values with
12853 processor_type. Set variable name to s390_arch. Set
12854 initialization value.
12855 (mtune=): Replace s390_arch_option with processor_type. Set
12856 variable name to s390_tune. Set initialization value.
12858 2011-03-23 Julian Brown <julian@codesourcery.com>
12860 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12861 accesses which are not naturally aligned.
12863 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12866 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12868 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12870 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12871 parameter from "int" to "enum insn_code".
12872 (expand_operand_type): New enum.
12873 (expand_operand): New structure.
12874 (create_expand_operand): New function.
12875 (create_fixed_operand, create_output_operand): Likewise
12876 (create_input_operand, create_convert_operand_to): Likewise.
12877 (create_convert_operand_from, create_address_operand): Likewise.
12878 (create_integer_operand): Likewise.
12879 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12880 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12881 (expand_insn, expand_jump_insn): Likewise.
12882 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12883 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12884 (expand_movstr, expand_builtin___clear_cache): Likewise.
12885 (expand_builtin_lock_release): Likewise.
12886 * explow.c (allocate_dynamic_stack_space): Likewise.
12887 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12888 and use the default handling in that case.
12889 * expmed.c (check_predicate_volatile_ok): Delete.
12890 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12891 (emit_cstore): Likewise.
12892 * expr.c (emit_block_move_via_movmem): Likewise.
12893 (set_storage_via_setmem, expand_assignment): Likewise.
12894 (emit_storent_insn, try_casesi): Likewise.
12895 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12896 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12897 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12898 (expand_twoval_unop, expand_twoval_binop): Likewise.
12899 (expand_unop_direct, emit_indirect_jump): Likewise.
12900 (emit_conditional_move, vector_compare_rtx): Likewise.
12901 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12902 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12903 (expand_sync_lock_test_and_set): Likewise.
12904 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12905 (emit_unop_insn): Likewise.
12906 (expand_copysign_absneg): Change icode to an insn_code.
12907 (create_convert_operand_from_type): New function.
12908 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12909 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12910 (expand_insn, expand_jump_insn): Likewise.
12911 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12912 than const_int_operand for operand 2.
12914 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12916 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12919 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12921 * emit-rtl.c (emit_pattern_before_noloc): New function.
12922 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12923 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12924 (emit_pattern_after_noloc): New function.
12925 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12926 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12928 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12930 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12931 (__ffsDI2): Likewise.
12933 2011-03-22 Richard Henderson <rth@redhat.com>
12935 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12936 of !TARGET_ABI_OPEN_VMS.
12937 (alpha_trampoline_init, alpha_start_function): Likewise.
12938 (alpha_expand_epilogue, alpha_file_start): Likewise.
12939 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12940 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12941 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12942 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12943 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12945 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12947 * config/s390/s390-opts.h: New.
12948 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12949 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12950 s390_stack_guard): Remove.
12951 (s390_handle_arch_option): Return void. Take enum
12952 s390_arch_option value instead of string and searching array.
12953 (s390_handle_option): Don't assert that global structures are in
12954 use. Access variables via opts pointer. Use error_at. Don't use
12955 sscanf for -mstack-guard= or -mstack-size=. Update call to
12956 s390_handle_arch_option.
12957 (s390_option_override): Update call to s390_handle_arch_option.
12958 (s390_emit_prologue): Use %d format for s390_stack_size in
12959 diagnostic. Use %wd for HOST_WIDE_INT.
12960 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12961 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12962 * config/s390/s390.opt (config/s390/s390-opts.h): New
12963 HeaderInclude entry.
12964 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12965 s390_arch_flags, s390_warn_framesize): New Variable entries.
12966 (s390_arch_option): New Enum and EnumValue entries.
12967 (march=): Use Enum instead of Var.
12968 (mstack-guard=, mstack-size=): Use UInteger and Var.
12969 (mtune=): Use Enum.
12971 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12973 * config/score/score.c (score_handle_option): Don't assert that
12974 global structures are in use. Access target_flags via opts
12975 pointer. Use value of -march= option to determine target_flags
12977 * config/score/score.opt (march=): Use Enum.
12978 (score_arch): New Enum and EnumValue entries.
12980 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12982 * config/mep/mep.c (option_mtiny_specified): Remove.
12983 (mep_option_override): Move register handling for -mivc2 from
12984 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12985 instead of option_mtiny_specified.
12986 (mep_handle_option): Access target_flags via opts pointer. Don't
12987 assert that global structures are in use. Defer part of -mivc2
12988 handling and move it to mep_option_override.
12989 * config/mep/mep.opt (IVC2): New Mask entry.
12990 (mivc2): Use Var and Defer instead of Mask.
12992 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12994 * config/v850/v850-opts.h: New.
12995 * config/v850/v850.c (small_memory): Replace with
12996 small_memory_physical_max array. Make that array static const.
12997 (v850_handle_memory_option): Take integer value of argument. Take
12998 gcc_options pointer, option text and location. Return void.
12999 Update for changes to small memory structures.
13000 (v850_handle_option): Access target_flags via opts pointer. Don't
13001 assert that global structures are in use. Update calls to
13002 v850_handle_memory_option.
13003 (v850_encode_data_area): Update references to small memory settings.
13004 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13005 (enum small_memory_type): Move to v850-opts.h.
13006 * config/v850/v850.opt (config/v850/v850-opts.h): New
13007 HeaderInclude entry.
13008 (small_memory_max): New Variable entry.
13009 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13010 (mtda, mzda): Likewise.
13012 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13014 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13015 pointer. Don't assert that global structures are in use.
13017 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13019 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13020 via opts pointer. Don't assert that global structures are in use.
13022 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13024 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13025 (munix=93): Use Var.
13026 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13027 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13028 * config/pa/pa-opts.h: New.
13029 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13030 (pa_handle_option): Don't assert that global structures are in
13031 use. Access target_flags via opts pointer. Don't handle
13032 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13034 (pa_option_override): Handle deferred OPT_mfixed_range_.
13036 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13038 * config/mn10300/mn10300-opts.h: New.
13039 * config/mn10300/mn10300.c (mn10300_processor,
13040 mn10300_tune_string): Remove.
13041 (mn10300_handle_option): Don't assert that global structures are
13042 in use. Access mn10300_processor via opts pointer. Don't handle
13044 * config/mn10300/mn10300.h (enum processor_type): Move to
13046 (mn10300_processor): Remove.
13047 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13048 HeaderInclude entry.
13049 (mn10300_processor): New Variable entry.
13052 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13054 * config/microblaze/microblaze.c: Don't include opts.h.
13055 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13056 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13057 (mno-clearbss): Use Var and Warn.
13059 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13061 * config/m32r/m32r-opts.h: New.
13062 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13063 (m32r_handle_option): Don't assert that global structures are in
13064 use. Access target_flags and m32r_cache_flush_func via opts
13065 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13066 OPT_mno_flush_trap here.
13067 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13068 include of m32r-opts.h.
13069 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13070 HeaderInclude entry.
13071 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13072 (mmodel=): Use Enum and Var.
13073 (m32r_model): New Enum and EnumValue entries.
13074 (mno-flush-trap): Use Var.
13075 (msdata=): Use Enum and Var.
13076 (m32r_sdata): New Enum and EnumValue entries.
13078 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13080 * config/m32c/m32c.c: Don't include opts.h.
13081 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13082 m32c_handle_option): Remove.
13083 (m32c_option_override): Check global_options_set.x_target_memregs
13084 instead of target_memregs_set.
13085 * config/m32c/m32c.h (target_memregs): Remove.
13086 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13089 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13091 * config/iq2000/iq2000-opts.h: New.
13092 * config/iq2000/iq2000.c: Don't include opts.h.
13093 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13094 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13095 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13096 HeaderInclude entry.
13097 (iq2000_tune): New Variable entry.
13098 (march=): Add comment. Use Enum.
13099 (iq2000_arch): New Enum and EnumValue entries.
13100 (mcpu=): Use Enum and Var.
13101 (iq2000_tune): New Enum and EnumValue entries.
13103 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13105 * config/ia64/ia64-opts.h: New.
13106 * config/ia64/ia64.c (ia64_tune): Remove.
13107 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13108 here. Use error_at.
13109 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13110 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13111 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13112 HeaderInclude entry.
13113 (ia64_tune): New Variable entry.
13114 (mfixed-range=): Use Defer and Var.
13115 (mtune=): Use Enum and Var.
13116 (ia64_tune): New Enum and EnumValue entries.
13118 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13120 * config/frv/frv-opts.h: New.
13121 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13123 (frv_cpu_type): Remove.
13124 * config/frv/frv.c: Don't include opts.h.
13125 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13126 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13127 (frv_cpu_type): New Variable entry.
13128 (frv_cpu): New Enum and EnumValue entries.
13130 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13132 * config/cris/cris.c (cris_handle_option): Access target_flags via
13133 opts pointer. Don't assert that global structures are in use.
13134 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13135 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13137 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13139 * config/bfin/bfin-opts.h: New.
13140 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13141 bfin_si_revision, bfin_workarounds): Remove.
13142 (bfin_cpus): Make static const.
13143 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13144 not bfin_lib_id_given.
13145 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13146 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13147 pointer. Use error_at. Don't assert that global structures are in use.
13148 * config/bfin/bfin.h: Include bfin-opts.h.
13149 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13150 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13151 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13152 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13155 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13157 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13158 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13159 or -msoft-float here.
13160 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13161 -msoft-float and -mhard-float.
13162 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13163 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13165 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13167 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13168 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13170 (LIBGCC_SPEC): Don't handle -msoft-float.
13171 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13173 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13175 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13176 -mfloat-abi=*, not -msoft-float and -mhard-float.
13177 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13179 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13180 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13181 mhard-float and msoft-float.
13182 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13183 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13184 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13185 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13187 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13188 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13190 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13192 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13195 2011-03-22 Richard Henderson <rth@redhat.com>
13197 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13198 TARGET_ABI_WINDOWS_NT.
13199 (alpha_output_function_end_prologue): Likewise.
13200 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13201 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13202 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13203 (trap, *movsi_nt_vms): Likewise.
13204 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13205 (*tablejump_osf_nt_internal): Remove.
13206 * config/alpha/predicates.md (input_operand): Only test Pmode.
13208 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13210 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13211 via opts pointer. Use error_at. Don't assert that global
13212 structures are in use.
13214 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13216 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13217 (ix86_handle_option): Access ix86_isa_flags and
13218 ix86_isa_flags_explicit via opts pointer. Don't assert that
13219 global structures are in use.
13220 (ix86_function_specific_save, ix86_function_specific_restore):
13221 Update ix86_isa_flags_explicit field name.
13222 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13223 (ix86_isa_flags_explicit): Rename TargetSave entry to
13224 x_ix86_isa_flags_explicit.
13226 2011-03-22 Richard Henderson <rth@redhat.com>
13228 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13229 (alpha_option_override, direct_return): Likewise.
13230 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13231 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13232 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13233 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13234 (alpha_expand_epilogue, alpha_end_function): Likewise.
13235 (alpha_init_libfuncs): Likewise.
13236 (struct machine_function): Remove unicosmk members.
13237 (print_operand) ['t']: Remove.
13238 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13239 unicosmk_output_module_name, unicosmk_output_common,
13240 current_section_align, unicosmk_output_text_section_asm_op,
13241 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13242 unicosmk_section_type_flags, unicosmk_unique_section,
13243 unicosmk_asm_named_section, unicosmk_insert_attributes,
13244 unicosmk_output_align, unicosmk_defer_case_vector,
13245 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13246 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13247 unicosmk_output_ssib, unicosmk_add_call_info_word,
13248 unicosmk_extern_head, unicosmk_output_default_externs,
13249 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13250 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13251 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13252 * config/alpha/alpha-protos.h: Update.
13253 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13254 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13255 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13256 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13257 (*mulsi_se, mulvsi3): Likewise.
13258 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13259 (*divmodsi_internal, call, call_value, realign): Likewise.
13260 (moddi3, umoddi3): Likewise; remove duplicate expander.
13261 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13262 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13263 (*movdi_nofix): Remove r/U alternative.
13264 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13265 * config/alpha/constraints.md ("U"): Remove.
13266 * config/alpha/predicates.md (call_operand"): Don't test
13267 TARGET_ABI_UNICOSMK.
13269 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13271 * target.def (handle_option): Take gcc_options and
13272 cl_decoded_option pointers and location_t.
13273 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13274 * doc/tm.texi: Regenerate.
13275 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13276 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13277 * lto-opts.c (lto_reissue_options): Generate option structure for
13278 targetm.handle_option call.
13279 * opts.c (target_handle_option): Update call to
13280 targetm.handle_option. Remove assertions about values now passed
13282 * targhooks.c (default_target_handle_option): New.
13283 * targhooks.h (default_target_handle_option): Declare.
13284 * config/alpha/alpha.c: Include opts.h.
13285 (alpha_handle_option): Update to new hook interface.
13286 * config/arm/arm.c: Include opts.h.
13287 (arm_handle_option): Update to new hook interface.
13288 * config/arm/t-arm (arm.o): Update dependencies.
13289 * config/bfin/bfin.c: Include opts.h.
13290 (bfin_handle_option): Update to new hook interface.
13291 * config/cris/cris.c: Include opts.h.
13292 (cris_handle_option): Update to new hook interface.
13293 * config/frv/frv.c: Include opts.h.
13294 (frv_handle_option): Update to new hook interface.
13295 * config/i386/i386.c: Include opts.h.
13296 (ix86_handle_option): Update to new hook interface.
13297 (ix86_valid_target_attribute_inner_p): Generate option structure
13298 for call to ix86_handle_option.
13299 * config/i386/t-i386 (i386.o): Update dependencies.
13300 * config/ia64/ia64.c: Include opts.h.
13301 (ia64_handle_option): Update to new hook interface.
13302 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13303 * config/iq2000/iq2000.c: Include opts.h.
13304 (iq2000_handle_option): Update to new hook interface.
13305 * config/m32c/m32c.c: Include opts.h.
13306 (m32c_handle_option): Update to new hook interface.
13307 * config/m32r/m32r.c: Include opts.h.
13308 (m32r_handle_option): Update to new hook interface.
13309 * config/m68k/m68k.c: Include opts.h.
13310 (m68k_handle_option): Update to new hook interface.
13311 * config/mep/mep.c: Include opts.h.
13312 (mep_handle_option): Update to new hook interface.
13313 * config/microblaze/microblaze.c: Include opts.h.
13314 (microblaze_handle_option): Update to new hook interface.
13315 * config/mips/mips.c: Include opts.h.
13316 (mips_handle_option): Update to new hook interface.
13317 * config/mn10300/mn10300.c: Include opts.h.
13318 (mn10300_handle_option): Update to new hook interface.
13319 * config/pa/pa.c: Include opts.h.
13320 (pa_handle_option): Update to new hook interface.
13321 * config/pdp11/pdp11.c: Include opts.h.
13322 (pdp11_handle_option): Update to new hook interface.
13323 * config/rs6000/rs6000.c: Include opts.h.
13324 (rs6000_handle_option): Update to new hook interface.
13325 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13326 * config/rx/rx.c: Include opts.h.
13327 (rx_handle_option): Update to new hook interface.
13328 * config/s390/s390.c: Include opts.h.
13329 (s390_handle_option): Update to new hook interface.
13330 * config/score/score.c: Include opts.h.
13331 (score_handle_option): Update to new hook interface.
13332 * config/sh/sh.c: Include opts.h.
13333 (sh_handle_option): Update to new hook interface.
13334 * config/sparc/sparc.c: Include opts.h.
13335 (sparc_handle_option): Update to new hook interface.
13336 * config/v850/v850.c: Include opts.h.
13337 (v850_handle_option): Update to new hook interface.
13339 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13341 * gcc.c (driver_unknown_option_callback): Only permit and save
13342 unknown -Wno- options.
13343 (driver_wrong_lang_callback): Save options directly instead of via
13344 driver_unknown_option_callback.
13346 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13348 * combine.c (simplify_set): Try harder to find the best CC mode when
13349 simplifying a nested COMPARE on the RHS.
13351 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13353 * config/alpha/gnu.h: Remove.
13354 * config/arc: Remove directory.
13355 * config/arm/netbsd.h: Remove.
13356 * config/arm/t-pe: Remove.
13357 * config/crx: Remove directory.
13358 * config/i386/netbsd.h: Remove.
13359 * config/m68hc11: Remove directory.
13360 * config/m68k/uclinux-oldabi.h: Remove.
13361 * config/mcore/mcore-pe.h: Remove.
13362 * config/mcore/t-mcore-pe: Remove.
13363 * config/netbsd-aout.h: Remove.
13364 * config/rs6000/gnu.h: Remove.
13365 * config/sh/sh-symbian.h: Remove.
13366 * config/sh/symbian-base.c: Remove.
13367 * config/sh/symbian-c.c: Remove.
13368 * config/sh/symbian-cxx.c: Remove.
13369 * config/sh/symbian-post.h: Remove.
13370 * config/sh/symbian-pre.h: Remove.
13371 * config/sh/t-symbian: Remove.
13372 * config/svr3.h: Remove.
13373 * config/vax/netbsd.h: Remove.
13374 * config.build: Don't handle i[34567]86-*-pe.
13375 * config.gcc: Remove handling of deprecations for most deprecated
13377 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13378 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13379 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13380 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13381 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13382 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13384 * config.host: Don't handle i[34567]86-*-pe.
13385 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13386 (ASM_SPEC32): Don't handle -mcall-gnu.
13387 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13389 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13390 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13391 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13392 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13393 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13394 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13395 conditional on SYMBIAN.
13396 * configure.ac: Don't handle powerpc*-*-gnu*.
13397 * configure: Regenerate.
13398 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13399 * doc/install-old.texi (m6811, m6812): Don't mention.
13400 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13401 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13402 (m68k-uclinuxoldabi): Don't mention.
13403 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13405 (-mcall-gnu): Remove.
13406 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13407 families): Remove constraint documentation.
13409 2011-03-22 Marius Strobl <marius@FreeBSD.org>
13411 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13412 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13413 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13415 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13418 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13419 vector when peeking at the next token for vector, don't expand the
13422 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
13424 * config/avr/avr-protos.h (expand_epilogue): Change prototype
13425 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13426 * config/avr/avr.c (init_cumulative_args)
13427 (avr_function_arg_advance): Use it.
13428 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13430 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13431 (avr_function_ok_for_sibcall): ...this new function.
13432 (avr_lookup_function_attribute1): New static Function.
13433 (avr_naked_function_p, interrupt_function_p)
13434 (signal_function_p, avr_OS_task_function_p)
13435 (avr_OS_main_function_p): Use it.
13436 * config/avr/avr.md ("sibcall", "sibcall_value")
13437 ("sibcall_epilogue"): New expander.
13438 ("*call_insn", "*call_value_insn"): New insn.
13439 ("call_insn", "call_value_insn"): Remove
13440 ("call", "call_value", "epilogue"): Change expander to handle
13443 2011-03-21 Nick Clifton <nickc@redhat.com>
13445 * doc/invoke.texi (Overall Options): Move closing brace to end of
13447 (Optimization Options): Add missing @gol.
13448 (Directory Options): Likewise.
13449 (i386 and x86-64 Options): Likewise.
13450 (RS6000 and PowerPC Options): Likewise.
13451 (i386 and x86-64 Windows Options): Likewise.
13452 (V850 Options): Add text missing from descriptions.
13454 2011-03-22 Richard Henderson <rth@redhat.com>
13456 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13457 (avr_incoming_return_addr_rtx): New.
13458 (emit_push_byte): New.
13459 (expand_prologue): Use it. Remove incorrect dwarf annotation for
13460 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
13461 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
13462 (emit_pop_byte): New.
13463 (expand_epilogue): Use it. Pop frame pointer by bytes.
13464 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13465 (INCOMING_RETURN_ADDR_RTX): New.
13466 (INCOMING_FRAME_SP_OFFSET): New.
13467 (ARG_POINTER_CFA_OFFSET): New.
13468 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13469 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13472 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13474 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13476 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13477 (FUNCTION_ARG_ADVANCE): Likewise.
13478 * tm.texi.in: Change references to them to hook references.
13479 * tm.texi: Regenerate.
13480 * targhooks.c (default_function_arg): Eliminate check for target
13482 (default_function_incoming_arg): Likewise.
13483 (default_function_arg_advance): Likewise.
13484 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13485 (function_arg_advance): Likewise.
13486 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13488 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13490 * tree.c (build_call_1): New function.
13491 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
13493 2011-03-22 Richard Guenther <rguenther@suse.de>
13495 PR tree-optimization/48228
13496 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
13497 for single-arg PHIs.
13499 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
13501 PR rtl-optimization/48143
13502 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
13503 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
13504 sse2_cvtps2pd): Likewise.
13506 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13508 * recog.c (canonicalize_change_group): Use validate_unshare_change.
13510 2011-03-22 Richard Guenther <rguenther@suse.de>
13512 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
13513 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
13514 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
13515 and REALIGN_LOAD_EXPR.
13516 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
13517 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
13518 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
13519 DOT_PROD_EXPR case ...
13520 (expand_expr_real_2): ... here.
13521 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
13522 and REALIGN_LOAD_EXPR.
13523 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
13524 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
13525 (vect_create_epilog_for_reduction): Likewise.
13526 (vectorizable_reduction): Likewise.
13527 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
13528 * tree-vect-stmts.c (vectorizable_load): Likewise.
13530 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13532 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13534 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13536 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13537 handling for PLTOFF/GOTOFF.
13539 2011-03-22 Nick Clifton <nickc@redhat.com>
13541 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13542 trailing backslash from the end of the macro definition.
13544 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13546 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13549 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13551 * expr.h (prepare_operand): Move to...
13552 * optabs.h (prepare_operand): ...here and change the insn code
13553 parameter from "int" to "enum insn_code".
13554 (insn_operand_matches): Declare.
13555 * expr.c (init_expr_target): Use insn_operand_matches.
13556 (compress_float_constant): Likewise.
13557 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13558 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13559 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13560 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13562 (gen_cond_trap): Likewise.
13563 (prepare_operand): Likewise. Change icode to an insn_code.
13564 (insn_operand_matches): New function.
13565 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13566 * reload1.c (gen_reload): Likewise.
13567 * targhooks.c (default_secondary_reload): Likewise.
13569 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13571 * config/alpha/alpha.md (unspec): New define_c_enum.
13574 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13577 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13578 between a call and its CALL_ARG_LOCATION note.
13580 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13582 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13584 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13588 * c-common.c (shorten_compare): If primopN is first sign-extended
13589 to opN and then zero-extended to result type, set primopN to opN.
13591 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13593 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13594 for barrier handlers.
13596 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13598 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13599 UNSPEC constants to be in the unspec enumeration, and redefine
13600 all UNSPECV constants to be in the unspecv enumeration, so that
13601 dumps print which unspec/unspec_volatile this is.
13602 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13603 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13604 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13605 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13606 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13608 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13609 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13610 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13611 * config/rs6000/sync.md (isync, lwsync): Ditto.
13613 2011-03-21 Richard Guenther <rguenther@suse.de>
13615 * params.def (lto-min-partition): Fix typo.
13617 2011-03-21 Richard Guenther <rguenther@suse.de>
13620 * c-decl.c (grokdeclarator): Drop to the main variant only
13621 for array types. Drop flag_gen_aux_info check.
13623 2011-03-21 Richard Guenther <rguenther@suse.de>
13625 PR translation/47911
13626 * params.def (lto-partitions): Fix typo.
13627 (lto-min-partition): Fix wording.
13629 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13631 * config/rs6000/t-freebsd: Remove duplication from file.
13633 2011-03-21 Richard Guenther <rguenther@suse.de>
13635 PR middle-end/47661
13636 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13638 2011-03-21 Richard Guenther <rguenther@suse.de>
13641 * params.def (lto-partitions): Require at least 1 partition.
13643 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13645 * gthr-solaris.h: Remove.
13646 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13647 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13648 (LIB_SPEC): Likewise.
13649 * config/sol2.opt (threads): Remove.
13650 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13651 (sparc*-*-solaris2*): Likewise.
13652 * configure.ac (enable_threads): Enable solaris support.
13653 * configure: Regenerate.
13654 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13655 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13658 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13660 * config.gcc: Obsolete *-*-solaris2.8*.
13661 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13663 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13666 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13667 reference. Solaris 8 perl works.
13669 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13672 * doc/install.texi (Prerequisites): Move jar etc. up.
13673 Explain support library version requirements.
13675 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13678 * doc/install.texi (Prerequisites): Move Perl to build
13679 requirements. Always necessary on Solaris 2 with Sun ld.
13681 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13683 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13685 (Specific, i?86-*-solaris2.[89]): Likewise.
13686 (Specific, i?86-*-solaris2.10): Likewise.
13687 (Specific, mips-sgi-irix6): Likewise.
13688 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13689 Update for binutils 2.21.
13691 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13693 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13694 Allow -fuse-linker-plugin for non-default plugin linker.
13695 * configure: Regenerate.
13697 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13700 * gengtype.c (files_rules): Added rule for cp/parser.h.
13702 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13705 * config/s390/s390.c (s390_delegitimize_address): Don't call
13706 lowpart_subreg if orig_x has BLKmode.
13708 2011-03-21 Kai Tietz <ktietz@redhat.com>
13711 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13712 * tree.h (attribute_spec): Add new member affects_type_identity.
13713 * attribs.c (empty_attribute_table): Adjust attribute_spec
13715 * config/alpha/alpha.c: Likewise.
13716 * config/arc/arc.c: Likewise.
13717 * config/arm/arm.c: Likewise.
13718 * config/avr/avr.c: Likewise.
13719 * config/bfin/bfin.c: Likewise.
13720 * config/crx/crx.c: Likewise.
13721 * config/darwin.h: Likewise.
13722 * config/h8300/h8300.c: Likewise.
13723 * config/i386/cygming.h: Likewise.
13724 * config/i386/i386.c: Likewise.
13725 * config/ia64/ia64.c: Likewise.
13726 * config/m32c/m32c.c: Likewise.
13727 * config/m32r/m32r.c: Likewise.
13728 * config/m68hc11/m68hc11.c: Likewise.
13729 * config/m68k/m68k.c: Likewise.
13730 * config/mcore/mcore.c: Likewise.
13731 * config/mep/mep.c: Likewise.
13732 * config/microblaze/microblaze.c: Likewise.
13733 * config/mips/mips.c: Likewise.
13734 * config/rs6000/rs6000.c: Likewise.
13735 * config/rx/rx.c: Likewise.
13736 * config/sh/sh.c: Likewise.
13737 * config/sol2.h: Likewise.
13738 * config/sparc/sparc.c: Likewise.
13739 * config/spu/spu.c: Likewise.
13740 * config/stormy16/stormy16.c: Likewise.
13741 * config/v850/v850.c: Likewise.
13743 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13745 * simplify-rtx.c (simplify_binary_operation_1): Handle
13746 (xor (and A B) C) case when B and C are both constants.
13748 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13750 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13752 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13755 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13757 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13759 PR rtl-optimization/48156
13760 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13761 assume df and df_lr are not NULL.
13763 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13766 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13767 between a call and its CALL_ARG_LOCATION note.
13769 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13772 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13773 between a call and its corresponding CALL_ARG_LOCATION note.
13775 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13777 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13778 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13779 * haifa-sched.c (setup_ref_regs): Ditto.
13780 * caller-save.c (add_used_regs_1): Ditto.
13781 * dse.c (look_for_hardregs): Ditto.
13782 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13783 * sched-rgn.c (check_live_1): Ditto.
13785 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13787 * c-decl.c (diagnose_mismatched_decls): Give an error for
13788 redefining a typedef with variably modified type.
13790 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13792 * c-decl.c (grokfield): Don't allow typedefs for structures or
13793 unions with no tag by default.
13794 * doc/extend.texi (Unnamed Fields): Update.
13796 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13798 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13799 Rewrite using indirect functions.
13800 (lwp_slwpcb): Ditto.
13801 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13802 (avx_vinsertf128<mode>): Ditto.
13804 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13806 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13809 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13811 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13812 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13814 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13816 PR rtl-optimization/48170
13817 * gcse.c (hoist_code): Remove bogus asserts.
13819 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13821 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13822 computation for prologue/epilogue.
13824 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13826 * Makefile.in (check-consistency): Remove.
13828 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13831 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13832 arange_table_in_use is 0, but either text_section_used or
13833 cold_text_section_used is true. Don't call it if
13834 !info_section_emitted.
13836 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13838 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13839 FUNCTION_VALUE_REGNO_P): Remove.
13840 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13842 * config/avr/avr.c (avr_ret_register): Make static inline.
13843 (avr_function_value_regno_p): New function.
13844 (avr_libcall_value): Make static. Add 'func' argument.
13845 (avr_function_value): Make static. Rename 'func' argument to
13846 'fn_decl_or_type', forward it to avr_libcall_value. Call
13847 avr_ret_register function instead of RET_REGISTER macro.
13848 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13850 2011-03-18 Jason Merrill <jason@redhat.com>
13853 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13855 2011-03-18 Richard Guenther <rguenther@suse.de>
13857 * doc/install.texi (--enable-gold): Remove.
13858 (--with-plugin-ld): Document.
13859 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13861 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13863 PR middle-end/47790
13864 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13865 again after expansion changes.
13867 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13869 * combine.c (try_combine): Do simplification only call of
13870 subst() on i2 even when i1 is present. Update comments.
13872 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13874 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13875 and UNSPEC_PCREL_SYMOFF.
13877 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13879 * config/s390/s390.md: Use define_c_enum for the unspec constant
13882 2011-03-18 Richard Henderson <rth@redhat.com>
13883 Jakub Jelinek <jakub@redhat.com>
13886 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13887 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13889 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13891 PR middle-end/47725
13892 * combine.c (cant_combine_insn_p): Don't check zero/sign
13893 extended hard registers.
13895 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13897 PR middle-end/47725
13898 * combine.c (cant_combine_insn_p): Check zero/sign extended
13901 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13903 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13904 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13905 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13906 Change return type to bool.
13907 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13909 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13912 * var-tracking.c (prepare_call_arguments): If CALL target
13913 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13914 pc instead of looking it up using cselib_lookup and use
13915 Pmode for it if x has VOIDmode.
13916 * dwarf2out.c (gen_subprogram_die): If also both first and
13917 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13920 * function.c (assign_parms): For data.passed_pointer parms
13921 use MEM of data.entry_parm instead of data.entry_parm itself
13922 as DECL_INCOMING_RTL.
13923 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13924 also when passed and declared mode is the same, DECL_RTL
13925 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13928 2011-03-16 Jeff Law <law@redhat.com>
13930 PR rtl-optimization/37273
13931 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13932 handle them like argument loads from stack slots. Do not double
13933 count memory for memory constants and argument loads from stack slots.
13935 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13938 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13940 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13943 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13945 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13948 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13950 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13951 Clear call_arg_locations and call_arg_loc_last always.
13953 PR middle-end/48152
13954 * var-tracking.c (prepare_call_arguments): If argument needs to be
13955 passed by reference, adjust argtype and mode.
13957 2011-03-17 Richard Guenther <rguenther@suse.de>
13959 PR middle-end/48134
13960 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13961 a value make sure to fold the statement.
13963 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13966 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13967 return condition with !cfun->calls_alloca.
13969 2011-03-17 Richard Guenther <rguenther@suse.de>
13972 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13973 origin for decls in other ltrans units.
13974 (input_varpool_node): Likewise.
13976 2011-03-17 Richard Guenther <rguenther@suse.de>
13978 PR middle-end/48165
13979 * tree-object-size.c (compute_object_offset): Properly return
13980 the offset operand of MEM_REFs as sizetype.
13982 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13984 PR rtl-optimization/48141
13985 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13986 * dse.c: Include params.h.
13987 (active_local_stores_len): New variable.
13988 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13990 (record_store, check_mem_read_rtx): Decrease it when removing
13992 (scan_insn): Likewise. Increase it when adding to chain, if it
13993 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13994 set active_local_stores to NULL before the addition.
13995 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13997 PR rtl-optimization/48141
13998 * dse.c (record_store): If no positions are needed in an insn
13999 that cannot be deleted, at least unchain it from active_local_stores.
14001 2011-03-16 Dodji Seketeli <dodji@redhat.com>
14004 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14005 (lookup_type_die_strip_naming_typedef): ... here.
14006 (get_context_die): Use it.
14007 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14008 the anonymous struct named by the naming typedef.
14010 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14013 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14014 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14016 2011-03-16 Jeff Law <law@redhat.com>
14018 * tree-vrp.c (identify_jump_threads): Slightly simplify type
14019 check for operands of conditional. Allow type to be a pointer.
14021 2011-03-16 Richard Guenther <rguenther@suse.de>
14023 PR tree-optimization/48149
14024 * fold-const.c (fold_binary_loc): Fold
14025 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14027 2011-03-16 Richard Guenther <rguenther@suse.de>
14029 PR tree-optimization/26134
14030 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14031 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14032 (non_rewritable_mem_ref_base): Handle complex type component
14033 accesses, constrain offsets for vector and complex extracts
14036 2011-03-16 Richard Guenther <rguenther@suse.de>
14038 PR tree-optimization/48146
14039 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14040 operands avoiding the need for renaming.
14042 2011-03-16 Richard Guenther <rguenther@suse.de>
14044 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14045 constant folding. Move MEM_REF canonicalization first.
14046 Rely on fold_const_aggregate_ref for initializer folding.
14047 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14049 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14051 PR middle-end/48136
14052 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14053 arg0/arg1 or their arguments are always fold converted to matching
14056 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14059 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14062 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14063 Handle in-tree gold.
14064 (ld_vers): Extract binutils version for gold.
14065 (gcc_cv_ld_hidden): Handle gold here.
14066 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14067 * configure: Regenerate.
14068 * config.in: Regenerate.
14069 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14070 -fuse-linker-plugin otherwise.
14071 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14072 (LINK_COMMAND_SPEC): Use it.
14073 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14075 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14077 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14078 * calls.c: Remove debug.h include.
14079 (emit_call_1): Don't call virtual_call_token debug hook.
14080 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14081 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14082 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14083 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14084 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14085 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14086 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14087 dwarf2out_virtual_call): Remove.
14088 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14089 copy_call_info and virtual_call hooks.
14090 (dwarf2out_init): Don't initialize vcall_insn_table,
14091 debug_dcall_section and debug_vcall_section.
14092 (prune_unused_types): Don't mark nodes from dcall_table.
14093 (dwarf2out_finish): Don't output dcall or vcall tables.
14094 * final.c (final_scan_insn): Don't call direct_call or
14095 virtual_call debug hooks.
14096 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14097 virtual_call_token, copy_call_info and virtual_call hooks.
14098 (debug_nothing_uid): Remove prototype.
14099 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14100 copy_call_info and virtual_call hooks.
14101 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14102 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14103 * debug.c (do_nothing_debug_hooks): Likewise.
14104 (debug_nothing_uid): Remove.
14105 * doc/invoke.texi (-fenable-icf-debug): Remove.
14106 * common.opt (-fenable-icf-debug): Likewise.
14108 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14109 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14110 call's MEM. Handle functions returning aggregate through a hidden
14111 first pointer. For virtual calls add clobbered pc to call arguments
14113 * dwarf2out.c (gen_subprogram_die): Emit
14114 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14118 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14119 * rtl.h (ENTRY_VALUE_EXP): Define.
14120 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14121 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14122 * print-rtl.c (print_rtx): Likewise.
14123 * gengtype.c (adjust_field_rtx_def): Likewise.
14124 * var-tracking.c (vt_add_function_parameter): Adjust
14125 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14126 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14127 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14128 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14129 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14131 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14132 Call var_location debug hook even on CALL_INSNs.
14133 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14134 * rtl.def (ENTRY_VALUE): New.
14135 * dwarf2out.c: Include cfglayout.h.
14136 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14137 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14138 (struct call_arg_loc_node): New type.
14139 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14140 tail_call_site_count): New variables.
14141 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14142 DW_TAG_GNU_call_site_parameter.
14143 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14144 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14145 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14146 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14147 and DW_AT_GNU_all_source_call_sites.
14148 (mem_loc_descriptor): Handle ENTRY_VALUE.
14149 (add_src_coords_attributes): Don't add enything if
14150 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14151 (dwarf2out_abstract_function): Save and clear call_arg_location,
14152 call_site_count and tail_call_site_count around dwarf2out_decl call.
14153 (gen_call_site_die): New function.
14154 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14155 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14156 (dwarf2out_function_decl): Clear call_arg_locations,
14157 call_arg_loc_last, set call_site_count and tail_call_site_count
14158 to -1 and free block_map.
14159 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14160 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14161 followed by any real instructions.
14162 (dwarf2out_begin_function): Set call_site_count and
14163 tail_call_site_count to 0.
14164 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14165 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14166 attempt to force a DIE for it and worst case remove the attribute.
14167 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14168 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14170 * var-tracking.c: Include tm_p.h.
14171 (vt_stack_adjustments): For calls call note_register_arguments.
14172 (argument_reg_set): New variable.
14173 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14174 ensure the VALUE is resolved.
14175 (call_arguments): New variable.
14176 (prepare_call_arguments): New function.
14177 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14178 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14179 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14180 always use the best expression.
14181 (vt_expand_loc): Add ignore_cur_loc argument.
14182 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14183 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14184 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14185 note for all calls.
14186 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14187 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14188 argument. Don't call cselib_preserve_only_values and
14189 cselib_reset_table.
14190 (note_register_arguments): New function.
14191 (vt_initialize): Compute argument_reg_set. Call
14192 vt_add_function_parameters before processing basic blocks instead of
14193 afterwards. For calls call prepare_call_arguments before calling
14194 cselib_process_insn.
14195 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14196 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14197 (var-tracking.o): Depend on $(TM_P_H).
14198 * cfglayout.h (insn_scope): New prototype.
14199 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14200 * cfglayout.c (insn_scope): No longer static.
14201 * insn-notes.def (CALL_ARG_LOCATION): New.
14202 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14203 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14204 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14205 nothing for DECL_EXTERNAL BLOCK_VARS.
14207 2011-03-16 Alan Modra <amodra@gmail.com>
14210 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14211 create invalid offset address for vsx splat insn.
14212 * config/rs6000/predicates.md (splat_input_operand): New.
14213 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14215 2011-03-15 Xinliang David Li <davidxl@google.com>
14218 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14219 (normalize_preds): New function.
14220 (is_use_properly_guarded): Normalize def predicates.
14222 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14225 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14226 in the output template.
14228 2011-03-15 Richard Guenther <rguenther@suse.de>
14230 PR middle-end/47650
14231 * tree-pretty-print.c (dump_function_declaration): Properly
14232 dump unprototyped and varargs function types.
14234 2011-03-15 Richard Guenther <rguenther@suse.de>
14236 PR tree-optimization/13954
14237 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14240 2011-03-15 Richard Guenther <rguenther@suse.de>
14242 PR tree-optimization/48037
14243 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14244 selects into BIT_FIELD_REFs.
14245 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14248 2011-03-15 Jakub Jelinek <jakub@redhat.com>
14250 PR tree-optimization/48129
14251 * builtins.c (fold_builtin_snprintf): Convert to type of
14252 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14253 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14255 2011-03-15 Richard Guenther <rguenther@suse.de>
14257 PR tree-optimization/41490
14258 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14259 value but with VUSE.
14260 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14262 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14263 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14264 * tree-tailcall.c (find_tail_calls): Ignore returns.
14266 2011-03-15 Richard Guenther <rguenther@suse.de>
14268 PR middle-end/48031
14269 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14270 or variable-indexed array accesses when in gimple form.
14272 2011-03-15 Richard Guenther <rguenther@suse.de>
14274 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14276 2011-03-15 Alan Modra <amodra@gmail.com>
14279 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14280 presume symbol_refs without a symbol_ref_decl are suitably
14281 aligned, nor other trees we may see here. Handle anchor symbols.
14282 (legitimate_constant_pool_address_p): Comment. Add mode param.
14283 Check cmodel=medium addresses. Adjust all calls.
14284 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14285 creating cmodel=medium optimized access to locals.
14286 * config/rs6000/constraints.md (R): Pass QImode to
14287 legitimate_constant_pool_address_p.
14288 * config/rs6000/predicates.md (input_operand): Pass mode to
14289 legitimate_constant_pool_address_p.
14290 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14293 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14296 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14297 64-bit constants being loaded into registers other than GPRs such
14298 as loading 0 into a VSX register.
14300 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14302 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14304 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14306 PR middle-end/47917
14307 * builtins.c (fold_builtin_snprintf): New function.
14308 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14309 (fold_builtin_4): Likewise.
14311 PR middle-end/38878
14312 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14313 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14314 and C - X == X also strip nops from +/-/p+ operand.
14315 When optimizing -X == C, fold C to arg0's type.
14318 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14319 emit it as add_AT_int instead of add_AT_unsigned.
14321 2011-03-14 Tom Tromey <tromey@redhat.com>
14323 * unwind-dw2.c: Include sys/sdt.h if it exists.
14324 (_Unwind_DebugHook): Use STAP_PROBE2.
14325 * config.in, configure: Rebuild.
14326 * configure.ac: Check for sys/sdt.h.
14328 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
14330 * config/i386/i386.md (ROUND_FLOOR): New constant.
14331 (ROUND_CEIL): Ditto.
14332 (ROUND_TRUNC): Ditto.
14333 (ROUND_MXCSR): Ditto.
14334 (ROUND_NO_EXC): Ditto.
14335 (rint<mode>2): Use new defines instead of numerical constants.
14336 (floor<mode>2): Ditto.
14337 (ceil<mode>2): Ditto.
14338 (btrunc<mode>2): Ditto.
14339 * config/i386/i386-builtin-types.def: Define ROUND function type
14341 * config/i386/i386.c (enum ix86_builtins): Add
14342 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14343 (struct builtin_description): Add
14344 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14345 (ix86_expand_sse_round): New static function.
14346 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14348 (ix86_builtin_vectorized_function): Handle
14349 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14351 2011-03-14 Tom Tromey <tromey@redhat.com>
14353 * c-parser.c (c_parser_asm_string_literal): Clear
14354 warn_overlength_strings.
14356 2011-03-14 Tom Tromey <tromey@redhat.com>
14358 * c-parser.c (disable_extension_diagnostics): Save
14359 warn_overlength_strings.
14360 (restore_extension_diagnostics): Restore warn_overlength_strings.
14362 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14364 * BASE-VER: Change to 4.7.0.
14366 2011-03-14 Richard Guenther <rguenther@suse.de>
14368 PR middle-end/48098
14369 * tree.c (build_vector_from_val): Adjust assert to requirements
14372 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14375 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14377 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
14379 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14380 terms of target_flags_explicit. Adjust copyright year.
14382 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14383 * config/rs6000/t-freebsd: New file. Add override for
14386 2011-03-13 Chris Demetriou <cgd@google.com>
14388 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14389 (-fno-diagnostics-show-option): this, to reflect current default.
14390 (-Werror=): Update text about -fno-diagnostics-show-option.
14392 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14395 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14396 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14397 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14398 mode is not V2DImode or V2DFmode.
14399 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14400 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14401 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14403 (movdi_internal64): Likewise.
14405 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14407 PR tree-optimization/47127
14408 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14410 (set_cloog_options): Same.
14411 (scop_to_clast): Same.
14412 (print_clast_stmt): Do not call cloog_state_malloc and
14414 (print_generated_program): Same.
14416 * graphite-clast-to-gimple.h (cloog_state): Declared.
14417 (scop_to_clast): Adjust declaration.
14418 * graphite.c (cloog_state): Defined here.
14419 (graphite_initialize): Call cloog_state_malloc.
14420 (graphite_finalize): Call cloog_state_free.
14422 2011-03-11 Jason Merrill <jason@redhat.com>
14424 * attribs.c (lookup_attribute_spec): Take const_tree.
14427 2011-03-11 Joseph Myers <joseph@codesourcery.com>
14429 * config/sparc/sparc.c (sparc_option_override): Use
14430 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14432 2011-03-11 Richard Guenther <rguenther@suse.de>
14434 PR tree-optimization/48067
14435 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14436 multiplication result will be only used once on the target
14439 2011-03-11 Richard Guenther <rguenther@suse.de>
14441 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14443 2011-03-11 Richard Guenther <rguenther@suse.de>
14446 * tree.c (find_decls_types_r): Do not walk types only reachable
14447 from IDENTIFIER_NODEs.
14449 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14451 PR middle-end/48044
14452 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14453 all vnode->force_output nodes as needed.
14455 2011-03-11 Jason Merrill <jason@redhat.com>
14458 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14459 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14461 2011-03-11 Martin Jambor <mjambor@suse.cz>
14463 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14466 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14468 PR tree-optimization/48063
14469 * ipa-inline.c (cgraph_decide_inlining): Don't try to
14470 inline functions called once if !tree_can_inline_p (node->callers).
14472 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
14474 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14476 * config/score/score3.c: Delete.
14477 * config/score/score3.h: Delete.
14478 * config/score/mul-div.S: Delete.
14479 * config/score/sfp-machine.h: Add new file.
14480 * config/score/constraints.md: Add new file.
14481 * config/score/t-score-softfp: Add new file.
14482 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
14483 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
14484 (score7_extra_constraint): Delete.
14485 (score7_option_override): Remove unused code.
14486 * config/score/score.c: Remove score3 and score5 define and code.
14487 * config/score/score.h: Remove score3 and score5 define and code.
14488 * config/score/score.md: Remove score3 template and unusual insn.
14489 * config/score/score.opt: Remove score3 and score5 options.
14491 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14493 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
14494 when _HPUX_SOURCE is defined.
14495 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
14497 2011-03-10 Jason Merrill <jason@redhat.com>
14500 * stor-layout.c (layout_type): Don't set structural equality
14501 on arrays of incomplete type.
14502 * tree.c (type_hash_eq): Handle comparing them properly.
14504 2011-03-10 Jakub Jelinek <jakub@redhat.com>
14507 * config/s390/s390.c (s390_delegitimize_address): Make sure the
14508 result mode matches original rtl mode.
14510 2011-03-10 Nick Clifton <nickc@redhat.com>
14512 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
14513 (andsi3, andsi3_flags): Fix timings for three operand alternative.
14515 2011-03-09 Jakub Jelinek <jakub@redhat.com>
14517 PR rtl-optimization/47866
14518 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
14519 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
14520 if target wasn't scalar.
14521 * function.c (assign_stack_temp_for_type): Assert that neither
14522 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
14523 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
14525 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
14527 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14529 * config/s390/s390-protos.h (s390_label_align): New prototype.
14530 * config/s390/s390.c (s390_label_align): New function.
14531 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
14533 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14536 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14537 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14538 (output_vec_const_move): Ditto.
14540 2011-03-08 Anatoly Sokolov <aesok@post.ru>
14542 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14543 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14544 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14545 Change 'rclass' argument and result type to reg_class_t.
14546 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14548 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
14550 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14551 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14552 (TARGET_MEMORY_MOVE_COST): Define.
14553 (avr_register_move_cost, avr_memory_move_cost): New Functions.
14555 2011-03-08 Jakub Jelinek <jakub@redhat.com>
14558 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14561 PR tree-optimization/48022
14562 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14565 2011-03-07 Jakub Jelinek <jakub@redhat.com>
14568 * var-tracking.c (find_use_val): Return NULL for
14569 cui->sets && cui->store_p BLKmode MEMs.
14571 2011-03-07 Anatoly Sokolov <aesok@post.ru>
14573 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14575 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14576 xstormy16_print_operand_address): Remove.
14577 * config/stormy16/stormy16.c (xstormy16_print_operand,
14578 xstormy16_print_operand_address): Make static.
14579 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14581 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
14584 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14585 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14588 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
14591 * cfgloopmanip.c (fix_bb_placements): Return immediately
14592 if FROM is BASE_LOOP's header.
14594 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14596 * gimplify.c (gimplify_function_tree): Fix building calls
14597 to __builtin_return_address.
14599 2011-03-07 Alan Modra <amodra@gmail.com>
14601 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14602 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14603 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14604 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14606 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14607 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14608 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14609 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14610 * config/rs6000/rs6000.c
14611 (rs6000_elf_end_indicate_exec_stack): Rename to..
14612 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14613 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14614 (rs6000_file_start): ..here.
14615 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14616 file scope variables.
14617 (call_ABI_of_interest): New function.
14618 (init_cumulative_args): Set above vars when function return value
14619 is a float, vector, or small struct.
14620 (rs6000_function_arg_advance_1): Likewise for function args.
14621 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14622 references float args.
14624 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14626 * doc/cfg.texi: Remove "See" before @ref.
14627 * doc/invoke.texi: Likewise.
14629 2011-03-05 Jason Merrill <jason@redhat.com>
14631 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14633 2011-03-05 Anthony Green <green@moxielogic.com>
14635 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14637 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14639 PR rtl-optimization/47899
14640 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14641 to flow_loop_nested_p when moving the loop upward.
14643 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14646 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14648 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14650 PR tree-optimization/47967
14651 * ipa-cp.c (build_const_val): Return NULL instead of creating
14652 VIEW_CONVERT_EXPR for mismatching sizes.
14653 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14654 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14655 give up on versioning.
14657 2011-03-05 Alan Modra <amodra@gmail.com>
14660 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14661 full cmodel medium/large lo_sum + high addresses.
14663 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14665 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14666 pool references in UNSPEC_LTREL_OFFSET.
14668 2011-03-04 Jan Hubicka <jh@suse.cz>
14671 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14672 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14673 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14675 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14676 cgraph_add_thunk): Add node pointers.
14677 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14678 associated to right node.
14679 (input_node): Update use of cgraph_same_body_alias
14680 and cgraph_add_thunk.
14682 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14684 * config/i386/i386.opt (mprefer-avx128): New flag.
14685 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14686 modes when the flag -mprefer-avx128 is on.
14688 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14690 * dwarf2out.c (compare_loc_operands): Fix address handling.
14692 2011-03-04 Alan Modra <amodra@gmail.com>
14694 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14696 2011-03-04 Richard Guenther <rguenther@suse.de>
14698 PR middle-end/47968
14699 * expmed.c (extract_bit_field_1): Prefer vector modes that
14700 vec_extract patterns can handle.
14702 2011-03-04 Richard Guenther <rguenther@suse.de>
14704 PR middle-end/47975
14705 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14707 2011-03-04 Richard Henderson <rth@redhat.com>
14709 * explow.c (emit_stack_save): Remove 'after' parameter.
14710 (emit_stack_restore): Likewise.
14711 * expr.h: Update to match.
14712 * builtins.c, calls.c, stmt.c: Likewise.
14713 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14714 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14715 * function.c (expand_function_end): Insert the emit_stack_save
14716 sequence before parm_birth_insn instead of after.
14718 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14720 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14721 (ssse3_pmaddubsw128): Ditto.
14722 (ssse3_pmaddubsw): Ditto.
14724 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14726 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14728 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14731 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14732 on TYPE_SIZE_UNIT if it is a DECL.
14735 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14736 first operand is not is_gimple_mem_ref_addr, try to fold it.
14737 If the operand still isn't is_gimple_mem_ref_addr, clear
14740 2011-03-03 Richard Guenther <rguenther@suse.de>
14742 PR middle-end/47283
14743 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14745 (refs_may_alias_p_1): For release branches return true if
14746 we are confused by our input.
14748 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14750 * config/s390/s390.c (s390_function_value): Rename to ...
14751 (s390_function_and_libcall_value): ... this.
14752 (s390_function_value): New function.
14753 (s390_libcall_value): New function.
14754 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14755 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14756 target macro definitions.
14757 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14759 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14761 * config/i386/freebsd64.h (CC1_SPEC): Define.
14762 * config/i386/linux64.h (CC1_SPEC): Define.
14763 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14765 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14767 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14769 * config/stormy16/stormy16.c: Include reload.h.
14770 (xstormy16_memory_move_cost): New function.
14771 (TARGET_MEMORY_MOVE_COST): Define.
14773 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14775 PR rtl-optimization/47925
14776 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14777 with side effects. Remove the more-specific check for volatile asms.
14779 2011-03-02 Alan Modra <amodra@gmail.com>
14782 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14783 toc relative addresses for valid offsets.
14785 2011-03-01 Richard Guenther <rguenther@suse.de>
14787 PR tree-optimization/47890
14788 * tree-vect-loop.c (get_initial_def_for_induction): Set
14789 related stmt properly.
14791 2011-03-01 Richard Guenther <rguenther@suse.de>
14794 * lto-streamer.c (lto_record_common_node): Also register
14795 the canonical type.
14797 2011-03-01 Richard Guenther <rguenther@suse.de>
14800 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14801 Do not stream DECL_ABSTRACT_ORIGIN.
14802 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14803 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14804 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14805 Do not stream DECL_ABSTRACT_ORIGIN.
14806 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14807 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14809 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14811 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14812 FUNCTION_VALUE_REGNO_P): Remove.
14813 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14814 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14815 Add 'outgoing' argument.
14816 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14818 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14819 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14821 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14824 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14825 (lookup_filename): Likewise.
14826 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14828 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14829 Jakub Jelinek <jakub@redhat.com>
14831 PR middle-end/47893
14832 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14833 (assign_stack_local_1): Change last argument type to int.
14834 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14835 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14836 don't record padding space into frame_space_list nor use those areas.
14837 (assign_stack_local): Adjust caller.
14838 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14839 of assign_stack_local, pass 0 as last argument.
14840 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14843 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14846 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14847 Use target address_mode and pointer_mode hooks instead of hardcoded
14848 Pmode and ptr_mode. Handle some simple cases of extending if
14849 POINTERS_EXTEND_UNSIGNED < 0.
14850 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14851 Call convert_debug_memory_address.
14852 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14853 convert_debug_memory_address.
14855 PR middle-end/46790
14856 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14857 * configure: Regenerated.
14858 * config.in: Regenerated.
14859 * varasm.c (default_function_section): Return NULL
14860 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14862 2011-02-28 Martin Jambor <mjambor@suse.cz>
14864 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14865 the description to match the printed values.
14867 2011-02-28 Richard Guenther <rguenther@suse.de>
14869 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14870 of the copied scope tree.
14872 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14874 * doc/extend.texi (Function Attributes): Avoid deeply (and
14875 wrongly) nested tables.
14877 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14879 PR middle-end/47903
14880 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14881 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14882 r isn't op0 nor op1.
14884 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14886 * config/avr/avr.md: Remove magic comment for emacs.
14888 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14891 * config/avr/avr.c (avr_option_override): Use error on bad options.
14892 (avr_help): New function.
14893 (TARGET_HELP): Define.
14895 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14898 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14899 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14901 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14903 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14904 (ARM Options): Ditto.
14905 (i386 and x86-64 Options): Ditto.
14906 (RX Options): Ditto.
14907 (SPARC Options): Ditto.
14909 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14911 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14912 FreeBSD 6 and later. Generally use cpu generic.
14914 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14916 * doc/cpp.texi: Update copyright years.
14918 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14921 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14923 2011-02-25 Jon Beniston <jon@beniston.com>
14926 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14927 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14928 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14929 (lm32_block_move_inline): Add type cast to remove warning.
14930 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14931 (gen_int_relational): Move declarations to start of function.
14933 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14935 PR tree-optimization/45470
14936 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14937 can throw internally only.
14938 * tree-vect-stmts.c (vectorizable_call): Likewise.
14940 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14942 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14943 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14944 * config/stormy16/stormy16-protos.h
14945 (xstormy16_preferred_reload_class): Remove.
14946 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14947 static. Change 'rclass' argument and return type to reg_class_t.
14948 (TARGET_PREFERRED_RELOAD_CLASS,
14949 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14951 2011-02-24 Richard Guenther <rguenther@suse.de>
14953 * lto-streamer-in.c (input_bb): Do not find referenced vars
14954 in debug statements.
14956 2011-02-23 Jason Merrill <jason@redhat.com>
14958 * common.opt (fabi-version): Document v5 and v6.
14960 2011-02-23 Richard Guenther <rguenther@suse.de>
14962 PR tree-optimization/47849
14963 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14965 2011-02-23 Jie Zhang <jie@codesourcery.com>
14967 * opts-common.c (decode_cmdline_option): Print empty string
14968 argument as "" in decoded->orig_option_with_args_text.
14969 * gcc.c (execute): Print empty string argument as ""
14970 in the verbose output.
14971 (do_spec_1): Keep empty string argument.
14973 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14975 * config.gcc: Declare score-* and crx-* obsolete.
14977 2011-02-23 Jie Zhang <jie@codesourcery.com>
14979 PR rtl-optimization/47763
14980 * web.c (web_main): Ignore naked clobber when replacing register.
14982 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14984 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14987 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14990 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14992 2011-02-22 Mike Stump <mikestump@comcast.net>
14994 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14996 * configure: Regenerate.
14998 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15000 PR rtl-optimization/46002
15001 * ira-color.c (update_copy_costs): Change class intersection
15002 test to reg_class_contents[] test of 'hard_regno'.
15004 2011-02-21 Joseph Myers <joseph@codesourcery.com>
15006 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15007 than Driver option.
15008 * config/hpux11.opt (mt): Likewise.
15009 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15010 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15011 * config/vax/elf.opt (mno-asm-pic): Likewise.
15012 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15014 2011-02-21 Mike Stump <mikestump@comcast.net>
15017 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15018 tree so we can get save the type.
15019 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15020 for CFString instead of trying to use past the end of the builtins.
15021 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15022 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15023 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15024 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15025 Rename to darwin_builtin_cfstring.
15026 (darwin_init_cfstring_builtins): Return the built type.
15028 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
15031 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15032 (_mm256_insert_epi64): Use _mm_insert_epi64.
15034 2011-02-21 Anatoly Sokolov <aesok@post.ru>
15036 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15037 * config/stormy16/stormy16-protos.h
15038 (xstormy16_mode_dependent_address_p): Remove.
15039 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15040 Make static. Change return type to bool. Change argument type to
15041 const_rtx. Remove dead code.
15042 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15044 2011-02-21 Richard Guenther <rguenther@suse.de>
15047 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15048 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15049 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15051 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15052 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15054 2011-02-20 Richard Guenther <rguenther@suse.de>
15057 * tree.c (free_lang_data_in_decl): Clean builtins from
15058 the TU decl BLOCK_VARS.
15060 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
15064 * haifa-sched.c (fix_tick_ready): Skip tick computation
15067 2011-02-19 Richard Guenther <rguenther@suse.de>
15070 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15071 Remove lazy BLOCK_VARS streaming.
15072 (lto_input_ts_block_tree_pointers): Likewise.
15073 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15075 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15077 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15079 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15081 * config/i386/biarch32.h, config/i386/mach.h,
15082 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15084 2011-02-19 Jakub Jelinek <jakub@redhat.com>
15087 * config/i386/i386.md (peephole2 for shift and plus): Use
15088 operands[1] original mode in the first insn.
15090 2011-02-18 Mike Stump <mikestump@comcast.net>
15092 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15094 2011-02-18 Jan Hubicka <jh@suse.cz>
15096 PR middle-end/47788
15097 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15098 to zero when the function is not inlinable at all.
15100 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15102 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15103 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15104 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15105 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15106 * config/pa/t-pa64: Likewise.
15107 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15109 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15112 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15114 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15117 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15119 2011-02-18 Anatoly Sokolov <aesok@post.ru>
15121 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15122 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15123 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15124 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15125 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15126 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15127 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15128 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15129 m32r_legitimate_address_p): New functions.
15130 * config/m32r/constraints.md (constraint "S"): Don't use
15131 STORE_PREINC_PREDEC_P.
15132 (constraint "U"): Don't use LOAD_POSTINC_P.
15134 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15136 PR rtl-optimization/46178
15137 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15138 compute ira_hard_regno_cover_class[].
15140 2011-02-18 Richard Guenther <rguenther@suse.de>
15143 * lto-streamer.h (lto_global_var_decls): Declare.
15144 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15145 statics for global var processing.
15147 2011-02-18 Richard Guenther <rguenther@suse.de>
15149 PR tree-optimization/47737
15150 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15151 edge dominance check.
15153 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15156 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15157 avoid invalid rtx sharing.
15159 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15161 * doc/cpp.texi (Obsolete Features): Add background on the
15162 origin of assertions.
15164 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15166 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15168 * config/darwin.c (output_objc_section_asm_op): Added support for
15170 (is_objc_metadata): New.
15171 (darwin_objc2_section): New.
15172 (darwin_objc1_section): New.
15173 (machopic_select_section): Added support for ABI v1 and v2.
15174 (darwin_emit_objc_zeroed): New.
15175 (darwin_output_aligned_bss): Detect objc metadata and treat it
15177 (darwin_asm_output_aligned_decl_common): Same.
15178 (darwin_asm_output_aligned_decl_local): Same.
15179 * config/darwin-sections.def: Updated for ABI v1 and v2.
15180 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15181 compiling Objective-C code for the NeXT runtime, default to using
15182 ABI version 0 for 32-bit, and version 2 for 64-bit.
15184 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15186 * common.opt (optimize_fast): New Variable.
15187 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15188 instead of local variable ofast.
15190 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15192 * doc/invoke.texi (fobjc-abi-version): Documented.
15193 (fobjc-nilcheck): Documented.
15194 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15197 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15200 * common.opt (export-dynamic): New Driver option.
15201 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15203 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15205 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15207 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15208 Jan Hubicka <jh@suse.cz>
15212 * cfgexpand.c (account_used_vars_for_block): Remove.
15213 (estimated_stack_frame_size): Use referenced vars.
15214 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15215 that were referenced in the original function. Test src_fn
15216 rather than cfun. Drop redundant get_var_ann.
15217 (setup_one_parameter): Drop redundant get_var_ann.
15218 (declare_return_variable): Likewise.
15219 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15220 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15221 * ipa-inline.c (compute_inline_parameters): Do not compute
15222 disregard_inline_limits here.
15223 (compute_inlinable_for_current, pass_inlinable): New.
15224 (pass_inline_parameters): Require PROP_referenced_vars.
15225 * cgraphunit.c (cgraph_process_new_functions): Don't run
15226 compute_inline_parameters explicitly unless function is in SSA form.
15227 (cgraph_analyze_function): Set .disregard_inline_limits.
15228 * tree-sra.c (convert_callers): Compute inliner parameters
15229 only for functions already in SSA form.
15231 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15233 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15234 -mlittle-endian-data.
15236 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15238 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15239 -mno-fpu, not -fpu and -no-fpu.
15240 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15241 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15243 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
15246 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15247 input reload with PLUS RTX.
15249 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15251 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15252 of InverseVar(MDMX).
15254 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15256 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15259 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15261 * config/mn10300/mn10300.opt (mno-crt0): New.
15263 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15265 * config/m68k/uclinux.opt (static-libc): New Driver option.
15267 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15269 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15271 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15273 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15274 %{muser-extend-enabled}.
15276 2011-02-16 Richard Guenther <rguenther@suse.de>
15278 PR tree-optimization/47738
15279 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15280 the TODO from tree_predictive_commoning.
15282 2011-02-15 Jeff Law <law@redhat.com>
15285 2011-01-25 Jeff Law <law@redhat.com>
15287 PR rtl-optimization/37273
15288 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15289 handle them like argument loads from stack slots. Do not double
15290 count memory for memory constants and argument loads from stack slots.
15292 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15294 PR middle-end/47725
15295 * combine.c (cant_combine_insn_p): Revert the last change.
15297 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15300 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15301 mode for vector constants. Remove code that checks for TImode.
15303 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15307 * cgraph.h (compute_inline_parameters): Return void.
15308 * ipa-inline.c (compute_inline_parameters): Adjust.
15310 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15314 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15316 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15317 * ipa-inline.c (compute_inline_parameters): Adjust.
15319 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15323 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15324 Adjust all users. Pass FN to...
15325 * tree-flow-inline.h (first_referenced_var): ... this. Add
15327 * ipa-struct-reorg.c: Adjust.
15328 * tree-dfa.c: Adjust.
15329 * tree-into-ssa.c: Adjust.
15330 * tree-sra.c: Adjust.
15331 * tree-ssa-alias.c: Adjust.
15332 * tree-ssa-live.c: Adjust.
15333 * tree-ssa.c: Adjust.
15334 * tree-ssanames.c: Adjust.
15335 * tree-tailcall.c: Adjust.
15337 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15341 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15342 Adjust all callers.
15343 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15344 * tree-flow-inline.h: Adjust.
15345 * gimple-pretty-print.c: Adjust.
15346 * tree-into-ssa.c: Adjust.
15347 * tree-ssa.c: Adjust.
15348 * cfgexpand.c: Adjust.
15350 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15352 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15353 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15354 (EXTRA_CONSTRAINT): Delete.
15355 * config/iq2000/constraints.md: New file.
15356 * config/iq2000/iq2000.md: Include it.
15357 (define_insn ""): Delete.
15358 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15359 unsupported constraint letters from patterns.
15360 (call_value, call_value_internal1): Likewise.
15361 (call_value_multiple_internal1): Likewise.
15363 2011-02-15 Nick Clifton <nickc@redhat.com>
15365 * config/mn10300/mn10300.c: Include tm-constrs.h.
15366 (struct liw_data): New data structure describing an LIW candidate
15368 (extract_bundle): Use struct liw_data. Allow small integer
15369 operands for some instructions.
15370 (check_liw_constraints): Use struct liw_data. Remove swapped
15371 parameter. Add comments describing the checks. Fix bug when
15372 assigning the source of liw1 to the source of liw2.
15373 (liw_candidate): Delete. Code moved into extract_bundle.
15374 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15376 * config/mn10300/predicates.md (liw_operand): New predicate.
15377 Allows registers and small integer constants.
15378 * config/mn10300/constraints.md (O): New constraint. Accetps
15379 integers in the range -8 to +7 inclusive.
15380 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15381 for moving a small integer into a register. Give this alternative
15383 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15384 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15385 using the J,K,L and M constraints,
15386 (liw): Remove SI mode on second operands to allow for HI and QI
15388 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15391 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15393 PR middle-end/47725
15394 * combine.c (cant_combine_insn_p): Check zero/sign extended
15397 2011-02-15 Richard Guenther <rguenther@suse.de>
15399 PR tree-optimization/47743
15400 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15401 for a non-type-compatible VN lookup bail out.
15403 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15405 * config/fr30/constraints.md: New file.
15406 * config/fr30/fr30.md: Include it.
15407 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15408 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15409 (EXTRA_CONSTRAINT): Delete.
15411 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15413 * config/frv/constraints.md: New file.
15414 * config/frv/predicates.md: Include it.
15415 * config/frv/frv.c (reg_class_from_letter): Delete.
15416 (frv_option_override): Don't initialize it.
15417 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15418 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15419 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15420 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15421 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15422 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15423 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15424 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15425 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15426 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15427 (REG_CLASS_FROM_CONSTRAINT): Delete.
15429 2011-02-15 Jakub Jelinek <jakub@redhat.com>
15431 PR middle-end/47581
15432 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15433 if frame size is 0 in a leaf function.
15435 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15438 * config/alpha/host-osf.c: New file.
15439 * config/alpha/x-osf: New file.
15440 * config.host (alpha*-dec-osf*): Use it.
15442 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15444 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15445 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15446 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15447 (rx_mode_dependent_address_p): ...this. Make static. Change argument
15449 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15451 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15453 * config/stormy16/constraints.md: New file.
15454 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15455 Use satisfies_constraint_Q and satisfies_constraint_R.
15456 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15458 (xstormy16_legitiamte_address_p): Declare.
15459 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15460 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15461 (EXTRA_CONSTRAINT): Delete.
15462 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15464 (xstormy16_extra_constraint_p): Delete.
15466 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
15468 PR tree-optimization/46494
15469 * loop-unroll.c (split_edge_and_insert): Adjust comment.
15470 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15471 (pass_rtl_loop_done): Add TODO_verify_flow.
15472 * fwprop.c (pass_rtl_fwprop): Likewise.
15473 * modulo-sched.c (pass_sms): Likewise.
15474 * tree-ssa-dom.c (pass_dominator): Likewise.
15475 * tree-ssa-loop-ch.c (pass_ch): Likewise.
15476 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15477 (pass_tree_loop_done): Likewise.
15478 * tree-ssa-pre.c (execute_pre): Likewise.
15479 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15480 * tree-ssa-sink.c (pass_sink_code): Likewise.
15481 * tree-vrp.c (pass_vrp): Likewise.
15483 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15485 * config/v850/constraints.md: New file.
15486 * config/v850/v850.md: Include it.
15487 * config/v850/predicates.md (reg_or_0_operand): Use
15488 satisfies_constraint_G.
15489 (special_symbolref_operand): Use satisfies_constraint_K.
15490 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
15491 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
15492 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
15493 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15494 (EXTRA_CONSTRAINT): Delete.
15495 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
15496 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
15497 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
15499 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15502 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
15505 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15507 * config/mcore/constraints.md: New file.
15508 * config/mcore/mcore.md: Include it.
15509 * config/mcore/mcore.c (reg_class_from_letter): Delete.
15510 * config/mcore/mcore.h (reg_class_from_letter): Delete.
15511 (REG_CLASS_FROM_LETTER): Delete.
15512 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
15513 insn_const_int_ok_for_constraint.
15514 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
15515 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
15516 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15517 (EXTRA_CONSTRAINT): Delete.
15519 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15522 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
15523 (IS_SIGHANDLER): Define.
15524 (sparc64_is_sighandler): New function, split off from
15525 sparc64_fallback_frame_state.
15526 (sparc_is_sighandler): New function, split off from
15527 sparc_fallback_frame_state.
15528 (sparc64_fallback_frame_state): Merge with ...
15529 (sparc_fallback_frame_state): ... this into ...
15530 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
15531 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
15532 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
15533 stack instead of hardcoded offsets.
15535 2011-02-14 Andriy Gapon <avg@freebsd.org>
15538 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15540 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15542 * configure: Regenerate.
15544 2011-02-12 Joseph Myers <joseph@codesourcery.com>
15547 * gcc.c (asm_options): Correct spec matching --target-help.
15549 2011-02-12 Martin Jambor <mjambor@suse.cz>
15551 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15552 to gimple call error.
15554 2011-02-12 Mike Stump <mikestump@comcast.net>
15556 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15557 comments in backslash regions.
15559 2011-02-12 Mike Stump <mikestump@comcast.net>
15560 Jakub Jelinek <jakub@redhat.com>
15561 Iain Sandoe <iains@gcc.gnu.org>
15564 * dwarf2out.c (output_cfa_loc): When required, apply the
15565 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15566 (output_loc_sequence): Likewise.
15567 (output_loc_operands_raw): Likewise.
15568 (output_loc_sequence_raw): Likewise.
15569 (output_cfa_loc): Likewise.
15570 (output_loc_list): Suppress register number adjustment when
15571 calling output_loc_sequence()
15572 (output_die): Likewise.
15574 2011-02-12 Anatoly Sokolov <aesok@post.ru>
15576 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15578 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15579 xtensa_memory_move_cost): New functions.
15580 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15582 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
15585 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15586 in the current directory.
15587 * configure: Rebuilt.
15589 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15591 * config/darwin.c (darwin_override_options): Add a hunk missed
15592 from the commit of r168571. Trim comment line lengths and
15593 correct indents of the preceding block.
15595 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15597 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15600 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15602 * common.opt (nostartfiles): New Driver option.
15604 2011-02-11 Xinliang David Li <davidxl@google.com>
15606 PR tree-optimization/47707
15607 * tree-chrec.c (convert_affine_scev): Keep type precision.
15609 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15611 PR tree-optimization/47420
15612 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15614 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15616 PR rtl-optimization/47614
15617 * rtl.h (check_for_inc_dec): Declare.
15618 * dse.c (check_for_inc_dec): Externalize...
15619 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15620 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15622 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15625 * gcc.c (main): Do not compile inputs if there were errors in
15627 * opts-common.c (read_cmdline_option): Check for wrong language
15628 after other error checks.
15630 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15632 * cgraph.c: Fix comment typos.
15633 * cgraph.h: Likewise.
15634 * cgraphunit.c: Likewise.
15635 * ipa-cp.c: Likewise.
15636 * ipa-inline.c: Likewise.
15637 * ipa-prop.c: Likewise.
15638 * ipa-pure-const.c: Likewise.
15639 * ipa-ref.c: Likewise.
15640 * ipa-reference.c: Likewise.
15642 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15645 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15647 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15650 * doc/sourcebuild.texi (Require Support): Document
15651 dg-require-ascii-locale.
15653 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15655 * doc/lto.texi (Write summary): Fix missing parentheses.
15657 2011-02-10 DJ Delorie <dj@redhat.com>
15659 * config/m32c/m32c.c (m32c_option_override): Disable
15660 -fcombine-stack-adjustments until flag value tracking and compare
15661 optimization can be rewritten.
15663 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15665 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15667 (PROCESSOR_DEFAULT64): Likewise.
15669 2011-02-10 Richard Henderson <rth@redhat.com>
15671 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15672 change from 2011-02-03.
15673 * config/rx/rx.c (flags_from_code): Likewise.
15674 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15675 is valid, n/pz otherwise.
15676 (rx_select_cc_mode): Return CCmode if Y is not zero.
15678 2011-02-10 Richard Guenther <rguenther@suse.de>
15680 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15682 2011-02-10 Richard Guenther <rguenther@suse.de>
15684 PR tree-optimization/47677
15685 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15687 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15690 * combine.c (make_compound_operation): Only change shifts into
15691 multiplication for SCALAR_INT_MODE_P.
15693 2011-02-10 Jie Zhang <jie@codesourcery.com>
15697 2011-02-05 Jie Zhang <jie@codesourcery.com>
15699 * web.c (entry_register): Don't clobber the number of the
15700 first uninitialized reference in used[].
15702 2011-02-09 Richard Guenther <rguenther@suse.de>
15704 PR tree-optimization/47664
15705 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15708 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15712 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15714 (PROCESSOR_DEFAULT64): Same.
15715 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15717 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15719 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15721 2011-02-09 Martin Jambor <mjambor@suse.cz>
15723 PR middle-end/45505
15724 * tree-sra.c (struct access): New flags grp_scalar_read and
15725 grp_scalar_write. Changed description of assignment read and write
15727 (dump_access): Dump new flags, reorder all of them.
15728 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15729 to detect multiple scalar reads.
15730 (analyze_access_subtree): Use the new scalar read write flags instead
15731 of the old flags. Adjusted comments.
15733 2011-02-08 DJ Delorie <dj@redhat.com>
15736 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15739 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15741 * config/m68k/uclinux.opt: New.
15742 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15744 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15746 * config/cris/elf.opt (sim): New Driver option.
15748 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15750 * config/xtensa/elf.opt: New.
15751 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15753 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15755 * config/vax/elf.opt: New.
15756 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15758 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15760 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15762 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15764 * config/gnu-user.opt: New.
15765 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15766 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15767 *-*-uclinux*): Use gnu-user.opt.
15769 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15771 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15772 * config/i386/gnu.h (CPP_SPEC): Likewise.
15774 2011-02-08 Ian Lance Taylor <iant@google.com>
15776 * common.opt (fcx-limited-range): Add SetByCombined flag.
15777 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15778 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15779 (fassociative-math, freciprocal-math): Likewise.
15780 (funsafe-math-optimizations): Likewise.
15781 * opth-gen.awk: Handle SetByCombined.
15782 * optc-gen.awk: Likewise.
15783 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15784 (set_unsafe_math_optimizations_flags): Likewise.
15785 * doc/options.texi (Option properties): Document SetByCombined.
15787 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15789 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15790 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15791 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15792 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15793 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15795 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15797 PR tree-optimization/46834
15798 PR tree-optimization/46994
15799 PR tree-optimization/46995
15800 * graphite-sese-to-poly.c (used_outside_reduction): New.
15801 (detect_commutative_reduction): Call used_outside_reduction.
15802 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15803 translate_scalar_reduction_to_array only when at least one
15804 loop-phi/close-phi tuple has been detected.
15806 2011-02-08 Richard Guenther <rguenther@suse.de>
15808 PR middle-end/47639
15809 * tree-vect-generic.c (expand_vector_operations_1): Update
15811 (expand_vector_operations): ... not here. Cleanup EH info
15812 and the CFG if required.
15814 2011-02-08 Richard Guenther <rguenther@suse.de>
15816 PR tree-optimization/47641
15817 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15818 require type compatibility.
15820 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15822 * gimple-low.c (lower_function_body): Don't remove the location of
15823 the return statement here.
15824 (lower_gimple_return): Do it here instead but only if the return
15825 statement is actually used twice.
15827 2011-02-08 Richard Guenther <rguenther@suse.de>
15829 PR tree-optimization/47632
15830 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15831 unused up_to_stmt parameter, return whether cfg-cleanup is
15832 necessary, remove EH info properly.
15833 (forward_propagate_into_gimple_cond): Adjust caller.
15834 (forward_propagate_into_cond): Likewise.
15835 (forward_propagate_comparison): Likewise.
15836 (tree_ssa_forward_propagate_single_use_vars): Make
15837 forward_propagate_comparison case similar to the two others.
15839 2011-02-08 Nick Clifton <nickc@redhat.com>
15841 * config/mn10300/mn10300.opt (mliw): New command line option.
15842 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15843 (liw_bundling): New automaton.
15844 (liw): New attribute.
15845 (liw_op): New attribute.
15846 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15847 (movsi_internal): Add LIW attributes.
15848 (andsi3): Likewise.
15849 (iorsi3): Likewise.
15850 (xorsi3): Likewise.
15851 (addsi3): Separate register and immediate alternatives.
15852 Add LIW attributes.
15853 (subsi3): Likewise.
15855 (aslsi3): Likewise.
15856 (lshrsi3): Likewise.
15857 (ashrsi3): Likewise.
15858 (liw): New pattern.
15859 * config/mn10300/mn10300.c (liw_op_names): New
15860 (mn10300_print_operand): Handle 'W' operand descriptor.
15861 (extract_bundle): New function.
15862 (check_liw_constraints): New function.
15863 (liw_candidate): New function.
15864 (mn10300_bundle_liw): New function.
15865 (mn10300_reorg): New function.
15866 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15867 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15868 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15869 __LIW__ or __NO_LIW__.
15870 * doc/invoke.texi: Describe the -mliw command line option.
15872 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15874 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15875 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15876 pthread_mutex_unlock): Remove.
15877 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15878 * config/pa/t-pa64: Likewise.
15879 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15880 shared libc if not linking against libpthread.
15881 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15883 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15886 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15887 on 10.6 and later to ensure that we always use the unwinder from
15888 the system. Only add -no_compact_unwind when tarteting darwin
15891 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15894 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15895 (vec_interleave_lowv2sf): Ditto.
15896 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15897 (vec_extract_oddv2sf): Ditto.
15899 2011-02-07 Mike Stump <mikestump@comcast.net>
15902 Add __ieee_divdc3 entry point.
15903 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15905 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15906 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15907 * config/darwin.c (darwin_rename_builtins): Add.
15908 * config/darwin-protos.h (darwin_rename_builtins): Add.
15910 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15913 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15916 2011-02-07 Mike Stump <mikestump@comcast.net>
15918 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15920 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15923 * config/avr/libgcc.S (exit): Move .endfunc
15925 2011-02-07 Richard Guenther <rguenther@suse.de>
15927 PR tree-optimization/47615
15928 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15929 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15930 (run_scc_vn): Initialize it.
15931 (visit_reference_op_load): Use it.
15932 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15934 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15936 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15937 DImode trapping arithmetic libfuncs.
15939 2011-02-07 Richard Guenther <rguenther@suse.de>
15941 PR tree-optimization/47621
15942 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15944 (execute_update_addresses_taken): ... here. Make it more
15945 conservative in what we accept.
15947 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15949 * config/sparc/freebsd.h (ASM_SPEC): Define.
15950 * config/sparc/vxworks.h (ASM_SPEC): Define.
15952 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15954 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15956 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15958 * doc/invoke.texi: Remove reference to compiler internals from
15959 user documentation.
15961 * reg-notes.def: Remove REG_VALUE_PROFILE.
15962 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15964 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15966 PR middle-end/47610
15967 * varasm.c (default_section_type_flags): If decl is NULL,
15968 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15970 2011-02-05 Jie Zhang <jie@codesourcery.com>
15973 * web.c (entry_register): Don't clobber the number of the
15974 first uninitialized reference in used[].
15976 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15978 PR tree-optimization/46194
15979 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15980 (build_classic_dist_vector_1): Do not represent classic distance
15981 vectors when the access functions are variating in different loops.
15983 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15985 * config/mips/iris6.opt: New.
15986 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15988 2011-02-04 Richard Henderson <rth@redhat.com>
15989 Steve Ellcey <sje@cup.hp.com>
15992 * config/ia64/predicates.md (mux1_brcst_element): New.
15993 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15994 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15995 (ia64_unpack_sign): New.
15996 (ia64_expand_unpack): Rewrite using new routines.
15997 (ia64_expand_widen_sum): Ditto.
15998 (ia64_expand_dot_prod_v8qi): Ditto.
15999 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16000 routines, add endian check.
16001 (pmpy2_even): Rename from pmpy2_r, add endian check.
16002 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16003 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16004 (vec_widen_smult_hi_v4hi): Ditto.
16005 (vec_widen_umult_lo_v4hi): Ditto.
16006 (vec_widen_umult_hi_v4hi): Ditto.
16007 (mulv2si3): Change endian checks.
16008 (sdot_prodv4hi): Rewrite with new calls.
16009 (udot_prodv4hi): New.
16010 (vec_pack_ssat_v4hi): Add endian check.
16011 (vec_pack_usat_v4hi): Ditto.
16012 (vec_pack_ssat_v2si): Ditto.
16013 (max1_even): Rename from max1_r, add endian check.
16014 (max1_odd): Rename from max1_l, add endian check.
16015 (*mux1_rev): Format change.
16016 (*mux1_mix): Ditto.
16017 (*mux1_shuf): Ditto.
16018 (*mux1_alt): Ditto.
16019 (*mux1_brcst_v8qi): Use new predicate.
16020 (vec_extract_evenv8qi): Remove endian check.
16021 (vec_extract_oddv8qi): Ditto.
16022 (vec_interleave_lowv4hi): Format change.
16023 (vec_interleave_highv4hi): Ditto.
16024 (mix2_even): Rename from mix2_r, add endian check.
16025 (mix2_odd): Rename from mux2_l, add endian check.
16026 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16027 (vec_extract_evenodd_helper): Format change.
16028 (vec_extract_evenv4hi): Remove endian check.
16029 (vec_extract_oddv4hi): Remove endian check.
16030 (vec_interleave_lowv2si): Format change.
16031 (vec_interleave_highv2si): Format change.
16032 (vec_initv2si): Remove endian check.
16033 (vecinit_v2si): Add endian check.
16034 (reduc_splus_v2sf): Add endian check.
16035 (reduc_smax_v2sf): Ditto.
16036 (reduc_smin_v2sf): Ditto.
16037 (vec_initv2sf): Remove endian check.
16038 (fpack): Add endian check.
16039 (fswap): Add endian check.
16040 (vec_interleave_highv2sf): Add endian check.
16041 (vec_interleave_lowv2sf): Add endian check.
16042 (fmix_lr): Add endian check.
16043 (vec_setv2sf): Format change.
16044 (*vec_extractv2sf_0_be): Use shift to extract operand.
16045 (*vec_extractv2sf_1_be): New.
16046 (vec_pack_trunc_v4hi): Add endian check.
16047 (vec_pack_trunc_v2si): Format change.
16049 2011-02-04 Jakub Jelinek <jakub@redhat.com>
16051 PR inline-asm/23200
16052 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
16053 do bb, locus and block comparison and disallow loads if it is not set.
16054 (stmt_is_replaceable_p): New function.
16055 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16057 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16058 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16060 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16062 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16064 * config/rs6000/xilinx.opt: New.
16065 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16067 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16069 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16071 2011-02-03 Anatoly Sokolov <aesok@post.ru>
16073 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16074 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16075 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16076 secondary_reload_info, xtensa_secondary_reload): Remove.
16077 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16078 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16079 (xtensa_preferred_reload_class): Make static. Change return and
16080 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16081 Use CONST_DOUBLE_P predicate.
16082 (xtensa_preferred_output_reload_class): New function.
16083 (xtensa_secondary_reload): Make static.
16085 2011-02-03 Joseph Myers <joseph@codesourcery.com>
16087 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16088 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16089 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16091 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16093 PR middle-end/31490
16094 * output.h (SECTION_RELRO): Define.
16095 (SECTION_MACH_DEP): Adjust.
16096 (get_variable_section): New prototype.
16097 * varpool.c (varpool_finalize_named_section_flags): New function.
16098 (varpool_assemble_pending_decls): Call it.
16099 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16100 * cgraphunit.c (cgraph_output_in_order): Call
16101 varpool_finalize_named_section_flags.
16102 * varasm.c (get_section): Allow section flags conflicts between
16103 relro and read-only sections if the section hasn't been declared yet.
16104 Set SECTION_OVERRIDE after diagnosing section type conflict.
16105 (get_variable_section): No longer static.
16106 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16107 readonly sections that need relocations.
16108 (decl_readonly_section_1): New function.
16109 (decl_readonly_section): Use it.
16112 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
16113 Steve Ellcey <sje@cup.hp.com>
16115 PR middle-end/31490
16116 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16117 if section attribute used.
16119 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16121 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16122 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16123 (darwin_init_sections): Remove assertion.
16125 2011-02-03 Nick Clifton <nickc@redhat.com>
16127 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16129 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16130 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16131 instead of "n" and "pz".
16132 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16135 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16138 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16139 fma, expand FMA_EXPR as fma{,f,l} call.
16142 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16143 copy them into a unsigned char variable and pass address of it to
16144 lto_output_data_stream.
16147 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16148 around backend_init_target and lang_dependent_init_target calls.
16149 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16150 (verify_cgraph_node): Don't call set_cfun here. Use
16151 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16152 Set error_found for incorrectly represented calls to thunks.
16154 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16157 PR rtl-optimization/43494
16158 * rtl.h (for_each_inc_dec_fn): New type.
16159 (for_each_inc_dec): Declare.
16160 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16161 (for_each_inc_dec_find_inc_dec): New fn.
16162 (for_each_inc_dec_find_mem): New fn.
16163 (for_each_inc_dec): New fn.
16164 * dse.c (struct insn_size): Remove.
16165 (replace_inc_dec, replace_inc_dec_mem): Remove.
16166 (emit_inc_dec_insn_before): New fn.
16167 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16168 (canon_address): Pass mem modes to cselib_lookup.
16169 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16170 (cselib_lookup_from_insn): Likewise.
16171 (cselib_subst_to_values): Likewise.
16172 * cselib.c (find_slot_memmode): New var.
16173 (cselib_find_slot): New fn. Use it instead of
16174 htab_find_slot_with_hash everywhere.
16175 (entry_and_rtx_equal_p): Use find_slot_memmode.
16176 (autoinc_split): New fn.
16177 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16178 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16179 Deal with autoinc. Special-case recursion into MEMs.
16180 (cselib_hash_rtx): Likewise.
16181 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16182 address and MEM modes.
16183 (cselib_subst_to_values): Add memmode, pass it on.
16185 (cselib_lookup): Add memmode argument, pass it on.
16186 (cselib_lookup_from_insn): Add memmode.
16187 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16188 (struct cselib_record_autoinc_data): New.
16189 (cselib_record_autoinc_cb): New fn.
16190 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16191 mode to cselib_lookup. Reset autoinced REGs here instead of...
16192 (cselib_process_insn): ... here.
16193 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16195 (add_uses): Likewise, also to cselib_subst_to_values.
16196 (add_stores): Likewise.
16197 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16198 cselib_subst_to_values.
16199 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16200 * gcse.c (do_local_cprop): Adjusted.
16201 * postreload.c (reload_cse_simplify_set): Adjusted.
16202 (reload_cse_simplify_operands): Adjusted.
16203 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16205 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16207 PR tree-optimization/45122
16208 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16209 unsafe assumptions when there's more than one loop exit.
16211 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16214 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16215 Document using vector double with the load/store builtins, and
16216 that the load/store builtins always use Altivec instructions.
16218 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16219 to use altivec memory instructions, even on VSX.
16220 (vector_altivec_store_<mode>): Ditto.
16222 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16225 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16226 V2DF, V2DI support to load/store overloaded builtins.
16228 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16229 altivec load/store builtins for V2DF/V2DI types.
16231 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16232 set avoid indexed addresses on power6 if -maltivec.
16233 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16234 vector_altivec_load/vector_altivec_store builtins.
16235 (altivec_expand_st_builtin): Ditto.
16236 (altivec_expand_builtin): Add VSX memory builtins.
16237 (rs6000_init_builtins): Add V2DI types to internal types.
16238 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16239 load/store builtins.
16240 (rs6000_address_for_altivec): Insure memory address is appropriate
16243 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16244 vec_vsx_ld and vec_vsx_st.
16245 (vsx_store_<mode>): Ditto.
16247 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16248 variables to hold long long types for VSX vector memory builtins.
16249 (RS6000_BTI_unsigned_long_long): Ditto.
16250 (long_long_integer_type_internal_node): Ditti.
16251 (long_long_unsigned_type_internal_node): Ditti.
16253 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16254 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16255 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16257 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16259 (vec_vsx_st): Ditto.
16261 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16263 * config/pa/pa-hpux10.opt: New.
16264 * config/hpux11.opt (pthread): New Driver option.
16265 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16266 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16268 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16270 * config/ia64/vms.opt: New.
16271 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16273 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16276 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16277 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16278 generator functions.
16279 (vsx_floatuns<VSi><mode>2): Ditto.
16280 (vsx_fix_trunc<mode><VSi>2): Ditto.
16281 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16283 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16285 * config/i386/djgpp.opt (posix): New Driver option.
16287 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16289 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16290 Move to the unsupported targets list.
16292 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16294 PR rtl-optimization/47525
16295 * df-scan.c: Update copyright years.
16296 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16297 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16299 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16301 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16302 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16303 (ASM_OUTPUT_ASCII): Remove.
16304 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16306 2011-02-02 Jeff Law <law@redhat.com>
16308 PR middle-end/47543
16309 * reload.c (find_reloads_address): Handle reg+d address where both
16310 components are invalid by reloading the entire address.
16312 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16313 Richard Guenther <rguenther@suse.de>
16315 PR tree-optimization/40979
16317 * passes.c (init_optimization_passes): After LIM call copy_prop
16318 and DCE to clean up.
16319 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16321 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16323 PR tree-optimization/47576
16324 PR tree-optimization/47555
16325 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16326 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16327 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16328 * tree-scalar-evolution.c (follow_ssa_edge): Use
16329 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16331 2011-02-02 Richard Guenther <rguenther@suse.de>
16333 PR tree-optimization/47566
16334 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16336 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16340 * tree-inline.c (declare_return_variable): Remove unused caller
16345 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16346 * cfgexpand.c (account_used_vars_for_block): Use them.
16347 * tree-nrv.c (tree_nrv): Likewise.
16348 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16349 (dump_scope_block): Likewise.
16350 (remove_unused_locals): Likewise.
16354 * tree-inline.c (declare_return_variable): Add result decl to
16355 local decls only once.
16356 * gimple-low.c (record_vars_into): Mark newly-created variables
16359 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16365 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16367 (no_real_insns_p, schedule_block, set_priorities): Drop special
16368 treatment of boundary debug insns.
16369 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16370 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16371 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16372 (BOUNDARY_DEBUG_INSN_P): Likewise.
16373 (SCHEDULE_DEBUG_INSN_P): Likewise.
16374 * sched-rgn.c (init_ready_list): Drop special treatment of
16375 boundary debug insns.
16376 * final.c (rest_of_clean_state): Clear notes' BB.
16378 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16380 * config/openbsd.opt (assert=): New Driver option.
16382 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16384 * config/i386/nto.opt: New.
16385 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16387 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16389 * config/i386/netware.opt: New.
16390 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16392 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16394 * config/interix.opt (posix): New Driver option.
16396 2011-02-01 DJ Delorie <dj@redhat.com>
16398 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16400 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16403 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16405 PR tree-optimization/47561
16406 * toplev.c (process_options): Print the Graphite flags. Add
16407 flag_loop_flatten to the list of options requiring Graphite.
16409 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16411 * config/i386/cygming.opt (posix): New Driver option.
16413 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16415 * config/arm/vxworks.opt: New.
16416 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16418 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16420 * config/alpha/elf.opt: New.
16421 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16422 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16424 2011-02-01 Richard Guenther <rguenther@suse.de>
16426 PR tree-optimization/47559
16427 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16428 store-motion on references that can throw.
16430 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
16432 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16433 * tree-pass.h (TDF_CSELIB): New macro.
16434 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16435 cselib_lookup): Check for it rather than for TDF_DETAILS.
16437 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
16440 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16441 is HOST_BIT_BUCKET.
16443 * opts.c (finish_options): Don't add x_aux_base_name if it is
16446 2011-02-01 Richard Guenther <rguenther@suse.de>
16448 PR tree-optimization/47555
16450 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
16452 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16454 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
16457 * config/lm32/t-lm32: Add multilib for all CPU options.
16459 2011-02-01 Richard Guenther <rguenther@suse.de>
16461 PR tree-optimization/47541
16462 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16463 sure to have a field at offset zero.
16465 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16467 * config/arc/arc.opt (EB, EL): New Driver options.
16469 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16471 * config/alpha/osf5.opt: New.
16472 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16474 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16476 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16478 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
16480 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16481 -floop-interchange.
16482 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
16483 is an alias of -floop-interchange and that it requires the
16484 Graphite infrastructure.
16485 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
16486 flag_loop_interchange based on the value of flag_tree_loop_linear.
16488 2011-01-31 Jakub Jelinek <jakub@redhat.com>
16489 Richard Guenther <rguenther@suse.de>
16491 PR tree-optimization/47538
16492 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
16493 type instead of r1type, except for comparisons. For right
16494 shifts and comparisons punt if there are mismatches in
16495 sizetype vs. non-sizetype types.
16497 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16499 * doc/sourcebuild.texi (Effective-Target Keywords): Document
16502 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16504 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
16506 * configure: Regenerate.
16508 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16510 * configure.ac (gcc_cv_ld_static_option): Define.
16511 (gcc_cv_ld_dynamic_option): Define.
16512 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
16514 (HAVE_LD_STATIC_DYNAMIC): Update message.
16515 (LD_STATIC_OPTION): Define.
16516 (LD_DYNAMIC_OPTION): Define.
16517 * configure: Regenerate.
16518 * config.in: Regenerate.
16519 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
16520 HAVE_LD_STATIC_DYNAMIC]: Use them.
16522 2011-01-31 Nick Clifton <nickc@redhat.com>
16524 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
16525 registers inside interrupt handlers if the handler is not a leaf
16528 2011-01-31 Nick Clifton <nickc@redhat.com>
16530 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
16531 reg_renumber returning an INVALID_REGNUM.
16533 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16536 * doc/install.texi: Document host options discarded when cross
16537 configuring target libraries.
16539 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16542 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16545 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16547 (no_real_insns_p, schedule_block, set_priorities): Drop special
16548 treatment of boundary debug insns.
16549 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16550 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16551 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16552 (BOUNDARY_DEBUG_INSN_P): Likewise.
16553 (SCHEDULE_DEBUG_INSN_P): Likewise.
16554 * sched-rgn.c (init_ready_list): Drop special treatment of
16555 boundary debug insns.
16556 * final.c (rest_of_clean-state): Clear notes' BB.
16558 2011-01-31 Alan Modra <amodra@gmail.com>
16560 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16561 toc relative expressions as we do in print_operand_address.
16563 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
16565 * doc/extend.texi: Follow spelling conventions.
16566 * doc/invoke.texi: Fix a typo.
16568 2011-01-30 Joseph Myers <joseph@codesourcery.com>
16570 * config/hpux11.opt: New.
16571 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16572 ia64*-*-hpux*): Use hpux11.opt.
16574 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
16576 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16579 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16581 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16584 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16586 * doc/install.texi (Binaries): Remove outdated reference for
16587 Motorola 68HC11/68HC12 downloads.
16589 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16591 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16594 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16597 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16600 2011-01-28 Ahmad Sharif <asharif@google.com>
16602 * value-prof.c (check_counter): Corrected error message.
16604 2011-01-29 Jie Zhang <jie@codesourcery.com>
16606 * config/arm/arm.c (arm_legitimize_reload_address): New.
16607 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16608 arm_legitimize_reload_address.
16609 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16611 2011-01-28 Ian Lance Taylor <iant@google.com>
16613 * godump.c (go_define): Ignore macros whose definitions include
16614 two adjacent operands.
16616 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16619 * varasm.c (force_const_mem): Store copy of x in desc->constant
16620 instead of x itself.
16621 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16622 itself into REG_EQUAL note.
16624 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16626 * config/freebsd.opt (posix, rdynamic): New Driver options.
16628 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16630 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16631 -Bstatic/-Bdynamic.
16632 * configure: Regenerate.
16634 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16636 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16637 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16639 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16641 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16642 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16643 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16644 (s390_preferred_reload_class): Make static. Change return and
16645 'rclass' argument type to reg_class_t.
16647 2011-01-27 Jan Hubicka <jh@suse.cz>
16649 PR middle-end/46949
16650 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16651 (process_function_and_variable_attributes): Check defined weakrefs.
16653 2011-01-27 Martin Jambor <mjambor@suse.cz>
16655 PR tree-optimization/47228
16656 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16657 build_ref_for_offset.
16659 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16661 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16663 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16665 PR rtl-optimization/46856
16666 * postreload.c (reload_combine_recognize_const_pattern): Do not
16667 separate cc0 setter and user on cc0 targets.
16669 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16672 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16673 passed a VOID_TYPE expression, immediately emit an error and
16674 return error_mark_node.
16676 2011-01-26 Jeff Law <law@redhat.com>
16678 PR rtl-optimization/47464
16679 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16680 rather than may_trap_p as needed.
16682 2011-01-26 DJ Delorie <dj@redhat.com>
16684 PR rtl-optimization/46878
16685 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16686 setter/user dependency as well.
16688 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16690 PR rtl-optimization/44469
16691 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16692 after removing trivially dead basic blocks.
16694 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16696 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16697 * config/frv/frv.h (LINK_SPEC): Likewise.
16698 * config/i386/netware.h (LINK_SPEC): Likewise.
16699 * config/m68k/linux.h (ASM_SPEC): Likewise.
16700 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16701 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16702 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16703 * config/sparc/linux.h (ASM_SPEC): Likewise.
16704 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16705 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16707 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16709 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16710 * config/frv/frv.h (ASM_SPEC): Likewise.
16711 * config/m68k/linux.h (ASM_SPEC): Likewise.
16712 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16713 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16714 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16715 * config/sparc/linux.h (ASM_SPEC): Likewise.
16716 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16717 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16719 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16721 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16722 * config/frv/frv.h (LINK_SPEC): Likewise.
16723 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16725 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16727 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16728 * config/frv/frv.h (ASM_SPEC): Likewise.
16729 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16730 * config/m68k/linux.h (ASM_SPEC): Likewise.
16731 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16732 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16733 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16734 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16735 * config/sparc/linux.h (ASM_SPEC): Likewise.
16736 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16737 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16738 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16740 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16743 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16745 (vec_extract_evenodd_help): Ditto.
16746 (vec_extract_evenv4hi): Ditto.
16747 (vec_extract_oddv4hi): Ditto.
16748 (vec_interleave_lowv2si): Ditto.
16749 (vec_interleave_highv2si): Ditto.
16750 (vec_extract_evenv2si): Ditto.
16751 (vec_extract_oddv2si: Ditto.
16752 (vec_pack_trunc_v2si): Ditto.
16754 2011-01-22 Jan Hubicka <jh@suse.cz>
16757 * cgraph.h (cgraph_local_info): New field can_change_signature.
16758 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16759 signature can change.
16760 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16762 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16763 (cgraph_function_versioning): We can not change signature of functions
16764 that don't allow that.
16765 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16766 (lto_input_node): Likewise.
16767 * ipa-inline.c (compute_inline_parameters): Compute
16768 local.can_change_signature.
16769 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16770 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16771 functions that can not change signature.
16772 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16773 init_cumulative_args): Do not use local calling conventions
16774 for functions that can not change signature.
16776 2011-01-22 Jan Hubicka <jh@suse.cz>
16778 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16780 2011-01-26 Richard Guenther <rguenther@suse.de>
16782 PR tree-optimization/47190
16783 * cgraphunit.c (process_common_attributes): New function.
16784 (process_function_and_variable_attributes): Use it.
16786 2011-01-26 Richard Guenther <rguenther@suse.de>
16789 * cgraphbuild.c (record_eh_tables): Record reference to personality
16792 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16795 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16796 non-debug insns from moving up.
16798 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16801 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16802 t-dlldir{,-x} fragment for build and add it to tmake_file.
16803 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16804 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16805 * config/i386/t-dlldir: New file.
16806 (SHLIB_DLLDIR): Define.
16807 * config/i386/t-dlldir-x: New file.
16808 (SHLIB_DLLDIR): Define.
16809 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16810 (SHLIB_INSTALL): Use it.
16812 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16815 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16816 lower bound of the allowed Thumb-2 coprocessor load/store
16817 index range to -256. Add explaining comment.
16819 2011-01-25 Ian Lance Taylor <iant@google.com>
16821 * godump.c (go_define): Improve lexing of macro expansion to only
16822 accept expressions which match Go spec.
16824 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16827 * tree.c (handle_dll_attribute): Handle it.
16828 * doc/extend.texi (@item dllexport): Mention it.
16829 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16831 2011-01-25 Ian Lance Taylor <iant@google.com>
16833 PR tree-optimization/26854
16834 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16835 (decl_jump_unsafe): Move higher in file, with no other change.
16836 (bind): Set has_jump_unsafe_decl if appropriate.
16837 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16838 (check_earlier_gotos): Likewise.
16839 (c_check_switch_jump_warnings): Likewise.
16841 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16843 * doc/invoke.texi (Warning Options): Add missing hyphen.
16844 (-fprofile-dir): Minor grammatical fixes.
16845 (-fbranch-probabilities): Likewise.
16847 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16851 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16853 (no_real_insns_p, schedule_block, set_priorities): Drop special
16854 treatment of boundary debug insns.
16855 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16856 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16857 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16858 (BOUNDARY_DEBUG_INSN_P): Likewise.
16859 (SCHEDULE_DEBUG_INSN_P): Likewise.
16860 * sched-rgn.c (init_ready_list): Drop special treatment of
16861 boundary debug insns.
16862 * final.c (rest_of_clean-state): Clear notes' BB.
16864 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16866 * Makefile.in (LAMBDA_H): Removed.
16867 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16868 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16869 lambda-trans.o, and tree-loop-linear.o.
16870 (lto-symtab.o): Remove dependence on LAMBDA_H.
16871 (tree-loop-linear.o): Remove rule.
16872 (lambda-mat.o): Same.
16873 (lambda-trans.o): Same.
16874 (lambda-code.o): Same.
16875 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16876 (tree-vect-slp.o): Same.
16877 * hwint.h (gcd): Moved here.
16878 (least_common_multiple): Same.
16879 * lambda-code.c: Removed.
16880 * lambda-mat.c: Removed.
16881 * lambda-trans.c: Removed.
16882 * lambda.h: Removed.
16883 * tree-loop-linear.c: Removed.
16884 * lto-symtab.c: Do not include lambda.h.
16885 * omega.c (gcd): Removed.
16886 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16887 * tree-data-ref.c (print_lambda_vector): Moved here.
16888 (lambda_vector_copy): Same.
16889 (lambda_matrix_copy): Same.
16890 (lambda_matrix_id): Same.
16891 (lambda_vector_first_nz): Same.
16892 (lambda_matrix_row_add): Same.
16893 (lambda_matrix_row_exchange): Same.
16894 (lambda_vector_mult_const): Same.
16895 (lambda_vector_negate): Same.
16896 (lambda_matrix_row_negate): Same.
16897 (lambda_vector_equal): Same.
16898 (lambda_matrix_right_hermite): Same.
16899 * tree-data-ref.h: Do not include lambda.h.
16900 (lambda_vector): Moved here.
16901 (lambda_matrix): Same.
16902 (dependence_level): Same.
16903 (lambda_transform_legal_p): Removed declaration.
16904 (lambda_collect_parameters): Same.
16905 (lambda_compute_access_matrices): Same.
16906 (lambda_vector_gcd): Same.
16907 (lambda_vector_new): Same.
16908 (lambda_vector_clear): Same.
16909 (lambda_vector_lexico_pos): Same.
16910 (lambda_vector_zerop): Same.
16911 (lambda_matrix_new): Same.
16912 * tree-flow.h (least_common_multiple): Removed declaration.
16913 * tree-parloops.c (lambda_trans_matrix): Moved here.
16914 (LTM_MATRIX): Same.
16915 (LTM_ROWSIZE): Same.
16916 (LTM_COLSIZE): Same.
16917 (LTM_DENOMINATOR): Same.
16918 (lambda_trans_matrix_new): Same.
16919 (lambda_matrix_vector_mult): Same.
16920 (lambda_transform_legal_p): Same.
16921 * tree-pass.h (pass_linear_transform): Removed declaration.
16922 * tree-ssa-loop.c (tree_linear_transform): Removed.
16923 (gate_tree_linear_transform): Removed.
16924 (pass_linear_transform): Removed.
16925 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16926 flag_loop_interchange.
16928 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16930 PR tree-optimization/47265
16931 PR tree-optimization/47443
16932 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16933 if name still has some uses.
16935 2011-01-25 Martin Jambor <mjambor@suse.cz>
16937 PR tree-optimization/47382
16938 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16939 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16941 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16943 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16944 sjlj_except_unwind_info.
16946 2011-01-25 Richard Guenther <rguenther@suse.de>
16948 PR tree-optimization/47426
16949 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16950 visible functions results escape.
16952 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16955 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16956 (arm_get_frame_offsets): Use it.
16958 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16959 Jakub Jelinek <jakub@redhat.com>
16961 PR tree-optimization/47271
16962 * tree-if-conv.c (bb_postdominates_preds): New.
16963 (if_convertible_bb_p): Call bb_postdominates_preds.
16964 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16965 (predicate_scalar_phi): Call bb_postdominates_preds.
16967 2011-01-25 Nick Clifton <nickc@redhat.com>
16969 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16970 * config/rx/rx.c (rx_function_value): Likewise.
16971 (rx_promote_function_mode): Likewise.
16972 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16973 in order to make it legitimate.
16974 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16975 make sure that the first operand is the same as the result register.
16976 (addsi3_unspec): Delete.
16977 (subdi3): Do not accept immediate operands.
16978 (subdi3_internal): Likewise.
16980 2011-01-25 Jeff Law <law@redhat.com>
16982 PR rtl-optimization/37273
16983 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16984 handle them like argument loads from stack slots. Do not double
16985 count memory for memory constants and argument loads from stack slots.
16987 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16989 PR tree-optimization/47427
16990 PR tree-optimization/47428
16991 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16992 coalesce if the new root var would be TREE_READONLY.
16994 2011-01-25 Richard Guenther <rguenther@suse.de>
16996 PR middle-end/47414
16997 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16998 correct type for TBAA.
17000 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17002 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17003 (close_phi_written_to_memory): Call for_each_index with
17004 dr_indices_valid_in_loop.
17006 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17008 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17009 when it is initialized.
17011 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17013 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17014 call to graphite_find_data_references_in_stmt.
17015 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17016 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17017 call to graphite_find_data_references_in_stmt.
17018 (analyze_drs_in_stmts): Same.
17019 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17020 in which the scalar analysis of indices is performed.
17021 (create_data_ref): Same. Update call to dr_analyze_indices.
17022 (find_data_references_in_stmt): Update call to create_data_ref.
17023 (graphite_find_data_references_in_stmt): Same.
17024 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17026 (create_data_ref): Same.
17027 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17028 call to create_data_ref.
17030 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17032 * graphite-sese-to-poly.c (build_poly_scop): Move
17033 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17035 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17037 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17038 VAR_DECL, PARM_DECL, and RESULT_DECL.
17040 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17042 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17043 in a reduction PBB.
17044 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17045 that have already been marked as PBB_IS_REDUCTION.
17047 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17049 * graphite-scop-detection.c (same_close_phi_node): New.
17050 (remove_duplicate_close_phi): New.
17051 (make_close_phi_nodes_unique): New.
17052 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17054 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17056 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17057 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17058 of both data references to be the same.
17060 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17062 * graphite-dependences.c (build_lexicographical_constraint): Remove
17063 the gdim parameter.
17064 (build_lexicographical_constraint): Adjust call to
17065 ppl_powerset_is_empty.
17066 (dependence_polyhedron): Same.
17067 (graphite_legal_transform_dr): Same.
17068 (graphite_carried_dependence_level_k): Same.
17069 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17071 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17073 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17075 * graphite-sese-to-poly.c
17076 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17077 (close_phi_written_to_memory): New.
17078 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17081 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17083 * doc/install.texi: Update the expected version number of PPL to 0.11.
17084 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17085 #if PPL_VERSION_MINOR < 11.
17087 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17089 * graphite-dependences.c: Include graphite-cloog-util.h.
17090 (new_poly_ddr): Inlined into dependence_polyhedron.
17091 (free_poly_ddr): Moved close by new_poly_ddr.
17092 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17093 Early return NULL when ppl_powerset_is_empty returns true.
17094 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17095 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17096 (graphite_legal_transform_dr): Call new_poly_ddr.
17097 (graphite_carried_dependence_level_k): Same.
17098 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17099 (dot_transformed_deps_stmt_1): Removed.
17100 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17101 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17102 (dot_deps_1): Call dot_deps_2.
17103 * Makefile.in (graphite-dependences.o): Add missing dependence on
17104 graphite-cloog-util.h.
17106 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17108 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17109 (build_lexicographical_constraint): Same.
17110 (dependence_polyhedron_1): Same.
17111 (graphite_legal_transform_dr): Same.
17112 (graphite_carried_dependence_level_k): Same.
17113 * graphite-ppl.c (ppl_powerset_is_empty): New.
17114 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17115 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17117 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17119 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17120 the "a followed by b" relation and document it.
17122 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17124 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17125 iteration when the bag of constraints is empty.
17127 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17129 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17131 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17133 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17134 nest and two loop depths as parameters.
17135 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17136 lst_perfect_nestify.
17138 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17140 * graphite-dependences.c (print_pddr): Call
17141 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17143 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17145 * graphite-ppl.c (debug_gmp_value): New.
17146 * graphite-ppl.h (debug_gmp_value): Declared.
17148 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17150 * doc/install.texi: Document availability of cloog-0.16.
17152 2011-01-25 Vladimir Kargov <kargov@gmail.com>
17154 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17155 invalid postdominance info.
17157 2011-01-24 Jan Hubicka <jh@suse.cz>
17160 * doc/extend.texi (weak pragma): Drop claim that it must
17161 appear before definition.
17162 * varasm.c (merge_weak, declare_weak): Only sanity check
17163 that DECL is not output at a time it is declared weak.
17165 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17167 * machmode.def: Fixed comments.
17169 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
17171 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17173 2011-01-24 Paul Koning <ni1d@arrl.net>
17175 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17178 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17181 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17182 (block_info): Add scanned and prev.
17183 (move_or_delete_vzeroupper_2): Return if the basic block
17184 has been scanned and the upper 128bit state is unchanged
17185 from the last scan.
17186 (move_or_delete_vzeroupper_1): Return true if the exit
17188 (move_or_delete_vzeroupper): Visit basic blocks using the
17189 work-list based algorithm based on vt_find_locations in
17192 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17194 2011-01-24 Nick Clifton <nickc@redhat.com>
17196 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17197 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17198 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17199 then define __v850e1__.
17200 * doc/invoke.texi: Document -mv850es.
17202 2011-01-24 Richard Henderson <rth@redhat.com>
17204 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17205 compound unordered comparisons.
17206 * config/rx/rx.c (rx_split_fp_compare): Remove.
17207 * config/rx/rx-protos.h: Update.
17208 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17209 (cbranchsf4): Don't call rx_split_fp_compare.
17210 (*cbranchsf4): Use rx_split_cbranch.
17211 (*cmpsf): Don't accept "i" constraint.
17212 (*conditional_branch): Only valid after reload.
17213 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17215 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17218 * config/rs6000/altivec.md (vector constant splitters): Add
17219 support for creating vector single precision constants if -mvsx is
17220 used and we would create the constant using Altivec primitives.
17222 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17223 Richard Sandiford <rdsandiford@googlemail.com>
17225 PR rtl-optimization/47166
17226 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17227 mechanism for PRE_MODIFY and POST_MODIFY.
17228 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17231 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17233 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17235 2011-01-22 Jan Hubicka <jh@suse.cz>
17238 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17240 2011-01-22 Jan Hubicka <jh@suse.cz>
17242 PR tree-optimization/43884
17244 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17245 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17247 2011-01-22 Anatoly Sokolov <aesok@post.ru>
17249 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17250 * config/s390/s390.c (s390_register_move_cost,
17251 s390_memory_move_cost): New.
17252 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17254 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17256 PR middle-end/47401
17257 * except.c (sjlj_assign_call_site_values): Move setting the
17258 crtl->uses_eh_lsda flag to ...
17259 (sjlj_mark_call_sites): ... here.
17260 (sjlj_emit_function_enter): Support NULL dispatch label.
17261 (sjlj_build_landing_pads): In a function with no landing pads
17262 that still has must-not-throw regions, generate code to register
17263 a personality function with empty LSDA.
17265 2011-01-21 Richard Henderson <rth@redhat.com>
17267 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17269 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17271 * compare-elim.c: New file.
17272 * Makefile.in (OBJS-common): Add it.
17273 (compare-elim.o): New.
17274 * common.opt (fcompare-elim): New.
17275 * opts.c (default_options_table): Add OPT_fcompare_elim.
17276 * tree-pass.h (pass_compare_elim_after_reload): New.
17277 * passes.c (init_optimization_passes): Add it.
17278 * recog.h: Protect against re-inclusion.
17279 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17280 * doc/invoke.texi (-fcompare-elim): Document it.
17281 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17282 * doc/tm.texi: Rebuild.
17284 2011-01-22 Nick Clifton <nickc@redhat.com>
17286 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17287 rx_split_fp_compare.
17289 2011-01-22 Nick Clifton <nickc@redhat.com>
17291 * config/rx/rx.md (UNSPEC_CONST): New.
17292 (deallocate_and_return): Wrap the amount popped off the stack in
17293 an UNSPEC_CONST in order to stop it being rejected by
17294 -mmax-constant-size.
17295 (pop_and_return): Add a "(return)" rtx.
17296 (call): Drop the immediate operand.
17297 (call_internal): Likewise.
17298 (call_value): Likewise.
17299 (call_value_internal): Likewise.
17300 (sibcall_internal): Likewise.
17301 (sibcall_value_internal): Likewise.
17302 (sibcall): Likewise. Generate an explicit call using
17304 (sibcall_value): Likewise.
17305 (mov<>): FAIL if a constant operand is not legitimate.
17306 (addsi3_unpsec): New pattern.
17308 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17309 (ok_for_max_constant): New function.
17310 (gen_safe_add): New function.
17311 (rx_expand_prologue): Use gen_safe_add.
17312 (rx_expand_epilogue): Likewise.
17313 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17316 2011-01-21 Jeff Law <law@redhat.com>
17318 PR tree-optimization/47053
17319 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17320 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17321 statements are deleted.
17322 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17323 is nonempty, then purge dead edges and cleanup the CFG.
17325 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17328 Temporarily revert:
17329 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17331 * tree-dfa.c (create_var_ann): Mark variable as used.
17333 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17335 PR middle-end/45566
17336 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17337 notes from other section in hot/cold partitioning even if
17338 last_action is -3. Increment call_site_base.
17340 PR rtl-optimization/47366
17341 * fwprop.c (forward_propagate_into): Return bool. If
17342 any changes are made, -fnon-call-exceptions is used and
17343 REG_EH_REGION note is present, call purge_dead_edges
17344 and return true if it purged anything.
17345 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17346 any EH edges were purged.
17348 2011-01-21 Jeff Law <law@redhat.com>
17350 PR rtl-optimization/41619
17351 * caller-save.c (setup_save_areas): Break out code to determine
17352 which hard regs are live across calls by examining the reload chains
17353 so that it is always used.
17354 Eliminate code which checked REG_N_CALLS_CROSSED.
17356 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17358 PR tree-optimization/47355
17359 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17360 NOP has non-debug uses beyond PHIs in new_bb.
17362 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17365 * cfgexpand.c (account_used_vars_for_block): Only account vars
17366 that are annotated as used.
17367 (estimated_stack_frame_size): Don't set TREE_USED.
17368 * tree-dfa.c (create_var_ann): Mark variable as used.
17370 2011-01-21 Richard Guenther <rguenther@suse.de>
17372 PR middle-end/47395
17373 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17375 2011-01-21 Richard Guenther <rguenther@suse.de>
17377 PR tree-optimization/47365
17378 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17379 (vn_reference_lookup_pieces): Adjust.
17380 (vn_reference_lookup): Likewise.
17381 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17382 (vn_reference_lookup_3): Only look through kills if in
17383 VN_WALKREWRITE mode.
17384 (vn_reference_lookup_pieces): Adjust.
17385 (vn_reference_lookup): Likewise.
17386 (visit_reference_op_load): Likewise.
17387 (visit_reference_op_store): Likewise.
17388 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17389 (compute_avail): Likewise.
17390 (eliminate): Likewise.
17392 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17394 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17395 DECL_IGNORED_P non-reg vars if they are used.
17397 PR tree-optimization/47391
17398 * varpool.c (const_value_known_p): Return false if
17401 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
17404 * config/i386/i386.c (ix86_local_alignment): Handle
17405 case for va_list_type_node is nil.
17406 (ix86_canonical_va_list_type): Likewise.
17408 2011-01-21 Alan Modra <amodra@gmail.com>
17410 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17411 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17413 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17415 * config/arm/arm.md (define_attr type): Rename f_load
17416 and f_store to f_fpa_load and f_fpa_store. Update.
17417 (write_conflict): Deal with rename fallout.
17418 (*push_fp_multi): Likewise.
17419 * config/arm/fpa.md (f_load): Use f_fpa_load.
17420 (f_store): Use f_fpa_store.
17421 (*movsf_fpa): Likewise.
17422 (*movdf_fpa): Likewise.
17423 (*movxf_fpa): Likewise.
17424 (*thumb2_movsf_fpa): Likewise.
17425 (*thumb2_movdf_fpa): Likewise.
17426 (*thumb2_movxf_fpa): Likewise.
17427 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17428 f_loadd and f_stored.
17429 (*thumb2_movdi_vfp): Likewise.
17430 (*thumb2_movsf_vfp): Fix attribute to f_loads.
17431 (*thumb2_movsi_vfp): Likewise.
17432 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17433 Use f_loads instead of f_load.
17434 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17436 2011-01-20 Anatoly Sokolov <aesok@post.ru>
17438 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17439 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17440 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17441 (xtensa_mode_dependent_address_p): New function.
17442 (constantpool_address_p): Make static. Change return type to bool.
17443 Change argument type to const_rtx. Use CONST_INT_P predicate.
17445 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
17448 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17450 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17453 * cfgexpand.c (expand_debug_expr): Instead of generating
17454 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17457 2011-01-20 Richard Guenther <rguenther@suse.de>
17459 PR middle-end/47370
17460 * tree-inline.c (remap_gimple_op_r): Recurse manually for
17461 the pointer operand of MEM_REFs.
17463 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17465 PR tree-optimization/46130
17466 * ipa-split.c (consider_split): If return_bb contains non-virtual
17467 PHIs other than for retval or if split_function would not adjust it,
17470 2011-01-20 Richard Guenther <rguenther@suse.de>
17472 PR tree-optimization/47167
17473 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17474 Revert previous change, only avoid enumeral type changes.
17476 2011-01-19 Mike Stump <mikestump@comcast.net>
17478 * doc/tm.texi.in (BRANCH_COST): Englishify.
17479 * doc/tm.texi (BRANCH_COST): Likewise.
17481 2011-01-19 Dodji Seketeli <dodji@redhat.com>
17484 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
17485 (gen_scheduled_generic_parms_dies): New functions.
17486 (gen_struct_or_union_type_die): Schedule template parameters DIEs
17487 generation for the end of CU compilation.
17488 (dwarf2out_finish): Generate template parameters DIEs here.
17490 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17493 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
17494 debug bind stmt on merge edges.
17496 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17500 * function.c (instantiate_expr): Instantiate incoming rtl of
17501 implicit arguments, and recurse on VALUE_EXPRs.
17502 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
17503 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
17505 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17507 * c-parser.c (c_parser_for_statement): Initialize
17508 collection_expression.
17510 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17512 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
17514 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17516 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
17517 (LINK_SHLIB_SPEC): Don't use %(link_path).
17518 (SUBTARGET_EXTRA_SPECS): Remove link_path.
17520 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17522 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
17523 (NO_SHARED_LIB_SUPPORT): Remove.
17524 (LINK_SHLIB_SPEC): Remove one conditional definition.
17526 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17528 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
17530 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
17531 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
17532 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
17533 %{call_shared} and conditionals on these options not being passed.
17534 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17537 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17539 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17542 * ipa-split.c: Spelling fixes.
17544 2011-01-19 Richard Henderson <rth@redhat.com>
17546 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17547 (*mulsi3): Likewise.
17549 * longlong.h [__mn10300__] (count_leading_zeros): New.
17550 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17551 [__mn10300__] (add_ssaaaa, subddmmss): New.
17552 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17553 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17555 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17557 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17559 2011-01-19 Richard Henderson <rth@redhat.com>
17561 * config/mn10300/mn10300.md (addsi3_flags): New.
17562 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17563 (subsi3_flags, subc_internal, subdi3): New.
17564 (subdi3_internal, *subdi3_degenerate): New.
17565 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17567 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17568 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17569 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17570 * config/mn10300/mn10300-protos.h: Update.
17571 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17572 (return_ret): Likewise. Rename from return_internal_regs.
17573 (return_internal): Remove.
17575 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17576 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17577 (mn10300_legitimate_constant_p): Likewise.
17578 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17579 (mn10300_frame_size): New.
17580 (mn10300_expand_prologue): Use it.
17581 (mn10300_expand_epilogue): Likewise.
17582 (mn10300_initial_offset): Likewise.
17583 * config/mn10300/mn10300-protos.h: Update.
17584 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17585 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17586 (prologue, epilogue, return_internal): Tidy output code.
17587 (mn10300_store_multiple_operation, return): Likewise.
17588 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17589 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17590 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17591 (load_pic, am33_load_pic): New.
17592 (mn10300_load_pic0, mn10300_load_pic1): New.
17594 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17595 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17596 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17597 (cc_flags_for_mode, cc_flags_for_code): New.
17598 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17599 overflow flag is not valid. Validate that the flags we need
17600 for the comparison are valid.
17601 (mn10300_output_cmp): Remove.
17602 (mn10300_output_add): New.
17603 (mn10300_select_cc_mode): Use cc_flags_for_code.
17604 (mn10300_split_cbranch): New.
17605 (mn10300_match_ccmode): New.
17606 (mn10300_split_and_operand_count): New.
17607 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17609 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17610 (addsi3): ... here. Use mn10300_output_add.
17611 (*addsi3_flags): New.
17612 (*am33_subsi3, *mn10300_subsi3): Merge...
17613 (subsi3): ... here. Use attribute isa.
17614 (*subsi3_flags): New.
17615 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17617 (*am33_andsi3, *mn10300_andsi3): Merge...
17618 (andsi3): ... here.
17619 (*andsi3_flags): New.
17620 (andsi3 splitters): New.
17621 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17622 (iorsi3): ... here.
17623 (*iorsi3_flags): New.
17624 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17625 (xorsi3): ... here.
17626 (*xorsi3_flags): New.
17627 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17628 (one_cmplsi2): ... here.
17629 (*one_cmplsi2_flags): New.
17630 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17631 instead of "dax" in constraints. Use mn10300_split_cbranch.
17632 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17633 use matching constraints to eliminate a self-comparison.
17634 (*integer_conditional_branch): Rename from integer_conditional_branch.
17635 Use int_mode_flags to match CC_REG.
17636 (*cbranchsi4_btst, *btstsi): New.
17637 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17638 mn10300_split_cbranch.
17639 (*am33_cmpsf): Rename from am33_cmpsf.
17640 (*float_conditional_branch): Rename from float_conditional_branch.
17641 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17642 (zero_extendqisi2): ... here.
17643 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17644 (zero_extendhisi2): ... here.
17645 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17646 (extendqisi2): ... here.
17647 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17648 (extendhisi2): ... here.
17649 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17650 (ashlsi3): ... here.
17651 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17652 (lshrsi3): ... here.
17653 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17654 (ashrsi3): ... here.
17655 (consecutive add peephole): Remove.
17656 * config/mn10300/predicates.md (label_ref_operand): New.
17657 (int_mode_flags): New.
17658 (CCZN_comparison_operator): New.
17660 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17661 (throughput_42_latency_43): New reservation.
17662 (mulsidi3, umulsidi3): New expanders.
17663 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17664 the MDR register to allocation; separately allocate the low and
17665 high parts of the DImode result.
17666 (umulsidi3_internal): Similarly.
17667 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17668 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17669 (udivsi3, umodsi3): Remove.
17670 (udivmodsi4, divmodsi4): New expanders.
17671 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17672 (*divmodsi4): Simiarly.
17673 (ext_internal): New.
17675 * config/mn10300/constraints.md ("z"): New constraint.
17676 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17677 (FIXED_REGISTERS): Don't fix MDR.
17678 (CALL_USED_REGSITERS): Reformat nicely.
17679 (REG_ALLOC_ORDER): Add MDR.
17680 (enum regclass): Add MDR_REGS.
17681 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17682 (IRA_COVER_CLASSES): Add MDR_REGS.
17683 (REGNO_REG_CLASS): Handle MDR_REG.
17684 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17685 (mn10300_register_move_cost): Likewise.
17686 * config/mn10300/mn10300.md (MDR_REG): New.
17687 (*movsi_internal): Handle moves to/from MDR_REGS.
17689 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17691 (mn10300_secondary_reload): Tidy combination reload classes.
17692 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17693 addresses for AM33. Allow symbolic offsets for reg+imm.
17694 (mn10300_regno_in_class_p): New.
17695 (mn10300_legitimize_reload_address): New.
17696 * config/mn10300/mn10300.h (enum reg_class): Remove
17697 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17698 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17699 SP_OR_GENERAL_REGS.
17700 (REG_CLASS_NAMES): Update to match.
17701 (REG_CLASS_CONTENTS): Likewise.
17702 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17703 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17704 (REGNO_IN_RANGE_P): Remove.
17705 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17706 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17707 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17708 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17709 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17710 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17711 (REGNO_GENERAL_P): New.
17712 (HAVE_POST_MODIFY_DISP): New.
17713 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17714 (LEGITIMIZE_RELOAD_ADDRESS): New.
17715 * config/mn10300/mn10300-protos.h: Update.
17717 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17718 DATA_REGS for AM33 stack-pointer destination.
17719 (mn10300_preferred_output_reload_class): Likewise.
17720 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17721 into a form appropriate for ...
17722 (TARGET_SECONDARY_RELOAD): New.
17723 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17724 * config/mn10300/mn10300-protos.h: Update.
17725 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17726 reload_insi; use the "A" constraint for the scratch; handle AM33
17727 moves of sp to non-address registers.
17729 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17730 (*movqi_internal): ... here.
17731 (*am33_movhi, *mn10300_movhi): Merge into...
17732 (*movhi_internal): ... here.
17733 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17734 as the source/destination of moves from/to SP.
17735 (movsf): Only allow for AM33-2.
17736 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17737 any integer constant constraint. Only allow for AM33-2. Tidy
17738 all of the alternative outputs.
17739 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17740 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17742 (udivsi3, umodsi3): New patterns for MN103 only.
17744 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17746 * doc/tm.texi.in: Spell out that a lack of register class unions
17748 * doc/tm.texi: Regenerate.
17750 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17752 PR rtl-optimization/47337
17753 * dce.c (check_argument_store): New function.
17754 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17756 PR tree-optimization/47290
17757 * tree-eh.c (infinite_empty_loop_p): New function.
17758 (cleanup_empty_eh): Use it.
17760 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17763 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17764 (a64_expand_widen_sum): Ditto.
17765 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17766 (vec_extract_evenodd_help): Ditto.
17767 (vec_extract_evenv4hi): Ditto.
17768 (vec_extract_oddv4hi): Ditto.
17769 (vec_extract_evenv2si): Ditto.
17770 (vec_extract_oddv2si): Ditto.
17771 (vec_extract_evenv2sf): Ditto.
17772 (vec_extract_oddv2sf): Ditto.
17773 (vec_pack_trunc_v4hi: Ditto.
17774 (vec_pack_trunc_v2si): Ditto.
17775 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17776 (vec_interleave_highv8qi): Ditto.
17778 (vec_extract_oddv8qi): Ditto.
17779 (vec_interleave_lowv4hi): Ditto.
17780 (vec_interleave_highv4hi): Ditto.
17781 (vec_interleave_lowv2si): Ditto.
17782 (vec_interleave_highv2si): Ditto.
17784 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17786 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17787 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17788 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17789 (pa_c_mode_for_suffix): New.
17790 (TARGET_EXPAND_BUILTIN): Define.
17791 (TARGET_C_MODE_FOR_SUFFIX): Define.
17792 (pa_builtins): Define.
17793 (pa_init_builtins): Register __float128 type and init new support
17795 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17796 * config/pa/quadlib.c (_U_Qfcopysign): New.
17798 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17800 PR middle-end/46894
17801 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17802 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17805 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17807 PR tree-optimization/47179
17808 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17809 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17811 2011-01-18 Richard Guenther <rguenther@suse.de>
17813 PR rtl-optimization/47216
17814 * emit-rtl.c: Include tree-flow.h.
17815 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17816 of replicating it with different semantics.
17817 * Makefile.in (emit-rtl.o): Adjust.
17819 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17821 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17822 (cortex_a9_dp): Handle neon types correctly.
17824 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17826 PR rtl-optimization/47299
17827 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17828 subtarget. Use normal multiplication if both operands are constants.
17829 * expmed.c (expand_widening_mult): Don't try to optimize constant
17830 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17833 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17835 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17836 spacing after 'e.g.', typos, comma, hyphenation.
17838 2011-01-17 Richard Henderson <rth@redhat.com>
17840 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17841 (rx_restricted_mem_operand): New.
17842 (rx_shift_operand): Use register_operand.
17843 (rx_source_operand, rx_compare_operand): Likewise.
17844 * config/rx/rx.md (addsi3_flags): New expander.
17845 (adddi3): Rewrite as expander.
17846 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17847 (subsi3_flags): New expander.
17848 (subdi3): Rewrite as expander.
17849 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17851 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17852 (rx_init_builtins): Remove sat builtin.
17853 (rx_expand_builtin): Likewise.
17854 * config/rx/rx.md (ssaddsi3): New.
17855 (*sat): Rename from sat. Represent the CC_REG input.
17857 * config/rx/predicates.md (rshift_operator): New.
17858 * config/rx/rx.c (rx_expand_insv): Remove.
17859 * config/rx/rx-protos.h: Update.
17860 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17861 operand to the canonical position.
17862 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17863 (*bitclr, *bitclr_in_memory): Similarly.
17864 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17865 (insv): Retain the zero_extract in the expansion.
17867 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17868 (bswaphi2, bitinvert, revw): Likewise.
17870 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17871 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17872 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17873 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17874 (bitset, bitset_in_memory): Likewise.
17875 (bitinvert, bitinvert_in_memory): Likewise.
17876 (bitclr, bitclr_in_memory): Likewise.
17877 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17878 (rx_strend, rx_cmpstrn): Likewise.
17879 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17880 (bitop peep2 patterns): Remove.
17882 * config/rx/rx.c (rx_match_ccmode): New.
17883 * config/rx/rx-protos.h: Update.
17884 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17885 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17886 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17887 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17888 (fix_truncsfsi2, floatsisf2): Likewise.
17889 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17890 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17891 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17892 (*subsi3_flags, *xorsi3_flags): New.
17894 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17896 * config/rx/rx.c (rx_print_operand): Remove workaround for
17897 unsplit comparison operations.
17899 * config/rx/rx.md (movsicc): Split after reload.
17900 (*movsicc): Merge *movsieq and *movsine via match_operator.
17901 (*stcc): New pattern.
17903 * config/rx/rx.c (rx_float_compare_mode): Remove.
17904 * config/rx/rx.h (rx_float_compare_mode): Remove.
17905 * config/rx/rx.md (cstoresi4): Split after reload.
17906 (*sccc): New pattern.
17908 * config/rx/predicates.md (label_ref_operand): New.
17909 (rx_z_comparison_operator): New.
17910 (rx_zs_comparison_operator): New.
17911 (rx_fp_comparison_operator): New.
17912 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17913 Validate that the flags are set properly for the comparison.
17914 (rx_gen_cond_branch_template): Remove.
17915 (rx_cc_modes_compatible): Remove.
17916 (mode_from_flags): New.
17917 (flags_from_code): Rename from flags_needed_for_conditional.
17918 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17919 (rx_select_cc_mode): Likewise.
17920 (rx_split_fp_compare): New.
17921 (rx_split_cbranch): New.
17922 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17923 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17924 (*cbranchsf4): Similarly.
17925 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17926 match_operator and rx_split_cbranch.
17927 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17928 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17929 (*cmpsi): Rename from cmpsi.
17930 (*tstsi): Rename from tstsi.
17931 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17932 (*conditional_branch): Rename from conditional_branch.
17933 (*reveresed_conditional_branch): Remove.
17934 (b<code>): Remove expander.
17935 * config/rx/rx-protos.h: Update.
17937 * config/rx/rx.c (rx_compare_redundant): Remove.
17938 * config/rx/rx.md (cmpsi): Don't use it.
17939 * config/rx/rx-protos.h: Update.
17941 * config/rx/rx-modes.def (CC_F): New mode.
17942 * config/rx/rx.c (rx_select_cc_mode): New.
17943 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17944 * config/rx/rx-protos.h: Update.
17946 2011-01-17 Richard Henderson <rth@redhat.com>
17948 * except.c (dump_eh_tree): Fix stray ; after for statement.
17950 2011-01-17 Richard Guenther <rguenther@suse.de>
17952 PR tree-optimization/47313
17953 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17954 handling before copying the body. Properly deal with
17955 by-reference result in SSA form.
17957 2011-01-17 Ian Lance Taylor <iant@google.com>
17960 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17961 (struct_value_alias_set): Don't define.
17962 (sparc_option_override): Don't set sparc_sr_alias_set and
17963 struct_value_alias_set.
17964 (save_or_restore_regs): Use gen_frame_mem rather than calling
17966 (sparc_struct_value_rtx): Likewise.
17968 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17971 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17972 (_mm_maskstore_pd): Likewise.
17973 (_mm_maskload_ps): Likewise.
17974 (_mm_maskstore_ps): Likewise.
17975 (_mm256_maskload_pd): Change mask to __m256i.
17976 (_mm256_maskstore_pd): Likewise.
17977 (_mm256_maskload_ps): Likewise.
17978 (_mm256_maskstore_ps): Likewise.
17980 * config/i386/i386-builtin-types.def: Updated.
17981 (ix86_expand_special_args_builtin): Likewise.
17983 * config/i386/i386.c (bdesc_special_args): Update
17984 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17985 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17986 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17987 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17989 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17990 Use <avxpermvecmode> on mask register.
17991 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17993 2011-01-17 Olivier Hainque <hainque@adacore.com>
17994 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17995 Eric Botcazou <ebotcazou@adacore.com>
17998 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17999 if <= USHRT_MAX in 32-bit mode.
18001 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18003 * doc/install.texi (Configuration, Specific): Wrap long
18004 lines in examples. Allow line wrapping in long options
18005 and URLs where beneficial for PDF output.
18007 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18009 * config/mips/mips.c (mips_classify_symbol): Don't return
18010 SYMBOL_PC_RELATIVE for nonlocal labels.
18012 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
18014 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18016 2011-01-15 Jan Hubicka <jh@suse.cz>
18018 PR tree-optimization/47276
18019 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18020 declarations as needed.
18022 2011-01-15 Martin Jambor <mjambor@suse.cz>
18024 * common.opt (fdevirtualize): New flag.
18025 * doc/invoke.texi (Option Summary): Document it.
18026 * opts.c (default_options_table): Add devirtualize flag.
18027 * ipa-prop.c (detect_type_change): Return immediately if
18028 devirtualize flag is not set.
18029 (detect_type_change_ssa): Likewise.
18030 (compute_known_type_jump_func): Likewise.
18031 (ipa_analyze_virtual_call_uses): Likewise.
18033 2011-01-14 Martin Jambor <mjambor@suse.cz>
18035 PR tree-optimization/45934
18036 PR tree-optimization/46302
18037 * ipa-prop.c (type_change_info): New type.
18038 (stmt_may_be_vtbl_ptr_store): New function.
18039 (check_stmt_for_type_change): Likewise.
18040 (detect_type_change): Likewise.
18041 (detect_type_change_ssa): Likewise.
18042 (compute_complex_assign_jump_func): Check for dynamic type change.
18043 (compute_complex_ancestor_jump_func): Likewise.
18044 (compute_known_type_jump_func): Likewise.
18045 (compute_scalar_jump_functions): Likewise.
18046 (ipa_analyze_virtual_call_uses): Likewise.
18047 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18049 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18051 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18052 * config/i386/i386.opt (msse5): New Alias.
18054 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18056 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18057 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18058 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18059 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18061 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18063 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18065 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18066 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18067 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18068 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18070 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18072 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18074 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18076 2011-01-14 Mike Stump <mikestump@comcast.net>
18078 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18079 * config/fr30/fr30.md: Likweise
18080 (movsi_push): Likewise.
18081 (movsi_pop): Likewise.
18082 (enter_func): Likewise.
18083 * config/moxie/moxie.md (movsi_push): Likewise.
18084 (movsi_pop): Likewise.
18086 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18088 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18089 %{no_archive} %{exact_version}.
18090 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18091 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18092 %{no_archive} %{exact_version}.
18093 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18094 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18095 * config/mips/vxworks.h: Likewise.
18097 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18099 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18101 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18103 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18104 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18106 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18108 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18111 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18113 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18115 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18116 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18118 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18119 Don't handle -shlib.
18121 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18123 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18124 (CC1_SPEC): Don't handle -profile.
18126 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18128 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18129 * config/mips/mips.h (CC1_SPEC): Likewise.
18131 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18133 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18134 * config/mips/mips.h (CC1_SPEC): Likewise.
18136 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18138 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18139 * config/m32r/linux.h (LINK_SPEC): Likewise.
18140 * config/mips/linux.h (LINK_SPEC): Likewise.
18141 * config/mips/linux64.h (LINK_SPEC): Likewise.
18142 * config/sparc/linux.h (LINK_SPEC): Likewise.
18143 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18144 LINK_SPEC): Likewise.
18145 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18147 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18149 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18151 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18153 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18155 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18156 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18158 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18160 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18162 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18164 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18165 supports -Bstatic/-Bdynamic.
18166 * configure: Regenerate.
18168 2011-01-14 Jan Hubicka <jh@suse.cz>
18169 Jack Howarth <howarth@bromo.med.uc.edu>
18172 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18173 when checking debug_info_level. Test write_symbols instead of
18174 debug_hooks->var_location when setting flag_var_tracking_uninit.
18176 2011-01-14 Richard Guenther <rguenther@suse.de>
18178 PR tree-optimization/47179
18179 * target.def (ref_may_alias_errno): New target hook.
18180 * targhooks.h (default_ref_may_alias_errno): Declare.
18181 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18182 (default_ref_may_alias_errno): New function.
18183 * target.h (struct ao_ref_s): Declare.
18184 * tree-ssa-alias.c: Include target.h.
18185 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18186 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18187 (targhooks.o): Likewise.
18188 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18189 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18191 2011-01-14 Richard Guenther <rguenther@suse.de>
18193 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18195 2011-01-14 Richard Guenther <rguenther@suse.de>
18197 PR tree-optimization/47280
18198 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18199 return CFG changes.
18200 (tree_ssa_forward_propagate_single_use_vars): Deal with
18201 CFG changes from associate_plusminus.
18203 2011-01-14 Richard Guenther <rguenther@suse.de>
18205 PR middle-end/47281
18207 2011-01-11 Richard Guenther <rguenther@suse.de>
18209 PR tree-optimization/46076
18210 * tree-ssa.c (useless_type_conversion_p): Conversions from
18211 unprototyped to empty argument list function types are useless.
18213 2011-01-14 Richard Guenther <rguenther@suse.de>
18215 PR tree-optimization/47286
18216 * tree-ssa-structalias.c (new_var_info): Register variables are global.
18218 2011-01-14 Martin Jambor <mjambor@suse.cz>
18220 PR middle-end/46823
18221 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18223 2011-01-13 Anatoly Sokolov <aesok@post.ru>
18225 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18226 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18227 * config/xtensa/xtensa.c (xtensa_libcall_value,
18228 xtensa_function_value_regno_p): New functions.
18229 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18231 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
18234 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18236 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18237 New function prototype.
18238 * config/i386/winnt.c (i386_pe_assemble_visibility):
18239 Warn only if attribute was specified by user.
18241 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18244 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18246 (floatunsdidf2_fcfidu): Ditto.
18248 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18250 * config/s390/s390.c (print_operand_address): Replace 'error' with
18251 'output_operand_lossage'.
18252 (print_operand): Likewise.
18254 2011-01-13 Jeff Law <law@redhat.com>
18256 PR rtl-optimization/39077
18257 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18258 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18259 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18260 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18261 * gcse.c (prune_insertions_deletions): New function.
18262 (compute_pre_data): Use it.
18264 2011-01-13 Dodji Seketeli <dodji@redhat.com>
18267 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18269 (prune_unused_types_mark): Use it.
18271 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
18273 PR rtl-optimization/45352
18274 * sel-sched.c: Update copyright years.
18275 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18276 in the advancing loop when we have issued issue_rate insns.
18278 2011-01-12 Richard Henderson <rth@redhat.com>
18280 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18281 (TARGET_MD_ASM_CLOBBERS): New.
18283 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18284 (TARGET_DELEGITIMIZE_ADDRESS): New.
18286 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18287 (clzsi2, *bsch): New patterns.
18289 * config/mn10300/mn10300.md (INT): New mode iterator.
18290 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18292 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18293 flag_split_wide_types.
18295 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18296 (mn10300_trampoline_init): Rewrite without a template, an immediate
18297 load and a direct branch.
18298 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18300 2011-01-12 Anatoly Sokolov <aesok@post.ru>
18302 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18303 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18304 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18305 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18307 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
18310 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18313 2011-01-12 Jan Hubicka <jh@suse.cz>
18316 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18317 (PLUGIN_COND_CLOSE): New macro.
18318 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18320 2011-01-12 Richard Guenther <rguenther@suse.de>
18323 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18324 register variables in a MEM_REF.
18326 2011-01-12 Joseph Myers <joseph@codesourcery.com>
18328 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18329 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18330 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18331 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18332 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18333 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18334 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18335 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18336 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18337 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18338 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18339 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18340 * config/gnu-user.h: New. Copied from linux.h.
18341 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18342 GNU_USER_TARGET_STARTFILE_SPEC.
18343 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18344 GNU_USER_TARGET_ENDFILE_SPEC.
18345 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18346 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18347 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18348 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18349 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18350 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18351 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18352 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18353 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18354 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18355 * config/arm/linux-eabi.h (CC1_SPEC): Use
18356 GNU_USER_TARGET_CC1_SPEC.
18357 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18358 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18359 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18360 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18361 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18362 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18363 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18364 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18366 2011-01-12 Richard Guenther <rguenther@suse.de>
18369 * doc/invoke.texi (ffast-math): Document it is turned on
18372 2011-01-12 Jan Hubicka <jh@suse.cz>
18374 PR tree-optimization/47233
18375 * opts.c (common_handle_option): Disable ipa-reference with profile
18378 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18380 * c-parser.c (c_parser_objc_at_property_declaration): Improved
18383 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18385 * c-parser.c (c_lex_one_token): Updated and reindented some
18386 comments. No changes in code.
18388 2011-01-11 Ian Lance Taylor <iant@google.com>
18390 * godump.c (go_output_var): Don't output the variable if there is
18391 already a type with the same name.
18393 2011-01-11 Ian Lance Taylor <iant@google.com>
18395 * godump.c (go_format_type): Don't generate float80.
18397 2011-01-11 Richard Henderson <rth@redhat.com>
18399 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18400 declaration. Rewrite for both speed and size.
18401 (mn10300_address_cost_1): Remove.
18402 (mn10300_register_move_cost): New.
18403 (mn10300_memory_move_cost): New.
18404 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18405 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18406 extensions, shifts, BSWAP, CLZ.
18407 (mn10300_wide_const_load_uses_clr): Remove.
18408 (TARGET_REGISTER_MOVE_COST): New.
18409 (TARGET_MEMORY_MOVE_COST): New.
18410 * config/mn10300/mn10300-protos.h: Update.
18411 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18413 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18414 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18415 * config/mn10300/mn10300-protos.h: Update.
18416 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18417 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18418 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18419 (*test_int_bitfield, *test_byte_bitfield): Remove.
18420 (*bit_test, *subreg_bit_test): Remove.
18421 * config/mn10300/predicates.md (const_8bit_operand): Remove.
18423 * config/mn10300/constraints.md ("c"): Rename from "A".
18424 ("A", "D"): New constraint letters.
18425 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18426 (fmssf4, fnmasf4, fnmssf4): Likewise.
18428 * config/mn10300/mn10300.md (isa): New attribute.
18429 (enabled): New attribute.
18431 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18432 (abssf2, negsf2): Define only for hardware fp.
18433 (sqrtsf2): Reformat.
18434 (addsf3, subsf3, mulsf3): Merge expander and insn.
18436 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18437 (DEBUGGER_AUTO_OFFSET): Remove.
18438 (DEBUGGER_ARG_OFFSET): Remove.
18440 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18441 Emit register stores with the same offsets as the hardware.
18442 (mn10300_store_multiple_operation): Don't check that the register
18443 save offsets are monotonic.
18444 * config/mn10300/mn10300-protos.h: Update.
18446 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18448 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18449 in terms of the value on the stack, not the MDR register.
18451 2011-01-11 Jan Hubicka <jh@suse.cz>
18455 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18456 (symbol_alias_set_destroy, symbol_alias_set_contains,
18457 propagate_aliases_backward): Declare.
18458 * lto-streamer-out.c (struct sets): New sturcture.
18459 (trivally_defined_alias): New function.
18460 (output_alias_pair_p): Rewrite.
18461 (output_unreferenced_globals): Fix output of alias pairs.
18462 (produce_symtab): Likewise.
18463 * ipa.c (function_and_variable_visibility): Set weak alias destination
18465 * varasm.c (symbol_alias_set_t): Remove.
18466 (symbol_alias_set_destroy): Export.
18467 (propagate_aliases_forward, propagate_aliases_backward): New functions
18469 (compute_visible_aliases): ... this one; remove.
18470 (trivially_visible_alias): New
18471 (trivially_defined_alias): New.
18472 (remove_unreachable_alias_pairs): Rewrite.
18473 (finish_aliases_1): Reorganize code checking if alias is defined.
18474 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18477 2011-01-11 Richard Guenther <rguenther@suse.de>
18479 PR tree-optimization/46076
18480 * tree-ssa.c (useless_type_conversion_p): Conversions from
18481 unprototyped to empty argument list function types are useless.
18483 2011-01-11 Richard Guenther <rguenther@suse.de>
18485 PR middle-end/45235
18486 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
18487 volatile MEMs as MEM_READONLY_P.
18489 2011-01-11 Richard Guenther <rguenther@suse.de>
18491 PR tree-optimization/47239
18492 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
18494 2011-01-11 Jeff Law <law@redhat.com>
18496 PR tree-optimization/47086
18497 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
18498 IVs from statements that might throw.
18500 2011-01-10 Jan Hubicka <jh@suse.cz>
18503 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
18505 2011-01-10 Jan Hubicka <jh@suse.cz>
18508 * profile.c (read_profile_edge_counts): Ignore profile inconistency
18509 when correcting profile.
18511 2011-01-10 Jan Hubicka <jh@suse.cz>
18514 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
18515 DECL_FINI_PRIORITY.
18516 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
18517 Restore DECL_FINI_PRIORITY.
18519 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18521 * doc/gimple.texi: Fix quoting of multi-word return values in
18522 @deftypefn statements. Ensure presence of return value. Wrap
18523 overlong @deftypefn lines.
18524 (is_gimple_operand, is_gimple_min_invariant_address): Remove
18525 descriptions of removed functions.
18526 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
18527 of multi-word return value in @deftypefn statement.
18529 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18531 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
18532 (Conditional Expressions, Logical Operators)
18533 (Statement and operand traversals): Do not indent smallexample
18534 code. Fix duplicate function argument in example.
18536 2011-01-10 Jeff Law <law@redhat.com>
18538 PR tree-optimization/47141
18539 * ipa-split.c (split_function): Handle case where we are
18540 returning a value and the return block has a virtual operand phi.
18542 2011-01-10 Jan Hubicka <jh@suse.cz>
18544 PR tree-optimization/47234
18545 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18546 (pass_feedback_split_functions): Declare.
18547 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18549 * ipa-split.c (gate_split_functions): Update comments; disable
18550 split-functions for profile_arc_flag and branch_probabilities.
18551 (gate_feedback_split_functions): New function.
18552 (execute_feedback_split_functions): New function.
18553 (pass_feedback_split_functions): New global var.
18555 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18558 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18559 calling gimple_call_set_cannot_inline.
18561 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18563 * config/darwin-sections.def: Remove unused section.
18565 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18568 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18570 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18573 * c-parser.c (c_parser_declaration_or_fndef): Improved
18576 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
18578 * config/i386/winnt.c (i386_pe_start_function): Make sure
18579 to switch back to function's section.
18581 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18585 * plugin.c: Move include of dlfcn.h from here...
18586 * system.h: ... to here.
18588 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18590 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18592 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18593 two extra empty pages in PDF output.
18595 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18598 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18599 for error recovery purposes behave as if it was not specified so
18600 that the default type is usd.
18602 2011-01-07 Jan Hubicka <jh@suse.cz>
18604 PR tree-optmization/46469
18605 * ipa.c (function_and_variable_visibility): Clear needed flags on
18606 nodes with external decls; handle weakrefs merging correctly.
18608 2011-01-07 Joseph Myers <joseph@codesourcery.com>
18610 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18613 2011-01-07 Jan Hubicka <jh@suse.cz>
18615 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18616 and no longer claim that gold is required for linker plugin.
18617 * configure: Regenerate.
18618 * gcc.c (PLUGIN_COND): New macro.
18619 (LINK_COMMAND_SPEC): Use it.
18620 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18621 * config.in (HAVE_LTO_PLUGIN): New.
18622 * configure.ac (--with-lto-plugin): New parameter; autodetect
18625 2011-01-07 Jan Hubicka <jh@suse.cz>
18627 PR tree-optimization/46367
18628 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18629 when we can update original.
18630 (cgraph_mark_inline_edge): Sanity check.
18631 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18633 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18635 * config/spu/spu.h (ASM_COMMENT_START): Define.
18637 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18640 * gcc.c (%>S): New.
18641 (SWITCH_KEEP_FOR_GCC): Likewise.
18642 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18643 (do_spec_1): Handle "%>".
18645 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18647 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18650 * config/i386/i386.c (ix86_delegitimize_address): If
18651 simplify_gen_subreg fails, return orig_x.
18654 * value-prof.c (gimple_stringop_fixed_value): Handle
18655 lhs of the call properly.
18657 2011-01-07 Jan Hubicka <jh@suse.cz>
18660 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18662 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18664 * target.def (function_switched_text_sections): New hook.
18665 * doc/tm.texi: Regenerated.
18666 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18667 * final.c (default_function_switched_text_sections): New.
18668 (final_scan_insn): Call function_switched_text_sections when a
18669 mid-function section change occurs.
18670 * output.h (default_function_switched_text_sections): Declare.
18671 * config/darwin-protos.h (darwin_function_switched_text_sections):
18673 * config/darwin.c (darwin_function_switched_text_sections): New.
18674 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18676 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18678 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18679 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18680 the secondary code fragment when outputting for DWARF == 2.
18682 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18684 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18685 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18687 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18688 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18690 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18693 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18694 when it is not empty.
18696 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18699 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18700 (case ${target}): Add btver1.
18701 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18702 -march=native recognize btver1 processors.
18703 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18704 btver1 def_and_undef
18705 * config/i386/i386.c (struct processor_costs btver1_cost): New
18707 (m_BTVER1): New definition.
18708 (m_AMD_MULTIPLE): Includes m_BTVER1.
18709 (initial_ix86_tune_features): Add btver1 tune.
18710 (processor_target_table): Add btver1 entry.
18711 (static const char *const cpu_names): Add btver1 entry.
18712 (software_prefetching_beneficial_p): Add btver1.
18713 (ix86_option_override_internal): Add btver1 instruction sets.
18714 (ix86_issue_rate): Add btver1.
18715 (ix86_adjust_cost): Add btver1.
18716 * config/i386/i386.h (TARGET_BTVER1): New definition.
18717 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18718 (enum processor_type): Add PROCESSOR_BTVER1.
18719 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18721 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18724 * config/i386/i386.c (legitimize_tls_address)
18725 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18726 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18727 (tls_initial_exec_64_sun): New pattern.
18729 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18731 * doc/invoke.texi (Overall Options): Improve wording and markup
18732 of the description of -wrapper.
18734 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18736 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18737 rdynamic, threads): New Driver options.
18739 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18742 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18743 if coming from .tdata.
18744 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18746 2011-01-06 Jan Hubicka <jh@suse.cz>
18749 * collect2.c (main): Do not enable LTOmode when plugin is active.
18751 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18754 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18755 --version output if supported.
18756 * configure: Regenerate.
18758 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18760 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18763 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18766 * c-convert.c (convert): When converting a complex expression
18767 other than COMPLEX_EXPR to a different complex type, ensure
18768 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18769 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18770 when converting COMPLEX_TYPE.
18772 2011-01-06 Ira Rosen <irar@il.ibm.com>
18774 PR tree-optimization/47139
18775 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18776 only the last reduction value is used outside the loop. Update
18779 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18781 * config/rtems.opt: New.
18782 * config.gcc (*-*-rtems*): Use rtems.opt.
18784 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18786 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18787 processors do not support 3DNow instructions.
18789 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18791 * config/spu/spu.c (spu_option_override): Set parameter
18792 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18794 2011-01-05 Jan Hubicka <jh@suse.cz>
18796 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18797 at the command line.
18799 2011-01-05 Martin Jambor <mjambor@suse.cz>
18802 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18803 deltas on streamed outgoing edges.
18804 (output_node_opt_summary): Output info for outgoing edges only when
18805 the node is in new parameter set.
18806 (output_cgraph_opt_summary): New parameter set, passed to the two
18807 aforementioned functions. Update its forward declaration and its
18810 2011-01-05 Tom Tromey <tromey@redhat.com>
18812 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18813 operator to c_finish_omp_atomic.
18814 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18815 (build_unary_op): Update.
18816 (build_modify_expr): Update.
18817 (build_asm_expr): Update.
18819 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18821 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18822 newly inserted insns.
18823 (pad_bb): Likewise.
18824 (spu_emit_branch_hint): Likewise.
18825 (insert_hbrp_for_ilb_runout): Likewise.
18826 (spu_machine_dependent_reorg): Call df_finish_pass after
18827 schedule_insns returns.
18829 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18831 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18833 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18835 PR tree-optimization/47005
18836 * tree-sra.c (struct access): Add 'non_addressable' bit.
18837 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18838 (decide_one_param_reduction): Return 0 if the parameter is passed by
18839 reference and one of the accesses in the group is non_addressable.
18841 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18843 PR tree-optimization/47056
18844 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18845 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18846 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18848 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18850 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18851 initializer. Skip view conversions from aggregate types.
18853 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18856 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18858 2011-01-04 Philipp Thomas <pth@suse.de>
18860 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18863 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18865 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18866 on empty epilogue sequences.
18868 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18870 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18871 non-static): New Driver options.
18873 2011-01-04 Jie Zhang <jie@codesourcery.com>
18876 * gcc.c (default_compilers[]): Set combinable field to 0
18877 for all assembly languages.
18879 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18881 * config/mips/loongson3a.md: New file.
18882 * config/mips/mips.md: Include loongson3a.md.
18883 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18886 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18888 PR middle-end/47017
18889 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18890 instead of convert_memory_address_addr_space on the base expression.
18892 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18894 * config/spu/spu.c (spu_option_override): Update error text
18895 for bad -march= / -mtune= values.
18897 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18899 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18900 if branch-hint optimization will be performed.
18902 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18904 PR tree-optimization/47148
18905 * ipa-split.c (split_function): Convert arguments to
18906 DECL_ARG_TYPE if possible.
18908 PR tree-optimization/47155
18909 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18910 when computing uns.
18912 PR rtl-optimization/47157
18913 * combine.c (try_combine): If undobuf.other_insn becomes
18914 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18915 and set *new_direct_jump_p too.
18917 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18919 PR tree-optimization/47021
18920 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18922 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18924 * gcc.c (process_command): Update copyright notice dates.
18925 * gcov.c (print_version): Likewise.
18926 * gcov-dump.c (print_version): Likewise.
18927 * mips-tfile.c (main): Likewise.
18928 * mips-tdump.c (main): Likewise.
18930 2011-01-03 Martin Jambor <mjambor@suse.cz>
18932 PR tree-optimization/46801
18933 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18934 aggregate fields start at byte boundary instead of the bit-field flag.
18936 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18939 * gcc.c (main): Revert revision 168407.
18941 2011-01-03 Martin Jambor <mjambor@suse.cz>
18943 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18945 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18947 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18948 vector optab to expand vector/scalar shift, update gimple to vector.
18950 2011-01-03 Martin Jambor <mjambor@suse.cz>
18952 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18955 2011-01-03 Martin Jambor <mjambor@suse.cz>
18957 PR tree-optimization/46984
18958 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18960 (cgraph_create_indirect_edge): Fixed line length.
18961 (cgraph_indirect_call_info): Declare.
18962 (cgraph_make_edge_direct) Update declaration.
18963 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18964 (cgraph_create_indirect_edge): Use it.
18965 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18967 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18968 the new thunk_delta representation.
18969 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18971 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18972 (ipa_read_indirect_edge_info): Likewise.
18973 * lto-cgraph.c (output_edge_opt_summary): New function.
18974 (output_node_opt_summary): Call it on all outgoing edges.
18975 (input_edge_opt_summary): New function.
18976 (input_node_opt_summary): Call it on all outgoing edges.
18978 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18981 * gcc.c (main): Don't check have_o when settting combine_inputs.
18983 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18985 * regrename.c: Add general comment describing the pass.
18986 (struct du_head): Remove 'length' field.
18987 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18988 (regrename_optimize): Do not sort chains. Rework comments, add others.
18989 Force renaming to the preferred class (if any) in the first pass and do
18990 not consider registers that belong to it in the second pass.
18991 (create_new_chain): Do not set 'length' field.
18992 (scan_rtx_reg): Likewise.
18994 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18996 PR tree-optimization/47140
18997 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18998 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18999 to bit_value_binop.
19001 PR rtl-optimization/47028
19002 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19003 parm_birth_insn instead of at the beginning of first bb.
19005 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
19007 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19008 Remove the word "see" before "@pxref".
19009 * doc/rtl.texi: Remove the word "see" before "@pxref".
19011 2011-01-01 Jan Hubicka <jh@suse.cz>
19013 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19016 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
19019 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19022 Copyright (C) 2011 Free Software Foundation, Inc.
19024 Copying and distribution of this file, with or without modification,
19025 are permitted in any medium without royalty provided the copyright
19026 notice and this notice are preserved.