bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packed structs


From: Hideki IWAMOTO
Subject: Re: Packed structs
Date: Fri, 27 Apr 2012 23:46:58 +0900

Hi.

> Global appears to not tag structs that have the GCC packed attribute (or

Thank you for reporting bug.
When attribute specifier appeared immediately after the `struct', `union'
or `enum' keyword, GLOBAL could not pick up tag name.
===== example =============================
$ cat a.c
struct aaa {
        char a; int b;
} __attribute__((packed)) v1;

struct __attribute__((packed)) bbb {
        char a; int b;
} v2;

typedef struct ccc {
        char a; int b;
} __attribute__((packed)) T1;

typedef struct __attribute__((packed)) ddd {
        char a; int b;
} T2;
$ global -f a.c
aaa                 1 a.c              struct aaa {
ccc                 9 a.c              typedef struct ccc {
T1                 11 a.c              } __attribute__((packed)) T1;
T2                 15 a.c              } T2;
============================================

This bug was fixed in the CVS repository. 
http://cvs.savannah.gnu.org/viewcvs/global/libparser/C.c?cvsroot=global&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/global/libparser/Cpp.c?cvsroot=global&r1=1.6&r2=1.7

Would you check whether there is still any problem on CVS version? 


On Thu, 26 Apr 2012 13:30:44 -0500
Joseph Garvin <address@hidden> wrote:

> Global appears to not tag structs that have the GCC packed attribute (or
> maybe any attribute?). Is there an option I need to pass for this or is it
> bug?
> 
> Thanks,
> 
> Joe G.

-- 
Hideki IWAMOTO <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]