]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cobol: Do not include <cmath> (no longer needed)
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 20 Mar 2025 17:08:57 +0000 (17:08 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 28 Mar 2025 06:51:11 +0000 (06:51 +0000)
Several of enumerators in parse.y conflict with ones declared in at
least some versions of <cmath> .. e.g. "OVERFLOW".  The header is no
longer needed since the FE is not trying to do host arithmetic.

gcc/cobol/ChangeLog:

* cobol-system.h: Remove <cmath>.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/cobol/cobol-system.h

index 81529bd3a67aeab28ea96dfe1f61a2fc77b6eb0e..ff9583530e25aaa64ef35dea4929c5c766c56064 100644 (file)
@@ -53,7 +53,6 @@
 #include <deque>
 #include <numeric>
 #include <limits>
-#include <cmath>
 
 #include <unordered_map>
 #include <unordered_set>