1 2010-12-14 Bernd Schmidt <bernds@codesourcery.com>
3 PR rtl-optimization/44374
4 Reapply patch with fixes.
5 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
6 * df-core.c (df_set_bb_dirty): Set it.
7 * ifcvt.c (find_memory): Remove function.
8 (dead_or_predicable): Use can_move_insns_across.
9 * df.h (can_move_insns_across): Declare function.
10 * cfgcleanup.c (block_was_dirty): New static variable.
11 (flow_find_head_matching_sequence): Test for epilogue notes.
12 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
14 (try_head_merge_bb): New static function.
15 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
17 * df-problems.c: Include "target.h"
18 (df_simulate_find_uses): New static function.
19 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
20 (find_memory, find_memory_store): New static functions.
21 (can_move_insns_across): New function.
22 * Makefile.in (df-problems.o): Update dependencies.
24 2010-12-13 Joseph Myers <joseph@codesourcery.com>
26 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
27 (DBX_REGISTER_NUMBER): Undefine.
28 * config/xtensa/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
29 (DBX_REGISTER_NUMBER): Undefine.
30 * config.gcc (xtensa*-*-elf*, xtensa*-*-linux*): Don't use svr4.h.
32 2010-12-13 Jack Howarth <howarth@bromo.med.uc.edu>
33 Joseph Myers <joseph@codesourcery.com>
36 * system.h: Include cstring for cxx bootstrap.
38 2010-12-13 Jakub Jelinek <jakub@redhat.com>
41 * lto-streamer-out.c (output_gimple_stmt): Never replace first
42 GIMPLE_DEBUG argument with MEM_REF.
45 * var-tracking.c (emitted_notes, string_pointer_flags): Removed.
46 (emit_note_insn_var_location): Remove ENABLE_RTL_CHECKING verification.
47 (vt_emit_notes): Don't initialize and destroy emitted_notes.
49 2010-12-13 Jan Hubicka <jh@suse.cz>
52 * ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
53 (cgraph_build_static_cdtor): ... here.
54 (build_cdtor): Use cgraph_build_static_cdtor_1.
56 2010-12-13 Nathan Froyd <froydnj@codesourcery.com>
59 * config.gcc (arm*-*-linux-*eabi): Use bpabi-lib.h.
60 (arm*-*-uclinux*eabi, arm*-*-eabi*): Likewise.
62 2010-12-13 Joseph Myers <joseph@codesourcery.com>
64 * config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
65 WCHAR_TYPE_SIZE): Define.
66 * config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.
68 2010-12-13 Joseph Myers <joseph@codesourcery.com>
70 * config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
73 2010-12-13 Joseph Myers <joseph@codesourcery.com>
75 * config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
76 WCHAR_TYPE_SIZE): Undefine.
77 * config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
78 WCHAR_TYPE_SIZE): Define.
79 * config.gcc (mn10300-*-*): Don't use svr4.h.
81 2010-12-13 Joseph Myers <joseph@codesourcery.com>
83 * config/m68k/linux.h (DBX_REGISTER_NUMBER): Undefine and
85 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
86 * config.gcc (m68k-*-uclinux*, m68k-*-linux*): Don't use svr4.h.
88 2010-12-13 Alexandre Oliva <aoliva@redhat.com>
91 * jump.c (mark_all_labels): Skip debug insns.
93 2010-12-13 Alexandre Oliva <aoliva@redhat.com>
96 * cfgcleanup.c (try_forward_edges): Skip debug insns.
98 2010-12-12 Jan Hubicka <jh@suse.cz>
99 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
101 * varasm.c (default_function_section): Check flag_reorder_functions
102 and targetm.have_named_sections.
103 * config/darwin.c (darwin_function_section): Check
104 flag_reorder_functions.
106 2010-12-12 Finn Thain <fthain@telegraphics.com.au>
109 * config/m68k/m68k.c (handle_move_double): Insert calls to
110 m68k_final_prescan_insn to clean up @TLS operand syntax.
112 2010-12-10 Sebastian Pop <sebastian.pop@amd.com>
114 PR tree-optimization/43023
115 * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p):
117 (stores_zero_from_loop): Call stmt_stores_zero.
118 * tree-data-ref.h (stmt_stores_zero): New.
119 * tree-loop-distribution.c (generate_memset_zero): Do not return a
120 boolean. Call gcc_assert on stride_of_unit_type_p.
121 (generate_builtin): Call stmt_stores_zero.
122 (rdg_flag_all_uses): Removed.
123 (rdg_flag_similar_memory_accesses): Removed.
124 (build_rdg_partition_for_component): Removed parameter
125 other_stores. Removed call to rdg_flag_similar_memory_accesses.
126 (can_generate_builtin): New.
127 (similar_memory_accesses): New.
128 (fuse_partitions_with_similar_memory_accesses): New.
129 (rdg_build_partitions): Call
130 fuse_partitions_with_similar_memory_accesses.
132 2010-12-10 Jakub Jelinek <jakub@redhat.com>
134 PR rtl-optimization/46804
135 * regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
136 on the setter of src_reg rather than on insn. If it is
137 equal to the setter's original SET_SRC, replace it with its
138 zero or sign extension instead of dropping it.
140 2010-12-10 Richard Guenther <rguenther@suse.de>
143 * lto-symtab.c (lto_symtab_merge_decls_2): Avoid type warnings
145 (lto_symtab_merge_decls_1): Adjust.
147 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
151 * target.def (mangle_assembler_name): New target asm_out hook.
152 * targhooks.c (default_mangle_assembler_name): Add default hook
154 * targhooks.h (default_mangle_assembler_name): Add prototype.
155 * lto-symtab.c (lto_symtab_register_decl): Use new hook when
156 processing DECL_ASSEMBLER_NAMEs for lto symtabs.
157 (lto_symtab_get_resolution): Likewise.
158 (lto_cgraph_replace_node): Likewise.
159 (lto_symtab_prevailing_decl): Likewise.
160 * lto-streamer-out.c (write_symbol): Likewise.
161 * doc/tm.texi.in (TARGET_MANGLE_ASSEMBLER_NAME): Add @hook directive.
162 * doc/tm.texi: Regenerate.
163 * config/i386/cygming.h (TARGET_MANGLE_ASSEMBLER_NAME): Define to
164 point at i386_pe_mangle_assembler_name.
165 * config/i386/winnt.c (i386_pe_mangle_assembler_name): New function.
166 * config/i386/i386-protos.h (i386_pe_mangle_assembler_name): Add
169 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
171 * c-typeck.c (readonly_error): Delete.
173 2010-12-10 Jakub Jelinek <jakub@redhat.com>
175 PR rtl-optimization/46865
176 * rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
177 ASM_OPERANDS and ASM_INPUT if integers are different,
179 * jump.c (rtx_renumbered_equal_p): Likewise.
181 PR tree-optimization/46864
182 * tree-ssa-loop-im.c (loop_suitable_for_sm): Return false even
183 when there are EDGE_EH exit edges.
185 2010-12-10 Tobias Burnus <burnus@net-b.de>
188 * configure.ac: Handle --disable-libquadmath-support.
189 * doc/install.texi: Document --disable-libquadmath and
190 --disable-libquadmath-support
191 * configure: Regenerate.
192 * config.in: Regenerate.
194 2010-12-10 Jack Howarth <howarth@bromo.med.uc.edu>
195 Iain Sandoe <iains@gcc.gnu.org>
198 * config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types.
200 2010-12-10 Iain Sandoe <iains@gcc.gnu.org>
202 * config/rs6000/rs6000.c
203 (rs6000_darwin64_record_arg_advance_recurse): Name register increment
204 explicitly. (rs6000_darwin64_record_arg_recurse): Make sure we split
205 long doubles when we run out of regs. Also flag that this requires
206 stack and therefore cannot be returned by value.
207 (rs6000_darwin64_record_arg): Update comment.
208 (rs6000_function_value): Likewise.
210 2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com>
212 * c-parser.c (c_parser_objc_class_definition): Recognize
213 Objective-C 2.0 class extensions.
215 2010-12-10 Iain Sandoe <iains@gcc.gnu.org>
217 * config/darwin.c: Remove c-tree.h and c-lang.h
218 * config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.
220 2010-12-10 Joern Rennecke <amylaar@spamcop.net>
223 * doc/tm.texi: Regenerate.
224 * target.def: Fix "preferred" spelling. Refer to rclass by its
226 * config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
229 2010-12-09 Paul Koning <ni1d@arrl.net>
231 * config/pdp11/pdp11-protos.h (output_move_double,
232 output_move_quad): Delete.
233 (output_move_multiple, pdp11_expand_operands): New functions.
234 (pdp11_action, pdp11_partorder): New enums.
235 * config/pdp11/pdp11.md (movdi, movsi, movdf, movsf): Use
236 output_move_multiple.
237 (adddi3, subdi3, negdi2): New patterns.
238 (addsi3, subsi3, negsi2): Use pdp11_expand_operands.
240 (neghi2, negqi2): Use PDPint iterator.
241 * config/pdp11/pdp11.c (find_addr_reg, output_move_double,
242 output_move_quad): Delete.
243 (pdp11_expand_operands, output_move_multiple): New functions.
245 2010-12-09 Joseph Myers <joseph@codesourcery.com>
247 * config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
248 * config.gcc (vax-*-linux*): Don't use svr4.h.
250 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
252 * c-typeck.c (build_indirect_ref): Call invalid_indirection_error.
254 2010-12-09 Joseph Myers <joseph@codesourcery.com>
256 * doc/extend.texi (Attribute Syntax): Correct description of
257 attributes in pointer declarators.
259 2010-12-09 Joseph Myers <joseph@codesourcery.com>
261 * config/mips/vxworks.h (DBX_REGISTER_NUMBER): Undefine.
262 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux*,
263 mips*-*-linux*, mips-wrs-vxworks): Don't use svr4.h.
265 2010-12-09 Joseph Myers <joseph@codesourcery.com>
267 * config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
268 WCHAR_TYPE_SIZE): Define.
269 * config.gcc (mep-*-*): Don't use svr4.h.
271 2010-12-09 Joseph Myers <joseph@codesourcery.com>
273 * config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
274 WCHAR_TYPE_SIZE): Define.
275 * config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
276 WCHAR_TYPE_SIZE): Don't define.
277 * config.gcc (mcore-*-elf): Don't use svr4.h.
279 2010-12-09 Joseph Myers <joseph@codesourcery.com>
281 * config.gcc (m32r-*-elf*, m32rle-*-elf*, m32r-*-rtems*,
282 m32r-*-linux*, m32rle-*-linux*): Don't use svr4.h.
284 2010-12-09 Joseph Myers <joseph@codesourcery.com>
286 * config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
287 WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
288 * config.gcc (iq2000*-*-elf*): Don't use svr4.h.
290 2010-12-09 Joseph Myers <joseph@codesourcery.com>
292 * config.gcc (ia64*-*-linux*, ia64*-*-hpux*): Don't use svr4.h.
294 2010-12-09 Joseph Myers <joseph@codesourcery.com>
296 * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
297 * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use
300 2010-12-09 Joseph Myers <joseph@codesourcery.com>
302 * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
303 WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
304 * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
305 WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
306 * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
308 2010-12-09 Joseph Myers <joseph@codesourcery.com>
310 * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
311 WCHAR_TYPE_SIZE): Define.
312 * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
314 2010-12-09 Joseph Myers <joseph@codesourcery.com>
316 * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
317 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
318 * config.gcc (fr30-*-elf): Don't use svr4.h.
320 2010-12-09 Joseph Myers <joseph@codesourcery.com>
322 * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
323 * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
325 2010-12-09 Richard Guenther <rguenther@suse.de>
328 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
331 2010-12-09 Joseph Myers <joseph@codesourcery.com>
333 * config/i386/netware.h (TARGET_POSIX_IO): Define.
334 * config/i386/nto.h (TARGET_POSIX_IO): Define.
335 * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
336 * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
337 * config/openbsd.h (TARGET_POSIX_IO): Define.
338 * config/rtems.h (TARGET_POSIX_IO): Define.
339 * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
340 * config/sol2.h (TARGET_POSIX_IO): Define.
341 * config/svr4.h (TARGET_POSIX_IO): Don't define.
342 * config/vxworksae.h (TARGET_POSIX_IO): Define.
344 2010-12-09 Joseph Myers <joseph@codesourcery.com>
346 * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
347 * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
349 * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
351 * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
353 * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
355 * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
357 * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
359 * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
360 * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
362 * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
364 * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
366 * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
368 * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
371 2010-12-09 Joseph Myers <joseph@codesourcery.com>
373 * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
375 * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT):
377 * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
378 * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
379 * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
381 * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
382 * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
384 2010-12-09 Martin Jambor <mjambor@suse.cz>
386 * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
387 zero is the first phi parameter.
389 2010-12-09 Martin Jambor <mjambor@suse.cz>
391 * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
392 * ipa-prop.c (ipa_modify_call_arguments): Use it.
393 * tree-sra.c (splice_param_accesses): Test that all accesses have the
394 same alias reference type.
395 (turn_representatives_into_adjustments): Set alias_ptr_type of the
398 2010-12-09 Martin Jambor <mjambor@suse.cz>
401 * tree-sra.c (splice_param_accesses): Check that there are not
402 multiple ADDRESSABLE types.
404 2010-12-09 Joseph Myers <joseph@codesourcery.com>
406 * config/arc/arc.h (ASM_SPEC): Remove %{v}.
407 * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
408 * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
409 * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
410 * config/frv/frv.h (ASM_SPEC): Remove %{v}.
411 * config/i386/linux.h (ASM_SPEC): Remove %{v}.
412 * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
413 * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
414 * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
415 * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
416 * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
417 * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
418 * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
419 * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
420 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
421 * config/mips/mips.h (ASM_SPEC): Remove %{v}.
422 * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
423 * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
424 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
425 * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
426 * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
427 * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
428 * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
429 * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
430 * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
432 2010-12-09 Joseph Myers <joseph@codesourcery.com>
434 * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
435 * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
436 * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not
438 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not
440 * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
441 * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
443 2010-12-09 Joseph Myers <joseph@codesourcery.com>
445 * config/alpha/freebsd.h (LINK_SPEC): Don't use
447 * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
448 * config/arm/freebsd.h (LINK_SPEC): Likewise.
449 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
450 * config/bfin/linux.h (LINK_SPEC): Likewise.
451 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
452 * config/frv/linux.h (LINK_SPEC): Likewise.
453 * config/i386/freebsd.h (LINK_SPEC): Likewise.
454 * config/i386/freebsd64.h (LINK_SPEC): Likewise.
455 * config/i386/linux.h (LINK_SPEC): Likewise.
456 * config/i386/linux64.h (LINK_SPEC): Likewise.
457 * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
458 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
459 * config/ia64/linux.h (LINK_SPEC): Likewise.
460 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
461 * config/m32r/linux.h (LINK_SPEC): Likewise.
462 * config/m68k/linux.h (LINK_SPEC): Likewise.
463 * config/microblaze/linux.h (LINK_SPEC): Likewise.
464 * config/mips/linux.h (LINK_SPEC): Likewise.
465 * config/mips/linux64.h (LINK_SPEC): Likewise.
466 * config/mips/openbsd.h (LINK_SPEC): Likewise.
467 * config/mn10300/linux.h (LINK_SPEC): Likewise.
468 * config/netbsd-elf.h (LINK_SPEC): Likewise.
469 * config/pa/pa-linux.h (LINK_SPEC): Likewise.
470 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
471 LINK_OS_LINUX_SPEC64): Likewise.
472 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
473 LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC):
475 * config/s390/linux.h (LINK_SPEC): Likewise.
476 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
477 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
478 * config/sparc/linux.h (LINK_SPEC): Likewise.
479 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
480 LINK_SPEC): Likewise.
481 * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
482 * config/vax/linux.h (LINK_SPEC): Likewise.
483 * config/xtensa/linux.h (LINK_SPEC): Likewise.
485 2010-12-09 Joseph Myers <joseph@codesourcery.com>
487 * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
488 * config/frv/frv.h (ASM_SPEC): Likewise.
489 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
490 * config/i386/sol2.h (ASM_SPEC): Likewise.
491 * config/m68k/linux.h (ASM_SPEC): Likewise.
492 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
493 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
494 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
495 * config/sol2.h (ASM_SPEC): Likewise.
496 * config/sparc/linux.h (ASM_SPEC): Likewise.
497 * config/sparc/linux64.h (ASM_SPEC): Likewise.
498 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
499 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
500 * config/svr4.h (SVR4_ASM_SPEC): Likewise.
502 2010-12-09 Richard Guenther <rguenther@suse.de>
504 * reginfo.c (struct subregs_of_mode_node): Remove.
505 (subregs_of_mode): Likewise.
506 (som_hash): Likewise.
508 (invalid_mode_changes): New bitmap.
509 (record_subregs_of_mode): Get subregs_of_mode argument.
510 Fill in invalid_mode_changes bitmap.
511 (find_subregs_of_mode): Get subregs_of_mode argument and pass
513 (init_subregs_of_mode): Adjust.
514 (finish_subregs_of_mode): Likewise.
515 (invalid_mode_change_p): Query invalid_mode_changes bitmap.
517 2010-12-09 Richard Guenther <rguenther@suse.de>
519 * ira.c (ira): Do not call finish_subregs_of_mode.
520 * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
522 2010-12-09 Richard Guenther <rguenther@suse.de>
524 * rtl.h (invalid_mode_change_p): Adjust prototype.
525 * reginfo.c (invalid_mode_change_p): Remove from argument.
526 * ira-costs.c (print_allocno_costs): Adjust callers.
527 (find_costs_and_classes): Likewise.
529 2010-12-09 Jakub Jelinek <jakub@redhat.com>
531 * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
532 locg and stocg even in comment.
533 (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
536 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
538 (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
540 * config/rs6000/altivec.md (VI_scalar): New mode attr.
541 (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
542 vector mode for operand 0, put operand 1 into UNSPEC.
544 2010-12-09 Yao Qi <yao@codesourcery.com>
546 * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
547 PREFERRED_RENAME_CLASS.
549 2010-12-08 Ian Lance Taylor <iant@google.com>
551 * doc/sourcebuild.texi (Front End): Remove reference to
552 snapshot-README and snapshot-index.html.
554 2010-12-08 Ian Lance Taylor <iant@google.com>
556 * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
557 to update_web_docs_svn.
558 (Front End): Likewise.
560 2010-12-08 Iain Sandoe <iains@gcc.gnu.org>
562 gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
563 x86_64-*-darwin* to with_cpu:-core2.
564 gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
565 with movd for darwin assembler.
566 gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
567 (*vec_concatv2di_rex64_sse): Ditto.
569 2010-12-08 Richard Guenther <rguenther@suse.de>
570 Sebastian Pop <sebastian.pop@amd.com>
572 PR tree-optimization/45230
573 PR tree-optimization/45231
574 PR tree-optimization/45370
575 * sese.c (rename_uses): Returns a bool. Call
576 recompute_tree_invariant_for_addr_expr only on the RHS of a
578 (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
579 rename_uses returns true.
580 * tree-ssa-copy.c (replace_exp): Add a comment about calling
581 fold_stmt_inplace after replace_exp.
583 2010-12-08 Mike Stump <mikestump@comcast.net>
586 * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
587 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
588 * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
589 (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
590 * collect2.c (post_ld_pass): Add.
592 (maybe_run_lto_and_relink): Call post_ld_pass after ld.
593 (main): Likewise. Call process_args.
595 2010-12-08 Jakub Jelinek <jakub@redhat.com>
598 * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
601 2010-12-08 Richard Earnshaw <rearnsha@arm.com>
604 * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
605 into a 16-bit instruction.
607 2010-12-08 Michael Meissner <meissner@linux.vnet.ibm.com>
610 * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
611 where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
612 instruction, but do optimize if y is 0.5 or 1./3. since that
613 changes an expensive call into a cheaper one.
615 2010-12-08 Richard Guenther <rguenther@suse.de>
617 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
618 instead of a division to divide by BITS_PER_UNIT.
620 2010-12-08 Richard Guenther <rguenther@suse.de>
622 * gimplify.c (gimple_tree_eq): Assert hashes are equal only
623 when checking is enabled.
625 2010-12-07 Andrey Belevantsev <abel@ispras.ru>
628 * haifa-sched.c (sched_create_recovery_edges): Update
630 * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
631 after deleting an empty block.
632 (tidy_control_flow): Also verify dominators.
633 (sel_remove_bb): Update dominator info after removing a block.
634 (sel_redirect_edge_and_branch_force): Assert that no unreachable
635 blocks will be created. Update dominator info.
636 (sel_redirect_edge_and_branch): Update dominator info when
637 basic blocks do not become unreachable.
638 (sel_remove_loop_preheader): Update dominator info.
640 2010-12-07 Richard Guenther <rguenther@suse.de>
642 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
643 Reset alignment information.
644 (bump_vector_ptr): Likewise.
646 2010-12-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
650 * config/pa/pa.c (pa_function_section): New function.
651 (TARGET_ASM_FUNCTION_SECTION): Define.
653 2010-12-07 Ian Lance Taylor <iant@google.com>
654 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
657 * configure.ac: Disable AC_MSG_ERROR while looking for the C++
659 * configure: Rebuild.
661 2010-12-07 Paul Koning <ni1d@arrl.net>
663 * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
664 values with sign rather than as unsigned.
666 2010-12-07 Paul Koning <ni1d@arrl.net>
668 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
669 (pdp11_function_section): New function.
671 2010-12-07 Joseph Myers <joseph@codesourcery.com>
673 * config/mcore/mcore.c Don't include assert.h.
674 (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
675 * config/spu/spu.c: Don't include assert.h.
676 (spu_sms_res_mii): Use gcc_assert.
678 2010-12-07 Sebastian Pop <sebastian.pop@amd.com>
680 PR tree-optimization/42327
681 * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
682 instead of using integer_minus_one_node.
684 2010-12-07 Nathan Froyd <froydnj@codesourcery.com>
687 * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
688 * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
690 2010-12-07 Richard Guenther <rguenther@suse.de>
692 PR tree-optimization/46832
693 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
694 that the call has a lhs.
696 2010-12-07 Yao Qi <yao@codesourcery.com>
698 * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
699 * regrename.c (struct du_head): Add new element length.
700 (sort_du_head, get_element, merge, merge_sort_comparison):
701 New functions of merge sort implementation to du_head list.
702 (regrename_optimize): Sort du_head linked list by length.
703 Iterate registers in a preferred-register-first order.
704 Move some code to ...
705 (check_new_reg_p): here. New function.
706 (create_new_chain): Initialize length.
707 (scan_rtx_reg): Increase length for non-debug insns.
708 * target.def: New hook preferred_rename_class.
709 * targhook.c (default_preferred_rename_class): New.
710 * targhook.h: Declare it.
711 * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
712 * doc/tm.texi: Regenerate.
714 2010-12-07 Jakub Jelinek <jakub@redhat.com>
717 * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
718 instead of BUILTINS_LOCATION.
719 (create_loop_fn): Add LOC argument, pass it to build_decl instead of
721 (create_parallel_loop): Add LOC argument, use it for OMP clauses
722 and GIMPLE_*OMP* statements.
723 (gen_parallel_loop): Determine locus for the parallel loop, pass it
724 to create_loop_fn and create_parallel_loop.
725 * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
726 set_curr_insn_source_location (UNKNOWN_LOCATION).
728 2010-12-07 Joern Rennecke <amylaar@spamcop.net>
729 Richard Guenther <rguenther@suse.de>
732 * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
733 (bfin_reorder_loops): Change type of index to intptr_t.
735 2010-12-07 Richard Guenther <rguenther@suse.de>
737 PR tree-optimization/46726
738 * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
740 2010-12-07 Richard Guenther <rguenther@suse.de>
742 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
745 2010-12-07 Nicola Pero <nicola.pero@meta-innovation.com>
747 * c-parser.c (c_parser_typeof_specifier): Removed special
748 treatment of objc_volatilized attribute for Objective-C.
750 2010-12-06 Vladimir Makarov <vmakarov@redhat.com>
752 * ira.c (update_equiv_regs): Prohibit move insns if
753 pressure-sensitive scheduling was done.
755 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
757 * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
758 of c_process_expr_stmt() for the iterating and collection
759 expressions of an Objective-C fast enumeration loop.
761 2010-12-06 Jakub Jelinek <jakub@redhat.com>
764 * dwarf2out.c (modified_type_die): If both is_const_type and
765 is_volatile_type is set, start with DW_TAG_const_type or
766 DW_TAG_volatile_type depending on where we get qualified type
767 in the recursive call.
770 * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
771 as a store into that register.
773 PR tree-optimization/46528
775 * profile.c (branch_prob): Make sure last is never set to a debug
779 * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
782 PR rtl-optimization/46777
783 * cfglayout.c (duplicate_insn_chain): Avoid duplicating
784 also barrier after tablejump.
786 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
787 Richard Henderson <rth@redhat.com>
790 * config/vax/vax.c (vax_output_int_move): Fold #if into if.
792 2010-12-06 Eric Botcazou <ebotcazou@adacore.com>
794 * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
795 * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
797 2010-12-06 Joern Rennecke <amylaar@spamcop.net>
800 * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
801 (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
802 (int12_operand, int_2word_operand, uint16_operand): Likewise.
803 (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
804 (uint5_operand, uint4_operand): Likewise.
805 * config/frv/frv.h (IN_RANGE_P): Delete.
806 (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
807 (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
808 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
809 (CONST_OK_FOR_P): Likewise.
810 * config/frv/frv.md (*movqicc_internal2_int): Likewise.
811 (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
812 (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
813 (*movsicc_internal2_float, casesi): Likewise.
814 * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
815 (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
816 (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
817 (frv_split_cond_move, frv_rtx_costs): Likewise.
820 * config/mmix/mmix.c (mmix_intval): Split shift count.
822 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
824 * config/i386/i386.c (m_COREI7): New.
825 (initial_ix86_tune_features): Turn on
826 X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
827 X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
829 2010-12-06 H.J. Lu <hongjiu.lu@intel.com>
831 * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
833 * config/i386/driver-i386.c (host_detect_local_cpu): Support
836 * config/i386/i386.c (override_options): Handle "corei7-avx".
838 * doc/invoke.texi: Document corei7-avx.
840 2010-12-06 Richard Guenther <rguenther@suse.de>
842 PR tree-optimization/46806
843 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
844 coalesce different types.
846 2010-12-06 Richard Guenther <rguenther@suse.de>
848 PR tree-optimization/46785
849 * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
850 call statements as operand definition.
852 2010-12-06 Mingjie Xing <mingjie.xing@gmail.com>
854 * doc/tm.texi.in: Fix typo.
855 * doc/tm.texi: Regenerate.
857 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
859 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
862 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
864 * c-family/c-common.h: Removed the declarations of all the objc_
865 callbacks, and moved them into c-objc.h. Removed
866 objc_ivar_visibility_kind and moved it into c-objc.h.
867 * c-family/c-objc.h: New file.
868 * c-family/c-common.c: Include c-objc.h.
869 * c-family/c-format.c: Same change.
870 * c-family/stub-objc.c: Same change.
871 * c-decl.c: Include c-family/c-objc.h.
872 * c-parser.c: Same change.
873 * c-typeck.c: Same change.
874 * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
875 * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
876 (c-parser.o): same change.
877 (c-typeck.o): Same change.
878 (c-family/c-format.o): Same change.
879 (c-family/stub-objc.o): Same change.
880 (c-family/c-common.o): Same change.
881 (PLUGIN_HEADERS): Added c-family/c-objc.h.
883 2010-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
885 * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Ignore
886 --with-dwarf2 option.
888 2010-12-03 Jan Hubicka <jh@suse.cz>
890 * lto-streamer-in.c (input_cfg): Fix pasto.
892 2010-12-03 Jan Hubicka <jh@suse.cz>
894 * ipa.c (cgraph_externally_visible_p): Do not localize builtins
895 and functions with user asm defined names.
896 (varpool_externally_visible_p): Do not localize vars with user
899 2010-12-03 Jan Hubicka <jh@suse.cz>
901 * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
902 to prevent mangling with lto frontend.
904 2010-12-03 Jan Hubicka <jh@suse.cz>
906 * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
907 * lto-cgraph.c (merge_profile_summaries): Fix thinko.
909 2010-12-03 Jan Hubicka <jh@suse.cz>
911 PR tree-optimization/46760
912 * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
913 * cgraph.h (struct cgraph_node): Add count_materialization_scale.
914 * lto-cgraph.c (lto_output_edge): Fix assert.
915 (lto_output_node): Output count_materialization_scale.
916 (output_profile_summary): Output only runs and sum_max.
917 (input_node): Input count_materialization_scale.
918 (input_profile_summary): Read data into file specific gcov summary.
919 (merge_profile_summaries): New function.
920 (input_cgraph): Update call of input_profile_summary;
921 call merge_profile_summaries.
922 * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
923 rescale counts at read in.
924 (intput_bb): Likewise.
925 (input_function): Update call of input_bb.
926 (lto_read_body): Update call of input_cfg.
927 * lto-streamer.h: Inlclude gcov-io.h
928 (lto_file_decl_data): Add gcov_ctr_summary.
930 2010-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
932 * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
933 (Cond Exec Macros): ... to this.
934 * doc/tm.texi: Regenerate.
936 2010-12-03 Jason Merrill <jason@redhat.com>
939 * dwarf2out.c (gen_tagged_type_die): Don't put local types in
942 2010-12-03 Nathan Froyd <froydnj@codesourcery.com>
944 * config/arm/arm.c (arm_legitimate_index_p): Split
945 VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases. Permit
946 slightly larger constants in the latter case.
947 (thumb2_legitimate_index_p): Likewise.
949 2010-12-03 Joseph Myers <joseph@codesourcery.com>
951 * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
952 * gcc.c (cc1_options): Add %{Qy:}.
954 2010-12-03 Joseph Myers <joseph@codesourcery.com>
956 * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
957 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
958 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
960 2010-12-03 Alexander Monakov <amonakov@ispras.ru>
962 PR rtl-optimization/45354
963 * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
964 (bb_has_removable_jump_to_p): This. Update all callers. Make static.
965 Allow BBs ending with a conditional jump. Forbid EDGE_CROSSING jumps.
966 * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
968 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
970 * basic-block.h (struct edge_prediction): Remove forward
972 * tree-flow.h (struct edge_prediction): Move from here...
973 * predict.c (struct edge_prediction): ...to here.
974 * cselib.h (struct elt_list): Move from here...
975 * cselib.c (struct elt_list): ...to here.
977 2010-12-02 Ian Lance Taylor <iant@google.com>
979 * gcc.c (default_compilers): Add entry for ".go".
980 * common.opt: Add -static-libgo as a driver option.
981 * doc/install.texi (Configuration): Mention libgo as an option for
982 --enable-shared. Mention go as an option for --enable-languages.
983 * doc/invoke.texi (Overall Options): Mention .go as a file name
984 suffix. Mention go as a -x option.
985 * doc/frontends.texi (G++ and GCC): Mention Go as a supported
987 * doc/sourcebuild.texi (Top Level): Mention libgo.
988 * doc/standards.texi (Standards): Add section on Go language.
989 Move references for other languages into their own section.
990 * doc/contrib.texi (Contributors): Mention that I contributed the
993 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
995 * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
996 (const_call_expr_arg_iterator_d): Likewise.
997 (expanded_location): Likewise.
998 * c-tree.h (struct c_arg_tag_d): Likewise.
999 * dwarf2out.c (struct cfa_loc): Likewise.
1000 (struct skeleton_chain_struct): Likewise.
1001 * except.c (struct ttypes_filter): Likewise.
1002 * cselib.h (struct cselib_val_struct): Likewise.
1003 (elt_loc_list): Likewise.
1004 (elt_list): Likewise.
1005 * varasm.c (struct addr_const): Likewise.
1006 * tree-flow.h (struct edge_prediction): Likewise.
1007 (struct int_tree_map): Likewise.
1008 (struct _edge_var_map): Likewise.
1010 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
1013 * config/i386/i386.c (initial_ix86_tune_features): Turn on
1014 X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
1016 2010-12-02 H.J. Lu <hongjiu.lu@intel.com>
1018 * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
1020 2010-12-02 Ian Lance Taylor <iant@google.com>
1022 * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX. Check for C++
1023 header files unordered_map, tr1/unordered_map, and ext/hash_map.
1024 * configure, config.in: Rebuild.
1026 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
1029 * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
1030 (sparc_expand_move): Call it to decide whether to emit the special
1031 mov{si,di}_pic_label_ref patterns.
1032 (sparc_legitimize_pic_address): Call it to decide whether to emit
1033 the regular PIC sequence for labels. Fix long line.
1034 (sparc_file_end): Set is_thunk for the PIC helper.
1036 2010-12-02 Eric Botcazou <ebotcazou@adacore.com>
1038 * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
1039 for a non-shared type.
1041 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
1044 * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
1045 with MEM_REFs as POINTER_PLUS_EXPR.
1047 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1049 * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
1050 config/sparc/linux.h, config/sparc/linux64.h: Remove comments
1051 mentioning /lib/elf.
1053 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1055 * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
1056 * config/frv/frv.h (LINK_SPEC): Remove %{b}.
1057 * config/i386/netware.h (LINK_SPEC): Remove %{b}.
1058 * config/i386/nto.h (LINK_SPEC): Remove %{b}.
1059 * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
1060 * config/sol2.h (LINK_SPEC): Remove %{b}.
1061 * config/svr4.h (LINK_SPEC): Remove %{b}.
1063 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1065 * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
1066 * config/i386/linux.h (LINK_SPEC): Cut long comment.
1067 * config/i386/netware.h (LINK_SPEC): Remove %{V}.
1068 * config/m32r/linux.h (LINK_SPEC): Cut long comment.
1069 * config/m68k/linux.h (LINK_SPEC): Cut long comment.
1070 * config/sparc/linux.h (LINK_SPEC): Cut long comment.
1071 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
1072 * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
1073 (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
1074 * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
1077 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1079 * gcc.c (trad_capable_cpp, default_compilers): Don't handle
1082 2010-12-02 Joseph Myers <joseph@codesourcery.com>
1084 * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
1085 * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
1086 * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
1087 * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
1088 * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
1089 * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
1090 * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
1091 * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
1092 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
1093 * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
1094 * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
1095 * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
1096 * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
1097 * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
1098 * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
1099 * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
1100 * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
1101 * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
1103 2010-12-02 Paul Koning <ni1d@arrl.net>
1105 * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
1106 opcodes if CC_NO_OVERFLOW is set.
1107 (notice_update_cc_on_set): Correct setting of CC0 as a side
1108 effect; set CC_NO_OVERFLOW for cases where C flag is not
1111 2010-12-02 Ian Lance Taylor <iant@google.com>
1113 * doc/install.texi (Configuration): Update default for
1114 --with-boot-ldflags.
1116 2010-12-02 Nathan Froyd <froydnj@codesourcery.com>
1119 * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
1122 2010-12-02 Sebastian Pop <sebastian.pop@amd.com>
1124 PR tree-optimization/45199
1125 * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
1126 (stores_zero_from_loop): Call
1127 mem_write_stride_of_same_size_as_unit_type_p.
1128 * tree-data-ref.h (stride_of_unit_type_p): New.
1129 * tree-loop-distribution.c (generate_memset_zero): Simplified.
1130 Call stride_of_unit_type_p.
1131 (build_rdg_partition_for_component): Do not call
1132 rdg_flag_similar_memory_accesses when
1133 flag_tree_loop_distribute_patterns is set.
1135 2010-12-02 Richard Guenther <rguenther@suse.de>
1137 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
1138 sign-changing conversions for induction detection.
1140 2010-12-02 Richard Guenther <rguenther@suse.de>
1142 PR tree-optimization/46723
1143 * tree-vect-loop.c (get_initial_def_for_induction): Strip
1144 conversions from the induction evolution and apply it to
1146 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
1147 assigns for induction defs.
1149 2010-12-02 Richard Guenther <rguenther@suse.de>
1151 * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
1152 the case we need to split the edge and not the block.
1154 2010-12-02 Bernd Schmidt <bernds@codesourcery.com>
1156 DFA model for Core 2 and Core i7 scheduling.
1158 * config/i386/core2.md: New DFA model for Core 2 and Core i7.
1159 * config/i386/i386.c (ix86_option_override_internal): Update entries
1160 for Core 2 and Core i7.
1161 (ix86_issue_rate): Set issue rate to 3 [be realistic].
1162 * config/i386/i386.md: Include "core2.md".
1163 (define_attr cpu): Add "corei7".
1165 2010-12-02 Maxim Kuvyrkov <maxim@codesourcery.com>
1167 Define tuning for Core 2 and Core i7.
1169 * config/i386/i386-c.c (ix86_target_macros_internal): Update.
1170 * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
1171 (m_CORE2): Replace with m_CORE2_{32,64}.
1172 (m_CORE2I7{,_32,_64}): New macros.
1173 (m_GENERIC32, m_GENERIC64): Update.
1174 (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
1175 (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
1176 set m_CORE2I7_64 iff m_GENERIC64.
1177 (processor_target_table): Use generic costs for Core 2 and Core i7.
1178 (ix86_option_override_internal): Update entries for Core 2 and Core i7.
1179 (ix86_issue_rate): Remove entry for Core 2.
1180 (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
1181 * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
1182 (TARGET_CORE2): Update.
1183 (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
1184 (PROCESSOR_CORE2): Remove.
1186 2010-12-02 Richard Guenther <rguenther@suse.de>
1188 * lto-streamer.h (LTO_major_version): Bump to 2.
1190 2010-12-02 Richard Guenther <rguenther@suse.de>
1193 * gimple.c (canonical_type_hash_cache): New hashtable.
1194 (gimple_type_hash): Make a wrapper around ...
1195 (gimple_type_hash_1): ... this. Take gtc_mode argument.
1196 (gimple_canonical_type_hash): Likewise.
1197 (gtc_visit): Take a gtc_mode argument.
1198 (gimple_types_compatible_p_1): Likewise. Do not compare struct
1199 tag names or field names when computing canonical types.
1200 (gimple_types_compatible_p): Adjust.
1201 (visit): Take a gtc_mode argument.
1202 (iterative_hash_gimple_type): Likewise. Do not hash struct tag
1203 names or field names when computing hashes of canonical types.
1204 (gimple_register_canonical_type): Use gimple_canonical_type_hash
1206 (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
1207 (free_gimple_type_tables): Free canonical_type_hash_cache.
1209 2010-12-02 Richard Guenther <rguenther@suse.de>
1210 Ira Rosen <irar@il.ibm.com>
1212 PR tree-optimization/46663
1213 * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
1214 FUNCTION_DECL exists and that it's a builtin.
1216 2010-12-02 Jie Zhang <jie@codesourcery.com>
1219 * varasm.c (compute_visible_aliases): Handle user set
1222 2010-12-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1224 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
1225 thinko regarding setting -mno-<xxx> debug switches.
1226 (rs6000_rtx_costs): Add FMA. Delete old rtl based FMA costs.
1228 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1230 * intl.c: Don't include tm.h.
1231 * Makefile.in (intl.o): Don't depend on $(TM_H).
1233 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1235 * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
1237 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1239 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1241 * graphite-sese-to-poly.c (analyze_drs): Removed.
1242 (build_scop_drs): Do not call analyze_drs.
1243 (analyze_drs_in_stmts): New.
1244 (insert_stmts): New.
1245 (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
1246 (insert_out_of_ssa_copy_on_edge): Same.
1247 (rewrite_close_phi_out_of_ssa): Call insert_stmts.
1248 (rewrite_phi_out_of_ssa): Same.
1249 (rewrite_cross_bb_scalar_dependence): Same.
1250 (split_reduction_stmt): Move data references in the new basic blocks.
1251 (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
1253 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1255 * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
1257 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1260 * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
1261 the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
1262 * graphite-poly.h (new_poly_bb): Update declaration.
1263 (gbb_from_bb): Moved here...
1265 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
1267 (graphite_stmt_p): Removed.
1268 (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
1269 sbitmap reductions. Always build a gimple_bb_p. Do not call
1271 (build_scop_bbs_1): Do not pass in sbitmap reductions.
1272 (build_scop_bbs): Same.
1273 (gbb_from_bb): ... from here.
1274 (add_conditions_to_constraints): Moved up.
1276 (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
1277 not contain data references.
1278 (new_pbb_from_pbb): New.
1279 (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
1281 (rewrite_close_phi_out_of_ssa): Update call to
1282 insert_out_of_ssa_copy_on_edge.
1283 (rewrite_reductions_out_of_ssa): Now static.
1284 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1286 (split_reduction_stmt): Call split_pbb.
1287 (translate_scalar_reduction_to_array): Pass in the scop, do not
1288 pass in the sbitmap reductions.
1289 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1290 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1291 (rewrite_commutative_reductions_out_of_ssa): Same.
1292 (build_poly_scop): Call build_scop_bbs,
1293 rewrite_commutative_reductions_out_of_ssa,
1294 rewrite_reductions_out_of_ssa, and
1295 rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
1297 * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
1298 Removed declaration.
1299 (rewrite_reductions_out_of_ssa): Same.
1300 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1301 (build_scop_bbs): Same.
1302 * graphite.c (graphite_transform_loops): Do not initialize reductions.
1303 Do not call build_scop_bbs,
1304 rewrite_commutative_reductions_out_of_ssa,
1305 rewrite_reductions_out_of_ssa, and
1306 rewrite_cross_bb_scalar_deps_out_of_ssa.
1307 * sese.h (struct gimple_bb): Add field pbb.
1310 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1312 * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
1314 (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
1315 handle_scalar_deps_crossing_scop_limits.
1316 (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
1317 after the scop. Update call to rewrite_cross_bb_scalar_deps.
1319 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1321 * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
1322 when replacing a constant in an ADDR_EXPR.
1324 2010-12-01 Sebastian Pop <sebastian.pop@amd.com>
1326 * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
1328 (lst_do_strip_mine): Same.
1329 (scop_do_strip_mine): Same.
1330 * graphite-poly.c (apply_poly_transforms): Update call to
1332 * graphite-poly.h (scop_do_strip_mine): Update declaration.
1334 2010-12-01 Jan Hubicka <jh@suse.cz>
1336 * tree.c (build_common_builtin_nodes): Do not initialize
1337 BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
1338 * builtins.c (expand_builtin_profile_func): Remove.
1339 (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
1340 BUILT_IN_PROFILE_FUNC_EXIT.
1341 * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
1342 (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
1343 * gimplify.c (gimplify_function_tree): Reorganize code calling
1344 profiling functions.
1346 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1348 * opts.c: Expand comment on tm.h include.
1350 2010-12-01 Yao Qi <yao@codesourcery.com>
1352 * config/arm/predicates.md ("vfp_register_operand"): Return true for
1353 VFP_D0_D7_REGS classes.
1355 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1357 * common.opt (flag_stack_check): New Variable entry.
1358 (fcompare-debug-second): Use Var.
1359 * flags.h (flag_compare_debug, flag_stack_check): Remove.
1360 * opts.c (flag_compare_debug): Remove.
1361 (common_handle_option): Don't handle OPT_fcompare_debug_second.
1362 Set opts->x_flag_stack_check for OPT_fstack_check_.
1363 * toplev.c (flag_stack_check): Remove.
1365 2010-12-01 Joseph Myers <joseph@codesourcery.com>
1367 * common.opt (main_input_filename, main_input_basename,
1368 main_input_baselength): New Variable entries. From toplev.c.
1369 * final.c (output_quoted_string): Move from toplev.c.
1370 * output.h (output_quoted_string): Move from toplev.h.
1371 * opts-global.c (read_cmdline_options): Use gcc_options pointer to
1372 access main_input_filename, main_input_baselength and
1373 main_input_basename.
1374 * targhooks.c: Include intl.h and opts.h.
1375 (option_affects_pch_p, default_get_pch_validity): Move from
1377 * targhooks.h (option_affects_pch_p, default_get_pch_validity):
1379 * toplev.c (main_input_filename, main_input_basename,
1380 main_input_baselength): Move to common.opt.
1381 (output_quoted_string): Move to final.c.
1382 (warn_deprecated_use): Move to tree.c.
1383 (option_affects_pch_p, default_get_pch_validity,
1384 pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
1385 * toplev.h (skip_leading_substring): Move to tree-dump.c.
1386 (warn_deprecated_use): Move to tree.h.
1387 (output_quoted_string): Move to output.h.
1388 (main_input_filename, main_input_basename, main_input_baselength):
1390 (default_get_pch_validity, default_pch_valid_p): Move to
1392 * tree-dump.c (skip_leading_substring): Move from toplev.h.
1393 * tree.c (warn_deprecated_use): Move from toplev.c.
1394 * tree.h (warn_deprecated_use): Move from toplev.h.
1395 * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
1396 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
1397 config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
1398 config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
1399 config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
1400 config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
1401 config/mcore/mcore.c, config/mep/mep.c,
1402 config/microblaze/microblaze.c, config/mips/mips.c,
1403 config/mmix/mmix.c, config/mn10300/mn10300.c,
1404 config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
1405 config/picochip/picochip.c, config/s390/s390.c,
1406 config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
1407 config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
1408 config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
1409 graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
1410 varasm.c, xcoffout.c: Don't include toplev.h.
1411 * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
1412 gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
1413 varasm.o, xcoffout.o): Update dependencies.
1414 * config/arm/t-arm (arm.o): Update dependencies.
1415 * config/spu/t-spu-elf (spu.o): Update dependencies.
1417 2010-12-01 Richard Guenther <rguenther@suse.de>
1419 PR tree-optimization/46730
1420 * value-prof.c (gimple_ic): Always generate a separate merge BB.
1422 2010-11-30 Ian Lance Taylor <iant@google.com>
1424 * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V. Remove
1425 all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
1426 * config/i386/linux64.h (ASM_SPEC): Likewise.
1427 * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
1428 * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
1429 * config/i386/vxworks.h (ASM_SPEC): Likewise.
1430 * config/i386/x86-64.h (ASM_SPEC): Likewise.
1431 * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
1432 * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
1434 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1436 * c-decl.c (finish_function): Call objc_finish_function in
1438 * c-typeck.c (convert_for_assignment): Do not call
1439 objc_type_quals_match().
1441 2010-11-30 Richard Guenther <rguenther@suse.de>
1443 PR tree-optimization/46722
1444 * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
1445 operands as arguments.
1446 (execute_optimize_widening_mul): Also handle power of two as
1449 2010-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1452 * cgraphunit.c (process_function_and_variable_attributes): Fix
1455 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1457 * hwint.c: New. Extracted from toplev.c.
1458 * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1460 * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1462 * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1464 * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
1465 explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
1466 ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
1467 real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
1468 stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
1469 tree-ssa-loop-niter.c, tree-vect-data-refs.c,
1470 tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
1471 tree-vrp.c: Don't include toplev.h.
1472 * genattrtab.c, genconditions.c, genemit.c, genextract.c,
1473 genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
1474 toplev.h in generated output.
1475 * Makefile.in (OBJS-common): Add hwint.o.
1476 Dependencies for above files changed to remove toplev.h.
1478 (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
1479 insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
1481 * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
1482 * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
1484 2010-11-30 Richard Guenther <rguenther@suse.de>
1486 PR tree-optimization/46717
1487 * value-prof.c (gimple_ic): Preserve EH edges of the indirect
1488 call. Manually create EH edges for the direct call and update
1491 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1493 * diagnostic-core.h: Include bversion.h.
1494 * toplev.h: Don't include input.h or bversion.h.
1495 (parse_optimize_options): Don't declare here.
1496 * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
1497 caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
1498 combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
1499 config/host-darwin.c, config/i386/host-cygwin.c,
1500 config/i386/host-mingw32.c, config/i386/msformat-c.c,
1501 config/i386/netware.c, config/i386/nwld.c,
1502 config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
1503 config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
1504 config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
1505 config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
1506 config/score/score3.c, config/score/score7.c,
1507 config/sh/symbian-base.c, config/sh/symbian-c.c,
1508 config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
1509 config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
1510 cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
1511 fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
1512 graphite-blocking.c, graphite-clast-to-gimple.c,
1513 graphite-dependences.c, graphite-flattening.c,
1514 graphite-interchange.c, graphite-poly.c,
1515 graphite-scop-detection.c, graphite.c, haifa-sched.c,
1516 implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
1517 ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
1518 lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
1519 lto-opts.c, lto-section-in.c, lto-section-out.c,
1520 lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
1521 params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
1522 regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
1523 sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
1524 sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
1525 tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
1526 tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
1527 tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
1528 tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
1529 tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
1530 tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
1532 * Makefile.in (TOPLEV_H): Remove. All uses changed to use
1533 toplev.h. Dependencies for above files and c-family files changed
1534 to remove $(TOPLEV_H) or toplev.h.
1535 (C_TREE_H): Don't include $(TOPLEV_H).
1536 (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h. Add
1538 * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
1539 config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
1540 config/t-darwin, config/t-sol2,
1541 config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
1542 Dependencies for above files changed to remove $(TOPLEV_H) or
1545 2010-11-30 Richard Guenther <rguenther@suse.de>
1548 * gcc.c (main): Use the first input with a compiler as infile
1549 for link spec processing.
1551 2010-11-30 Richard Guenther <rguenther@suse.de>
1554 * cgraphunit.c (ipa_passes): Stop after errors from
1557 2010-11-30 Mingjie Xing <mingjie.xing@gmail.com>
1559 * gcc-plugin.h: Include coretypes.h.
1560 * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
1562 2010-11-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1564 * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
1565 * ggc-none.c (ggc_internal_alloc_zone_stat)
1566 (ggc_internal_cleared_alloc_zone_stat): New.
1568 2010-11-29 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
1570 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
1571 TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
1572 (rs6000_emit_prologue): Don't set PIC register if
1573 TARGET_SINGLE_PIC_BASE.
1574 * config/rs6000/rs6000.opt (msingle-pic-base): New option.
1575 * doc/invoke.texi (msingle-pic-base): Document.
1577 2010-11-29 H.J. Lu <hongjiu.lu@intel.com>
1580 * exec-tool.in (id): New.
1581 Check and export LT_RCU_$id instead of LT_RCU.
1583 2010-11-29 Zdenek Dvorak <rakdver@kam.uniff.cz>
1585 PR tree-optimization/46675
1586 * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
1587 in offset calculation.
1589 2010-11-29 Jan Hubicka <jh@suse.cz>
1591 * collect2.c (main): Do not imply verbose output with
1592 LTO and linker plugin.
1594 2010-11-29 Dodji Seketeli <dodji@redhat.com>
1596 * dwarf2out.c (print_die): Print the address of the current DIE or
1597 of any DIE referenced by the current one.
1599 2010-11-29 Dodji Seketeli <dodji@redhat.com>
1602 * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
1604 (scope_die_for, gen_type_die_for_member): Replace uses of
1605 lookup_type_die with use of lookup_type_die_strip_naming_typedef.
1607 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
1609 * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
1610 (darwin_asm_declare_object_name): Correct spelling.
1611 (darwin_output_aligned_bss): Likewise.
1613 2010-11-29 Iain Sandoe <iains@gcc.gnu.org>
1614 Mike Stump <mrs@gcc.gnu.org>
1619 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
1620 (ASM_OUTPUT_LOCAL): Likewise.
1621 * config/darwin-protos.h (darwin_asm_declare_object_name): New.
1622 (darwin_output_aligned_bss): Likewise.
1623 (darwin_asm_output_aligned_decl_local): Likewise.
1624 (darwin_asm_output_aligned_decl_common): Likewise.
1625 (darwin_use_anchors_for_symbol_p): Likewise.
1626 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
1627 (TARGET_ASM_OUTPUT_ANCHOR): Define.
1628 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
1629 (DARWIN_SECTION_ANCHORS): Set to 1.
1630 * config/darwin.c (emit_aligned_common): New var.
1631 (darwin_init_sections): Check that the Darwin private zero-size section
1633 (darwin_text_section): Check for zero-sized objects.
1634 (darwin_mergeable_string_section): Likewise.
1635 (darwin_mergeable_constant_section): Likewise.
1636 (machopic_select_section): Adjust to check for zero-sized objects.
1637 Assert that OBJC meta data are non-zero sized.
1638 (darwin_asm_declare_object_name): New.
1639 (darwin_asm_declare_constant_name): Adjust for zero-sized
1641 (BYTES_ZFILL): Define.
1642 (darwin_emit_weak_or_comdat): New.
1643 (darwin_emit_local_bss): New.
1644 (darwin_emit_common): New.
1645 (darwin_output_aligned_bss): New.
1646 (darwin_asm_output_aligned_decl_common): New.
1647 (darwin_asm_output_aligned_decl_local): New.
1648 (darwin_file_end): Disable subsections_via_symbols when section
1649 anchoring is active.
1650 (darwin_asm_output_anchor): Re-enable.
1651 (darwin_use_anchors_for_symbol_p): New.
1652 (darwin_override_options): Check for versions that can emit
1653 aligned common. Update usage of flags to current.
1654 * config/darwin-sections.def: Update comments and flags for
1655 non-anchor sections. zobj_const_section, zobj_data_section,
1656 zobj_bss_section, zobj_const_data_section: New.
1657 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
1658 (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
1659 (L2_MAX_OFILE_ALIGNMENT): Define.
1660 (ASM_OUTPUT_ALIGNED_BSS): Define.
1661 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1662 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1663 (SECTION_NO_ANCHOR): Define.
1664 (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
1665 (DARWIN_SECTION_ANCHORS): Define with a default of 0.
1667 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1669 * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
1670 Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
1671 (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
1672 Conditionally define.
1673 (GET_ENVIRONMENT): Poison.
1674 * configure.ac: Don't test for mincore.
1675 * configure: Regenerate.
1676 * config.in: Regenerate.
1677 * collect2-aix.c: Don't include <sys/mman.h>.
1678 * collect2.c: Don't include <signal.h>.
1679 (SIGCHLD): Don't define.
1680 (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
1681 * config/alpha/alpha.c: Include "splay-tree.h" instead of
1683 * config/arm/arm.c (arm_target_help): Use getenv instead of
1685 * config/avr/driver-avr.c: Don't include <stdlib.h>.
1686 * config/frv/frv.c: Don't include <ctype.h>.
1687 * config/host-darwin.c: Don't include <sys/mman.h>.
1688 * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
1689 (MAP_FAILED): Don't define.
1690 * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
1691 * config/host-solaris.c: Don't include <sys/mman.h>.
1692 * config/i386/cygming.h: Don't include <stdio.h>.
1693 * config/i386/driver-i386.c: Don't include <stdlib.h>.
1694 * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
1695 * config/iq2000/iq2000.c: Don't include <signal.h>.
1696 * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
1697 * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
1698 * config/mep/mep-pragma.c: Don't include <stdio.h>.
1699 * config/microblaze/microblaze.c: Don't include <signal.h>.
1700 * config/mips/mips.c: Don't include <signal.h>.
1701 * config/rs6000/host-darwin.c: Don't include <signal.h>.
1702 * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
1703 * defaults.h (GET_ENVIRONMENT): Don't define.
1704 * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
1705 * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
1706 (SIGCHLD, MAP_FAILED, kill): Don't define.
1707 (process_command): Use getenv instead of GET_ENVIRONMENT.
1708 * genhooks.c: Don't include <string.h>.
1709 * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
1711 (MAP_FAILED): Don't define.
1712 * ggc-page.c Don't include <sys/mman.h>.
1713 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1714 * ggc-zone.c: Don't include <sys/mman.h>.
1715 (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1716 * graph.c: Include "config.h" instead of <config.h>.
1717 * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
1718 * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
1719 (SIGCHLD, kill): Don't define.
1720 * mips-tfile.c: Don't include <signal.h>.
1721 * opts.c: Don't include <signal.h> or <sys/resource.h>.
1722 (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
1723 * passes.c: Don't include <signal.h>, <sys/resource.h> or
1725 * sparseset.h: Don't include <assert.h>.
1726 * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
1727 * tlink.c: Don't include "libiberty.h".
1728 * toplev.c: Don't include <signal.h> or <sys/times.h>.
1729 * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
1730 * tree-switch-conversion.c: Don't include <signal.h>.
1731 * vmsdbgout.c: Don't include <errno.h> or <string.h>.
1733 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
1735 * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
1736 c_parser_objc_try_catch_finally_statement for consistency with the
1737 C++ parser. Parse @catch(...) and pass NULL_TREE to
1738 objc_begin_catch_clause() in that case. Improved error recovery.
1739 Reorganized code to be almost identical to
1740 cp_parser_objc_try_catch_finally_statement.
1742 2010-11-29 Joern Rennecke <amylaar@spamcop.net>
1744 PR tree-optimization/46621
1745 * gimple.h: Don't include tm.h or hard-reg-set.h .
1746 * Makefile.in (GIMPLE_H): Remove $(TM_H).
1749 * cppbuiltin.c: Include target.h .
1750 (define_builtin_macros_for_type_sizes):
1751 Use targetm.float_words_big_endian.
1753 2010-11-27 Jan Hubicka <jh@suse.cz>
1755 * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
1756 and output cold_text_section_label.
1757 (dwarf2out_init): Don't do that there.
1758 (dwarf2out_finish): Handle cold section end label only if cold
1761 2010-11-27 Eric Botcazou <ebotcazou@adacore.com>
1763 * tree-nested.c (remap_vla_decls): Fully expand value expressions of
1766 2010-11-27 Richard Guenther <rguenther@suse.de>
1768 * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
1769 (gimple_assign_ssa_name_copy_p): Likewise.
1770 (gimple_assign_unary_nop_p): Use is_gimple_assign.
1771 (is_gimple_cast): Remove.
1772 (gimple_assign_single_p): Move ...
1773 * gimple.h (gimple_assign_single_p): ... here.
1774 (is_gimple_cast): Remove.
1775 (gimple_assign_rhs_code): Simplify.
1776 * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
1777 instead of is_gimple_cast.
1778 * ipa-type-escape.c (look_for_casts): Likewise.
1780 2010-11-26 Joseph Myers <joseph@codesourcery.com>
1782 * doc/options.texi (Enum, EnumValue): Document new record types.
1783 (Enum): Document new option flag.
1785 * optc-gen.awk: Handle enumerated option arguments.
1786 * opth-gen.awk: Handle enumerated option arguments.
1787 * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
1788 enum_value_to_arg): New.
1789 (decode_cmdline_option): Handle enumerated arguments.
1790 (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
1791 (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
1792 * opts.c (print_filtered_help, print_specific_help): Take
1793 lang_mask arguments.
1794 (print_filtered_help): Handle printing values of enumerated
1795 options. Print possible arguments for enumerated options.
1796 (print_specific_help): Update call to print_filtered_help.
1797 (common_handle_option): Update calls to print_specific_help. Use
1798 value rather than arg for OPT_fdiagnostics_show_location_. Don't
1799 handle OPT_ffp_contract_, OPT_fexcess_precision_,
1800 OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
1801 OPT_fira_region_ here.
1802 * opts.h (enum cl_var_type): Add CLVC_ENUM.
1803 (struct cl_option): Add var_enum.
1804 (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
1805 struct cl_enum, cl_enums, cl_enums_count): New.
1806 (CL_ERR_ENUM_ARG): Define.
1807 (CL_ERR_NEGATIVE): Update value.
1808 (enum_value_to_arg): Declare.
1809 * common.opt (flag_ira_algorithm, flag_ira_region,
1810 flag_fp_contract_mode, flag_excess_precision_cmdline,
1811 default_visibility, flag_tls_default): Remove Variable entries.
1812 (help_enum_printed): New Variable.
1813 (fdiagnostics-show-location=): Use Enum. Add associated
1814 SourceInclude, Enum and EnumValue entries.
1815 (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
1816 ftls-model=, fvisibility=): Use Enum, Var and Init. Add
1817 associated Enum and EnumValue entries.
1819 2010-11-26 Joern Rennecke <amylaar@spamcop.net>
1822 * config/microblaze/microblaze.c (microblaze_block_move_straight):
1824 (microblaze_option_override): Don't use C++ style comments.
1825 (save_restore_insns): Remove unused variable base_offset.
1826 (microblaze_expand_prologue): Remove unused variable insn.
1827 (microblaze_secondary_reload): Adjust type to match target.h .
1828 (microblaze_elf_in_small_data_p): Move declarations to start of block.
1829 (microblaze_expand_move): Likewise.
1830 * config/microblaze/microblaze.h (LARGE_INT):
1831 Avoid signed / unsigned comparisons.
1832 (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1833 (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
1834 (ASM_FINISH_DECLARE_OBJECT): Likewise. Constify name.
1836 2010-11-26 Michael Matz <matz@suse.de>
1838 * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
1840 * passes.c (init_optimization_passes): Remove superfluous
1843 2010-11-26 Richard Guenther <rguenther@suse.de>
1846 * gimple.c (gtc_visit): Do not return true for members of an
1847 SCC still being processed but the current lattice value of
1848 the member. Treat SCC members comparison state as lattice,
1849 starting at equal, eventually dropping to unequal.
1850 (gimple_types_compatible_p_1): Likewise.
1852 2010-11-26 Richard Guenther <rguenther@suse.de>
1855 * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
1856 for location list processing.
1858 2010-11-26 Richard Guenther <rguenther@suse.de>
1861 * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
1864 2010-11-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1866 * config/s390/s390.c (print_operand_address): Replace assert with
1868 (print_operand): Replace assertions, gcc_unreachable and
1869 fatal_insn with error messages.
1871 2010-11-26 Richard Guenther <rguenther@suse.de>
1873 PR tree-optimization/46665
1874 * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
1876 2010-11-26 Ian Bolton <ian.bolton@arm.com>
1878 * config/arm/arm.c (arm_option_override): enable loop array
1879 prefetching at -O3 for suitable targets, and configure params.
1880 * config/arm/arm-protos.h (struct tune_params): Add fields for
1881 configuring loop array prefetching.
1883 2010-11-26 Christian Borntraeger <borntraeger@de.ibm.com>
1885 * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
1887 2010-11-26 Richard Guenther <rguenther@suse.de>
1889 PR tree-optimization/46664
1890 * tree-affine.c (aff_combination_to_tree): Add rest last.
1892 2010-11-26 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1895 * configure.ac: Accept extra arguments for AS_FOR_TARGET,
1896 LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
1897 * configure: Regenerated.
1898 * exec-tool.in: Not quoting command, may have extra arguments.
1900 2010-11-26 Richard Guenther <rguenther@suse.de>
1902 PR tree-optimization/46528
1904 * profile.c (branch_prob): Do not split blocks based on locations
1905 from debug statements.
1907 2010-11-26 Jakub Jelinek <jakub@redhat.com>
1910 * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
1911 of host_integerp check. Use TREE_INT_CST_LOW instead of tree_low_cst.
1914 * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
1915 build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
1916 (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
1917 build6_loc): Define.
1918 * fold-const.c (protected_set_expr_location_unshare): New inline.
1919 (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
1920 (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
1921 pedantic_omit_one_operand_loc, omit_two_operands_loc,
1922 fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
1923 optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
1924 build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
1925 fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
1926 instead of buildN followed by SET_EXPR_LOCATION or
1927 protected_set_expr_location.
1928 (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
1929 Use buildN_stat_loc instead of buildN_stat followed by
1932 2010-11-26 Basile Starynkevitch <basile@starynkevitch.net>
1934 * Makefile.in (s-tm-texi): Remove spurous tab.
1936 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
1939 * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
1942 2010-11-26 Alexandre Oliva <aoliva@redhat.com>
1944 * toplev.c (finalize): Add no_backend parameter. Don't finish
1945 passes when preprocessing only. Adjust...
1946 (do_compile): ... caller.
1948 2010-11-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1950 * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1951 flag_unsafe_math_optimizations.
1953 Move fnegabs related patterns together. Only use fmpynfadd instruction
1954 to negate a multiply if !flag_signed_zeros is true.
1956 2010-11-25 Uros Bizjak <ubizjak@gmail.com>
1958 * gengtype-state.c (read_state_structures): Initialize "previous".
1960 2010-11-25 Basile Starynkevitch <basile@starynkevitch.net>
1961 Jeremie Salvucci <jeremie.salvucci@free.fr>
1963 * gengtype-state.c: Add new file.
1965 * gengtype.c (type count): New variable.
1966 (new_structure, find_param_structure, create_pointer)
1967 (create_array): Use it to set state_number in types.
1968 (dump_everything): Improve comment.
1969 (main): Call read_state and write_state. Print type_count.
1971 * gengtype.h (type_lineloc): New function.
1972 (read_state, write_state): New declarations.
1974 * Makefile.in (GENGTYPE_FLAGS): New variable.
1975 (s-gtype): Run gengtype twice and generate gtype.state.
1976 (build/gengtype-state.o): New rule.
1977 (build/gengtype$(build_exeext)): Link gengtype-state.o.
1978 (mostlyclean): Update comment. Remove gtype.state.
1980 2010-11-25 Jakub Jelinek <jakub@redhat.com>
1983 * combine.c (try_combine): When substing i2dest for i2src, pass
1984 1 as last argument even if
1985 i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1987 2010-11-25 H.J. Lu <hongjiu.lu@intel.com>
1990 * builtins.c (target_char_cast): Check INTEGER_CST instead of
1991 host_integerp. Replace tree_low_cst with TREE_INT_CST_LOW.
1993 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1995 * target.def (supports_split_stack, except_unwind_info): Take
1996 gcc_options parameters.
1997 * targhooks.c (default_except_unwind_info,
1998 dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
1999 gcc_options parameters.
2000 * targhooks.h (default_except_unwind_info,
2001 dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
2003 * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
2004 TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
2005 Document that hooks must not be modified.
2006 (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
2007 * doc/tm.texi: Regenerate.
2008 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
2009 &global_options to targetm.except_unwind_info.
2010 * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2011 dwarf2out_begin_prologue, dwarf2out_frame_init,
2012 dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
2013 &global_options to targetm.except_unwind_info.
2014 * except.c (init_eh, finish_eh_generation,
2015 gate_convert_to_eh_region_ranges,
2016 output_one_function_exception_table): Pass &global_options to
2017 targetm.except_unwind_info.
2018 * expr.c (build_personality_function): Pass &global_options to
2019 targetm.except_unwind_info.
2020 * function.c (expand_function_end): Pass &global_options to
2021 targetm.except_unwind_info.
2022 * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
2023 * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
2024 * opts.c (finish_options): Pass opts to targetm.except_unwind_info
2025 and targetm.supports_split_stack. Remove assertions about opts
2027 (common_handle_option): Remove assertions about opts, opts_set and dc.
2028 * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
2029 &global_options to targetm.except_unwind_info.
2030 * tree.c (build_common_builtin_nodes: Pass &global_options to
2031 targetm.except_unwind_info.
2032 * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
2033 (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
2034 thumb1_expand_prologue, thumb1_output_function_prologue,
2035 arm_unwind_emit, arm_output_fn_unwind): Update calls to
2036 arm_except_unwind_info.
2037 * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
2039 * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
2041 (ia64_output_function_prologue, ia64_add_bundle_selector_before,
2042 ia64_reorg, ia64_asm_unwind_emit): Update calls to
2043 ia64_except_unwind_info.
2044 * config/pa/pa.c (pa_option_override): Pass &global_options to
2045 targetm.except_unwind_info.
2046 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
2049 2010-11-25 Kai Tietz <kai.tietz@onevision.com>
2051 * cgraphunit.c (process_function_and_variable_attributes):
2052 Mark dllexport-ed function/variables as needed.
2053 * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
2054 as externally visible.
2056 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
2058 PR rtl-optimization/46585
2059 * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
2060 (vinsn_init): Skip computation of dependencies for local NOPs.
2061 (vinsn_delete): Don't try to free regsets for local NOPs.
2062 (setup_nop_and_exit_insns): Change definition of nop_pattern.
2064 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
2066 PR rtl-optimization/46602
2067 * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
2068 (tidy_control_flow): Here.
2070 2010-11-25 Joern Rennecke <amylaar@spamcop.net>
2071 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2074 * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
2075 Fix target.def pathname in timestamp comparison.
2077 2010-11-24 Richard Henderson <rth@redhat.com>
2079 * config/ia64/predicates.md (pmpyshr_operand): New.
2080 * config/ia64/ia64.c (ia64_expand_unpack): New.
2081 (ia64_expand_widen_mul_v4hi): New.
2082 (ia64_expand_widen_sum): Update for pattern renames.
2083 (ia64_expand_dot_prod_v8qi): Likewise.
2084 * config/ia64/ia64-protos.h: Update.
2085 * config/ia64/vect.md (vecwider): New mode attribute.
2086 (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
2087 (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
2088 (pmpyshr2, pmpyshr2_u): New.
2089 (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
2090 (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
2092 (vec_pack_ssat_v4hi): Rename from pack2_sss.
2093 (vec_pack_usat_v4hi): Rename from *pack2_uss.
2094 (vec_pack_ssat_v2si): Rename from pack4_sss.
2095 (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
2096 vec_select operation.
2097 (vec_interleave_highv8qi): Similarly.
2098 (mux1_alt): Rename from *mux1_alt.
2099 (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
2100 (vec_interleave_lowv4hi): Rename from unpack2_l.
2101 (vec_interleave_highv4hi): Rename from unpack2_h.
2102 (mix2_r): Rename from *mix2_r.
2103 (mix2_l): Similarly.
2104 (vec_extract_evenodd_helper): New.
2105 (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
2106 (vec_interleave_lowv2si): Rename from *unpack4_l.
2107 (vec_interleave_highv2si): Rename from *unpack4_h.
2108 (vec_extract_evenv2si, vec_extract_oddv2si): New.
2109 (vec_interleave_lowv2sf): Rename from fmix_r.
2110 (vec_interleave_highv2sf): Rename from *fmix_l.
2111 (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
2112 (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
2113 (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
2114 (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
2116 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
2118 * targhooks.c (default_except_unwind_info): Remove
2119 MUST_USE_SJLJ_EXCEPTIONS case.
2120 * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
2121 * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2122 * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
2123 * doc/tm.texi: Regenerate.
2124 * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
2126 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
2128 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
2129 __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
2130 * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
2131 * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
2132 * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
2134 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
2137 * config/i386/i386.c (ix86_expand_call): Don't check
2140 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
2143 * config/i386/i386.c (upper_128bits_state): New.
2144 (block_info_def): Remove upper_128bits_set and done. Add state,
2145 referenced, count, processed and rescanned.
2146 (check_avx256_stores): Updated.
2147 (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
2148 Call note_stores only if needed. Set referenced and count.
2149 (move_or_delete_vzeroupper_1): Updated. Set rescan_vzeroupper_p.
2150 (rescan_move_or_delete_vzeroupper): New.
2151 (move_or_delete_vzeroupper): Process and rescan all all basic
2152 blocks instead of predecessor blocks of all exit points.
2153 (ix86_option_override_internal): Enable vzeroupper optimization
2154 only for -fexpensive-optimizations and not optimizing for size.
2155 (use_avx256_p): Removed.
2156 (init_cumulative_args): Don't set use_avx256_p.
2157 (ix86_function_arg): Likewise.
2158 (ix86_expand_move): Likewise.
2159 (ix86_expand_vector_move_misalign): Likewise.
2160 (ix86_local_alignment): Likewise.
2161 (ix86_minimum_alignment): Likewise.
2162 (ix86_expand_epilogue): Don't check use_avx256_p when generating
2164 (ix86_expand_call): Likewise.
2166 * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
2167 and use_avx256_p. Add rescan_vzeroupper_p.
2169 2010-11-24 Joseph Myers <joseph@codesourcery.com>
2171 * toplev.c: Include <signal.h>.
2173 2010-11-24 Richard Guenther <rguenther@suse.de>
2176 * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
2177 conflicting function signatures as non-inlineable.
2179 2010-11-24 Jakub Jelinek <jakub@redhat.com>
2181 PR rtl-optimization/46614
2182 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
2183 (deps_analyze_insn): Mark JUMP_INSNs in
2184 last_pending_memory_flush that weren't added through
2185 flush_pending_lists with NON_FLUSH_JUMP_KIND.
2186 (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
2187 on INSN_LIST instead of JUMP_P check on its operand.
2188 * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
2190 2010-11-24 Richard Guenther <rguenther@suse.de>
2192 * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
2194 2010-11-24 Richard Guenther <rguenther@suse.de>
2197 * lto-streamer-in.c (input_gimple_stmt): When we cannot find
2198 a FIELD_DECL that is type correct issue a warning and fixup
2199 with a VIEW_CONVERT_EXPR.
2201 2010-11-24 Basile Starynkevitch <basile@starynkevitch.net>
2203 * doc/invoke.texi (Options for Debugging Your Program or GCC):
2204 Explain static numbering of dump files.
2206 2010-11-24 Joseph Myers <joseph@codesourcery.com>
2208 * common.opt (user_vect_verbosity_level): New Variable entry.
2209 (ftree-vectorizer-verbose=): Mark as UInteger.
2210 * flag-types.h (enum vect_verbosity_levels): Move from enum
2211 verbosity_levels in tree-vectorizer.h.
2212 * opts.c: Don't include tree.h.
2213 (vect_set_verbosity_level): Move from tree-vectorizer.c. Use
2214 gcc_options parameter; take integer option argument.
2215 (common_handle_option): Update call to vect_set_verbosity_level.
2216 * tree-vectorizer.c (user_vect_verbosity_level): Remove.
2217 (vect_set_verbosity_level): Move to opts.c.
2218 (vect_verbosity_level, vect_print_dump_info): Update for change of
2220 * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
2221 (vect_print_dump_info): Update for change of enum name.
2222 * tree.h (vect_set_verbosity_level): Remove.
2223 * Makefile.in (opts.o): Update dependencies.
2225 2010-11-24 Jakub Jelinek <jakub@redhat.com>
2228 * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
2229 instead of insn with any_condjump_p.
2231 2010-11-24 Mingjie Xing <mingjie.xing@gmail.com>
2233 * config/mips/loongson.md: Change the description comment of the file
2234 and update the copyright years.
2235 (define_insn "<u>div<mode>3): Add loongson3a support.
2236 (define_insn "<u>mod<mode>3"): Likewise.
2237 * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
2238 mul<mode>3_mul3_loongson.
2239 (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
2240 (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
2242 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2244 * common.opt (initial_max_fld_align, flag_debug_asm,
2245 flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
2246 flag_print_asm_name, graph_dump_format, help_printed,
2247 help_columns, flag_opts_finished): New Variable entries.
2248 (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
2249 frandom-seed=): Mark deferred.
2250 (fsched-verbose=): Use UInteger and Var.
2251 * flags.h (set_struct_debug_option, flag_print_asm_name,
2252 rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
2253 graph_dump_format): Don't declare here.
2254 * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
2255 * opts-global.c: Include dbgcnt.h and debug.h.
2256 (decode_options): Pass location to finish_options.
2257 (handle_common_deferred_options): Check flag_dump_all_passed.
2258 Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
2259 OPT_frandom_seed and OPT_frandom_seed_. Don't assert on
2261 * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
2262 (set_struct_debug_option): Add location_t parameter. Update
2263 recursive call. Use error_at.
2264 (default_options_optimization): Use error_at.
2265 (finish_options): Add location_t parameter. Use
2266 opts->x_flag_opts_finished instead of first_time_p. Use
2267 opts->x_optimize instead of optimize. Use error_at. Pass
2269 (print_filtered_help): Use opts->x_help_printed to track what
2270 options have been printed.
2271 (print_specific_help): Use opts->x_help_columns to track number of
2273 (common_handle_option): Pass locations and gcc_options pointers to
2274 more functions. Use warning_at instead of fnotice and warning.
2275 Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
2276 OPT_fdebug_prefix_map_. Use error_at. Set
2277 opts->x_initial_max_fld_align; don't set maximum_field_alignment.
2278 Don't handle OPT_frandom_seed or OPT_frandom_seed_. Don't handle
2279 OPT_fsched_verbose_.
2280 (handle_param): Add location_r parameter. Use error_at.
2281 (set_debug_level): Add location_r parameter. Use error_at and
2283 (setup_core_dumping): Add diagnostic_context parameter.
2284 (decode_d_option): Add gcc_options, location_t and
2285 diagnostic_context parameters and use them instead of global
2286 state. Use warning_at.
2287 (enable_warning_as_error): Use error_at.
2288 * opts.h (finish_options): Update prototype.
2289 (set_struct_debug_option): Declare here.
2290 * rtl.h (fix_sched_param): Remove.
2291 * stor-layout.c (initial_max_fld_align): Remove.
2292 * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
2293 graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
2294 (process_options): Set maximum_field_alignment.
2295 * tree.h (initial_max_fld_align) Don't declare here.
2296 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2298 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2300 * flag-types.h (struct visibility_flags): Don't declare here.
2301 * flags.h (strip_off_ending, fast_math_flags_set_p,
2302 fast_math_flags_struct_set_p): Declare here.
2303 (visibility_options): Don't declare here.
2304 * opts-common.c (option_enabled, get_option_state): Move from
2306 * opts-global.c: Include diagnostic.h instead of
2307 diagnostic-core.h. Include tree.h, langhooks.h, lto-streamer.h
2309 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2310 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2311 print_ignored_options, unknown_option_callback,
2312 post_handling_callback, lang_handle_option, add_input_filename,
2313 read_cmdline_options, initial_lang_mask, init_options_once,
2314 decode_cmdline_options_to_array_default_mask,
2315 set_default_handlers, decode_options): Move from opts.c.
2316 (print_ignored_options): Use warning_at instead of saving and
2317 restoring input_location.
2318 * opts.c: Include <signal.h> and <sys/resource.h>. Include rtl.h
2319 instead of expr.h. Don't include langhooks.h, except.h or
2320 lto-streamer.h. Add more comments on includes.
2321 (strip_off_ending, setup_core_dumping, decode_d_option): Move from
2323 (visibility_options): Move to c-family/c-common.c.
2324 (const_char_p, ignored_options, in_fnames, num_in_fnames,
2325 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2326 print_ignored_options, unknown_option_callback,
2327 post_handling_callback, lang_handle_option, add_input_filename,
2328 read_cmdline_options, initial_lang_mask, init_options_once,
2329 decode_cmdline_options_to_array_default_mask,
2330 set_default_handlers, decode_options): Move to opts-global.c.
2331 (target_handle_option, default_options_optimization,
2332 finish_options, common_handle_option): Remove static.
2333 (option_enabled, get_option_state): Move to opts-common.c.
2334 * opts.h (common_handle_option, target_handle_option,
2335 finish_options, default_options_optimization): Declare.
2336 * toplev.c: Don't include <signal.h> or <sys/resource.h>.
2337 (setup_core_dumping, strip_off_ending, decode_d_option): Move to
2339 * toplev.h (strip_off_ending, decode_d_option,
2340 fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
2342 * Makefile.in (opts.o, opts-global.o): Update dependencies.
2344 2010-11-23 Dave Korn <dave.korn.cygwin@gmail.com>
2347 * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
2348 options, replace by call of pass-through-libs spec function to process
2349 link_gcc_c_sequence spec.
2350 (lto_libgcc_spec): Delete variable.
2351 (static_specs[]): Remove related entry.
2352 (static_spec_functions[]): Add new entry for pass-through-libs.
2353 (main): Don't generate deleted lto_libgcc_spec.
2354 (pass_through_libs_spec_func): New function to implement the new
2355 pass-through-libs spec function.
2356 * doc/invoke.texi (pass-through-libs): Document new spec function.
2358 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2360 * doc/options.texi (Warning, Optimization): Document.
2362 2010-11-23 Jan Hubicka <jh@suse.cz>
2364 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
2365 (tree_decl_with_vis): Add implicit_section_name_p.
2366 * targhooks.h (default_function_section): Declare.
2367 * target.def (function_section): New hook.
2368 * defaults.h (HOT_TEXT_SECTION_NAME,
2369 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2370 * predict.c (choose_function_section): Remove.
2371 (estimate_bb_frequencies): Do not use choose_function_section.
2372 * coretypes.h (enum node_frequency): Move here from cgraph.h
2373 * cgraph.h (enum node_frequency): Remove.
2374 * varasm.c (initialize_cold_section_name, unlikely_text_section,
2375 unlikely_text_section_p): Remove.
2376 (named_subsection_entry): New structure.
2377 (get_text_section): New function.
2378 (default_function_section): New function.
2379 (function_section_1): Break out from ...; handle profile info.
2380 (function_section): ... here.
2381 (unlikely_text_section): Remove.
2382 (unlikely_text_section_p): Use function_section_1.
2383 (assemble_start_function): Do not initialize cold section.
2384 (default_section_type_flags): Do not special case cold subsection.
2385 (switch_to_section): Likewise.
2386 * output.h (get_text_section): Define.
2387 * config/i386/winnt.c: Do not special case cold section.
2388 * config/darwin-protos.h (darwin_function_section): Declare.
2389 * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
2390 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2391 * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
2392 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2393 (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
2394 * config/ia64/ia64.c (ia64_hpux_function_section): New function.
2395 * config/darwin.c (machopic_select_section): Use
2396 darwin_function_section.
2397 (darwin_function_section): New function.
2398 * config/darwin.h (HOT_TEXT_SECTION_NAME,
2399 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2400 (TARGET_ASM_FUNCTION_SECTION): Define.
2401 * system.h (HOT_TEXT_SECTION_NAME,
2402 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
2404 2010-11-23 Iain Sandoe <iains@gcc.gnu.org>
2406 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
2407 LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
2409 2010-11-23 Jakub Jelinek <jakub@redhat.com>
2412 * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
2413 following unconditional jumps.
2415 2010-11-23 Richard Guenther <rguenther@suse.de>
2417 * doc/md.texi (386 constraints): Clarify A constraint documentation.
2419 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
2420 Jeremie Salvucci <jeremie.salvucci@free.fr>
2422 * gengtype.c (enum typekind, struct options)
2423 (struct nested_ptr_data, struct pair, NUM_PARAM)
2424 (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
2426 (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
2427 Remove static, add zero state_number.
2428 (typedefs, structures, param_structs, variables): Remove static.
2429 (create_option): Remove.
2430 (create_string_option, create_type_option, create_nested_option):
2432 (create_nested_ptr_option): Use create_nested_option.
2433 (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
2434 new create*option functions.
2435 (process_gc_options): Adjust for discriminated option.
2436 (output_mangled_typename): Handle TYPE_NONE.
2437 (walk_type): Test option kinds.
2438 (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
2439 (write_func_for_structure, write_type, write_local, write_root)
2440 (write_roots, note_def_vec, dump_options): Adjust for
2441 discriminated option.
2443 * gengtype.h (typedefs, structures, param_structs, variables
2444 enum typekind): Move from gengtype.c
2445 (enum option_kind): New discriminating enumeration.
2446 (struct options): Becomes discriminated.
2447 (struct nested_ptr_data): Nove from gengtype.c
2448 (create_string_option, create_type_option, create_nested_option)
2449 (create_nested_ptr_option): New functions
2450 (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
2451 (UNION_OR_STRUCT_P): Move from gengtype.c
2453 * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
2454 discriminated options.
2456 2010-11-23 Richard Guenther <rguenther@suse.de>
2458 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
2459 twice. Avoid re-allocating the ops vector all the time.
2461 2010-11-23 Richard Guenther <rguenther@suse.de>
2463 * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
2464 is_gimple_min_invariant, group tree code checks to allow
2466 (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
2469 2010-11-23 Eric Botcazou <ebotcazou@adacore.com>
2471 * config.gcc (sparc*-*-*): Reorder.
2473 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
2475 * gengtype.c (header_dot_h_frul, source_dot_c_frul):
2476 Remove ENABLE_CHECKING around DBGPRINTF.
2478 2010-11-22 Joseph Myers <joseph@codesourcery.com>
2480 * common.opt (exit_after_options, write_symbols, debug_info_level,
2481 use_gnu_debug_info_extensions): New Variable entries.
2482 (fprofile-dir=): Use Var.
2483 * flag-types.h (enum debug_info_level): Rename to enum
2485 * flags.h (write_symbols, debug_info_level,
2486 use_gnu_debug_info_extensions): Remove declarations.
2487 * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
2488 (set_struct_debug_option): Make static variables const.
2489 (use_gnu_debug_info_extensions): Remove.
2490 (set_debug_level, print_filtered_help, print_specific_help,
2491 fast_math_flags_set_p): Take gcc_options parameters and use them
2492 in place of global variables.
2493 (print_filtered_help): Make new_help non-static.
2494 (print_specific_help): Update call to print_filtered_help.
2495 (common_handle_option): Update calls to print_specific_help. Use
2496 gcc_options structure for more settings. Make --help table
2497 const. Don't handle OPT_fprofile_dir_ here. Update calls to
2499 * toplev.c (profile_data_prefix): Remove.
2500 * toplev.h (profile_data_prefix, exit_after_options): Remove
2502 (fast_math_flags_set_p): Update prototype.
2503 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
2504 Update call to fast_math_flags_set_p.
2506 2010-11-22 Richard Henderson <rth@redhat.com>
2509 * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
2510 return the address register extracted.
2511 (crx_decompose_address): Update the extracted address register.
2513 2010-11-22 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
2516 * gcc.c (main): Don't crash when lto-wrapper program is not found.
2518 2010-11-22 Joern Rennecke <amylaar@spamcop.net>
2521 * config/picochip/picochip.c (picochip_secondary_reload): Make static.
2522 * config/picochip/picochip-protos.h: Don't include "target.h" .
2523 (picochip_secondary_reload): Don't declare.
2526 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
2527 * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
2530 2010-11-22 H.J. Lu <hongjiu.lu@intel.com>
2533 * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
2534 (source_dot_c_frul): Likewise.
2536 2010-11-22 Basile Starynkevitch <basile@starynkevitch.net>
2538 * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
2540 2010-11-22 Paolo Bonzini <bonzini@gnu.org>
2543 * Makefile.in (fwprop.o) Add sparseset.h.
2544 * fwprop.c: Include sparseset.h
2545 (struct find_occurrence_data, find_occurrence_callback,
2546 find_occurrence): Remove.
2547 (active_defs, active_defs_check, register_active_defs,
2548 update_df_init, update_uses): New.
2549 (update_df): Rewrite.
2550 (try_fwprop_subst, forward_propagate_asm): Add calls to
2551 update_df_init and update_df.
2552 (fwprop_init): Allocate active_defs and active_defs_check.
2553 (fwprop_done): Free them.
2554 (fwprop, fwprop_addr): Adjust comments.
2555 * df.h (df_uses_create): Declare.
2556 * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
2557 (df_ref_create): Return result of df_ref_create_structure directly.
2558 (df_ref_create_structure): Call df_install_ref_incremental when
2559 no collection_rec is passed.
2560 (df_ref_record): Do not create multiword hard reg info when no
2561 collection_rec is passed.
2562 (df_uses_create): New.
2564 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
2567 * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
2570 2010-11-22 Richard Guenther <rguenther@suse.de>
2572 * gimple-fold.c (maybe_fold_reference): When canonicalizing
2573 MEM_REFs, preserve volatileness.
2574 * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
2577 2010-11-22 Richard Guenther <rguenther@suse.de>
2579 * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
2581 2010-11-22 Alexander Monakov <amonakov@ispras.ru>
2583 PR rtl-optimization/45652
2584 * alias.c (get_reg_base_value): New.
2585 * rtl.h (get_reg_base_value): Add prototype.
2586 * sel-sched.c (init_regs_for_mode): Use it. Don't use registers with
2587 non-null REG_BASE_VALUE for renaming.
2589 2010-11-22 Jeremie Salvucci <jeremie.salvucci@free.fr>
2590 Basile Starynkevitch <basile@starynkevitch.net>
2592 * gengtype.c: Include xregex.h and obstack.h
2593 Added comments about role of get_output_file_with_visibility and
2594 our regexpr machinery.
2595 (frul_actionrout_t, struct file_rule_st): New.
2596 (hader_dot_h_frul, source_dot_c_frul): New functions.
2597 (NULL_REGEX, NULL_FRULACT): New.
2599 (matching_file_name_substitute): New function.
2600 (get_output_file_with_visibility): Updated comments and rewritten
2601 to use the new files_rules machinery.
2603 * Makefile.in (XREGEX_H): Added variable.
2604 (build/gengtype.o): Added dependencies for xregex.h and obstack.h
2606 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
2608 * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
2610 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
2612 * target.def (conditional_register_usage): Define.
2613 * reginfo.c (init_reg_sets_1): Call
2614 targetm.conditional_register_usage.
2615 * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
2616 * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
2617 for making it a hook.
2618 * doc/tm.texi: Regenerate.
2619 * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2620 * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
2622 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2623 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2624 * config/arc/arc.c (arc_conditional_register_usage): ...here.
2626 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2627 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2628 * config/arm/arm.c (arm_conditional_register_usage): ...here.
2630 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2631 * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
2632 * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
2633 * config/bfin/bfin.c (conditional_register_usage): Move code into...
2634 (bfin_conditional_register_usage): ...here. New function.
2635 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2636 * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
2637 * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
2638 * config/cris/cris.c (cris_conditional_register_usage): Make static.
2639 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2640 * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
2641 * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
2642 * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
2643 * config/frv/frv.c (frv_conditional_register_usage): Make static.
2644 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2645 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2646 * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
2648 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2649 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
2650 * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
2651 * config/i386/i386.c (ix86_conditional_register_usage): Make static.
2652 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2653 * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
2654 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
2655 * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
2656 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2657 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2658 * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
2660 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2661 * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
2662 * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
2664 * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
2666 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2667 * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
2668 * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
2669 * config/mep/mep.c (mep_conditional_register_usage): Make static.
2670 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2671 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
2672 * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
2673 * config/mips/mips.c (mips_conditional_register_usage): Make static.
2674 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2675 * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
2676 * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
2677 * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
2678 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2679 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2680 * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
2681 ...here. New function.
2682 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2683 * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2684 * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
2685 * config/pa/pa.c (pa_conditional_register_usage): ...here.
2687 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2688 * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2689 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
2691 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2692 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
2693 * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
2695 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
2697 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2698 * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
2699 * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
2700 * config/rx/rx.c (rx_conditional_register_usage): Make static.
2701 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2702 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
2703 * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
2704 * config/s390/s390.c (s390_conditional_register_usage): Make static.
2705 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2706 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2707 * config/score/score.c (score_conditional_register_usage): ...here.
2709 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2710 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2711 * config/sh/sh.c (sh_conditional_register_usage): ...here.
2713 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2714 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2715 * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
2717 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2718 * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
2719 * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
2720 * config/spu/spu.c (spu_conditional_register_usage): Make static.
2721 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2722 * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2723 * config/v850/v850.c (v850_conditional_register_usage): ...here.
2725 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2727 2010-11-21 Jan Hubicka <jh@suse.cz>
2728 Dominique d'Humieres <dominiq@lps.ens.ft>
2731 * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
2732 finalize external decls.
2734 2010-11-21 Joseph Myers <joseph@codesourcery.com>
2736 * system.h (strerror): Poison.
2738 2010-11-21 Richard Henderson <rth@redhat.com>
2740 * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
2743 2010-11-21 Richard Henderson <rth@redhat.com>
2745 PR rtl-optimization/46571
2746 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
2747 (compute_hash_table_work): Use NONDEBUG_INSN_P.
2749 2010-11-21 Paul Koning <ni1d@arrl.net>
2751 * config/mips/pdp11.md (negsi2): Fix wrong code.
2753 2010-11-21 Paul Koning <ni1d@arrl.net>
2755 * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
2756 * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2758 2010-11-21 Eric Botcazou <ebotcazou@adacore.com>
2760 * config/mips/mips.c (machine_function): Rename load_label_length to
2761 load_label_num_insns.
2762 (mips_load_label_length): Rename to...
2763 (mips_load_label_num_insns): ...this. Adjust to first renaming.
2764 (mips_adjust_insn_length): Adjust to second renaming. Fix thinko.
2766 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
2769 * config/alpha/predicates.md (direct_call_operand): Return false
2770 for !TARGET_SMALL_TEXT targets.
2772 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2774 * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
2775 HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
2776 (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
2777 * doc/tm.texi: Regenerate.
2778 * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
2779 HANDLE_PRAGMA_WEAK): Poison.
2780 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2781 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2782 * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
2783 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
2784 * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2785 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2786 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2787 * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
2788 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2789 * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
2790 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2791 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
2792 * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2793 * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2794 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2795 (HANDLE_PRAGMA_WEAK): Don't undefine.
2796 * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2797 * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
2798 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2799 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
2800 * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2801 (HANDLE_PRAGMA_WEAK): Don't undefine.
2802 * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2803 * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
2804 (HANDLE_PRAGMA_PACK): Don't undefine.
2805 * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
2806 * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2807 * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2808 * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2809 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
2810 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2811 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2812 * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2813 * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
2814 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2815 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
2816 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2817 * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2818 * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2819 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2820 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
2821 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2823 2010-11-20 Eric Botcazou <ebotcazou@adacore.com>
2826 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
2827 * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
2828 * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
2830 2010-11-20 Jan Hubicka <jh@suse.cz>
2832 * cgraph.c (ld_plugin_symbol_resolution_names): New.
2833 (dump_cgraph_node): Dump resolution.
2834 * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
2835 (cgraph_comdat_can_be_unshared_p): Dclare.
2836 * lto-streamer-out.c (produce_symtab): Use
2837 cgraph_comdat_can_be_unshared_p.
2838 * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
2839 (cgraph_comdat_can_be_unshared_p): New function based on logic
2840 in cgraph_externally_visible_p.
2841 (cgraph_externally_visible_p): Use it.
2842 (varpool_externally_visible_p): Virtual tables can be unshared.
2843 * varpool.c (dump_varpool_node): Dump resolution.
2845 2010-11-20 Jan Hubicka <jh@suse.cz>
2847 * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
2849 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2852 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
2853 (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
2855 (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
2856 (install-strip): New target.
2857 (STRIPPROG): New variable, exported if STRIP is set.
2858 * doc/install.texi (Final install): Minor markup and code style
2859 fixes. Document install-strip target.
2861 2010-11-20 Paul Koning <ni1d@arrl.net>
2863 * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
2864 pdp11_regno_reg_class): New functions.
2865 * config/pdp11/pdp11.md (define_constants): Add register numbers.
2866 * config/pdp11/pdp11.c (pdp11_regno_reg_class,
2867 pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
2869 * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
2870 frame pointer and argument pointer pseudo-registers.
2871 (ARG_POINTER_REGNUM): Define.
2872 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
2874 (FIRST_PARM_OFFSET): Update for argument pointer.
2875 (INITIAL_FRAME_POINTER_OFFSET): Delete.
2876 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
2877 (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
2878 frame pointer and argument pointer.
2880 2010-11-20 Jakub Jelinek <jakub@redhat.com>
2883 * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
2884 when looking for immediate uses.
2886 PR tree-optimization/45830
2887 * stmt.c (expand_switch_using_bit_tests_p): New function.
2888 (expand_case): Use it.
2889 * tree.h (expand_switch_using_bit_tests_p): New prototype.
2890 * tree-switch-conversion.c (struct switch_conv_info): Add
2891 bit_test_uniq, bit_test_count and bit_test_bb fields.
2892 (check_range): Fix a comment.
2893 (check_process_case): Compute bit_test_uniq and bit_test_count.
2894 (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
2896 (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
2897 (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
2898 (array_value_type): New function.
2899 (build_one_array): Use it, if it returned different type,
2900 fold_convert all constructor fields and convert back to the
2901 wider type in the generated code.
2902 (process_switch): Initialize bit_test_uniq, bit_test_count and
2903 bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p
2906 2010-11-19 Michael Matz <matz@suse.de>
2908 PR tree-optimization/46077
2909 * tree-chrec.c (eq_evolutions_p): Accept some expressions.
2911 2010-11-19 Anatoly Sokolov <aesok@post.ru>
2913 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2914 * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
2916 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2918 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
2920 * mode-switching.c (optimize_mode_switching): Use
2921 FOR_BB_INSNS instead of open-coded loop.
2922 * cfgrtl.c (redirect_branch_edge): Ditto.
2924 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
2927 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
2928 to accomodate 32 bit HOST_WIDE_INT.
2929 (m68hc11_emit_logical): Remove unused variable insn.
2930 (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
2931 this_insn_uses_iy before use.
2934 * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2936 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2939 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
2940 * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
2942 2010-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
2944 * doc/extend.texi (Function attributes): Document PowerPC target
2945 attributes that are supported.
2946 (Pragmas): Document that PowerPC now supports target pragmas.
2948 * doc/options.texi (TargetVariable): Document TargetVariable,
2949 HeaderInclude, and SourceInclude.
2951 * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2952 mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2955 * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2956 SourceInclude directives. Fix a cut+paste error with target save
2957 enum variables. Sort enums in the structures after ints and
2959 * opth-gen.awk: Ditto.
2961 * configure.ac: Add support for HeaderInclude and SourceInclude option
2962 directives to add the appropriate files to the dependency lists.
2963 * configure: Regenerate.
2964 * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2965 (OPTIONS_C_EXTRA): New variable for SourceInclude.
2966 (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2967 (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2968 (gcc-options.o): Ditto.
2969 * opt-include.awk: New awk script to handle HeaderInclude and
2972 * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2973 gets saved in the target options.
2974 * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2975 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2976 (-mprototype): Ditto.
2977 (-mbit-word): ditto.
2978 (-mregnames): Ditto.
2979 (-msecure-plt): Ditto.
2981 * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2982 (-mpowerpc-gfxopt): Ditto.
2989 (-mhard-dfp): Ditto.
2992 (-mmultiple): Ditto.
2997 (-mno-update): Ditto.
2998 (-mavoid-indexed-addresses): Ditto.
2999 (-mtls-markers): Ditto.
3000 (-msched-epilog): Ditto.
3001 (-msched-prolog): Ditto.
3002 (-maix-struct-return): Ditto.
3003 (-msvr4-struct-return): Ditto.
3004 (-mxl-compat): Ditto.
3005 (-mrecip-precision): Ditto.
3006 (-mfp-in-toc): Ditto.
3007 (-msum-in-toc): Ditto.
3009 (-mblock-move-inline-limit=): Ditto.
3012 (-mlongcall): Ditto.
3013 (-mgen-cell-microcode): Ditto.
3014 (-mwarn-cell-microcode): Ditto.
3015 (-mwarn-altivec-long): Ditto.
3016 (-mprioritize-restricted-insns=): Ditto.
3017 (-msingle-float): Ditto.
3018 (-mdouble-float): Ditto.
3019 (-msimple-fpu): Ditto.
3020 (-mxilinx-fpu): Ditto.
3021 * config/rs6000/aix64.opt (-mpe): Ditto.
3023 * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
3024 (rs6000_cpu): Move variable to be a target variable. Rename
3025 cmodel to rs6000_current_cmodel because of macro conflict. Merge
3026 -mdebug=<xxx> variables into a single int.
3027 (rs6000_always_hint): Ditto.
3028 (rs6000_sched_groups): Ditto.
3029 (rs6000_align_branch_targets): Ditto.
3030 (rs6000_sched_costly_dep): Ditto.
3031 (rs6000_sched_insert_nops): Ditto.
3032 (rs6000_long_double_type_size): Ditto.
3033 (rs6000_ieeequad): Ditto.
3034 (rs6000_altivec_abi): Ditto.
3035 (rs6000_spe): Ditto.
3036 (rs6000_spe_abi): Ditto.
3037 (rs6000_float_gprs): Ditto.
3038 (rs6000_darwin64_abi): Ditto.
3039 (can_override_loop_align): Ditto.
3040 (rs6000_sdata): Ditto.
3041 (rs6000_tls_size): Ditto.
3042 (rs6000_current_abi): Ditto.
3043 (rs6000_traceback): Ditto.
3044 (rs6000_alignment_flags): Ditto.
3045 (rs6000_current_cmodel): Ditto.
3046 (rs6000_recip_control): Ditto.
3047 (rs6000_cpu_index): Ditto.
3048 (rs6000_tune_index): Ditto.
3049 (rs6000_debug): Ditto.
3050 (rs6000_target_flags_explict): Ditto.
3052 * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
3055 * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
3056 cmodel. Change all uses.
3058 * config/rs6000/rs6000.c (rs6000_always_hint): Move to
3059 rs6000.opt. Combine -mdebug=<xxx> variables into a single int.
3060 Rename cmodel to rs6000_current_cmodel.
3061 (rs6000_sched_groups): Ditto.
3062 (rs6000_align_branch_targets): Ditto.
3063 (rs6000_sched_costly_dep): Ditto.
3064 (rs6000_sched_insert_nops): Ditto.
3065 (rs6000_long_double_type_size): Ditto.
3066 (rs6000_ieeequad): Ditto.
3067 (rs6000_altivec_abi): Ditto.
3068 (rs6000_spe): Ditto.
3069 (rs6000_spe_abi): Ditto.
3070 (rs6000_float_gprs): Ditto.
3071 (rs6000_darwin64_abi): Ditto.
3072 (can_override_loop_align): Ditto.
3073 (rs6000_sdata): Ditto.
3074 (rs6000_tls_size): Ditto.
3075 (rs6000_current_abi): Ditto.
3076 (rs6000_traceback): Ditto.
3077 (rs6000_alignment_flags): Ditto.
3078 (rs6000_current_cmodel): Ditto.
3079 (rs6000_recip_control): Ditto.
3080 (rs6000_cpu_index): Ditto.
3081 (rs6000_tune_index): Ditto.
3082 (rs6000_debug): Ditto.
3083 (rs6000_target_flags_explict): Ditto.
3084 (rs6000_sched_insert_nops_str): Make static.
3085 (rs6000_sched_costly_dep_str): Ditto.
3086 (rs6000_recip_name): Ditto.
3087 (rs6000_abi_name): Ditto.
3088 (rs6000_sdata_name): Ditto.
3089 (enum rs6000_traceback_name): Move to rs6000-opts.h.
3090 (rs6000_parse_tls_size_option): Delete.
3091 (rs6000_valid_attribute_p): New function for target attributes and
3093 (rs6000_function_specific_save): Ditto.
3094 (rs6000_function_specific_restore): Ditto.
3095 (rs6000_function_specific_print): Ditto.
3096 (rs6000_can_inline_p): Ditto.
3097 (rs6000_set_current_function): Ditto.
3098 (rs6000_inner_target_options): Ditto.
3099 (rs6000_debug_target_options): Ditto.
3100 (rs6000_pragma_target_parse): Ditto.
3101 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
3102 attributes and pragmas.
3103 (TARGET_OPTION_SAVE): Ditto.
3104 (TARGET_OPTION_RESTORE): Ditto.
3105 (TARGET_OPTION_PRINT): Ditto.
3106 (TARGET_CAN_INLINE_P): Ditto.
3107 (TARGET_SET_CURRENT_FUNCTION): Ditto.
3108 (POWER_MASKS): Move to file level scope from the
3109 rs6000_option_override_internal function.
3110 (POWERPC_MASKS): Ditto.
3111 (ISA_*_MASKS): Ditto.
3112 (struct rs6000_ptt): Ditto.
3113 (processor_target_table): Ditto.
3114 (rs6000_cpu_name_lookup): Map cpu name to an index in
3115 processor_target_table.
3116 (rs6000_debug_reg_global): Print more information on processor
3117 options for -mdebug=reg.
3118 (rs6000_init_hard_regno_mode_ok): Add support for target
3119 attributes and pragmas. Merge all -mdebug=<xxx> fields into one.
3120 Allow -mdebug=val1,val2. Rename cmodel variable.
3121 (rs6000_option_override_internal): Ditto.
3122 (rs6000_option_override): Ditto.
3123 (rs6000_handle_option): Ditto.
3124 (rs6000_conditional_register_usage): Add debug trace message.
3125 (struct rs6000_opt_mask): New for target attribute/pragma support.
3126 (rs6000_opt_masks): Ditto.
3127 (struct rs6000_opt_var): Ditto.
3128 (rs6000_opt_vars): Ditto.
3129 (rs6000_previous_function): Ditto.
3131 * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
3132 wasn't already included.
3133 (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
3134 (enum processor_type): Ditto.
3135 (rs6000_cpu): Ditto.
3136 (enum fpu_type_t): Ditto.
3138 (enum rs6000_dependence_cost): Ditto.
3139 (enum rs6000_nop_insertion): Ditto.
3140 (enum group_termination): Ditto.
3141 (rs6000_long_double_type_size): Ditto.
3142 (rs6000_ieeequad): Ditto.
3143 (rs6000_altivec_abi): Ditto.
3144 (rs6000_spe_abi): Ditto.
3145 (rs6000_spe): Ditto.
3146 (rs6000_float_gprs): Ditto.
3147 (rs6000_alignment_flags): Ditto.
3148 (rs6000_sched_insert_nops): Ditto.
3149 (enum rs6000_vector): Ditto.
3150 (enum rs6000_abi): Ditto.
3151 (rs6000_current_opt): Ditto.
3152 (rs6000_debug_*): Delete.
3153 (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
3154 (TARGET_DEBUG*): Ditto.
3156 * config/rs6000/rs6000-opts.h: New header file to define the enums
3157 that are used in target variables that are now defined in rs6000.opt.
3159 * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
3161 (rs6000_sdata): Ditto.
3162 (rs6000_abi_name): Delete.
3163 (rs6000_sdata_name): Ditto.
3164 (rs6000_tls_size_string): Ditto.
3166 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3168 * common.opt (debug_struct_ordinary, debug_struct_generic): New
3170 * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
3171 should_emit_struct_debug): Move from opts.c.
3172 * flag-types.h (enum debug_struct_file): Move from opts.c.
3173 * flags.h (should_emit_struct_debug): Remove.
3174 (base_of_path): Declare.
3175 (set_struct_debug_option): Add gcc_options parameter.
3176 * optc-gen.awk, opth-gen.awk: Handle array variables.
3177 * opts.c (enum debug_struct_file, debug_struct_ordinary,
3178 debug_struct_generic): Remove.
3179 (set_struct_debug_option): Add gcc_options parameter.
3180 (base_of_path): Remove static.
3181 (main_input_basename, main_input_baselength, matches_main_base,
3182 dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
3184 * toplev.c (main_input_basename, main_input_baselength): Define
3186 * toplev.h (main_input_basename, main_input_baselength): Declare
3189 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3191 * common.opt (flag_instrument_functions_exclude_functions,
3192 flag_instrument_functions_exclude_files): New Variable definitions.
3193 * flags.h (flag_instrument_functions_exclude_p): Don't declare.
3194 * gimplify.c (char_p): Declare type and vectors.
3195 (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
3196 * opts.c (flag_instrument_functions_exclude_functions,
3197 flag_instrument_functions_exclude_files): Remove.
3198 (add_comma_separated_to_vector): Take void **.
3199 (flag_instrument_functions_exclude_p): Move to gimplify.c.
3200 (common_handle_option): Use options structure for
3201 -finstrument-functions-exclude- options.
3203 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3205 * doc/options.texi (Var): Document effects of Defer.
3207 * opt-functions.awk (var_type, var_set): Handle deferred options.
3208 * opts-common.c (set_option): Handle CLVC_DEFER.
3209 * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
3210 fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
3211 fstack-limit-symbol=): Mark as deferred.
3212 * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
3214 (print_filtered_help): Don't report state of CLVC_DEFER options.
3215 (common_handle_option): Move code for OPT_fcall_used_,
3216 OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
3217 OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
3218 OPT_fstack_limit_symbol_ to opts-global.c.
3219 (option_enabled, get_option_state): Handle CLVC_DEFER.
3220 * opts.h: Include vec.h.
3221 (enum cl_var_type): Add CLVC_DEFER.
3222 (cl_deferred_option): Define type and vectors.
3223 (handle_common_deferred_options): Declare.
3224 * opts-global.c: New.
3225 * toplev.c (toplev_main): Call handle_common_deferred_options
3226 * Makefile.in (OPTS_H): Include $(VEC_H).
3227 (OBJS-common): Include opts-global.o.
3228 (opts.o): Update dependencies.
3229 (opts-global.o): Add dependencies.
3231 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3233 * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
3234 to objc_declare_protocols.
3236 2010-11-19 Richard Guenther <rguenther@suse.de>
3239 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
3240 IDENTIFIERs do not stream TREE_TYPE.
3241 * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
3243 2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
3245 * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
3247 2010-11-19 Jakub Jelinek <jakub@redhat.com>
3250 * dwarf2out.c (const_ok_for_output_1): Don't complain about
3251 non-delegitimized TLS UNSPECs.
3253 2010-11-18 Jack Howarth <howarth@bromo.med.uc.edu>
3254 Ian Lance Taylor <iant@google.com>
3256 * config/darwin-c.c (darwin_additional_format_types): Export.
3258 2010-11-18 Paul Koning <ni1d@arrl.net>
3260 * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
3263 2010-11-18 Paul Koning <ni1d@arrl.net>
3265 * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
3266 * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
3267 * config/pdp11/pdp11.opt (-mabshi): Delete.
3269 2010-11-19 Mingjie Xing <mingjie.xing@gmail.com>
3271 * resource.h (struct resources): Fix typo in the comment.
3273 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
3276 * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
3278 2010-11-18 Richard Henderson <rth@redhat.com>
3281 * function.c (maybe_copy_prologue_epilogue_insn): Rename from
3282 maybe_copy_epilogue_insn; handle prologue insns as well.
3283 * rtl.h, cfglayout.c: Update for rename.
3284 * recog.c (peep2_attempt): Copy prologue/epilogue data for
3285 RTX_FRAME_RELATED_P insns.
3287 2010-11-18 Jakub Jelinek <jakub@redhat.com>
3290 * builtins.c (fold_builtin_printf): Don't copy and modify string
3291 before build_string_literal, instead modify what
3292 build_string_literal returned.
3294 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3297 * c-typeck.c (build_unary_op): Call build_real_imag_expr for
3298 REALPART_EXPR and IMAGPART_EXPR.
3300 2010-11-18 Richard Guenther <rguenther@suse.de>
3302 PR tree-optimization/46172
3303 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
3305 (slpeel_tree_peel_loop_to_edge): Call it.
3307 2010-11-18 Jeff Law <law@redhat.com>
3309 PR middle-end-optimization/46297
3310 * postreload.c (reload_combine_note_store): Deal with embedded
3311 side effects in MEM expressions.
3313 2010-11-18 Richard Guenther <rguenther@suse.de>
3316 * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
3317 when checking is not enabled.
3319 2010-11-18 Richard Guenther <rguenther@suse.de>
3322 * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
3324 (gimple_register_canonical_type): Also cache the canoncial type
3325 for non type leaders.
3327 2010-11-18 Richard Guenther <rguenther@suse.de>
3329 * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
3331 2010-11-18 Alexander Monakov <amonakov@ispras.ru>
3334 * sel-sched-ir.c (init_expr): Use the correct type for
3336 * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
3338 2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3340 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
3341 as well as -mrelocatable at the same time.
3343 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com>
3346 * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
3347 Call the clz builtin.
3349 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
3350 Steve Ellcey <sje@cup.hp.com>
3353 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3354 if section attribute used.
3356 2010-11-17 Jan Hubicka <jh@suse.cz>
3358 * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
3359 expand errno setting variant when optimizing for size.
3361 2010-11-17 Eric Botcazou <ebotcazou@adacore.com>
3363 * postreload.c (reload_combine): Call control_flow_insn_p only once.
3364 Reverse backward loop. Fix formatting issues.
3366 2010-11-17 Paolo Bonzini <bonzini@gnu.org>
3368 * c-parser.c (c_token_is_qualifier,
3369 c_parser_next_token_is_qualifier): New.
3370 (c_parser_declaration_or_fndef, c_parser_struct_declaration):
3371 Improve error message on specs->tagdef_seen_p.
3372 (c_parser_struct_or_union_specifier): Improve error recovery.
3373 (c_parser_declspecs): Move exit condition on C_ID_ID early.
3374 Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
3375 using c_parser_next_token_is_qualifier; extend it to cover
3376 a ctsk_tagdef typespec and !typespec_ok in general.
3378 2010-11-17 Richard Guenther <rguenther@suse.de>
3380 * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
3381 (gimple_mod_pow2_value_transform): Likewise.
3382 (gimple_mod_subtract_transform): Likewise.
3384 2010-11-17 Richard Guenther <rguenther@suse.de>
3387 * gimple.c (gimple_register_canonical_type): Make sure to only
3388 make type leaders canonical types.
3390 2010-11-17 Michael Matz <matz@suse.de>
3392 * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
3393 TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
3394 TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
3395 TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
3396 * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
3397 (pass_build_ssa): ... but here.
3398 * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
3399 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
3400 * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
3401 * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
3402 * predict.c (rebuild_frequencies): Ditto.
3403 * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
3404 * emit-rtl.c (verify_rtl_sharing): Ditto.
3405 * tree-cfgcleanup.c (repair_loop_structures): Ditto.
3406 * tree-ssa-live.c (remove_unused_locals): Ditto.
3407 * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
3408 * tree-ssa.c (pass_early_warn_uninitialized,
3409 execute_update_addresses_taken, pass_update_address_taken): Ditto.
3410 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
3411 pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
3412 * passes.c (pass_postreload, execute_todo): Ditto.
3413 * tree-ssanames.c (pass_release_ssa_names): Ditto.
3415 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3417 * doc/invoke.texi (-dy): Remove.
3418 * langhooks-def.h (lhd_do_nothing_i): Don't declare.
3419 (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
3420 * langhooks.c (lhd_do_nothing_i): Remove.
3421 * langhooks.h (lang_hooks.parse_file): Take no arguments.
3422 * toplev.c (set_yydebug): Remove.
3423 (compile_file): Update call to lang_hooks.parse_file.
3424 (decode_d_option): Don't handle -dy.
3426 2010-11-17 Jakub Jelinek <jakub@redhat.com>
3428 PR rtl-optimization/46440
3429 * combine.c (update_cfg_for_uncondjump): When changing
3430 an indirect jump into unconditional jump, remove BARRIERs
3433 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3435 * opts.c (target_handle_option): Do not assert that loc ==
3438 2010-11-17 Jakub Jelinek <jakub@redhat.com>
3439 Richard Guenther <rguenther@suse.de>
3442 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3443 call_may_clobber_ref_p_1): Return true for __sync_* and some
3444 OpenMP builtins that act as threading barriers.
3446 2010-11-17 Richard Guenther <rguenther@suse.de>
3448 PR tree-optimization/46498
3449 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
3451 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3453 * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
3454 (xtensa_function_arg_boundary): ...this.
3455 * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
3456 thinko in declaration.
3457 (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
3458 number of parameters to picochip_function_arg_boundary.
3459 (picochip_arg_advance): Likewise.
3461 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3464 * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
3465 under check for type.
3467 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3469 * ifcvt.c (dead_or_predicable): Fix typo.
3471 2010-11-16 Richard Henderson <rth@redhat.com>
3473 * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
3474 * config/s390/s390.opt (mfused-madd): Remove.
3475 * config/s390/s390.c (s390_rtx_costs): Handle FMA.
3476 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3477 * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
3478 (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
3480 2010-11-16 Richard Henderson <rth@redhat.com>
3482 * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
3483 * config/rs6000/rs6000.opt (mfused-madd): Remove.
3484 * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
3485 (*altivec_vmaddfp_1): Remove.
3486 (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
3487 (altivec_mulv4sf3): Expand to FMA directly.
3488 (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
3489 (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
3490 * config/rs6000/paired.md (paired_madds0): Use FMA.
3491 (paired_madds1): Likewise.
3492 (*paired_madd): Rename from paired_madd; use FMA.
3493 (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
3494 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
3495 consider TARGET_FUSED_MADD wrt rs6000_recip_control.
3496 (bdesc_3arg): Update CODE_FOR_* for pattern renames.
3497 (rs6000_emit_madd): Use fma_optab.
3498 (rs6000_emit_msub): Use fms_optab.
3499 (rs6000_emit_nmsub): Expand the FMA pattern directly.
3500 * config/rs6000/rs6000.md (FMA_F): New mode iterator.
3501 (*fmasf4_fpr): Rename from fmasf4_fpr.
3502 (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
3503 (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
3504 (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
3505 (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
3506 (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
3507 (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
3508 (*fmadf4_fpr): Rename from fmadf4_fpr.
3509 (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
3510 (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
3511 (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
3512 (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
3513 (fmasf4, fmadf4): Macroize into...
3514 (fma<FMA_F>4): ... here.
3515 (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
3516 (nfma<FMA_F>4, nfms<FMA_F>4): New.
3517 * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
3519 * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
3520 (*vsx_fmadd<mode>4_1): Remove.
3521 (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
3522 (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
3523 (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
3524 (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
3525 (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
3526 (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
3527 (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
3529 2010-11-16 Richard Henderson <rth@redhat.com>
3531 * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
3532 (fmasf4, fnmadf4, fnmasf4): Likewise.
3533 (unnamed plus+mult insns and splitters): Delete.
3535 2010-11-16 Richard Henderson <rth@redhat.com>
3537 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
3538 (fnma<VSF>4): Rename from fnms_<VSF>.
3539 (fms<VSF>4): Rename from fms_<VSF>.
3540 (fma<VDF>4): Rename from fma_<VDF>.
3541 (fms<VDF>4): Rename from fms_<VDF>.
3542 (nfma<VDF>4): Rename from fnma_<VDF>.
3543 (nfms<VDF>4): Rename from fnms_<VDF>.
3544 (fnma<VDF>4, fnms<VDF>4): New expanders.
3545 (floatunsdisf2): Update for the renames.
3546 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
3547 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
3549 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3551 PR rtl-optimization/46490
3552 * combine.c (expand_compound_operation): Fix thinko.
3554 2010-11-16 Richard Henderson <rth@redhat.com>
3557 * recog.c (peep2_attempt): Convert frame-related info when possible.
3558 (peep2_fill_buffer): Allow frame-related insns into the buffer.
3559 (peephole2_optimize): Allow peep2_attempt to fail.
3561 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
3563 PR rtl-optimization/46315
3564 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
3565 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
3567 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
3568 (remove_reg_equal_equiv_notes_for_defs): ...this.
3569 (delete_unmarked_insns): Adjust to above renaming.
3570 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
3571 referring to registers set in the insns being moved, if any.
3573 * df-core.c (df_ref_dump): New function extracted from...
3574 (df_refs_chain_dump): ...here. Call it.
3575 (df_regs_chain_dump): Likewise.
3576 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
3577 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
3579 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
3581 PR rtl-optimization/46395
3582 * postreload.c (reload_combine): Invalidate register use
3583 information on all control flow insns.
3585 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
3586 LABEL_REF in UNSPEC operand.
3588 2010-11-16 Jan Hubicka <jh@suse.cz>
3590 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
3591 when !flag_toplevel_reorder do not remove unless variable is
3592 COMDAT or ARTIFICIAL.
3593 * ipa.c (varpool_can_remove_if_no_refs): ... here.
3594 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
3595 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
3596 * varpool.c (decide_is_variable_needed): Do not handle visibility
3598 (varpool_finalize_decl): Likewise.
3599 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
3600 update outdated comment on DECL_RTL_SET_P check.
3602 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3604 * config/sol2.h (NM_FLAGS): Define.
3605 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
3606 * doc/tm.texi: Update.
3608 2010-11-16 Nick Clifton <nickc@redhat.com>
3610 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
3611 (msubsf4): Rename to fmssf4, and use fma.
3612 (nmaddsf4): Rename to fnmasf4 and use fma.
3613 (nmsubsf4): Rename to fnmssf4 and use fma.
3615 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
3618 * config/score/score3.c (score3_return_in_memory): Constify arguments.
3619 (score3_in_small_data_p, score3_function_value): Likewise.
3620 (score3_trampoline_init): Use LCT_NORMAL.
3621 (score3_print_operand): Initialize code as UNKNOWN.
3622 * config/score/predicates.md (score_load_multiple_operation):
3623 Remove unused variable.
3624 (score_store_multiple_operation): Likewise.
3625 * config/score/score7.c (score7_return_in_memory): Constify arguments.
3626 (score7_in_small_data_p, score7_function_value): Likewise.
3627 (score7_trampoline_init): Use LCT_NORMAL.
3628 (score7_print_operand): Initialize code as UNKNOWN.
3629 * config/score/score3.h (score3_return_in_memory): Update prototype.
3630 (score3_in_small_data_p, score3_function_value): Likewise.
3631 * config/score/score-protos.h (score_function_value): Likewise.
3632 * config/score/score7.h (score7_return_in_memory): Update prototype.
3633 (score7_in_small_data_p, score7_function_value): Likewise.
3634 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
3635 (score_return_in_memory, score_pass_by_reference): Constify arguments.
3636 (score_output_mi_thunk, score_function_prologue): Don't return a value.
3637 (score_function_epilogue, score_in_small_data_p): Likewise.
3638 (score_option_override, score_asm_trampoline_template): Likewise.
3639 (score_trampoline_init, score_print_operand): Likewise.
3640 (score_print_operand_address, score_prologue): Likewise.
3641 (score_epilogue, score_call, score_call_value): Likewise.
3642 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
3643 (score_function_arg_advance): Likewise. Make static.
3644 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
3645 (score_function_arg, score_legitimate_address_p): Make static.
3646 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
3647 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
3648 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
3649 Allow (W) == HOST_BITS_PER_WIDE_INT.
3652 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
3653 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
3655 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3657 * config/arc/arc.c: Delete pasto.
3658 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
3660 2010-11-16 Anatoly Sokolov <aesok@post.ru>
3662 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
3663 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3664 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
3665 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3666 (mn10300_preferred_reload_class,
3667 mn10300_preferred_output_reload_class): New functions.
3669 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3671 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
3672 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
3673 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
3674 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
3676 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3678 * builtins.c (std_gimplify_va_arg_expr): Use
3679 targetm.calls.function_arg_boundary.
3680 * function.c (assign_parms, locate_and_pad_parm): Likewise.
3681 * calls.c (struct arg_data): Update comment.
3682 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
3683 * target.def (function_arg_boundary): Define.
3684 * targhooks.h (default_function_arg_boundary): Declare.
3685 * targhooks.c (default_function_arg_boundary): Define.
3686 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
3687 TARGET_FUNCTION_ARG_BOUNDARY.
3688 (FUNCTION_ARG_BOUNDARY): Delete.
3689 (TARGET_FUNCTION_ARG_BOUNDARY): New.
3690 * doc/tm.texi: Regenerate.
3691 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
3692 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
3693 * config/arc/arc.c (arc_function_arg_boundary): Define.
3694 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3695 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
3696 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
3697 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
3698 (arm_function_arg_boundary): Define.
3699 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3700 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
3701 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
3702 * config/frv/frv.c (frv_function_arg_boundary): Make static.
3703 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3704 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
3705 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
3706 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
3707 (ix86_compat_function_arg_boundary): Take and return unsigned int.
3708 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3709 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
3710 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
3711 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
3712 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3713 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
3714 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
3715 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3716 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
3717 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
3718 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
3719 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3720 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
3721 * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
3722 * config/mips/mips.c (mips_function_arg_boundary): Make static.
3723 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3724 * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
3725 * config/pa/pa.c (pa_function_arg_boundary): Define.
3726 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3727 * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
3728 * config/picochip/picochip-protos.h
3729 (picochip_get_function_arg_boundary): Delete.
3730 * config/picochip/picochip.c (picochip_get_function_arg_boundary):
3732 (picochip_function_arg_boundary): ...this. Make static.
3733 (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
3734 (picochip_arg_advance): Adjust.
3735 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3736 * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
3737 * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
3738 * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
3739 (rs6000_function_arg_boundary): ...this. Make static.
3740 (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
3741 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3742 * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
3743 * config/rx/rx.c (rx_function_arg_boundary): Define.
3744 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3745 * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
3746 * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
3747 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3748 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
3749 * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
3750 * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
3751 (xtensa_function_arg_boundary): ...this. Make static.
3752 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3754 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3756 * expr.c (alignment_for_piecewise_move): New function.
3757 (widest_int_mode_for_size): New function.
3758 (move_by_pieces, move_by_pieces_ninsns): Call them.
3759 (can_store_by_pieces, store_by_pieces_1): Likewise.
3761 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3763 * gcc.c (char_p): Define. Define a VEC of it.
3764 (n_linker_options, n_assembler_options, n_preprocessor_options):
3766 (linker_options, assembler_options, preprocessor_options): Convert
3768 (add_preprocessor_option): Adjust.
3769 (add_assembler_option): Adjust.
3770 (add_linker_option): Adjust.
3771 (do_specs_vec): New function.
3772 (do_spec_1): Call it. Adjust for new types.
3774 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3776 * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
3777 (sreal.o, statistics.o, stringpool.o): Likewise.
3779 2010-11-16 Richard Guenther <rguenther@suse.de>
3781 PR tree-optimization/44545
3782 * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
3783 statements are not reassociatable.
3784 (reassociate_bb): Likewise.
3786 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
3788 * bitmap.c: Delete unnecessary includes.
3789 * ebitmap.c: Likewise.
3790 * et-forest.c: Likewise.
3791 * sreal.c: Likewise.
3792 * statistics.c: Likewise.
3793 * stringpool.c: Likewise.
3794 * double-int.c: Add comment for inclusion of tm.h.
3796 2010-11-16 Richard Guenther <rguenther@suse.de>
3798 * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
3799 (visit_nary_op): ... this.
3800 (visit_binary_op): Remove.
3801 (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
3803 2010-11-16 Richard Guenther <rguenther@suse.de>
3806 * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
3808 2010-11-16 Nick Clifton <nickc@redhat.com>
3810 * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
3813 2010-11-15 Richard Henderson <rth@redhat.com>
3815 * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
3816 WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
3819 2010-11-15 Richard Henderson <rth@redhat.com>
3821 * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
3822 from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively. Use
3825 2010-11-15 Richard Henderson <rth@redhat.com>
3827 * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
3828 and *mulsubsf4 respectively. Use fma rtx_code.
3830 2010-11-15 Joseph Myers <joseph@codesourcery.com>
3832 * gcc.c: Include "vec.h".
3833 (argbuf): Make into a VEC.
3834 (argbuf_length, argbuf_index): Remove.
3835 (alloc_args, clear_args, store_arg, execute, insert_wrapper,
3836 do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
3837 compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
3838 * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
3839 (gcc.o): Depend on $(VEC_H).
3841 2010-11-15 Richard Henderson <rth@redhat.com>
3843 * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
3844 via FMA if unsafe math.
3845 (insert_var_expansion_initialization): Handle FMA.
3846 (combine_var_copies_in_loop_exit): Likewise.
3848 2010-11-15 Richard Henderson <rth@redhat.com>
3850 * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
3851 * config/ia64/ia64.opt: Remove mfused-madd.
3852 * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
3853 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
3854 * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
3855 * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
3856 * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
3857 * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
3858 (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
3859 (fmav2sf4): Rename from fpma; use FMA code.
3860 (fmsv2sf4): Rename from fpms; use FMA code.
3861 (fnmav2sf4): Rename from *fpnma; use FMA code.
3862 * config/ia64/ia64.md (MODE_SDF): New iterator.
3863 (suffix): New mode attribute.
3864 (*maddsf4, *msubsf4, *nmaddsf4): Remove.
3865 (fmssf4): Rename from *fmssf4.
3866 (fnmasf4): Rename from *nfmasf4.
3867 (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
3868 (*nmadddf4, *nmadddf4_truncsf): Remove.
3869 (fmsdf4): Rename from *fmsdf4.
3870 (fnmadf4): Rename from *nfmadf4.
3871 (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
3872 (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
3873 (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
3874 (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
3875 (fmsxf4): Rename from *fmsxf4.
3876 (fnmaxf4): Rename from *nfmaxf4.
3877 (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
3878 (*fnmaxf_trunc_<MODE_SDF>): New.
3880 2010-11-15 Jakub Jelinek <jakub@redhat.com>
3882 PR tree-optimization/46461
3883 * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
3886 2010-11-15 Ian Lance Taylor <iant@google.com>
3888 * godump.c: New file.
3889 * common.opt (fdump-go-spec=): New option.
3890 * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
3891 (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
3892 (TYPE_SYMTAB_IS_DIE): Define.
3893 (struct tree_type): Change GTY for symtab field to use
3894 TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
3895 to pick the union field.
3896 * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
3897 (dump_go_spec_init): Declare.
3898 * toplev.c (process_options): Handle flag_dump_go_spec.
3899 * debug.c: Include "tree.h".
3900 (do_nothing_debug_hooks): Set tree_type_symtab_field.
3901 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3902 * dbxout.c (dbx_debug_hooks): Likewise.
3903 (xcoff_debug_hooks): Likewise.
3904 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3905 * sdbout.c (sdb_debug_hooks): Likewise. Do not define if
3906 SDB_DEBUGGING_INFO is not defined.
3907 * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
3908 (Overall Options): Document -fdump-go-spec.
3909 * Makefile.in (OBJS-common): Add godump.o.
3910 (debug.o): Add dependency on $(TREE_H).
3911 (godump.o): New target.
3912 (GTFILES): Add $(srcdir)/godump.c.
3914 2010-11-15 Jakub Jelinek <jakub@redhat.com>
3917 * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
3918 marking r11 set RTX_FRAME_RELATED_P if offset is too large for
3919 style < 0, add REG_FRAME_RELATED_EXPR.
3922 * rtl.h (vt_equate_reg_base_value): New prototype.
3923 * alias.c (vt_equate_reg_base_value): New function.
3924 * var-tracking.c (vt_init_cfa_base): Use it.
3926 2010-11-15 Jan Hubicka <jh@suse.cz>
3927 Diego Novillo <dnovillo@google.com>
3930 * doc/lto.texi: Add.
3931 * doc/gccint.texi: Add reference to lto.texi.
3932 * doc/invoke.texi: Update user documentation for LTO.
3933 Move internal flags to lto.texi
3935 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3937 * c-typeck.c (build_unary_op): Use
3938 objc_build_incr_expr_for_property_ref to build the pre/post
3939 increment/decrement of an Objective-C property ref, and skip the
3940 lvalue_or_else check in that case.
3942 2010-11-15 Martin Jambor <mjambor@suse.cz>
3944 PR tree-optimization/46349
3945 * tree-sra.c (contains_bitfld_comp_ref_p): New function.
3946 (contains_vce_or_bfcref_p): Likewise.
3947 (sra_modify_assign): Use them.
3949 2010-11-15 Richard Guenther <rguenther@suse.de>
3951 PR tree-optimization/46467
3952 * tree-ssa-structalias.c (do_structure_copy): Properly treat
3953 variables without subvars.
3955 2010-11-15 Hariharan Sandanagobalane <hariharan@picochip.com>
3957 * config/picochip/picochip.c (file header): Picochip name change.
3958 * config/picochip/picochip.md (file header): Likewise.
3959 * config/picochip/predicates.md (file header): Likewise.
3960 * config/picochip/dfa_space.md (file header): Likewise.
3961 * config/picochip/dfa_speed.md (file header): Likewise.
3962 * config/picochip/picochip.h(file header): Likewise.
3963 * config/picochip/constraints.md (file header): Likewise.
3964 * config/picochip/picochip-protos.h (file header): Likewise.
3965 * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
3966 * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
3967 * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
3968 * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
3969 * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
3970 * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
3971 * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
3972 * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
3973 * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
3974 * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
3975 * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
3976 * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
3977 * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
3978 * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
3980 2010-11-15 Richard Guenther <rguenther@suse.de>
3983 * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
3985 2010-11-15 Nick Clifton <nickc@redhat.com>
3987 * config/stormy16/stormy16.c (direct_return): Do not generate a