public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/10225: Unnamed structs aren't handled correctly in 3.3
@ 2003-03-26 17:16 pthomas
0 siblings, 0 replies; 3+ messages in thread
From: pthomas @ 2003-03-26 17:16 UTC (permalink / raw)
To: gcc-gnats; +Cc: aj
>Number: 10225
>Category: c
>Synopsis: Unnamed structs aren't handled correctly in 3.3
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Mar 26 17:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: pthomas@suse.de
>Release: 3.3 20030325 (prerelease)
>Organization:
>Environment:
x86_64-suse-linux
>Description:
When compiling the attached unnamed2.c with 3.3 mainline,
the code is rejected:
unnamed2.c:9: warning: declaration does not declare anything
unnamed2.c: In function `main':
unnamed2.c:16: error: structure has no member named `z'
Whereas 3.2.2 accepts the code, so this is clearly a regression.
Note that the ntfs driver in Linux kernel 2.5.65 uses this extension and thus breaks when compiled with 3.3.
>How-To-Repeat:
Compile the attached code.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-csrc; name="unnamed2.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="unnamed2.c"
dHlwZWRlZiBzdHJ1Y3QKewoJaW50IHo7Cn10eXBlX3o7CiAgCnN0cnVjdCBCCnsKCWludCBpOwoJ
dHlwZV96Owp9OwoKCmludCBtYWluKHZvaWQpCnsKCXN0cnVjdCBCIEI7CglCLnogPSAxOwoKCXJl
dHVybiAwOwp9Cg==
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/10225: Unnamed structs aren't handled correctly in 3.3
@ 2003-03-26 17:46 Philipp Thomas
0 siblings, 0 replies; 3+ messages in thread
From: Philipp Thomas @ 2003-03-26 17:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/10225; it has been noted by GNATS.
From: Philipp Thomas <pthomas@suse.de>
To: Steven Bosscher <s.bosscher@student.tudelft.nl>
Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
gcc-prs@gcc.gnu.org, aj@suse.de
Subject: Re: c/10225: Unnamed structs aren't handled correctly in 3.3
Date: Wed, 26 Mar 2003 18:33:47 +0100
* Steven Bosscher (s.bosscher@student.tudelft.nl) [20030326 18:25]:
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10225
>
> Hmm... Didn't work with 2.95.3 apparently, so the
> kernel had better not rely on this "feature".
The code takes into account that gcc 2.95.3 doesn't support this. But seeing
the extra macro stuff that generates the correct member names depending on
the compiler used (e.g. you have to use ie->_IIF(iff,length) makes me really
wonder why they even use the stuff .....
Philipp
--
Philipp Thomas <pthomas@suse.de>
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nuremberg, Germany
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/10225: Unnamed structs aren't handled correctly in 3.3
@ 2003-03-26 17:27 Steven Bosscher
0 siblings, 0 replies; 3+ messages in thread
From: Steven Bosscher @ 2003-03-26 17:27 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/10225; it has been noted by GNATS.
From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
pthomas@suse.de, gcc-prs@gcc.gnu.org, aj@suse.de
Cc:
Subject: Re: c/10225: Unnamed structs aren't handled correctly in 3.3
Date: Wed, 26 Mar 2003 18:24:54 +0100
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10225
Hmm... Didn't work with 2.95.3 apparently, so the
kernel had better not rely on this "feature".
Greetz
Steven
# gcc 10225.c -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
gcc version 2.95.3 20010315 (SuSE)
/usr/lib/gcc-lib/i486-suse-linux/2.95.3/cpp0 -lang-c -v -D__GNUC__=2
-D__GNUC_MINOR__=95 -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__
-D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix)
-Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di486 -D__i486
-D__i486__ 10225.c /tmp/ccba6Vbe.i
GNU CPP version 2.95.3 20010315 (SuSE) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc-lib/i486-suse-linux/2.95.3/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/include/g++
/usr/lib/gcc-lib/i486-suse-linux/2.95.3/../../../../i486-suse-linux/include
End of omitted list.
/usr/lib/gcc-lib/i486-suse-linux/2.95.3/cc1 /tmp/ccba6Vbe.i -quiet
-dumpbase 10225.c -version -o /tmp/cc4V6K8j.s
GNU C version 2.95.3 20010315 (SuSE) (i486-suse-linux) compiled by GNU C
version 2.95.3 20010315 (SuSE).
10225.c:10: warning: useless keyword or type name in empty declaration
10225.c:10: warning: empty declaration
10225.c: In function `main':
10225.c:18: structure has no member named `z'
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-26 17:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-26 17:16 c/10225: Unnamed structs aren't handled correctly in 3.3 pthomas
2003-03-26 17:27 Steven Bosscher
2003-03-26 17:46 Philipp Thomas
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).