diff options
author | Chris White <chriswhite@gentoo.org> | 2004-12-30 16:20:27 +0000 |
---|---|---|
committer | Chris White <chriswhite@gentoo.org> | 2004-12-30 16:20:27 +0000 |
commit | 7a0d6aef948d3ff254ea9500b571913a02c369aa (patch) | |
tree | 8c76fe16b578050495118a2314780282e9a16464 /net-www/mozilla/files | |
parent | removed acl and bmp (diff) | |
download | historical-7a0d6aef948d3ff254ea9500b571913a02c369aa.tar.gz historical-7a0d6aef948d3ff254ea9500b571913a02c369aa.tar.bz2 historical-7a0d6aef948d3ff254ea9500b571913a02c369aa.zip |
Sizzle, bye bye stackgrowth bug.. hello +debug working :D.
Diffstat (limited to 'net-www/mozilla/files')
-rw-r--r-- | net-www/mozilla/files/mozilla-1.7.5-stackgrowth.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net-www/mozilla/files/mozilla-1.7.5-stackgrowth.patch b/net-www/mozilla/files/mozilla-1.7.5-stackgrowth.patch new file mode 100644 index 000000000000..af226b28ed9c --- /dev/null +++ b/net-www/mozilla/files/mozilla-1.7.5-stackgrowth.patch @@ -0,0 +1,37 @@ +--- js/src/jscpucfg.c 15 Nov 2003 00:10:56 -0000 3.21 ++++ js/src/jscpucfg.c 22 Oct 2004 05:45:36 -0000 +@@ -153,19 +153,34 @@ static int Log2(unsigned int n) + */ + static void BitsPerByte(void) + { + bpb = 8; + } + ++#ifdef __GNUC__ ++#if (__GNUC__ > 2) ++__attribute__((noinline)) ++#endif ++static int StackGrowthDirection(int *dummy1addr) ++{ ++ int *dummy2 = alloca (sizeof (int)); ++ ++ return (dummy2 < dummy1addr) ? -1 : 1; ++} ++ ++#else /* __GNUC__ */ ++ + static int StackGrowthDirection(int *dummy1addr) + { + int dummy2; + + return (&dummy2 < dummy1addr) ? -1 : 1; + } + ++#endif /* __GNUC__ */ ++ + int main(int argc, char **argv) + { + int sizeof_char, sizeof_short, sizeof_int, sizeof_int64, sizeof_long, + sizeof_float, sizeof_double, sizeof_word, sizeof_dword; + int bits_per_int64_log2, align_of_short, align_of_int, align_of_long, + align_of_int64, align_of_float, align_of_double, align_of_pointer, |