public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/4959: gcc/s390 fails with more than 1024 function pointers
@ 2002-06-20 16:18 rth
0 siblings, 0 replies; 3+ messages in thread
From: rth @ 2002-06-20 16:18 UTC (permalink / raw)
To: edward.connell, gcc-bugs, gcc-prs, nobody, uweigand
Synopsis: gcc/s390 fails with more than 1024 function pointers
Responsible-Changed-From-To: unassigned->uweigand
Responsible-Changed-By: rth
Responsible-Changed-When: Thu Jun 20 16:12:37 2002
Responsible-Changed-Why:
Didn't you fix something like this for 3.1?
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4959
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: target/4959: gcc/s390 fails with more than 1024 function pointers
@ 2002-06-21 5:13 uweigand
0 siblings, 0 replies; 3+ messages in thread
From: uweigand @ 2002-06-21 5:13 UTC (permalink / raw)
To: edward.connell, gcc-bugs, gcc-prs, uweigand
Synopsis: gcc/s390 fails with more than 1024 function pointers
State-Changed-From-To: open->closed
State-Changed-By: uweigand
State-Changed-When: Fri Jun 21 05:08:43 2002
State-Changed-Why:
http://gcc.gnu.org/ml/gcc-patches/2002-06/msg00999.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4959
^ permalink raw reply [flat|nested] 3+ messages in thread
* target/4959: gcc/s390 fails with more than 1024 function pointers
@ 2001-11-21 8:36 edward.connell
0 siblings, 0 replies; 3+ messages in thread
From: edward.connell @ 2001-11-21 8:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 4959
>Category: target
>Synopsis: gcc/s390 fails with more than 1024 function pointers
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 27 10:16:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: edward.connell@sas.com
>Release: gcc version 2.95.3 20010315 (release)
>Organization:
>Environment:
Linux/s390 native and cross-build
>Description:
gcc fails to compile a file with more than 1024 function pointers with "/var/tmp/cc6ojHFY.s:2073: Error: operand out of range (4096 not between 0 and 4095)". Gcc is trying to use a relative offset but the distance gets too large. Imagine the following with N=1025.
****************
int i0();
int i1();
int i2();
int main() {
int (*funcs[3])();
funcs[0]=i0;
funcs[1]=i1;
funcs[2]=i2;
return 0;
}
**************
This program will generate a .c file which fails to compile on s390.
**************
#define NUM 1025
int main()
{
int i;
for (i=0; i<NUM; i++) {
printf("int i%d();\n", i);
}
printf("\nint main() {\n int (*funcs[%d])();\n\n", NUM);
for (i=0; i<NUM; i++) {
printf(" funcs[%d]=i%d;\n", i, i);
}
printf(" return 0;\n}\n");
return 0;
}
**************
>How-To-Repeat:
#define NUM 1025
int main()
{
int i;
for (i=0; i<NUM; i++) {
printf("int i%d();\n", i);
}
printf("\nint main() {\n int (*funcs[%d])();\n\n", NUM);
for (i=0; i<NUM; i++) {
printf(" funcs[%d]=i%d;\n", i, i);
}
printf(" return 0;\n}\n");
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-06-21 12:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-20 16:18 target/4959: gcc/s390 fails with more than 1024 function pointers rth
-- strict thread matches above, loose matches on Subject: below --
2002-06-21 5:13 uweigand
2001-11-21 8:36 edward.connell
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).