This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] atomics
- From: Andreas Schwab <schwab at suse dot de>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, crowl at google dot com
- Date: Tue, 09 Sep 2008 15:37:36 +0200
- Subject: Re: [v3] atomics
- References: <20080410152950.4421fda9@wabash.artheist.org>
Benjamin Kosnik <bkoz@redhat.com> writes:
> I added a configure-time check for standard layout support, in
> GLIBCXX_CHECK_STANDARD_LAYOUT and the associated
This will always fail, even when gcc grows support for it, because it
redefines main.
Committed as obvious.
Andreas.
2008-09-09 Andreas Schwab <schwab@suse.de>
* acinclude.m4 (GLIBCXX_CHECK_STANDARD_LAYOUT): Fix compile check
not to redefine main.
* configure: Regenerate.
Index: libstdc++-v3/acinclude.m4
===================================================================
--- libstdc++-v3/acinclude.m4 (revision 140137)
+++ libstdc++-v3/acinclude.m4 (working copy)
@@ -1664,14 +1664,9 @@ AC_DEFUN([GLIBCXX_CHECK_STANDARD_LAYOUT]
private:
b& operator=(const b&);
b(const b&);
- };
-
- int main()
- {
- b tst1 = { false };
- return 0;
- }],,
- [ac_standard_layout=yes], [ac_standard_layout=no])
+ };],
+ [b tst1 = { false };],
+ [ac_standard_layout=yes], [ac_standard_layout=no])
CXXFLAGS="$ac_save_CXXFLAGS"
AC_LANG_RESTORE
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."