public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/4070: Bad switch code for PowerPC gcj -fPIC
@ 2001-08-22 14:49 green
0 siblings, 0 replies; 2+ messages in thread
From: green @ 2001-08-22 14:49 UTC (permalink / raw)
To: apbianco, gcc-bugs, gcc-prs, green, green, java-prs, nobody
Synopsis: Bad switch code for PowerPC gcj -fPIC
Responsible-Changed-From-To: unassigned->green
Responsible-Changed-By: green
Responsible-Changed-When: Wed Aug 22 14:49:00 2001
Responsible-Changed-Why:
I'm closing this.
State-Changed-From-To: open->closed
State-Changed-By: green
State-Changed-When: Wed Aug 22 14:49:00 2001
State-Changed-Why:
This is an optimization problem I was able to reproduce with C code. I've refiled this case with some C code instead. See optimization/4085.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4070&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
* java/4070: Bad switch code for PowerPC gcj -fPIC
@ 2001-08-21 8:46 green
0 siblings, 0 replies; 2+ messages in thread
From: green @ 2001-08-21 8:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 4070
>Category: java
>Synopsis: Bad switch code for PowerPC gcj -fPIC
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Tue Aug 21 08:46:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:
>Release: 3.1 20010811 (experimental)
>Organization:
>Environment:
System: Linux peach.cygnus.co.uk 2.2.17pre20-ben3 #2 Wed Sep 6 01:14:01 CEST 2000 ppc unknown
Architecture: ppc
host: powerpc-unknown-linux-gnu
build: powerpc-unknown-linux-gnu
target: powerpc-unknown-linux-gnu
configured with: /peach/green/net/trunk/gcc/configure --prefix=/peach/green/net/trunk/i --enable-threads --enable-language=c,c++,java --enable-languages=c,c++,java --disable-multilibs --disable-multilib : (reconfigured) : (reconfigured) : (reconfigured) : (reconfigured)
>Description:
Compiling the following with -fPIC -O2 produces code which
refers to non-existant labels. Specifically, .L7 and .8 do not exist.
This is preventing a shared version of xerces from building and
running.
.section .rodata
.align 4
.align 2
.L10:
.long .L8-.L10
.long .L8-.L10
.long .L8-.L10
.long .L8-.L10
.long .L8-.L10
.long .L7-.L10
.long .L8-.L10
public class DTDGrammar {
public String addAttDef(int attType)
throws Exception {
// find the dataTypeValidator associcated with this attType
String attTypeString = "";
switch (attType) {
case 0:
attTypeString = "string";
case 1:
attTypeString = "ENTITY";;
case 2:
attTypeString = "ENUMERATION";;
case 3:
attTypeString = "ID";;
case 4:
attTypeString = "IDREF";;
case 5:
attTypeString = "NMTOKEN";;
case 6:
attTypeString = "NOTATION";;
default:
;
}
return attTypeString;
}
}
>How-To-Repeat:
Compile the above code with -fPIC -O2 (-O2 may not be necessary).
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-22 14:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-22 14:49 java/4070: Bad switch code for PowerPC gcj -fPIC green
-- strict thread matches above, loose matches on Subject: below --
2001-08-21 8:46 green
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).