[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#358644: test case



test case and GCC info for the GCC people:


$ cat > test.c
int main() {
}
$ gcc-3.4 -o test -g -O2 -fstack-protector ./test.c
cc1: error: unrecognized command line option "-fstack-protector"
zsh: exit 1     gcc-3.4 -o test -g -O2 -fstack-protector ./test.c
$ gcc-4.0 -o test -g -O2 -fstack-protector ./test.c
cc1: error: unrecognized command line option "-fstack-protector"
zsh: exit 1     gcc-4.0 -o test -g -O2 -fstack-protector ./test.c
$ gcc-4.1 -o test -g -O2 -fstack-protector ./test.c
./test.c:1: warning: -fstack-protector not supported for this target
/usr/bin/ld: cannot find -lssp_nonshared
collect2: ld returned 1 exit status


$ gcc-3.4 -v
Reading specs from /usr/lib/gcc/mips-linux-gnu/3.4.6/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,pascal --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug mips-linux-gnu
Thread model: posix
gcc version 3.4.6 (Debian 3.4.6-1)


$ gcc-4.0 -v
Using built-in specs.
Target: mips-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release mips-linux-gnu
Thread model: posix
gcc version 4.0.3 (Debian 4.0.3-1)

$ gcc-4.1 -v
Using built-in specs.
Target: mips-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,fortran,objc,obj-c++,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre --enable-mpfr --enable-checking=release mips-linux-gnu
Thread model: posix
gcc version 4.1.0 (Debian 4.1.0-0)


-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: