Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/libiberty mknative tries to build thi...
details: https://anonhg.NetBSD.org/src/rev/72ae7c76d75d
branches: trunk
changeset: 460462:72ae7c76d75d
user: christos <christos%NetBSD.org@localhost>
date: Thu Oct 24 03:31:38 2019 +0000
description:
mknative tries to build this file with c++ and c++ does not like types
inside offsetof() (a language limitation).
diffstat:
external/gpl3/gcc/dist/libiberty/sha1.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r cb4bf01f403e -r 72ae7c76d75d external/gpl3/gcc/dist/libiberty/sha1.c
--- a/external/gpl3/gcc/dist/libiberty/sha1.c Thu Oct 24 03:26:06 2019 +0000
+++ b/external/gpl3/gcc/dist/libiberty/sha1.c Thu Oct 24 03:31:38 2019 +0000
@@ -229,7 +229,7 @@
if (len >= 64)
{
#if !_STRING_ARCH_unaligned
-# ifdef __clang__
+# if defined(__clang__) || defined(__GNUC__)
# define alignof(type) __alignof__(type)
# else
# define alignof(type) offsetof (struct { char c; type x; }, x)
Home |
Main Index |
Thread Index |
Old Index