linux-origin
[Top] [All Lists]

Re: compilers ... again

To: Kanoj Sarcar <kanoj@xxxxxxxxxxxxxxxxxxx>
Subject: Re: compilers ... again
From: Ulf Carlsson <ulfc@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Apr 2000 14:17:10 -0700 (PDT)
Cc: linux-origin@xxxxxxxxxxx
In-reply-to: <200004261508.IAA79987@google.engr.sgi.com>
Sender: owner-linux-origin@xxxxxxxxxxx
On Wed, 26 Apr 2000, Kanoj Sarcar wrote:

> Okay, Ulf seems to have isolated a test case for the previous preprocessor
> bug. As I mentioned, there is a workaround for the bug, but Ulf, did you 
> play with restructuring the code to see whether we can workaround the 
> problem?

We could pass the -P option to gcc to prevent cpp from generating those
comments, I don't know that we need the comments for any reason.  We could
apply something like..

--- Makefile.orig       Wed Apr 26 14:12:36 2000
+++ Makefile    Wed Apr 26 14:12:24 2000
@@ -36,7 +36,7 @@
 # machines may also.  Since BFD is incredibly buggy with respect to
 # crossformat linking we rely on the elf2ecoff tool for format conversion.
 #
-CFLAGS         += -G 0 -mno-abicalls -fno-pic
+CFLAGS         += -P -G 0 -mno-abicalls -fno-pic
 LINKFLAGS      += -static -G 0
 MODFLAGS       += -mlong-calls
 

.. to the makefile if that's ok.

Ulf


<Prev in Thread] Current Thread [Next in Thread>