home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / gcc / bug / 3153 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.6 KB  |  57 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!mit.edu!marc
  3. From: marc@mit.edu (Marc Horowitz)
  4. Subject: ["Mark W. Eichin": gcc diff]
  5. Message-ID: <9301100002.AA06012@deathtongue.MIT.EDU>
  6. Sender: gnulists@ai.mit.edu
  7. Reply-To: Marc Horowitz <marc@mit.edu>
  8. Organization: GNUs Not Usenet
  9. Distribution: gnu
  10. Date: Sun, 10 Jan 1993 00:02:52 GMT
  11. Approved: bug-gcc@prep.ai.mit.edu
  12. Lines: 43
  13.  
  14. Here is a patch to make "gcc -E -e" work.  It's off of a version of
  15. gcc.c provided to me by eichin@cygnus.com.  I think he said it was
  16. from the 930101 snapshot.  Anyway, it's pretty straightforward.
  17.  
  18. Thanks.
  19.  
  20.         Marc
  21.  
  22.  
  23. *** gcc.c.fsf    Sat Jan  2 20:26:13 1993
  24. - --- gcc.c    Sat Jan  2 20:47:03 1993
  25. ***************
  26. *** 3632,3643 ****
  27.     /* Look for a suffix.  */
  28.     for (cp = compilers + n_compilers - 1; cp >= compilers; cp--)
  29.       {
  30. !       if (strlen (cp->suffix) < length
  31.              /* See if the suffix matches the end of NAME.  */
  32.              && !strcmp (cp->suffix,
  33. !                name + length - strlen (cp->suffix))
  34. !            /* The suffix `-' matches only the file name `-'.  */
  35. !            && !(!strcmp (cp->suffix, "-") && length != 1))
  36.       {
  37.         if (cp->spec[0][0] == '@')
  38.           {
  39. - --- 3632,3643 ----
  40.     /* Look for a suffix.  */
  41.     for (cp = compilers + n_compilers - 1; cp >= compilers; cp--)
  42.       {
  43. !       if ((strlen (cp->suffix) < length
  44.              /* See if the suffix matches the end of NAME.  */
  45.              && !strcmp (cp->suffix,
  46. !                name + length - strlen (cp->suffix)))
  47. !       /* The suffix `-' matches only the file name `-'.  */
  48. !       || (!strcmp (cp->suffix, "-") && !strcmp (name, "-")))
  49.       {
  50.         if (cp->spec[0][0] == '@')
  51.           {
  52.  
  53.  
  54. ------- End of Forwarded Message
  55.  
  56.  
  57.