This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
re: bootstrap with -fnew-abi?
- To: gcc at gcc dot gnu dot org
- Subject: re: bootstrap with -fnew-abi?
- From: <bkoz at haight dot constant dot com>
- Date: Mon, 13 Sep 1999 13:16:40 -0700
- Reply-To: bkoz at cygnus dot com
Is it possible to bootstrap with the -fnew-abi option for g++, so
that -fnew-abi is set by default for the resulting g++-compiler? No
anser in the FAQ!
just change the relevant bits in gcc/cp/decl2.c (440):
int flag_new_abi;
to
int flag_new_abi = 1;
There is a thread about using new flags on the libstdc++-v3 list:
search for "HOWTO-honor-std" in the archives of the mailing list.
http://sourceware.cygnus.com/libstdc++
-Benjamin
This patch will also work:
Index: decl2.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/decl2.c,v
retrieving revision 1.256
diff -c -p -r1.256 decl2.c
*** decl2.c 1999/09/12 02:45:26 1.256
--- decl2.c 1999/09/13 20:14:50
*************** int flag_weak = 1;
*** 437,443 ****
/* Nonzero to enable experimental ABI changes. */
! int flag_new_abi;
/* Nonzero to not ignore namespace std. */
--- 437,443 ----
/* Nonzero to enable experimental ABI changes. */
! int flag_new_abi = 1;
/* Nonzero to not ignore namespace std. */