public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/4603: ICE when mode attrib applied to fn return type
@ 2002-04-26  1:28 rth
  0 siblings, 0 replies; 2+ messages in thread
From: rth @ 2002-04-26  1:28 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, smcpeak

Synopsis: ICE when mode attrib applied to fn return type

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Fri Apr 26 01:28:22 2002
State-Changed-Why:
    This doesn't do what you think -- the mode is applied to the
    function, not the function's return value.  See http://gcc.gnu.org/onlinedocs/gcc-3.0/gcc_5.html#SEC93
    
    The ICE has been cured for gcc 3.1.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4603


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

* c/4603: ICE when mode attrib applied to fn return type
@ 2001-10-17 23:46 smcpeak
  0 siblings, 0 replies; 2+ messages in thread
From: smcpeak @ 2001-10-17 23:46 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4603
>Category:       c
>Synopsis:       ICE when mode attrib applied to fn return type
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 17 23:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Scott McPeak
>Release:        gcc-3.0, gcc-2.95.2, egcs-2.91.66
>Organization:
>Environment:
Linux 2.2, x86, glibc-2.1.2
>Description:
When gcc is run on the following one-line input:

  extern int __attribute__((__mode__(__SI__))) random();

it dies:

  tmp.c:2: Internal compiler error in layout_decl, at stor-layout.c:313

This situation arises from a source-to-source translator,
where random's return type is declared to be "int32_t",
which itself is a typedef involving __mode__(__si__).
The s2s tool translates typedefs away, and when it prints
the result of its processing, the above is the result.
>How-To-Repeat:
gcc tmp.c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="tmp.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="tmp.c"

CmV4dGVybiBpbnQgX19hdHRyaWJ1dGVfXygoX19tb2RlX18oX19TSV9fKSkpIHJhbmRvbSgpICAg
ICAgICA7Cgo=


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

end of thread, other threads:[~2002-04-26  8:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-26  1:28 c/4603: ICE when mode attrib applied to fn return type rth
  -- strict thread matches above, loose matches on Subject: below --
2001-10-17 23:46 smcpeak

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).