🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1197

Bug (incomplete feature) in cpp

#1197
From: shap
Date: Fri, 01 Jan 1993 05:34
29 lines
1317 bytes
Appears in GCC versions 2.0 and later

Gcc recognizes that .cxx files are C++ source.  The -M option to cpp,
however, does not, with the result that foo.cxx files end up as
foo.cxx.o in the -M output.  I'ld appreciate it if in future releases
you would include something equivalent to the following patch, which
repairs the problem:


Jonathan S. Shapiro
Synergistic Computing Associates


*** cccp.c~	Tue Dec 15 23:25:36 1992
--- cccp.c	Fri Jan  1 00:22:35 1993
***************
*** 1687,1692 ****
--- 1687,1697 ----
  	       && p[len - 2] == 'c'
  	       && p[len - 1] == 'c')
  	deps_output (p, len - 3);
+       else if (p[len - 4] == '.'
+ 	       && p[len - 3] == 'c'
+ 	       && p[len - 2] == 'x'
+ 	       && p[len - 1] == 'x')
+ 	deps_output (p, len - 4);
        else if (p[len - 2] == '.' && p[len - 1] == 's')
  	deps_output (p, len - 2);
        else if (p[len - 2] == '.' && p[len - 1] == 'S')
Technical Details
Message-ID: <9301010836.AA29625@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!halifax.syncomas.com!shap

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!halifax.syncomas.com!shap
From: shap@halifax.syncomas.com
Subject: Bug (incomplete feature) in cpp
Message-ID: <9301010836.AA29625@life.ai.mit.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 1 Jan 1993 05:34:00 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 30