summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-05-13 23:06:45 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-05-13 23:06:45 (GMT)
commit9c1fa1d37cd301d6f7c43624d7ce88010d759402 (patch)
tree1dcd8d9c26d8eb4dee1f7566ee5f7387c2cb346a
parent23aa825f5ef39cec98434140551406c788fea9bc (diff)
downloadhdf5-9c1fa1d37cd301d6f7c43624d7ce88010d759402.zip
hdf5-9c1fa1d37cd301d6f7c43624d7ce88010d759402.tar.gz
hdf5-9c1fa1d37cd301d6f7c43624d7ce88010d759402.tar.bz2
[svn-r18800] Description:
Added note about use of volatile for variables. Added blurb to release notes about fixing strict-aliasing problems. Tested on: None - trivial change to comment.
-rw-r--r--release_docs/RELEASE.txt3
-rw-r--r--src/H5detect.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt
index 5535ad1..e672e5b 100644
--- a/release_docs/RELEASE.txt
+++ b/release_docs/RELEASE.txt
@@ -118,6 +118,9 @@ Bug Fixes since HDF5-1.8.4
Configuration
-------------
+ - Fixed various "strict aliasing" problems, allowing higher levels
+ of compiler optimization (in particular, allowing '-O3' to work
+ with recent versions of GCC). QAK - 2010/04/26
- Fixed a bug where fractal heap IDs for attributes and shared object
header messages could be incorrectly encoded in the file for files
created on big-endian platforms. Please see: <put URL here> if you
diff --git a/src/H5detect.c b/src/H5detect.c
index 4490fb5..1eaaac0 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -279,6 +279,9 @@ precision (detected_t *d)
* absence of implicit mantissa bit, and exponent bias and
* initializes a detected_t structure with those properties.
*
+ * Note: 'volatile' is used for the variables below to prevent the
+ * compiler from optimizing them away.
+ *
* Return: void
*
* Programmer: Robb Matzke