Search
lxdream.org :: lxdream/acinclude.m4 :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename acinclude.m4
changeset 1198:407659e01ef0
prev1147:e04e4af64626
next1199:62d0a21fac1c
author Nathan Keynes <nkeynes@lxdream.org>
date Fri Dec 16 10:08:45 2011 +1000 (7 years ago)
permissions -rw-r--r--
last change Add volatile qualifier to return-address frobbing - works around optimizer
bug in GCC versions after 4.2
file annotate diff log raw
1.1 --- a/acinclude.m4 Mon Nov 08 22:10:47 2010 +1000
1.2 +++ b/acinclude.m4 Fri Dec 16 10:08:45 2011 +1000
1.3 @@ -51,7 +51,7 @@
1.4 int __attribute__((noinline)) foo( int arg, void *exc )
1.5 {
1.6 if( arg < 2 ) {
1.7 - *(((void **)__builtin_frame_address(0))+1) = exc;
1.8 + *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
1.9 }
1.10 return 0;
1.11 }
.