This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] libiberty: Bad UNSIGNED_64BIT_TYPE definition


Hello,

 There's a bug in libiberty/configure.ac since the change from 2004-04-22
-- UNSIGNED_64BIT_TYPE is set to $liberty_cv_uint64 (literally) and as a
result building in the directory fails.  It does not hurt without
rebuilding libiberty/configure as somehow the change escaped the
regeneration associated with the commit.

 Here's a fix.  Tested succesfully in a native build for mipsel-linux.

2004-04-26  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>

	* configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
	* configure: Regenerate.

 Please apply.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

gcc-3.5.0-20040423-libiberty-ac.patch
diff -up --recursive --new-file gcc-3.5.0-20040423.macro/libiberty/configure.ac gcc-3.5.0-20040423/libiberty/configure.ac
--- gcc-3.5.0-20040423.macro/libiberty/configure.ac	2004-04-23 01:28:48.000000000 +0000
+++ gcc-3.5.0-20040423/libiberty/configure.ac	2004-04-25 11:21:06.000000000 +0000
@@ -196,8 +196,8 @@ liberty_cv_uint64="unsigned long",
 liberty_cv_uint64="unsigned long long", liberty_cv_uint64=none)])])])
 AC_MSG_RESULT($liberty_cv_uint64)
 if test "$liberty_cv_uint64" != none; then
-  AC_DEFINE(UNSIGNED_64BIT_TYPE, $liberty_cv_uint64,
-            [Define to an unsigned 64-bit type available in the compiler.])
+  AC_DEFINE_UNQUOTED(UNSIGNED_64BIT_TYPE, $liberty_cv_uint64,
+                     [Define to an unsigned 64-bit type available in the compiler.])
 fi
 
 # Given the above check, we always have uintptr_t or a fallback


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]