public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/54160] New: gcc should not define __OBJC2__ when lang is not set to ObjC (gcc 4.6 and later)
@ 2012-08-02 15:28 jeremyhu at macports dot org
  2012-08-03  8:06 ` [Bug preprocessor/54160] [4.6/4.7/4.8 Regression] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jeremyhu at macports dot org @ 2012-08-02 15:28 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54160
           Summary: gcc should not define __OBJC2__ when lang is not set
                    to ObjC (gcc 4.6 and later)
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jeremyhu@macports.org


gcc should not be defining the __OBJC2__ preprocessor macro when it is not
building for the Objective C or Objective C++ languages.

~ $ echo "" | gcc-mp-4.5 -x objective-c -E -dM - | grep OBJ
#define __OBJC__ 1

~ $ echo "" | gcc-mp-4.5 -E -dM - | grep OBJ

~ $ echo "" | gcc-mp-4.6 -x objective-c -E -dM - | grep OBJ
#define __OBJC__ 1
#define __OBJC2__ 1

~ $ echo "" | gcc-mp-4.6 -E -dM - | grep OBJ
#define __OBJC2__ 1

This is a regression that entered gcc 4.6 and is present in current versions of
4.6, 4.7, and 4.8 snapshots


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

end of thread, other threads:[~2012-12-05 21:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-02 15:28 [Bug preprocessor/54160] New: gcc should not define __OBJC2__ when lang is not set to ObjC (gcc 4.6 and later) jeremyhu at macports dot org
2012-08-03  8:06 ` [Bug preprocessor/54160] [4.6/4.7/4.8 Regression] " rguenth at gcc dot gnu.org
2012-08-03  9:28 ` [Bug target/54160] " steven at gcc dot gnu.org
2012-09-07 10:21 ` rguenth at gcc dot gnu.org
2012-12-04 20:36 ` aldyh at gcc dot gnu.org
2012-12-04 22:29 ` aldyh at gcc dot gnu.org
2012-12-05 21:10 ` aldyh at gcc dot gnu.org
2012-12-05 21:13 ` aldyh at gcc dot gnu.org

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).