public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/14845] New: [tree-ssa] Alpha ev56 bootstrap error
@ 2004-04-04 16:39 steven at gcc dot gnu dot org
2004-04-04 16:49 ` [Bug target/14845] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-04-04 16:39 UTC (permalink / raw)
To: gcc-bugs
I get the following error on an ev56 for the following
test case, for nonoptimizing and optimizing compiles:
void
foobar (void)
{
exit (0);
}
int
main(void)
{
foobar ();
}
Beta:/usr/src/gcctest/build/gcc/gcc/tmp # ../cc1 20000113-1.c
Beta:/usr/src/gcctest/build/gcc/gcc/tmp # gcc 20000113-1.s
Beta:/usr/src/gcctest/build/gcc/gcc/tmp # ./a.out
Illegal instruction
I need to use cc1, then the system gcc because I also get
this error for xgcc :-)
Assembly look as follows:
.set noreorder
.set volatile
.set noat
.set nomacro
.text
.align 2
.globl foobar
.ent foobar
foobar:
.frame $15,16,$26,0
.mask 0x4008000,-16
ldah $29,0($27) !gpdisp!1
lda $29,0($29) !gpdisp!1
$foobar..ng:
lda $30,-16($30)
stq $26,0($30)
stq $15,8($30)
mov $30,$15
.prologue 1
mov $31,$16
ldq $27,exit($29) !literal!2
jsr $26,($27),exit !lituse_jsr!2
ldah $29,0($26) !gpdisp!3
lda $29,0($29) !gpdisp!3
.end foobar
.align 2
.globl main
.ent main
main:
.frame $15,16,$26,0
.mask 0x4008000,-16
ldah $29,0($27) !gpdisp!4
lda $29,0($29) !gpdisp!4
$main..ng:
lda $30,-16($30)
stq $26,0($30)
stq $15,8($30)
mov $30,$15
.prologue 1
bsr $26,foobar !samegp
mov $15,$30
ldq $26,0($30)
ldq $15,8($30)
lda $30,16($30)
ret $31,($26),1
.end main
.section .note.GNU-stack,"",@progbits
.ident "GCC: (GNU) 3.5-tree-ssa 20040404 (merged 20040331)"
This also prevents me from being able to bootstrap on this machine.
--
Summary: [tree-ssa] Alpha ev56 bootstrap error
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: steven at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,rth at gcc dot gnu dot
org
GCC build triplet: alphaev56-unknown-linux-gnu
GCC host triplet: alphaev56-unknown-linux-gnu
GCC target triplet: alphaev56-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14845
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/14845] [tree-ssa] Alpha ev56 bootstrap error
2004-04-04 16:39 [Bug target/14845] New: [tree-ssa] Alpha ev56 bootstrap error steven at gcc dot gnu dot org
@ 2004-04-04 16:49 ` pinskia at gcc dot gnu dot org
2004-04-05 17:51 ` rth at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-04 16:49 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14845
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/14845] [tree-ssa] Alpha ev56 bootstrap error
2004-04-04 16:39 [Bug target/14845] New: [tree-ssa] Alpha ev56 bootstrap error steven at gcc dot gnu dot org
2004-04-04 16:49 ` [Bug target/14845] " pinskia at gcc dot gnu dot org
@ 2004-04-05 17:51 ` rth at gcc dot gnu dot org
2004-04-05 19:38 ` steven at gcc dot gnu dot org
2004-04-05 22:42 ` steven at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-04-05 17:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-04-05 17:51 -------
There is nothing in the assembly you posted that's illegal for ev56.
I'm 99% certain that what you've done is configure your bootstrap
compiler for ev6 and the sigill comes from the crt files that you're
linking in.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14845
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/14845] [tree-ssa] Alpha ev56 bootstrap error
2004-04-04 16:39 [Bug target/14845] New: [tree-ssa] Alpha ev56 bootstrap error steven at gcc dot gnu dot org
2004-04-04 16:49 ` [Bug target/14845] " pinskia at gcc dot gnu dot org
2004-04-05 17:51 ` rth at gcc dot gnu dot org
@ 2004-04-05 19:38 ` steven at gcc dot gnu dot org
2004-04-05 22:42 ` steven at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-04-05 19:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2004-04-05 19:37 -------
That is not what the build log says:
creating cache ./config.cache
checking host system type... alphaev56-unknown-linux-gnu
checking target system type... alphaev56-unknown-linux-gnu
checking build system type... alphaev56-unknown-linux-gnu
Anyway...
$ ./cc1 --version
GNU C version 3.5-tree-ssa 20040404 (merged 20040331)
(alphaev56-unknown-linux-gnu)
compiled by GNU C version 3.2.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
And finally from the buildlog:
/usr/src/gcctest/build/gcc/gcc/cc1 -quiet -v -I. -I. -I/abuild/stevenb/
tree-ssa-branch/gcc -I/abuild/stevenb/tree-ssa-branch/gcc/. -I/abuild/stevenb/
tree-ssa-branch/gcc/../include -I/abuild/stevenb/tree-ssa-branch/gcc/../
libbanshee/libcompat -I/abuild/stevenb/tree-ssa-branch/gcc/../libbanshee -I/
abuild/stevenb/tree-ssa-branch/gcc/../libbanshee/points-to -iprefix /usr/src/
gcctest/build/gcc/gcc/../lib/gcc/alphaev56-unknown-linux-gnu/3.5-tree-ssa/
-isystem /usr/src/gcctest/build/gcc/gcc/include -isystem /usr/src/gcctest/
install/gcc-base/alphaev56-unknown-linux-gnu/bin/include -isystem /usr/src/
gcctest/install/gcc-base/alphaev56-unknown-linux-gnu/lib/include -DIN_GCC
-DCRT_BEGIN -isystem /usr/src/gcctest/install/gcc-base/
alphaev56-unknown-linux-gnu/include -isystem /usr/src/gcctest/install/
gcc-base/alphaev56-unknown-linux-gnu/sys-include -isystem ./include /abuild/
stevenb/tree-ssa-branch/gcc/crtstuff.c -quiet -dumpbase crtstuff.c -mcpu=ev56
-auxbase-strip crtbegin.o -g0 -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -version -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time -o /tmp/ccmQlRCE.s
Note the -mcpu=ev56.
The bootstrap compiler is GCC 3.2:
$ /usr/lib/gcc-lib/alpha-suse-linux/3.2/cc1 --version
GNU C version 3.2 (alpha-suse-linux)
compiled by GNU C version 3.2.
GNU CPP version 3.2 (cpplib) (Alpha GNU/Linux for ELF)
The funny thing is that cc1 does run, but xgcc does not. Is that
why you think the problem is related to the crt files?
Should I perhaps send you the crt .s files, or can I grep for some
instruction that shouldn't be there?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14845
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/14845] [tree-ssa] Alpha ev56 bootstrap error
2004-04-04 16:39 [Bug target/14845] New: [tree-ssa] Alpha ev56 bootstrap error steven at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-04-05 19:38 ` steven at gcc dot gnu dot org
@ 2004-04-05 22:42 ` steven at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-04-05 22:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2004-04-05 22:42 -------
According to rth, the bsr branch in main should point to foobar+8, but the
binutils currently installed on my machine misassemble/mislink (?) the !samegp
relocation.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14845
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-04-05 22:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-04 16:39 [Bug target/14845] New: [tree-ssa] Alpha ev56 bootstrap error steven at gcc dot gnu dot org
2004-04-04 16:49 ` [Bug target/14845] " pinskia at gcc dot gnu dot org
2004-04-05 17:51 ` rth at gcc dot gnu dot org
2004-04-05 19:38 ` steven at gcc dot gnu dot org
2004-04-05 22:42 ` steven at gcc dot gnu dot org
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).