This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: gcc 4.1 regression for adjusted function declaration?



On Feb 16, 2006, at 1:18 PM, Joern RENNECKE wrote:
The issue there is completely different. The array has definetly no completed type.

In the testcase I have given - which is pruned down from the pthread.h header file on a linux installation - after applying adjustment, you get:

extern void f (struct tag *a);

which is fine.

Also pthread.h should have been fixincluded (unless you turned it for some reason). The patch which fixed that is: 2005-03-21 Richard Guenther <rguenth@gcc.gnu.org>

        PR target/20166
        * inclhack.def: Add fix for array of incomplete structures
        in function prototype in pthread.h.
        * fixincl.x: Regenerate.
        * tests/base/pthread.h: Adjust.

Thanks,
Andrew Pinski


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