forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tolerate TS 18661 (_Float32 et al) types
Because we currently claim GCC 4.2.1 support, but also define the TS 18661 floating point types, we confuse Glibc 2.27+, which checks for GCC >= 7.0 and otherwise defines the types itself. In the long run we should either upgrade our support to GCC 7.0 standard, or else stop providing these types and simply ask users interested in these types to use Glibc 2.27 or provide their own headers; in the meantime this workaround permits us to avoid crashing whenever math.h is included.
- Loading branch information
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
typedef float _Float32; | ||
typedef double _Float32x; | ||
typedef double _Float64; | ||
typedef long double _Float64x; | ||
typedef long double _Float128; | ||
typedef long double _Float128x; | ||
|
||
int main(int argc, char** argv) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CORE | ||
main.c | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^VERIFICATION SUCCESSFUL$ | ||
-- | ||
^warning: ignoring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters