From mboxrd@z Thu Jan 1 00:00:00 1970 From: To: gcc AT gcc.gnu.org Subject: re: bootstrap with -fnew-abi? Date: Mon, 13 Sep 1999 13:16:00 -0000 Message-id: <199909132016.NAA06047@haight.constant.com> X-SW-Source: 1999-09/msg00506.html 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. */ From mboxrd@z Thu Jan 1 00:00:00 1970 From: To: gcc@gcc.gnu.org Subject: re: bootstrap with -fnew-abi? Date: Thu, 30 Sep 1999 18:02:00 -0000 Message-ID: <199909132016.NAA06047@haight.constant.com> X-SW-Source: 1999-09n/msg00506.html Message-ID: <19990930180200.YVj9q6V8Ivhuni0ThfCzxbYE4otl7OEpH4TXSq7JY-0@z> 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. */