changeset:   5498:eb4eeec50f25
tag:         tip
user:        Stephen J. Turnbull <stephen(a)xemacs.org>
date:        Tue May 03 01:43:36 2011 +0900
files:       src/ChangeLog src/dumper.c
description:
Remove static qualifier from pdump_file_try.
	Thanks to Hans de Graaff of Gentoo and Marcus Crestani.
diff -r 70af4098e14f -r eb4eeec50f25 src/ChangeLog
--- a/src/ChangeLog	Mon May 02 10:51:26 2011 +0100
+++ b/src/ChangeLog	Tue May 03 01:43:36 2011 +0900
@@ -1,3 +1,8 @@
+2011-05-03  Stephen J. Turnbull  <stephen(a)xemacs.org>
+
+	* dumper.c (pdump_file_try): Remove static qualifier.
+	Thanks to Hans de Graaff of Gentoo and Marcus Crestani.
+
 2011-05-01  Aidan Kehoe  <kehoea(a)parhasard.net>
 
 	* lread.c (parse_integer):
diff -r 70af4098e14f -r eb4eeec50f25 src/dumper.c
--- a/src/dumper.c	Mon May 02 10:51:26 2011 +0100
+++ b/src/dumper.c	Tue May 03 01:43:36 2011 +0900
@@ -2593,8 +2593,9 @@
 
 #endif /* !WIN32_NATIVE */
 
-
-static int
+/* This used to be static, but there seems to be a bug in the GCC 4.1.2
+   optimizer that clobbers exe_path. */
+int
 pdump_file_try (Wexttext *exe_path)
 {
   Wexttext *w = exe_path + wext_strlen (exe_path);
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches