public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/18745] New: compile fix for gcc/include/md5.h
@ 2004-11-30 21:03 markus at oberhumer dot com
  2004-11-30 21:04 ` [Bug bootstrap/18745] " markus at oberhumer dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: markus at oberhumer dot com @ 2004-11-30 21:03 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-11-30 21:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-30 21:03 [Bug bootstrap/18745] New: compile fix for gcc/include/md5.h markus at oberhumer dot com
2004-11-30 21:04 ` [Bug bootstrap/18745] " markus at oberhumer dot com
2004-11-30 21:07 ` pinskia at gcc dot gnu dot org
2004-11-30 21:08 ` pinskia at gcc dot gnu dot org
2004-11-30 21:18 ` markus at oberhumer dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).