From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15631 invoked by alias); 7 Nov 2011 19:35:26 -0000 Received: (qmail 15569 invoked by uid 22791); 7 Nov 2011 19:35:25 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_CX,TW_DC,TW_DF,TW_GC,TW_GX X-Spam-Check-By: sourceware.org Received: from gateway.thenothing.net (HELO mail.thenothing.net) (213.125.62.106) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Nov 2011 19:35:09 +0000 Received: from imap.homeuse (unknown [172.16.0.3]) by mail.thenothing.net (Postfix) with ESMTP id BEA5247; Mon, 7 Nov 2011 20:34:59 +0100 (CET) Received: from www.boonen.name (localhost [IPv6:::1]) by imap.homeuse (Postfix) with ESMTP id 9A59B8044C; Mon, 7 Nov 2011 20:34:59 +0100 (CET) Received: from 172.16.0.2 (SquirrelMail authenticated user jboonen) by www.boonen.name with HTTP; Mon, 7 Nov 2011 20:34:59 +0100 Message-ID: <129ee517cabf601b5937b3e3efe24831.squirrel@www.boonen.name> In-Reply-To: References: <67e2bf6f16b3591a8228d2323753e0c1.squirrel@www.boonen.name> Date: Mon, 07 Nov 2011 19:35:00 -0000 Subject: Re: Help needed: GCC4.6.2 armv7 hardfp exception try catch issue From: "Joop Boonen" To: "Ian Lance Taylor" Cc: gcc-help@gcc.gnu.org User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg00069.txt.bz2 On Mon, November 7, 2011 4:35 pm, Ian Lance Taylor wrote: > "Joop Boonen" 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.