* gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
authorDaniel Jacobowitz <drow@false.org>
Mon, 15 Mar 2010 02:42:54 +0000 (02:42 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 15 Mar 2010 02:42:54 +0000 (02:42 +0000)
gdb/ChangeLog
gdb/gdbtypes.h

index 39440766333544d847e638e3d697bcd1d320a065..2dd4a297076364b4341e5ca65d68857f4927e240 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
+
 2010-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * charset.c [USE_WIN32API]: Include <windows.h>.
index 0315d861921620e7c00c73f2b1c3fb8dddf93908..b1e1d0cac795d224549be3b945d954d1a7f53bb0 100644 (file)
@@ -1045,7 +1045,8 @@ extern void allocate_gnat_aux_type (struct type *);
 #define TYPE_IS_OPAQUE(thistype) (((TYPE_CODE (thistype) == TYPE_CODE_STRUCT) ||        \
                                    (TYPE_CODE (thistype) == TYPE_CODE_UNION))        && \
                                   (TYPE_NFIELDS (thistype) == 0)                     && \
-                                  (HAVE_CPLUS_STRUCT (thistype) && (TYPE_NFN_FIELDS (thistype) == 0)) && \
+                                  (!HAVE_CPLUS_STRUCT (thistype)                       \
+                                  || TYPE_NFN_FIELDS (thistype) == 0) &&               \
                                   (TYPE_STUB (thistype) || !TYPE_STUB_SUPPORTED (thistype)))
 
 struct builtin_type