This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/18745] New: compile fix for gcc/include/md5.h
- From: "markus at oberhumer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2004 21:03:00 -0000
- Subject: [Bug bootstrap/18745] New: compile fix for gcc/include/md5.h
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc/include/md5.h currently does not compile under ILP64.
This tiny patch will fix this:
--- md5.h 14 Mar 2001 19:44:38 -0000 1.3
+++ md5.h 30 Nov 2004 20:59:32 -0000
@@ -58,9 +58,13 @@
# if LONG_MAX == INT_MAX_32_BITS
typedef unsigned long md5_uint32;
# else
- /* The following line is intended to evoke an error.
- Using #error is not portable enough. */
- "Cannot determine unsigned 32-bit data type."
+# if defined(__GNUC__) && (__GNUC__ >= 3) && (__INT_MAX__ > 2147483647)
+ typedef unsigned int md5_uint32 __attribute__ ((__mode__ (__SI__)));
+# else
+ /* The following line is intended to evoke an error.
+ Using #error is not portable enough. */
+ "Cannot determine unsigned 32-bit data type."
+# endif
# endif
# endif
# endif
--
Summary: compile fix for gcc/include/md5.h
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: markus at oberhumer dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18745