Article View: gnu.g++.bug
Article #1197Bug (incomplete feature) in cpp
From: shap
Date: Fri, 01 Jan 1993 05:34
Date: Fri, 01 Jan 1993 05:34
29 lines
1317 bytes
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!shapShow 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