[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ask about bison-3.0.5
From: |
Akim Demaille |
Subject: |
Re: ask about bison-3.0.5 |
Date: |
Tue, 26 Nov 2019 08:07:19 +0100 |
Hi!
> Le 23 nov. 2019 à 09:24, Akim Demaille <address@hidden> a écrit :
>
> [...]
> Your problem appears to be that you have a file named 'exception' which is an
> ELF executable, in your compiler's include path. It seems to be in the
> directory of the test, which is weird.
I should have looked at this more carefully: indeed it's in that directory,
because that's where we have put it...
Sorry about this. I'm installing the following fix. Cheers!
commit 28369ecb5d4184f4bed8cccd9e8e018a3d985c75
Author: Akim Demaille <address@hidden>
Date: Tue Nov 26 07:04:56 2019 +0100
tests: avoid creating files whose name collide with standard headers
Having a file named "exception" is risky: the compiler might use that
file in #include.
Reported by 马俊 <address@hidden>.
* tests/local.at (AT_SKIP_IF_EXCEPTION_SUPPORT_IS_POOR): Generate
'exceptions', not 'exception'.
diff --git a/THANKS b/THANKS
index 0a746010..909192ec 100644
--- a/THANKS
+++ b/THANKS
@@ -205,8 +205,9 @@ Wwp address@hidden
xolodho address@hidden
Yuichiro Kaneko address@hidden
Zack Weinberg address@hidden
-長田偉伸 address@hidden
江 祖铭 address@hidden
+長田偉伸 address@hidden
+马俊 address@hidden
Many people are not named here because we lost track of them. We
thank them! Please, help us keeping this list up to date.
diff --git a/tests/local.at b/tests/local.at
index 43de4abc..152c462a 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -1199,7 +1199,7 @@ m4_ifval([$2],
# Check that we can expect exceptions to be handled properly.
# GCC 4.3 and 4.4 fail https://trac.macports.org/ticket/40853.
m4_define([AT_SKIP_IF_EXCEPTION_SUPPORT_IS_POOR],
-[AT_DATA_SOURCE([exception.cc],
+[AT_DATA_SOURCE([exceptions.cc],
[[#include <iostream>
#include <stdexcept>
@@ -1230,10 +1230,9 @@ int main ()
return 1;
}
]])
-AT_COMPILE_CXX([exception])
-# The "empty" quadrigraph is to protect from cfg.mk's
-# sc_at_parser_check.
-AT_CHECK([@&t@./exception || exit 77], [0], [], [ignore])
+AT_COMPILE_CXX([exceptions])
+# The "empty" quadrigraph is to protect from cfg.mk's sc_at_parser_check.
+AT_CHECK([@&t@./exceptions || exit 77], [0], [], [ignore])
])