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]

compilation problem with -fno-exceptions


Dear GCC developers,

I just built todays version of gcc grabbed from the repository
on RH 6.1 Linux box. I managed to build all the binaries, however 
to do it I had to jump over a couple of hurdles:

- for some reason `make' on my box didn't recognize an old pattern
  rule `.c.o:' in libiberty subdirectory (however it did recognize
  the same rule in other subdirs), had to replace it with `%.o:%.c'
- when building libstdc++ I had to patch manually few makefiles
  to replace `libtool' with `libtool --tag CXX'

OK, then the c++ compiler bails out when asked to compile a pretty 
simple test example (see below, output enclosed) with disabled 
exceptions. However it successfully compiles and links it when
exceptions handling is enabled (default switches).

Am I doing something wrong? How one could configure gcc 2.97 to stay
with disabled exceptions?
				thanks a lot, Pasha

>cat test_001.cc
#include <iostream>
using namespace std;
int main() {
  return 0;
}

/data12/murat/test_gcc>gcc -v -c -fno-exceptions test_001.cc
Reading specs from /data/products/gcc/development/inst/lib/gcc-lib/i686-pc-linux-gnu/2.97/specs
Configured with: ../src/configure  : (reconfigured) ../src/configure --prefix=/data/products/gcc/development/inst :
(reconfigured)  : (reconfigured) ../gcc/configure --with-prefix=/data/products/gcc/development/inst : (reconfigured)
../gcc/configure --with-prefix=/data/products/gcc/development/inst
gcc version 2.97 20001125 (experimental)
 /data/products/gcc/development/inst/lib/gcc-lib/i686-pc-linux-gnu/2.97/cc1plus -v -iprefix
/data/products/gcc/development/inst/lib/gcc-lib/i686-pc-linux-gnu/2.97/ -D__GNUC__=2 -D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0
-D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__STDC_HOSTED__=1 -Acpu=i386
-Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ test_001.cc -lang-c++ -D__GNUG__=2 -quiet
-dumpbase test_001.cc -version -fno-exceptions -o /var/tmp/ccH45yhH.s
GNU CPP version 2.97 20001125 (experimental) (cpplib) (i386 Linux/ELF)
GNU C++ version 2.97 20001125 (experimental) (i686-pc-linux-gnu) compiled by GNU C version 2.95.2 19991024 (release).
ignoring duplicate directory "/data/products/gcc/development/inst/include/g++-v3"
ignoring duplicate directory "/data/products/gcc/development/inst/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /data/products/gcc/development/inst/i686-pc-linux-gnu/include
 /data/products/gcc/development/inst/include/g++-v3
 /data/products/gcc/development/inst/lib/gcc-lib/i686-pc-linux-gnu/2.97/include
 /usr/local/include/g++-v3
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/include
 /usr/local/i686-pc-linux-gnu/include
 /usr/include
End of search list.
In file included from /data/products/gcc/development/inst/include/g++-v3/bits/std_ios.h:41,
                 from /data/products/gcc/development/inst/include/g++-v3/bits/std_ostream.h:36,
                 from /data/products/gcc/development/inst/include/g++-v3/bits/std_iostream.h:37,
                 from /data/products/gcc/development/inst/include/g++-v3/iostream:1,
                 from test_001.cc:0:
/data/products/gcc/development/inst/include/g++-v3/bits/localefwd.h:365: exception
   handling disabled, use -fexceptions to enable

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