bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building the GNU/Hurd glibc with GCC 4.1, problem with `__builtin_frame_


From: Thomas Schwinge
Subject: Building the GNU/Hurd glibc with GCC 4.1, problem with `__builtin_frame_address'
Date: Mon, 20 Nov 2006 11:50:44 +0100
User-agent: Mutt/1.5.6+20040907i

Hello!

There is a problem when building glibc for GNU/Hurd with GCC 4.1, see
<http://savannah.gnu.org/bugs/?17647>.  This is due to a change in the
behavior of `__builtin_frame_address' in GCC 4.1:

#v+
$ cat test.c 
#include <stdio.h>

int main (int argc, ...)
{
  printf ("fa + 2\t= %p\n&argc\t= %p\n",
          (int *) __builtin_frame_address (0) + 2, &argc);
}
$ for v in 3.3 3.4 4.0 4.1; do echo GCC" $v" && gcc-"$v" -O0 test.c && ./a.out; 
done
GCC 3.3
fa + 2  = 0x101ad80
&argc   = 0x101ad80
GCC 3.4
fa + 2  = 0x101ad80
&argc   = 0x101ad80
GCC 4.0
fa + 2  = 0x101ad80
&argc   = 0x101ad80
GCC 4.1
fa + 2  = 0x101ad6c
&argc   = 0x101ad80
#v-

How can this be explained?


Regards,
 Thomas

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]