From owner-freebsd-hackers Thu May 2 05:11:41 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA21212 for hackers-outgoing; Thu, 2 May 1996 05:11:41 -0700 (PDT) Received: from ns.NL.net (ns.NL.net [193.78.240.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id FAA21106 for ; Thu, 2 May 1996 05:11:18 -0700 (PDT) Received: from spase by ns.NL.net via EUnet id AA13556 (5.65b/CWI-3.3); Thu, 2 May 1996 12:34:48 +0200 Received: from phobos.spase.nl (phobos [192.9.200.238]) by mercurius.spase.nl (8.6.11/8.6.11) with ESMTP id MAA17482 for ; Thu, 2 May 1996 12:34:12 +0200 From: Kees Jan Koster Received: (dutchman@localhost) by phobos.spase.nl (8.6.12/8.6.11) id MAA01244 for freebsd-hackers@FreeBSD.ORG; Thu, 2 May 1996 12:33:49 +0200 Message-Id: <199605021033.MAA01244@phobos.spase.nl> Subject: g++ -ansi doesn't define -Di386 To: freebsd-hackers@FreeBSD.ORG (FreeBSD hackers Mailing list) Date: Thu, 2 May 1996 12:33:49 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hoi Hackers, When I run g++ it defines the -Di386 flag (and -D__i386__). When I run g++ with the -ansi flag it does not define -Di386 anymore, but it does defines -D__i386 instead. Would anyone be so kind to explain to me why this is? Where can I find the conventions for cpu and machine flags documented? Anyway, I checked this against a linux box. The same thing happens, but I noticed a difference in the header files in the directory. Most noticable was the use of __i386__ in #ifdefs instead of plain i386. Well, to finish the story, here's my patch, in case you wish to compile RPC stuff with -ansi. phobos# uname -r 2.1.0-RELEASE phobos# gcc --version 2.7.2 phobos# diff auth.h.orig auth.h 71c71 < #if (mc68000 || sparc || vax || i386 || tahoe || hp300) --- > #if (__mc68000__ || __sparc__ || __vax__ || __i386__ || __tahoe__ || __hp300__) Groetjes, Kees Jan ======================================================================v== Kees Jan Koster e-mail: dutchman@spase.nl Van Somerenstraat 50 tel: NL-24-3234708 6521 BS Nijmegen the Netherlands ========================================================================= Who is this general Failure and why is he reading my disk? (anonymous) =========================================================================