home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / g / bug / 2107 < prev    next >
Encoding:
Text File  |  1993-01-01  |  1.2 KB  |  43 lines

  1. Newsgroups: gnu.g++.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!halifax.syncomas.com!shap
  3. From: shap@halifax.syncomas.com
  4. Subject: Bug (incomplete feature) in cpp
  5. Message-ID: <9301010836.AA29625@life.ai.mit.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Fri, 1 Jan 1993 05:34:00 GMT
  10. Approved: bug-g++@prep.ai.mit.edu
  11. Lines: 30
  12.  
  13. Appears in GCC versions 2.0 and later
  14.  
  15. Gcc recognizes that .cxx files are C++ source.  The -M option to cpp,
  16. however, does not, with the result that foo.cxx files end up as
  17. foo.cxx.o in the -M output.  I'ld appreciate it if in future releases
  18. you would include something equivalent to the following patch, which
  19. repairs the problem:
  20.  
  21.  
  22. Jonathan S. Shapiro
  23. Synergistic Computing Associates
  24.  
  25.  
  26. *** cccp.c~    Tue Dec 15 23:25:36 1992
  27. --- cccp.c    Fri Jan  1 00:22:35 1993
  28. ***************
  29. *** 1687,1692 ****
  30. --- 1687,1697 ----
  31.              && p[len - 2] == 'c'
  32.              && p[len - 1] == 'c')
  33.       deps_output (p, len - 3);
  34. +       else if (p[len - 4] == '.'
  35. +            && p[len - 3] == 'c'
  36. +            && p[len - 2] == 'x'
  37. +            && p[len - 1] == 'x')
  38. +     deps_output (p, len - 4);
  39.         else if (p[len - 2] == '.' && p[len - 1] == 's')
  40.       deps_output (p, len - 2);
  41.         else if (p[len - 2] == '.' && p[len - 1] == 'S')
  42.  
  43.