This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
preprocessor/4833: dependency generation with -M processes #warning
- To: gcc-gnats at gcc dot gnu dot org
- Subject: preprocessor/4833: dependency generation with -M processes #warning
- From: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
- Date: 8 Nov 2001 14:12:17 -0000
- Reply-To: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
>Number: 4833
>Category: preprocessor
>Synopsis: dependency generation with -M processes #warning
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 08 06:16:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
sparc-sun-solaris, gcc2.95, gcc3.1CVS
>Description:
When generating dependency information using the -M switch,
the preprocessor nevertheless processes #warning lines in
the included files. I'd argue that this is not what one
usually intends to get when one uses -M.
>How-To-Repeat:
deal.II/tests> echo "#warning Strange..." > a.c
deal.II/tests> gcc -M a.c
a.c:1:2: warning: #warning Strange...
a.o: a.c
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: