This is the mail archive of the gcc-bugs@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]

new #pragma pack failure


I'm not certain that this was introduced with Zack's patch

2000-09-08  Zack Weinberg  <zack@wolery.cumb.org>

        * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
        (init_pragma): Avoid warning if pfile happens to be unused.
        * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS.  Never
        define init_pragma to nothing.  Always prototype
        init_pragma.  Prototype dispatch_pragma if !USE_CPPLIB.

but there's been a recent regression with HANDLE_SYSV_PRAGMA code.   This
following code isn't malformed; this construct returns the packing to the
default.   But GCC now complains about it.

$ cat /tmp/p.c
#pragma pack()
(robertl) rjlhome:/play/negcs/gcc/stage1
$ ./xgcc -c -B./ /tmp/p.c
/tmp/p.c:1: warning: malformed '#pragma pack' - ignored




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