This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
new #pragma pack failure
- To: gcc-bugs at gcc dot gnu dot org
- Subject: new #pragma pack failure
- From: Robert Lipe <robertl at sco dot com>
- Date: Sat, 9 Sep 2000 14:21:40 -0500
- Cc: zack at wolery dot cumb dot org
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