From owner-freebsd-ports Wed Jan 31 11:59:16 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA04435 for ports-outgoing; Wed, 31 Jan 1996 11:59:16 -0800 (PST) Received: from news1.gtn.com (news1.gtn.com [192.109.159.3]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id LAA04377 Wed, 31 Jan 1996 11:59:00 -0800 (PST) Received: (from uucp@localhost) by news1.gtn.com (8.7.2/8.7.2) id UAA16943; Wed, 31 Jan 1996 20:45:34 +0100 (MET) Received: (from andreas@localhost) by knobel.gun.de (8.7.3/8.7.3) id UAA05865; Wed, 31 Jan 1996 20:35:53 +0100 (MET) From: Andreas Klemm Message-Id: <199601311935.UAA05865@knobel.gun.de> Subject: Another Pentium gcc patch, -D__FreeBSD__=2 -Dbsd4_4 To: asami@cs.berkeley.edu (Satoshi Asami) Date: Wed, 31 Jan 1996 20:35:52 +0100 (MET) Cc: jkh@freebsd.org, ports@freebsd.org, hackers@freebsd.org X-Mailer: ELM [version 2.4 PL24 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-ports@freebsd.org Precedence: bulk Hi ! I'd suggest to add something to the CPP_PREDEFINES... Here the self documenting patch ;-) BTW: Could compile /usr/src/bin and /usr/src/sbin without any trouble using -pipe -mpentium -O6. Compilation with -6 only failed in /usr/src/usr.bin/tftp. gcc got fatal signal 6. With -05, too. Optimization level -O4 worked ok for this subdir. [ Kernel compilation failed, Jordan ;-) ] Another thing... When bootstrapping gcc it will be build using the CFLAGS -O2. Should we perhaps change this to: -pipe -mpentium -O2 ??? Andreas /// *** gcc-2.7.2/config/i386/freebsd.h.orig Wed Jan 31 20:16:50 1996 --- gcc-2.7.2/config/i386/freebsd.h Wed Jan 31 20:17:43 1996 *************** *** 35,41 **** #include "i386/perform.h" #undef CPP_PREDEFINES ! #define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)" /* Like the default, except no -lg. */ #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}" --- 35,41 ---- #include "i386/perform.h" #undef CPP_PREDEFINES ! #define CPP_PREDEFINES "-Dunix -Di386 -Dbsd4_4 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)" /* Like the default, except no -lg. */ #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}" -- andreas@knobel.gun.de /\/\___ Wiechers & Partner Datentechnik GmbH Andreas Klemm ___/\/\/ - Support Unix - aklemm@wup.de - \/ ftp://sunsite.unc.edu/pub/Linux/system/Printing/aps-491.tgz apsfilter - magic print filter 4lpd >>> knobel is powered by FreeBSD <<<