xm-i386.h: Define `__i386__' if not defined...
authorDavid O'Brien <obrien@FreeBSD.org>
Tue, 23 Nov 1999 06:09:34 +0000 (06:09 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 23 Nov 1999 06:09:34 +0000 (23:09 -0700)
        * xm-i386.h: Define `__i386__' if not defined, rather than `i386'
        which is in the user's namespace.
        * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs.
        `i386' which is not in our namespace.

From-SVN: r30627

gcc/ChangeLog
gcc/config/i386/xm-i386.h
gcc/libgcc2.c

index c11e1a25278b309e3869430fc5602926cd6c875c..e19a9e1c1b58375a2514114290386671e9817dec 100644 (file)
@@ -1,3 +1,10 @@
+Mon Nov 22 23:09:44 1999  David O'Brien  <obrien@FreeBSD.org>
+
+        * xm-i386.h: Define `__i386__' if not defined, rather than `i386'
+       which is in the user's namespace.
+        * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs.
+        `i386' which is not in our namespace.
+
 Mon Nov 22 22:58:01 1999  "R. Kelley Cook" <KelleyCook@attglobal.net>
 
        * invoke.texi (ARM Options): Add in -mno-alignment-traps
index acc1657670939c3ad061512ec1d97e5e43d695fc..bb0c34e507ba655dd2272c021bb979ac0babcb8e 100644 (file)
@@ -18,8 +18,8 @@ along with GNU CC; see the file COPYING.  If not, write to
 the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
-#ifndef i386
-#define i386
+#ifndef __i386__
+#define __i386__
 #endif
 
 /* #defines that need visibility everywhere.  */
index 114ada21f61b83bd96cefeaece7d139829424a57..861e6d98ca500a7f15f3fa3ce1daec80842ec4ff 100644 (file)
@@ -2596,7 +2596,7 @@ long getpagesize()
 #endif
 }
 
-#ifdef i386
+#ifdef __i386__
 extern int VirtualProtect (char *, int, int, int *) __attribute__((stdcall));
 #endif