This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Help needed: GCC4.6.2 armv7 hardfp exception try catch issue
On Mon, November 7, 2011 4:35 pm, Ian Lance Taylor wrote:
> "Joop Boonen" <joop.boonen@boonen.org> writes:
>
>> On b = a; the exception is generated. But it's not caught.
>
> What operating system are you using? Exactly how did you configure gcc?
I'm using openSuSE ARM.
This is the gcc configuration.
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/armv7l-suse-linux-gnueabi/4.6/lto-wrapper
Target: armv7l-suse-linux-gnueabi
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.6
--enable-ssp --disable-libssp --disable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--disable-libgcj --disable-libmudflap --with-slibdir=/lib
--with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new
--disable-libstdcxx-pch --enable-version-specific-runtime-libs
--program-suffix=-4.6 --enable-linux-futex --enable-linker-build-id
--with-system-libunwind --with-arch=armv7-a --with-tune=cortex-a9
--with-float=hard --with-mode=thumb --with-abi=aapcs-linux
--with-fpu=vfpv3-d16 --build=armv7l-suse-linux-gnueabi
Thread model: posix
gcc version 4.6.2 (SUSE Linux)
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/armv7l-suse-linux-gnueabi/4.6/lto-wrapper
Target: armv7l-suse-linux-gnueabi
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.6
--enable-ssp --disable-libssp --disable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--disable-libgcj --disable-libmudflap --with-slibdir=/lib
--with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new
--disable-libstdcxx-pch --enable-version-specific-runtime-libs
--program-suffix=-4.6 --enable-linux-futex --enable-linker-build-id
--with-system-libunwind --with-arch=armv7-a --with-tune=cortex-a9
--with-float=hard --with-mode=thumb --with-abi=aapcs-linux
--with-fpu=vfpv3-d16 --build=armv7l-suse-linux-gnueabi
Thread model: posix
gcc version 4.6.2 (SUSE Linux)
>
> What was the exact command line used to compile the file?
The command line to compile and configure gmp ( http://gmplib.org/ ) are:
CFLAGS='-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -fexceptions'
./configure --prefix=/usr --libdir=/usr/lib --infodir=/usr/share/info
--build=armv7l-suse-linux --enable-cxx --enable-fat --enable-mpbsd
using ABI="standard"
CC="gcc -std=gnu99"
CFLAGS="-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -fexceptions"
CPPFLAGS=""
CXX="g++"
CXXFLAGS="-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -fexceptions"
MPN_PATH=" arm generic"
make 'CFLAGS=-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -fexceptions' -j2
make 'CFLAGS=-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -fexceptions' check
I also tried without : -funwind-tables -fasynchronous-unwind-tables
This didn't help.
I wonder if the unwind tables are really needed?
>
> Ian
>
Regards,
Joop.