This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[0/9] Specs cleanup: introduction


I am in the process of going through all specs for all targets to
identify all GCC options that exist only through being handled in
specs, so as to enter them in .opt files so we can eliminate the
possibility of creating an option just in specs and ensure that all
options have a more structured existence through a .opt entry.

In this process I have found many oddities in existing specs where
they contain code that is useless or incorrect.  This patch series
cleans up some such issues.  This is just an initial series of
cleanups; further cleanups will follow.  In particular, while this
series applies some of Ian's cleanups in
<http://gcc.gnu.org/ml/gcc-patches/2010-11/msg02310.html> more
generally, it doesn't cover all of them and some may require
duplicating specs into GNU and non-GNU assembler cases (which I did
not do at all in this patch series).

The combination of all nine patches has been bootstrapped with no
regressions on x86_64-unknown-linux-gnu.  I also tested building cc1
and xgcc for crosses to: alpha-freebsd8 alpha-linux-gnu arc-elf
arm-freebsd8 arm-linux-gnueabi bfin-elf bfin-uclinux cris-elf
cris-linux-gnu i686-darwin fr30-elf frv-elf frv-linux-gnu
i686-pc-msdosdjgpp i686-freebsd8 x86_64-freebsd8 i686-pc-linux-gnu
x86_64-w64-mingw32 i686-netware i686-nto-qnx i686-openbsd
i686-solaris2.10 i686-solaris2.8 i686-wrs-vxworks ia64-freebsd8
ia64-linux-gnu lm32-elf lm32-uclinux m32r-linux-gnu m32r-elf
m68k-linux-gnu microblaze-linux-gnu microblaze-elf mips-linux-gnu
mips64-linux-gnu mips-elf mips-openbsd mips-wrs-vxworks
am33_2.0-linux-gnu arm-netbsd arm-netbsdelf hppa-linux-gnu
powerpc-freebsd8 powerpc64-linux-gnu powerpc-wrs-vxworks
s390-linux-gnu sh-linux-gnu sparc64-freebsd8 sparc-linux-gnu
sparc64-linux-gnu sparc-netbsdelf sparc64-openbsd vax-linux-gnu
vax-netbsdelf xtensa-elf xtensa-linux-gnu.  Two of these failed for
apparently unrelated reasons: lm32-uclinux ("Unsupported DEFAULT_LIBC"
- if you use config/linux.h you now need to define DEFAULT_LIBC in
config.gcc) and am33_2.0-linux-gnu ("targhooks.c:342: undefined
reference to `print_operand_address'" - not investigated).  OK to
commit?

If only a subset of the patches are approved I'll retest the relevant
subset as needed.  I think each patch is correct on its own, but each
is also relative to a tree with the previous patches applied, and as
noted above they have only been tested together.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]