aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2004-03-02 09:50:08 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2004-03-02 09:50:08 +0000
commitb06a028bf010f9db19fff134b009c1c77db6d251 (patch)
treea7ddb36a9b99f0e94fc3228b3a87f620e43e98ff
parente30ffa5bdd7252190c150b7fcf756664d809ae69 (diff)
downloadnewlib-b06a028bf010f9db19fff134b009c1c77db6d251.zip
newlib-b06a028bf010f9db19fff134b009c1c77db6d251.tar.gz
newlib-b06a028bf010f9db19fff134b009c1c77db6d251.tar.bz2
* basetyps.h (GUID_SECT): Define to nothing for GCC >= 2.95.
-rw-r--r--winsup/w32api/ChangeLog4
-rw-r--r--winsup/w32api/include/basetyps.h5
2 files changed, 8 insertions, 1 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index ceae90d..cf19ace 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-02 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * basetyps.h (GUID_SECT): Define to nothimg for GCC >= 2.95.
+
2004-03-02 Martin Fuchs <martin-fuchs@gmx.net>
* include/oleauto.h (VAR_VALIDDATE, VAR_FORMAT_NOSUBSTITUTE,
diff --git a/winsup/w32api/include/basetyps.h b/winsup/w32api/include/basetyps.h
index d8cb3c7..aad89c9 100644
--- a/winsup/w32api/include/basetyps.h
+++ b/winsup/w32api/include/basetyps.h
@@ -146,7 +146,10 @@ typedef unsigned long PROPID;
#ifndef GUID_SECTION
#define GUID_SECTION ".text"
#endif
-#ifdef __GNUC__
+/* Explicit naming of .text section for readonly data is only
+ needed for older GGC (pre-2.95).
+ More recent (3.4) GCC puts readonly data in .rdata. */
+#if defined (__GNUC__) && (__GNUC__ <= 2 && __GNUC_MINOR__ < 95)
#define GUID_SECT __attribute__ ((section (GUID_SECTION)))
#else
#define GUID_SECT