This is the mail archive of the gcc-bugs@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: gcc accumulates instead of overlaying frame variables



On May 12, 2004, at 13:16, Michael LeBlanc wrote:


I am submitting this as instructed, as a last resort, because

(1) I can't figure out how to attach files in the bugzilla page; and
(2) I can't find a gccbug script in a 3.3 source package.

So here are the things from

gcc -v -save-temps x.c f.c

$ tar tvf gnu.tar
drwxrwxr-x leblanc/leblanc   0 2004-05-12 12:50:24 ./
-rw-rw-r-- leblanc/leblanc 152 2004-05-12 12:12:33 ./x.c
-rw-rw-r-- leblanc/leblanc  76 2004-05-12 12:10:54 ./f.c
-rw-rw-r-- leblanc/leblanc 207 2004-05-12 12:49:20 ./x.i
-rw-rw-r-- leblanc/leblanc 367 2004-05-12 12:49:20 ./x.s
-rw-rw-r-- leblanc/leblanc 134 2004-05-12 12:49:20 ./f.i
-rw-rw-r-- leblanc/leblanc 437 2004-05-12 12:49:20 ./f.s
-rw-rw-r-- leblanc/leblanc 2776 2004-05-12 12:49:20 ./stderr

See the source down below. SUN and Metaware believe, correctly, that the
two blocks overlay each other in the final stack frame. GCC adds them
together. It looks like this mistake has been around for quite a while.



This is not a bug per say really but it is bug 9997 anyways.


Thanks,
Andrew Pinski


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