From 73d605b0f759a2ff9f859f78f76098dcdb290d37 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 29 Jan 2013 17:38:15 -0500 Subject: Detect platforms where memset(0) doesn't set doubles to 0.0. This is allowed by the C statndard, which permits you to represent doubles any way you like, but in practice we have some code that assumes that memset() clears doubles in structs. Noticed as part of 7802 review; see 8081 for more info. --- changes/double-0-check | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 changes/double-0-check (limited to 'changes') diff --git a/changes/double-0-check b/changes/double-0-check new file mode 100644 index 000000000..74554cd27 --- /dev/null +++ b/changes/double-0-check @@ -0,0 +1,8 @@ + o Build improvements (bizarre platform detection): + - Try to detect it if we are ever building on a platform where + memset(...,0,...) does not set the value of a double to 0.0. Such + platforms are permitted by the C standard, though in practice + they're pretty rare (since IEEE 754 is nigh-ubiquitous). We don't + currently support them, but it's better to detect them and fail + than to perform erroneously. + -- cgit v1.2.3