This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Your patch broke --target=sh-elf
- From: <tm_gccmail at kloo dot net>
- To: geoffk at apple dot com
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Jan 2004 12:44:20 -0800 (PST)
- Subject: Your patch broke --target=sh-elf
GCC build for --host=i386-linux --target=sh-elf fails to build because of
the following problem:
make[1]: Entering directory `/home/tm/gcc-build-sh-elf/gcc'
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-fno-common -DHAVE_CONFIG_H -o cc1 \
c-parse.o c-lang.o c-pretty-print.o stub-objc.o attribs.o
c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o
c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o
c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o
libcpp.a main.o libbackend.a ../libiberty/libiberty.a
libbackend.a(sh.o): In function `sh_handle_sp_switch_attribute':
/home/tm/gcc-build-sh-elf/gcc/../../gcc/gcc/config/sh/sh.c:6777: undefined
reference to `ggc_strdup'
collect2: ld returned 1 exit status
make[1]: *** [cc1] Error 1
make[1]: Leaving directory `/home/tm/gcc-build-sh-elf/gcc'
make: *** [all-gcc] Error 2
[tm@localhost gcc-build-sh-elf]$
This appears to be caused by your patch:
2004-01-15 Geoffrey Keating <geoffk@apple.com>
PR pch/13361
...
* config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
from tree.
Please investigate the problem.
Toshi