Article View: gnu.gcc.bug
Article #1622["Mark W. Eichin": gcc diff]
From: Marc Horowitz
Date: Sun, 10 Jan 1993 00:03
Date: Sun, 10 Jan 1993 00:03
43 lines
1816 bytes
1816 bytes
(if this looks like a duplicate, it's not. Ignore the previous one.)
Here is a patch to make "gcc -E -" work. It's relative to a version
of gcc.c provided to me by eichin@cygnus.com. I think he said it was
from the 930101 snapshot. Anyway, it's pretty straightforward.
Thanks.
Marc
*** gcc.c.fsf Sat Jan 2 20:26:13 1993
- --- gcc.c Sat Jan 2 20:47:03 1993
***************
*** 3632,3643 ****
/* Look for a suffix. */
for (cp = compilers + n_compilers - 1; cp >= compilers; cp--)
{
! if (strlen (cp->suffix) < length
/* See if the suffix matches the end of NAME. */
&& !strcmp (cp->suffix,
! name + length - strlen (cp->suffix))
! /* The suffix `-' matches only the file name `-'. */
! && !(!strcmp (cp->suffix, "-") && length != 1))
{
if (cp->spec[0][0] == '@')
{
- --- 3632,3643 ----
/* Look for a suffix. */
for (cp = compilers + n_compilers - 1; cp >= compilers; cp--)
{
! if ((strlen (cp->suffix) < length
/* See if the suffix matches the end of NAME. */
&& !strcmp (cp->suffix,
! name + length - strlen (cp->suffix)))
! /* The suffix `-' matches only the file name `-'. */
! || (!strcmp (cp->suffix, "-") && !strcmp (name, "-")))
{
if (cp->spec[0][0] == '@')
{
------- End of Forwarded Message
Technical Details
Message-ID:
<9301100003.AA06017@deathtongue.MIT.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mit.edu!marcShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mit.edu!marc From: marc@mit.edu (Marc Horowitz) Subject: ["Mark W. Eichin": gcc diff] Message-ID: <9301100003.AA06017@deathtongue.MIT.EDU> Sender: gnulists@ai.mit.edu Reply-To: Marc Horowitz <marc@mit.edu> Organization: GNUs Not Usenet Distribution: gnu Date: Sun, 10 Jan 1993 00:03:33 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 45