🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1621

["Mark W. Eichin": gcc diff]

#1621
From: Marc Horowitz
Date: Sun, 10 Jan 1993 00:02
41 lines
1739 bytes
Here is a patch to make "gcc -E -e" work.  It's off of 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: <9301100002.AA06012@deathtongue.MIT.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mit.edu!marc

Show 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: <9301100002.AA06012@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:02:52 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 43