public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/11534] New: preprocessor warns about defined without -pedantic
@ 2003-07-16  0:12 sean at mess dot org
  2003-07-16  5:49 ` [Bug preprocessor/11534] " neil at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: sean at mess dot org @ 2003-07-16  0:12 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11534

           Summary: preprocessor warns about defined without -pedantic
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sean at mess dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu

behemoth:~$ cpp
#define foo defined
#if foo foo
#endif
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
<stdin>:2:9: warning: this use of "defined" may not be portable

However, this is not like the behaviour described in the last paragraph of
this page:

http://gcc.gnu.org/onlinedocs/gcc-3.3/cpp/Defined.html#Defined

(because I did not supply the -pedantic parameter) I am hoping I am not missing
anything. Apologies if I did.

behemoth:~$ cpp --version
cpp (GCC) 3.3.1 20030626 (Debian prerelease)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug preprocessor/11534] preprocessor warns about defined without -pedantic
  2003-07-16  0:12 [Bug preprocessor/11534] New: preprocessor warns about defined without -pedantic sean at mess dot org
@ 2003-07-16  5:49 ` neil at gcc dot gnu dot org
  2003-08-03 12:28 ` neil at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: neil at gcc dot gnu dot org @ 2003-07-16  5:49 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11534


neil at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |neil at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-16 05:49:00
               date|                            |


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug preprocessor/11534] preprocessor warns about defined without -pedantic
  2003-07-16  0:12 [Bug preprocessor/11534] New: preprocessor warns about defined without -pedantic sean at mess dot org
  2003-07-16  5:49 ` [Bug preprocessor/11534] " neil at gcc dot gnu dot org
@ 2003-08-03 12:28 ` neil at gcc dot gnu dot org
  2003-08-03 15:58 ` cvs-commit at gcc dot gnu dot org
  2003-08-03 15:59 ` pinskia at physics dot uc dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: neil at gcc dot gnu dot org @ 2003-08-03 12:28 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11534


neil at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From neil at gcc dot gnu dot org  2003-08-03 12:28 -------
Fixed in 3.4; will fix in 3.3 soon.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug preprocessor/11534] preprocessor warns about defined without -pedantic
  2003-07-16  0:12 [Bug preprocessor/11534] New: preprocessor warns about defined without -pedantic sean at mess dot org
  2003-07-16  5:49 ` [Bug preprocessor/11534] " neil at gcc dot gnu dot org
  2003-08-03 12:28 ` neil at gcc dot gnu dot org
@ 2003-08-03 15:58 ` cvs-commit at gcc dot gnu dot org
  2003-08-03 15:59 ` pinskia at physics dot uc dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-08-03 15:58 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11534



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-08-03 15:58 -------
Subject: Bug 11534

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	mmitchel@gcc.gnu.org	2003-08-03 15:58:06

Modified files:
	gcc            : ChangeLog cppexp.c 

Log message:
	PR preprocessor/11534
	* cppexp.c (parse_defined): Warn only if -pedantic.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.692&r2=1.16114.2.693
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppexp.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.134&r2=1.134.2.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug preprocessor/11534] preprocessor warns about defined without -pedantic
  2003-07-16  0:12 [Bug preprocessor/11534] New: preprocessor warns about defined without -pedantic sean at mess dot org
                   ` (2 preceding siblings ...)
  2003-08-03 15:58 ` cvs-commit at gcc dot gnu dot org
@ 2003-08-03 15:59 ` pinskia at physics dot uc dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-03 15:59 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11534


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4                         |3.3.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-08-03 15:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-16  0:12 [Bug preprocessor/11534] New: preprocessor warns about defined without -pedantic sean at mess dot org
2003-07-16  5:49 ` [Bug preprocessor/11534] " neil at gcc dot gnu dot org
2003-08-03 12:28 ` neil at gcc dot gnu dot org
2003-08-03 15:58 ` cvs-commit at gcc dot gnu dot org
2003-08-03 15:59 ` pinskia at physics dot uc dot edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).