This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Build failure with 3.1 CVS on sparc-sun-solaris2.8


> With sources as of what date?  I believe I fixed this
> Monday afternoon (2002-02-04).

I'm having a similar problem in cc1, where the stack pointer is bogus upon
entry to a function.  The .i file is quite big, so I was hoping to
find time to come up with a smaller example, but since the problem is in
cc1, perhaps the following example will help to find it.

These are sources from

LAST_UPDATED: Wed Feb  6 08:12:45 UTC 2002

So it's after some of your recent fixes.

The source file is at

http://www.math.purdue.edu/~lucier/GNATS/GNATS-1/_meroon.i.gz

It seems that the frame pointer is bogus, too.

Brad

banach-5% gdb /pkgs/gcc-3.1v9/lib/gcc-lib/sparcv9-sun-solaris2.8/3.1/cc1
GNU gdb 5.1.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc64-sun-solaris2.8"...
(gdb) run -m64 -fPIC -O1 -fschedule-insns2 -fno-math-errno -fno-strict-aliasing -mcpu=ultrasparc -mtune=ultrasparc -Wall -W -Wno-unused _meroon.i
Starting program: /pkgs/gcc-3.1v9/lib/gcc-lib/sparcv9-sun-solaris2.8/3.1/cc1 -m64 -fPIC -O1 -fschedule-insns2 -fno-math-errno -fno-strict-aliasing -mcpu=ultrasparc -mtune=ultrasparc -Wall -W -Wno-unused _meroon.i
 {GC 5329k -> 1143k} ___H__20___meroon {GC 150229k -> 
Program received signal SIGSEGV, Segmentation fault.
0x1002aff90 in ggc_set_mark ()
(gdb) disassem
Dump of assembler code for function ggc_set_mark:
0x1002aff90 <ggc_set_mark>:     save  %sp, -2240, %sp
0x1002aff94 <ggc_set_mark+4>:   sethi  %hi(0), %o3
0x1002aff98 <ggc_set_mark+8>:   sethi  %hi(0x50b000), %o0
0x1002aff9c <ggc_set_mark+12>:  or  %o3, 1, %o1
0x1002affa0 <ggc_set_mark+16>:  sllx  %o1, 0x20, %o1
0x1002affa4 <ggc_set_mark+20>:  add  %o1, %o0, %o1
0x1002affa8 <ggc_set_mark+24>:  mov  -1, %o0
...
(gdb) info registers
g0             0x0      0
g1             0x0      0
g2             0x0      0
g3             0x0      0
g4             0xffffffff7f248a1c       -2161866212
g5             0x80ffe400       2164253696
g6             0x0      0
g7             0x0      0
o0             0x10a76a480      4470514816
o1             0x10018e10c      4296597772
o2             0x100    256
o3             0x40000  262144
o4             0x10a75a8c0      4470450368
o5             0x0      0
sp             0xffffffff7f7fdbb1       18446744071553670065
o7             0x10018e118      4296597784
l0             0x10675f700      4403361536
l1             0x0      0
l2             0x41     65
l3             0x10a765c88      4470496392
l4             0x0      0
l5             0x0      0
l6             0x0      0
l7             0x0      0
i0             0x10a772240      4470547008
i1             0x3c4c00 3951616
i2             0x178    376
i3             0x200000 2097152
i4             0x10a75a8c0      4470450368
i5             0x0      0
fp             0xffffffff7f7fec70       18446744071553674352
...


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