From 59a8b10b881b33a9d47243c16600be18e697a68c Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Mon, 5 Aug 2019 07:32:01 -0500 Subject: Merge fixes and code reconciliation wit develop --- MANIFEST | 1 + bin/genparser | 2 +- bin/make_err | 4 +- bin/snapshot | 12 +- c++/test/CMakeVFDTests.cmake | 80 ++-- config/cmake/HDFCompilerFlags.cmake | 17 +- config/conclude.am | 2 +- config/gnu-fflags | 154 ++++++-- config/gnu-flags | 491 ++++++++--------------- fortran/src/H5_f.c | 4 - test/big.c | 9 + test/cache_image.c | 7 +- test/error_test.c | 9 + test/fheap.c | 84 ++-- test/file_image.c | 9 + test/gheap.c | 324 +++++++-------- test/h5test.c | 52 ++- test/h5test.h | 2 +- test/mf.c | 58 +-- test/swmr.c | 168 ++++---- test/tattr.c | 352 +++++++++++------ test/tgenprop.c | 4 +- test/th5s.c | 64 ++- test/titerate.c | 3 +- test/trefer.c | 14 +- test/tselect.c | 676 +++++++++++++++----------------- test/tsohm.c | 260 ++++++------ test/tunicode.c | 2 +- test/vds_env.c | 20 +- testpar/CMakeVFDTests.cmake | 68 ++-- tools/src/h5ls/h5ls.c | 54 +-- tools/src/h5stat/h5stat.c | 54 +-- tools/test/h5dump/CMakeTests.cmake | 10 + tools/test/h5dump/CMakeVFDTests.cmake | 91 +++++ tools/test/h5dump/h5dumpgentest.c | 12 +- tools/test/h5repack/CMakeTests.cmake | 27 +- tools/test/h5repack/CMakeVFDTests.cmake | 95 +++-- 37 files changed, 1763 insertions(+), 1532 deletions(-) create mode 100644 tools/test/h5dump/CMakeVFDTests.cmake diff --git a/MANIFEST b/MANIFEST index 6b9dde1..013b635 100644 --- a/MANIFEST +++ b/MANIFEST @@ -3332,6 +3332,7 @@ ./tools/test/h5dump/CMakeTestsPBITS.cmake ./tools/test/h5dump/CMakeTestsXML.cmake ./tools/test/h5dump/CMakeTestsVDS.cmake +./tools/test/h5dump/CMakeVFDTests.cmake ./tools/src/h5format_convert/CMakeLists.txt ./tools/test/h5format_convert/CMakeLists.txt ./tools/test/h5format_convert/CMakeTests.cmake diff --git a/bin/genparser b/bin/genparser index 8cf6ec2..e6aee5b 100755 --- a/bin/genparser +++ b/bin/genparser @@ -218,7 +218,7 @@ perl -0777 -pi -e 's/int H5LTyyparse/hid_t H5LTyyparse/igs' ${path_to_hl_src}/H5 # will simply ignore them, but we want to avoid those warnings. for f in ${path_to_hl_src}/H5LTparse.c ${path_to_hl_src}/H5LTanalyze.c do - echo '#if __GNUC__ >= 4 && __GNUC_MINOR__ >=2 ' >> tmp.out + echo '#if defined __GNUC__ && 402 <= __GNUC__ * 100 + __GNUC_MINOR__ ' >> tmp.out echo '#pragma GCC diagnostic ignored "-Wconversion" ' >> tmp.out echo '#pragma GCC diagnostic ignored "-Wimplicit-function-declaration" ' >> tmp.out echo '#pragma GCC diagnostic ignored "-Wlarger-than=" ' >> tmp.out diff --git a/bin/make_err b/bin/make_err index bfe8861..a6461d4 100755 --- a/bin/make_err +++ b/bin/make_err @@ -244,7 +244,7 @@ sub create_init ($) { print HEADER "/* Major error codes */\n"; print HEADER "/*********************/\n\n"; foreach $name (keys %major) { - print HEADER " "x(0*$indent),"assert(${name}_g==(-1));\n"; + print HEADER " "x(0*$indent),"HDassert(${name}_g==(-1));\n"; print HEADER " "x(0*$indent),"if((msg = H5E_create_msg(cls, H5E_MAJOR, \"${major{$name}}\"))==NULL)\n"; print HEADER " "x(1*$indent),"HGOTO_ERROR(H5E_ERROR, H5E_CANTINIT, FAIL, \"error message initialization failed\")\n"; print HEADER " "x(0*$indent),"if((${name}_g = H5I_register(H5I_ERROR_MSG, msg, FALSE))<0)\n"; @@ -260,7 +260,7 @@ sub create_init ($) { # Iterate over all the minor errors in each section for $name ( @{$section_list{$sect_name}}) { - print HEADER " "x(0*$indent),"assert(${name}_g==(-1));\n"; + print HEADER " "x(0*$indent),"HDassert(${name}_g==(-1));\n"; print HEADER " "x(0*$indent),"if((msg = H5E_create_msg(cls, H5E_MINOR, \"${minor{$name}}\"))==NULL)\n"; print HEADER " "x(1*$indent),"HGOTO_ERROR(H5E_ERROR, H5E_CANTINIT, FAIL, \"error message initialization failed\")\n"; print HEADER " "x(0*$indent),"if((${name}_g = H5I_register(H5I_ERROR_MSG, msg, FALSE))<0)\n"; diff --git a/bin/snapshot b/bin/snapshot index 5c78fc8..bde68a5 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -130,9 +130,9 @@ DISPLAYUSAGE() set - cat < [diff] [test] [srcdir] [release] [help] - [clean] [distclean] [echo] [deploy ] [deploydir ] - [zlib ] [releasedir ] [srcdirname ] [check-vfd] - [exec ] [module-load ] [op-configure