This is the mail archive of the gcc-bugs@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]

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



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