[v3] atomics
Andreas Schwab
schwab@suse.de
Tue Sep 9 13:38:00 GMT 2008
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."
More information about the Libstdc++
mailing list