optimization/6856: -O2 options causes Internal compiler error on hpux11.00

corrado.giacomini@trema.com corrado.giacomini@trema.com
Wed May 29 05:06:00 GMT 2002


>Number:         6856
>Category:       optimization
>Synopsis:       -O2 options causes Internal compiler error on hpux11.00
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 29 05:06:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Corrado Giacomini
>Release:        gcc version 3.1.1 20020517 (prerelease)
>Organization:
>Environment:
hppa2.0w-hp-hpux11.00
>Description:
In compiling the test.cc file using optimization options
I have the following error message, while compile properly if I take off the -O2 options.

The same code compile well in both cases on linux and 
on hpux as well using KCC compiler.

g++ -c -O2 test.cc
test.cc: In function `void __static_initialization_and_destruction_0(int,
   int)':
test.cc:16: Internal compiler error in simplify_gen_subreg, at simplify-rtx.c:
   2711
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Compile the attached test file using the following options:
g++ -c -O2  test.c
>Fix:

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

IyAxICJ0ZXN0LmNjIgojIDEgIjxidWlsdC1pbj4iCiMgMSAiPGNvbW1hbmQgbGluZT4iCiMgMSAi
dGVzdC5jYyIKY2xhc3MgQSB7CnB1YmxpYzoKICBpbmxpbmUgQShjb25zdCBjaGFyKmNvbnN0KiB1
c2VyX2V4Y25zKSB7fQogIHZpcnR1YWwgfkEoKSB7fQp9OwoKc3RhdGljIGNvbnN0IGNoYXIqIF9Q
RF9yZXBvSWQgPSAiIEJMQSBCTEEgIjsKCmNsYXNzIEIgOiBwdWJsaWMgQQp7CnB1YmxpYzoKICBp
bmxpbmUgQigpOiBBKF91c2VyX2V4bnMpIHt9CiAgc3RhdGljIGNvbnN0IGNoYXIqIGNvbnN0IF91
c2VyX2V4bnNbXTsKfTsKCmNvbnN0IGNoYXIqIGNvbnN0IEI6Ol91c2VyX2V4bnNbXSA9IHsKICBf
UERfcmVwb0lkCn07Cg==



More information about the Gcc-bugs mailing list