public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/4414: __packed__ keyword not recognized
@ 2001-09-27 15:36 Joseph S. Myers
  0 siblings, 0 replies; 3+ messages in thread
From: Joseph S. Myers @ 2001-09-27 15:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/4414; it has been noted by GNATS.

From: "Joseph S. Myers" <jsm28@cam.ac.uk>
To: <jtison@us.ibm.com>
Cc: <gcc-gnats@gcc.gnu.org>,  <gcc-bugs@gcc.gnu.org>
Subject: Re: c/4414: __packed__ keyword not recognized
Date: Thu, 27 Sep 2001 23:33:27 +0100 (BST)

 On 27 Sep 2001 jtison@us.ibm.com wrote:
 
 > info gcc says that __attribute__ ((x)) may be abbreviated as __x__.
 > Not happening, folks. The attached source fails. The fix is to change
 > __packed__ to __attribute__ ((packed)).
 
 That would be a bug in the documentation, if so.  Could you please quote
 the exact wording that says this (rather than simply saying that __x__ may
 replace x within __attribute__)?
 
 -- 
 Joseph S. Myers
 jsm28@cam.ac.uk
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c/4414: __packed__ keyword not recognized
@ 2001-09-28  0:21 jsm28
  0 siblings, 0 replies; 3+ messages in thread
From: jsm28 @ 2001-09-28  0:21 UTC (permalink / raw)
  To: jsm28, gcc-bugs, gcc-prs, jtison, jtison, nobody

Synopsis: __packed__ keyword not recognized

State-Changed-From-To: open->closed
State-Changed-By: jsm28
State-Changed-When: Fri Sep 28 00:21:13 2001
State-Changed-Why:
    User misread manual.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4414&database=gcc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* c/4414: __packed__ keyword not recognized
@ 2001-09-27 15:26 jtison
  0 siblings, 0 replies; 3+ messages in thread
From: jtison @ 2001-09-27 15:26 UTC (permalink / raw)
  To: gcc-gnats; +Cc: jtison

>Number:         4414
>Category:       c
>Synopsis:       __packed__ keyword not recognized
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 27 15:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jim Tison
>Release:        gcc-3.0.1
>Organization:
>Environment:
Reading specs from /usr/local/lib/gcc-lib/s390x-ibm-linux/3.0.1/specs
Configured with: ../gcc-3.0.1/configure --host=i686-pc-linux-gnu --target=s390x-
ibm-linux --prefix=/usr/local --enable-languages=c++
Thread model: single
gcc version 3.0.1
 /usr/local/lib/gcc-lib/s390x-ibm-linux/3.0.1/cpp0 -lang-c -v -D__GNUC__=3 -D__G
NUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=1 -Dlinux -D__s390__ -D__s390x__ -Dunix -D__
ELF__ -D__linux__ -D__s390__ -D__s390x__ -D__unix__ -D__ELF__ -D__linux -D__unix
 -Asystem(linux) -Acpu(s390) -Amachine(s390) -Asystem(unix) -D__CHAR_UNSIGNED__ 
-D__NO_INLINE__ -D__STDC_HOSTED__=1 test.c test.i
GNU CPP version 3.0.1 (cpplib) (Linux for S/390 zSeries 64 bit)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/s390x-ibm-linux/3.0.1/include
 /usr/local/s390x-ibm-linux/sys-include
 /usr/local/s390x-ibm-linux/include
End of search list.
 /usr/local/lib/gcc-lib/s390x-ibm-linux/3.0.1/cc1 -fpreprocessed test.i -fno-cal
ler-saves -quiet -dumpbase test.c -version -o test.s
GNU CPP version 3.0.1 (cpplib) (Linux for S/390 zSeries 64 bit)
GNU C version 3.0.1 (s390x-ibm-linux)
        compiled by GNU C version 2.95.3 20010315 (release).
test.c:4: parse error before "mystruct"

>Description:
info gcc says that __attribute__ ((x)) may be abbreviated as __x__. Not happening, folks. The attached source fails. The fix is to change __packed__ to __attribute__ ((packed)).
>How-To-Repeat:
Just use __packed__ in a typedef instead of __attribute__ ((packed))
>Fix:
Change __packed__ to __attribute__ ((packed))
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/smil; name="test.i"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.i"

IyAxICJ0ZXN0LmMiCnR5cGVkZWYgc3RydWN0IHsKICAgICAgICBjaGFyIGE7CiAgICAgICAgaW50
IGI7CiAgICAgICAgfSBfX3BhY2tlZF9fIG15c3RydWN0OwoKaW50IGxlYWZmdW5jKCB2b2lkICkg
ewogICAgICAgIG15c3RydWN0IHg7CiAgICAgICAgeC5iID0gMjsKICAgICAgICByZXR1cm4gOwp9
Cg==


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-09-28  0:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-27 15:36 c/4414: __packed__ keyword not recognized Joseph S. Myers
  -- strict thread matches above, loose matches on Subject: below --
2001-09-28  0:21 jsm28
2001-09-27 15:26 jtison

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).