[Nasm-bugs] [Bug 3392591] New: PA_CHECK_BAD_STDC_INLINE doesn't detect old gcc properly
noreply-nasm at gorcunov.org
noreply-nasm at gorcunov.org
Fri Aug 9 02:44:59 PDT 2019
https://bugzilla.nasm.us/show_bug.cgi?id=3392591
Bug ID: 3392591
Summary: PA_CHECK_BAD_STDC_INLINE doesn't detect old gcc
properly
Product: NASM
Version: unspecified
Hardware: All
OS: All
Status: OPEN
Severity: normal
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: sezeroz at gmail.com
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: Built from git using configure
PA_CHECK_BAD_STDC_INLINE doesn't detect old gcc properly. E.g.:
checking if gcc34 -std=gnu99 supports C99 external inlines... yes
which gcc34 clearly does not, and that results in link a failure
due to multiple definitions.
Maybe something like the following is needed? (Works for me (TM)
with gcc3.4, gcc4.9, clang3.4):
diff --git a/autoconf/m4/pa_check_bad_stdc_inline.m4
b/autoconf/m4/pa_check_bad_stdc_inline.m4
index 267a8ce..26c4120 100644
--- a/autoconf/m4/pa_check_bad_stdc_inline.m4
+++ b/autoconf/m4/pa_check_bad_stdc_inline.m4
@@ -13,6 +13,9 @@ AC_INCLUDES_DEFAULT
#ifdef __GNUC_GNU_INLINE__
# error "Using gnu inline standard"
#endif
+#if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__)
+# error "Using gnu inline standard"
+#endif
inline int foo(int x)
{
--
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
More information about the Nasm-bugs
mailing list