public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* bootstrap/6444: ICE: fr30-elf does not build simple test case -- follow-on to #6172
@ 2002-04-24 18:36 smarks
  0 siblings, 0 replies; only message in thread
From: smarks @ 2002-04-24 18:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6444
>Category:       bootstrap
>Synopsis:       ICE: fr30-elf does not build simple test case -- follow-on to #6172
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 24 18:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Scott Marks
>Release:        trunk  from CVS at 20020424, 13:21 EDT (including GCC: (GNU) 3.2 20020424 (experimental))
>Organization:
>Environment:
Cross from i686-pc-cygwin to fr30-elf
 or from i686-pc-linux-gnu to fr30-elf
>Description:
$ xgcc -O2 -S div.c
div.c: In function `div':
div.c:11: Internal compiler error in change_address_1, at emit-rtl.c:1784

where the complete contents of div.c is these 11 lines, simplified from the stdlib member (no #includes):
---------------------------------------------
typedef struct { int quot; int rem; } div_t;

div_t div (num, denom) 
int num;
int denom;
{
  div_t r;
  r.quot = num / denom;
  r.rem = num % denom;
  return (r);
}
---------------------------------------------
It is perhaps noteworthy that elimination of either division operator in favor of a simple variable access avoids the failure, as does replacing both operators with addition.  Also, does not fail without -O.
>How-To-Repeat:
Use <URL: http://gcc.gnu.org/simtest-howto.html> as basic
build description, building to fr30-elf.  When build fails, add location of xgcc to path, and compile div.c as shown.
>Fix:

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

dHlwZWRlZiBzdHJ1Y3QgeyBpbnQgcXVvdDsgaW50IHJlbTsgfSBkaXZfdDsKCmRpdl90IGRpdiAo
bnVtLCBkZW5vbSkgCmludCBudW07CmludCBkZW5vbTsKewogIGRpdl90IHI7CiAgci5xdW90ID0g
bnVtIC8gZGVub207CiAgci5yZW0gPSBudW0gJSBkZW5vbTsKICByZXR1cm4gKHIpOwp9Cg==


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-25  1:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-24 18:36 bootstrap/6444: ICE: fr30-elf does not build simple test case -- follow-on to #6172 smarks

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