This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

optimization/3906: Internal compiler error in change_address, at emit-rtl.c:1635



>Number:         3906
>Category:       optimization
>Synopsis:       Internal compiler error in change_address, at emit-rtl.c:1635
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 31 17:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tanmoy Bhattacharya
>Release:        gcc version 3.0 (thread model: posix)
>Organization:
>Environment:
SunOS 5.8 Generic_108528-06 sun4u sparc SUNW,Sun-Blade-100
configured by .../configure --prefix=... (i.e. all defaults)
>Description:
gcc -O -c example.c produces i.c.e as reported in synopsis.

I supply a trimmed down example.  Any further trimming
makes the problem either go away, or leaves a code that
uses variables without properly initializing them. 
>How-To-Repeat:
gcc -O -c example.i
>Fix:
Turn off optimization!!!!
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="example.i"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="example.i"

IyAxICJleGFtcGxlLmMiCmRvdWJsZSBsb2cxMCgpOwpzdHJ1Y3QgeHkgewogICAgaW50IHhsYmYs
IHh1YmY7CiAgICBpbnQgeHFmOwogICAgZG91YmxlICgqeGYpICgpOwogICAgZG91YmxlIHhsYiwg
eHViOwp9OwoKc3RydWN0IHogewogICAgZG91YmxlIGxiLCB1YiwgbXVsdCwgcXVhbnQ7Cn07Cgpz
ZXRsaW0ocCkKICAgIHJlZ2lzdGVyIHN0cnVjdCB4eSAqcDsKewogICAgZG91YmxlIHQsIGRlbHRh
LCBzaWduOwogICAgc3RydWN0IHogeiA9IHswfTsKICAgIGludCBsbWFya1s1MTJdLCBtYXJrWzUx
Ml07CiAgICBkb3VibGUgbGIsIHViOwogICAgaW50IGxiZiwgdWJmOwoKICAgIGxiID0gcC0+eGxi
OwogICAgdWIgPSBwLT54dWI7CiAgICBkZWx0YSA9IHViIC0gbGI7CiAgICBzaWduID0gMTsKICAg
IGxiZiA9IHAtPnhsYmY7CiAgICB1YmYgPSBwLT54dWJmOwogICAgaWYgKGRlbHRhIDwgMCkgewog
ICAgICAgIHNpZ24gPSAtMTsKICAgIH0KICAgIGlmIChwLT54ZiA9PSBsb2cxMCAmJiBsYiA+IDAg
JiYgdWIgPiBsYikgewogICAgICAgIHNldGxvZ2xpbShsYmYsIHViZiwgbGIsIHViLCAmeik7CiAg
ICB9CiAgICBpZiAoc2lnbiA+IDApIHsKICAgICAgICBwLT54dWIgPSB6LnViOwogICAgfQp9Cg==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]