NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/53709: cannot build evbmips64-eb tools with gcc using clang
The following reply was made to PR bin/53709; it has been noted by GNATS.
From: coypu%sdf.org@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/53709: cannot build evbmips64-eb tools with gcc using clang
Date: Sun, 11 Nov 2018 19:10:50 +0000
As for why we have a macro getc:
https://nxr.netbsd.org/xref/src/include/stdio.h#470
And this gets used for C++, which is probably not the author's
intentions.
Perhaps this is progress towards a correct patch:
Index: stdio.h
===================================================================
RCS file: /cvsroot/src/include/stdio.h,v
retrieving revision 1.97
diff -u -r1.97 stdio.h
--- stdio.h 17 Mar 2016 00:42:49 -0000 1.97
+++ stdio.h 11 Nov 2018 19:10:42 -0000
@@ -467,7 +467,7 @@
else
return __swbuf(_c, _p);
}
-#else
+#elif defined(__STDC__)
/*
* This has been tuned to generate reasonable code on the vax using pcc.
*/
Home |
Main Index |
Thread Index |
Old Index