This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/4516: sh-unknown-linux-gnu: big jump table
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/4516: sh-unknown-linux-gnu: big jump table
- From: NIIBE Yutaka <gniibe at m17n dot org>
- Date: 10 Oct 2001 10:51:00 -0000
- Reply-To: NIIBE Yutaka <gniibe at m17n dot org>
>Number: 4516
>Category: c
>Synopsis: sh-unknown-linux-gnu: big jump table
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 10 03:56:30 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: NIIBE Yutaka <gniibe@m17n.org>
>Release: 3.0.1 or mainline
>Organization:
>Environment:
sh-unknown-linux-gnu
Debain GNU/Linux (unstable)
>Description:
"make bootstrap" fails.
The compiler miscomiples expr.c and fold-const.c with -O0.
With -mbigtable it does not miscompile.
With -ON (N>=1), it does not miscompile.
It does miscompile because there's no validation for value of jump table.
When it's bigger than 32767, at runtime, it goes completly
different place.
>How-To-Repeat:
"make bootstrap"
>Fix:
I don't have, for now.
Default to -mbigtable?
>Release-Note:
>Audit-Trail:
>Unformatted: