This is the mail archive of the gcc-bugs@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]

c/2386: gcc -mcpu=ultrasparc SIGSEGV's on some code involving long long and pointers.



>Number:         2386
>Category:       c
>Synopsis:       gcc -mcpu=ultrasparc SIGSEGV's on some code involving long long and pointers.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 25 12:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Henrik Grubbström <grubba@roxen.com>
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
$ uname -svrmpi
SunOS 5.8 Generic_108528-04 sun4u sparc SUNW,Ultra-80
>Description:
gcc dies with SIGSEGV when compiling the attached file with -mcpu=ultrasparc.
>How-To-Repeat:
$ gcc -mcpu=ultrasparc -c foo.c -o foo.o
gcc: Internal compiler error: program cc1 got fatal signal 11
>Fix:
Rewriting the subtraction as:
	stack_top -= lim.rlim_cur;
seems to work around the bug.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-c-code; name="foo.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.c"

CnR5cGVkZWYJdW5zaWduZWQgbG9uZyBsb25nCXVfbG9uZ2xvbmdfdDsKdHlwZWRlZiB1X2xvbmds
b25nX3QJcmxpbTY0X3Q7CnN0cnVjdCBybGltaXQ2NCB7CglybGltNjRfdAlybGltX2N1cjsJIAoJ
cmxpbTY0X3QJcmxpbV9tYXg7CSAKfTsKZXh0ZXJuIGludCBnZXRybGltaXQ2NCAoaW50LCBzdHJ1
Y3QgcmxpbWl0NjQgICopOwpleHRlcm4gY2hhciAqc3RhY2tfdG9wOwppbnQgbWFpbiAoaW50IGFy
Z2MsIGNoYXIgKiphcmd2KQp7CiAgewogICAgc3RydWN0IHJsaW1pdDY0ICBsaW07CiAgICBpZigh
IGdldHJsaW1pdDY0ICgzICwgJmxpbSkpCiAgICB7CiAgICAgIHN0YWNrX3RvcCArPSAtMSAgKiBs
aW0ucmxpbV9jdXI7CiAgICB9CiAgfQp9Cg==


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