This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

preprocessor/4833: dependency generation with -M processes #warning



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]