emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/emacs-23 r99792: Add check for buggy versio


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-23 r99792: Add check for buggy version of GCC (Bug#6031).
Date: Sun, 02 May 2010 21:42:50 -0400
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 99792
committer: Chong Yidong <address@hidden>
branch nick: emacs-23
timestamp: Sun 2010-05-02 21:42:50 -0400
message:
  Add check for buggy version of GCC (Bug#6031).
  
  * configure.in: Add check for buggy version of GCC (Bug#6031).
  * configure: Regenerate
  * etc/NEWS: Minor tweak to problem description.
modified:
  ChangeLog
  configure
  configure.in
  etc/PROBLEMS
=== modified file 'ChangeLog'
--- a/ChangeLog 2010-04-02 02:22:17 +0000
+++ b/ChangeLog 2010-05-03 01:42:50 +0000
@@ -1,3 +1,7 @@
+2010-05-03  Chong Yidong  <address@hidden>
+
+       * configure.in: Add check for buggy version of GCC (Bug#6031).
+
 2010-01-31  Juri Linkov  <address@hidden>
 
        * .bzrignore: Add TAGS-LISP.

=== modified file 'configure'
--- a/configure 2010-04-20 01:29:37 +0000
+++ b/configure 2010-05-03 01:42:50 +0000
@@ -25559,6 +25559,16 @@
 CFLAGS="$REAL_CFLAGS"
 CPPFLAGS="$REAL_CPPFLAGS"
 
+## Hack to detect a buggy GCC version.
+if test "x$GCC" = xyes \
+   && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
+   && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
+   && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
+   { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling 
Emacs; see etc/PROBLEMS'." >&5
+$as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see 
etc/PROBLEMS'." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
 #### Find out which version of Emacs this is.
 version=`grep 'defconst[        ]*emacs-version' ${srcdir}/lisp/version.el \
         | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`

=== modified file 'configure.in'
--- a/configure.in      2010-04-20 01:29:37 +0000
+++ b/configure.in      2010-05-03 01:42:50 +0000
@@ -2600,6 +2600,14 @@
 CFLAGS="$REAL_CFLAGS"
 CPPFLAGS="$REAL_CPPFLAGS"
 
+## Hack to detect a buggy GCC version.
+if test "x$GCC" = xyes \
+   && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
+   && test x"`echo $CFLAGS | grep '\-O@<:@23@:>@'`" != x \
+   && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
+   AC_MSG_ERROR([GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.])
+fi
+
 #### Find out which version of Emacs this is.
 [version=`grep 'defconst[       ]*emacs-version' ${srcdir}/lisp/version.el \
         | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`]

=== modified file 'etc/PROBLEMS'
--- a/etc/PROBLEMS      2010-04-27 15:36:16 +0000
+++ b/etc/PROBLEMS      2010-05-03 01:42:50 +0000
@@ -167,7 +167,7 @@
 
 * Crash bugs
 
-** Emacs crashes when running in a terminal, if compiled with gcc-4.5.
+** Emacs crashes when running in a terminal, if compiled with GCC 4.5.0
 This version of GCC is buggy: see
 
   http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6031


reply via email to

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